You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by NormW <no...@bocnet.com.au> on 2003/03/15 10:58:53 UTC

Tomcat 3.3 to 4.1 - Changes?

Good evening All.
Working with Tomcat on Netware (no cringing please).
Trying to upgrade Tomcat from 3.3 to 4.1.x (current).

- Has the 'ContextXMLReader' directives/function been dropped in the latest releases?
  (Cannot find reference to it in the Docs and cannot get it to work on 4.1)
- Will Tomcat 4.1.x work with web apps outside its own webapps directory?
  Have set the docBase var for the context to an absolute path "sys:/.." (etc)
  (I get the impression it's not reading the associated web.xml file)

TIA
Norm

Re: Tomcat 3.3 to 4.1 - Changes?

Posted by NormW <no...@bocnet.com.au>.
Good morning Craig.
Hope you get to read this..
(ie this system has me confused after working with newsgroups).
Thanks for the feedback. Will try changes based on your suggestions and go
from there.
Thanks; this Java is worse than 'black-box' at the moment!
Norm

----- Original Message -----
From: "Craig R. McClanahan" <cr...@apache.org>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Sunday, March 16, 2003 5:54 AM
Subject: Re: Tomcat 3.3 to 4.1 - Changes?


>
>
> On Sat, 15 Mar 2003, NormW wrote:
>
> > Date: Sat, 15 Mar 2003 20:58:53 +1100
> > From: NormW <no...@bocnet.com.au>
> > Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> > To: tomcat-user@jakarta.apache.org
> > Subject: Tomcat 3.3 to 4.1 - Changes?
> >
> > Good evening All.
> > Working with Tomcat on Netware (no cringing please).
> > Trying to upgrade Tomcat from 3.3 to 4.1.x (current).
> >
> > - Has the 'ContextXMLReader' directives/function been dropped in the
latest releases?
> >   (Cannot find reference to it in the Docs and cannot get it to work on
4.1)
>
> Tomcat 4.x and 5.x haven't ever had anything exactly like
> ContextXMLReader.  A somewhat similar capability is to put just an XML
> file containing a <Context> element into the webapps directory (this is
> how the admin and manager webapps are configured by default).
>
> > - Will Tomcat 4.1.x work with web apps outside its own webapps
directory?
> >   Have set the docBase var for the context to an absolute path "sys:/.."
(etc)
> >   (I get the impression it's not reading the associated web.xml file)
> >
>
> You have to use a path that the JDK considers to be absolute (i.e.
> something that java.io.File.isAbsolute() will return true for).  All other
> paths are interpreted as relative to the "appBase" directory of the <Host>
> element.
>
> > TIA
> > Norm
> >
>
> Craig
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 3.3 to 4.1 - Changes?

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Sat, 15 Mar 2003, NormW wrote:

> Date: Sat, 15 Mar 2003 20:58:53 +1100
> From: NormW <no...@bocnet.com.au>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 3.3 to 4.1 - Changes?
>
> Good evening All.
> Working with Tomcat on Netware (no cringing please).
> Trying to upgrade Tomcat from 3.3 to 4.1.x (current).
>
> - Has the 'ContextXMLReader' directives/function been dropped in the latest releases?
>   (Cannot find reference to it in the Docs and cannot get it to work on 4.1)

Tomcat 4.x and 5.x haven't ever had anything exactly like
ContextXMLReader.  A somewhat similar capability is to put just an XML
file containing a <Context> element into the webapps directory (this is
how the admin and manager webapps are configured by default).

> - Will Tomcat 4.1.x work with web apps outside its own webapps directory?
>   Have set the docBase var for the context to an absolute path "sys:/.." (etc)
>   (I get the impression it's not reading the associated web.xml file)
>

You have to use a path that the JDK considers to be absolute (i.e.
something that java.io.File.isAbsolute() will return true for).  All other
paths are interpreted as relative to the "appBase" directory of the <Host>
element.

> TIA
> Norm
>

Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Help: Anyone have experience with JNI and Servlets?

Posted by Matt Fury <ma...@yahoo.com>.
Hi All!

Not sure if this is valid for our topic but it does
involve Tomcat and Servlets.

I am running Tomcat 4.1.18 on a Windows 2000 env. I've
written a Native DLL wrapper that loads another DLL
for a product's API.

I get this to work fine with my class that has Native
Methods and a main to run it. I run the class, the
main runs fine and all the access to the Native DLL
works great. It loads the DLL which in turn loads the
API dll for a product.

Now here's the problem: I am trying to run this DLL
through JSP/Servlets and I get a Servlet Exception. I
have no reason to believe that the DLL is NOT loading.
I am not getting a UnsatifiedLinkError at all. But the
minute I try to call a method from the DLL through JNI
it crashes with a Servlet error. Anyone have any ideas
why this would happen, or what I need to do to correct
it? I am sure this has to work since I can get a
standalone app to work fine.

Please help!!

Thanks.

-Matt 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org