users@glassfish.java.net

Embedded Glassfish 3.1 won't run from C:\Program Files on Windows

From: <forums_at_java.net>
Date: Thu, 13 Oct 2011 16:58:11 -0500 (CDT)

We just moved from embedded Tomcat 6 to Embedded GlassFish 3.1 within our
application.

We are setting the instance root so it puts its files within our
application's file hierarchy.

However although it starts up fine. It won't deploy our war file due to the
path being C:\Program Files.

We are not able to change where our application is installed (like moving it
under C:\ourApp because we have existing customers with the application
installed in its default location of C:\Program Files, as is Windows
convention.

Here are the errors:

---------------------------------------------------------------

Oct 13, 2011 2:27:38 PM
com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
INFO: Cannot find javadb client jar file, derby jdbc driver will not be
available by default.
Oct 13, 2011 2:27:39 PM org.hibernate.validator.util.Version <clinit>
INFO: Hibernate Validator null
Oct 13, 2011 2:27:39 PM
org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
INFO: Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.
Oct 13, 2011 2:27:39 PM com.sun.enterprise.v3.services.impl.GrizzlyService
createNetworkProxy
INFO: Network listener https-listener on port 0 disabled per domain.xml
Oct 13, 2011 2:27:39 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish Server Open Source Edition 3.1.1 (12) startup time : Embedded
(798ms), startup services(323ms), total(1,121ms)
Oct 13, 2011 2:27:39 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1
onReady
INFO: Grizzly Framework 1.9.36 started in: 66ms - bound to [0.0.0.0:9090]
Oct 13, 2011 2:27:39 PM
org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread
run
INFO: JMXStartupService: JMXConnector system is disabled, skipping.
Oct 13, 2011 2:27:44 PM com.sun.enterprise.v3.server.SnifferManagerImpl
getURIs
WARNING: Illegal character in path at index 16: file:/C:/Program
Files/EMP/Http/domains/domain1/applications/emp/WEB-INF/lib/commons-beanutils-1.8.0.jar
java.net.URISyntaxException: Illegal character in path at index 16:
file:/C:/Program
Files/EMP/Http/domains/domain1/applications/emp/WEB-INF/lib/commons-beanutils-1.8.0.jar
    at java.net.URI$Parser.fail(Unknown Source)
    at java.net.URI$Parser.checkChars(Unknown Source)
    at java.net.URI$Parser.parseHierarchical(Unknown Source)
    at java.net.URI$Parser.parse(Unknown Source)
    at java.net.URI.<init>(Unknown Source)
    at java.net.URL.toURI(Unknown Source)
    at
com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)
    at
com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)
    at
com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:606)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
    at
com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
    at
com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:105)
    at com.pop3gateway.HttpServer.run(HttpServer.java:111)
    at java.lang.Thread.run(Unknown Source)
Oct 13, 2011 2:27:44 PM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: SEC1002: Security Manager is OFF.
Oct 13, 2011 2:27:44 PM org.glassfish.api.ActionReport failure
SEVERE: Exception while deploying the app [emp]
Oct 13, 2011 2:27:44 PM com.sun.enterprise.v3.server.ApplicationLifecycle
deploy
SEVERE: injection failed on
com.sun.enterprise.security.SecurityLifecycle.sslUtils with class
com.sun.enterprise.security.ssl.SSLUtils
org.jvnet.hk2.component.ComponentException: injection failed on
com.sun.enterprise.security.SecurityLifecycle.sslUtils with class
com.sun.enterprise.security.ssl.SSLUtils
    at
org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:277)
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:159)
    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
com.sun.enterprise.security.SecuritySniffer.setup(SecuritySniffer.java:109)
    at
com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:116)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainer(ApplicationLifecycle.java:944)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:652)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
    at
com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
    at
com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:105)
    at com.pop3gateway.HttpServer.run(HttpServer.java:111)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.jvnet.hk2.component.ComponentException: injection failed on
com.sun.enterprise.security.ssl.SSLUtils.secSupp with class
com.sun.enterprise.server.pluggable.SecuritySupport
    at
org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:277)
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:159)
    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.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)
    ... 24 more
Caused by: org.jvnet.hk2.component.ComponentException: Failed to create class
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl
    at
com.sun.hk2.component.ConstructorCreator.create(ConstructorCreator.java:73)
    at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:80)
    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.getComponent(Habitat.java:796)
    at
com.sun.hk2.component.InjectInjectionResolver.getServiceInjectValue(InjectInjectionResolver.java:147)
    at
com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:88)
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
    ... 36 more
Caused by: java.lang.IllegalStateException: java.io.FileNotFoundException:
C:\Program Files\EMP\Http\domains\domain1\config\keystore.jks (The system
cannot find the file specified)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:217)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.initJKS(SecuritySupportImpl.java:150)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.<init>(SecuritySupportImpl.java:122)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.<init>(SecuritySupportImpl.java:117)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at
com.sun.hk2.component.ConstructorCreator.create(ConstructorCreator.java:65)
    ... 44 more
Caused by: java.io.FileNotFoundException: C:\Program
Files\EMP\Http\domains\domain1\config\keystore.jks (The system cannot find
the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.loadKS(SecuritySupportImpl.java:250)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:208)
    ... 54 more
Oct 13, 2011 2:27:44 PM org.glassfish.deployment.admin.DeployCommand execute
SEVERE: Exception while deploying the app [emp] : injection failed on
com.sun.enterprise.security.SecurityLifecycle.sslUtils with class
com.sun.enterprise.security.ssl.SSLUtils
org.jvnet.hk2.component.ComponentException: injection failed on
com.sun.enterprise.security.ssl.SSLUtils.secSupp with class
com.sun.enterprise.server.pluggable.SecuritySupport
    at
org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:277)
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:159)
    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.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)
    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
com.sun.enterprise.security.SecuritySniffer.setup(SecuritySniffer.java:109)
    at
com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:116)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainer(ApplicationLifecycle.java:944)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:652)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
    at
com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
    at
com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:105)
    at com.pop3gateway.HttpServer.run(HttpServer.java:111)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.jvnet.hk2.component.ComponentException: Failed to create class
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl
    at
com.sun.hk2.component.ConstructorCreator.create(ConstructorCreator.java:73)
    at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:80)
    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.getComponent(Habitat.java:796)
    at
com.sun.hk2.component.InjectInjectionResolver.getServiceInjectValue(InjectInjectionResolver.java:147)
    at
com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:88)
    at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
    ... 36 more
Caused by: java.lang.IllegalStateException: java.io.FileNotFoundException:
C:\Program Files\EMP\Http\domains\domain1\config\keystore.jks (The system
cannot find the file specified)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:217)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.initJKS(SecuritySupportImpl.java:150)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.<init>(SecuritySupportImpl.java:122)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.<init>(SecuritySupportImpl.java:117)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at
com.sun.hk2.component.ConstructorCreator.create(ConstructorCreator.java:65)
    ... 44 more
Caused by: java.io.FileNotFoundException: C:\Program
Files\EMP\Http\domains\domain1\config\keystore.jks (The system cannot find
the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.loadKS(SecuritySupportImpl.java:250)
    at
com.sun.enterprise.security.ssl.impl.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:208)
    ... 54 more
 


--
[Message sent by forum member 'jakorsme']
View Post: http://forums.java.net/node/853024