users@glassfish.java.net

Re: [Fwd: [embedded] How to unit test an EJB with Maven ?]

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Thu, 24 Sep 2009 19:58:47 -0700

Jerome Dochez wrote:
>
>
> Jerome
>
> On Sep 24, 2009, at 17:11, Marina Vatkina <Marina.Vatkina_at_Sun.COM> wrote:
>
>> Jerome Dochez wrote:
>>
>>> On Sep 24, 2009, at 11:25 AM, Marina Vatkina wrote:
>>>
>>>> Jerome,
>>>>
>>>> Which logger should the embedded container use? I have it setup
>>>> with the EJB_LOGGER, but then it'll be governed by the GF install,
>>>> right? If yes, this would affect the running GF instance as well,
>>>> and can be a big surprise...
>>>
>>> uh ? I really don't follow you here...
>>> please clarify, thx
>>
>>
>> uh-oh... the EJB embedded container code so far uses EJB_LOGGER *and
>> in the so far tested scenarios* a pre-installed GF.
>>
>> Q: how would somebody change the log level of the EJB embedded
>> container?
>>
>
> By changing the logging.properties used by the vm instance as define by
> the standard JDK system properties.
>
>
>> Will they modify logging.properties under GF domains/domain1/config?
>> If yes, it'll affect the running GF instance, right?
>>
>
> Only if they choose to use that logging.properties
>
>
>> If it's some other logging.properties, where would it be located?
>>
>
> Anywhere they want, we don't control it or care, it's just JDK. Logging
> configuration here, they set the system properties and we get levels
> from the JDK Apis directly.
>
>> Does it make sense now?
>
>
> Yes but I don't see a problem. Does it clarify ?

Yes, thank you :).

Regards,
-marina

