I'm getting closer! :)

First question, I'm looking through these massive logs and trying to see if my
EJB was deployed.  I don't see any errors on the deployment, but that doesn't
mean it's working.  What will the logs say?  I've looked through almost every
line, and I'm searching for my EJB named "Playlist", but nothing is found.

Next, I'm trying to access the context, and at one point I got some sort of
"comp/env/ejb reference not loaded" message, although I now can't reproduce
that.  Now when I try to get the context I get:

Exception in thread "main" javax.naming.CommunicationException: Failed to
retrieve stub from server 127.0.0.1:1100.  Root exception is
java.io.StreamCorruptedException: unexpected block data
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
        at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:164)
        at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:931)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1009)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at org.blandsite.music.play.PlaylistClient.main(PlaylistClient.java:30)

My code looks like:

        Properties p=new Properties();
        p.put("java.naming.factory.initial",
            "org.jnp.interfaces.NamingContextFactory");
        p.put("java.naming.provider", "localhost:1099");
        p.put("java.naming.factory.url.pkgs",
            "org.jboss.naming:org.jnp.interfaces");
        InitialContext iniCtx = new InitialContext(p);

        System.err.println("Getting context");
        Context ejbCtx = (Context) iniCtx.lookup("java:comp/env/ejb");
        System.err.println("Got context");

Any ideas?  I bought the docs and read everything I can, but nothing has an
end-to-end tutorial.

Thanks in advance,

-- 
-bk






_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to