n Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at
com
.desj.visa.app.cge.tests.CGEServiceTest.setUp(CGEServiceTest.java:
27)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.pr
On Wed, Nov 18, 2009 at 5:29 AM, BluesBrother wrote:
>
> Thanks for posting this solution to the OutOfMemory problem. I'm new to
> OpenEJB and trying to use it under NetBeans in a unit test scenario. I, too,
> was getting the OutOfMemory error, and was clueless as to why. However,
> after reading
137)
>> at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
>> at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at
>> org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
>> at
>> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
>> at
>> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
>> at
>> org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
>> at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
>> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
>> at javax.naming.InitialContext.init(Unknown Source)
>> at javax.naming.InitialContext.(Unknown Source)
>> at
>> com.desj.visa.app.cge.tests.CGEServiceTest.setUp(CGEServiceTest.java:27)
>> at junit.framework.TestCase.runBare(TestCase.java:125)
>> at junit.framework.TestResult$1.protect(TestResult.java:106)
>>
>>
>> Does anyone have a clue?
>>
>> Thanks
>>
>>
>
>
--
View this message in context:
http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26402385.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
> org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1188)
> at
> org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1291)
> at
> org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:195)
> at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:919)
> at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:523)
> at
> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:157)
> at
> org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:184)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:489)
> ... 32 more
>
>
--
View this message in context:
http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26386593.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
at
> org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1291)
> at
> org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:195)
> at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:919)
> at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:523)
> at
> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:157)
> at
> org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:184)
> at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:489)
> ... 32 more
>
> --
> View this message in context:
> http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26371834.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>
Persistence.java:157)
at
org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:184)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:489)
... 32 more
--
View this message in context:
http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26371834.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
g.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:489)
>> ... 32 more
>> Caused by: java.lang.ClassNotFoundException:
>> javax.persistence.spi.ProviderUtil
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> ... 39 more
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26326678.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>>
>
>
ang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 39 more
--
View this message in context:
http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26326678.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
message in context:
http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26326678.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
.tests.CGEServiceTest.setUp(CGEServiceTest.java:27)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
Does anyone have a clue?
Thanks
--
View this message in context:
http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26289080.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
;> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:278)
>> at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:137)
>> at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
>> at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
>> at sun.reflect.NativeMe
penEJBInstance.java:36)
> at
> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
> at
> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
> at
> org.apache.openejb.client.LocalInitia
t.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
Does anyone have a clue?
Thanks
--
View this message in context:
http://old.nabble.com/OutOfMemory-doing-a-JUnit-using-OpenEJB-Embedded-tp26289066p26289066.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
13 matches
Mail list logo