[JBossWS] - web service endpoint dissappeared after restart
by 01012003
Hi,
I have developed a web service and tested which worked fine.
A weird situation: after I restarted jboss I do not see my service in jbossws console. When I try to invoke the service I get this error:
| 2007-07-19 14:22:55,610 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[RemoteSearch]] Servlet.service() for
| servlet RemoteSearch threw exception
| javax.xml.ws.WebServiceException: Cannot obtain endpoint for: jboss.ws:context=,endpoint=RemoteSearch
| at org.jboss.wsf.spi.invocation.EndpointServlet.initServiceEndpoint(EndpointServlet.java:103)
| at org.jboss.wsf.stack.jbws.ServiceEndpointServlet.initServiceEndpoint(ServiceEndpointServlet.java:49)
| at org.jboss.wsf.spi.invocation.EndpointServlet.service(EndpointServlet.java:65)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:619)
|
I am using jbossws2.0, jboss-4.2.0 with jdk.1.6 on linux.
I have done the steps to use jboss ws with jdk1.6.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065783#4065783
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065783
17 years, 5 months
[JBossWS] - Re: WS-Security client?
by kadlecp
Hello, my WS-Security client looks like this. It works.
public class TestClient {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
BasicConfigurator.configure();
System.setProperty("org.jboss.ws.wsse.keyStore", "resources/wsse.keystore");
System.setProperty("org.jboss.ws.wsse.trustStore", "resources/wsse.keystore");
System.setProperty("org.jboss.ws.wsse.keyStorePassword", "jbossws");
System.setProperty("org.jboss.ws.wsse.trustStorePassword", "jbossws");
System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
URL wsdlFileURL = new URL("http://localhost:8080/simpleencrypt?wsdl");
QName qname = new QName("http://org.jboss.ws/samples/wssecurity", "HelloService");
URL securityURL = new File("resources/jboss-wsse-client.xml").toURI().toURL();
Service service = Service.create(wsdlFileURL, qname);
((ServiceExt)service).setSecurityConfig(securityURL.toExternalForm());
Hello port = service.getPort(Hello.class);
((StubExt)port).setConfigName("Standard WSSecurity Client");
String ret = port.echoUserType("hello world!");
System.out.println(ret);
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065656#4065656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065656
17 years, 5 months
[JBossWS] - Axis vs Jboss compat issue
by gryffin
Hi. I've got a webservice running on JBossAS 4.0.5 w/ JBossWS 1.2.1. I am able to use it fine over HTTP using a JBoss based client.
I have a user who has an Axis based client who can't access the service. I get the following error trying to access an attribute of the submitted service parameter ( put another way, accessing a complex-type child element of the SOAP operation parameter ). I inspected the SOAP packet using a sniffer and it appears that the Axis client call is valid, though not identical to the JBoss client call.
What should I look for? It's a really gnarly interop problem. All three, both clients and the service were generated from the same WSDL, so they should be following the same rules and schema.
Here's the error, it looks like the child elements are not marshalling properly, but I don't have any idea how to troubleshoot that. Can anyone point in the right direction? Thanks!
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.MessageContextJAXWS] Begin response processing
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@2098ff (Thread http-0.0.0.0-8080-2)
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@e107d9 (Thread http-0.0.0.0-8080-2)
| 2007-07-18 14:30:17,875 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
| java.lang.NullPointerException
| at com.boeing.nmt.server.ws.NlsSoapServiceImpl.assetAssociationSet(NlsSoapServiceImpl.java:257)
| 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:585)
| at org.jboss.ws.core.server.ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(ServiceEndpointInvokerJSE.java:104)
| at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:207)
| at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
| at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
| at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
| 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:96)
| 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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 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-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] Cannot obtain fault meta data for: class java.lang.NullPointerException
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: PRE
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: ENDPOINT
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: POST
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain
| 2007-07-18 14:30:17,875 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065585#4065585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065585
17 years, 5 months