- This topic has 1 reply, 2 voices, and was last updated 21 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
mbagaiMemberHey,
Just purchased my membership and got version 3.7.2 installed with the M8 build on OS X 10.3.3. I’m fairly new to J2EE development, and completely new to MyEclipse. I seem to have run into a few problems that are keeping me from moving forward. I’m pretty sure it’s all newbie stuff, but I couldn’t find the answers in the docs or in the forums, so here goes….
I set up my installation of MyEclipse with Tomcat 5.0.19. Then I tried configuring a new project “testapp”. Everything goes fine in that the project gets created and I’m able to add a JSP file “test.jsp” based on the default JSP template – no custom code, just the template stuff to test with. I can deploy the project successfully using the deployment wizard, and checking in the filesystem everything looks fine. The exploded dir deploys correctly, with the exact same permissions as my other web applications.
When I start Tomcat from MyEclipse, I get a bunch of errors, but ultimately the server starts up. These are the errors related to “testapp”:
INFO: Installing web application at context path /testapp from URL file:/usr/local/jakarta-tomcat-5.0.19/webapps/testapp
java.io.FileNotFoundException: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp/tldCache.ser (No such file or directory)
SEVERE: The scratchDir you specified: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp is unusable.Checking in Tomcat manager it appears “testapp” loaded fine, but here’s what I get when calling localhost:8080/testapp/test.jsp:
exception
org.apache.jasper.JasperException: Unable to compile class for JSProot cause
java.io.FileNotFoundException: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp/org/apache/jsp/test_jsp.java (No such file or directory)Again, I’m pretty sure I am missing something basic, but any suggestions are very much appreciated.
Thanks!
Morten
Riyad KallaMemberMorten this sounds very much like a permission issue to me… I don’t know how you installed Eclipse/MyEclipse/Tomcat, but for a dev environment I HEAVILY suggest installing it all under your user account so you don’t run into any of these user issues. You only need to worry about installing Tomcat under a system account on a production machine.
So before you try troubleshooting this, maybe try unzipping Tomcat to:
/home/mbagai/java/Tomcat 5.0.19and rerunning your tests. Of course don’t forget to unzip Tomcat while logged in as yourself and not root 😉
-
AuthorPosts