hi @ all
i am developing in JBOSS a webservice. but for this i need java 1.6 (no other possible
because of company internals) an jboss 4.0.5GA with EJB3.
in order to make the jbossWS running with java 1.6 i followed the rules as described in:
http://www.bhaskarvk.info/content/jboss/jbossws_2_0_1.html
so i updated jbossWS to 2.0.1GA and endored the thre jars (jboss-saaj, jboss-jaxws and
jaxb-api). so far so nice ... i don't get the errors of the java 5 / 6 problem
nomore.
the webservice is fully detected and deployed (i can generate with studio .NET 2005 stubs
against WSDL and can connect to server (jboss). also
http://localhost:8080/jbossws/ tells
my webservice is deployed ... it shows:
ServiceEndpointID: jboss.ws:context=wfm-server,endpoint=WebServiceNotificationBean
| ServiceEndpointAddress:
http://xxx.xxx.xxx.xxx:8080/wfm-server/WebServiceNotificationBean?wsdl
but when i try to run my webservice call in the jboss i got an exception:
javax.xml.rpc.ServiceException: Cannot find service endpoint target:
jboss.j2ee:name=WebServiceNotificationBean,service=EJB3,jar=wfm-server.jar,ear=sanssouci-application.jar
this exception is also deliverd to the .NET client. so the SOAP mechanism seems to work
fine.
the complete log informations for this opperation is:
2007-09-21 13:41:52,999 DEBUG [org.jboss.ws.server.StandardEndpointServlet]
(http-195.127.121.193-8080-1:)doPost: /wfm-server/WebServiceNotificationBean
| 2007-09-21 13:41:52,999 DEBUG [org.jboss.ws.soap.MessageContextAssociation]
(http-195.127.121.193-8080-1:)pushMessageContext:
org.jboss.ws.soap.SOAPMessageContextImpl@1936199
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.server.ServiceEndpoint]
(http-195.127.121.193-8080-1:)BEGIN handleRequest:
jboss.ws:context=wfm-server,endpoint=WebServiceNotificationBean
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.server.ServiceEndpoint]
(http-195.127.121.193-8080-1:)Init handler chain with [0] handlers
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl]
(http-195.127.121.193-8080-1:)Create a handler chain for roles: []
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl]
(http-195.127.121.193-8080-1:)init: [config=null]
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.server.ServiceEndpoint]
(http-195.127.121.193-8080-1:)Init handler chain with [0] handlers
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl]
(http-195.127.121.193-8080-1:)Create a handler chain for roles: []
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl]
(http-195.127.121.193-8080-1:)init: [config=null]
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.server.ServiceEndpoint]
(http-195.127.121.193-8080-1:)Init handler chain with [0] handlers
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl]
(http-195.127.121.193-8080-1:)Create a handler chain for roles: []
| 2007-09-21 13:41:53,030 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl]
(http-195.127.121.193-8080-1:)init: [config=null]
| 2007-09-21 13:41:53,077 DEBUG [org.jboss.ws.soap.MessageFactoryImpl]
(http-195.127.121.193-8080-1:)createMessage: [contentType=text/xml; charset=utf-8]
| 2007-09-21 13:41:53,124 DEBUG [jbossws.SOAPMessage]
(http-195.127.121.193-8080-1:)Incomming SOAPMessage
| <soap:Envelope
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
| <soap:Header/>
| <soap:Body>
| <sayHello xmlns='http://www.wf.org'>
| </sayHello></soap:Body></soap:Envelope>
| 2007-09-21 13:41:53,124 DEBUG [javax.xml.rpc.soap.SOAPFaultException]
(http-195.127.121.193-8080-1:)new SOAPFaultException
[
code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=Cannot find service
endpoint target:
jboss.j2ee:name=WebServiceNotificationBean,service=EJB3,jar=wfm-server.jar,ear=sanssouci-application.jar,actor=null,detail=null]
| 2007-09-21 13:41:53,124 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper]
(http-195.127.121.193-8080-1:)SOAP request exception
| javax.xml.rpc.ServiceException: Cannot find service endpoint target:
jboss.j2ee:name=WebServiceNotificationBean,service=EJB3,jar=wfm-server.jar,ear=sanssouci-application.jar
| at
org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB3.loadServiceEndpoint(ServiceEndpointInvokerEJB3.java:80)
| at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:87)
| at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
| at
org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
| at
org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at
org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
| 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:619)
| 2007-09-21 13:41:53,139 DEBUG [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper]
(http-195.127.121.193-8080-1:)Cannot obtain fault meta data for: class
javax.xml.rpc.ServiceException
| 2007-09-21 13:41:53,139 DEBUG [jbossws.SOAPMessage]
(http-195.127.121.193-8080-1:)Outgoing SOAPMessage
| <env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <env:Fault
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <faultcode>env:Client</faultcode>
| <faultstring>Cannot find service endpoint target:
jboss.j2ee:name=WebServiceNotificationBean,service=EJB3,jar=wfm-server.jar,ear=sanssouci-application.jar</faultstring>
| </env:Fault></env:Body></env:Envelope>
| 2007-09-21 13:41:53,139 DEBUG [org.jboss.ws.server.ServiceEndpoint]
(http-195.127.121.193-8080-1:)END handleRequest:
jboss.ws:context=wfm-server,endpoint=WebServiceNotificationBean
| 2007-09-21 13:41:53,139 DEBUG [org.jboss.ws.soap.MessageContextAssociation]
(http-195.127.121.193-8080-1:)popMessageContext:
org.jboss.ws.soap.SOAPMessageContextImpl@1936199
i don't know what to do ... my webservice as ejb3.0 looks quite simple and plain:
the class:
package com.os.ecm.workflow.remote.notifications;
|
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
| import org.apache.commons.logging.Log;
|
| import com.os.common.logging.logger.OsLogFactory;
|
| @Stateless
| @WebService(targetNamespace="http://www.wf.org")
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| public class WebServiceNotificationBean implements WebServiceNotification
| {
| private static final Log logger =
OsLogFactory.getLog(WebServiceNotificationBean.class);
|
| @WebMethod
| public String sayHello()
| {
| logger.warn("Vika ist die LIEBSTE !");
| return "Vika hat ein Visum!";
| }
| }
|
and the corresponding remote interface (for ejb mechanism's):
package com.os.ecm.workflow.remote.notifications;
|
| import javax.ejb.Remote;
|
| @Remote
| public interface WebServiceNotification
| {
| public String sayHello();
| }
|
if anyone can help me ... please do ... going crasy with this stuff
PS: using jboss 5 is not possible (beta status and not supported by application). but no
matter. has anyone an information when will be official release date?
thx a lot
your birke
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087204#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...