[jboss-user] [EJB/JBoss] - EJB 3.0, JBoss 4.2, JPA, JNDI, and Web Services

mikemurz do-not-reply at jboss.com
Fri Dec 5 01:33:22 EST 2008


I'm having trouble getting a very simple web service to work. My WSDL is generated correctly, but when I try to invoke one of my web methods with a SOAP request, I get this response back:

<faultcode>env:Server</faultcode>
  | <faultstring>Endpoint cannot handle requests in state: UNDEFINED</faultstring>


I am fairly certain that this code is very closely related to the problem:
@PersistenceContext(unitName = "bship")
  | private EntityManager manager;

Because when I comment that code out, all of the sudden my service will send back valid responses. So I'm assuming that means my problem has something to do with JNDI or JPA.

Here is the entity i'm trying to persist in the web method:
http://devk.it/ec0DhwS7NB

Here is my persistence.xml:
http://devk.it/37vCj4EReq

Here is my ds.xml (which is in my /deploy/ folder):
http://devk.it/f13G5pC7xq

Here is the Service Bean:
http://devk.it/6b0451wccr

And here is my Remote interface:
http://devk.it/14etOF2X0O

When I debug my EJB project, an exception similar to the invalid response comes up:

ERROR [SOAPFaultHelperJAXRPC] SOAP request exception
  | javax.xml.rpc.soap.SOAPFaultException: Endpoint cannot handle requests in state: UNDEFINED
  | 	at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.exceptionToFaultMessage(SOAPFaultHelperJAXRPC.java:189)
  | 	at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:170)
  | 	at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
  | 	at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:671)
  | 	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:488)
  | 	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
  | 	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
  | 	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
  | 	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:182)
  | 	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(Unknown Source)


I've been researching away trying to get my EJB setup working, but things are moving very slow because of this problem. All help is very appreciated!

Thank you,
Mike Murray

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194536#4194536

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194536



More information about the jboss-user mailing list