Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Tomcat doesn't import my java packages
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="z, post: 605471"] Hi, I have a question about Tomcat 4.x. I'm using JSP with some .java libraries inside a package named "p". The *.java files are under directory "./WEB-INF/classes/p/". All worked ok until I accidentally deleted WEB-INF folder, so I created all that directories again to put everything like before, but now it doesn't find the packages. The .jsp files have this first line: <%@ page import="p.*" %> Is it a bug of Tomcat? Did I deleted some hidden files or what? Thx in advance PD: this is the server output: =============================================================== HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 1 in the jsp file: /index.jsp Generated servlet error: [javac] Compiling 1 source file /var/lib/tomcat4/work/Standalone/localhost/p2095768/index_jsp.java:7: package p does not exist import p.*; ^ =============================================================== [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Tomcat doesn't import my java packages
Top