Thomas,

I'm having the same problem. I'm trying to use a single SLSB as a single 
endpoint for two web services. I've added two port-component elements to my 
SLSB's session element, in jboss.xml:


  | <session>
  |     <ejb-name>UserSessionWS</ejb-name>
  |     <configuration-name>
  |             Standard Stateless SessionBean
  |     </configuration-name>
  |     <port-component>
  |             <port-component-name>
  |                     StatelessSession
  |             </port-component-name>
  |             <port-component-uri>
  |                     AllServices
  |             </port-component-uri>
  |     </port-component>
  |     <port-component>
  |             <port-component-name>
  |                     PropertyWebService
  |             </port-component-name>
  |             <port-component-uri>
  |                     PropertyService
  |             </port-component-uri>
  |     </port-component>
  | </session>
  | 


but JBoss 4.0.3 SP1 is ignoring the second port-component element:


  | [main] [AxisService] WSDD published to: 
/usr/local/java/j2ee/jboss/jboss-4.0.3SP1/server/default/data/wsdl/gateway.ear/gateway.jar/PropertyWebService.wsdd
  | [main] [AxisService] Web Service deployed: 
http://localhost:8080/ws/AllServices
  | 
  | [main] [AxisService] WSDD published to: 
/usr/local/java/j2ee/jboss/jboss-4.0.3SP1/server/default/data/wsdl/gateway.ear/gateway.jar/StatelessSession.wsdd
  | [main] [AxisService] Web Service deployed: 
http://localhost:8080/ws/AllServices
  | 
  | [main] [ServiceDeployer] Cannot startup webservice for: gateway.jar
  | java.lang.IllegalArgumentException: Cannot use the same url-pattern with 
different endpoints, check your <port-component-uri> in jboss.xml
  | 


This seems to be confirmed by 
org.jboss.webservice.ServiceDeployerEJB.createWebXML(), where the port 
component is retrieved based on the ejb-link tag - which is obviously the same 
for both web-services - and so only the first port-component can ever be used. 

However, the jboss.xml DTD specifies that zero or more port-component elements 
are permissible, and so does your post. Any help would be much appreciated.

Thanks very much,

Damian

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to