[jboss-user] [JBossWS] - Re: PLEASE HELP: JSR 181 EJB Endpoint (JBoss 4.0.4.GA)

pablojavierpy do-not-reply at jboss.com
Thu Aug 3 19:25:56 EDT 2006


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


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

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



More information about the jboss-user mailing list