Hey,,,..

Thanks for the tip...
i have not try it out yet...
hope it works.... =)

john

----- Original Message -----
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 11:20 PM
Subject: RE: [JBoss-user] Error during conetxt.lookup()


> John,
> - forget about your test *in* the container
> - in your client code, add the following:
>
> Properties props = new Properties();
>
> props.put( "java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> props.put( "java.naming.provider.url", "jnp://yourServerName:1099");
> props.put( "java.naming.factory.url.pkgs",
> "org.jboss.naming:org.jnp.interfaces");
>
> Context ctx = new InitialContext(props);
>
>   and replaces "yourServerName" in the second "props.put" line with the IP
> address of your server.
>
> As for the $Proxy2 you mentionned, that is normal. We use dynamic class
> loading with Java Proxy class. Consequently, the "real" class name that is
> bound is not the class you wait for.
>
> Cheers,
>
>
> Sacha
>
>
>
>
> > -----Message d'origine-----
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de John LYC
> > Envoyé : lundi, 17 septembre 2001 14:59
> > À : [EMAIL PROTECTED]
> > Objet : Re: [JBoss-user] Error during conetxt.lookup()
> >
> >
> > ohh.. sorry abt the change in the lookup name....
> > i changed the ejb-name and the jndi-name around to trouble shoot..
> >
> > and i didnt include any jndi.properities file...
> > will jboss read its default jndi.properities instead??
> >
> > i know calling the client with the class constructor is tricky..
> > i did try the conventional way of runing a client on my machine...
> > include all class path.. (jboss_home\client... etc) still gave me the
same
> > results..
> >
> > something  i got from reading the JNDIVIEW of the server...
> > (http://locathost:8082)
> >
> > =================snip============
> > java:comp namespace of the Contact bean:
> >   + env (class: org.jnp.interfaces.NamingContext)
> >   |   + jdbc (class: org.jnp.interfaces.NamingContext)
> >   |   |   + DefaultDS[link -> java:/DefaultDS] (class:
> > javax.naming.LinkRef)
> >
> > ......................
> > ....
> > ..
> > Global JNDI Namespace
> >   + cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of
my
> > bean class (testejb.Contact)..?
> >   + TopicConnectionFactory (class:
org.jbossmq.SpyTopicConnectionFactory)
> >   + XAQueueConnectionFactory (class:
> > org.jbossmq.SpyXAQueueConnectionFactory)
> >   + jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
> > .....
> > ...
> > ================end snip====================
> >
> > notice the my JNDI Namesapce "cont"  is not bound to any class.
> >
> >
> > i have also included my stack trace here.
> >
> > ====================snip==============
> >
> > [Default] -- Failed initializing bean access.
> > [Default] javax.naming.NameNotFoundException: cont not bound
> > [Default]       at
> > org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
> > [Default]
> > [Default]       at
> > org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
> > [Default]
> > [Default]       at
> > org.jnp.server.NamingServer.getObject(NamingServer.java:487)
> > [Default]
> > [Default]       at
> > org.jnp.server.NamingServer.lookup(NamingServer.java:282)
> > [Default]
> > [Default]       at
> > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
> > [Default]
> > [Default]       at
> > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> > [Default]
> > [Default]       at javax.naming.InitialContext.lookup(Unknown Source)
> > [Default]
> > [Default]       at
> > testejb.ContactTestClient1.<init>(ContactTestClient1.java:50)
> > [Default]
> > [Default]       at testejb.ContactBeanBMP.<init>(ContactBeanBMP.java:25)
> > [Default]
> > [Default]       at java.lang.Class.newInstance0(Native Method)
> > [Default]
> > [Default]       at java.lang.Class.newInstance(Unknown Source)
> > [Default]
> > [Default]       at
> > org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
> > (AbstractVerifier.java:356)
> > [Default]
> > [Default]       at
> > org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
> > fier11.java:1209)
> > [Default]
> > [Default]       at
> > org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
> > 1.java:120)
> > [Default]
> > [Default]       at
> > org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
> > [Default]
> > [Default]       at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
> > [Default]
> > [Default]       at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
> > [Default]
> > [Default]       at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
> > [Default]
> > [Default]       at java.lang.reflect.Method.invoke(Native Method)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1628)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1523)
> > [Default]
> > [Default]       at
> > org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:4
> > 86)
> > [Default]
> > [Default]       at
> > org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.ja
> > va:464)
> > [Default]
> > [Default]       at
> > org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
> > [Default]
> > [Default]       at java.lang.reflect.Method.invoke(Native Method)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1628)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1523)
> > [Default]
> > [Default]       at
> > org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
> > [Default]
> > [Default]       at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
> > [Default]
> > [Default]       at
> > org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
> > [Default]
> > [Default]       at
> > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:
> > 107)
> > [Default]
> > [Default]       at java.lang.reflect.Method.invoke(Native Method)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1628)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1523)
> > [Default]
> > [Default]       at
> > org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(C
> > onfigurationService.java:836)
> > [Default]
> > [Default]       at $Proxy0.start(Unknown Source)
> > [Default]
> > [Default]       at
> > org.jboss.util.ServiceControl.start(ServiceControl.java:81)
> > [Default]
> > [Default]       at java.lang.reflect.Method.invoke(Native Method)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1628)
> > [Default]
> > [Default]       at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1523)
> > [Default]
> > [Default]       at org.jboss.Main.<init>(Main.java:210)
> > [Default]
> > [Default]       at org.jboss.Main$1.run(Main.java:116)
> > [Default]
> > [Default]       at java.security.AccessController.doPrivileged(Native
> > Method)
> > [Default]
> > [Default]       at org.jboss.Main.main(Main.java:112)
> > [Default]
> > [Verifier]
> > Bean   : Contact
> > Method : public abstract Contact findByPrimaryKey(String) throws
> > RemoteException, Fin
> > derException
> > Section: 9.2.8
> > Warning: All the exceptions defined in the throws clause of an ejbFind
> > method of the
> > entity bean class must be included in the throws clause of the
> > matching find
> > method o
> > f the home interface.
> >
> > [Container factory] Deploying Contact
> > [Default] null
> > [Bean Cache] Cache policy scheduler started
> > [ContainerManagement] Initializing
> > [ContainerManagement] Initialized
> > [ContainerManagement] Starting
> > [ContainerManagement] Started
> > [Container factory] Deployed application:
> > file:/F:/jboss/tmp/deploy/Default/testejb.j
> > ar
> > [J2EE Deployer Default] J2EE application:
> > file:/F:/jboss/deploy/testejb.jar
> > is deploy
> > ed.
> >
> > ====================snip====================
> >
> >
> > Thanks you guys/gals for yr time
> >
> > ssssehhhss.. i havent had dinner yet..
> > John
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>

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

Reply via email to