Was anyone able to see if the log openejb generated is normal according to the 
include/exclude I configured? I'm concerned about all this loadings. I started 
to get OOM again with slightly newer code base.
 
Here's the new output:
Apache OpenEJB 3.1.2 build: 20091010-03:11

http://openejb.apache.org/

INFO - openejb.home = C:\DEV\DataServices30\DataServiceEJB

INFO - openejb.base = C:\DEV\DataServices30\DataServiceEJB

INFO - Configuring Service(id=Default Security Service, type=SecurityService, 
provider-id=Default Security Service)

INFO - Configuring Service(id=Default Transaction Manager, 
type=TransactionManager, provider-id=Default Transaction Manager)

INFO - Using 'openejb.deployments.classpath.include=.*DataServiceEJB/classes/.*'

INFO - Using 'openejb.deployments.classpath.exclude=.*'

INFO - Found EjbModule in classpath: 
C:\DEV\DataServices30\DataServiceEJB\classes

INFO - Found ClientModule in classpath: 
C:\bea103\modules\com.bea.core.kodo_1.0.0.0_4-2-0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.openjpa_2.2.0.0_1-1-0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\monfox.dsnmp.agent_1.0.0.0_4-6-5.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-launcher.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\weblogic.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\glassfish.jaxws.tools_1.0.0.0_2-1-3.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\glassfish.jaxb.xjc_2.1.6.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\ojdbc6.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\common\lib\pdev.jar

INFO - Found ClientModule in classpath: 
C:\DEV\DataServices30\DataService\lib\freemarker.jar

INFO - Found ClientModule in classpath: 
C:\DEV\DataServices30\DataService\lib\javassist.jar

INFO - Found ClientModule in classpath: 
C:\Tools\openejb-3.1.2\lib\xml-resolver-1.2.jar

INFO - Found ClientModule in classpath: 
C:\Tools\openejb-3.1.2\lib\serializer-2.7.1.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\jconn2.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-all.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\com.bea.core.i18n.tools_1.1.0.0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant.jar

INFO - Beginning load: C:\DEV\DataServices30\DataServiceEJB\classes

INFO - Beginning load: C:\bea103\modules\com.bea.core.kodo_1.0.0.0_4-2-0.jar

INFO - Beginning load: C:\bea103\modules\org.apache.openjpa_2.2.0.0_1-1-0.jar

INFO - Beginning load: C:\bea103\modules\monfox.dsnmp.agent_1.0.0.0_4-6-5.jar

INFO - Beginning load: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-launcher.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\weblogic.jar

INFO - Beginning load: C:\bea103\modules\glassfish.jaxws.tools_1.0.0.0_2-1-3.jar

INFO - Beginning load: C:\bea103\modules\glassfish.jaxb.xjc_2.1.6.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\ojdbc6.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\common\lib\pdev.jar

INFO - Beginning load: C:\DEV\DataServices30\DataService\lib\freemarker.jar

INFO - Beginning load: C:\DEV\DataServices30\DataService\lib\javassist.jar

INFO - Beginning load: C:\Tools\openejb-3.1.2\lib\xml-resolver-1.2.jar

INFO - Beginning load: C:\Tools\openejb-3.1.2\lib\serializer-2.7.1.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\jconn2.jar

INFO - Beginning load: C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-all.jar

INFO - Beginning load: C:\bea103\modules\com.bea.core.i18n.tools_1.1.0.0.jar

INFO - Beginning load: C:\bea103\modules\org.apache.ant_1.6.5\lib\ant.jar

INFO - Configuring enterprise application: classpath.ear

FATAL - OpenEJB has encountered a fatal error and cannot be started: The 
Assembler encountered an unexpected error while attempting to build the 
container system.

java.lang.OutOfMemoryError: Java heap space

at org.apache.xbean.asm.ClassReader.a(Unknown Source)

at org.apache.xbean.asm.ClassReader.<init>(Unknown Source)

at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:728)

at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:141)

at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:113)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:315)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:261)

at 
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:188)

at 
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:551)

at 
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:380)

at 
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:299)

at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:278)

