[jboss-user] [JBossWS] - Re: WebContext annotation and contextRoot

kr8m3r_78 do-not-reply at jboss.com
Thu Oct 23 04:53:14 EDT 2008


I seem to have the same problem:

I have a problem in that my EJB jar deploys a web service, which uses the @WebContext annotation, but the context root points to the same context root of one defined in my war, both of which are packaged inside an EAR. If I deploy the EAR everything defined in the web.xml inside the war is accessible, but accessing the web service using the same context gets a 404 error.

For example, my webservice:

Code:

  | @WebContext(contextRoot = "/testWeb", urlPattern = "/SupplierAccessPort", authMethod = "BASIC", transportGuarantee = "NONE", secureWSDLAccess = false)
  | 

In my jboss-web.xml (inside the war):


  |  <jboss-web>  
  |   <security-domain>java:/jaas/aipDBCheck</security-domain>  
  |   <context-root>/testWeb</context-root>
  |  </jboss-web>
  | 

http://localhost:8080/testWeb/index.htm is found (as it is inside my war)
http://localhost:8080/testWeb/SupplierAccessPort gets a 404. 

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

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



More information about the jboss-user mailing list