[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-760) @WebServiceRef not bound to java:comp/env

Thomas Diesler (JIRA) jira-events at jboss.com
Wed Oct 25 09:08:41 EDT 2006


@WebServiceRef not bound to java:comp/env
-----------------------------------------

                 Key: EJBTHREE-760
                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-760
             Project: EJB 3.0
          Issue Type: Bug
            Reporter: Thomas Diesler
         Assigned To: Carlo de Wolf


package org.jboss.test.ws.jaxws.webserviceref;

@WebServiceRef(name = "service1", value = TestEndpointService.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
@WebServiceRefs( { 
   @WebServiceRef(name = "service2", value = TestEndpointService.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl"),
   @WebServiceRef(name = "port1", value = TestEndpointService.class, type = TestEndpoint.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl") })
public class ApplicationClient

When the client is deployed, I see the first reference beeing bound to jbossws-client/env/service1
However, 

         ports.add(((TestEndpointService)encCtx.lookup("java:comp/env/service1")).getTestEndpointPort());

fails with javax.naming.NameNotFoundException: service1 not bound

To reproduce run this against jbossas/branches/JEE5_TCK

/home/tdiesler/svn/jbossws/trunk/src/test
[tdiesler at tddell test]$ ant -Dtest=jaxws/webserviceref test

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list