-
15. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
pablojavierpy Aug 3, 2006 7:25 PM (in response to knifegun)Dear knifegun,
The thing is:
1) You can definitely use a WAR inside an EAR and still use jsr181 WebServices.
There is only one caveat: your WAR's context root can't be the same as your EAR's name. That is if your EAR's name is cm.ear, then your WAR's context root MUST BE SOMETHING ELSE. For example "cmweb".
Here is an example of how you should pack your cm.ear to get all thing working:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd" > <application> <display-name>RUCAS</display-name> <module> <ejb>rucas.jar</ejb> </module> <module> <web> <web-uri>rucas.war</web-uri> <context-root>/rucasweb</context-root> </web> </module> </application>
Let me know if it works.
Best regards -
16. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
knifegun Aug 3, 2006 7:33 PM (in response to knifegun)Many thanks! I will give it a try and let you know.
-
17. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
jason_rency Aug 4, 2006 4:54 AM (in response to knifegun)I put the following items in my web.xml and it works..I use the same name for my ejb,war and ear..havn't try to change the name yet..
<servlet> <servlet-name>CalculatorBean</servlet-name> <servlet-class>src.reg.server.CalculatorBean</servlet-class> </servlet> <!-- web service Mapping --> <servlet-mapping> <servlet-name>CalculatorBean</servlet-name> <url-pattern>/CalculatorBean</url-pattern> </servlet-mapping>
-
18. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
knifegun Aug 5, 2006 2:15 PM (in response to knifegun)Pablo Santa,
Thank you for your help. Your suggestion of renaming the war to a different name works like a charm. Now I can create web services using solely annotations. I have been looking for an answer for weeks so I truly appreciate the help!
Chris -
19. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
pablojavierpy Aug 5, 2006 2:33 PM (in response to knifegun)No prob Chris. Best regards.
-
20. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
kamra Aug 11, 2006 2:17 PM (in response to knifegun)Use following URL
http://localhost:8080/cm-ejb/WebserviceName?wsdl
where cm-ejb is the name of the ejb module jar file name, and WebserviceName is the name of the java file in which u have created the webservice. -
21. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
thomas.diesler Aug 16, 2006 1:23 PM (in response to knifegun)Please monitor
http://jira.jboss.org/jira/browse/JBWS-1135 -
22. Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)
thomas.diesler Oct 4, 2006 6:25 PM (in response to knifegun)On JSR181 endpoints the context root can explicitly be set using this annotation
@org.jboss.ws.annotation.PortComponent(contextRoot="/your-prefered-context")