Skip to main content

Problems with Java Web Start and Glassfish b42

2 replies [Last post]
augustorighetto
Offline
Joined: 2005-11-09

I'm using Netbeans to develop a small application client using Glassfish b42.
After deploying the .ear file by Netbeans or Administration Console the application client only works with "appclient -client ...". When I try running with javaws nothing happens but this trace is generated:

/usr/share/themes/Human/gtk-2.0/gtkrc:7: Failed to parse property value " GTK_SHADOW_NONE " for `GtkMenuItem::shadow-type'
/usr/share/themes/Human/gtk-2.0/gtkrc:58: Engine "clearlooks" is unsupported, ignoring
/usr/share/themes/Human/gtk-2.0/gtkrc:7: Failed to parse property value " GTK_SHADOW_NONE " for `GtkMenuItem::shadow-type'
/usr/share/themes/Human/gtk-2.0/gtkrc:58: Engine "clearlooks" is unsupported, ignoring
Apr 24, 2006 9:12:15 PM com.sun.enterprise.appclient.MainWithModuleSupport prepareSecurity
INFO: Security Manager is ON.
Apr 24, 2006 9:12:16 PM com.sun.enterprise.appclient.MainWithModuleSupport setTargetServerProperties
INFO: ACC001:Using ClientContainer file: [/tmp/sunacc62581.xml].
Apr 24, 2006 9:12:16 PM com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
INFO: ACC014: ORB host name: [localhost.localdomain]
Apr 24, 2006 9:12:16 PM com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
INFO: ACC013: ORB port number: [3700]
Apr 24, 2006 9:12:18 PM com.sun.enterprise.appclient.MainWithModuleSupport loadMainClientClass
INFO: ACC009: Load Application Class: [bdco.Main]
Apr 24, 2006 9:12:19 PM com.sun.enterprise.appclient.MainWithModuleSupport
WARNING: ACC003: Application threw an exception.
com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref bdco.Main/gerenteProjeto@jndi: br.com.petrobras.bdco.interfaces.GerenteProjeto - > GerenteProjetoBeaninto class bdco.Main
at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:356)
at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
at com.sun.enterprise.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:131)
at com.sun.enterprise.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:123)
at com.sun.enterprise.appclient.MainWithModuleSupport.(MainWithModuleSupport.java:324)
at com.sun.enterprise.appclient.Main.main(Main.java:180)
at com.sun.enterprise.appclient.jws.boot.JWSACCMain.run(JWSACCMain.java:121)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: javax.naming.NamingException: ejb ref resolution error for remote business interfacebr.com.petrobras.bdco.interfaces.GerenteProjeto [Root exception is java.lang.ClassCastException]
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:313)
at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:61)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:314)
at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:833)
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:274)
... 13 more
Caused by: java.lang.ClassCastException
at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$12.read(DynamicMethodMarshallerImpl.java:298)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:424)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:162)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197) at com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(_GenericEJBHome_Generated_DynamicStub.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:305)
... 21 more
Caused by: java.lang.ClassCastException: Object is not of remote type java.rmi.Remote
at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:221)
... 33 more
Error attempting to launch JWSACCMain.main
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:851)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1257)
at com.sun.enterprise.appclient.jws.boot.JWSACCMain.main(JWSACCMain.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1108)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1055)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:898)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:469)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:217)
at com.sun.javaws.Launcher.run(Launcher.java:164)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref bdco.Main/gerenteProjeto@jndi: br.com.petrobras.bdco.interfaces.GerenteProjeto - > GerenteProjetoBeaninto class bdco.Main
at com.sun.enterprise.appclient.MainWithModuleSupport.(MainWithModuleSupport.java:363)
at com.sun.enterprise.appclient.Main.main(Main.java:180)
at com.sun.enterprise.appclient.jws.boot.JWSACCMain.run(JWSACCMain.java:121)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref bdco.Main/gerenteProjeto@jndi: br.com.petrobras.bdco.interfaces.GerenteProjeto - > GerenteProjetoBeaninto class bdco.Main
at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:356)
at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
at com.sun.enterprise.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:131)
at com.sun.enterprise.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:123)
at com.sun.enterprise.appclient.MainWithModuleSupport.(MainWithModuleSupport.java:324)
... 9 more
Caused by: javax.naming.NamingException: ejb ref resolution error for remote business interfacebr.com.petrobras.bdco.interfaces.GerenteProjeto [Root exception is java.lang.ClassCastException]
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:313)
at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:61)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:314)
at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:833)
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:274)
... 13 more
Caused by: java.lang.ClassCastException
at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$12.read(DynamicMethodMarshallerImpl.java:298)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:424)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:162)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197) at com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(_GenericEJBHome_Generated_DynamicStub.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:305)
... 21 more
Caused by: java.lang.ClassCastException: Object is not of remote type java.rmi.Remote
at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:221)
... 33 more

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tjquinn
Offline
Joined: 2005-03-30

Augusto (I hope I have your name correct),

Please try with a more recent promoted build and let us know if it works better for you. This error was found and corrected.

This is the GlassFish downloads page:

https://glassfish.dev.java.net/public/downloadsindex.html

Look for the promoted build 45 link, the more recent promoted build.

Thanks.

- Tim

augustorighetto
Offline
Joined: 2005-11-09

Tim,

Yes, Augusto is my first name and Righetto is my surname.

Thank you for the tip. It works very well!
I thought milestone 6 was enough to my application.
I'll always try to use the last build from now on.

I'm surprised with your excellent work here. Congratulations!

Thanks.