Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSPs not compiled

 
John Simpson
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Apologies if this is the wrong forum but I'm not sure if this is a Tomcat or a JSP issue.
I have a webapp with several JSPs running on a Linux server under Tomcat 5.0.28. For some reason two the JSPs don't compile on server start, but the others do, i.e. they generate _jsp files in the work directory.
I've looked in the Tomcat logs directory but can't find any diagnostics as to why the rogue JSPs don't compile. The only reason I know they haven't compiled is because when I try and access them through the webapp I get a file not found exception.
Just to complicate matters they work fine on Apache on my windows pc.
Any ideas?

Thanks,

John
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to complicate matters they work fine on Apache on my windows pc.


What do you mean by "on Apache"?
Are you connecting Tomcat to the Apache WebServer?
If so, have you tried hitting this app directly with Tomcat running as a standalone?
 
John Simpson
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my PC I am running Tomcat as part of Eclipse. Which I think mean it's running as a standalone.
The Linux box uses Apache Webserver connecting to Tomcat.

John
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would try hitting Tomcat as a standalone on the problem machine first.
If all is well, then you know the issue is with your connector.

That you're not seeing anything in the logs, makes me wonder if the requests are reaching Tomcat at all.

Is the 404 screen a Tomcat or an Apache generated screen?
(You may need to disable "friendly error messages" in MSIE to tell.)
[ December 06, 2005: Message edited by: Ben Souther ]
 
John Simpson
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben,

Thanks very much for the pointers.

I did some more digging and the problem turned out to be permissions. The work directories were owned by the root user and Tomcat was running as a different user. Re-allocated the work directories and everything worked fine.

Thanks for your help, I'm new to using Tomcat, and java for that matter, and keep tripping over these things.

John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic