0 Replies Latest reply on Feb 28, 2005 7:36 AM by viz

    Exception Deploying an archived WAR/EAR, but no exception wh

    viz Newbie

      I am having an issue with trying to deploy a simple test application which has a single jsp (snoop.jsp) to test logging.

      The application is as follows:

      Test.EAR
      -> META-INF -> application.xml
      -> META-INF -> jboss-app.xml
      -> properties -> log4j.xml
      -> log4j.jar
      -> Test.WAR -> META-INF -> MANIFEST.MF
      -> Test.WAR -> WEB-INF -> snoop.jsp

      When the above is deployed archived (i.e. Test.EAR containing a TEST.WAR, etc), and the snoop.jsp accessed I get the following exception:

      12:00:46,015 INFO [Server] JBoss (MX MicroKernel) [4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)] Started in 13s:453ms
      12:00:50,750 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.1/server/default/deploy/Test.ear/
      12:00:50,843 INFO [TomcatDeployer] deploy, ctxPath=/TEST, warUrl=file:/C:/jboss-4.0.1/server/default/tmp/deploy/tmp59521Test-exp.war/
      12:00:51,000 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.0.1/server/default/deploy/Test.ear/
      12:01:00,625 INFO [STDOUT] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j
      .spi.ErrorHandler" variable.
      12:01:00,625 INFO [STDOUT] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      12:01:00,625 INFO [STDOUT] log4j:ERROR [org.jboss.mx.loading.UnifiedClassLoader3@1098594{ url=file:/C:/jboss-4.0.1/server/default/depl
      oy/Test.ear/ ,addedOrder=40}] whereas object of type
      12:01:00,625 INFO [STDOUT] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotati
      onURLClassLoader@4a5ab2].
      12:01:00,671 INFO [STDOUT] log4j:ERROR Could not create an Appender. Reported error follows.
      12:01:00,671 INFO [STDOUT] java.lang.ClassCastException
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.LogManager.(LogManager.java:113)
      12:01:00,671 INFO [STDOUT] at org.apache.log4j.Logger.getLogger(Logger.java:85)
      12:01:00,671 INFO [STDOUT] at org.apache.jsp.snoop_jsp.(snoop_jsp.java:16)
      12:01:00,671 INFO [STDOUT] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      12:01:00,671 INFO [STDOUT] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      12:01:00,671 INFO [STDOUT] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      However, when I deploy the application exploded (i.e. unarchive everything into the deploy directory. All works fine.

      Please, someone, help...