1 Reply Latest reply on Jan 4, 2007 1:16 PM by Peter Johnson

    jars are not getting loaded from 'lib'

    vaibhav kapoor Newbie

      We are using trying to deploy our .ear file on jboss-4.0.5.GA and using mysql at the back end. The deployment is error free, problems are occuring when the first request is being made, at this point the jars which we have put inside the lib folder are not getting loaded.

      These are the error messages that i am getting :


      21:57:56,393 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      21:57:57,097 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      21:57:57,191 INFO [JkMain] Jk running ID=0 time=0/438 config=null
      21:57:57,284 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 40s:65
      8ms
      21:58:02,881 INFO [EARDeployer] Init J2EE application: file:/D:/jboss-4.0.5.GA_MySql/server/default/deploy/AIM_APP.ear
      21:58:14,933 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp9353AIM_APP.ear-contents/AIM_Web-exp.war/
      21:58:15,277 INFO [WebappClassLoader] validateJarFile(D:\jboss-4.0.5.GA_MySql\server\default\.\tmp\deploy\tmp9353AIM_APP.ea
      r-contents\AIM_Web-exp.war\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending cla
      ss: javax/servlet/Servlet.class
      21:58:15,543 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.a
      pache.log4j.spi.ErrorHandler" variable.
      21:58:15,699 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      21:58:15,730 ERROR [STDERR] log4j:ERROR [WebappClassLoader
      delegate: false
      repositories:
      /WEB-INF/classes/
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@16c1bce
      ] whereas object of type
      21:58:15,949 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server
      .NoAnnotationURLClassLoader@a97b0b].
      21:58:16,121 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
      21:58:16,168 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
      21:58:16,199 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:175)
      21:58:16,230 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
      21:58:16,262 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
      21:58:16,293 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:42
      5)
      21:58:16,356 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)
      21:58:16,387 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)
      21:58:16,418 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
      21:58:16,449 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
      21:58:16,481 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
      21:58:16,512 ERROR [STDERR] at org.apache.log4j.LogManager.(LogManager.java:122)
      21:58:16,543 ERROR [STDERR] at org.apache.log4j.Logger.getLogger(Logger.java:104)
      21:58:16,574 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      21:58:16,606 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      .
      .
      .
      .
      .
      .
      .
      .
      21:58:29,424 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      21:58:29,502 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      21:58:29,580 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterce
      ptor.java:142)
      21:58:29,736 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      21:58:29,815 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      21:58:29,893 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      21:58:29,955 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      21:58:30,034 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
      21:58:30,112 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      21:58:30,190 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      21:58:30,268 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeplo
      ymentScanner.java:263)
      21:58:30,409 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploym
      entScanner.java:274)
      21:58:30,565 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeployme
      ntScanner.java:225)
      21:58:31,096 INFO [STDOUT] 21:58:31,096 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/stand
      ard-faces-config.xml
      21:58:31,331 INFO [STDOUT] 21:58:31,331 INFO [FacesConfigurator] Reading config jar:file:/D:/jboss-4.0.5.GA_MySql/server/d
      efault/./tmp/deploy/tmp9353AIM_APP.ear-contents/AIM_Web-exp.war/WEB-INF/lib/ajax4jsf.jar!/META-INF/faces-config.xml
      21:58:31,519 INFO [STDOUT] 21:58:31,519 INFO [FacesConfigurator] Reading config jar:file:/D:/jboss-4.0.5.GA_MySql/server/d
      efault/./tmp/deploy/tmp9353AIM_APP.ear-contents/AIM_Web-exp.war/WEB-INF/lib/ajaxanywhere-1.2-RC2.jar!/META-INF/faces-config.
      xml
      21:58:31,769 INFO [STDOUT] 21:58:31,769 INFO [FacesConfigurator] Reading config jar:file:/D:/jboss-4.0.5.GA_MySql/server/d
      efault/./tmp/deploy/tmp9353AIM_APP.ear-contents/AIM_Web-exp.war/WEB-INF/lib/jenia4faces-popup_1.2.1.jar!/META-INF/faces-conf
      ig.xml
      21:58:32,003 INFO [STDOUT] 21:58:32,003 INFO [FacesConfigurator] Reading config jar:file:/D:/jboss-4.0.5.GA_MySql/server/d
      efault/./tmp/deploy/tmp9353AIM_APP.ear-contents/AIM_Web-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
      21:58:32,175 INFO [STDOUT] 21:58:32,175 INFO [FacesConfigurator] Reading config jar:file:/D:/jboss-4.0.5.GA_MySql/server/d
      efault/./tmp/deploy/tmp9353AIM_APP.ear-contents/AIM_Web-exp.war/WEB-INF/lib/tomahawk-1.1.3.jar!/META-INF/faces-config.xml
      21:58:32,503 INFO [STDOUT] 21:58:32,503 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config-global.xml
      21:58:32,941 INFO [STDOUT] 21:58:32,941 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config-beans.xml
      21:58:33,050 INFO [STDOUT] 21:58:33,050 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config-navigation.xml
      21:58:35,255 INFO [STDOUT] 21:58:35,255 WARN [WebXmlParser] Ignored element 'dispatcher' as child of 'filter-mapping'.
      21:58:35,348 INFO [STDOUT] 21:58:35,348 WARN [WebXmlParser] Ignored element 'dispatcher' as child of 'filter-mapping'.
      21:58:35,427 INFO [STDOUT] 21:58:35,427 WARN [WebXmlParser] Ignored element 'dispatcher' as child of 'filter-mapping'.
      21:58:35,520 INFO [STDOUT] 21:58:35,520 INFO [StartupServletContextListener] ServletContext 'D:\jboss-4.0.5.GA_MySql\serve
      r\default\.\tmp\deploy\tmp9353AIM_APP.ear-contents\AIM_Web-exp.war\' initialized.
      21:58:35,708 INFO [STDOUT] 21:58:35,708 INFO [StartupServletContextListener] Serialization provider : class org.apache.myf
      aces.shared_impl.util.serial.DefaultSerialFactory
      21:58:36,052 INFO [STDOUT] 21:58:36,052 INFO [ServletCacheAdministrator] Created new instance of ServletCacheAdministrator

      21:58:36,208 INFO [STDOUT] 21:58:36,208 INFO [ServletCacheAdministrator] Created new application-scoped cache at key: __os
      cache_cache
      21:58:36,630 INFO [EARDeployer] Started J2EE application: file:/D:/jboss-4.0.5.GA_MySql/server/default/deploy/AIM_APP.ear


      Please revert back if you have a solution to this problem.
      Thanks
      -Vaibhav