Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Compile error

 
Wayne Burr
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the error that I am getting:
org.apache.jasper.JasperException: Unable to compile class for JSPC:\Tomcat\work\localhost_8080%2Fka\_0002fjsp_0002fKA_0002ejspKA_jsp_11.java:327: Class java.util.ArrayList not found in type declaration.
ArrayList scopeValues = new ArrayList();
^
C:\Tomcat\work\localhost_8080%2Fka\_0002fjsp_0002fKA_0002ejspKA_jsp_11.java:327: Class java.util.ArrayList not found in type declaration.
ArrayList scopeValues = new ArrayList();

I can compile JAVA code that is using ARRAYLIST but for whatever reason if my JSP is calling ARRAYLIST I get this error. I have tried almost everything under the sun to find the problem with configuration but now seem to be going in circles.
I am using j2sdk1.4.0_01 and Tomcat 3.2.
Any advice would be great and hope to hear some soon.
Thanks in advance!
 
Wayne Burr
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my CLASSPATH to help out a bit:
c:\KnowledgeAnalyzer\ka.jar;
c:\KnowledgeAnalyzer\WEB-INF\lib\ka.jar;
C:\Oracle\Ora920\jdbc\lib\classes12.zip;
c:\Oracle\Ora920\jdbc\lib\nls_charset12.zip;
C:\Program Files\Sybase\Shared\Sun\jdk117\lib\classes.zip;
C:\Program Files\Sybase\Shared\PowerBuilder\classes.zip;
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wayne
Did you set up the JAVA_HOME environment variable as specified by the tomcat install directions?
 
Wayne Burr
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is solved.
What I did was change my CLASSPATH varables to only include:
c:\KnowledgeAnalyzer\ka.jar;
It seems to be maybe I had a duplicate class out there that was outdated. Not for sure but am happy that it works.
Thanks for the help from everybody who did so!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!