Re: my jsps don't work anymore :(
Isn't your Context tag wrong? I used something like (without ) -- Cyberjobe -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:16 PM To: Tomcat Users List Subject: my jsps don't work anymore :( > I have no idea what happened! Yesterday everything was working > beautifully. > Today all I did was to restart the server, and now my jsps do not work > from > my home directories. > > If I access http://localhost:8080/examples or http://localhost/examples > , > it works fine. But if I try to access a jsp from my homedir > http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get > type > Status report message /myacct/index.jsp description The requested > resource > (/myacct/index.jsp) is not available. I have added the following to the > server.xml file: > > reloadable="true" crossContext="true"> > > It seemed to be working. I have no idea what is going on. > >
Re: Tomcat does not compiles my .jsp! -> the solution!
Hi! Well...its working! But just when I run the server with the script "startup.sh", NOT the Tomcat5.sh (from /bin/jsvc-src dir). It created the org/apache/jsp/index_jsp.java and index_jsp.class on work/Catalina/localhost/jsp1 dir. So... may this be a bug? (the Tomcat5.sh script is wrong! At least to me :) Now I have to make a new start-up script to put on my /etc/rc.d dir... Thanks everybody! Cyberjobe - Original Message - From: "Niklas Lindholm" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, June 24, 2004 4:17 PM Subject: Re: Tomcat does not compiles my .jsp! > Hi! > > I think I have the same problem as you have. > > I have been using Tomcat 5.0.19 in a RedHat 8.0 system. (Using JDK 1.4.2 > and Ant 1.6.1) and everything has been working fine. > > Now I have installed the same thing on a laptop using VMWare and I have > run into this error. I have tried installing Tomcat 5.0.25 instead but > that didn't help. > > I start Tomcat using jsvc from the root account. When I run "ant install" > (with another user) the webapp deploys ok and a directory containing a > tldCache.ser file is created in work/Catalina/localhost. But when I try to > access a jsp file I get the compilation error exception. No directories or > files have been created in the work directory. > > Tne only thing I get in the logs when the error happens is the > FileNotFoundException (with the huge stack trace). > > I'm totally clueless.. > > /Niklas > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat does not compiles my .jsp!
No, my work dir is ok. And... if I use the Ant the .jsp will "compile". (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! > I'm fairly sure the problem is tomcat is having some trouble writing to > the work directory when it writes your jsp as a java class. Quick test: > > su tomcat (if done from root, no password required) > cd /usr/local/jakarta-tomcat-5.0.25/work > vi testfile.txt > type some junk and try to write the file. > > If this fails, you have your problem. Exit the su session and take a > look at file permissions on the work directory. Be sure tomcat owns it > and has write access. I'd recommend tomcat user and group have full > permissions (rw, x for directories), others have nothing. > > --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat does not compiles my .jsp!
Well, this is my new index.jsp file: Hi! And this the same error message (complete now): ... HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:519) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) root cause java.io.FileNotFoundException: /usr/local/jakarta-tomcat-5.0.25/work/Catalina/l ocalhost/jsp1/org/apache/jsp/index_jsp.java java.io.FileOutputStream.open(Native Method) java.io.FileOutputStream.(FileOutputStream.java:176) java.io.FileOutputStream.(FileOutputStream.java:70) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188) org.apache.jasper.compiler.Compiler.compile(Compiler.java:461) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292 ) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) ... My server is on Linux and I create a tomcat user to run it. What may be wrong? Thanks, Cyberjobe - Original Message - From: "Jérôme Duval" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, June 23, 2004 5:38 PM Subject: RE: Tomcat does not compiles my .jsp! > Corrected a stupid mistake: > > You probably have an error in you jsp file. To test this write a normal html > file with a jsp extension. If you aren't familiar with html, just go to any > website and copy the source of the page and use that... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat does not compiles my .jsp!
Hi! I have followed the tomcat's installation manual and I did make the Servlets work. But not the .jsp files! So... I modified the server.xml and put this: On the /home/cyberjobe/jsp1 I have the file index.jsp (just a test) . I also have a dir "WEB-INF". I restart the Tomcat and... try to conect on localhost:8080/jsp1/index.jsp. I got this messages: . org.apache.jasper.JasperException: Unable to compile class for JSP (...) java.io.FileNotFoundException: /usr/local/.../localhost/jsp1/org/apache/jsp/index_jsp.java (...) . What can I do to solve this? Thanks, Cyberjobe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]