2 Replies Latest reply on Aug 24, 2004 5:58 PM by anil.saldhana

    Deployment problem with JBOSS 3.2.5

    bgarner

      Hello,

      I am trying to deploy a small application that was created using the Sun ONE development tool. Everything works well in Sun ONE, and I had Sun ONE create the .war file. When I copy the .war file to the server/default/deploy directory in JBOSS, the deployment is successful. However when I try to run the application in my browser, I get the following error message:

      Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.

      Exception Details: java.lang.NoClassDefFoundError
      javax/servlet/jsp/jstl/core/Config

      Possible Source of Error:
      Class Name: com.sun.faces.application.ViewHandlerImpl
      File Name: ViewHandlerImpl.java
      Method Name: renderView
      Line Number: 140

      Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.


      Stack trace:

      com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
      org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
      org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      java.lang.Thread.run(Thread.java:534)
      ----

      Any idea on what could be causing this? I would assume that all my class libraries along with .JAR files that are needed are in the .WAR file, which means I shouldn't have to put them in the /lib directory?

      Any advise is appreciated.

      Thanks,

      Brian


        • 1. Re: Deployment problem with JBOSS 3.2.5

          While I was building testapplications which utilized JSF i've never came around to put jsf-api.jar and jsf-impl.jar to /server/default/lib. For me after that step everything worked out and so i investigated no further why the jars in WEB-INF/lib weren't good enough.

          Best regards
          Jan Prill

          • 2. Re: Deployment problem with JBOSS 3.2.5
            anil.saldhana

            java.lang.NoClassDefFoundError in a web container means that it is finding a older version of the class. Look for the class under different jars in locations like /lib which the container picks up well before your web app is touched.