-
1. Re: JBAS014775: New missing/unsatisfied dependencies: JBoss 6.1
hm8895 Dec 16, 2013 4:03 PM (in response to hm8895)I added one more jar to the stanalone/deployments, which is failed. and Here is the logs that I am seeing. I am guessing it is due to modular class loading, Please provide me with pointers to fix the issue. I went through the migration tutorial from JBoss 5.X to JBoss 6.X but still confused.
3:56:06,471 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."avmobi.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."avmobi.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "avmobi.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.av.mobi.server.filter.LdapAuthenticationWithSimpleJsonFilter with ClassLoader ModuleClassLoader for Module "deployment.avmobi.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
... 5 more
Caused by: java.lang.NoClassDefFoundError: org/json/me/JSONException
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_45]
at java.lang.Class.privateGetDeclaredFields(Class.java:2300) [rt.jar:1.6.0_45]
at java.lang.Class.getDeclaredFields(Class.java:1745) [rt.jar:1.6.0_45]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
... 10 more
Caused by: java.lang.ClassNotFoundException: org.json.me.JSONException from [Module "deployment.avmobi.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]
... 15 more
13:56:06,480 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "avmobi.war" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.deployment.unit.\"avmobi.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"avmobi.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"avmobi.war\"
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.av.mobi.server.filter.LdapAuthenticationWithSimpleJsonFilter with ClassLoader ModuleClassLoader for Module \"deployment.avmobi.war:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: org/json/me/JSONException
Caused by: java.lang.ClassNotFoundException: org.json.me.JSONException from [Module \"deployment.avmobi.war:main\" from Service Module Loader]"}}
13:56:06,555 INFO [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015877: Stopped deployment avmobi.war (runtime-name: avmobi.war) in 75ms
-
2. Re: JBAS014775: New missing/unsatisfied dependencies: JBoss 6.1
jfclere Dec 17, 2013 10:35 AM (in response to hm8895)1 of 1 people found this helpfuljon*.jar missing in the lib of the webapp?
-
3. Re: JBAS014775: New missing/unsatisfied dependencies: JBoss 6.1
hm8895 Dec 17, 2013 4:14 PM (in response to jfclere)I added JSON jar in lib. Now I am having other issue, I included log4j, commons jars in lib folder, still the issue exists. Web.xml contains following code block, Please suggest what to do to get rid of this issue.
WEB.XML
<filter>
<filter-name>StatisticsFilter</filter-name>
<filter-class>
com.avnet.mobi.server.filter.AvMobilityStatisticsFilter
</filter-class>
<init-param>
<param-name>LoggerJndiName</param-name>
<param-value>java:logging/common/AuditLog</param-value>
</init-param>
</filter>
it was mentioned in the config file: CommonAuditLogConnector-ds.xml (-ds.xml s are no longer used in JBoss 6.1 EAP), so How do I make sure my war file gets reference of "CommonAuditLogConnector.rar" file, which is already deployed to standalone/deployments folder ?
<connection-factories>
<no-tx-connection-factory>
<jndi-name>logging/common/AuditLog</jndi-name>
<rar-name>CommonAuditLogConnector.rar</rar-name>
<connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
</no-tx-connection-factory>
</connection-factories>
Error Log:
12:47:01,631 INFO [com.avnet.mobi.server.filter.AvMobilityStatisticsFilter] (ServerService Thread Pool -- 58) Looking up logging connector at: java:logging/common/AuditLog
12:47:01,631 ERROR [com.avnet.mobi.server.filter.AvMobilityStatisticsFilter] (ServerService Thread Pool -- 58) Error obtaining logging connector 'java:logging/common/AuditLog': java:logging/common/AuditLog
12:47:01,632 ERROR [stderr] (ServerService Thread Pool -- 58) javax.naming.NameNotFoundException: java:logging/common/AuditLog
12:47:01,632 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.as.naming.InitialContext.findContext(InitialContext.java:198)
12:47:01,632 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:118)
12:47:01,633 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
12:47:01,633 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
12:47:01,633 ERROR [stderr] (ServerService Thread Pool -- 58) at javax.naming.InitialContext.lookup(InitialContext.java:392)
12:47:01,634 ERROR [stderr] (ServerService Thread Pool -- 58) at com.avnet.mobi.server.filter.AvnetMobilityStatisticsFilter.init(AvMobilityStatisticsFilter.java:608)
12:47:01,634 ERROR [stderr] (ServerService Thread Pool -- 58) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:416)
12:47:01,637 ERROR [stderr] (ServerService Thread Pool -- 58) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3225)
12:47:01,637 ERROR [stderr] (ServerService Thread Pool -- 58) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3791)
12:47:01,637 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156)
12:47:01,638 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
12:47:01,640 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
12:47:01,640 ERROR [stderr] (ServerService Thread Pool -- 58) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
12:47:01,640 ERROR [stderr] (ServerService Thread Pool -- 58) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
12:47:01,641 ERROR [stderr] (ServerService Thread Pool -- 58) at java.util.concurrent.FutureTask.run(FutureTask.java:138)
12:47:01,642 ERROR [stderr] (ServerService Thread Pool -- 58) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
12:47:01,642 ERROR [stderr] (ServerService Thread Pool -- 58) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
12:47:01,643 ERROR [stderr] (ServerService Thread Pool -- 58) at java.lang.Thread.run(Thread.java:662)
12:47:01,643 ERROR [stderr] (ServerService Thread Pool -- 58) at org.jboss.threads.JBossThread.run(JBossThread.java:122)
12:47:01,655 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/avmobi]] (ServerService Thread Pool -- 58) JBWEB000284: Exception starting filter StatisticsFilter: javax.servlet.ServletException: Error obtaining logging connector: java:logging/common/AuditLog
at com.avnet.mobi.server.filter.AvnetMobilityStatisticsFilter.init(AvMobilityStatisticsFilter.java:619) [avmobi.jar:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:416) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3225) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3791) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [rt.jar:1.6.0_45]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
12:47:01,659 INFO [com.avnet.mobi.server.filter.LdapAuthenticationWithSimpleJsonFilter] (ServerService Thread Pool -- 58) com.avnet.mobi.server.filter.LdapAuthenticationWithSimpleJsonFilter successfully initialized - watching for parameter: auth
12:47:01,660 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 58) JBWEB001103: Error detected during context /avmobi start, will stop it
12:47:01,668 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC00001: Failed to start service jboss.web.deployment.default-host./avmobi: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./avmobi: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [rt.jar:1.6.0_45]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
... 7 more