[jboss-jira] [JBoss JIRA] Created: (AS7-836) non JPA app using hibernate doesn't cause org.hibernate classes to be loaded
Darrin Mison (JIRA)
jira-events at lists.jboss.org
Wed May 18 10:05:01 EDT 2011
non JPA app using hibernate doesn't cause org.hibernate classes to be loaded
----------------------------------------------------------------------------
Key: AS7-836
URL: https://issues.jboss.org/browse/AS7-836
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.0.0.Beta3
Reporter: Darrin Mison
Assignee: Jason Greene
I'm using hibernate but not not using @PersistenceContext or @PersistenceUnit and so my deployment is not being marked as a JPA deployment, and therefore the hibernate jars are not available.
I've worked around it by adding a Dependencies: org.hibernate to my manifest.mf file
{quote}
16:46:34,843 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "TopicSearch.war"
16:46:36,090 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/TopicSearch]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap: java.lang.RuntimeException: Failed to construct public com.redhat.ecs.topic.webservice.MyRESTApplication()
at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:144) [resteasy-jaxrs-2.1.0.GA.jar:]
at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:249) [resteasy-jaxrs-2.1.0.GA.jar:]
at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:192) [resteasy-jaxrs-2.1.0.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28) [resteasy-jaxrs-2.1.0.GA.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.Beta11.jar:7.0.0.Beta3]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3817) [jbossweb-7.0.0.Beta11.jar:7.0.0.Beta3]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:61) [jboss-as-web-7.0.0.Beta3.jar:7.0.0.Beta3]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: java.lang.NoClassDefFoundError: org/hibernate/Session
at com.redhat.ecs.topic.webservice.MyRESTApplication.<init>(MyRESTApplication.java:12) [classes:]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_24]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_24]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_24]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_24]
at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:132) [resteasy-jaxrs-2.1.0.GA.jar:]
... 10 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.Session from [Module "deployment.TopicSearch.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:184) [:1.0.0.Beta17]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:357) [:1.0.0.Beta17]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:329) [:1.0.0.Beta17]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:306) [:1.0.0.Beta17]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:100) [:1.0.0.Beta17]
... 16 more
16:46:36,100 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
16:46:36,100 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/TopicSearch] startup failed due to previous errors
16:46:36,120 INFO [org.jboss.web] (MSC service thread 1-2) registering web context: /TopicSearch
{quote}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list