|
Home > Archive > WebSphere Application Server > December 2005 > Re: indirectJNDILookup with empty name, PLEASE!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: indirectJNDILookup with empty name, PLEASE!
|
|
|
|
I have the same error but accessing Web Service!!! How Can I access a external web service from portlet??
(NOTE: Portlet created with WSAD 5.1.2, WebSphere Portal Server version 5.0)
ERROR:
javax.naming.NameNotFoundException: Name comp/env/service not found in context "java:".
I get this erro when I execute this sentence:
ctx.lookup("java:comp/env/service/ProcesoSeleccion")
"service/ProcesoSeleccion" is a tag defined in webservicesclient.xml
<webservicesclient>
<service-ref>
<description>WSDL Service ProcesoSeleccion</description>
<service-ref-name>service/ProcesoSeleccion</service-ref-name>
<service-interface>org.tempuri.ProcesoSeleccion</service-interface>
<wsdl-file>WEB-INF/wsdl/ProcesoSeleccion.wsdl</wsdl-file>
<jaxrpc-mapping-file>WEB-INF/ProcesoSeleccion_mapping.xml</jaxrpc-mapping-file>
<service-qname>
<namespaceURI>http://tempuri.org/</namespaceURI>
<localpart>ProcesoSeleccion</localpart>
</service-qname>
<port-component-ref>
<service-endpoint-interface>org.tempuri.ProcesoSeleccionSoap</service-endpoint-interface>
</port-component-ref>
</service-ref>
</webservicesclient>
Any Idea?
|
|
|
|
|