users@glassfish.java.net

[gf-users] Problem with starting glassfish: Consoloe does not load

From: pooya zade <pooyazade_at_yahoo.de>
Date: Thu, 7 Jan 2016 11:12:14 +0000 (UTC)

Hello there.I am new with Glassfish and Java. (about 1 year now)The problem I got now is: when I start the glassfish server, I get  server running, but also an error, that the admin console could not be
installed. The errors are as follows:----------------------------------------------
2016-01-07T11:55:55.390+0100|Information: Listening to REST requests at context: /management/domain.
2016-01-07T11:55:55.547+0100|Information: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl_at_b8cea8 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl_at_174f500.
2016-01-07T11:55:55.562+0100|Information: Problem while attempting to install admin console!
org.jvnet.hk2.config.TransactionFailure: Keys cannot be duplicate. Old value of this key property, nullwill be retained
    at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:209)
    at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:139)
    at com.sun.enterprise.v3.admin.adapter.InstallerThread.install(InstallerThread.java:166)
    at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:99)
Caused by: java.lang.IllegalArgumentException: Keys cannot be duplicate. Old value of this key property, nullwill be retained
    at org.jvnet.hk2.config.WriteableView.setter(WriteableView.java:251)
    at org.jvnet.hk2.config.WriteableView.invoke(WriteableView.java:161)
    at com.sun.proxy.$Proxy120.setName(Unknown Source)
    at com.sun.enterprise.v3.admin.adapter.InstallerThread$1.run(InstallerThread.java:135)
    at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:180)
    ... 3 more---------------------------------------------------------
I can deploy my application. But when I run the client to test the app, I get an error concerning connection pool etc.(s. below), which I
can not solve because I cannot open the admin console of the server to find out where the problem comes from.... :(
-----------------------------------------------------java.lang.NullPointerException
    at com.sun.enterprise.naming.impl.SerialContext.getORB(SerialContext.java:347)
    at com.sun.enterprise.naming.impl.SerialContext.getProviderCacheKey(SerialContext.java:354)
    at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:384)
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:329)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:477)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
    at Main.main(Main.java:23)
Exception in thread "main" javax.naming.NamingException: Lookup failed for 'jms/Queue' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is java.lang.NullPointerException]]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
    at Main.main(Main.java:23)
Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is java.lang.NullPointerException]
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:334)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:477)
    ... 3 more
Caused by: java.lang.NullPointerException
    at com.sun.enterprise.naming.impl.SerialContext.getORB(SerialContext.java:347)
    at com.sun.enterprise.naming.impl.SerialContext.getProviderCacheKey(SerialContext.java:354)
    at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:384)
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:329)
    ... 4 more
---------------------------------------------
I would appreciate for any help. Thankssara