2 Replies Latest reply on May 17, 2005 6:54 AM by thomas.diesler

    Problem setting custom URI for SessionBean deployment

    mike.chack

      I am having trouble setting a custom URI for a session based bean. All references indicate that jboss.xml needs to be modified to add a <port-component> element with <port-component-uri>/someuri</port-component-uri>.

      This does not seem to work. The dtd seems to be violated and this is confirmed when JBOSS will not deploy the service. I am using release 4.0.2.

      Any help would be appreciated.

        • 1. Re: Problem setting custom URI for SessionBean deployment
          mike.chack

          Update.

          I did find a helpful link.

          http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874451#3874451

          This worked but I still had to eliminate the DOCTYPE element from jboss.xml in order for it to load correctly.

          Also when using /ws4ee/services to see deployed services the new uri was not shown.

          • 2. Re: Problem setting custom URI for SessionBean deployment
            thomas.diesler

            Here is a valid jboss.xml from the 4.0.2 samples

            <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN"
             "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
            
            <jboss>
            
             <security-domain>java:/jaas/JBossWS</security-domain>
            
             <enterprise-beans>
             <session>
             <ejb-name>RoleSecuredSLSB</ejb-name>
             <jndi-name>ejb/RoleSecuredSLSB</jndi-name>
             <port-component>
             <port-component-name>RoleSecured</port-component-name>
             <port-component-uri>/ws4ee-samples-ejb/RoleSecured</port-component-uri>
             </port-component>
             </session>
             <session>
             <ejb-name>BasicSecuredSLSB</ejb-name>
             <jndi-name>ejb/BasicSecuredSLSB</jndi-name>
             <port-component>
             <port-component-name>BasicSecured</port-component-name>
             <port-component-uri>/ws4ee-samples-ejb/BasicSecured</port-component-uri>
             <auth-method>BASIC</auth-method>
             <transport-guarantee>NONE</transport-guarantee>
             </port-component>
             </session>
             </enterprise-beans>
            </jboss>