-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, 

  after reading this: http://www.onjava.com/pub/a/onjava/2002/03/27/
jsr77.html?page=2 I wanted to run the following code, but with no success so 
far:

                log("started.\n");

                Properties p = new Properties();
                p.setProperty(
                        Context.INITIAL_CONTEXT_FACTORY,
                        "org.jnp.interfaces.NamingContextFactory");
                p.setProperty(Context.PROVIDER_URL, "localhost:1099");
                p.setProperty(
                        Context.URL_PKG_PREFIXES,
                        "org.jboss.naming:org.jnp.interfaces");

                log("Aquiring context");
                Context ctx = new InitialContext(p);
                log(".\n");

                
                log("Looking up mejb reference");
                Object o = ctx.lookup("ejb/mgmt/MEJB");   <-- Line 34
                log(".\n");


That is the output:
started.
Aquiring context.
Looking up mejb referenceException in thread "main" 
javax.naming.NameNotFoundException: ejb not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
        at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at sun.rmi.transport.tcp.TCPTransport
$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:534)
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at Test.main(Test.java:34)

  From the webconsole I can at least see this:

[..]
jboss.management.local

J2EEApplication=http-invoker.sar,J2EEServer=Local,WebModule=invoker.war,j2eeType=Servlet,name=EJBInvokerHAServlet
J2EEApplication=http-invoker.sar,J2EEServer=Local,WebModule=invoker.war,j2eeType=Servlet,name=EJBInvokerServlet
J2EEApplication=http-invoker.sar,J2EEServer=Local,WebModule=invoker.war,j2eeType=Servlet,name=JMXInvokerServlet
J2EEApplication=http-invoker.sar,J2EEServer=Local,WebModule=invoker.war,j2eeType=Servlet,name=JNDIFactory
[..]
  
  and

jboss.j2ee

service=EARDeployer

[..]

  Googling didn't help so far. Any ideas?

  I am running Sun's JDK 1.4.2 on Linux 2.4.22 / Debian unstable with Tomcat 
3.2.2.  Anything else I can provide?

Cheers,
Mariano
- -- 
Get public key from
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xE4AC1483
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/srEjSraqt+SsFIMRAmT4AJ9x5BM0lDreI0PJ8k91MBCd9ifbvQCfajhP
awHezrog5SaoOGiuLeJw5MY=
=0W40
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to