openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Dellisanti <nicola.dellisa...@gmail.com>
Subject NoClassDefFoundError: Could not fully load class
Date Fri, 18 Feb 2011 10:04:02 GMT
Hi,

I had the error "NoClassDefFoundError: Could not fully load class" and I saw
in

http://www.opensubscriber.com/message/users@openejb.apache.org/13758726.html
that Jpa 2.0 is not supported by OpenEJB. It's true again today? I have to
use JPA 1.0 in OpenEJB 3.1.4 ?
I do not have @ManagedBean annotation for my managed-bean

I have my ejb in a jar (under webapp), and I have my web application in a
war file (under webapp).
My tomcat version is 6.0.32
My OpenEjB version is 3.1.4
I use eclipselink 2.1

this is my catalina.log
18-feb-2011 10.50.54 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
18-feb-2011 10.50.54 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
18-feb-2011 10.51.00 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
18-feb-2011 10.51.00 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
18-feb-2011 10.51.00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6663 ms
18-feb-2011 10.51.00 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
18-feb-2011 10.51.00 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
18-feb-2011 10.51.00 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
18-feb-2011 10.51.02 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
18-feb-2011 10.51.02 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor openejb.xml
18-feb-2011 10.51.03 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor test.xml
18-feb-2011 10.51.03 org.apache.catalina.startup.HostConfig deployDescriptor
AVVERTENZA: A docBase C:\Programmi\apache-tomcat-6.0.32\webapps\DBTest
inside the host appBase has been specified, and will be ignored
18-feb-2011 10.51.06 org.apache.catalina.startup.HostConfig deployDescriptor
GRAVE: Error deploying configuration descriptor test.xml
java.lang.NoClassDefFoundError: Could not fully load class:
it.het.richtest.testbackingbean.TestBackingBean
 due to:it/het/richtest/ejb/RichTestEJB
 in classLoader:
org.apache.openejb.core.TempClassLoader@1791620
 at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:161)
 at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.createInheritedClassFinder(AnnotationDeployer.java:3240)
 at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1028)
 at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:206)
 at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.createWebModule(TomcatWebAppBuilder.java:662)
 at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:541)
 at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:242)
 at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4611)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
 at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
 at org.apache.catalina.core.StandardService.start(StandardService.java:525)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
 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:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
18-feb-2011 10.51.06 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive test.war
18-feb-2011 10.51.06 org.apache.catalina.startup.HostConfig deployWAR
GRAVE: Error deploying web application archive test.war
java.lang.NoClassDefFoundError: Could not fully load class:
it.het.richtest.testbackingbean.TestBackingBean
 due to:it/het/richtest/ejb/RichTestEJB
 in classLoader:
org.apache.openejb.core.TempClassLoader@82f392
 at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:161)
 at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.createInheritedClassFinder(AnnotationDeployer.java:3240)
 at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1028)
 at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:206)
 at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.createWebModule(TomcatWebAppBuilder.java:662)
 at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:541)
 at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:242)
 at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4611)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
 at org.apache.catalina.core.StandardService.start(StandardService.java:525)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
 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:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
