it was very nice to hear from you.. I am doing this open-source
project I will try to use the embedable EJBs for testing .. and if it
works smoothly, I will blog to help in your effort ;)
thanks....
On Wed, Sep 23, 2009 at 4:05 PM, Antonio Goncalves
<antonio.mailing_at_gmail.com> wrote:
> Today unit testing is very important and, for me, the EJBContainer is a very
> strong feature (as you can see my first mail is dated from the 4th or March,
> I'm dying to show the world how easy it is to unit test EJBs nowadays). Unit
> testing is the one thing that always comes back when comparing Spring Beans
> vs EJBs. Even with EJB 3.0, unit testing is only possible with external
> injection fwk and Maven workarounds as you say.
>
> Antonio
>
> 2009/9/23 Felipe Gaúcho <fgaucho_at_gmail.com>
>>
>> I also use Maven+Hudson+Java EE
>>
>> the use case of unit test is clear and natural.. but my concern is
>> more about this "lightweight container"....
>>
>> The point is: 99,99% of all people adopting the infamous stack
>> Hibernate+Spring adopted that in frustration and eventually angry
>> against the Java EE 4- ....
>>
>> And these people will not come back to Java EE Containers free of
>> fear... they should be attracted by strong new features .. like the
>> ones provided by Servlet 3 and EJB 3.1 ....
>>
>> to offer them a new kind of lightweight web server that enables the
>> usage of EJBs don't seems a good strategy..
>>
>> But let's see, perhaps I am wrong and people will get delightful with
>> the embeddable GF :)
>>
>> and yes, I would love embedding EJBs inm my unit tests.. for now, I
>> have no chance other than use a fully fledged Glassfish for that :)
>> (plus a set of crazy Maven workarounds).....
>>
>>
>>
>>
>>
>> On Wed, Sep 23, 2009 at 2:21 PM, Antonio Goncalves
>> <antonio.mailing_at_gmail.com> wrote:
>> > Most of my customers use Maven, unit tests and Continuous Integration.
>> > What
>> > they do at the moment is that have EJBs, deploy them in an app server
>> > but
>> > they need to use Spring to unit test their EJBs (to inject dependencies
>> > and
>> > resources). If tomorow I can develop my EJB, run it in GlassFish but at
>> > the
>> > same time unit test it with just a few Maven dependencies, I don't need
>> > Spring anymore. I don't know any customer who installs a full appserver
>> > in
>> > their Continous Integration server just to unit test.
>> >
>> > Antonio
>> >
>> > 2009/9/23 Felipe Gaúcho <fgaucho_at_gmail.com>
>> >>
>> >> it is a controversial topic..
>> >>
>> >> Ok, eventually Glassfish will be useful in embeddable mode, but as far
>> >> I can see the most of EJBs adopters really don't care about it..
>> >>
>> >> This strange competition to sell a "Tomcat-like Glassfish" may be an
>> >> error... or not.. but sounds strange..
>> >>
>> >> If you are seriously adopting EJBs and the whole Java EE stack, you
>> >> are not much worried about the ability to launch it inside a browser
>> >> or in a lean J2SE application...
>> >>
>> >> Learning from the JavaDB - embeddable but never actually used in the
>> >> real world ... the adoption of the in-memory database from the JDK was
>> >> minimum.. caused a lot of frustration and controversial and at the end
>> >> nobody actually remembers that such feature exists :)
>> >>
>> >> I am not convinced, but may be it proves correct.. I will wait to see
>> >> that......
>> >>
>> >> my 1,50 cents
>> >>
>> >> On Wed, Sep 23, 2009 at 11:36 AM, Antonio Goncalves
>> >> <antonio.mailing_at_gmail.com> 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_at_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>
>> >> >>
>> >> >> 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>@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>>
>> >> >>>>>>> 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>)]
>> >> >>>>>>>
>> >> >>>>>>> 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>
>> >> >>>>>>> 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
>> >> >>>>>>> <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
>> >> >>>>>
>> >> >>>>
>> >> >>>> ---------------------------------------------------------------------
>> >> >>>> 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
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > --
>> >> > 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
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Looking for a client application for this service:
>> >> http://fgaucho.dyndns.org:8080/footprint-service/wadl
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >
>>
>>
>>
>> --
>> Looking for a client application for this service:
>> http://fgaucho.dyndns.org:8080/footprint-service/wadl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
--
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/footprint-service/wadl