You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Russell <sr...@zeera.net> on 2002/07/25 23:17:34 UTC
Tomcat 4.03 Classpath
Hi;
I just upgraded to Tomcat 4.03.
I've got jsps running.....except for when they call java classes.
I get a 500 error complaining about not being able to find the classes.
My CLASSPATH echos fine.(its pointing to classes not src )
I checked through the docs looking for changes in how 4.03 handles java
classes versus how 3.02 does.
I couldn't find anything.
Can anyone point me to a FAQ that might handle this issue?
Also where can I find startup options to use with startup.sh ?
Thanks in advance
Steve
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Tomcat 4.03 CLI options?
Posted by Steve Russell <sr...@zeera.net>.
I did look through the docs.
Where can I find a list of command line options to use with
TOMCAT_HOME/bin/startup.sh ?
Thanks in advance
Steve
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomat 4.03 JAVACMD & Startup Properties
Posted by Steve Russell <sr...@zeera.net>.
Hi;
I'm using tomcat 4.03 and the IBM jdk 1.3.1
I'm running these commands to start my project
export JAVACMD="$JAVA_HOME/bin/java
-DprojectProperties=$PROJECT_HOME/conf/project.properties"
./startup.sh
This worked with tomcat 3, but with tomcat 4.03 when I check the
catalina.out log file it looks like it is not getting "projectProperties".
Does tomcat 4.03 pickup JAVACMD?
Steve
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Tomat 4.03 As A Stand alone
Posted by Steve Russell <sr...@zeera.net>.
Hi;
I'm trying to convert a web app to tomcat 4.03.
I set up my project tree as recommended by the manual.
My top level directory is /zot
The other directories are:
/zot/build
/zot/doc
/zot/dist
/zot/src ( has net.mypackage under it )
/zot/WEB-INF
/zot/WEB-INF/classes ( has compiled *.class of net.mypackage under it)
/zot/web
/zot/web/js
/zot/web/common_jsp
/zot/web/jsp1
/zot/web/jsp2
/zot/web/css
/zot/web/js
I put this tag in my server.xml
<Context path="/zot" docBase="/zot/web" debug="0" reloadable="true"/>
When I try to go to either jsp1 or jsp2 ( two seperate collections of
jsps used as two differnt apps/sites) I get this error message:
============================
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at
org.apache.jsp.index_0005fhome$jsp._jspService(index_0005fhome$jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
================================
I'm stumped.
Any ideas or clues?
Thanks
Steve
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Can Tomcat 4.03 expire web pages
Posted by Steve Russell <sr...@zeera.net>.
peter lin wrote:
> set your pages to no-cache, which forces the browser to always get it
> from the server. Is that what you're looking for?
I think so, partly. I don't want the user to be able to get that page
at all by backspacing....only a message that the page has "expired".
>>My boss wants to "expire" our jsp pages.
>>
>>In other words, if a user hits backspace, instead of getting the jsp
>>page s/he just left s/he would see a notice that the page expired.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: no-cache where to set?
Posted by peter lin <pe...@labs.gte.com>.
In your jsp page, add the following code at the top.
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
%>
for more info on no-cache, jguru has some useful stuff
http://www.jguru.com/faq/view.jsp?EID=377
peter
slickdev wrote:
>
> pardon my naivete', but where do i set pages for 'no-cache'? i hope it's
> not just a browser setting... unknown number of browsers to set.
>
> ----- Original Message -----
> From: "peter lin" <pe...@labs.gte.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Friday, July 26, 2002 1:31 PM
> Subject: Re: Can Tomcat 4.03 expire web pages
>
> >
> > set your pages to no-cache, which forces the browser to always get it
> > from the server. Is that what you're looking for?
> >
> > peter
> >
> >
> > Steve Russell wrote:
> > >
> > > Hi;
> > >
> > > My boss wants to "expire" our jsp pages.
> > >
> > > In other words, if a user hits backspace, instead of getting the jsp
> > > page s/he just left s/he would see a notice that the page expired.
> > >
> > > I've seen snippets of code to do this on google, but I haven't been able
> > > to get them to work.
> > >
> > > Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat
> > > to do this?
> > >
> > > Also if someone could show me an example of how do this, with the
> > > example of being a whole html/jsp page I would appreciate it.
> > >
> > > Thanks in advance
> > >
> > > Steve
> > >
> > > --
> > > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
no-cache where to set?
Posted by slickdev <sl...@comcast.net>.
pardon my naivete', but where do i set pages for 'no-cache'? i hope it's
not just a browser setting... unknown number of browsers to set.
----- Original Message -----
From: "peter lin" <pe...@labs.gte.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, July 26, 2002 1:31 PM
Subject: Re: Can Tomcat 4.03 expire web pages
>
> set your pages to no-cache, which forces the browser to always get it
> from the server. Is that what you're looking for?
>
> peter
>
>
> Steve Russell wrote:
> >
> > Hi;
> >
> > My boss wants to "expire" our jsp pages.
> >
> > In other words, if a user hits backspace, instead of getting the jsp
> > page s/he just left s/he would see a notice that the page expired.
> >
> > I've seen snippets of code to do this on google, but I haven't been able
> > to get them to work.
> >
> > Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat
> > to do this?
> >
> > Also if someone could show me an example of how do this, with the
> > example of being a whole html/jsp page I would appreciate it.
> >
> > Thanks in advance
> >
> > Steve
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Can Tomcat 4.03 expire web pages
Posted by peter lin <pe...@labs.gte.com>.
set your pages to no-cache, which forces the browser to always get it
from the server. Is that what you're looking for?
peter
Steve Russell wrote:
>
> Hi;
>
> My boss wants to "expire" our jsp pages.
>
> In other words, if a user hits backspace, instead of getting the jsp
> page s/he just left s/he would see a notice that the page expired.
>
> I've seen snippets of code to do this on google, but I haven't been able
> to get them to work.
>
> Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat
> to do this?
>
> Also if someone could show me an example of how do this, with the
> example of being a whole html/jsp page I would appreciate it.
>
> Thanks in advance
>
> Steve
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Can Tomcat 4.03 expire web pages
Posted by Steve Russell <sr...@zeera.net>.
Hi;
My boss wants to "expire" our jsp pages.
In other words, if a user hits backspace, instead of getting the jsp
page s/he just left s/he would see a notice that the page expired.
I've seen snippets of code to do this on google, but I haven't been able
to get them to work.
Can Tomcat 4.03 "expire" web pages or do I need a webserver with Tomcat
to do this?
Also if someone could show me an example of how do this, with the
example of being a whole html/jsp page I would appreciate it.
Thanks in advance
Steve
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.03 Classpath
Posted by Steve Russell <sr...@zeera.net>.
Ron Day wrote:
> Tomcat 4.0 and above strictly enforces the Servlet 2.2 WebApp directory
> structure (3.0 + did not).
>
> Inside "your webapp" folder you put JSP's,html etc. You also need a folder
> called WEB-INF (spelling and case important). Inside here are two folders
> classes and lib, and your web.xml if you have one. You put your class files
> in the classes folder (in full package structure). And I strongly suggest
> you use a package. Tomcat does not do well with the default packge.
>
In other words it will not look for my classes unless it is in the
specified architecture.
CLASSPATH is ignored.
Thanks, that is what I needed to know.
I have packages. I just have to rearrange where they are being put in
my project.
I read the docs, but I was hoping to avoid that. Now I know I can't
Steve
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Tomcat 4.03 Classpath
Posted by Ron Day <ro...@ronday.cc>.
Tomcat 4.0 and above strictly enforces the Servlet 2.2 WebApp directory
structure (3.0 + did not).
Inside "your webapp" folder you put JSP's,html etc. You also need a folder
called WEB-INF (spelling and case important). Inside here are two folders
classes and lib, and your web.xml if you have one. You put your class files
in the classes folder (in full package structure). And I strongly suggest
you use a package. Tomcat does not do well with the default packge.
Ron
-----Original Message-----
From: Steve Russell [mailto:srussell@zeera.net]
Sent: Thursday, July 25, 2002 4:40 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.03 Classpath
Tomcat 3.2
Ron Day wrote:
> what version was you on before ??
>
> -----Original Message-----
> From: Steve Russell [mailto:srussell@zeera.net]
> Sent: Thursday, July 25, 2002 4:18 PM
> To: Tomcat Users List
> Subject: Tomcat 4.03 Classpath
>
>
> Hi;
>
> I just upgraded to Tomcat 4.03.
>
> I've got jsps running.....except for when they call java classes.
> I get a 500 error complaining about not being able to find the classes.
>
> My CLASSPATH echos fine.(its pointing to classes not src )
>
> I checked through the docs looking for changes in how 4.03 handles java
> classes versus how 3.02 does.
>
> I couldn't find anything.
>
> Can anyone point me to a FAQ that might handle this issue?
>
> Also where can I find startup options to use with startup.sh ?
>
> Thanks in advance
>
> Steve
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.03 Classpath
Posted by Steve Russell <sr...@zeera.net>.
Tomcat 3.2
Ron Day wrote:
> what version was you on before ??
>
> -----Original Message-----
> From: Steve Russell [mailto:srussell@zeera.net]
> Sent: Thursday, July 25, 2002 4:18 PM
> To: Tomcat Users List
> Subject: Tomcat 4.03 Classpath
>
>
> Hi;
>
> I just upgraded to Tomcat 4.03.
>
> I've got jsps running.....except for when they call java classes.
> I get a 500 error complaining about not being able to find the classes.
>
> My CLASSPATH echos fine.(its pointing to classes not src )
>
> I checked through the docs looking for changes in how 4.03 handles java
> classes versus how 3.02 does.
>
> I couldn't find anything.
>
> Can anyone point me to a FAQ that might handle this issue?
>
> Also where can I find startup options to use with startup.sh ?
>
> Thanks in advance
>
> Steve
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Tomcat 4.03 Classpath
Posted by Ron Day <ro...@ronday.cc>.
what version was you on before ??
-----Original Message-----
From: Steve Russell [mailto:srussell@zeera.net]
Sent: Thursday, July 25, 2002 4:18 PM
To: Tomcat Users List
Subject: Tomcat 4.03 Classpath
Hi;
I just upgraded to Tomcat 4.03.
I've got jsps running.....except for when they call java classes.
I get a 500 error complaining about not being able to find the classes.
My CLASSPATH echos fine.(its pointing to classes not src )
I checked through the docs looking for changes in how 4.03 handles java
classes versus how 3.02 does.
I couldn't find anything.
Can anyone point me to a FAQ that might handle this issue?
Also where can I find startup options to use with startup.sh ?
Thanks in advance
Steve
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>