at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java: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(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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(NamingManager.java:667)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

at javax.naming.InitialContext.init(InitialContext.java:223)

at javax.naming.InitialContext.<init>(InitialContext.java:197)

at 
com.onstar.asd.dataservices.businessservices.junit.SubscriberBusinessServiceTest.setUp(SubscriberBusinessServiceTest.java:29)

at junit.framework.TestCase.runBare(TestCase.java:128)

at junit.framework.TestResult$1.protect(TestResult.java:106)

 
Thanks,
- John

________________________________

From: Yu, Xiaohui [mailto:xiaohui...@onstar.com]
Sent: Fri 10/15/2010 10:56 AM
To: users@openejb.apache.org
Subject: RE: how to adjust classpath - version 3.1.2



David,

I guess I wrote too quick. It should be OutOfMemory: java heap space.

After I removed weblogic related libs from classpath for Junit, it did run. 
However, I thought the include/exclude could take care of that no matter what 
other libraries I might have.

Thanks,
- John

== output info ==
Apache OpenEJB 3.1.2 build: 20091010-03:11

http://openejb.apache.org/

INFO - openejb.home = C:\DEV\DataServices30\DataServiceEJB

INFO - openejb.base = C:\DEV\DataServices30\DataServiceEJB

INFO - Configuring Service(id=Default Security Service, type=SecurityService, 
provider-id=Default Security Service)

INFO - Configuring Service(id=Default Transaction Manager, 
type=TransactionManager, provider-id=Default Transaction Manager)

INFO - Using 'openejb.deployments.classpath.include=.*DataServiceEJB/classes/.*'

INFO - Using 'openejb.deployments.classpath.exclude=.*'

INFO - Found EjbModule in classpath: 
C:\DEV\DataServices30\DataServiceEJB\classes

INFO - Found ClientModule in classpath: 
C:\bea103\modules\com.bea.core.kodo_1.0.0.0_4-2-0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.openjpa_2.2.0.0_1-1-0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\monfox.dsnmp.agent_1.0.0.0_4-6-5.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-launcher.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\weblogic.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\glassfish.jaxb.xjc_2.1.6.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\glassfish.jaxws.tools_1.0.0.0_2-1-3.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\ojdbc6.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\common\lib\pdev.jar

INFO - Found ClientModule in classpath: 
C:\DEV\DataServices30\DataService\lib\freemarker.jar

INFO - Found ClientModule in classpath: 
C:\DEV\DataServices30\DataService\lib\javassist.jar

INFO - Found ClientModule in classpath: 
C:\Tools\openejb-3.1.2\lib\xml-resolver-1.2.jar

INFO - Found ClientModule in classpath: 
C:\Tools\openejb-3.1.2\lib\serializer-2.7.1.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\jconn2.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-all.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\com.bea.core.i18n.tools_1.1.0.0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant.jar

INFO - Beginning load: C:\DEV\DataServices30\DataServiceEJB\classes

INFO - Beginning load: C:\bea103\modules\com.bea.core.kodo_1.0.0.0_4-2-0.jar

INFO - Beginning load: C:\bea103\modules\org.apache.openjpa_2.2.0.0_1-1-0.jar

INFO - Beginning load: C:\bea103\modules\monfox.dsnmp.agent_1.0.0.0_4-6-5.jar

INFO - Beginning load: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-launcher.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\weblogic.jar

INFO - Beginning load: C:\bea103\modules\glassfish.jaxb.xjc_2.1.6.jar

INFO - Beginning load: C:\bea103\modules\glassfish.jaxws.tools_1.0.0.0_2-1-3.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\ojdbc6.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\common\lib\pdev.jar

INFO - Beginning load: C:\DEV\DataServices30\DataService\lib\freemarker.jar

INFO - Beginning load: C:\DEV\DataServices30\DataService\lib\javassist.jar

INFO - Beginning load: C:\Tools\openejb-3.1.2\lib\xml-resolver-1.2.jar

INFO - Beginning load: C:\Tools\openejb-3.1.2\lib\serializer-2.7.1.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\jconn2.jar

INFO - Beginning load: C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-all.jar

INFO - Beginning load: C:\bea103\modules\com.bea.core.i18n.tools_1.1.0.0.jar

INFO - Beginning load: C:\bea103\modules\org.apache.ant_1.6.5\lib\ant.jar

INFO - Configuring enterprise application: classpath.ear

FATAL - OpenEJB has encountered a fatal error and cannot be started: The 
Assembler encountered an unexpected error while attempting to build the 
container system.

java.lang.OutOfMemoryError: Java heap space

at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:71)

