[JBossWS] - AXIS fault when trying to invoke a webservice through a serv
by dfillis
Hi All,
I am getting the following error when I invoke a webservice. I am using the following.
jboss-4.0.3SP1,
jdk5.0
my source code is as follows
public String login() throws Exception {
//Method level variables
String token = null;
try {
//Use thw webservice locator created by WSDL2JAVA
System.out.println("Login webservice method start");
OKMAuthServiceLocator servLoc = new OKMAuthServiceLocator();
OKMAuth auth = servLoc.getOKMAuthPort();
token = auth.login("user2", "pass2");
System.out.println(token);
System.out.println("Webservice end");
}
catch(Exception e) {
//Print the exception in the console
e.printStackTrace();
throw e;
}
return token;
}
I would appreciate any insights into what the problem could be.
Best Regards
Denzil Fillis
2007-12-11 21:03:41,015 DEBUG [org.jboss.webservice.server.InvokerProvider] initServiceDesc: service=OpenKM.ear/OpenKM.war#OKMAuthService/OKMAuth
2007-12-11 21:03:41,015 DEBUG [org.jboss.webservice.handler.HandlerChainBaseImpl] Create a handler chain for roles: []
2007-12-11 21:03:41,015 DEBUG [org.jboss.webservice.handler.HandlerChainBaseImpl] init: [config=null]
2007-12-11 21:03:41,062 DEBUG [org.jboss.webservice.server.ServerEngine] invoke: org.jboss.axis.MessageContext@2d8a59
2007-12-11 21:03:41,062 DEBUG [org.jboss.webservice.server.ServerEngine] TransportHandler: http
2007-12-11 21:03:41,078 ERROR [org.jboss.webservice.server.ServerEngine] Server error: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
at org.jboss.axis.encoding.Base64.decode(Base64.java:154)
at org.jboss.webservice.handler.ServerLoginHandler.invoke(ServerLoginHandler.java:68)
at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:174)
at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:89)
at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:911)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2007-12-11 21:03:41,078 INFO [org.jboss.axis.transport.http.AxisServlet] java.lang.NullPointerException
2007-12-11 21:03:41,109 INFO [STDOUT] AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:273)
at org.jboss.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:142)
at org.jboss.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1249)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:257)
at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
at org.jboss.axis.client.Call.invokeEngine(Call.java:3102)
at org.jboss.axis.client.Call.invoke(Call.java:3064)
at org.jboss.axis.client.Call.invoke(Call.java:2652)
at org.jboss.axis.client.Call.invoke(Call.java:2561)
at org.jboss.axis.client.Call.invokeInternal(Call.java:1982)
at org.jboss.axis.client.Call.invoke(Call.java:1920)
at com.mpilo.fourier.dms.wsmanager.subscriber.OKMAuthBindingStub.login(OKMAuthBindingStub.java:595)
at com.mpilo.fourier.dms.wsmanager.AuthModuleWSManager.login(AuthModuleWSManager.java:73)
at com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction.execute(SaveOrCreateDocumentAction.java:66)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2007-12-11 21:03:41,109 INFO [STDOUT] org.jboss.axis.AxisFault:
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.AxisFault.makeFault(AxisFault.java:99)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:274)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:142)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1249)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at javax.xml.parsers.SAXParser.parse(Unknown Source)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:257)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.client.Call.invokeEngine(Call.java:3102)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.client.Call.invoke(Call.java:3064)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.client.Call.invoke(Call.java:2652)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.client.Call.invoke(Call.java:2561)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.client.Call.invokeInternal(Call.java:1982)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.client.Call.invoke(Call.java:1920)
2007-12-11 21:03:41,125 INFO [STDOUT] at com.mpilo.fourier.dms.wsmanager.subscriber.OKMAuthBindingStub.login(OKMAuthBindingStub.java:595)
2007-12-11 21:03:41,125 INFO [STDOUT] at com.mpilo.fourier.dms.wsmanager.AuthModuleWSManager.login(AuthModuleWSManager.java:73)
2007-12-11 21:03:41,125 INFO [STDOUT] at com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction.execute(SaveOrCreateDocumentAction.java:66)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
2007-12-11 21:03:41,125 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2007-12-11 21:03:41,125 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2007-12-11 21:03:41,125 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
2007-12-11 21:03:41,125 INFO [STDOUT] Caused by: java.lang.NullPointerException:
2007-12-11 21:03:41,125 INFO [STDOUT] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2007-12-11 21:03:41,125 INFO [STDOUT] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
2007-12-11 21:03:41,125 INFO [STDOUT] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
2007-12-11 21:03:41,125 INFO [STDOUT] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
2007-12-11 21:03:41,125 INFO [STDOUT] at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:273)
2007-12-11 21:03:41,125 INFO [STDOUT] ... 50 more
2007-12-11 21:03:41,125 INFO [STDOUT] 2007/12/11 09:03:41 com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction execute
WARNING: ; nested exception is:
java.lang.NullPointerException:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:273)
at org.jboss.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:142)
at org.jboss.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1249)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:257)
at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
at org.jboss.axis.client.Call.invokeEngine(Call.java:3102)
at org.jboss.axis.client.Call.invoke(Call.java:3064)
at org.jboss.axis.client.Call.invoke(Call.java:2652)
at org.jboss.axis.client.Call.invoke(Call.java:2561)
at org.jboss.axis.client.Call.invokeInternal(Call.java:1982)
at org.jboss.axis.client.Call.invoke(Call.java:1920)
at com.mpilo.fourier.dms.wsmanager.subscriber.OKMAuthBindingStub.login(OKMAuthBindingStub.java:595)
at com.mpilo.fourier.dms.wsmanager.AuthModuleWSManager.login(AuthModuleWSManager.java:73)
at com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction.execute(SaveOrCreateDocumentAction.java:66)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
org.jboss.axis.AxisFault:
at org.jboss.axis.AxisFault.makeFault(AxisFault.java:99)
at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:274)
at org.jboss.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:142)
at org.jboss.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1249)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:257)
at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
at org.jboss.axis.client.Call.invokeEngine(Call.java:3102)
at org.jboss.axis.client.Call.invoke(Call.java:3064)
at org.jboss.axis.client.Call.invoke(Call.java:2652)
at org.jboss.axis.client.Call.invoke(Call.java:2561)
at org.jboss.axis.client.Call.invokeInternal(Call.java:1982)
at org.jboss.axis.client.Call.invoke(Call.java:1920)
at com.mpilo.fourier.dms.wsmanager.subscriber.OKMAuthBindingStub.login(OKMAuthBindingStub.java:595)
at com.mpilo.fourier.dms.wsmanager.AuthModuleWSManager.login(AuthModuleWSManager.java:73)
at com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction.execute(SaveOrCreateDocumentAction.java:66)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invok
2007-12-11 21:03:41,125 INFO [STDOUT] e(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:273)
... 50 more
2007-12-11 21:03:41,140 INFO [STDOUT] 2007/12/11 09:03:41 com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction execute
WARNING: ; nested exception is:
java.lang.NullPointerException:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:273)
at org.jboss.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:142)
at org.jboss.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1249)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:257)
at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
at org.jboss.axis.client.Call.invokeEngine(Call.java:3102)
at org.jboss.axis.client.Call.invoke(Call.java:3064)
at org.jboss.axis.client.Call.invoke(Call.java:2652)
at org.jboss.axis.client.Call.invoke(Call.java:2561)
at org.jboss.axis.client.Call.invokeInternal(Call.java:1982)
at org.jboss.axis.client.Call.invoke(Call.java:1920)
at com.mpilo.fourier.dms.wsmanager.subscriber.OKMAuthBindingStub.login(OKMAuthBindingStub.java:595)
at com.mpilo.fourier.dms.wsmanager.AuthModuleWSManager.login(AuthModuleWSManager.java:73)
at com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction.execute(SaveOrCreateDocumentAction.java:66)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
org.jboss.axis.AxisFault:
at org.jboss.axis.AxisFault.makeFault(AxisFault.java:99)
at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:274)
at org.jboss.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:142)
at org.jboss.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1249)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:257)
at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
at org.jboss.axis.client.Call.invokeEngine(Call.java:3102)
at org.jboss.axis.client.Call.invoke(Call.java:3064)
at org.jboss.axis.client.Call.invoke(Call.java:2652)
at org.jboss.axis.client.Call.invoke(Call.java:2561)
at org.jboss.axis.client.Call.invokeInternal(Call.java:1982)
at org.jboss.axis.client.Call.invoke(Call.java:1920)
at com.mpilo.fourier.dms.wsmanager.subscriber.OKMAuthBindingStub.login(OKMAuthBindingStub.java:595)
at com.mpilo.fourier.dms.wsmanager.AuthModuleWSManager.login(AuthModuleWSManager.java:73)
at com.mpilo.fourier.dms.web.action.SaveOrCreateDocumentAction.execute(SaveOrCreateDocumentAction.java:66)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invok
2007-12-11 21:03:41,140 INFO [STDOUT] e(SecurityAssociationValve.java:159)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:273)
... 50 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112063#4112063
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112063
17 years, 1 month
[JBossWS] - Re: UsernameToken authentication using JBossWS
by leandroal
Hi Alessio, here it is:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://www.xxx.com/" xmlns:s1="http://www.xxx.com/security"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://www.xxx.com/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This web service
provides real-time data data.</wsdl:documentation>
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://www.xxx.com/">
<s:element name="GetStations">
<s:complexType/>
</s:element>
<s:element name="GetStationsResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetStationsResult" type="tns:ArrayOfStation"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfStation">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="Station" nillable="true" type="tns:Station"/>
</s:sequence>
</s:complexType>
<s:complexType name="Station">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="StationName"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="StationNumber"
type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="Altitude"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="Latitude"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="Longitude"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="SensorHeight"
type="s:double"/>
</s:sequence>
</s:complexType>
<s:element name="GetObservationVariablesByStation">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="stationName"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetObservationVariablesByStationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetObservationVariablesByStationResult"
type="tns:ArrayOfString"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfString">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="string"
nillable="true" type="s:string"/>
</s:sequence>
</s:complexType>
<s:element name="GetLatestObservationByStationAndVariable">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="stationName"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="obsVariable"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetLatestObservationByStationAndVariableResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetLatestObservationByStationAndVariableResult"
type="tns:Observation"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="Observation">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ObsVariable"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1"
name="ObsVariableUnit" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="ObsValue"
type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="ObsTime"
type="s:dateTime"/>
<s:element minOccurs="1" maxOccurs="1" name="ObsStatus" type="s:int"/>
</s:sequence>
</s:complexType>
<s:element name="GetLatestObservationsByStation">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="stationName"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetLatestObservationsByStationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetLatestObservationsByStationResult"
type="tns:ArrayOfObservation"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfObservation">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="Observation" nillable="true" type="tns:Observation"/>
</s:sequence>
</s:complexType>
<s:element name="GetObservationsByStationAndVariable">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="stationName"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="obsVariable"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="start"
type="s:dateTime"/>
<s:element minOccurs="1" maxOccurs="1" name="stop"
type="s:dateTime"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetObservationsByStationAndVariableResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetObservationsByStationAndVariableResult"
type="tns:ArrayOfObservation"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetObservationsByStation">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="stationName"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="start"
type="s:dateTime"/>
<s:element minOccurs="1" maxOccurs="1" name="stop"
type="s:dateTime"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetObservationsByStationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetObservationsByStationResult" type="tns:ArrayOfObservation"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
<s:schema elementFormDefault="qualified"
targetNamespace="http://www.xxx.com/security">
<s:element name="UsernameToken" type="s1:UsernameToken"/>
<s:complexType name="UsernameToken">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="username"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="password"
type="s:string"/>
</s:sequence>
<s:anyAttribute/>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="GetStationsSoapIn">
<wsdl:part name="parameters" element="tns:GetStations"/>
</wsdl:message>
<wsdl:message name="GetStationsSoapOut">
<wsdl:part name="parameters" element="tns:GetStationsResponse"/>
</wsdl:message>
<wsdl:message name="GetStationsUsernameToken">
<wsdl:part name="UsernameToken" element="s1:UsernameToken"/>
</wsdl:message>
<wsdl:message name="GetObservationVariablesByStationSoapIn">
<wsdl:part name="parameters"
element="tns:GetObservationVariablesByStation"/>
</wsdl:message>
<wsdl:message name="GetObservationVariablesByStationSoapOut">
<wsdl:part name="parameters"
element="tns:GetObservationVariablesByStationResponse"/>
</wsdl:message>
<wsdl:message name="GetObservationVariablesByStationUsernameToken">
<wsdl:part name="UsernameToken" element="s1:UsernameToken"/>
</wsdl:message>
<wsdl:message name="GetLatestObservationByStationAndVariableSoapIn">
<wsdl:part name="parameters"
element="tns:GetLatestObservationByStationAndVariable"/>
</wsdl:message>
<wsdl:message name="GetLatestObservationByStationAndVariableSoapOut">
<wsdl:part name="parameters"
element="tns:GetLatestObservationByStationAndVariableResponse"/>
</wsdl:message>
<wsdl:message name="GetLatestObservationByStationAndVariableUsernameToken">
<wsdl:part name="UsernameToken" element="s1:UsernameToken"/>
</wsdl:message>
<wsdl:message name="GetLatestObservationsByStationSoapIn">
<wsdl:part name="parameters" element="tns:GetLatestObservationsByStation"/>
</wsdl:message>
<wsdl:message name="GetLatestObservationsByStationSoapOut">
<wsdl:part name="parameters"
element="tns:GetLatestObservationsByStationResponse"/>
</wsdl:message>
<wsdl:message name="GetLatestObservationsByStationUsernameToken">
<wsdl:part name="UsernameToken" element="s1:UsernameToken"/>
</wsdl:message>
<wsdl:message name="GetObservationsByStationAndVariableSoapIn">
<wsdl:part name="parameters"
element="tns:GetObservationsByStationAndVariable"/>
</wsdl:message>
<wsdl:message name="GetObservationsByStationAndVariableSoapOut">
<wsdl:part name="parameters"
element="tns:GetObservationsByStationAndVariableResponse"/>
</wsdl:message>
<wsdl:message name="GetObservationsByStationAndVariableUsernameToken">
<wsdl:part name="UsernameToken" element="s1:UsernameToken"/>
</wsdl:message>
<wsdl:message name="GetObservationsByStationSoapIn">
<wsdl:part name="parameters" element="tns:GetObservationsByStation"/>
</wsdl:message>
<wsdl:message name="GetObservationsByStationSoapOut">
<wsdl:part name="parameters"
element="tns:GetObservationsByStationResponse"/>
</wsdl:message>
<wsdl:message name="GetObservationsByStationUsernameToken">
<wsdl:part name="UsernameToken" element="s1:UsernameToken"/>
</wsdl:message>
<wsdl:portType name="xxx_x0020_Web_x0020_ServiceSoap">
<wsdl:operation name="GetStations">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">...</wsdl:documentation>
<wsdl:input message="tns:GetStationsSoapIn"/>
<wsdl:output message="tns:GetStationsSoapOut"/>
</wsdl:operation>
<wsdl:operation name="GetObservationVariablesByStation">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">...</wsdl:documentation>
<wsdl:input message="tns:GetObservationVariablesByStationSoapIn"/>
<wsdl:output message="tns:GetObservationVariablesByStationSoapOut"/>
</wsdl:operation>
<wsdl:operation name="GetLatestObservationByStationAndVariable">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">...</wsdl:documentation>
<wsdl:input message="tns:GetLatestObservationByStationAndVariableSoapIn"/>
<wsdl:output
message="tns:GetLatestObservationByStationAndVariableSoapOut"/>
</wsdl:operation>
<wsdl:operation name="GetLatestObservationsByStation">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">...</wsdl:documentation>
<wsdl:input message="tns:GetLatestObservationsByStationSoapIn"/>
<wsdl:output message="tns:GetLatestObservationsByStationSoapOut"/>
</wsdl:operation>
<wsdl:operation name="GetObservationsByStationAndVariable">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">...</wsdl:documentation>
<wsdl:input message="tns:GetObservationsByStationAndVariableSoapIn"/>
<wsdl:output message="tns:GetObservationsByStationAndVariableSoapOut"/>
</wsdl:operation>
<wsdl:operation name="GetObservationsByStation">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">....</wsdl:documentation>
<wsdl:input message="tns:GetObservationsByStationSoapIn"/>
<wsdl:output message="tns:GetObservationsByStationSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="xxx_x0020_Web_x0020_ServiceSoap"
type="tns:xxx_x0020_Web_x0020_ServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetStations">
<soap:operation soapAction="http://www.xxx.com/GetStations"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
<soap:header message="tns:GetStationsUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetObservationVariablesByStation">
<soap:operation
soapAction="http://www.xxx.com/GetObservationVariablesByStation"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
<soap:header
message="tns:GetObservationVariablesByStationUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetLatestObservationByStationAndVariable">
<soap:operation
soapAction="http://www.xxx.com/GetLatestObservationByStationAndVariable"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
<soap:header
message="tns:GetLatestObservationByStationAndVariableUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetLatestObservationsByStation">
<soap:operation
soapAction="http://www.xxx.com/GetLatestObservationsByStation"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
<soap:header
message="tns:GetLatestObservationsByStationUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetObservationsByStationAndVariable">
<soap:operation
soapAction="http://www.xxx.com/GetObservationsByStationAndVariable"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
<soap:header
message="tns:GetObservationsByStationAndVariableUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetObservationsByStation">
<soap:operation
soapAction="http://www.xxx.com/GetObservationsByStation"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
<soap:header
message="tns:GetObservationsByStationUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="xxx_x0020_Web_x0020_ServiceSoap12"
type="tns:xxx_x0020_Web_x0020_ServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetStations">
<soap12:operation soapAction="http://www.xxx.com/GetStations"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
<soap12:header message="tns:GetStationsUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetObservationVariablesByStation">
<soap12:operation
soapAction="http://www.xxx.com/GetObservationVariablesByStation"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
<soap12:header
message="tns:GetObservationVariablesByStationUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetLatestObservationByStationAndVariable">
<soap12:operation
soapAction="http://www.xxx.com/GetLatestObservationByStationAndVariable"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
<soap12:header
message="tns:GetLatestObservationByStationAndVariableUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetLatestObservationsByStation">
<soap12:operation
soapAction="http://www.xxx.com/GetLatestObservationsByStation"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
<soap12:header
message="tns:GetLatestObservationsByStationUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetObservationsByStationAndVariable">
<soap12:operation
soapAction="http://www.xxx.com/GetObservationsByStationAndVariable"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
<soap12:header
message="tns:GetObservationsByStationAndVariableUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetObservationsByStation">
<soap12:operation
soapAction="http://www.xxx.com/GetObservationsByStation"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
<soap12:header
message="tns:GetObservationsByStationUsernameToken"
part="UsernameToken" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="xxx_x0020_Web_x0020_Service">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This web service
provides real-time data data.</wsdl:documentation>
<wsdl:port name="xxx_x0020_Web_x0020_ServiceSoap"
binding="tns:xxx_x0020_Web_x0020_ServiceSoap">
<soap:address location="http://yyy.xxx.net/WebSite/dataData.asmx"/>
</wsdl:port>
<wsdl:port name="xxx_x0020_Web_x0020_ServiceSoap12"
binding="tns:xxx_x0020_Web_x0020_ServiceSoap12">
<soap12:address location="http://yyy.xxx.net/WebSite/dataData.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111936#4111936
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111936
17 years, 1 month
[JBossWS] - webservice login and initialization is Seam
by beligum
Hi all,
I don't really know where to post this, but I guess it's more WS-related than it is Seam-related.
Here's the issue: When I start an (ear) application, and nobody went to the website, before a remote login()-webserviceservice is contacted (which uses the seam Identity component to login), I always get an error that the security.drl file couldn't be found. Though, when I try to do this after someone visited the site (and security.drl) was loaded appropriately, everything is ok.
It seems like the initialization of the security-rules is something the webservice-integration (in Seam) isn't able to do?
Here's the stacktrace:
| 13:39:56,432 INFO [RuleBase] parsing rules: security.drl
| 13:39:56,472 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
| javax.ejb.EJBException: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123)
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
| at org.jboss.seam.Component.newInstance(Component.java:1962)
| at org.jboss.seam.Component.getInstance(Component.java:1865)
| at org.jboss.seam.Component.getInstance(Component.java:1844)
| at org.jboss.seam.Component.getInstance(Component.java:1821)
| at org.jboss.seam.Component.getInstance(Component.java:1816)
| at org.jboss.seam.security.Identity.instance(Identity.java:160)
| at com.acepostproduction.tumbolia.webservice.SecurityServiceImpl.getAllSpaces(SecurityServiceImpl.java:56)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| ... 39 more
| Caused by: java.lang.IllegalStateException: could not locate rule file: security.drl
| at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:51)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1997)
| at org.jboss.seam.Component.newInstance(Component.java:1968)
| at org.jboss.seam.Component.getInstance(Component.java:1865)
| at org.jboss.seam.Component.getInstance(Component.java:1832)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:112)
| at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2352)
| at org.jboss.seam.Component.initialize(Component.java:1381)
| at org.jboss.seam.Component.instantiateJavaBean(Component.java:1307)
| at org.jboss.seam.Component.instantiate(Component.java:1260)
| at org.jboss.seam.Component.newInstance(Component.java:1958)
| ... 75 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111921#4111921
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111921
17 years, 1 month