How to configure a Seam web service under WebLogic?
I have an existing Seam web service that I'm attempting to port from Glassfish to WebLogic. I have the code up and running and the web service is responding; however, whenever the web service code attempts to access an instance of a component, such as:
Conversation conv = Conversation.instance();
... the web service will throw a "No application context active" exception.
It appears that I can work around this error by adding Lifecycle.beginCall() and Lifecycle.endCall() to the top and bottom of all of my web methods. This, however, seems cumbersome, and the Seam documentation doesn't indicate that beginCall/endCall should be necessary. The same documentation suggests that I need to have a standard-jaxws-endpoint-config.xml file to specify a Seam SOAP handler for the web service in order for Seam to maintain the conversation, but this XML file looks like something JBoss-specific, and when I add this file to my application, it doesn't change the behavior.
I haven't been able to find any documentation on the web showing 开发者_开发问答specifically how to set up a Seam web service under WebLogic (not JBoss). Does anyone have any suggestions for what I might have overlooked? Let me know if I can provide any additional information and I'll amend the question.
精彩评论