0 Replies Latest reply on Sep 14, 2010 8:37 AM by Sarada Mohanty

    JSP compilation issue while deploying application on jboss(4.0.4 server)

    Sarada Mohanty Newbie

      Hi All,

       

      I am facing JSP compilation issue while deploying our application on jboss(4.0.4 server).please suggest .....

       

      ERROR LOG:-

       

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.system:type=Log4jService,service=Logging
        State: FAILED
        Reason: java.lang.NoClassDefFoundError: org/apache/log4j/xml/DOMConfigurator

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.system:type=Log4jService,service=Logging
        State: FAILED
        Reason: java.lang.NoClassDefFoundError: org/apache/log4j/xml/DOMConfigurator


              at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDepl
      oyer.java:1367)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
              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(ReflectedDispatch
      er.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
              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:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy5.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
              at org.jboss.Main.boot(Main.java:200)
              at org.jboss.Main$1.run(Main.java:464)
              at java.lang.Thread.run(Unknown Source)
      15:24:35,166 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
      -8080
      15:24:35,635 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      15:24:35,698 INFO  [JkMain] Jk running ID=0 time=0/94  config=null
      15:24:35,729 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
      s_4_0_4_GA date=200605151000)] Started in 1m:5s:315ms
      15:24:37,370 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP

      Generated servlet error:
      Syntax error on token "import", Identifier expected after this token


              at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErro
      rHandler.java:84)
              at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher
      .java:328)
              at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
      :414)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
      .java:563)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
      .java:303)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      14)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:175)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :869)
              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
      rocessConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
              at java.lang.Thread.run(Unknown Source)

       

      Please help me out......