Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Enhance
    • Labels:
      None
    • Environment:
      GlassFish 3.0.1, OpenJPA 2.0

      Description

      Can not deploy application on GlassFish 3 as enhancement fails to load persistent classes.
      Listing the classes in persistence.xml did not solved the issue.

      The application is running fine if using eclipselink.

      openjpa jar files and dependencies from distribution are copied in domain1/lib directory.

      The error log is:
      SEVERE: 44 SimpleEnterpriseApplication2-ejbPU INFO [http-thread-pool-4848-(1)] openjpa.Runtime - OpenJPA dynamically loaded a validation provider.

      INFO: JTS5014: Recoverable JTS instance, serverId = [3700]
      WARNING: LDR5207: ASURLClassLoader EarLibClassLoader :
      doneCalled = true
      doneSnapshot = ASURLClassLoader.done() called ON EarLibClassLoader :
      ...
      doneCalled = false
      Parent -> org.glassfish.internal.api.DelegatingClassLoader@173bb48
      AT Thu Aug 26 16:33:32 EEST 2010
      BY :java.lang.Throwable: printStackTraceToString
      at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:634)
      at com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:170)
      at com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:153)
      at org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:96)
      at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:212)
      at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:164)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:159)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:211)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)
      Parent -> org.glassfish.internal.api.DelegatingClassLoader@173bb11
      was requested to find class tests.domain.SimpleEntity after done was invoked from the following stack trace
      java.lang.Throwable
      at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:706)
      at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:626)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at serp.util.Strings.toClass(Strings.java:162)
      at serp.util.Strings.toClass(Strings.java:108)
      at serp.bytecode.BCClass.getType(BCClass.java:566)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120)
      at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312)
      at org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202)
      at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      at java.lang.Class.privateGetPublicMethods(Class.java:2547)
      at java.lang.Class.getMethods(Class.java:1410)
      at com.sun.ejb.codegen.RemoteGenerator.<init>(RemoteGenerator.java:108)
      at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:499)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:598)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)

      WARNING: LDR5207: ASURLClassLoader EarClassLoader :
      doneCalled = true
      doneSnapshot = ASURLClassLoader.done() called ON EarClassLoader :
      urlSet = [URLEntry : ...]
      doneCalled = false
      Parent -> org.glassfish.internal.api.DelegatingClassLoader@9332a3
      AT Thu Aug 26 16:33:32 EEST 2010
      BY :java.lang.Throwable: printStackTraceToString
      at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:634)
      at com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:170)
      at com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:153)
      at org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:93)
      at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:212)
      at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:164)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:159)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:211)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)
      Parent -> org.glassfish.internal.api.DelegatingClassLoader@9332f4
      was requested to find class tests.domain.SimpleEntity after done was invoked from the following stack trace
      java.lang.Throwable
      at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:706)
      at com.sun.enterprise.loader.ASURLClassLoader$DelegatingClassLoader.findClass(ASURLClassLoader.java:1347)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at serp.util.Strings.toClass(Strings.java:162)
      at serp.util.Strings.toClass(Strings.java:108)
      at serp.bytecode.BCClass.getType(BCClass.java:566)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120)
      at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312)
      at org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202)
      at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      at java.lang.Class.privateGetPublicMethods(Class.java:2547)
      at java.lang.Class.getMethods(Class.java:1410)
      at com.sun.ejb.codegen.RemoteGenerator.<init>(RemoteGenerator.java:108)
      at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:499)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:598)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)

      SEVERE: 2920 SimpleEnterpriseApplication2-ejbPU WARN [http-thread-pool-4848-(1)] openjpa.Enhance - An exception was thrown while attempting to perform class file transformation on "tests/domain/SimpleEntity":
      java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: tests.domain.SimpleEntity
      at serp.util.Strings.toClass(Strings.java:164)
      at serp.util.Strings.toClass(Strings.java:108)
      at serp.bytecode.BCClass.getType(BCClass.java:566)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120)
      at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312)
      at org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202)
      at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      at java.lang.Class.privateGetPublicMethods(Class.java:2547)
      at java.lang.Class.getMethods(Class.java:1410)
      at com.sun.ejb.codegen.RemoteGenerator.<init>(RemoteGenerator.java:108)
      at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:499)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:598)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)

      SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method
      java.lang.RuntimeException: EJB Container initialization error
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:219)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: tests.domain.SimpleEntity
      at serp.util.Strings.toClass(Strings.java:164)
      at serp.util.Strings.toClass(Strings.java:108)
      at serp.bytecode.BCClass.getType(BCClass.java:566)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120)
      at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312)
      at org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202)
      at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      at java.lang.Class.privateGetPublicMethods(Class.java:2547)
      at java.lang.Class.getMethods(Class.java:1410)
      at com.sun.ejb.codegen.RemoteGenerator.<init>(RemoteGenerator.java:108)
      at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:499)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:598)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207)
      ... 32 more

      SEVERE: Exception while loading the app
      java.lang.RuntimeException: EJB Container initialization error
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:219)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197)
      at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
      at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
      at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: tests.domain.SimpleEntity
      at serp.util.Strings.toClass(Strings.java:164)
      at serp.util.Strings.toClass(Strings.java:108)
      at serp.bytecode.BCClass.getType(BCClass.java:566)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256)
      at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139)
      at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120)
      at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312)
      at org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202)
      at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      at java.lang.Class.privateGetPublicMethods(Class.java:2547)
      at java.lang.Class.getMethods(Class.java:1410)
      at com.sun.ejb.codegen.RemoteGenerator.<init>(RemoteGenerator.java:108)
      at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:499)
      at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:598)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150)
      at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144)
      at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
      at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207)
      ... 32 more

        Activity

        Hide
        Michael Dick added a comment -

        Closing issue which has been resolved for some time. If you believe the issue is not resolved please reopen or open a new issue.

        Show
        Michael Dick added a comment - Closing issue which has been resolved for some time. If you believe the issue is not resolved please reopen or open a new issue.
        Hide
        Jeremy Bauer added a comment -

        I (finally) opened a glassfish issue for the LDR5206 warning that occurs during the container enhancement phase. From my simple tests, it doesn't seem to cause any critical issues, but it would be good to come to a resolution.

        https://glassfish.dev.java.net/issues/show_bug.cgi?id=13879

        Show
        Jeremy Bauer added a comment - I (finally) opened a glassfish issue for the LDR5206 warning that occurs during the container enhancement phase. From my simple tests, it doesn't seem to cause any critical issues, but it would be good to come to a resolution. https://glassfish.dev.java.net/issues/show_bug.cgi?id=13879
        Hide
        Jeremy Bauer added a comment -

        After a few exchanges with Laird on the OpenJPA mailing list, I relayed the OpenJPA issue on Glassfish forum and provided a link to a sample NetBeans project which can be used to reproduce the issue. If it turns out to be an OpenJPA problem or something OpenJPA can easily code for/against, this JIRA will be reopened.

        Show
        Jeremy Bauer added a comment - After a few exchanges with Laird on the OpenJPA mailing list, I relayed the OpenJPA issue on Glassfish forum and provided a link to a sample NetBeans project which can be used to reproduce the issue. If it turns out to be an OpenJPA problem or something OpenJPA can easily code for/against, this JIRA will be reopened.
        Hide
        Jeremy Bauer added a comment -

        Laird,

        Thank you for following up on the Glassfish side of this. If it turns out to be something quirky that OpenJPA is doing please reopen this JIRA. While that warning doesn't seem to be causing any problems, it sure is an eyesore.

        Show
        Jeremy Bauer added a comment - Laird, Thank you for following up on the Glassfish side of this. If it turns out to be something quirky that OpenJPA is doing please reopen this JIRA. While that warning doesn't seem to be causing any problems, it sure is an eyesore.
        Hide
        Laird Nelson added a comment -

        Please also see Glassfish issue 13111: https://glassfish.dev.java.net/issues/show_bug.cgi?id=13111

        Show
        Laird Nelson added a comment - Please also see Glassfish issue 13111: https://glassfish.dev.java.net/issues/show_bug.cgi?id=13111
        Hide
        Jeremy Bauer added a comment -

        I've done some additional research and debugging of this issue and the LDR5207 message coming from GlassFish is caused by AnnotationPersistenceMetaDataParser.getSourceFile() attempting to load the source location of a persistent java or class file with a classloader (the EarLibClassLoader used for deployment) that was marked by the app server as "done". This is simply an ugly warning coming out of the app server and does not cause issues at runtime. OpenJPA never actually gets the exception. Besides this warning, OpenJPA 2.0 seems to be working fine with GlassFish 3.0.1.

        Show
        Jeremy Bauer added a comment - I've done some additional research and debugging of this issue and the LDR5207 message coming from GlassFish is caused by AnnotationPersistenceMetaDataParser.getSourceFile() attempting to load the source location of a persistent java or class file with a classloader (the EarLibClassLoader used for deployment) that was marked by the app server as "done". This is simply an ugly warning coming out of the app server and does not cause issues at runtime. OpenJPA never actually gets the exception. Besides this warning, OpenJPA 2.0 seems to be working fine with GlassFish 3.0.1.
        Hide
        Jeremy Bauer added a comment -

        Thanks for the update, Radu. I created a few sample EAR projects with Netbeans + GlassFish 3.0.1. I see one ugly OpenJPA exception (copied below) during the enhancement phase. Container/classloader based enhancement was successful. My simple app (servlet calling EJB, EJB w/ injected persistence context) ran without problems. I also tried not listing my persistent classes in the persistence.xml and they got enhanced. This wasn't working on earlier versions of GlassFish. I'm taking a closer look at the exception below - other than it, OpenJPA 2.0.0 seems to be working fine with GlassFish 3.0.1. Please post again if you run into additional problems with this configuration, with NetBeans project and/or ear if possible.

        WARNING: LDR5206: ASURLClassLoader EarLibClassLoader :
        doneCalled = true
        doneSnapshot = ASURLClassLoader.done() called ON EarLibClassLoader :
        urlSet = [URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-collections-3.2.1.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-lang-2.1.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-pool-1.5.3.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/geronimo-jpa_2.0_spec-1.0.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/JPALibrary.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/openjpa-2.0.0.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/serp-1.13.1.jar]
        doneCalled = false
        Parent -> org.glassfish.internal.api.DelegatingClassLoader@ed4dd2d
        AT Fri Aug 27 12:36:40 CDT 2010
        BY :java.lang.Throwable: printStackTraceToString
        at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:634)
        at com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:170)
        at com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:153)
        at org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:96)
        at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:212)
        at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:164)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:159)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:211)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:362)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:185)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
        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:236)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
        at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:619)
        Parent -> org.glassfish.internal.api.DelegatingClassLoader@ed4dd2d
        was requested to find resource test/model/Employee.class after done was invoked from the following stack trace
        java.lang.Throwable
        at com.sun.enterprise.loader.ASURLClassLoader.findResource(ASURLClassLoader.java:456)
        at java.lang.ClassLoader.getResource(ClassLoader.java:1003)
        at org.apache.openjpa.lib.util.J2DoPrivHelper$13.run(J2DoPrivHelper.java:410)
        at org.apache.openjpa.lib.util.J2DoPrivHelper$13.run(J2DoPrivHelper.java:408)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getSourceFile(AnnotationPersistenceMetaDataParser.java:797)
        at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:753)
        at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:546)
        at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:416)
        at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:260)
        at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:554)
        at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:374)
        at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:358)
        at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256)
        at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227)
        at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139)
        at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120)
        at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312)
        at org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202)
        at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getMethod0(Class.java:2670)
        at java.lang.Class.getMethod(Class.java:1603)
        at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:693)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:362)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:185)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
        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:236)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
        at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:619)

        Show
        Jeremy Bauer added a comment - Thanks for the update, Radu. I created a few sample EAR projects with Netbeans + GlassFish 3.0.1. I see one ugly OpenJPA exception (copied below) during the enhancement phase. Container/classloader based enhancement was successful. My simple app (servlet calling EJB, EJB w/ injected persistence context) ran without problems. I also tried not listing my persistent classes in the persistence.xml and they got enhanced. This wasn't working on earlier versions of GlassFish. I'm taking a closer look at the exception below - other than it, OpenJPA 2.0.0 seems to be working fine with GlassFish 3.0.1. Please post again if you run into additional problems with this configuration, with NetBeans project and/or ear if possible. WARNING: LDR5206: ASURLClassLoader EarLibClassLoader : doneCalled = true doneSnapshot = ASURLClassLoader.done() called ON EarLibClassLoader : urlSet = [URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-collections-3.2.1.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-lang-2.1.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-pool-1.5.3.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/geronimo-jpa_2.0_spec-1.0.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/JPALibrary.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/openjpa-2.0.0.jar, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/serp-1.13.1.jar] doneCalled = false Parent -> org.glassfish.internal.api.DelegatingClassLoader@ed4dd2d AT Fri Aug 27 12:36:40 CDT 2010 BY :java.lang.Throwable: printStackTraceToString at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:634) at com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:170) at com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:153) at org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:96) at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:212) at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:164) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:159) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:211) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:362) at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:185) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84) 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:236) at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401) at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) at org.jvnet.hk2.osgimain.Main.start(Main.java:140) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) Parent -> org.glassfish.internal.api.DelegatingClassLoader@ed4dd2d was requested to find resource test/model/Employee.class after done was invoked from the following stack trace java.lang.Throwable at com.sun.enterprise.loader.ASURLClassLoader.findResource(ASURLClassLoader.java:456) at java.lang.ClassLoader.getResource(ClassLoader.java:1003) at org.apache.openjpa.lib.util.J2DoPrivHelper$13.run(J2DoPrivHelper.java:410) at org.apache.openjpa.lib.util.J2DoPrivHelper$13.run(J2DoPrivHelper.java:408) at java.security.AccessController.doPrivileged(Native Method) at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getSourceFile(AnnotationPersistenceMetaDataParser.java:797) at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:753) at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:546) at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:416) at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:260) at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:554) at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:374) at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:358) at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256) at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227) at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139) at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120) at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312) at org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202) at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:296) at java.lang.ClassLoader.loadClass(ClassLoader.java:296) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:693) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144) at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99) at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:362) at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:185) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84) 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:236) at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401) at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) at org.jvnet.hk2.osgimain.Main.start(Main.java:140) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619)
        Hide
        Radu B added a comment -

        Jeremy, thanks for your support.

        I created a new NetBeans project which was successfully deployed on GlassFish 3. It is clear that it is not an OpenJPA issue, it must be a project configuration issue.

        Regards,
        Radu

        Show
        Radu B added a comment - Jeremy, thanks for your support. I created a new NetBeans project which was successfully deployed on GlassFish 3. It is clear that it is not an OpenJPA issue, it must be a project configuration issue. Regards, Radu
        Hide
        Jeremy Bauer added a comment -

        Any chance you can post your application and/or project to help debug this problem?

        Show
        Jeremy Bauer added a comment - Any chance you can post your application and/or project to help debug this problem?

          People

          • Assignee:
            Jeremy Bauer
            Reporter:
            Radu B
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development