Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

deploying JSPs under tomcat

 
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've installed tomcat on my machine at home on Windows and Linux at least 4 times and everything worked fine. Trying to install Tomcat at work and something weird is going on. I untared binary files, changed the ports and can see Tomcat welcome page. But, when I go to Jsp-Examples directory there are no files there. Even more, when I create a file in one of the jsp-examples sub-directories I get error that file could not be compiled when I try to access the page thru browser:
[CODE]
SEVERE: Servlet.service() for servlet jsp threw exception
java.io.FileNotFoundException: /export/home/jakarta-tomcat-5.5.4/work/Catalina/localhost/jsp-examples/org/apache/jsp/colors/index_jsp.java (No such file or direc
tory)
[/CODE}

What's going on here?

thanks,
Alex
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like a permissions issue to me.
Does the user that tomcat is running under have write permissions for the TOMCAT_HOME/work directory?
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it didn't so I changed it.
But, if I go to /export/home/jakarta-tomcat-5.5.4/work/Catalina/localhost/jsp-examples/ the directory listing is tldCache.ser?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alex Kravets:
it didn't so I changed it.
But, if I go to /export/home/jakarta-tomcat-5.5.4/work/Catalina/localhost/jsp-examples/ the directory listing is tldCache.ser?



That may have shipped with Tomcat. The examples are precompiled. Are you JSPs working now?
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strange, now when I want to access tomcat thru my IP the browser just sits there without resolving the URL.
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic