users@glassfish.java.net

[gf-users] Glassfish 4.0 Start-Domain Failed

From: Charissa Lim <Charissa.Lim_at_us.fujitsu.com>
Date: Wed, 5 Nov 2014 22:53:59 -0800

Hi!

I've been trying to figure out this error for 2 days now and I can't seem to find anything on the net either.
I am trying to start my domain but it fails.
What am I missing?

I've attached my domain.xml just in case.
We've been using Glassfish 2.1.1 and it was working OK but we're trying to upgrade to Glassfish 4.1 now and I am getting this error below.

D:\Programs\AppServers_91\Domains\CCSV4\bin>d:\programs\glassfish4\glassfish\bin
\asadmin start-domain --domaindir d:\programs\appservers_91\domains CCSV4
Enter master password (3) attempt(s) remain)>
Waiting for CCSV4 to start ...Error starting domain CCSV4.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:

Launching GlassFish on Felix platform
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRunt
ime_at_165f06 in service registry.
Found populator: com.sun.enterprise.v3.server.GFDomainXml
Completed shutdown of GlassFish runtime
We are in non-embedded mode, so org.glassfish.main.core.glassfish [107] has nothing to do.
Nov 06, 2014 1:08:50 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvis
ioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.boots
trap.osgi.BundleProvisioner.
Nov 06, 2014 1:08:50 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvis
ioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Nov 06, 2014 1:08:50 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvis
ioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Nov 06, 2014 1:08:52 PM org.glassfish.security.services.common.SecurityAccessVal
idator checkPerm
WARNING: Check Permission failed in lookup for permission = ("org.glassfish.secu
rity.services.common.SecureServiceAccessPermission" "security/service/credential
/provider/jceks")
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMa
in.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: org.glassfish.embeddable.GlassFishException: com.sun.enterprise.modul
e.bootstrap.BootException: Unable to load service
        at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRunt
ime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:101)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator.newG
lassFish(GlassFishRuntimeDecorator.java:68)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime.newG
lassFish(OSGiGlassFishRuntime.java:91)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
GlassFishMain.java:113)
        ... 6 more
Caused by: com.sun.enterprise.module.bootstrap.BootException: Unable to load ser
vice
        at com.sun.enterprise.module.bootstrap.Main.findStartupService(Main.java
:228)
        at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRunt
ime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:96)
        ... 9 more
Caused by: A MultiException has 4 exceptions. They are:
1. java.security.AccessControlException: access denied ("org.glassfish.security.
services.common.SecureServiceAccessPermission" "security/service/credential/provider/jceks")

2. java.lang.IllegalStateException: Unable to perform operation: post constructon com.sun.enterprise.v3.server.SystemTasksImpl

3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.sun.enterprise.v3.server.AppServerStartup errors were found

4. java.lang.IllegalStateException: Unable to perform operation: resolve on com.sun.enterprise.v3.server.AppServerStartup

        at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:88)
        at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreat
or.java:252)
        at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360)
        at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:
461)
        at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.ja
va:114)
        at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.ja
va:102)
        at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.cal
l(Cache.java:97)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(C
ache.java:154)
        at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
        at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext
.java:153)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceL
ocatorImpl.java:690)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorIm
pl.java:672)
        at com.sun.enterprise.module.bootstrap.Main.findStartupService(Main.java
:221)
        ... 10 more
Caused by: java.security.AccessControlException: access denied ("org.glassfish.s
ecurity.services.common.SecureServiceAccessPermission" "security/service/credent
ial/provider/jceks")
        at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:457)
        at java.security.AccessController.checkPermission(AccessController.java:
884)
        at org.glassfish.security.services.common.SecurityAccessValidator.checkP
erm(SecurityAccessValidator.java:279)
        at org.glassfish.security.services.common.SecurityAccessValidator.valida
teLookup(SecurityAccessValidator.java:188)
        at org.glassfish.security.services.common.SecurityAccessValidator.valida
te(SecurityAccessValidator.java:83)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.validate(ServiceLocatorImpl
.java:248)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.narrow(ServiceLocatorImpl.j
ava:2164)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.access$900(ServiceLocatorIm
pl.java:119)
        at org.jvnet.hk2.internal.ServiceLocatorImpl$8.compute(ServiceLocatorImp
l.java:1063)
        at org.jvnet.hk2.internal.ServiceLocatorImpl$8.compute(ServiceLocatorImp
l.java:1058)
        at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFut
ure$1.call(LRUHybridCache.java:115)
        at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFut
ure$1.call(LRUHybridCache.java:111)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFut
ure.run(LRUHybridCache.java:173)
        at org.glassfish.hk2.utilities.cache.LRUHybridCache.compute(LRUHybridCac
he.java:292)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetDescriptor(Servi
ceLocatorImpl.java:1147)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceL
ocatorImpl.java:687)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorIm
pl.java:655)
        at org.glassfish.config.support.TranslatedConfigView$1.run(TranslatedCon
figView.java:167)
        at org.glassfish.config.support.TranslatedConfigView$1.run(TranslatedCon
figView.java:165)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.glassfish.config.support.TranslatedConfigView.domainPasswordAlias
Store(TranslatedConfigView.java:163)
        at org.glassfish.config.support.TranslatedConfigView.getTranslatedValue(
TranslatedConfigView.java:83)
        at com.sun.enterprise.v3.server.SystemTasksImpl.resolveJavaConfig(System
TasksImpl.java:235)
        at com.sun.enterprise.v3.server.SystemTasksImpl.postConstruct(SystemTask
sImpl.java:109)
        at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java
:329)
        at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377)
        at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:
461)
        at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate
(AsyncRunLevelContext.java:227)
        at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelConte
xt.java:84)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorIm
pl.java:638)
        at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolve
r.java:77)
        at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:214)
        at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreat
or.java:237)
        ... 23 more
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=192m; support wa
s removed in 8.0

Command start-domain failed.

Hope to hear from you soon!

Thanks,
Charissa Lim
Retail Services

WESERV SYSTEMS INTERNATIONAL, INC.
12/F Net Square Building
Third Avenue Corner 28th Street, Crescent Park West,
Bonifacio Global City, Taguig City, 1634 Philippines
Tel. No.: (63-2) 793-7900 local 5708 / (919) 521-5898
Email: charissa.lim_at_us.fujitsu.com<mailto:carl.rosebrugh_at_us.fujitsu.com>
Web: www.weserv.com<http://www.weserv.com/>

WeServ's Software & Product Integration Services Center is certified to ISO 27001:2005.

DISCLAIMER

This communication and the information contained in it are confidential and may be legally privileged. The content is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it.

If you are not the intended recipient it is hereby brought to your notice that any disclosure, copying, distribution, or dissemination, or alternatively taking of any action in reliance on it, is strictly prohibited.

If you have received this communication in error, please notify the sender by reply, mail or telephone and delete the original message from your email system immediately.