I have the following code in a JSP trying to talk to a Weblogic 8.1 container. 
I am using the wlclient.jar to make iiop contact. 
Properties props = new Properties();
        props.put("java.naming.factory.initial", 
"weblogic.jndi.WLInitialContextFactory");
        props.put("java.naming.provider.url","iiop://10.9.133.124:8001");
        props.put(Context.SECURITY_PRINCIPAL, "system");
        props.put(Context.SECURITY_CREDENTIALS, "password");
        System.out.println("Attempting to initialize a context");
        InitialContext ic = new InitialContext(props);
When this code executes i get the following error:
org.omg.CORBA.ORBPackage.InvalidName
        at org.jacorb.orb.ORB.resolve_initial_references(ORB.java:1275)
        at weblogic.corba.j2ee.naming.ORBHelper.getORBReferenceWithRetry(ORBHelp
er.java:490)
        at weblogic.corba.j2ee.naming.ORBHelper.getORBReference(ORBHelper.java:4
67)
        at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContex
t(InitialContextFactoryImpl.java:97)
        at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContex
t(InitialContextFactoryImpl.java:42)
        at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:41)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865113#3865113

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865113


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to