facebook

Problems getting projects to deploy w/Tomcat 5 (3.7.2, M8)

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #205851 Reply

    mbagai
    Member

    Hey,

    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 JSP

    root 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

    #205977

    Mike Miller
    Member

    Did you ‘deploy’ your web app? Unless the test project was created under the tomcat webapps directory, you won’t be able to run your app. To the left of the app server start/stop buttons is a button for deployments. You need to configure the deployment for your test app and deploy it. Otherwise all you have is base Tomcat started without your web app.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problems getting projects to deploy w/Tomcat 5 (3.7.2, M8)

You must be logged in to post in the forum log in