Re: Is it possible to specify a global 404 error page for all appsun der tomcat 4

2002-07-23 Thread Mike McGuinness

Change your location to a directory under the webapp name.

E.g., A web app named myapp is under webapp  ...webapps/myapp

In this example the file to serve should be relative to the myapp dir
not the webapps dir.


On Mon, 2002-07-22 at 16:42, John Regan wrote:

Good afternoon,
I am trying to specify a generic 404 error page for all webapps in tomcat 4.
I added the following entry to tomcathome\conf\web.xml:

404
/csa/jsp/Error404.jsp
   
under the default welcome files list and it doesn't work(just the generic
tomcat page not found page comes up).  csa is a directory under webapps.  Is
there a way to make this work??

Thanks in advance for any help,
JBR
"breakdancing will never go out of style."
Larry Crantz '87




Re: session.getMaxInactiveInterval()

2002-05-22 Thread Mike McGuinness

Chris,

Simple question, are you sure you're using a servlet 2.3 compliant
implementation?

Mike

 On Tue, 2002-05-21 at 11:00, Chris Wilson wrote:

Hello,

I'm calling session.getMaxInactiveInterval() on a session after it has
been invalidated.

Tomcat is throwing an IllegalStateException and saying that method
cannot be called on an invalid session.  However, the Servlet 2.3 API
docs do not state that IllegalStateException should be thrown (as it is
with many other methods in HttpSession) from getMaxInactiveInterval().

The reason I've run into this problem is because I'm trying to write a
HttpSessionAttributeListener that determines if the session is being
explicitly invalidated or if it timed out.

The Servlet 2.3 spec (section 10.7) states,

"It is often useful in tracking sessions to know whether a session
became invalid because the container timed out the session, or because a
web component within the application called the invalidate method. The
destinction may be determined indirectly using listeners and the
HTTPSession API methods."

If I can't call getMaxInactiveInterval() on an invalidated session, how
can I determine if the session was invalidated due to time out?  Is this
a bug in Tomcat?  It seems so since it doesn't follow the API docs for
this call.

Thanks in advance for any insight.

Chris Wilson

Web Developer
Andrews University
[EMAIL PROTECTED] 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: FileReader within a Servlet

2002-04-24 Thread Mike McGuinness

System.getProperties(user.dir)

On Wed, 2002-04-24 at 09:38, Günter Kukies wrote:

Hello,

how can I get the path base for a file within a web application? I want to use a 
FileReader within a Servlet. 

Günter

 




RE: Tomcat 3.3a and mod_jk on AIX 4.3.3 built OK, but not sending requests

2002-04-02 Thread Mike McGuinness

Jay,

mod_jk does work on AIX. Although I'm on AIX 5.1, I've got apache 1.3
communicating with tomcat 4 just fine.

With help form others in this group, I was finally able to compile the
module. If you like, I can get you my copy of the hacked-for-aix apxs
and the build script. Maybe a re-compile would solve your problem.

Mike



On Fri, 2002-03-29 at 10:24, Jay Balunas wrote:

Larry,

 When Access Apache content everything works fine.  Also when access
the examples directly through tomcat's http server (the embedded one)
everything works fine.  It is only going through the mod_jk that croaks.
That is why I leaning towards some configuration with mod_jk or something.
but everything else works fine.

 We're not crazy or anything, the does work on other people machine
right?  mod_jk on AIX ?

Thanks Again,
Jay




   
   
Larry Isaacs   
   
 
sas.com> cc:   
   
 Subject: RE: Tomcat 3.3a and mod_jk 
on AIX 4.3.3 built OK, but not sending  requests 
03/29/2002 
   
10:15 AM   
   
Please respond 
   
to "Tomcat 
   
Users List"
   
   
   
   
   




Jay,

What happens if you try to access Apache content, such as
with just http://host:8080/? Does Apache successfully serve
content, or does these requests hang too?

Larry

> -Original Message-
> From: Jay Balunas [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 10:01 AM
> To: Tomcat Users List
> Subject: RE: Tomcat 3.3a and mod_jk on AIX 4.3.3 built OK,
> but not sending requests
>
>
>
> Larry,
>
>  Thanks for the info on the ajp12.id file.  We may have
> started tomcat
> twice or something.  We'll keep an eye out for that.
>
>  The Tomcat log shows this at the end of the log after
> initialization.
> that looks good compared to other OSes that we have this running on.
>
>  2002-03-29 08:59:54 - Http10Interceptor: Starting on 8081
>  2002-03-29 08:59:54 - Ajp12Interceptor: Starting on 8007
>  2002-03-29 08:59:55 - Ajp13Interceptor: Starting on 8009
>
>  The test request we are trying is the tomcat Examples so
> "http://host:8080/examples";  Where 8080 is the port apache is
> on.   All
> that happens on the AIX box when we do this is the browser
> hangs, waiting
> for a response.
>
>  On one of the Solaris boxes I turned the log level up to
> "debug" on
> mod_jk, and saw all alot more information from where the AIX
> box mod_jk log
> stopped.  I also saw it checking all of the requests like you
> said , it is
> actually pretty cool.   So here it what I think we are
> missing in the AIX
> mod_jk log that is showing up on the Solaris box.
>
>  [Fri Mar 29 09:44:23 2002]  [jk_uri_worker_map.c (368)]:
> Attempting to
> map URI '/examples/'
>  [Fri Mar 29 09:44:23 2002]  [jk_uri_worker_map.c (391)]:
> jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->
> /examples/
>  [Fri Mar 29 09:44:23 2002]  [jk_worker.c (123)]: Into
> wc_get_worker_for_name ajp13
>  [Fri Mar 29 09:44:23 2002]  [jk_worker.c (127)]:
> wc_get_worker_for_name, done  found a worker
>  [Fri Mar 29 09:44:23 2002]  [jk_ajp13_worker.c (865)]: Into
> jk_worker_t::get_endpoint
>  [Fri Mar 29 09:44:23 2002]  [jk_ajp13_worker.c (775)]: Into
> jk_endpoint_t:

Re: Calling all AIX mod_jk Binaries

2002-04-02 Thread Mike McGuinness

If you're interested, I've got a working mod_jk.so for AIX 5.1. 

Mike

On Fri, 2002-03-29 at 14:32, Jay Balunas wrote:

Hello All,

 We have a binary compiled on AIX 4.3.3 and it does not seem to be
working correctly.

 Does anyone have another AIX mod_jk binary that we can try?

 Or does anyone want to try our mod_jk binary on an AIX 4.3.3 machine
and let us know if you have the same problem?

Thanks
Jay



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Adding a system property?

2002-03-18 Thread Mike McGuinness

Rich,

You can edit the start script to set system properties for the JVM.

I set the user.dir system property in my $CATALINA_HOME/bin/catalina.sh
script.  I just added the parameter  -Duser.dir=${CATALINA_HOME}/conf to
the $CATALINA_OPTS varaable.
 
Then, in the app I can do this:

String userDir = System.getProperty("user.dir");

I don't know if this is the proper way, but it works!


Mike

On Mon, 2002-03-18 at 11:51, Rich Baldwin wrote:

I have a system property which I have added to my build.properties file
and my build.xml
file.  Ant builds and deploys w/o any errors.  However, my tomcat
servlet cannot "find" this
new system property.   What is the trick here?  There is nothing in my
build.xml file to tell
tomcat explicitly about this property, but how would I do that?   Where
can system properties be
set in tomcat?

To recap
In build.properties
metadata.xmlfile=project.xml

In build.xml


Thanks, Rich


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Upgrade 4.01 to 4.02

2002-02-15 Thread Mike McGuinness

I have an application running in tomcat 4.0.1 and I want to updrage to 
4.0.2.

What do I need to do? Do I have to copy my conf and webapp directories 
to the new 4.0.2 area? Are there jars I have to copy?

Current config: AIX, 5.1, apache 1.3.x with mod_jk.


Thanks, Mike



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33

2001-12-12 Thread Mike McGuinness

I've got mod_jk.so to compile on AIX.  I used the tomcat 3.3 src tree. I 
had some help from others
on this list (thanks all). I had to modify apxs to get it to work.  Man 
it was a pain!

If anyone is interested I can send you a copy.


Mike
[EMAIL PROTECTED]



Brian Adams wrote:

> I think there was someone else having problems this morning with an AIX
> build as well. have  you checked the archive of this mail list?
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AIX Compile mod_webapp

2001-11-29 Thread Mike McGuinness

Hello all,

Has anyone been able to compile mod_webapp on AIX? 
I'm running tomcat 4.01 on AIX 5.1. 

I've checked the archives and didn't find out if anyone was successful. 
There were some posts, but nothing I could find was conclusive.
Sorry for this post if I missed anything in the archives.

I'm currently running tomcat 3.2.3 stand-alone on AIX and it works fine.
I'd like to change to tomcat 4. 

In either case, tomcat 3 or 4, for the next project, I have to connect 
tomcat
to apache and compile an apache mod.  If compiling mod_webapp is not
possible on AIX, I'll try doing mod_jk for tomcat 3.

Thanks for any help,


Mike


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: IBM JDK

2001-08-14 Thread Mike McGuinness

Yes, based on my experience with certain applications the IBM jdk was
faster than sun's. Your mileage may vary.

The other reason is I'm porting my apache/tomcat application to AIX and
wanted to run IBM's jdk there.

Mike

The main reason is I am porting from Linix to AIX

James, Stuart wrote:

> why would you want to run the IBM JDK ? is it faster/better than suns jdk ?
> 
> -Original Message-
> From: Paul Rubenis [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 5:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: IBM JDK
> 
> 
>   Works very well for me running tomcat 3.2.3, rh 6.2 and IBMJava2-13
> (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010329 (JIT enabled: jitc)
> 
> Mike McGuinness wrote:
> 
>> Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?
>> 
>> I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and
>> tomcat 3.2.3.
>> I was wondering how or if IBM's jdk/runtime works.
>> 
>> Mike
> 




IBM JDK

2001-08-14 Thread Mike McGuinness

Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?

I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and 
tomcat 3.2.3.
I was wondering how or if IBM's jdk/runtime works.

Mike




Re: Restarting Tomcat/Apache

2001-08-13 Thread Mike McGuinness

I use jave just about the exact same configuration and I don't have the
problems you state. I have noticed that if I restart tomcat *without*
restarting apache, there are problems.

To restart I use the following script:

#!/bin/bash
/usr/apache/bin/apachectl stop
sleep 2
/usr/jakarta/dist/tomcat/bin/shutdown.sh
sleep 2
/usr/jakarta/dist/tomcat/bin/startup.sh
sleep 2
/usr/apache/bin/apachectl start


Mike


1. stop .
2. 
--- Simon Hardingham <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am having problems restarting Tomcat.  It can be a real problem to get
> Tomcat to shutdown (often requiring a killall java).  Even then starting
> up
> can be intermittent.  Has anyone else had any problems with starting and
> stopping Tomcat.  System details are:
> 
> RedHat Linux 7.1 on Intel
> Tomcat 3.2.3
> mod_jk (from 3.2.3)
> Apache 1.3.19
> servlets with JDBC to PostgresSQL 7.1.2
> 
> Any thoughts? Development is difficult when restarting is such an
> effort!
> 
> Many thanks
> 
> Simon
> 
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> _/ Simon Hardingham - netXtra Ltd - UK  _/
> _/  Direct Dial: +44 (0) 1787 314890_/
> _/ Tel: +44 (0) 1787 319393Fax: +44 (0) 1787 319394 _/
> _/ http://www.netxtra.co.uk [EMAIL PROTECTED] _/
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> 
> 


__
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/



Re: Double loading when loading servlet on startup

2001-08-08 Thread Mike McGuinness

What version of tomcat?

Alexander Cherinko wrote:

> Hi
> problem is that when I mark servlets as load-on-startup they are loaded
> twice in jvm.
> I want this servlet to serve as initializer i.e. to initialize some other
> classes in its init method.
> The worst is that that classes are double loaded too. I.e. I want to init
> class which is Thread subclass to perform periodical custom action. As
> result I have double threads running in jvm and making the same things! That
> was obviousely not my real intention.
> >From the other hand when I launch that initializer from common servlet (not
> loaded on startup) the problem is not present.
> The most strange thing about it is that in both cases all classes are loaded
> with the same ClassLoader.
> I cannot understand is it a bug or just I don't understand something.
> Please help.
> --Che





Re: tomcat -- which version

2001-08-07 Thread Mike McGuinness

I'm running  with apache 1.3.20 and Tomcat 3.2.3 and it runs fine.

Ling Wang wrote:

> We are on solaris 8, and we want tomcat and apache work together.
> which version of tomcat works better with apache on unix platform?
> 
> Many thanks in advance!!!
> 
> 
> Ling 
> 
>