[
https://issues.jboss.org/browse/AS7-839?page=com.atlassian.jira.plugin.sy...
]
Darrin Mison commented on AS7-839:
----------------------------------
Attempts with AS7 trunk (most recent commit sha
1b13aacad3cd720933989e92aa3305b9847d535f):
Depending on what I added to MANIFEST.MF I got one of two errors:
Scenarios that failed on org.slf4j classes
1 - No dependencies
2 - Dependencies: org.hibernate
3 - Dependencies: org.hibernate org.slf4j
Same console output for each:
{quote}
14:22:57,133 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed
to start service jboss.deployment.unit."TopicSearch.war".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."TopicSearch.war".INSTALL: Failed to process phase INSTALL
of deployment "TopicSearch.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
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: Lorg/slf4j/Logger;
at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_24]
at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_24]
at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_24]
at
org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57)
at
org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:65)
at
org.jboss.as.ee.component.EEModuleClassDescription$DefaultConfigurator.configure(EEModuleClassDescription.java:172)
at
org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:70)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 4 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger from [Module
"deployment.TopicSearch.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:188)
[:1.0.0.CR2]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:357)
[:1.0.0.CR2]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:329)
[:1.0.0.CR2]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:306)
[:1.0.0.CR2]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:100)
[:1.0.0.CR2]
... 12 more
{quote}
Scenarios that failed on org.hibernate classes
1 - Dependencies: org.slf4j org.hibernate
{quote}
14:35:18,148 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed
to start service jboss.deployment.unit."TopicSearch.war".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."TopicSearch.war".INSTALL: Failed to process phase INSTALL
of deployment "TopicSearch.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
[jboss-as-server-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
[jboss-msc-1.0.0.Beta8.jar:1.0.0.Beta8]
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 java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_24]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_24]
at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_24]
at
org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65)
[jboss-as-server-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
at
org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:65)
[jboss-as-server-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
at
org.jboss.as.ee.component.EEModuleClassDescription$DefaultConfigurator.configure(EEModuleClassDescription.java:172)
at
org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:70)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
[jboss-as-server-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
... 4 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:188)
[:1.0.0.CR2]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:357)
[:1.0.0.CR2]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:329)
[:1.0.0.CR2]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:306)
[:1.0.0.CR2]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:100)
[:1.0.0.CR2]
... 12 more
{quote}
adding org.hibernate to META-INF/MANIFEST.MF as "Dependencies:
org.hibernate" doesn't cause cause org.slf4j to be loaded
------------------------------------------------------------------------------------------------------------------------
Key: AS7-839
URL:
https://issues.jboss.org/browse/AS7-839
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.0.0.Beta3
Reporter: Darrin Mison
Assignee: Jason Greene
Fix For: No Release
hmmm, just logged AS7-836 and noticed that even though I've added "Dependencies:
org.hiberate" to my apps META-INF/MANIFEST.MF it seems that org.slf4j doesn't get
loaded even though it is a listed as a dependent module in
modules/org/hibernate/main/module.xml. Getting a "java.lang.ClassNotFoundException:
org.slf4j.LoggerFactory" when my app is invoked.
Note: I'm not manually calling slf4j, I think it's getting called by hibernate.
{quote}
Caused by: java.lang.ExceptionInInitializerError
at
com.redhat.ecs.topic.webservice.HibernateUtil.buildSessionFactory(HibernateUtil.java:18)
[classes:]
at com.redhat.ecs.topic.webservice.HibernateUtil.<clinit>(HibernateUtil.java:8)
[classes:]
at com.redhat.ecs.topic.webservice.TopicManager.getTopic(TopicManager.java:40)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[:1.6.0_24]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
[resteasy-jaxrs-2.1.0.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
[resteasy-jaxrs-2.1.0.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
[resteasy-jaxrs-2.1.0.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206)
[resteasy-jaxrs-2.1.0.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:503)
[resteasy-jaxrs-2.1.0.GA.jar:]
... 18 more
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:196)
[hibernate-core-3.6.1.Final.jar:3.6.1.Final]
at
com.redhat.ecs.topic.webservice.HibernateUtil.buildSessionFactory(HibernateUtil.java:13)
[classes:]
... 29 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory from [Module
"org.hibernate:main" from local module loader @63238bd2 (roots:
/Applications/Java/EAP6/jboss-7.0.0.Beta3/modules)]
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]
... 31 more
{quote}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira