5 Replies Latest reply on Nov 22, 2010 10:37 AM by Peter Johnson

    Application works with JBoss 5.0 but not working with JBoss 5.1

    Aashish Shivhare Newbie

      Hi there,

       

      I am working in my application in which I use JBoss 5.0 it works fine.

      Then I tried to deploy my application in JBoss 5.1 it gives internal exception occurs.

      But my aaplication works fine with Tomcat.

       

      I attached the image of the occured exception.

       

      Please help me.

        • 1. Re: Application works with JBoss 5.0 but not working with JBoss 5.1
          Wolf-Dieter Fink Master

          That looks like a problem with different versions of classes.

          Do you have 'Jasper' included in you application archives?

          • 2. Re: Application works with JBoss 5.0 but not working with JBoss 5.1
            Aashish Shivhare Newbie

            Hi,

            Are you talking about the Jasper binary of Tomcat?

            Because I doesn't get this named binary in JBoss 5.1 library.

            But I added jasper.jar of Tomcat library.

            But it neither solve my problem although it gives me new exception.

            It gives,

             

            11:45:01,046 INFO  [[/wado]] Marking servlet jsp as unavailable
            11:45:01,046 ERROR [[/wado]] Servlet /wado threw load() exception
            java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory from BaseClassLoader@308c62{VFSClassLoaderPolicy@1508a8b{name=vfsfile:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/ domain=ClassLoaderDomain@f14616{name=vfsfile:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/ parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@1972e3a{DefaultDomain}} roots=[MemoryContextHandler@12038522[path= context=vfsmemory://5c4o82p-ibhly2-ggph7lrt-1-ggphbq1x-9o real=vfsmemory://5c4o82p-ibhly2-ggph7lrt-1-ggphbq1x-9o], FileHandler@31779849[path=wado.war/WEB-INF/classes context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/classes/], DelegatingHandler@4487208[path=wado.war/WEB-INF/lib/commons-codec-1.3.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/commons-codec-1.3.jar], DelegatingHandler@19709580[path=wado.war/WEB-INF/lib/DICOMBase30_04.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/DICOMBase30_04.jar], DelegatingHandler@9561661[path=wado.war/WEB-INF/lib/DICOMNet30_04.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/DICOMNet30_04.jar], DelegatingHandler@10671107[path=wado.war/WEB-INF/lib/DIMSECServices30_04.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/DIMSECServices30_04.jar], DelegatingHandler@869260[path=wado.war/WEB-INF/lib/en_US.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/en_US.jar], DelegatingHandler@13481209[path=wado.war/WEB-INF/lib/IOD30_04.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/IOD30_04.jar], DelegatingHandler@19161994[path=wado.war/WEB-INF/lib/jasper.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/jasper.jar], DelegatingHandler@210991[path=wado.war/WEB-INF/lib/junit-4.1.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/junit-4.1.jar], DelegatingHandler@22912742[path=wado.war/WEB-INF/lib/servlet-api.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/servlet-api.jar], DelegatingHandler@23795442[path=wado.war/WEB-INF/lib/uuid.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/uuid.jar], DelegatingHandler@28276455[path=wado.war/WEB-INF/lib/wadoserver30_04.jar context=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/F:/Aashish's/JBoss/jboss-5.1.0.GA/server/default/deploy/wado.war/WEB-INF/lib/wadoserver30_04.jar]]  delegates=null exported=[, cdac.medinfo.sdk.dcm30_04.services.wado, cdac.medinfo.sdk.dcm30_04.services.cfind.scp, cdac.medinfo.sdk.dcm30_04.dicommodel.standalonemodalitylut, cdac.medinfo.sdk.dcm30_04.dicommodel.grayscalesoftcopy, cdac.medinfo.sdk.dcm30_04.services.cfind.scu, cdac.medinfo.sdk.dcm30_04.dicommodel.us, org.junit.internal.runners, cdac.medinfo.sdk.dcm30_04.services.association, org.apache.jasper.resources, org.apache.commons.codec.binary, org.apache.jasper.xmlparser, cdac.medinfo.sdk.dcm30_04.dicommodel.cr, cdac.medinfo.sdk.dcm30_04.dicommodel.ct, cdac.medinfo.sdk.dcm30_04.exceptions, junit.framework, cdac.medinfo.sdk.dcm30_04.dicommodel.modalityperformedprocstep, cdac.medinfo.sdk.dcm30_04.services.associationinfo, cdac.medinfo.sdk.dcm30_04.services.scu.net, cdac.medinfo.sdk.dcm30_04.dicommodel.basicdirectory, org.apache.jasper.el, cdac.medinfo.sdk.dcm30_04.dicommodel.storagecommitment, cdac.medinfo.sdk.dcm30_04.services.cecho.scp, cdac.medinfo.sdk.dcm30_04.dicommodel.results, cdac.medinfo.sdk.dcm30_04.dictionaryreaderwriters, org.apache.jasper.util, cdac.medinfo.sdk.dcm30_04.dicommodel.studycomponent, cdac.medinfo.sdk.dcm30_04.dicommodel.stereometric, lang.en_US, cdac.medinfo.sdk.dcm30_04.services.cecho.scu, cdac.medinfo.sdk.dcm30_04.dicommodel.hardcopy, cdac.medinfo.sdk.dcm30_04.dicomreaderwriters, org.apache.jasper.servlet, cdac.medinfo.sdk.dcm30_04.dicommodel.visiblelight, org.apache.commons.codec, cdac.medinfo.sdk.dcm30_04.services.wadotest, cdac.medinfo.sdk.dcm30_04.enums, junit.runner, junit.textui, cdac.medinfo.sdk.dcm30_04.services.dimsecommons, cdac.medinfo.sdk.dcm30_04.dicommodel.ophthalmic, cdac.medinfo.sdk.dcm30_04.dicommodel.study, cdac.medinfo.sdk.dcm30_04.dicommodel.genpurposescheduledprocstep, cdac.medinfo.sdk.dcm30_04.services.cget.scu, cdac.medinfo.sdk.dcm30_04.dicommodel.instanceavailabilitynotification, cdac.medinfo.sdk.dcm30_04.dicommodel.basicstudydescriptor, cdac.medinfo.sdk.dcm30_04.dicommodel.xray, cdac.medinfo.sdk.dcm30_04.services.cget.scp, cdac.medinfo.sdk.dcm30_04.dicommodel.nm, cdac.medinfo.sdk.dcm30_04.services.scp.commons, cdac.medinfo.sdk.dcm30_04.services.cfind.commons, cdac.medinfo.sdk.dcm30_04.services.cstore.commons, cdac.medinfo.sdk.dcm30_04.utils, cdac.medinfo.sdk.dcm30_04.services.cecho.commons, org.junit.internal.requests, cdac.medinfo.sdk.dcm30_04.services.dicomnetcommons, org.apache.jasper.security, cdac.medinfo.sdk.dcm30_04.dicomparserserializers, cdac.medinfo.sdk.dcm30_04.services.dicomjavadb, cdac.medinfo.sdk.dcm30_04.dicommodel.pet, cdac.medinfo.sdk.dcm30_04.dicommodel.print, cdac.medinfo.sdk.dcm30_04.services.cstore.scp, cdac.medinfo.sdk.dcm30_04.services.cget.commons, org.apache.jasper.tagplugins.jstl, cdac.medinfo.sdk.dcm30_04.dicommodel.spatialfiducials, .settings, org.junit.runner.manipulation, cdac.medinfo.sdk.dcm30_04.dicommodel.genpurposeperformedprocstep, cdac.medinfo.sdk.dcm30_04.license, org.apache, org.apache.commons.codec.net, cdac.medinfo.sdk.dcm30_04.dicommodel.interpretation, cdac.medinfo.sdk.dcm30_04.dicommodel.mediacreationmanagement, org.junit.runners, org.junit.runner, cdac.medinfo.sdk.dcm30_04.dicommodel.patient, org.apache.jasper.compiler, cdac.medinfo.sdk.dcm30_04.baselibs, org.junit, cdac.medinfo.sdk.dcm30_04.dicomstreams, org.apache.commons.codec.language, cdac.medinfo.sdk.dcm30_04.dicommodel.procedurelog, cdac.medinfo.sdk.dcm30_04.commoninterface, cdac.medinfo.sdk.dcm30_04.dicommodel.standalonecurve, org.apache.jasper.runtime, org.apache.jasper.tagplugins.jstl.core, cdac.medinfo.sdk.dcm30_04.dicommodel.presentationlut, cdac.medinfo.sdk.dcm30_04.services.javadbhelper, cdac.medinfo.sdk.dcm30_04.dicommodel.basicimagebox, cdac.medinfo.sdk.dcm30_04.dicommodel.sr, org.apache.commons.codec.digest, cdac.medinfo.sdk.dcm30_04.dicommodel.basicfilmbox, javax.servlet.resources, junit.extensions, org.apache.jasper, cdac.medinfo.sdk.dcm30_04.dicommodel.visit, cdac.medinfo.sdk.dcm30_04.dicommodel.rt, cdac.medinfo.sdk.dcm30_04.dicommodel.sc, cdac.medinfo.sdk.dcm30_04.dicommodel.standalonevoilut, cdac.medinfo.sdk.dcm30_04.services.scp.net, org.apache.jasper.compiler.tagplugin, com.sun.xml.registry.ebxml.util, cdac.medinfo.sdk.dcm30_04.license.images, cdac.medinfo.sdk.dcm30_04.dicommodel.rawdata, cdac.medinfo.sdk.dcm30_04.dicommodel.mri, org.junit.runner.notification, cdac.medinfo.sdk.dcm30_04.services.cmove.scp, cdac.medinfo.sdk.dcm30_04.services.pdu, cdac.medinfo.sdk.dcm30_04.dicommodel.basicannotationbox, cdac.medinfo.sdk.dcm30_04.services.cmove.scu, META-INF, cdac.medinfo.sdk.dcm30_04.dicommodel.modules, cdac.medinfo.sdk.dcm30_04.dicommodel.standaloneoverlay, cdac.medinfo.sdk.dcm30_04.services.cstore.scu, cdac.medinfo.sdk.dcm30_04.dicommodel.waveform, cdac.medinfo.sdk.dcm30_04.services.cmove.commons, cdac.medinfo.sdk.dcm30_04.dicommodel.basicfilmsession, cdac.medinfo.sdk.dcm30_04.dicommodel.spatialregistration, cdac.medinfo.sdk.dcm30_04.services.scu.commons, javax.servlet.http] <IMPORT-ALL>NON_EMPTY}}
                at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
                at java.lang.ClassLoader.loadClass(Unknown Source)
                at java.lang.ClassLoader.loadClassInternal(Unknown Source)
                at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:61)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                at java.lang.reflect.Constructor.newInstance(Unknown Source)
                at java.lang.Class.newInstance0(Unknown Source)
                at java.lang.Class.newInstance(Unknown Source)
                at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)
                at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                at $Proxy38.start(Unknown Source)
                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                at org.jboss.system.ServiceController.start(ServiceController.java:460)
                at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
                at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)
            11:45:01,078 ERROR [Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/wado,J2EEApplication=none,J2EEServer=none

             

            Please help me.

            • 3. Re: Application works with JBoss 5.0 but not working with JBoss 5.1
              Philani Dlamini Newbie

              this stack trace is incomplete, please post the whole stack trace

              • 4. Re: Application works with JBoss 5.0 but not working with JBoss 5.1
                Aashish Shivhare Newbie

                Thanks buddy.

                I have solved my issue.

                Actually I include the "servlet-api.jar" in my war, I just remove it from the war and after that it runs successfully.

                But still I am unable to find the reason behind this, if any one find the reason then please reply in this post.

                • 5. Re: Application works with JBoss 5.0 but not working with JBoss 5.1
                  Peter Johnson Master

                  Actually I include the "servlet-api.jar" in my war, I just remove it from the war and after that it runs successfully.

                  But still I am unable to find the reason behind this, if any one find the reason then please reply in this post.

                  If you include the servlet-api.jar file with your WAR then it will interfere with the one provided by JBoss AS. This is a classloading issue.