Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP Weblogic question

Status
Not open for further replies.

desktopfellow

IS-IT--Management
Sep 24, 2006
11
US
Hi,
I am trying to read some entries from web.xml file. My weblogic version is 6.1.2.
When I execute
String envLookUpValue = "java:comp/env/";

envLookUpValue = envLookUpValue + propertyName;

try
{
Context ctx =new InitialContext();
return (Object)ctx.lookup(envLookUpValue);
}
catch (Exception e)
{
e.printStackTrace();
return "unknown";
}

The statement (Object)ctx.lookup(envLookUpValue)is giving
following exception


javax.naming.NameNotFoundException: Unable to resolve comp/env/LDAP_CUID/ Resolved: 'comp/env' Unresolved:'LDAP_CUID' ; remaining name ''
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:887)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:219)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:183)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:339)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:36)
at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:124)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.qwest.app.frw.util.ResourceReader.getPropertyValue(ResourceReader.java:66)
at com.qwest.app.frw.util.FRWLdapUtil.getEmailAddress(FRWLdapUtil.java:57)
at com.qwest.app.qt.quack.core.quackDetails.getEmailAddress(Unknown Source)
at com.qwest.app.qt.quack.QuackMgrEJB.QuackMgrBean.getEmailAddress(Unknown Source)
at com.qwest.app.qt.quack.QuackMgrEJB.QuackMgrBean_kcsmb1_EOImpl.getEmailAddress(QuackMgrBean_kcsmb1_EOImpl.java:247)
at com.qwest.app.qt.quack.QuackMgrEJB.QuackMgrBean_kcsmb1_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166)
at weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy94.getEmailAddress(Unknown Source)
at com.qwest.app.frw.common.EmailNotification.runProcess(EmailNotification.java:187)
at com.qwest.app.frw.process.StartProcess.run(StartProcess.java:267)
at java.lang.Thread.run(Thread.java:484)

I have non - SSL connection. Is it necessary to have SSL connection to use JNDI name java:comp/env?

Again what is the way of chaging non ssl to SSL in weblogic 6.1.2 version?

Please help

 
Looks like CNUID is what actually cannot resolve.

Cheers,
Dian
 
The LDAP_CUID cannot be resolved but why my application is not able to read from web.xml file when the entry is present in web.xml?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top