users@glassfish.java.net

Re: Runnging application client as web start

From: <forums_at_java.net>
Date: Mon, 22 Oct 2012 14:20:17 -0500 (CDT)

Hi Tim, Thanks for your reply. We are using Glassfish on unix machine
GlassFish Server Open Source Edition 3.1.2.2 (build 5) Also our development
environment is Netbeans and on the client the java platform is jdk 1.6 I
cleaned up the cache and all resource nothing is changed ... seems that
client can not reach the remote ejb one important note I will describe you
after error stack please read also below java.lang.RuntimeException: Error
launching or running the application at
org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.sun.javaws.Launcher.executeApplication(Unknown Source) at
com.sun.javaws.Launcher.executeMainClass(Unknown Source) at
com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at
com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown
Source) Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException at
org.glassfish.appclient.client.JWSAppClientContainerMain$ClientRunner.run(JWSAppClientContainerMain.java:179)
at
org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:138)
... 9 more Caused by: java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:438)
at
org.glassfish.appclient.client.AppClientFacade.launch(AppClientFacade.java:182)
at
org.glassfish.appclient.client.JWSAppClientContainerMain$ClientRunner.run(JWSAppClientContainerMain.java:169)
... 10 more Caused by: javax.naming.NamingException: Lookup failed for
'java:global/EnterpriseApplication2/EnterpriseApplication2-ejb/NewSessionBean'
in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is
javax.naming.NamingException: ejb ref resolution error for remote business
interfacesession.NewSessionBeanRemote [Root exception is
java.lang.ClassNotFoundException: session.NewSessionBeanRemote]] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
at javax.naming.InitialContext.lookup(Unknown Source) at
javaapplication14.JavaApplication14.main(JavaApplication14.java:49) ... 17
more Caused by: javax.naming.NamingException: ejb ref resolution error for
remote business interfacesession.NewSessionBeanRemote [Root exception is
java.lang.ClassNotFoundException: session.NewSessionBeanRemote] at
com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:433) at
com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:75)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) at
com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:556)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:514)
... 20 more Caused by: java.lang.ClassNotFoundException:
session.NewSessionBeanRemote at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(Unknown Source) at
org.glassfish.appclient.client.acc.ACCClassLoader.findClassUnshadowed(ACCClassLoader.java:235)
at
org.glassfish.appclient.client.acc.ACCClassLoader.findClass(ACCClassLoader.java:215)
at java.lang.ClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
com.sun.ejb.EJBUtils.getBusinessIntfClassLoader(EJBUtils.java:687) at
com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:462) at
com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:413) ... 24
more Another point is that now even when I try to run with appclient -client
command this also even doesnot run although it worked before I get error What
is cause of this error do you have any explanation for this one? Exception in
thread "main" java.lang.NoClassDefFoundError:
org/glassfish/appclient/client/acc/UserError at
java.lang.Class.getDeclaredMethods0(Native Method) at
java.lang.Class.privateGetDeclaredMethods(Unknown Source) at
java.lang.Class.getMethod0(Unknown Source) at
java.lang.Class.getMethod(Unknown Source) at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source) at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
org.glassfish.appclient.client.acc.UserError at
java.net.URLClassLoader$1.run(Unknown Source) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) ... 6 more Thanks, h.

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