-
1. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
thomas.diesler Sep 12, 2004 5:54 PM (in response to darranl)That you see a Referencable is ok. The javax.xml.rpc.Service is constructed at the client side from information that is contained in the Referencable.
+- CustomerOrderService (proxy: $Proxy63 implements interface org.jboss.webservice.complexbean.ejb.CustomerOrderHome,interface javax.ejb.Handle) +- ejb (class: org.jnp.interfaces.NamingContext) | +- mgmt (class: org.jnp.interfaces.NamingContext) | | +- MEJB (proxy: $Proxy46 implements interface javax.management.j2ee.ManagementHome,interface javax.ejb.Handle) | +- OrganizationClientBean (proxy: $Proxy53 implements interface com.underworld.crimeportal.ejb.OrganizationClientHome,interface javax.ejb.Handle) | +- OrganizationBean (proxy: $Proxy58 implements interface com.underworld.crimeportal.ejb.OrganizationHome,interface javax.ejb.Handle) +- ws4ee-client (class: org.jnp.interfaces.NamingContext) | +- service (class: org.jnp.interfaces.NamingContext) | | +- OrganizationServiceJSE (class: org.jboss.webservice.client.ServiceReferenceable) | | +- OrganizationServiceEJB (class: org.jboss.webservice.client.ServiceReferenceable) | | +- CustomerOrderService (class: org.jboss.webservice.client.ServiceReferenceable)
The test works for me with 4.0.0RC2test: [junit] Running org.jboss.webservice.complexbean.ComplexBeanTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.114 sec
You could goto ServiceObjectFactory.getObjectInstance and trace through there to see what is happening with your JNDI lookup. -
2. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
thomas.diesler Sep 12, 2004 5:57 PM (in response to darranl)The behaviour you describe might occur if the client is not seeing the ServiceObjectFactory. JNDI does not know howto create the real object through the factory and simply returns the Referencable. Don't know for sure though.
-
3. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
darranl Sep 12, 2004 6:58 PM (in response to darranl)Thomas,
Yes the problem was that the required jars were not in my Classpath, I have been in the habit in the past of waiting for ClassNotFoundExceptions and then adding the required jars as required.
Thanks for your help.
From,
Darran. -
4. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
hsutarwala Aug 9, 2005 4:05 PM (in response to darranl)I would like to know the ear structure for deployement of a Document Literal WS client. The tutorial does not indicate how the deployment artifact should be packaged.
-
5. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
thomas.diesler Aug 11, 2005 7:03 AM (in response to darranl)You could checkout the samples, any of the test deployments, read the spec, etc
What is the issue? -
6. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
hsutarwala Aug 18, 2005 11:54 AM (in response to darranl)I am getting a
ClassCastException:javax.naming.reference
I am following the WSDocClientStepByStep Tutorial and am getting the above error when I try to iniCtx.lookup("java:comp/env/service/XXX")
All help is appreciated. -
7. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
hsutarwala Aug 18, 2005 12:36 PM (in response to darranl)Thomas,
Yes the problem was that the required jars were not in my Classpath, I have been in the habit in the past of waiting for ClassNotFoundExceptions and then adding the required jars as required.
Thanks for your help.
From,
Darran
Darran or Thomas
Which jars are you referring to here??
Husain -
8. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
craigpugsley Oct 12, 2005 11:23 AM (in response to darranl)I'm in this tricky position as well. I've tried adding all the JBoss 4.0.3 libs to my classpath, but still when I try to lookup in JNDI, I get back this Reference object instead of my class that I expect to get.
Of note, I'm launching my client app from Eclipse with the JBoss running on a remote machine. This shouldn't make any difference though, yes? -
9. Re: JNDI Lookup not returning 'javax.xml.rpc.Service'
thomas.diesler Oct 19, 2005 7:20 PM (in response to darranl)The required client jars are listed in the FAQ wiki