dev@glassfish.java.net

ejb-container: org.jvnet.hk2.component.UnsatisfiedDependencyException

From: Paul Sterk <Paul.Sterk_at_Sun.COM>
Date: Mon, 14 Sep 2009 17:35:24 -0700

Hi,

I am building v3 from a new workspace on Windows Vista using cygwin.
java version is 1.6.0_14-b08.
and mvn is 2.2.1. I am seeing an UnsatisfiedDepedencyException. To
reproduce:

1) cd ejb/ejb-container
2) mvn install

There is a long stack trace shown below[1]. For some reason, the
*ejb\ejb-container\gfembed4037527060582632398tmp *directory is not being
created, leading to downstream failures. Does anyone know why this
happens on cygwin? This error does not happen on a SunOS box.

Thanks,
Paul

[1] -------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.glassfish.tests.ejb.EmbeddedTest
Sep 14, 2009 5:15:53 PM com.sun.enterprise.v3.server.SystemTasks
writePidFile
*WARNING: The domain's config directory does not exist:
C:\cygwin\home\psterk\src\v3\ejb\ejb-container\gfembed4037527060582632398tmp\config
Sep 14, 2009 5:15:53 PM com.sun.enterprise.v3.admin.IdmService verify
WARNING:
C:\cygwin\home\psterk\src\v3\ejb\ejb-container\gfembed4037527060582632398tmp\config\keystore.jks
(The system cannot find the path specified)*
Sep 14, 2009 5:15:53 PM com.sun.enterprise.v3.admin.IdmService postConstruct
WARNING: THIS SHOULD BE FIXED, IN EMBEDDED CASE, THERE IS NO MASTER
PASSWORD SET OR KEYSTORE DOES NOT EXIST ...
Sep 14, 2009 5:15:53 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish v3 startup time : Embedded(604ms) startup
services(438ms) total(1042ms)
Sep 14, 2009 5:15:53 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Sep 14, 2009 5:15:54 PM
com.sun.enterprise.transaction.JavaEETransactionManagerSimplified
initDelegates
INFO: Using
com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate as
the delegate
>>Started EJB Container Service....: server
>>EjbContainerUtil: com.sun.ejb.containers.EjbContainerUtilImpl_at_12368df
Sep 14, 2009 5:15:54 PM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: security.secmgroff
Sep 14, 2009 5:15:54 PM org.glassfish.api.ActionReport failure
SEVERE: Exception while deploying the app
org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied
dependency exception : private com.sun.enterprise.security.ssl.SSLUtils
com.sun.enterprise.securi
         at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:102)
         at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
         at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
         at java.security.AccessController.doPrivileged(Native Method)
         at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
         at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
         at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
         at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
         at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
         at
com.sun.enterprise.security.SecuritySniffer.setup(SecuritySniffer.java:105)
         at
com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:101)
         at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainer(ApplicationLifecycle.java:676)
         at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:424)
         at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:234)
         at
org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:191)
         at
org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:151)
         at org.glassfish.tests.ejb.EmbeddedTest.test(EmbeddedTest.java:33)
         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:597)
         at
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
         at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
         at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
         at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
         at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
         at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
         at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
         at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
         at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
         at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
         at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
         at org.apache.maven.surefire.Surefire.run(Surefire.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:597)
         at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
         at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Caused by: org.jvnet.hk2.component.ComponentException: Injection failed
on com.sun.enterprise.server.pluggable.SecuritySupport
com.sun.enterprise.security.ssl.SSLUt
         at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:107)
         at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
         at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
         at java.security.AccessController.doPrivileged(Native Method)
         at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
         at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
         at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
         at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
         at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
         at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:599)
         at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:580)
         at
com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:149)
         at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:81)
         ... 40 more
Caused by: java.lang.IllegalStateException: java.io.EOFException
         at
com.sun.enterprise.security.ssl.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:156)
         at
com.sun.enterprise.security.ssl.SecuritySupportImpl.initJKS(SecuritySupportImpl.java:107)
         at
com.sun.enterprise.security.ssl.SecuritySupportImpl.<init>(SecuritySupportImpl.java:86)
         at
com.sun.enterprise.security.ssl.SecuritySupportImpl.<init>(SecuritySupportImpl.java:81)
         at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at
com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:72)
         at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:71)
         at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
         at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
         at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
         at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:358)
         at
com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:144)
         at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:81)
         ... 52 more
Caused by: java.io.EOFException
         at java.io.DataInputStream.readInt(DataInputStream.java:375)
         at
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:628)
         at
sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
         at java.security.KeyStore.load(KeyStore.java:1185)
         at
com.sun.enterprise.security.ssl.SecuritySupportImpl.loadKS(SecuritySupportImpl.java:194)
         at
com.sun.enterprise.security.ssl.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:147)
         ... 69 more
javax.naming.NamingException: Lookup failed for
'java:global/sample/SimpleEjb' in SerialContext [Root exception is
javax.naming.NameNotFoundException: java:global]
         at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:434)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at org.glassfish.tests.ejb.EmbeddedTest.test(EmbeddedTest.java:38)
         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:597)
         at
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
         at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
         at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
         at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
         at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
         at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
         at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
         at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)^M
         at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)^M
         at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)^M
         at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)^M
         at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)^M
         at org.apache.maven.surefire.Surefire.run(Surefire.java:107)^M
SEVERE: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)^M
Sep 14, at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)^M
INFO: ++at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)^M
Sep 14, at java.lang.reflect.Method.invoke(Method.java:597)^Msks
writePidFile^M
WARNING:at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)^Membed6991228924767452378tmp\config^M
Sep 14, at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)^M
Caused by: javax.naming.NameNotFoundException:
java:global^Mbed6991228924767452378tmp\config\keystore.jks (The system
cannot find the path specified)
M at
com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:252)^M
Sep 14, at
com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:171)^M
WARNING:at
com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:58)^M^M
Sep 14, at
com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:100)^M
INFO: Glat
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:422)^MM