aspose file tools*
The moose likes Tomcat and the fly likes JSPs not compiled Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JSPs not compiled" Watch "JSPs not compiled" New topic
Author

JSPs not compiled

John Simpson
Ranch Hand

Joined: Nov 28, 2005
Posts: 30
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

Joined: Dec 11, 2004
Posts: 13410

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?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
John Simpson
Ranch Hand

Joined: Nov 28, 2005
Posts: 30
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Nov 28, 2005
Posts: 30
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSPs not compiled