at java.util.zip.ZipFile$1.<init>(ZipFile.java:212)

at java.util.zip.ZipFile.getInputStream(ZipFile.java:212)

at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)

at java.util.jar.JarFile.getInputStream(JarFile.java:383)

at 
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:144)

at java.net.URL.openStream(URL.java:1009)

at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:726)

at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:141)

at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:113)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:315)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:261)

at 
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:188)

at 
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:551)

at 
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:380)

at 
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:299)

at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:278)

at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java: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(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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(NamingManager.java:667)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

javax.naming.NamingException: Attempted to load OpenEJB. OpenEJB has 
encountered a fatal error and cannot be started: The Assembler encountered an 
unexpected error while attempting to build the container system.: Java heap 
space [Root exception is org.apache.openejb.OpenEJBException: OpenEJB has 
encountered a fatal error and cannot be started: The Assembler encountered an 
unexpected error while attempting to build the container system.: Java heap 
space]

at 
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:55)

at 
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

at javax.naming.InitialContext.init(InitialContext.java:223)

at javax.naming.InitialContext.<init>(InitialContext.java:197)

at 
com.onstar.asd.dataservices.businessservices.junit.SubscriberBusinessServiceTest.setUp(SubscriberBusinessServiceTest.java:57)

at junit.framework.TestCase.runBare(TestCase.java:128)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:120)

at junit.framework.TestSuite.runTest(TestSuite.java:230)

at junit.framework.TestSuite.run(TestSuite.java:225)

at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)

at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Caused by: org.apache.openejb.OpenEJBException: OpenEJB has encountered a fatal 
error and cannot be started: The Assembler encountered an unexpected error 
while attempting to build the container system.: Java heap space

at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)

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(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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)

... 19 more

Caused by: java.lang.OutOfMemoryError: Java heap space

at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:71)

at java.util.zip.ZipFile$1.<init>(ZipFile.java:212)

at java.util.zip.ZipFile.getInputStream(ZipFile.java:212)

at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)

at java.util.jar.JarFile.getInputStream(JarFile.java:383)

at 
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:144)

at java.net.URL.openStream(URL.java:1009)

at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:726)

at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:141)

at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:113)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:315)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:261)

at 
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:188)

at 
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:551)

at 
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:380)

at 
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:299)

at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:278)

at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java: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(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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(NamingManager.java:667)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)


________________________________

From: David Blevins [mailto:david.blev...@visi.com]
Sent: Thu 10/14/2010 6:11 PM
To: users@openejb.apache.org
Subject: Re: how to adjust classpath - version 3.1.2




On Oct 14, 2010, at 9:31 AM, Yu, Xiaohui wrote:

> Hi,
>
> I've downloaded version 3.1.2 to use for testing within Eclipse/MyEclipse. I 
> copied a few jar files to my build classpath and I don't have any more 
> ClassNotFound errors. However, I'm getting Out of Space error when running 
> junit and it appears maybe openejb is trying to load too many ClientModules 
> (my guess).
>
> I tried multiple regexp but so far nothing worked for me. Essentially I only 
> want to load my customized EJBModule, and nothing else. Something similar to 
> the following:
> p.put(Context.INITIAL_CONTEXT_FACTORY, 
> "org.apache.openejb.client.LocalInitialContextFactory");
>
> p.put("openejb.deployments.classpath.include", ".*DataServiceEJB/classes.*");
>
> p.put("openejb.deployments.classpath.exclude", ".*");
>
> What should be the proper way to configure?

The above should be good.  I'm not familiar with what exception you mention.  
Is it possible you can post the log output and exception?


-David





Reply via email to