Bugs item #633528, was opened at 2002-11-04 23:09
Message generated for change (Comment added) made by ejort
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=633528&group_id=22866

Category: None
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Steve Wolfangel (swolfangel)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to get InitialContext using IIOP

Initial Comment:
I am getting an exception trying to get an InitialContext 
with the following code. This code runs fine against a 
Weblogic server. Stack trace is below. I am getting a 
warning on the jboss console:

Received a request with a non-jacorb object key ]

I am running the 3.0.4 code with -c all. 

Am I supposed to include any jboss jars on the client 
side? I hope not this is what I am trying to avoid. 

Thanks,



String url = "iiop://slwxp104:3528";
Properties props = new Properties();
try {
    props.put
(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.co
snaming.CNCtxFactory");
    props.put(Context.PROVIDER_URL, url);
    Hashtable namingProps = new Hashtable(props);
    InitialContext result = new InitialContext
(namingProps);
    return result;
} catch(NamingException e) {
    e.printStackTrace();
    throw new Exception("Unable to find or communicate 
with application server at " + url);
}


17:00:40,171 INFO  [Server] JBoss (MX MicroKernel) 
[3.0.4 Date:200211021607] Sta
rted in 1m:9s:890ms
17:01:23,750 INFO  [STDOUT] [ Opened new server-side 
TCP/IP transport to 192.168
.10.160:1190 ]
17:01:23,906 INFO  [STDOUT] [ (Pool)[0/0] creating new 
thread ]
17:01:24,296 INFO  [STDOUT] [ (Pool)[1/1] added idle 
thread ]
17:01:24,296 INFO  [STDOUT] [ (Pool)[0/1] removed idle 
thread (job scheduled) ]
17:01:24,625 INFO  [STDOUT] [ WARNING: Received a 
request with a non-jacorb obje
ct key ]
17:01:25,156 INFO  [STDOUT] [ Closing TCP 
connection, reason 2 ]
17:01:25,171 INFO  [STDOUT] [ Closed connection 
(server-side) 192.168.10.160:119
0 ]
17:01:25,171 INFO  [STDOUT] [ (Pool)[1/1] added idle 
thread ]
17:01:25,265 INFO  [STDOUT] [ (Pool)[1/1] job queue 
empty ]

***** Client side stack trace *****

org.omg.CORBA.OBJECT_NOT_EXIST:   minor code: 0  
completed: No
        at java.lang.Class.newInstance0(Native 
Method)
        at java.lang.Class.newInstance
(Class.java:237)
        at 
com.sun.corba.se.internal.iiop.ReplyMessage.getSyste
mException(ReplyMessage.java:93)
        at 
com.sun.corba.se.internal.iiop.ClientResponseImpl.getS
ystemException(ClientResponseImpl.java:83)
        at 
com.sun.corba.se.internal.corba.InitialNamingClient.resol
ve(InitialNamingClient.java:204)
        at 
com.sun.corba.se.internal.corba.InitialNamingClient.cach
edInitialReferences(InitialNamingClient.java:265)
        at 
com.sun.corba.se.internal.corba.InitialNamingClient.resol
ve_initial_references(InitialNamingClient.java:188)
        at 
com.sun.corba.se.internal.corba.ORB.resolve_initial_refe
rences(ORB.java:1461)
        at 
com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext
(CNCtx.java:281)
        at 
com.sun.jndi.cosnaming.CNCtx.initUsingUrl
(CNCtx.java:256)
        at 
com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext
(CNCtx.java:193)
        at com.sun.jndi.cosnaming.CNCtx.<init>
(CNCtx.java:73)
        at 
com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext
(CNCtxFactory.java:35)
        at 
javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:665)
        at 
javax.naming.InitialContext.getDefaultInitCtx
(InitialContext.java:246)
        at javax.naming.InitialContext.init
(InitialContext.java:222)
        at javax.naming.InitialContext.<init>
(InitialContext.java:198)
        at 
com.metamatrix.platform.security.api.beans.IntTestLogo
nAPIBean.getInitialContext
(IntTestLogonAPIBean.java:123)

----------------------------------------------------------------------

>Comment By: Adrian Brock (ejort)
Date: 2004-08-26 17:37

Message:
Logged In: YES 
user_id=9459

Add the following to jacorb.properties:

# map objectKey "NameService" to "JBoss/Naming/root" to allow
# corbaname URLs that don't specify an objectKey,
# (and default to "NameService" for jacorb)
# to resolve correctly
jacorb.orb.objectKeyMap.NameService=JBoss/Naming/root


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=633528&group_id=22866


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to