11 Replies Latest reply on May 3, 2013 12:42 AM by snjv180

    org.apache.jasper.JasperException: Unable to compile class f

    alamandrax

      Hi,

      I've just finished installing the JBoss AS 4.0.5.GA using the JEMS installer and I configured it to install the ejb 3.0 profile.

      After completing the installation, I deployed my application to the Application Server. Upon trying to run the application however, I encounter the following exception.

      org.apache.jasper.JasperException: Unable to compile class for JSP
      
      An error occurred at line: 2 in the jsp file: /menu.jsp
      Generated servlet error:
      The type List is not generic; it cannot be parameterized with arguments <String>
      
      An error occurred at line: 2 in the jsp file: /menu.jsp
      Generated servlet error:
      Syntax error, parameterized types are only available if source level is 5.0
      
      An error occurred at line: 2 in the jsp file: /menu.jsp
      Generated servlet error:
      The type List is not generic; it cannot be parameterized with arguments <String>
      
      An error occurred at line: 2 in the jsp file: /menu.jsp
      Generated servlet error:
      Syntax error, parameterized types are only available if source level is 5.0
      
      An error occurred at line: 320 in the jsp file: /menu.jsp
      Generated servlet error:
      Incompatible conditional operand types Long and String
      
      An error occurred at line: 326 in the jsp file: /menu.jsp
      Generated servlet error:
      Incompatible conditional operand types Long and String
      
      
       org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      I do not know why it asks me for a source level of 5.0. I have the Java 1.5.0_12 SDK installed and my JAVA_HOME environment variable points to the installation directory. I have searched my registry to check if the JVM version points to an incorrect version, but haven't found anything yet. I am not sure about configuration options of the Tomcat server though.

      Do I need to change any settings to point tomcat to the right resource for the JDK?

      I am on a Windows Vista Home Premium machine.

      Please help.

      Thanks in advance.

        • 1. Re: org.apache.jasper.JasperException: Unable to compile cla
          jaikiran

          Under %JBOSS_HOME%\server\default\deploy\jbossweb-tomcat55.sar\conf folder, you will find a web.xml. Add the following :

          <init-param>
           <param-name>compilerTargetVM</param-name>
           <param-value>1.5</param-value>
           </init-param>
           <init-param>
           <param-name>compilerSourceVM</param-name>
           <param-value>1.5</param-value>
           </init-param>


          just below the existing

          <servlet-name>jsp</servlet-name>
          <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>


          definition in that file

          • 2. Re: org.apache.jasper.JasperException: Unable to compile cla
            alamandrax

            Hi jaikiran,

            Thank you for the prompt reply. I did find the thread which dealt with modifying the $JBOSS_HOME\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml file and had made the modifications to check if it had any effect. I keep getting the same error again.

            Is there anything else that I need to do? I did have some older Tomcat versions on my computer, but I have deleted them all. I've removed the CATALINA_HOME environment variable for the heck of it.

            Apart from these, during the server startup, I get the following errors. I'm not sure if they're relevant but am including them here just in case.

            14:33:32,599 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
            14:33:32,605 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\javax.servlet.jsp.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
            14:33:32,613 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\jsp-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
            14:33:32,641 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
            14:33:34,279 INFO [STDOUT] 14:33:34,279 INFO [util.PropertyMessageResources] Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
            14:33:34,283 INFO [STDOUT] 14:33:34,283 INFO [util.PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
            14:33:37,194 INFO [STDOUT] 14:33:37,194 INFO [servlet.ICVStartupServlet] Iniating ICV Startup Sequence


            I'm pasting the errors that I see in my browser here again (with the root cause this time)

            org.apache.jasper.JasperException: Unable to compile class for JSP
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            The type List is not generic; it cannot be parameterized with arguments <String>
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            Syntax error, parameterized types are only available if source level is 5.0
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            The type List is not generic; it cannot be parameterized with arguments <String>
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            Syntax error, parameterized types are only available if source level is 5.0
            
            An error occurred at line: 320 in the jsp file: /menu.jsp
            Generated servlet error:
            Incompatible conditional operand types Long and String
            
            An error occurred at line: 326 in the jsp file: /menu.jsp
            Generated servlet error:
            Incompatible conditional operand types Long and String
            
            
             org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
             org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
             org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
             org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
             org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
             org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
             org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
             org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            
            root cause
            org.apache.jasper.JasperException: Unable to compile class for JSP
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            The type List is not generic; it cannot be parameterized with arguments <String>
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            Syntax error, parameterized types are only available if source level is 5.0
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            The type List is not generic; it cannot be parameterized with arguments <String>
            
            An error occurred at line: 2 in the jsp file: /menu.jsp
            Generated servlet error:
            Syntax error, parameterized types are only available if source level is 5.0
            
            An error occurred at line: 320 in the jsp file: /menu.jsp
            Generated servlet error:
            Incompatible conditional operand types Long and String
            
            An error occurred at line: 326 in the jsp file: /menu.jsp
            Generated servlet error:
            Incompatible conditional operand types Long and String
            
            
             org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
             org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
             org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
             org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
             org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
             org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
             org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
             org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
             org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
             org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
             org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
             org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
             org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
             org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


            • 3. Re: org.apache.jasper.JasperException: Unable to compile cla
              jaikiran

               

              14:33:32,599 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\defaul
              t\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Ser
              vlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
              14:33:32,605 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\defaul
              t\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\javax.servlet.jsp.jar) - jar not loaded. See
              Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
              14:33:32,613 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\defaul
              t\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\jsp-api.jar) - jar not loaded. See Servlet S
              pec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
              14:33:32,641 INFO [WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.0.5.GA\server\defaul
              t\.\tmp\deploy\tmp59375iControlView-exp.war\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See S
              ervlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class


              1) Remove the servlet/jsp related jar files from your application. Those jars already come as part of JBoss.

              2) You have installed JBoss in

              C:\Program Files\jboss-4.0.5.GA


              I would suggest, you move it from this directory and install JBoss at a path which does not have a space in its path name (maybe C:\jboss-4.0.5.GA). There have been many issues, where you start seeing weird errors when you have Java programs installed in a path having a space in its name.


              • 4. Re: org.apache.jasper.JasperException: Unable to compile cla
                alamandrax

                Hi jaikiran,

                Thanks again for the prompt reply.

                The following is the listing for the .jsp portion of $JBOSS_HOME\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml

                <servlet>
                 <servlet-name>jsp</servlet-name>
                 <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
                 <init-param>
                 <param-name>fork</param-name>
                 <param-value>false</param-value>
                 </init-param>
                 <init-param>
                 <param-name>xpoweredBy</param-name>
                 <param-value>false</param-value>
                 </init-param>
                 <!-- Uncomment to use jdk1.5 features in jsp pages-->
                 <init-param>
                 <param-name>compilerTargetVM</param-name>
                 <param-value>1.5</param-value>
                 </init-param>
                
                 <init-param>
                 <param-name>compilerSourceVM</param-name>
                 <param-value>1.5</param-value>
                 </init-param>
                 <!---->
                 <init-param>
                 <param-name>engineOptionsClass</param-name>
                 <param-value>org.jboss.web.tomcat.tc5.jasper.JspServletOptions</param-value>
                 </init-param>
                 <!-- Specify the jars relative to the jbossweb-tomcat55.sar that should
                 be scanned for common tag lib descriptors to include in every war
                 deployment.
                 -->
                 <init-param>
                 <description>MyFaces tlds</description>
                 <param-name>tagLibJar0</param-name>
                 <param-value>jsf-libs/myfaces-impl.jar</param-value>
                 </init-param>
                
                 <load-on-startup>3</load-on-startup>
                 </servlet>


                I've moved JBoss to a folder which has no spaces in it and yet, get the same errors when I try to open my jsp files.

                ----

                I've tried removing the jar files that you've mentioned, but doing so crashes the build when using ant. Is it safe to leave these jars alone for the moment? Can I remove the equivalent jars from the tomcat lib folder?

                • 5. Re: org.apache.jasper.JasperException: Unable to compile cla
                  jaikiran

                   

                  I've tried removing the jar files that you've mentioned, but doing so crashes the build when using ant.


                  Let them remain in the classpath for ant while building your project. But later when you create a war/ear out of it dont include those jars in the package.

                  yet, get the same errors when I try to open my jsp files.


                  Can you post the JBoss server startup logs, especially the logs which show the Java version its using? Also, can you post the jsp which is throwing up these errrors?

                  • 6. Re: org.apache.jasper.JasperException: Unable to compile cla
                    alamandrax

                    This is the text I see when I startup the server:

                    C:\Program Files\jboss-4.0.5.GA\bin>run
                    ===============================================================================
                    
                     JBoss Bootstrap Environment
                    
                     JBOSS_HOME: C:\Program Files\jboss-4.0.5.GA\bin\\..
                    
                     JAVA: C:\Program Files\Java\jdk1.5.0_12\bin\java
                    
                     JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
                    
                     CLASSPATH: C:\Program Files\Java\jdk1.5.0_12\lib\tools.jar;C:\Program Files\jboss-4.0.5.GA\bin\\run.jar
                    
                    ===============================================================================
                    
                    15:46:57,307 INFO [Server] Starting JBoss (MX MicroKernel)...
                    15:46:57,309 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
                    15:46:57,311 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
                    15:46:57,312 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
                    15:46:57,313 INFO [Server] Patch URL: null
                    15:46:57,313 INFO [Server] Server Name: default
                    15:46:57,314 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.5.GA\server\default
                    15:46:57,314 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.5.GA/server/default/
                    15:46:57,314 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.0.5.GA\server\default\log
                    15:46:57,315 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.5.GA\server\default\tmp
                    15:46:57,316 INFO [Server] Root Deployment Filename: jboss-service.xml
                    15:46:57,788 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc.
                    15:46:57,792 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04,Sun Microsystems Inc.
                    15:46:57,792 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
                    15:46:58,612 INFO [Server] Core system initialized
                    15:47:04,554 INFO [WebService] Using RMI server codebase: http://#########:8083/
                    15:47:04,622 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
                    15:47:10,579 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.2.231:3873/]
                    15:47:23,881 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
                    15:47:26,465 INFO [SnmpAgentService] SNMP agent going active
                    15:47:29,000 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000
                    0000000E8000102000000000E3139322E3136382E322E323331000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000
                    100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E322E323331000DC90040000
                    0000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F00000004000000030000000100000020000000000000000200000020000
                    00004000000000000001F0000000400000003]
                    15:47:29,128 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F7279457874
                    3A312E30000000000200000000000000E8000102000000000E3139322E3136382E322E323331000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A41430000
                    0000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E313638
                    2E322E323331000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000
                    000000000000020000002000000004000000000000001F0000000400000003]
                    15:47:30,931 INFO [Embedded] Catalina naming disabled
                    15:47:30,983 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
                    15:47:30,985 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
                    15:47:31,429 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
                    15:47:31,430 INFO [Catalina] Initialization processed in 445 ms
                    15:47:31,431 INFO [StandardService] Starting service jboss.web
                    15:47:31,434 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
                    15:47:31,470 INFO [StandardHost] XML validation disabled
                    15:47:31,492 INFO [Catalina] Server startup in 61 ms


                    • 7. Re: org.apache.jasper.JasperException: Unable to compile cla
                      jaikiran

                       

                      JBOSS_HOME: C:\Program Files\jboss-4.0.5.GA\bin\\..
                      JAVA: C:\Program Files\Java\jdk1.5.0_12\bin\java


                      Please move Java and JBoss out of these paths to some folder which does not have a space. I wont guarantee that it will fix the issue, you are seeing, but atleast it will assure us that this is not causing the problem.



                      • 8. Re: org.apache.jasper.JasperException: Unable to compile cla
                        alamandrax

                         

                        Please move Java and JBoss out of these paths to some folder which does not have a space. I wont guarantee that it will fix the issue, you are seeing, but atleast it will assure us that this is not causing the problem.


                        Hi. This is what I did. I took the JBoss-4.0.5.GA folder dump from a colleague (who is the lead developer on the project) and named it JBoss-4.0.5.GA_old and placed it in the C:\Program Files\ folder. I didn't change anything else. I deployed my application to the _old server and ran the application. The error doesn't come up any more. The JSP pages render properly.

                        I am now trying to see if any of the Jar files in the library are in conflict. I will move all the files under $JBOSS_old\server\default\lib (my colleague's lib folder) to $JBOSS_HOME\server\default\lib (my lib folder) and see if does anything.

                        I am certain that the problem does not lie with the spaces in the path.

                        Do please keep the suggestions coming in. Really appreciate all this help.

                        What I'm trying to do is use JBoss, java, ant and MySQL builds available off the shelf from their respective pages and try to get them working together so that when we deploy the application to our client, we don't need to bundle the configured JBoss AS with it as well.

                        • 9. Re: org.apache.jasper.JasperException: Unable to compile cla
                          alamandrax

                          This is the listing for the contents of the file menu.jsp

                          <%@ include file="includes.jsp" %>
                          <%
                          Logger logger = Logger.getLogger("menu.jsp");
                          try
                          {
                          
                           Employee employee = (Employee) session.getAttribute(com.icv.actions.Constants.USER_OBJECT);
                           String userRoleName = employee.getRole().getDesc();
                          
                           List<String> privilageList = (List<String>) session.getAttribute(com.icv.actions.Constants.USER_PRIVILAGES);
                          
                          
                          
                           List alertList = AlertDAOImpl.getAvailableAlerts(employee);
                          
                           System.out.println("userRoleName : " + userRoleName);
                          %>
                          
                          <!-- Do not change the ids of Lists. If you need to change ids,
                          Please discuss with RamaKrishna before doing Modifications -->
                          
                           <tr>
                           <td colspan="7" valign="top">
                           <table border="0" cellpadding="0" cellspacing="0" width="100%">
                           <tr>
                           <td align="center" valign="top" width="100%"><div class="horizontalcssmenu" style="border-top:1px solid #FFFFFF">
                           <ul id="cssmenu1">
                           <li style="border-right: 1px solid #FFFFFF; background-color:#375C8F;"><a href="#" style="color:#FFFFFF;font-weight:lighter; font-size:8pt; font-family:verdana" id="anchor">Dashboard</a>
                           <ul>
                           <li id="currentMonthList">
                          <%
                           if (privilageList.contains("currentMonthList")) {
                          %>
                           <a href="#" onClick="getDashBoardDetails('dashboardDisplay', 'dashBoardDivId', 'CurrentMonth');"
                           id="currentMon" style="width:140px; font-size:8pt;">Current Month</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="currentMon" style="color:#8A8A8A; width:140px; font-size:8pt;">
                           Current Month</a>
                          <%
                           }
                          %>
                           </li>
                           <li id="nextMonthList">
                          <%
                           if (privilageList.contains("nextMonthList")) {
                          %>
                           <a href="#" onClick="getDashBoardDetails('dashboardDisplay', 'dashBoardDivId', 'NextMonth');"
                           id="nextMon" style="width:140px; font-size:8pt;">Next Month</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="nextMon" style="color:#8A8A8A; width:140px; font-size:8pt;">Next Month</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="prevMonthList">
                          <%
                           if (privilageList.contains("prevMonthList")) {
                          %>
                           <a href="#" onClick="getDashBoardDetails('dashboardDisplay', 'dashBoardDivId', 'PreviousMonth');" id="prevMon" style="width:140px; font-size:8pt;">Previous Month</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="prevMon" style="color:#8A8A8A; width:140px; font-size:8pt;">Previous Month</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="currentYearList">
                          <%
                           if (privilageList.contains("currentYearList")) {
                          %>
                           <a href="#" onClick="getDashBoardDetails('dashboardDisplay', 'dashBoardDivId', 'CurrentYear');" id="currentYear" style="width:140px; font-size:8pt;">Current Year</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="currentYear" style="color:#8A8A8A; width:140px; font-size:8pt;">Current Year</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="prevYearList">
                          <%
                           if (privilageList.contains("prevYearList")) {
                          %>
                           <a href="#" onClick="getDashBoardDetails('dashboardDisplay', 'dashBoardDivId', 'PreviousYear');" id="prevYear" style="width:140px; font-size:8pt;">Previous Year</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="prevYear" style="color:#8A8A8A; width:140px; font-size:8pt;">Previous Year</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="nextYearList">
                          <%
                           if (privilageList.contains("nextYearList")) {
                          %>
                           <a href="#" onClick="getDashBoardDetails('dashboardDisplay', 'dashBoardDivId', 'NextYear');" id="nextYear" style="width:140px; font-size:8pt;">Next Year</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="nextYear" style="color:#8A8A8A; width:140px; font-size:8pt;">Next Year</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="viewTrends">
                          <%
                           if (privilageList.contains("viewTrends")) {
                          %>
                           <a href="#" onClick="viewTrends(); YAHOO.example.container.TrendsPopUp.show();" style="width:140px; font-size:8pt;" id="trend">Trends</a>
                          <%
                           } else {
                          %>
                           <a href="#" style="color:#8A8A8A; width:140px; font-size:8pt;" id="trend">Trends</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="exportPDF">
                          <%
                           if (privilageList.contains("exportPDF")) {
                          %>
                           <a href="#" onclick="exportToPDFFile()" class="leftNavTextBlue" style="width:140px; font-size:8pt;" id="export">Export</a>
                          <%
                           } else {
                          %>
                           <a href="#" class="leftNavTextBlue" style="color:#8A8A8A; width:140px; font-size:8pt;" id="export">Export</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="print">
                          <%
                           if (privilageList.contains("print")) {
                          %>
                           <a href="#" onclick="exportToPDFFile()" class="leftNavTextBlue" style="width:140px; font-size:8pt;" id="print">Print</a>
                          <%
                           } else {
                          %>
                           <a href="#" style="color:#8A8A8A;width:140px; font-size:8pt;" id="print">Print</a>
                          <%
                           }
                          %>
                           </li>
                           </ul>
                           </li>
                          
                           <li><a href="#" style="border-right: 1px solid #FFFFFF;background-color:#375C8F;color:#FFFFFF;font-weight:lighter; font-size:8pt; font-family:verdana" id="anchor">Reports</a>
                           <ul>
                           <li id="generatedReport">
                          <%
                           if (privilageList.contains("generatedReport")) {
                          %>
                           <a href="#" id="genReport" style="width:140px; font-size:8pt;" onClick="ajaxCall('Reports', 'dashBoardDivId', 'passwordReport')">Generated Reports</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="genReport" style="color:#8A8A8A; width:140px; font-size:8pt;">Generated Reports</a>
                          <%
                           }
                          %>
                           </li>
                          
                           <li id="userReport">
                          <%
                           if (privilageList.contains("userReport")) {
                          %>
                           <a href="#" id="useReport" class="leftNavTextBlue" style="width:140px; font-size:8pt;" >User Defined Reports</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="useReport" style="color:#8A8A8A; width:140px; font-size:8pt;" >User Defined Reports</a>
                          <%
                           }
                          %>
                          
                           </li>
                           </ul>
                           </li>
                           <li><a href="#" style="border-right: 1px solid #FFFFFF;background-color:#375C8F;color:#FFFFFF;font-weight:lighter; font-size:8pt; font-family:verdana" id="anchor">Administration</a>
                           <ul>
                           <li id="masterDataMain" >
                          <%
                           if (privilageList.contains("masterDataMain")) {
                          %>
                           <a href="#" id="masterMain" style="width:140px; font-size:8pt;" onClick="getAdministrationDetails('administration', 'dashBoardDivId', 'MasterDate'); return true; ">Master Data Maint.</a>
                          <%
                           } else {
                          %>
                           <a href="#" style="color:#8A8A8A; width:140px; font-size:8pt;" id="masterMain">Master Data Maint.</a>
                          <%
                           }
                          %>
                          
                           </li>
                          
                           <li id="processMasterMain">
                          <%
                           if (privilageList.contains("processMasterMain")) {
                          %>
                           <a href="#" id="processMain" style="width:140px; font-size:8pt;" onClick="getAdministrationDetails('administration', 'dashBoardDivId', 'ICVProcess');return true;">Process Master</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="processMain" style="color:#8A8A8A; width:140px; font-size:8pt;">Process Master</a>
                          <%
                           }
                          %>
                          
                           </li>
                          
                           <li id="masterDataImportMain">
                          <%
                           if (privilageList.contains("masterDataImportMain")) {
                          %>
                           <a href="#" id="masDataImport" style="width:140px; font-size:8pt; font-family:Arial;" onClick="getAdministrationDetails('administration', 'dashBoardDivId', 'DataImport');return true;">Master Data Import</a>
                          <%
                           } else {
                          %>
                           <a href="#" id="masDataImport" style="color:#8A8A8A; width:140px; font-size:8pt;">Master DataImport</a>
                          <%
                           }
                          %>
                          
                           </li>
                           <li id="icvAuditLogMain">
                           <%
                           if (privilageList.contains("icvAuditLogMain")) {
                          %>
                           <a href="#" id="ICVAuditLog" style="width:140px; font-size:8pt;" onClick="getAdministrationDetails('administration', 'dashBoardDivId', 'ICVAuditlog');return true;">ICV Audit Log</a></li>
                           <%
                           } else {
                          %>
                           <a href="#" id="ICVAuditLog" style="width:140px; font-size:8pt;">ICV Audit Log</a>
                          <%
                           }
                          %>
                           </li>
                           <li id="eventDataMain">
                          <%
                           if (privilageList.contains("eventDataMain")) {
                          %>
                           <a href="#" id="EventData" style="width:140px; font-size:8pt;" onClick="getAdministrationDetails('administration', 'dashBoardDivId', 'EventData');performLogEventSearch();return true;">Event Data</a></li>
                          <%
                           } else {
                          %>
                           <a href="#" id="EventData" style="width:140px; font-size:8pt;" >Event Data</a>
                          <%
                           }
                          %> </li>
                           </ul>
                           </li>
                          
                           <li><a href="#" style="border-right: 1px solid #FFFFFF;background-color:#375C8F;color:#FFFFFF; width:154px;font-weight:lighter; font-size:8pt; font-family:verdana">Followup</a>
                           <ul>
                           <li id="sendMail">
                          <%
                           if (privilageList.contains("sendMail")) {
                          %>
                           <a href="#" style="font-size:8pt;" onClick="sendMail();YAHOO.example.container.MailFormPopUp.show();">Send Mail</a>
                          <%
                           } else {
                          %>
                           <a href="#" style="font-size:8pt;" onClick="sendMail();YAHOO.example.container.MailFormPopUp.show();">Send Mail</a>
                          <%
                           }
                          %>
                          
                           </li>
                          
                           <li id="forwardReport">
                          <%
                           if (privilageList.contains("forwardReport")) {
                          %>
                           <a href="#" id="forwardReport1" style="font-size:8pt;" onClick="YAHOO.example.container.ForwardPopUp.show();">Forward Report</a>
                          <%
                           } else {
                          %>
                           <a href="#" style="color:#8A8A8A;font-size:8pt;" onClick="forward();YAHOO.example.container.ForwardPopUp.show();">Forward Report</a>
                          <%
                           }
                          %>
                          
                           </li>
                           </ul>
                           </li>
                           <%if (alertList != null && alertList.size() > 0)
                           {
                           int noOfAlerts =alertList.size();
                           %>
                           <li><a href="#" style="background-color:#F59B43; color:#860000; text-decoration:blink;border: 1px solid #F59B43; width:123px; font-size:8pt; font-family:verdana" id="blink1"><blink SPEED=1000>Alerts (<%=noOfAlerts %>)</blink></a>
                           <ul>
                           <%
                           int size = 0;
                           if (alertList != null && alertList.size() > 0)
                           {
                           size = alertList.size();
                           Iterator alertItr = alertList.iterator();
                           int i = 0;
                           while (alertItr.hasNext())
                           {
                           i++;
                           noOfAlerts++;
                           Alert alert = (Alert) alertItr.next();
                           if (alert.getIncident() != null)
                           {
                           %>
                           <li><a href="#" style="color:#9D0D26; text-decoration:none;font-family:Arial;width:127px; font-size:8pt;" onclick="displayAlert('<%= (alert.getIncident() != null) ? alert.getIncident().getId() : "" %>','<%=alert.getDescription()%>','<%=alert.getTitle()%>','AlertsPopUp');YAHOO.example.container.AlertsPopUp.show();"><%=alert.getTitle()%></a></li>
                           <%
                           }
                           else
                           {
                           %>
                           <li><a href="#" style="color:#9D0D26; text-decoration:none;font-family:Arial;width:127px; font-size:8pt;" onclick="displayAlert('<%= (alert.getIncident() != null) ? alert.getIncident().getId() : "" %>','<%=alert.getDescription()%>','<%=alert.getTitle()%>','AlertsPopUpWithOutIncident');YAHOO.example.container.AlertsPopUpWithOutIncident.show();"><%=alert.getTitle()%></a></li>
                           <%
                           }
                          
                          
                           }
                          
                           }
                           %>
                          
                           <!-- li><a href="#" style="color:#9D0D26; text-decoration:none;font-family:Arial;width:127px; font-size:8pt;" onclick="YAHOO.example.container.messageAlert.show();">Logout Server01/209</a></li> -->
                           </ul>
                           </li>
                           <%
                           }
                           else
                           {
                           %>
                           <li><a href="#" style="background-color:#F59B43; color:#860000; text-decoration:blink;border: 1px solid #F59B43; width:123px; font-size:8pt; font-family:verdana" id="blink1"><blink SPEED=1000>Alerts</blink></a>
                           <%
                          
                           }
                           %>
                          
                           </ul>
                           <br style="clear: left;" />
                           </div></td>
                           </tr>
                           </table>
                           </td>
                           </tr>
                           <TR>
                          
                          
                           <%
                          }
                          catch (Exception exp)
                          {
                           logger.error("Exception during processing request" , exp);
                          }
                          
                          %>


                          • 10. Re: org.apache.jasper.JasperException: Unable to compile cla
                            alamandrax

                            Hi.

                            I think I've fixed the issue. The problem was not with the configuration files or the jar files. Apparently it was Vista all along.

                            I had not seen http://www.hanselman.com/blog/VistasShowCompatibilityFilesAndTheScrumptiousWonderThatIsFileVirtualization.aspx so was clueless about Vista's virtualization scheme.

                            I was directly opening up the web.xml file from explorer (which was not launched as an administrator) and ended up modifying a copy of the web.xml file that was stored in a virtual folder and not the actual file itself.

                            The fix was to copy the web.xml file to the desktop, modify the file on the desktop, and copy it back to the c:\program files\..\conf\web.xml location. This gives you a UAC prompt and indicates that the file is actually being modified.

                            I did this, restarted the server and now the application works just fine (well, from a deployment point of view - the developers are still working on the code).

                            Thanks again for your help. Jot this one down to my ignorance of the OS.[/url]

                            • 11. Re: org.apache.jasper.JasperException: Unable to compile class f
                              snjv180

                              Thank you guys this thread has saved my life