>
>>
>> thanks,
>> -marina
>>
>>>>
>>>> thanks,
>>>> -marina
>>>>
>>>> Jerome Dochez wrote:
>>>>
>>>>> Marina
>>>>> I agree with Antonio, there is too much log. in particular, I
>>>>> find org.glassfish.ejb.embedded.DomainXmlTransformer very
>>>>> chatty. can you change the level.
>>>>> thanks, jerome
>>>>> On Sep 24, 2009, at 1:06 AM, Antonio Goncalves wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I've tested with the latest build (glassfishv3-b65-09_22_2009)
>>>>>> on Windows, and it seems to work better with the new glassfish-
>>>>>> embedded- static-shell.jar. I can lookup my EJB but when I call
>>>>>> a simple method that returns "Hello World", I have an
>>>>>> javax.ejb.AccessLocalException: Client not authorized for this
>>>>>> invocation.
>>>>>>
>>>>>> Is there anything I have to do in terms of authenication ?
>>>>>>
>>>>>> Thanks,
>>>>>> Antonio
>>>>>>
>>>>>>
>>>>>> PS : BTW, could you have less logs of level INFO, it makes the
>>>>>> output quite verbose. Maybe change some to FINE. The one giving
>>>>>> the Portable JNDI names is very valubale but others aren't.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> D:\Tools\Java\jdk1.6.0_14\bin\java -Didea.launcher.port=7536 "-
>>>>>> Didea.launcher.bin.path=D:\Tools\Idea\IntelliJ IDEA 8.1.3\bin" -
>>>>>> Dfile.encoding=windows-1252 -classpath "D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre \lib\alt-rt.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \charsets.jar;D: \Tools\Java\jdk1.6.0_14\jre\lib
>>>>>> \deploy.jar;D: \Tools\Java \jdk1.6.0_14\jre\lib\javaws.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre\lib \jce.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib \jsse.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \management- agent.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \plugin.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib \resources.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre\lib\rt.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib\ext \dnsns.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \ext\localedata.jar;D: \Tools\Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunjce_provider.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunmscapi.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib\ext
>>>>>> \sunpkcs11.jar;D: \Data\Mes documents \Documents\Other\Projects
>>>>>> \EJBContainer\out \production\Main;D: \Tools\GlassFish
>>>>>> \glassfishv3- b65-09_22_2009\glassfish\lib\embedded \glassfish-
>>>>>> embedded-static- shell.jar;D:\Data\Mes documents \Documents\Other
>>>>>> \Projects\EJBContainer \src\main\resources;D:\Tools \Idea
>>>>>> \IntelliJ IDEA 8.1.3\lib \idea_rt.jar"
>>>>>> com.intellij.rt.execution.application.AppMain
>>>>>> com.cdbookstore.javaee6.Main
>>>>>> 24 sept. 2009 09:02:50
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl getLocations
>>>>>> INFO: +++ installed_root_location : D:\Tools\GlassFish
>>>>>> \glassfishv3- b65-09_22_2009\glassfish
>>>>>> 24 sept. 2009 09:02:50
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl getLocations
>>>>>> INFO: +++ instance_root_location: D:\Tools\GlassFish
>>>>>> \glassfishv3- b65-09_22_2009\glassfish\domains\domain1
>>>>>> 24 sept. 2009 09:02:50
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl getLocations
>>>>>> INFO: +++ domain_file_location : D:\Tools\GlassFish \glassfishv3-
>>>>>> b65-09_22_2009\glassfish\domains\domain1\config \domain.xml
>>>>>> 24 sept. 2009 09:02:50
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Creating temp domain file: C:\DOCUME~1\Antonio
>>>>>> \LOCALS~1\Temp\domain3609101022882895340xml
>>>>>> 24 sept. 2009 09:02:51
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Skipping details of: applications
>>>>>> 24 sept. 2009 09:02:51
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Skipping details of: protocols
>>>>>> 24 sept. 2009 09:02:51
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Skipping details of: network-listeners
>>>>>> 24 sept. 2009 09:02:51
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: <== Created temp domain file: C:\DOCUME~1\Antonio
>>>>>> \LOCALS~1\Temp \domain3609101022882895340xml
>>>>>> java.lang.ClassNotFoundException:
>>>>>> com.sun.corba.ee.impl.transport.CorbaOutboundConnectionCacheProbeProvider
>
>
>
>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.addProvider
>>>>>> (MonitoringBootstrap.java:202)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.moduleStarted
>>>>>> (MonitoringBootstrap.java:164)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders
>>>>>> (MonitoringBootstrap.java:116)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders
>>>>>> (MonitoringBootstrap.java:416)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct
>>>>>> (MonitoringBootstrap.java:108)
>>>>>> at com.sun.hk2.component.AbstractWombImpl.inject
>>>>>> (AbstractWombImpl.java:174)
>>>>>> 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.v3.server.AppServerStartup.run
>>>>>> (AppServerStartup.java:208)
>>>>>> at com.sun.enterprise.v3.server.AppServerStartup.start
>>>>>> (AppServerStartup.java:129)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java: 457)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java: 401)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java: 310)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java: 303)
>>>>>> at com.sun.enterprise.glassfish.bootstrap.ASEmbedded.run
>>>>>> (ASEmbedded.java:101)
>>>>>> at com.sun.enterprise.glassfish.bootstrap.AbstractMain.start
>>>>>> (AbstractMain.java:41)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java:284)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java:61)
>>>>>> at org.glassfish.api.embedded.Server$Builder.build
>>>>>> (Server.java: 158)
>>>>>> at org.glassfish.api.embedded.Server$Builder.build
>>>>>> (Server.java: 140)
>>>>>> at org.glassfish.ejb.embedded.EJBContainerProviderImpl.init
>>>>>> (EJBContainerProviderImpl.java:155)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer
>>>>>> (EJBContainerProviderImpl.java:114)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:102)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> 24 sept. 2009 09:03:06
>>>>>> org.glassfish.admin.mbeanserver.JMXStartupService
>>>>>> $JMXConnectorsStarterThread run
>>>>>> INFO: JMXStartupService: JMX authenticator is
>>>>>> com.sun.enterprise.container.common.GenericAdminAuthenticator@ f221f6
>>>>>> 24 sept. 2009 09:03:07
>>>>>> org.glassfish.admin.mbeanserver.JMXStartupService
>>>>>> $JMXConnectorsStarterThread startConnector
>>>>>> INFO: JMXStartupService: Started JMXConnector, JMXService URL =
>>>>>> service:jmx:rmi://localhost:8686/jndi/rmi://localhost:8686/ jmxrmi
>>>>>> 24 sept. 2009 09:03:07
>>>>>> com.sun.enterprise.v3.server.AppServerStartup run
>>>>>> INFO: GlassFish v3 startup time : Embedded(12843ms) startup
>>>>>> services (3500ms) total(16343ms)
>>>>>> 24 sept. 2009 09:03:07 AppServerStartup run
>>>>>> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
>>>>>> 24 sept. 2009 09:03:07
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl addEJBModules
>>>>>> INFO: ==> Looking for EJB modules in classpath: D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib\alt-rt.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \charsets.jar;D:\Tools\Java\jdk1.6.0_14\jre\lib
>>>>>> \deploy.jar;D: \Tools \Java\jdk1.6.0_14\jre\lib\javaws.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre \lib\jce.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib \jsse.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \management- agent.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \plugin.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib \resources.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre\lib\rt.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib\ext \dnsns.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \ext\localedata.jar;D: \Tools\Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunjce_provider.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunmscapi.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib\ext
>>>>>> \sunpkcs11.jar;D: \Data\Mes documents \Documents\Other\Projects
>>>>>> \EJBContainer\out \production\Main;D: \Tools\GlassFish
>>>>>> \glassfishv3- b65-09_22_2009\glassfish\lib\embedded \glassfish-
>>>>>> embedded-static- shell.jar;D:\Data\Mes documents \Documents\Other
>>>>>> \Projects\EJBContainer \src\main\resources;D:\Tools \Idea
>>>>>> \IntelliJ IDEA 8.1.3\lib\idea_rt.jar
>>>>>> 24 sept. 2009 09:03:07
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... alt-rt.jar
>>>>>> 24 sept. 2009 09:03:07
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:07
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... charsets.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... deploy.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... javaws.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... jce.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... jsse.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... management-agent.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... plugin.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... resources.jar
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:08
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... rt.jar
>>>>>> 24 sept. 2009 09:03:10
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:10
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... dnsns.jar
>>>>>> 24 sept. 2009 09:03:10
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:10
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... localedata.jar
>>>>>> 24 sept. 2009 09:03:10
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:10
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... sunjce_provider.jar
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... sunmscapi.jar
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... sunpkcs11.jar
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... Main
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: true
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is Requested EJB module [Main]: true
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl addEJBModule
>>>>>> INFO: ... Added EJB Module .... Main
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... glassfish-embedded-static-shell.jar
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... resources
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... idea_rt.jar
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 24 sept. 2009 09:03:11
>>>>>> org.glassfish.ejb.embedded.EJBContainerImpl deploy
>>>>>> INFO: ==> Deploying app: D:\Data\Mes documents\Documents\Other
>>>>>> \Projects\EJBContainer\out\production\Main
>>>>>> 24 sept. 2009 09:03:13
>>>>>> com.sun.enterprise.transaction.JavaEETransactionManagerSimplified
>>>>>> initDelegates
>>>>>> INFO: Using
>>>>>> com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate
>>>>>> as the delegate
>>>>>> >>Started EJB Container Service....: server
>>>>>> >>EjbContainerUtil:
>>>>>> com.sun.ejb.containers.EjbContainerUtilImpl_at_1b80d9b
>>>>>> 24 sept. 2009 09:03:13
>>>>>> com.sun.enterprise.security.SecurityLifecycle <init>
>>>>>> INFO: security.secmgroff
>>>>>> 24 sept. 2009 09:03:13
>>>>>> com.sun.enterprise.security.SecurityLifecycle onInitialization
>>>>>> INFO: Security startup service called
>>>>>> 24 sept. 2009 09:03:13 com.sun.enterprise.security.PolicyLoader
>>>>>> loadPolicy
>>>>>> INFO: policy.loading
>>>>>> 24 sept. 2009 09:03:13
>>>>>> com.sun.enterprise.security.SecurityLifecycle onInitialization
>>>>>> INFO: Security service(s) started successfully....
>>>>>> DOL Loading time141
>>>>>> 24 sept. 2009 09:03:15 com.sun.ejb.containers.BaseContainer
>>>>>> initializeHome
>>>>>> INFO: Portable JNDI names for EJB BookService : [java:global/
>>>>>> Main/ BookService!com.cdbookstore.javaee6.BookService,
>>>>>> java:global/Main/ BookService]
>>>>>> 24 sept. 2009 09:03:15
>>>>>> org.glassfish.ejb.embedded.EJBContainerImpl getContext
>>>>>> INFO: IN getContext()
>>>>>> 24 sept. 2009 09:03:15
>>>>>> com.sun.enterprise.security.provider.BasePolicyWrapper$2 run
>>>>>> INFO: JACC Policy Provider: Failed Permission Check, context
>>>>>> (Main/ Main)- permission
>>>>>> ((javax.security.jacc.EJBMethodPermission BookService
>>>>>> sayHello,Local,))
>>>>>> 24 sept. 2009 09:03:15 com.sun.ejb.containers.BaseContainer
>>>>>> postInvoke
>>>>>> ATTENTION: A system exception occurred during an invocation on
>>>>>> EJB BookService method public java.lang.String
>>>>>> com.cdbookstore.javaee6.BookService.sayHello()
>>>>>> javax.ejb.AccessLocalException: Client not authorized for this
>>>>>> invocation.
>>>>>> at com.sun.ejb.containers.BaseContainer.preInvoke
>>>>>> (BaseContainer.java:1716)
>>>>>> at
>>>>>> com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke
>>>>>> (EJBLocalObjectInvocationHandler.java:188)
>>>>>> at
>>>>>> com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke
>>>>>> (EJBLocalObjectInvocationHandlerDelegate.java:84)
>>>>>> at $Proxy68.sayHello(Unknown Source)
>>>>>> at com.cdbookstore.javaee6
>>>>>> .__EJB31_Generated__BookService__Intf____Bean__.sayHello
>>>>>> (Unknown Source)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:39)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> Exception in thread "main" javax.ejb.EJBAccessException
>>>>>> at com.sun.ejb.containers.BaseContainer.mapLocal3xException
>>>>>> (BaseContainer.java:2123)
>>>>>> at com.sun.ejb.containers.BaseContainer.postInvoke
>>>>>> (BaseContainer.java:1914)
>>>>>> at com.sun.ejb.containers.BaseContainer.postInvoke
>>>>>> (BaseContainer.java:1821)
>>>>>> at
>>>>>> com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke
>>>>>> (EJBLocalObjectInvocationHandler.java:198)
>>>>>> at
>>>>>> com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke
>>>>>> (EJBLocalObjectInvocationHandlerDelegate.java:84)
>>>>>> at $Proxy68.sayHello(Unknown Source)
>>>>>> at com.cdbookstore.javaee6
>>>>>> .__EJB31_Generated__BookService__Intf____Bean__.sayHello
>>>>>> (Unknown Source)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:39)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> Caused by: javax.ejb.AccessLocalException: Client not authorized
>>>>>> for this invocation.
>>>>>> at com.sun.ejb.containers.BaseContainer.preInvoke
>>>>>> (BaseContainer.java:1716)
>>>>>> at
>>>>>> com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke
>>>>>> (EJBLocalObjectInvocationHandler.java:188)
>>>>>> ... 9 more
>>>>>>
>>>>>>
>>>>>> 2009/9/23 Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
>>>>>>
>>>>>> On Sep 23, 2009, at 18:57, Marina Vatkina wrote:
>>>>>>
>>>>>> Hi Antonio,
>>>>>>
>>>>>> Are you on Windows? If yes, there was an NPE bug the the Util
>>>>>> class that was fixed over the weekend. Can you try the latest
>>>>>> nightly?
>>>>>>
>>>>>> http://download.java.net/glassfish/v3/nightly/
>>>>>> just not the one from the 23rd, it doesn't boot :(
>>>>>> -Alexis
>>>>>>
>>>>>>
>>>>>>
>>>>>> thanks,
>>>>>> -marina
>>>>>>
>>>>>> Antonio Goncalves wrote:
>>>>>> Hi,
>>>>>> It's really annoying to have a full glassfish distribution to
>>>>>> make it work. It goes against the entire "leightweight"
>>>>>> container. Developers will still think that to run an EJB we
>>>>>> still need an entire app server. If you could make EJBs work
>>>>>> with just one (or a couple) dependency in a Maven pom.xml, that
>>>>>> would be a killer (my 2 cents).
>>>>>> Ok. So I've taken out Maven dependencies and just add the
>>>>>> glassfish- embedded-static-shell.jar to my classpath. First
>>>>>> reaction, my IDE (Intellij IDEA) doesn't add all the libraries
>>>>>> defined in the MANIFEST.MF, so it compiles but the code editor
>>>>>> is full of class not found (that's sad). When I run my example
>>>>>> (I'm now using a very simple Main class instead of a unit
>>>>>> test), I have the following error (looks like it's related to
>>>>>> security lifecycle).
>>>>>> Any idea ?
>>>>>> Thanks,
>>>>>> Antonio
>>>>>> D:\Tools\Java\jdk1.6.0_14\bin\java -Didea.launcher.port=7532 "-
>>>>>> Didea.launcher.bin.path=D:\Tools\Idea\IntelliJ IDEA 8.1.3\bin" -
>>>>>> Dfile.encoding=windows-1252 -classpath "D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre \lib\alt-rt.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \charsets.jar;D: \Tools\Java\jdk1.6.0_14\jre\lib
>>>>>> \deploy.jar;D: \Tools\Java \jdk1.6.0_14\jre\lib\javaws.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre\lib \jce.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib \jsse.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \management- agent.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \plugin.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib \resources.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre\lib\rt.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib\ext \dnsns.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \ext\localedata.jar;D: \Tools\Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunjce_provider.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunmscapi.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib\ext
>>>>>> \sunpkcs11.jar;D: \Data\Mes documents \Documents\Other\Projects
>>>>>> \EJBContainer\out \production\Main;D: \Tools\GlassFish
>>>>>> \glassfishv3-b64\glassfish\lib \embedded\glassfish- embedded-
>>>>>> static-shell.jar;D:\Tools\Idea\IntelliJ IDEA 8.1.3\lib
>>>>>> \idea_rt.jar" com.intellij.rt.execution.application.AppMain
>>>>>> com.cdbookstore.javaee6.Main
>>>>>> 23 sept. 2009 08:38:03
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl getLocations
>>>>>> INFO: +++ installed_root_location : D:\Tools\GlassFish
>>>>>> \glassfishv3- b64\glassfish
>>>>>> 23 sept. 2009 08:38:03
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl getLocations
>>>>>> INFO: +++ instance_root_location: D:\Tools\GlassFish
>>>>>> \glassfishv3- b64\glassfish\domains\domain1
>>>>>> 23 sept. 2009 08:38:03
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl getLocations
>>>>>> INFO: +++ domain_file_location : D:\Tools\GlassFish \glassfishv3-
>>>>>> b64\glassfish\domains\domain1\config\domain.xml
>>>>>> 23 sept. 2009 08:38:04
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Creating temp domain file: C:\DOCUME~1\Antonio
>>>>>> \LOCALS~1\Temp\domain3396144585901546433xml
>>>>>> 23 sept. 2009 08:38:04
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Skipping details of: applications
>>>>>> 23 sept. 2009 08:38:04
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Skipping details of: protocols
>>>>>> 23 sept. 2009 08:38:04
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: ==> Skipping details of: network-listeners
>>>>>> 23 sept. 2009 08:38:04
>>>>>> org.glassfish.ejb.embedded.DomainXmlTransformer transform
>>>>>> INFO: <== Created temp domain file: C:\DOCUME~1\Antonio
>>>>>> \LOCALS~1\Temp \domain3396144585901546433xml
>>>>>> java.lang.RuntimeException: All params have to be named with a
>>>>>> ProbeParam Annotation. This method (protected void
>>>>>> com.sun.corba.ee.impl.transport.CorbaInboundConnectionCacheImpl.dprint
>>>>>> (java.lang.String)) did not have them.
>>>>>> at
>>>>>> org.glassfish.flashlight.FlashlightUtils.getParamNames
>>>>>> (FlashlightUtils.java:122)
>>>>>> at
>>>>>> org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.getProbeProvider
>>>>>> (FlashlightProbeProviderFactory.java:170)
>>>>>> at
>>>>>> org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.getProbeProvider
>>>>>> (FlashlightProbeProviderFactory.java:147)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderClass
>>>>>> (MonitoringBootstrap.java:294)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.addProvider
>>>>>> (MonitoringBootstrap.java:199)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.moduleStarted
>>>>>> (MonitoringBootstrap.java:161)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders
>>>>>> (MonitoringBootstrap.java:114)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders
>>>>>> (MonitoringBootstrap.java:413)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct
>>>>>> (MonitoringBootstrap.java:107)
>>>>>> at com.sun.hk2.component.AbstractWombImpl.inject
>>>>>> (AbstractWombImpl.java:174)
>>>>>> 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.v3.server.AppServerStartup.run
>>>>>> (AppServerStartup.java:208)
>>>>>> at com.sun.enterprise.v3.server.AppServerStartup.start
>>>>>> (AppServerStartup.java:129)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:460)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:404)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:312)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:305)
>>>>>> at
>>>>>> com.sun.enterprise.glassfish.bootstrap.ASEmbedded.run
>>>>>> (ASEmbedded.java:101)
>>>>>> at
>>>>>> com.sun.enterprise.glassfish.bootstrap.AbstractMain.start
>>>>>> (AbstractMain.java:41)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java:
>>>>>> 249)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java: 62)
>>>>>> at org.glassfish.api.embedded.Server$Builder.build
>>>>>> (Server.java:144)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.init
>>>>>> (EJBContainerProviderImpl.java:159)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer
>>>>>> (EJBContainerProviderImpl.java:118)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:102)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> java.lang.IllegalArgumentException:
>>>>>> com.sun.corba.ee.impl.transport.CorbaInboundConnectionCacheImpl
>>>>>> is not an interface
>>>>>> at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
>>>>>> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java: 581)
>>>>>> at
>>>>>> org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.getProbeProvider
>>>>>> (FlashlightProbeProviderFactory.java:225)
>>>>>> at
>>>>>> org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.getProbeProvider
>>>>>> (FlashlightProbeProviderFactory.java:147)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderClass
>>>>>> (MonitoringBootstrap.java:294)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.addProvider
>>>>>> (MonitoringBootstrap.java:199)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.moduleStarted
>>>>>> (MonitoringBootstrap.java:161)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders
>>>>>> (MonitoringBootstrap.java:114)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders
>>>>>> (MonitoringBootstrap.java:413)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct
>>>>>> (MonitoringBootstrap.java:107)
>>>>>> at com.sun.hk2.component.AbstractWombImpl.inject
>>>>>> (AbstractWombImpl.java:174)
>>>>>> 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.v3.server.AppServerStartup.run
>>>>>> (AppServerStartup.java:208)
>>>>>> at com.sun.enterprise.v3.server.AppServerStartup.start
>>>>>> (AppServerStartup.java:129)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:460)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:404)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:312)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:305)
>>>>>> at
>>>>>> com.sun.enterprise.glassfish.bootstrap.ASEmbedded.run
>>>>>> (ASEmbedded.java:101)
>>>>>> at
>>>>>> com.sun.enterprise.glassfish.bootstrap.AbstractMain.start
>>>>>> (AbstractMain.java:41)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java:
>>>>>> 249)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java: 62)
>>>>>> at org.glassfish.api.embedded.Server$Builder.build
>>>>>> (Server.java:144)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.init
>>>>>> (EJBContainerProviderImpl.java:159)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer
>>>>>> (EJBContainerProviderImpl.java:118)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:102)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> java.lang.ClassNotFoundException:
>>>>>> com.sun.corba.ee.impl.transport.CorbaOutboundConnectionCacheImpl
>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>> at java.security.AccessController.doPrivileged(Native
>>>>>> Method)
>>>>>> at java.net.URLClassLoader.findClass
>>>>>> (URLClassLoader.java: 188)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass
>>>>>> (Launcher.java:301)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.addProvider
>>>>>> (MonitoringBootstrap.java:199)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.moduleStarted
>>>>>> (MonitoringBootstrap.java:161)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders
>>>>>> (MonitoringBootstrap.java:114)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders
>>>>>> (MonitoringBootstrap.java:413)
>>>>>> at
>>>>>> org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct
>>>>>> (MonitoringBootstrap.java:107)
>>>>>> at com.sun.hk2.component.AbstractWombImpl.inject
>>>>>> (AbstractWombImpl.java:174)
>>>>>> 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.v3.server.AppServerStartup.run
>>>>>> (AppServerStartup.java:208)
>>>>>> at com.sun.enterprise.v3.server.AppServerStartup.start
>>>>>> (AppServerStartup.java:129)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:460)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:404)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:312)
>>>>>> at com.sun.enterprise.module.bootstrap.Main.launch
>>>>>> (Main.java:305)
>>>>>> at
>>>>>> com.sun.enterprise.glassfish.bootstrap.ASEmbedded.run
>>>>>> (ASEmbedded.java:101)
>>>>>> at
>>>>>> com.sun.enterprise.glassfish.bootstrap.AbstractMain.start
>>>>>> (AbstractMain.java:41)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java:
>>>>>> 249)
>>>>>> at org.glassfish.api.embedded.Server.<init>(Server.java: 62)
>>>>>> at org.glassfish.api.embedded.Server$Builder.build
>>>>>> (Server.java:144)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.init
>>>>>> (EJBContainerProviderImpl.java:159)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer
>>>>>> (EJBContainerProviderImpl.java:118)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:102)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> 23 sept. 2009 08:38:24
>>>>>> org.glassfish.admin.mbeanserver.JMXStartupService
>>>>>> $JMXConnectorsStarterThread run
>>>>>> INFO: JMXStartupService: JMX authenticator is
>>>>>> com.sun.enterprise.container.common.GenericAdminAuthenticator@ 90fa05
>>>>>> 23 sept. 2009 08:38:25
>>>>>> org.glassfish.admin.mbeanserver.JMXStartupService
>>>>>> $JMXConnectorsStarterThread startConnector
>>>>>> INFO: JMXStartupService: Started JMXConnector, JMXService URL =
>>>>>> service:jmx:rmi://localhost:8686/jndi/rmi://localhost:8686/ jmxrmi
>>>>>> 23 sept. 2009 08:38:25
>>>>>> com.sun.enterprise.v3.server.AppServerStartup run
>>>>>> INFO: GlassFish v3 startup time : Embedded(15329ms) startup
>>>>>> services (5671ms) total(21000ms)
>>>>>> 23 sept. 2009 08:38:26 AppServerStartup run
>>>>>> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
>>>>>> 23 sept. 2009 08:38:26
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl addEJBModules
>>>>>> INFO: ==> Looking for EJB modules in classpath: D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib\alt-rt.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \charsets.jar;D:\Tools\Java\jdk1.6.0_14\jre\lib
>>>>>> \deploy.jar;D: \Tools \Java\jdk1.6.0_14\jre\lib\javaws.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre \lib\jce.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib \jsse.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \management- agent.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib
>>>>>> \plugin.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib \resources.jar;D:
>>>>>> \Tools\Java \jdk1.6.0_14\jre\lib\rt.jar;D:\Tools\Java
>>>>>> \jdk1.6.0_14\jre\lib\ext \dnsns.jar;D:\Tools\Java\jdk1.6.0_14\jre
>>>>>> \lib \ext\localedata.jar;D: \Tools\Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunjce_provider.jar;D:\Tools \Java\jdk1.6.0_14\jre\lib\ext
>>>>>> \sunmscapi.jar;D:\Tools\Java \jdk1.6.0_14\jre\lib\ext
>>>>>> \sunpkcs11.jar;D: \Data\Mes documents \Documents\Other\Projects
>>>>>> \EJBContainer\out \production\Main;D: \Tools\GlassFish
>>>>>> \glassfishv3-b64\glassfish\lib \embedded\glassfish- embedded-
>>>>>> static-shell.jar;D:\Tools\Idea\IntelliJ IDEA 8.1.3\lib \idea_rt.jar
>>>>>> 23 sept. 2009 08:38:26
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... alt-rt.jar
>>>>>> 23 sept. 2009 08:38:26
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:26
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... charsets.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... deploy.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... javaws.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... jce.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... jsse.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... management-agent.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... plugin.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... resources.jar
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:27
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... rt.jar
>>>>>> 23 sept. 2009 08:38:31
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:31
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... dnsns.jar
>>>>>> 23 sept. 2009 08:38:31
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:31
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... localedata.jar
>>>>>> 23 sept. 2009 08:38:31
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:31
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... sunjce_provider.jar
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... sunmscapi.jar
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... sunpkcs11.jar
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... Main
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: true
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is Requested EJB module [Main]: true
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl addEJBModule
>>>>>> INFO: ... Added EJB Module .... Main
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... glassfish-embedded-static-shell.jar
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... Testing ... idea_rt.jar
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> isRequestedEJBModule
>>>>>> INFO: ... is EJB module: false
>>>>>> 23 sept. 2009 08:38:32
>>>>>> org.glassfish.ejb.embedded.EJBContainerImpl deploy
>>>>>> INFO: ==> Deploying app: D:\Data\Mes documents\Documents\Other
>>>>>> \Projects\EJBContainer\out\production\Main
>>>>>> 23 sept. 2009 08:38:34
>>>>>> com.sun.enterprise.transaction.JavaEETransactionManagerSimplified
>>>>>> initDelegates
>>>>>> INFO: Using
>>>>>> com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate
>>>>>> as the delegate
>>>>>> >Started EJB Container Service....: server
>>>>>> >EjbContainerUtil:
>>>>>> com.sun.ejb.containers.EjbContainerUtilImpl_at_1b0c08
>>>>>> 23 sept. 2009 08:38:34
>>>>>> com.sun.enterprise.security.SecurityLifecycle <init>
>>>>>> GRAVE: java_security.init_securitylifecycle_fail
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> com.sun.enterprise.security.common.Util.writeConfigFileToTempDir
>>>>>> (Util.java:149)
>>>>>> at com.sun.enterprise.security.SecurityLifecycle.<init>
>>>>>> (SecurityLifecycle.java:135)
>>>>>> 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 com.sun.enterprise.security.SecuritySniffer.setup
>>>>>> (SecuritySniffer.java:105)
>>>>>> at
>>>>>> com.sun.enterprise.v3.server.ContainerStarter.startContainer
>>>>>> (ContainerStarter.java:99)
>>>>>> at com.sun.enterprise.v3.
>>>>>> server.ApplicationLifecycle.setupContainer
>>>>>> (ApplicationLifecycle.java:672)
>>>>>> at com.sun.enterprise.v3
>>>>>> .server.ApplicationLifecycle.setupContainerInfos
>>>>>> (ApplicationLifecycle.java:420)
>>>>>> at
>>>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy
>>>>>> (ApplicationLifecycle.java:232)
>>>>>> at
>>>>>> org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy
>>>>>> (EmbeddedDeployerImpl.java:191)
>>>>>> at
>>>>>> org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy
>>>>>> (EmbeddedDeployerImpl.java:151)
>>>>>> at org.glassfish.ejb.embedded.EJBContainerImpl.deploy
>>>>>> (EJBContainerImpl.java:110)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer
>>>>>> (EJBContainerProviderImpl.java:124)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:102)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> 23 sept. 2009 08:38:34 org.glassfish.api.ActionReport failure
>>>>>> GRAVE: Exception while deploying the app
>>>>>> java.lang.RuntimeException: java.lang.NullPointerException
>>>>>> at com.sun.enterprise.security.SecurityLifecycle.<init>
>>>>>> (SecurityLifecycle.java:163)
>>>>>> 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 com.sun.enterprise.security.SecuritySniffer.setup
>>>>>> (SecuritySniffer.java:105)
>>>>>> at
>>>>>> com.sun.enterprise.v3.server.ContainerStarter.startContainer
>>>>>> (ContainerStarter.java:99)
>>>>>> at com.sun.enterprise.v3.
>>>>>> server.ApplicationLifecycle.setupContainer
>>>>>> (ApplicationLifecycle.java:672)
>>>>>> at com.sun.enterprise.v3
>>>>>> .server.ApplicationLifecycle.setupContainerInfos
>>>>>> (ApplicationLifecycle.java:420)
>>>>>> at
>>>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy
>>>>>> (ApplicationLifecycle.java:232)
>>>>>> at
>>>>>> org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy
>>>>>> (EmbeddedDeployerImpl.java:191)
>>>>>> at
>>>>>> org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy
>>>>>> (EmbeddedDeployerImpl.java:151)
>>>>>> at org.glassfish.ejb.embedded.EJBContainerImpl.deploy
>>>>>> (EJBContainerImpl.java:110)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer
>>>>>> (EJBContainerProviderImpl.java:124)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:102)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> Caused by: java.lang.NullPointerException
>>>>>> at
>>>>>> com.sun.enterprise.security.common.Util.writeConfigFileToTempDir
>>>>>> (Util.java:149)
>>>>>> at com.sun.enterprise.security.SecurityLifecycle.<init>
>>>>>> (SecurityLifecycle.java:135)
>>>>>> ... 28 more
>>>>>> 23 sept. 2009 08:38:34
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> createEJBContainer
>>>>>> INFO: ==> Cleaning up on failure ...
>>>>>> 23 sept. 2009 08:38:34
>>>>>> org.glassfish.ejb.embedded.EJBContainerImpl close
>>>>>> INFO: IN close()
>>>>>> 23 sept. 2009 08:38:34
>>>>>> org.glassfish.admin.mbeanserver.JMXStartupService shutdown
>>>>>> INFO: JMXStartupService: shutting down AMX and JMX
>>>>>> 23 sept. 2009 08:38:34
>>>>>> org.glassfish.admin.mbeanserver.JMXStartupService
>>>>>> $JMXConnectorsStarterThread shutdown
>>>>>> INFO: JMXStartupService: Stopped JMXConnectorServer:
>>>>>> service:jmx:rmi://localhost:8686/jndi/rmi://localhost:8686/jmxrmi
>>>>>> 23 sept. 2009 08:38:34 AppServerStartup run
>>>>>> delete D:\Tools\GlassFish\glassfishv3-b64\glassfish\domains
>>>>>> \domain1 = false
>>>>>> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] exiting
>>>>>> 23 sept. 2009 08:38:34
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> createEJBContainer
>>>>>> GRAVE: ejb.embedded.exception_instantiating
>>>>>> javax.ejb.EJBException: Failed to deploy EJB modules - see log
>>>>>> for details
>>>>>> at org.glassfish.ejb.embedded.EJBContainerImpl.deploy
>>>>>> (EJBContainerImpl.java:116)
>>>>>> at
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer
>>>>>> (EJBContainerProviderImpl.java:124)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:102)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> Exception in thread "main" javax.ejb.EJBException: No
>>>>>> EJBContainer provider available
>>>>>> The following providers:
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> Returned null from createEJBContainer call.
>>>>>> at javax.ejb.embeddable.EJBContainer.reportError
>>>>>> (EJBContainer.java:184)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:121)
>>>>>> at javax.ejb.embeddable.EJBContainer.createEJBContainer
>>>>>> (EJBContainer.java:78)
>>>>>> at com.cdbookstore.javaee6.Main.main(Main.java:35)
>>>>>> 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 com.intellij.rt.execution.application.AppMain.main
>>>>>> (AppMain.java:90)
>>>>>> Process finished with exit code 1
>>>>>> 2009/9/23 Jerome Dochez <Jerome.Dochez_at_sun.com
>>>>>> <mailto:Jerome.Dochez_at_sun.com >>
>>>>>> On Sep 22, 2009, at 2:33 PM, Marina Vatkina wrote:
>>>>>> I suspect there will be other problems - did anybody try to use
>>>>>> JPA with the glassfish-embedded-all.jar?
>>>>>> Siraj may have some tests
>>>>>> I'll probably also need another logic to find domain.xml to
>>>>>> exclude the ports.
>>>>>> there is no ports configured with embedded-all so nothing to worry
>>>>>> about here.
>>>>>> thanks,
>>>>>> -marina
>>>>>> Alexis Moussine-Pouchkine wrote:
>>>>>> Right, but glassfish-embedded-all.jar doesn't seem to
>>>>>> support EJBContainer.getContainer() (see #9625)
>>>>>> Unless launching via Maven changes something here....
>>>>>> -Alexis
>>>>>> On Sep 22, 2009, at 22:55, Jerome Dochez wrote:
>>>>>> since he is using maven, maybe Antonio wants the use
>>>>>> the
>>>>>> cooked jar rather than the shell jar that requires a
>>>>>> locally installed distribution...
>>>>>> On Sep 22, 2009, at 1:43 PM, Siraj Ghaffar wrote:
>>>>>> The shell jar points to other jars in the
>>>>>> distribution, so it requires the glassfish
>>>>>> distribution.
>>>>>> Antonio Goncalves wrote:
>>>>>> Hum... I need a full GlassFish distribution ?
>>>>>> Isn't this jar is the GF Maven repository ? At
>>>>>> the moment I'm using :
>>>>>> <dependency>
>>>>>> <groupId>org.glassfish</groupId>
>>>>>> <artifactId>javax.ejb</artifactId>
>>>>>> <version>3.0-b64</version>
>>>>>> </dependency>
>>>>>> <dependency>
>>>>>> <groupId>org.glassfish.ejb</groupId>
>>>>>> <artifactId>ejb-container</artifactId>
>>>>>> <version>3.0-b64</version>
>>>>>> </dependency>
>>>>>> Antonio
>>>>>> 2009/9/22 Alexis Moussine-Pouchkine <alexis.mp
>>>>>> <http://alexis.mp> <http:// alexis.mp
>>>>>> <http://alexis.mp>>@sun.com <http://sun.com>
>>>>>> <http://sun.com>>
>>>>>> glassfish/lib/embedded/glassfish-embedded-
>>>>>> static-shell.jar
>>>>>> is your
>>>>>> friend.
>>>>>> Requires full GlassFish distribution. No
>>>>>> properties required.
>>>>>> -Alexis
>>>>>> On Sep 22, 2009, at 21:54, Antonio
>>>>>> Goncalves wrote:
>>>>>> Hi,
>>>>>> I'm still trying to make the EJBContainer
>>>>>> work in a test
>>>>>> environment. I'm using the latest GlassFish
>>>>>> build (3.0-b64)
>>>>>> but this time I have other exceptions :
>>>>>> Exception in thread "main"
>>>>>> javax.ejb.EJBException: No
>>>>>> EJBContainer provider available
>>>>>> Provider named
>>>>>>
>>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl
>>>>>> threw
>>>>>> unexpected exception at create
>>>>>> EJBContainer:
>>>>>> java.lang.NoSuchMethodError
>>>>>> java.lang.NoSuchMethodError:
>>>>>>
>>>>>> javax.ejb.spi.EJBContainerProvider.createEJBContainer(Ljava/
>>>>>> util/Map;)Ljavax/ejb/embeddable/EJBContainer;
>>>>>> at
>>>>>> javax
>>>>>> .ejb.embeddable.EJBContainer.createEJBContainer (EJBContainer.java:
>>>>>> 102)
>>>>>> at
>>>>>> javax
>>>>>> .ejb.embeddable.EJBContainer.createEJBContainer (EJBContainer.java:
>>>>>> 78)
>>>>>> In my code I do the following :
>>>>>> EJBContainer ec =
>>>>>> EJBContainer.createEJBContainer();
>>>>>> Context ctx = ec.getContext();
>>>>>> BookService bookEJB = (BookService)
>>>>>> ctx.lookup("java:global/BookService");
>>>>>> book = bookEJB.createBook(book);
>>>>>> I call the createEJBContainer() method
>>>>>> but I
>>>>>> was wondering if
>>>>>> I should pass some properties with the
>>>>>> createEJBContainer(Map
>>>>>> <?,?>) method.
>>>>>> Any idea ?
>>>>>> Thanks,
>>>>>> Antonio
>>>>>> 2009/9/7 <glassfish_at_javadesktop.org
>>>>>> <mailto:glassfish_at_javadesktop.org>
>>>>>> <mailto:glassfish_at_javadesktop.org
>>>>>> <mailto:glassfish_at_javadesktop.org>>>
>>>>>> I also read Antonio's book :)
>>>>>> @Antonio: do you have any news on this? Did
>>>>>> you get to have a
>>>>>> working method to unit test EJBs ?
>>>>>> Regards,
>>>>>> J.
>>>>>> [Message sent by forum member 'jayeff'
>>>>>> (jforns_at_gmail.com <mailto:jforns_at_gmail.com>
>>>>>> <mailto:jforns_at_gmail.com
>>>>>> <mailto:jforns_at_gmail.com>>)]
>>>>>>
>>>>>> http://forums.java.net/jive/thread.jspa?messageID=363119
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> users-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-
>>>>>> unsubscribe_at_glassfish.dev.java.net >
>>>>>>
>>>>>> <mailto:users-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-
>>>>>> unsubscribe_at_glassfish.dev.java.net >>
>>>>>> For additional commands, e-mail:
>>>>>> users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>
>>>>>> <mailto:users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>>
>>>>>> -- --
>>>>>> Antonio Goncalves
>>>>>> (antonio.goncalves_at_gmail.com
>>>>>> <mailto:antonio.goncalves_at_gmail.com>
>>>>>> <mailto:antonio.goncalves_at_gmail.com
>>>>>> <mailto:antonio.goncalves_at_gmail.com>>)
>>>>>> Software architect
>>>>>> Web site : www.antoniogoncalves.org
>>>>>> <http://www.antoniogoncalves.org>
>>>>>> <http://www.antoniogoncalves.org>
>>>>>> Blog: agoncal.wordpress.com
>>>>>> <http://agoncal.wordpress.com>
>>>>>> <http://agoncal.wordpress.com>
>>>>>> Feed: feeds2.feedburner.com/
>>>>>> AntonioGoncalves
>>>>>> <http://feeds2.feedburner.com/ AntonioGoncalves>
>>>>>>
>>>>>> <http://feeds2.feedburner.com/AntonioGoncalves >
>>>>>> Paris JUG leader : www.parisjug.org
>>>>>> <http://www.parisjug.org>
>>>>>> <http://www.parisjug.org >
>>>>>> LinkedIn: www.linkedin.com/in/agoncal
>>>>>> <http://www.linkedin.com/in/agoncal>
>>>>>> <http://www.linkedin.com/in/agoncal>
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> users-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-
>>>>>> unsubscribe_at_glassfish.dev.java.net >
>>>>>> <mailto:users-
>>>>>> unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-
>>>>>> unsubscribe_at_glassfish.dev.java.net >>
>>>>>> For additional commands, e-mail:
>>>>>> users-help_at_glassfish.dev.java.net
>>>>>> <mailto:help_at_glassfish.dev.java.net>
>>>>>> <mailto:users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>>
>>>>>> --
>>>>>> -- Antonio Goncalves
>>>>>> (antonio.goncalves_at_gmail.com
>>>>>> <mailto:antonio.goncalves_at_gmail.com>
>>>>>> <mailto:antonio.goncalves_at_gmail.com
>>>>>> <mailto:antonio.goncalves_at_gmail.com> >)
>>>>>> Software architect
>>>>>> Web site : www.antoniogoncalves.org
>>>>>> <http://www.antoniogoncalves.org> <http://
>>>>>> www.antoniogoncalves.org
>>>>>> <http://www.antoniogoncalves.org>>
>>>>>> Blog: agoncal.wordpress.com
>>>>>> <http://agoncal.wordpress.com>
>>>>>> <http://agoncal.wordpress.com>
>>>>>> Feed: feeds2.feedburner.com/AntonioGoncalves
>>>>>> <http://feeds2.feedburner.com/ AntonioGoncalves>
>>>>>> <http://feeds2.feedburner.com/
>>>>>> AntonioGoncalves >
>>>>>> Paris JUG leader : www.parisjug.org
>>>>>> <http://www.parisjug.org>
>>>>>> <http://www.parisjug.org >
>>>>>> LinkedIn: www.linkedin.com/in/agoncal
>>>>>> <http://www.linkedin.com/in/agoncal>
>>>>>> <http://www.linkedin.com/in/agoncal >
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> users-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
>>>>>> For additional commands, e-mail:
>>>>>> users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> users-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
>>>>>> For additional commands, e-mail:
>>>>>> users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> users-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
>>>>>> For additional commands, e-mail:
>>>>>> users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users- unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
>>>>>> For additional commands, e-mail:
>>>>>> users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>>> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
>>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>> <mailto:users-help_at_glassfish.dev.java.net>
>>>>>> --
>>>>>> --
>>>>>> Antonio Goncalves (antonio.goncalves_at_gmail.com
>>>>>> <mailto:antonio.goncalves_at_gmail.com >)
>>>>>> Software architect
>>>>>> Web site : www.antoniogoncalves.org <http://
>>>>>> www.antoniogoncalves.org >
>>>>>> Blog: agoncal.wordpress.com <http://agoncal.wordpress.com>
>>>>>> Feed: feeds2.feedburner.com/AntonioGoncalves
>>>>>> <http://feeds2.feedburner.com/AntonioGoncalves >
>>>>>> Paris JUG leader : www.parisjug.org <http://www.parisjug.org>
>>>>>> LinkedIn: www.linkedin.com/in/agoncal
>>>>>> <http://www.linkedin.com/in/agoncal >
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Antonio Goncalves (antonio.goncalves_at_gmail.com)
>>>>>> Software architect
>>>>>>
>>>>>> Web site : www.antoniogoncalves.org
>>>>>> Blog: agoncal.wordpress.com
>>>>>> Feed: feeds2.feedburner.com/AntonioGoncalves
>>>>>> Paris JUG leader : www.parisjug.org
>>>>>> LinkedIn: www.linkedin.com/in/agoncal
>>>>>
>>>>>
>>>>> --- ------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>>
>>>>
>>>> --- ------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>