18-feb-2011 10.51.06 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
18-feb-2011 10.51.07 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
18-feb-2011 10.51.08 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
18-feb-2011 10.51.08 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
18-feb-2011 10.51.08 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
18-feb-2011 10.51.08 org.apache.catalina.startup.Catalina start
INFO: Server startup in 8110 ms
this is my openejb.log
2011-02-18 10:50:55,078 - INFO  - openejb.home =
C:\Programmi\apache-tomcat-6.0.32
2011-02-18 10:50:55,093 - INFO  - openejb.base =
C:\Programmi\apache-tomcat-6.0.32
2011-02-18 10:50:55,687 - INFO  - Using
'openejb.provider.default=org.apache.openejb.tomcat'
2011-02-18 10:50:55,718 - INFO  - Configuring Service(id=Tomcat Security
Service, type=SecurityService, provider-id=Tomcat Security Service)
2011-02-18 10:50:55,718 - INFO  - Configuring Service(id=Default Transaction
Manager, type=TransactionManager, provider-id=Default Transaction Manager)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=My DataSource,
type=Resource, provider-id=Default JDBC Database)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=My Unmanaged
DataSource, type=Resource, provider-id=Default JDBC Database)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=MySqlDataSource,
type=Resource, provider-id=Default JDBC Database)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=My JMS Resource
Adapter, type=Resource, provider-id=Default JMS Resource Adapter)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=My JMS Connection
Factory, type=Resource, provider-id=Default JMS Connection Factory)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=My Stateful
Container, type=Container, provider-id=Default Stateful Container)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=My Stateless
Container, type=Container, provider-id=Default Stateless Container)
2011-02-18 10:50:55,734 - INFO  - Configuring Service(id=My MDB Container,
type=Container, provider-id=Default MDB Container)
2011-02-18 10:50:55,734 - INFO  - Using 'openejb.deployments.classpath=true'
2011-02-18 10:50:55,734 - INFO  - Using
'openejb.deployments.classpath.filter.systemapps=false'
2011-02-18 10:50:55,953 - INFO  - Found EjbModule in classpath:
C:\Programmi\apache-tomcat-6.0.32\webapps\openejb\lib\openejb-core-3.1.4.jar
2011-02-18 10:50:56,296 - INFO  - Beginning load:
C:\Programmi\apache-tomcat-6.0.32\webapps\openejb\lib\openejb-core-3.1.4.jar
2011-02-18 10:50:56,546 - INFO  - Configuring enterprise application:
classpath.ear
2011-02-18 10:50:58,437 - INFO  - Enterprise application "classpath.ear"
loaded.
2011-02-18 10:50:58,437 - INFO  - Creating TransactionManager(id=Default
Transaction Manager)
2011-02-18 10:50:58,562 - INFO  - Creating SecurityService(id=Tomcat
Security Service)
2011-02-18 10:50:58,593 - INFO  - Creating Resource(id=My DataSource)
2011-02-18 10:50:58,625 - INFO  - Creating Resource(id=My Unmanaged
DataSource)
2011-02-18 10:50:58,640 - INFO  - Creating Resource(id=MySqlDataSource)
2011-02-18 10:50:58,640 - INFO  - Creating Resource(id=My JMS Resource
Adapter)
2011-02-18 10:50:59,062 - INFO  - Creating Resource(id=My JMS Connection
Factory)
2011-02-18 10:50:59,078 - INFO  - Creating ConnectionManager for
Resource(id=My JMS Connection Factory)
2011-02-18 10:50:59,109 - INFO  - Creating Container(id=My Stateful
Container)
2011-02-18 10:50:59,171 - WARN  - Property "AccessTimeout" not supported by
"My Stateful Container"
2011-02-18 10:50:59,171 - INFO  - Creating Container(id=My Stateless
Container)
2011-02-18 10:50:59,203 - INFO  - Creating Container(id=My MDB Container)
2011-02-18 10:50:59,265 - INFO  - Assembling app: classpath.ear
2011-02-18 10:50:59,343 - INFO  - Using
'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
2011-02-18 10:50:59,375 - INFO  -
Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
2011-02-18 10:50:59,375 - INFO  - Jndi(name=openejb/DeployerBusinessRemote)
--> Ejb(deployment-id=openejb/Deployer)
2011-02-18 10:50:59,375 - INFO  - Jndi(name=MEJB) -->
Ejb(deployment-id=MEJB)
2011-02-18 10:50:59,390 - INFO  - Jndi(name=MEJBLocalBean) -->
Ejb(deployment-id=MEJB)
2011-02-18 10:50:59,500 - INFO  - Created
Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
2011-02-18 10:50:59,531 - INFO  - Created
Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer, container=My
Stateless Container)
2011-02-18 10:50:59,562 - INFO  - Created Ejb(deployment-id=MEJB,
ejb-name=MEJB, container=My Stateless Container)
2011-02-18 10:50:59,562 - INFO  - Deployed Application(path=classpath.ear)
2011-02-18 10:51:00,812 - INFO  - Importing a Tomcat Resource with id
'UserDatabase' of type 'org.apache.catalina.UserDatabase'.
2011-02-18 10:51:00,812 - INFO  - Creating Resource(id=UserDatabase)
2011-02-18 10:51:01,812 - INFO  - Configuring enterprise application:
C:\Programmi\apache-tomcat-6.0.32\webapps\host-manager
2011-02-18 10:51:01,843 - INFO  - Enterprise application
"C:\Programmi\apache-tomcat-6.0.32\webapps\host-manager" loaded.
2011-02-18 10:51:01,843 - INFO  - Assembling app:
C:\Programmi\apache-tomcat-6.0.32\webapps\host-manager
2011-02-18 10:51:01,843 - INFO  - Deployed
Application(path=C:\Programmi\apache-tomcat-6.0.32\webapps\host-manager)
2011-02-18 10:51:02,531 - INFO  - Configuring enterprise application:
C:\Programmi\apache-tomcat-6.0.32\webapps\manager
2011-02-18 10:51:02,546 - INFO  - Enterprise application
"C:\Programmi\apache-tomcat-6.0.32\webapps\manager" loaded.
2011-02-18 10:51:02,546 - INFO  - Assembling app:
C:\Programmi\apache-tomcat-6.0.32\webapps\manager
2011-02-18 10:51:02,546 - INFO  - Deployed
Application(path=C:\Programmi\apache-tomcat-6.0.32\webapps\manager)
2011-02-18 10:51:03,140 - INFO  - Configuring enterprise application:
C:\Programmi\apache-tomcat-6.0.32\webapps\openejb
2011-02-18 10:51:03,203 - INFO  - Enterprise application
"C:\Programmi\apache-tomcat-6.0.32\webapps\openejb" loaded.
2011-02-18 10:51:03,203 - INFO  - Assembling app:
C:\Programmi\apache-tomcat-6.0.32\webapps\openejb
2011-02-18 10:51:03,203 - INFO  - Deployed
Application(path=C:\Programmi\apache-tomcat-6.0.32\webapps\openejb)
2011-02-18 10:51:06,828 - INFO  - Configuring enterprise application:
C:\Programmi\apache-tomcat-6.0.32\webapps\docs
2011-02-18 10:51:06,843 - INFO  - Enterprise application
"C:\Programmi\apache-tomcat-6.0.32\webapps\docs" loaded.
2011-02-18 10:51:06,843 - INFO  - Assembling app:
C:\Programmi\apache-tomcat-6.0.32\webapps\docs
2011-02-18 10:51:06,843 - INFO  - Deployed
Application(path=C:\Programmi\apache-tomcat-6.0.32\webapps\docs)
2011-02-18 10:51:07,734 - INFO  - Configuring enterprise application:
C:\Programmi\apache-tomcat-6.0.32\webapps\examples
2011-02-18 10:51:07,859 - INFO  - Enterprise application
"C:\Programmi\apache-tomcat-6.0.32\webapps\examples" loaded.
2011-02-18 10:51:07,859 - INFO  - Assembling app:
C:\Programmi\apache-tomcat-6.0.32\webapps\examples
2011-02-18 10:51:07,859 - INFO  - Deployed
Application(path=C:\Programmi\apache-tomcat-6.0.32\webapps\examples)
2011-02-18 10:51:08,406 - INFO  - Configuring enterprise application:
C:\Programmi\apache-tomcat-6.0.32\webapps\ROOT
2011-02-18 10:51:08,421 - INFO  - Enterprise application
"C:\Programmi\apache-tomcat-6.0.32\webapps\ROOT" loaded.
2011-02-18 10:51:08,421 - INFO  - Assembling app:
C:\Programmi\apache-tomcat-6.0.32\webapps\ROOT
2011-02-18 10:51:08,421 - INFO  - Deployed
Application(path=C:\Programmi\apache-tomcat-6.0.32\webapps\ROOT)
2011-02-18 10:51:18,859 - INFO  - Configuring enterprise application:
C:\Programmi\apache-tomcat-6.0.32\webapps\richtestejb.jar
2011-02-18 10:51:19,109 - INFO  - Auto-linking resource-ref 'RichTestJPA' in
bean RichTestEJBBean to Resource(id=My DataSource)
2011-02-18 10:51:19,109 - INFO  - Configuring
PersistenceUnit(name=RichTestJPA,
provider=org.eclipse.persistence.jpa.PersistenceProvider)
2011-02-18 10:51:19,109 - INFO  - Auto-creating a Resource with id
'MySqlDataSourceNonJta' of type 'DataSource for 'RichTestJPA'.
2011-02-18 10:51:19,109 - INFO  - Configuring
Service(id=MySqlDataSourceNonJta, type=Resource,
provider-id=MySqlDataSource)
2011-02-18 10:51:19,109 - INFO  - Creating
Resource(id=MySqlDataSourceNonJta)
2011-02-18 10:51:19,125 - INFO  - Adjusting PersistenceUnit RichTestJPA
<non-jta-data-source> to Resource ID 'MySqlDataSourceNonJta' from 'null'
2011-02-18 10:51:19,125 - INFO  - Enterprise application
"C:\Programmi\apache-tomcat-6.0.32\webapps\richtestejb.jar" loaded.
2011-02-18 10:51:19,125 - INFO  - Assembling app:
C:\Programmi\apache-tomcat-6.0.32\webapps\richtestejb.jar
2011-02-18 10:51:19,781 - INFO  - PersistenceUnit(name=RichTestJPA,
provider=org.eclipse.persistence.jpa.PersistenceProvider) - provider time
650ms
2011-02-18 10:51:19,843 - INFO  - Jndi(name=RichTestEJBBeanLocal) -->
Ejb(deployment-id=RichTestEJBBean)
2011-02-18 10:51:19,890 - INFO  - Created Ejb(deployment-id=RichTestEJBBean,
ejb-name=RichTestEJBBean, container=My Stateless Container)
2011-02-18 10:51:19,890 - INFO  - Deployed
Application(path=C:\Programmi\apache-tomcat-6.0.32\webapps\richtestejb.jar)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message