Hi, Thanks for your reply. ok my application works fine with command line
appclient -client myapplicationclient.jar also in netbean environment. I
deploy my client application on glassfish and try to launch it I get the
error .... 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/myEAR1/myEAR1-ejb/myServices!mypackage.myServicesRemote' 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
interfaceraus.myServicesRemote [Root exception is
sun.misc.InvalidJarIndexException: Invalid index]] 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
mymainpackage.myclass.main(myclass.java:52) ... 17 more Caused by:
javax.naming.NamingException: ejb ref resolution error for remote business
interfaceraus.myServicesRemote [Root exception is
sun.misc.InvalidJarIndexException: Invalid index] 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: sun.misc.InvalidJarIndexException: Invalid index at
com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown
Source) at
com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown
Source) at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown
Source) at java.net.URLClassLoader$1.run(Unknown Source) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(Unknown Source) at
com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
org.glassfish.appclient.client.MaskingClassLoader.loadClass(MaskingClassLoader.java:95)
at java.lang.ClassLoader.loadClass(Unknown Source) 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 Could you please help this issue? Thanks, h.
--
[Message sent by forum member 'haleh']
View Post: http://forums.java.net/node/891517