[SOLVED] tomcat5.5 mostly working , slight tweaking needed
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a slight problem with my off line tomcat5.5 web development servlet engine .Firstly I must mention that all the jsp files etc that DON'T WORK off line DO WORK on my web site.
tomcat5.5 was installed on "Simply Mepis" a debian based linux system. There is no sudo apt-get install tomcat5.5 in Mepis, so I had to log in as root , and then # apt-get install sun-java5-jdk
# apt-get install tomcat5.5
i think thats part of the problem , tomcat5.5 downloaded as root.
Simple jsp files work, such as those having something like
<jsp:include page="newtop.jsp" />
but jsp files referening a taglib jar file don't work.
such as : <%@ taglib uri="WEB-INF/lib/navtag.jar" prefix="Set" %> on my offline, ( but DO WORK on web site).
I think its either my system can not see the jar files in the lib directory at:
/var/lib/tomcat5.5/webapps/ROOT/WEB-INF/lib or that its a permission thing.
briefly let me expalin the set up:
after installation the default index.jsp was in : var/lib/tomcat5.5/webapps/ROOT
what I did is add my own jsp files ,html ,.css to ROOT folder. I put jar files in WEB-INF/lib . I made ROOT chown -R user
and chmod -R 777 for user , and I simply amended the web.xml inside WEB-INF referencing the taglibs so:
I have used the same web.xml on the web and it works.
as mentioned the only jsp NOT working on my off line tomcat5.5 web devwelopment are referencing a taglib. I think the problem is to do with down loading as root and there is a permission block somewhere. The output i'm getting is:
The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /hotel_link.jsp:20
You always install software as root, well, not always. But be it with sudo apt-get or Synaptic, you need to provide the root password, so you are root anyway. This is not the problem, I think.
The important thing, though, is that tomcat is started as the correct user ... how do you start tomcat?
thanks very much for your reply. After the post got fed up with Tomcat5.5, especially after ten minutes trying localhost:8080 instead of :8081 !Tomcat5.5 is the only version via synaptic on Simply Mepis .
Had a go at Tomcat6 install which had previously successfully installed on Jaunty Jackel.
Its not factually correct such as in the web.xml it mentions a wwwboard servlet . It will work for me but not others. It needs cleaning up but would like to put it on my web site with screen shots for other newbies.
You know for someone like me you can achieve a lot with little code. Setting up a simple jsp test environment where yo want to see how one page interacts with another can be quite difficult.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.