users@glassfish.java.net

Re: (netbeans,mandriva) error while launching JEE client : ...

From: <forums_at_java.net>
Date: Fri, 29 Apr 2011 10:50:22 -0500 (CDT)

 well, I don(t know why but I can't access to the administration page of
glassfish.

yet the client works from netbeans (it puts an entity in the database and
retrieves all the records from the database).

it don't works from the command line.

even with your suggestion (System.setProperty...).

here is the error message :

[olivier_at_localhost ~]$ java -jar
"/home/olivier/NetBeansProjects/YAPS3_and_another_one/dist/YAPS3_and_another_one.jar"
Début ...
29 avr. 2011 17:46:36
com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
INFO: Cannot find javadb client jar file, derby jdbc driver will not be
available by default.
29 avr. 2011 17:46:36 org.glassfish.enterprise.iiop.impl.GlassFishORBManager
getCorbalocURL
INFO: list[i] ==> 127.0.0.1:3700
29 avr. 2011 17:46:36 org.glassfish.enterprise.iiop.impl.GlassFishORBManager
getCorbalocURL
INFO: corbaloc url ==> iiop:1.2_at_127.0.0.1:3700
access_to_yaps.ServiceLocatorException: javax.naming.NamingException: Lookup
failed for 'java:global/YAPS3_EJB/CustomerBean!ejbs.CustomerRemote' in
SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=3700,
java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory,
java.naming.corba.orb=com.sun.corba.ee.impl.orb.ORBImpl_at_1c6745b9,
org.omg.CORBA.ORBInitialHost=localhost,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
com.sun.appserv.ee.iiop.endpointslist=corbaloc:iiop:1.2_at_127.0.0.1:3700} [Root
exception is javax.naming.NamingException: ejb ref resolution error for
remote business interfaceejbs.CustomerRemote [Root exception is
java.lang.ClassNotFoundException: ejbs.CustomerRemote]]
Exception in thread "main" java.lang.NoClassDefFoundError:
ejbs/CustomerRemote
at access_to_yaps.CustomerDelegate.createCustomer(CustomerDelegate.java:22)
at
yaps3_and_another_one.YAPS3_and_another_one.main(YAPS3_and_another_one.java:43)
Caused by: java.lang.ClassNotFoundException: ejbs.CustomerRemote
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
... 2 more
any idea?

 


--
[Message sent by forum member 'lolveley']
View Post: http://forums.java.net/node/796243