1 Reply Latest reply: Jan 16, 2013 3:16 PM by 893630 RSS

    deployment issue

    893630
      Hi,
      I have javafx 2.2 application which connects to the ejb deployed in the remote server through JNDI lookup.
      I have successfully created the .exe file for the client side using InnoIDE and self Contained deployment package, which works great on my system. However, when I try to run the application, after installing, on other systems (XP and Win 7), I observe mix results. In Some it works fine and in some I witness following exception in serviceLocator.
      SEVERE: injection failed on com.sun.enterprise.v3.server.ServerContextImpl.env with class org.glassfish.server.ServerEnvironmentImpl
      org.jvnet.hk2.component.ComponentException: injection failed on com.sun.enterprise.v3.server.ServerContextImpl.env with class org.glassfish.server.ServerEnvironmentImpl
           at org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:277)
           at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:163)
           at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
           at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
           at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
           at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
           at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
           at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
           at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
           at org.jvnet.hk2.component.Habitat.getByContract(Habitat.java:1042)
           at com.sun.enterprise.naming.impl.SerialContext.<init>(SerialContext.java:323)
           at com.sun.enterprise.naming.impl.SerialContext.<init>(SerialContext.java:335)
           at com.sun.enterprise.naming.impl.SerialInitContextFactory.createInitialContext(SerialInitContextFactory.java:358)
           at com.sun.enterprise.naming.impl.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:353)
           at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:69)
           at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
           at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
           at javax.naming.InitialContext.init(InitialContext.java:242)
           at javax.naming.InitialContext.<init>(InitialContext.java:216)
           at gov.ca.lc.utilities.ServiceLocator.<init>(ServiceLocator.java:45)
           at gov.ca.lc.utilities.ServiceLocator.<clinit>(ServiceLocator.java:35)
           at gov.ca.lc.login.Authenticator.validateLogin(Authenticator.java:25)
           at gov.ca.lc.controllers.LoginController.processLogin(LoginController.java:39)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:601)
           at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1435)
           at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:69)
           at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
           at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
           at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
           at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
           at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
           at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
           at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
           at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
           at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
           at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
           at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:28)
           at javafx.event.Event.fireEvent(Event.java:171)
           at javafx.scene.Node.fireEvent(Node.java:6863)
           at com.sun.javafx.scene.control.behavior.TextFieldBehavior.fire(TextFieldBehavior.java:148)
           at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callAction(TextInputControlBehavior.java:159)
           at com.sun.javafx.scene.control.behavior.BehaviorBase.callActionForEvent(BehaviorBase.java:157)
           at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callActionForEvent(TextInputControlBehavior.java:117)
           at com.sun.javafx.scene.control.behavior.BehaviorBase$1.handle(BehaviorBase.java:121)
           at com.sun.javafx.scene.control.behavior.BehaviorBase$1.handle(BehaviorBase.java:119)
           at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:64)
           at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
           at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
           at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
           at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
           at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
           at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
           at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
           at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
           at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
           at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
           at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
           at javafx.event.Event.fireEvent(Event.java:171)
           at javafx.scene.Scene$KeyHandler.process(Scene.java:3509)
           at javafx.scene.Scene$KeyHandler.access$2300(Scene.java:3468)
           at javafx.scene.Scene.impl_processKeyEvent(Scene.java:1900)
           at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2266)
           at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:127)
           at com.sun.glass.ui.View.handleKeyEvent(View.java:518)
           at com.sun.glass.ui.View.notifyKey(View.java:951)
           at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
           at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
           at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
           at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.NullPointerException
           at java.io.File.<init>(File.java:251)
           at org.glassfish.server.ServerEnvironmentImpl.postConstruct(ServerEnvironmentImpl.java:148)
           at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
           at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
           at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
           at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
           at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
           at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
           at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1048)
           at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1029)
           at com.sun.hk2.component.InjectInjectionResolver.getComponentInjectValue(InjectInjectionResolver.java:159)
           at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:90)
           at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
           ... 70 more
      Any idea how to fix this .

      Edited by: 890627 on Jan 14, 2013 1:08 PM

      Edited by: 890627 on Jan 14, 2013 1:28 PM
        • 1. Re: deployment issue
          893630
          Strange thing -- the application works well in my system including couple of 32 bits window (xp & wint 7) systems . However, in other 32 bits machine the above mentioned exception is thrown. I am not sure what special environment I have in my system which make it works and not in others as it is the same netbeans 7.3(beta 2) generated bundle I am using in all the places.

          As I understand , the concept of bundle is to make the application portable without installing latest jre's in the client systems. But with this instability , I am finding difficulty in deploying the application .

          Would be thankful if someone could shed some light on it.

          Thanks