0 Replies Latest reply on Dec 11, 2014 11:29 AM by mrutyunjay singh

    couldnot initalize class from jar jboss 6.1 while publishing

    mrutyunjay singh Newbie

      This is the stacktrace.

       

      my jboss-deployment-structure.xml looks like

       

      <?xml version="1.0" encoding="UTF-8"?>

        <jboss-deployment-structure>

            <deployment>

             <exclusions>

             

              <module name="org.apache.commons.logging"/>

              <module name="org.jboss.log4j.logmanager"/>

              

          </exclusions>

           

                    <dependencies>

                                <module name="com.snet" />

                                 <module name="com.logging" />

                    </dependencies>

                </deployment>

               

      </jboss-deployment-structure>

       

       

       

       

      21:08:29,316 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "snet.war" (runtime-name: "snet.war")
      21:08:29,515 WARN  [org.jboss.as.ee] (MSC service thread 1-1) JBAS011006: Not installing optional component issnet.utils.SessionServlet due to exception: java.lang.ClassNotFoundException: issnet.utils.SessionServlet from [Module "deployment.snet.war:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-redhat-1]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:399) [jboss-modules.jar:1.2.0.Final-redhat-1]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:399) [jboss-modules.jar:1.2.0.Final-redhat-1]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1]
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1]
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) [rt.jar:1.6.0_16]
      at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_16]
      at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_16]
      at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
      at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:78) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_16]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_16]
      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_16]

      21:08:29,537 INFO  [org.jboss.web] (ServerService Thread Pool -- 78) JBAS018210: Register web context: /SNet
      21:08:29,551 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SNet]] (ServerService Thread Pool -- 78) JBWEB000284: Exception starting filter Security Filter: java.lang.NoClassDefFoundError: Could not initialize class com.ge.appl.log.GEALogger
      at security.filter.SecurityFilter.<clinit>(SecurityFilter.java:24) [classes:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_16]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_16]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_16]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_16]
      at org.jboss.msc.value.ConstructedValue.getValue(ConstructedValue.java:61)
      at org.jboss.as.naming.ValueManagedReferenceFactory.getReference(ValueManagedReferenceFactory.java:50)
      at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:90) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.component.WebComponentInstantiator$1.<init>(WebComponentInstantiator.java:57) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.component.WebComponentInstantiator.getReference(WebComponentInstantiator.java:55) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebInjectionContainer.instantiate(WebInjectionContainer.java:101) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:80) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:74) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:410) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3225) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3791) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
      at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_16]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_16]
      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_16]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_16]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_16]
      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_16]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      21:08:29,553 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 78) JBWEB001103: Error detected during context /SNet start, will stop it
      21:08:29,556 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 78) MSC000001: Failed to start service jboss.web.deployment.default-host./SNet: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./SNet: 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:441) [rt.jar:1.6.0_16]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_16]
      at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_16]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_16]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_16]
      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_16]
      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

      21:08:29,760 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "snet.war" was rolled back with the following failure message:
      {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./SNet" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./SNet: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
          Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}}
      21:08:29,766 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment snet.war (runtime-name: snet.war) in 5ms