Re: Tomcat 4 integration with apache

2002-01-08 Thread Ravi Naidu

Please let me know how do i integrate tomcat 4 with IIS 4.0 and IIS 5.0 and
how do i define the path of my webpages( also if use the virtual directory
also )

Thank You.
Ravi.
- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 1:30 AM
Subject: Re: Tomcat 4 integration with apache


 Vinay Singh wrote:

  I did Apache 1.3.20 integration with Tomcat 4.0.1 using mod_webapp. I
can
  tell u the steps if you want.

 Go ahead.

 Nix.


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




:::::::::PLEASE HELP WITH TOMACAT AND ULTRADEV:::::::::

2002-01-08 Thread ras

Hello,

I'm new to jsp and I'm trying to configure ultradev to work with the jsp
taglib. Up to now I've installed and worked with tomcat, for me that means
that tomcat was installed right.
I'm on train to follow the tutorial that come with the taglibs distrubution
and when I copy the *.war directory in the webapps and then place a copy of
the TLD file of  custom tag library into the TLDParser.war/tlds directory?
or the TLDParser/tlds directory when  I create it by hand,  then tomcat
does't start any more. I don't kwon what it is, I've tried many things, but
I come always to the error point again.

Pls help

Xaver




error
Description: Binary data

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Tomcat v4 Apache httpd howto?

2002-01-08 Thread Dionysios G. Synodinos

I have tried to find at jakarta.apache.org  JGuru documentation about
making Tomcat v4 work with Apache WWW Server on Unix but have failed.

Does anyone know where to find such information?



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




XML Confusion

2002-01-08 Thread Hugh Eland

Hi,

I am getting wierd results running Tomcat 4.1  XML.  I want different 
applications to have separate XML files, so have attempted to follow the 
instructions

'If you wish to *not* make any XML parser visible to all web applications,
this can be accomplished by copying the xerces.jar file from common/lib
to both server/lib and jasper, and removing it from common/lib.'

from the release notes - except there is no 'jasper' directory?  What 
does this mean?


I have removed xerces from common/lib and placed in it server/lib. 
 There are no other copies of crimson/ xerces / xalan etc in the tomcat 
directories.


When I install my application (with WEB-INF/lib/ xerces.jar xalan.jar 
jdom.jar etc) I get errors like the following.

root cause

java.lang.NoClassDefFoundError: org/xml/sax/SAXException
at 
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:164)
at 
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
at 
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

However, by moving all the jar files into the tomcat/lib directory it 
all works o.k.  Wierd.  Any ideas?

Hugh



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




getPathTranslated ?

2002-01-08 Thread Steven Elliott

I have a question re: the getPathTranslated method of HttpServletRequest in
Servlet 2.3.

Using Tomcat 4.0.1 (win2k) Standalone, the first access to the servlet I get
the path + the servlet name + extra path info. The second time I access the
servlet (same url) I get the same path returned minus the servlet info?

1st time:
C:\Tomcat_401\webapps\upload\HelloWorld\moreInformation

2nd time (successive access):
C:\Tomcat_401\webapps\upload\moreInformation

In both cases the url is:
http://localhost/upload/servlet/HelloWorld/moreInformation?name=value

I'm a little puzzled and I haven't seen anything mentioned in the archives
about this behaviour and I don't know if it is to be expected?


Steven Elliott

//* 
Steven Elliott  [EMAIL PROTECTED]
Head of Technology
VTV Learning Corporation
 Los Angeles  -  Boston  -  Lisbon
   (http://www.vtvLearning.com/)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat questions version 4.0.1 and 3.3

2002-01-08 Thread Ansalvish, Dave R

Hi,

 I have been experimenting with Tomcat 3.3 and 4.0.1 trying to decided on
which version I want to use and I have come accross a couple of problems
which I don't understand.

 Currently I am using two servers for my experiments.

 Server #1, Sun 280 running Solaris 8
 Server #2, Sun Ultra 10 running Solaris 8

 On server 1 and server 2 I installed JDK 1.3 from Sun Microsystems from the
shell archive of
j2sdk-1_3_02.solsparc.sh.

  On server 1 I downloaded the tar file jakarta-tomcat-3.3.tar and untarred
the file.  I setup my environment variables of JAVA_HOME and TOMCAT_HOME.  I
was able to start the TOMCAT server and was able to view the TOMCAT web page
using http://localhost:8080.

  I stopped the Tomcat Server 3.3 and downloaded the jakarta-tomcat-4.0.1
tar file and untarred it.  I created the new environment variable of
CATALINA_HOME and started tomcat 4.0.1.  When I went to
http://localhost:8080/ I received a 404 error.  When I examined the log
files I found the following error.  

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/catalina/s
tartup/Bootstrap

 
 What I need to know, did I miss something in the installation of tomcat
4.0.1 or can somebody give me a clue what the error means and why I can't
get the web page to appear.

 On server 2, after I installed jakarata-tomcat-3.3 using the same process I
did on server 1, when I try to access the http://localhost:8080/ I receive a
message Not Found and nothing else.  I checked the error logs the appear
to be fine. I did a ps command and found a jakarta process and the PID
matching the one in the log file.  Again, can someone give me a clue why I
received a Not Found message or where I can look for an error.

Dave Ansalvish

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




encodeURL fails with WarpConnector and multiple host names

2002-01-08 Thread Nicholas Ide

Apache 1.3.20
Tomcat 4.0.1
Cookies DISABLED in the browser and in server.xml

httpd.conf:

ServerName foo

NameVirtualHost *

VirtualHost *
ServerName foo
ServerAlias bar
DocumentRoot /export/home/foo
/VirtualHost

encodeURL(http://foo;)  correctly adds the ;jsessionid=0876...

encodeURL(http://bar;) does NOT add the ;jsessionid=9876...

If I bypass apache/warp, this works correctly.
When I use apache/warp, I get to my webapp, but the encodeURL 
doesn't do the correct thing.

The reason I am trying to do this is that I have a 
RESONATE scheduler which manages a VIP and directs the traffic
to one of several boxes.  The ServerName for those boxes cannot be
the name of the VIP, therefore it needs to be an alias.  But, I need
URL encoding of session id's to work.  (I work for the US gov't and
we cannot require cookies to be enabled.)

-Nick Ide



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Context Pb with Jakarta 4.x

2002-01-08 Thread Jean-Luc BEAUDET


Hi all and Happy New Year !

Well, i come to yu cause i've got a pb with the declaration of Context
deployement.

Assuming that i'm working with a Dev Team, i do have to administrate
different
contexts for the different users.

Let's take an example;
user1 has this Context:

Context path=/iretest docBase=/home/user1/AppWeb/iretest
debug=0
 reloadable=true
!-- user1's applications logger --
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/user1/Logs prefix=Tomcat_Log.
suffix=.txt
verbosity=4 timestamp=true
/Logger
/Context

Context path=/Test docBase=/home/user2/AppWeb/TestApp debug=0

   reloadable=true
!-- user2's applications logger --
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/user2/Logs prefix=Tomcat_Log.
suffix=.txt
verbosity=4 timestamp=true
/Logger
/Context

All of this is working good...

But when a user - for instance user1 - wants a new application to be
deployed, i do have to modify
the server.xml once again so that he/she can work with that new
application.
In such this case i deploy a second/next new context for, in the case of
user 1;


Context path=/Test2 docBase=/home/user1/AppWeb/Test2 debug=0
 reloadable=true
!-- user1's applications logger --
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/user1/Logs prefix=Tomcat_Log.
suffix=.txt
verbosity=4 timestamp=true
/Logger
/Context

My question is :

Is it possible to deploy such a web application in a way that we can
have a physical deployment like:

/home/dir/AppWeb/App1, /home/dir/AppWeb/App2, /home/dirAppWeb/App3
assuming that I, as the UNIX Admin, deploy in advance the
/home/dir/AppWeb directory including App1 App2 App3 Appn directories to
be autodeployed.
So that when the dev Team need a new WebApplication then will only have
to use it as it.

The Appn applications will be In Order to be Used !

I don't know how to do it except declaring a special Context for each
of them...

Any comments/advices/answers will be welcome.

Best regards.

Jean-Luc BEAUDET :O)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: catalina.policy: file:?

2002-01-08 Thread RSEQUEIRA







Laura Reising [EMAIL PROTECTED] on 01/08/2002 05:24:58 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   tomcat [EMAIL PROTECTED]
cc:

Subject:  catalina.policy: file:?

Hello list,

I'm still busy with my policy-Problem from yesterday (Give webapps
FilePermissions in catalina.policy).

I didn't find any solution yet, but I have a question about file:.

This code I found under

http:[EMAIL PROTECTED]%3E
:

---snip---
grant codeBase file:${work.dir}/- {
permission java.io.FilePermission ${doc.root}/-, read;
permission java.io.FilePermission ${work.dir}/-,
read,write,delete;
};
/---snip---

If you're sharp-eyed, you see that in the codebase the path is
file:${work.dir}/-, while in the permission-statement it is
${work.dir}/- (without the file:).

Can anybody tell me why this is so? Or is this a mistake in the example?

It isn't a mistake. The about grant states:
Any local application (in this case, catalina I suppose) can read, write,
delete any file in the directory $work.dir. Subdirectories included. The
file is the protocol used for accessing local file (and network) system.
For experimental purposes you could change (I don't think you would want to
do that though) the file:${work.dir}/- to maybe
http://servername/path and all applets coming from this Web URL could
read, write, delete any file in the directory $work.dir


Thanx a lot!

Laura




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat Policy????

2002-01-08 Thread Rui Oliveira

Hello,

I'm having problems accessing a network drive from within tomcat.

If I run a java application outside tomcat, I am able to list the directory
contents of a network drive. Although, in order to access it from within
tomcat I have to set a policy right?

Can someone tell me how to set the policy?

The drive is \\machine\e$
or e:\ (after properly mapped).


Thanks
Rui Oliveira


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Running Tomcat 4.0 with SSL as a NT service

2002-01-08 Thread Bryan Ha

Hello,

From the archive, I have read that there were some
discussions a month ago related to running Tomcat with
SSL as a NT service.

I have followed the suggestions and copied the 3 jars
into the 3 directories as suggested. The result is I
can start it using the startup script and the program
shortcut and can access both http://localhost:8080 and
https://localhost:8443/ successfully.

However, if I start it as a NT service, it returns a
success message but I can only access
http://localhost:8080 but not https://localhost:8443/.

My setup is as follows:

Tomcat 4.0
JSSE 1.0.2
NT 4.0 with service pack 5

Have I missed anything ?

Any comments are appreciated.

Bryan

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat Policy????

2002-01-08 Thread Bryan Ha

Hi Rui,

Have you tried to use the policytool to edit the
tomcat policy file in catalina/conf ?

grant codeBase file:${catalina.home}/webapps/your
application/WEB-INF/classes/- {

permission java.permission.FilePermission your target
to read, read;
// };

Regards,

Bryan

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat Policy????

2002-01-08 Thread Rui Oliveira

Hello,

I'm using Tomcat 3.1...

Sorry, forgot to mention...

Is it enough to edit the tomcat.policy file and add the corresponding line?
I have a network drive letter that is e:. If I add the following should
not be enough?

grant codeBase file:e:/- {
permission java.security.AllPermission;
};


I'm I doing something wrong? Do I need to set anything either in the tomcat
SCRIPTS or in the server.XML files? Should a restart to Tomcat be enough?


Regards
Rui





 -Original Message-
 From: Bryan Ha [mailto:[EMAIL PROTECTED]]
 Sent: terça-feira, 8 de Janeiro de 2002 15:55
 To: Tomcat Users List
 Subject: Re: Tomcat Policy


 Hi Rui,

 Have you tried to use the policytool to edit the
 tomcat policy file in catalina/conf ?

 grant codeBase file:${catalina.home}/webapps/your
 application/WEB-INF/classes/- {

 permission java.permission.FilePermission your target
 to read, read;
 // };

 Regards,

 Bryan

 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Contexts in Tomcat 3.2.1 - Necessary?

2002-01-08 Thread Terrence Beard

Hello all!

Here's what we've got: WinNT 4SP6 running IIS 4. We support several seperate
web sites via IIS (couple internal, several external). The source for each
is kept on a seperate directory path, different from the Tomcat install
path. The JSP pages are being serviced by Tomcat 3.2.1 via the
isapi_redirect.dll, which is set on the filter list for the machine (as
opposed to each web site).

In order to get things to work, we needed to define a seperate context for
each site in the server.xml file, and reference them in the
uriworkmap.properties file. So, there a context named foo pointing as the
JSP source directory for the www.foo.com. On the URL, these files are
accessed (and processed) via www.foo.com/foo/sample.jsp. 

The question is this: is this the proper way to do this, or is there a
better/preferred way of doing this? Is there a way to say process JSP files
no matter where you find them without being determential?!

All suggestions are welcome and appreciated!

Thanks!

Terry Beard




Re: JNI libs and Tomcat?

2002-01-08 Thread Janek Bogucki

 --- Dr. Evil [EMAIL PROTECTED] wrote:  
 Hi, I'm trying to get Jmagick (a JNI interface for
 Imagemagick) to
 work with my favorite web server, which is Tomcat 4.
  In the release
 notes, it says:
 
 Applications that require native libraries must
 ensure that the
 libraries have been loaded prior to use.  Typically,
 this is done with
 a call like:
  
   static {
 System.loadLibrary(path-to-library-file);
   }
 
 However, when I put in
 /usr/local/lib/libImagemagick.so in there, and
 put it in a Listener that starts when the app
 starts, I get an error
 that path separators are not allowed in the
 loadLibrary method.  I
 tried putting that library in the $TOMCAT/lib
 directory, and taking
 out the full path, and that didn't work.  Any
 sugestions?
 
 Thanks!
 
 --

try System.load instead of System.loadLibrary.

   static {
 System.load(/usr/local/lib/libImagemagick.so);
   }


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat serving Adobe SVG file

2002-01-08 Thread Annick Fron

I was able to serve svg resource files with tomcat 3.3 but not anymore with
tomcat 4.0. What's wrong
-- 
Annick Fron
AFC Europe
B.P. 111, 977 avenue du Docteur Julien Lefebvre
06271 Villeneuve-Loubet France
Tél : +33 4 93 22 88 18
Fax : +33 4 93 22 88 36
http://www.afceurope.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat initparameter

2002-01-08 Thread Annick Fron

Where do you put sql tag lib init parameters in the web.xml file ?
-- 
Annick Fron
AFC Europe
B.P. 111, 977 avenue du Docteur Julien Lefebvre
06271 Villeneuve-Loubet France
Tél : +33 4 93 22 88 18
Fax : +33 4 93 22 88 36
http://www.afceurope.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




XML Request-time attribute bug in Tomcat 4.01 final?

2002-01-08 Thread Khun Yee Fung

We are using the XML syntax for JSP in our project. We have elements that look like:

form action=%=member%
...
/form

Tomcat 4.01 seems to ignore the attributes.

I got it to work by adding an if statement in 
org.jasper.compiler.UninterpretedTagBeginGenerator when an attribute is encountered.

My questions:

0. Is it a bug, or I just don't know what I am doing?
1. Is this a known bug?
2. If so, is anybody working on it to fix it?

My simplistic solution is attached below. It works for our request-time attributes. It 
probably won't work if you have characters that need escaping. Not knowing Tomcat 
source code well, I am not sure whether that if statement will affect other part of 
the code.

Please help!

Khun Yee

diff -C 5 
tomcat/src/jasper/src/share/org/apache/jasper/compiler/UninterpretedTagBeginGenerator.java
 
jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/compiler/UninterpretedTagBeginGenerator.java
*** 
tomcat/src/jasper/src/share/org/apache/jasper/compiler/UninterpretedTagBeginGenerator.java
  Mon Jan  7 16:35:34 2002
--- 
jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/compiler/UninterpretedTagBeginGenerator.java
Sun Oct 14 12:14:32 2001
***
*** 102,121 
String quote = doubleQuote;
  String name = attrs.getQName(i);
  String value = attrs.getValue(i);
if (value.indexOf('') != -1) quote = singleQuote;
  sb.append(  ).append(name).append(=).append(quote);
!   if 
(JspUtil.isExpression(value, true)) 
!   {
!   
sb.append(\););
!   
sb.append(out.print( + new String(JspUtil.escapeXml(JspUtil.getExpr(value, true))) + 
););
!   
sb.append(out.write(\).append(quote);
!   }
!   else
!   {
!   
sb.append(value).append(quote);
!   }
  }
  sb.append();
  }
writer.print(sb.toString());
  writer.print(\););
--- 102,112 
String quote = doubleQuote;
  String name = attrs.getQName(i);
  String value = attrs.getValue(i);
if (value.indexOf('') != -1) quote = singleQuote;
  sb.append(  ).append(name).append(=).append(quote);
!   sb.append(value).append(quote);
  }
  sb.append();
  }
writer.print(sb.toString());
  writer.print(\););



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat serving Adobe SVG file

2002-01-08 Thread Jim Urban

Check that the conf/web.xml contains the mime type for this kind of
resources.  I know the conf/web.xml file in 4.0 had an incorrect mime type
for .jnlp files.

Jim

-Original Message-
From: Annick Fron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 10:27 AM
To: tomcat
Subject: Tomcat serving Adobe SVG file


I was able to serve svg resource files with tomcat 3.3 but not anymore with
tomcat 4.0. What's wrong
--
Annick Fron
AFC Europe
B.P. 111, 977 avenue du Docteur Julien Lefebvre
06271 Villeneuve-Loubet France
Tél : +33 4 93 22 88 18
Fax : +33 4 93 22 88 36
http://www.afceurope.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: server side includes of dynamic content not working?

2002-01-08 Thread RSEQUEIRA







Richard Sand [EMAIL PROTECTED] on 01/07/2002 09:40:31 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  server side includes of dynamic content not working?

Hi all-

I'm using Tomcat 4.01 on Win2k and I'm trying to get a server side include
to work.  I'm using the SSI include virtual, and what I'm experiencing is
that if I include a static file, it works (so I have taken the basic steps
to get SSI working on Tomcat), but if I try to include the contents of
another servlet, such as:

!--#include virtual=/servlet/ipa.MenuServlet--

...I always get back [an error occured processing this directive].
However, I know the include tag is valid, because if I configure my Apache
to serve the shtml file (instead of passing the request to tomcat), then
the SSI works.  So I suspect that it is a problem with Tomcat's SSI
handling.

Can anyone confirm this?

What's really odd is that I tried doing a jsp:include page=... on the
same URI, it returns blank, i.e. no content inserted! But I know the URI
itself is valid because I can cut and paste it into my browser and it
returns my proper content.

So is there a problem doing a jsp:include on a servlet as well? Does it
matter that the servlet is in another context than this page?

Both jsp:include.../ and % include.../ directives are meant to be used
with URLs that are relative to the context. If you wish to include a
servlet from another context then would need to get a handle to that
ServletContext and then use RequestDispatcher.include(...).
Example code:
   ServletContext ctx = application.getContext(/ssi);
   RequestDispatcher rd = ctx.getRequestDispatcher
(/relative_path/file_to_be_included);
   rd.include(request, response);


Any help greatly appreciated!

Thanks!

-Richard

I hope this helps.
Thanks.
RS








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




cookies problems

2002-01-08 Thread Kyller Costa Gorgonio


Hi all,

I'm using Tomcat 4.0.1 and I'm getting problems using cookies. Using the 
mozilla browser on a Linux box, everything works fine, but when I try to 
access my servlet from a Windows 2k machine (with Internet Explorer) I 
cannot recover the cookie.

In fact, I just recover the JSESSIONID cookie, but I was unable to 
recover the cookie that I added (with a different name). I verified the 
system configuration, and it is allowing cookies.

thanks and best regardsKyller


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat Policy????

2002-01-08 Thread Rui Oliveira

Ok.

I figured out why does Tomcat prevents me from browsing through NetWork
Drives. It is because I' running it as a service...

Can someone tell me why? If I run it as a process it works fine.


Regards
Rui


 -Original Message-
 From: Rui Oliveira [mailto:[EMAIL PROTECTED]]
 Sent: terça-feira, 8 de Janeiro de 2002 16:06
 To: Tomcat Users List
 Subject: RE: Tomcat Policy


 Hello,

 I'm using Tomcat 3.1...

 Sorry, forgot to mention...

 Is it enough to edit the tomcat.policy file and add the
 corresponding line?
 I have a network drive letter that is e:. If I add the following should
 not be enough?

 grant codeBase file:e:/- {
   permission java.security.AllPermission;
 };


 I'm I doing something wrong? Do I need to set anything either in
 the tomcat
 SCRIPTS or in the server.XML files? Should a restart to Tomcat be enough?


 Regards
 Rui





  -Original Message-
  From: Bryan Ha [mailto:[EMAIL PROTECTED]]
  Sent: terça-feira, 8 de Janeiro de 2002 15:55
  To: Tomcat Users List
  Subject: Re: Tomcat Policy
 
 
  Hi Rui,
 
  Have you tried to use the policytool to edit the
  tomcat policy file in catalina/conf ?
 
  grant codeBase file:${catalina.home}/webapps/your
  application/WEB-INF/classes/- {
 
  permission java.permission.FilePermission your target
  to read, read;
  // };
 
  Regards,
 
  Bryan
 
  __
  Do You Yahoo!?
  Everything you'll ever need on one web page
  from News and Sport to Email and Music Charts
  http://uk.my.yahoo.com
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: webapp necessary?

2002-01-08 Thread RSEQUEIRA







Darrell Esau [EMAIL PROTECTED] on 01/07/2002 07:05:39 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  webapp necessary?

Hello all,

I'm trying to migrate a (rather large) legacy application to Tomcat 3.3 +
Apache.

Previously (with various web servers), I only needed to provide the
classpath
and servlet directory repository.

With Tomcat it seems that I MUST use a webapp structure.  Is this true?
Yes. The URL http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html is
a good starting point.

Is there any way to tell Tomcat where my servlets are without providing a
web.xml file in a WEB-INF directory off the webapps directory?
You could do without a web.xml for a simple web application. But if you
wish to provide init parameters, register servlets, wish to map servlets to
URI requests, etc. then it would be a good idea to have a web.xml file for
each web application you create.
The above URL should lead you in the right direction.


Thanks,
Darrell

I hope this helps.
Thanks.
RS

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Free Firewall Solution

2002-01-08 Thread Mihai Gheorghiu

Until IPCop is ready, why not check out the original:
www.smoothwall.org
It works like a charm.

-Original Message-
From: Charles Williams [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, January 08, 2002 11:06 AM
Subject: OT: Free Firewall Solution


For those interested in a great firewall solution check out:,

http://sourceforge.net/projects/ipcop

chuck



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat Policy????

2002-01-08 Thread pixel

Rui,

Under Windows, network drives are mounted independantly of the Operating 
System. Each user has their own set of mapped drives when they log in, 
which are unseen by services. Since you are running Tomcat as a service, 
it runs under a user know as System, which does not have access to 
your network shares.

I've used two workarounds with other services, but i'm unsure if they 
will work with Tomcat.

1] Use one of the many Run as service applications out there or the 
scheduling system in Windows 2000 to start Tomcat using a user that has 
the requried drives mapped.
  
2] Give, the System permission to access your network shares and 
specify your drive using the \\server\share path. This way of specifying 
a path might not work with Java and Tomcat.

Hopefully someone else knows a better way of doing this.

~Scott

Rui Oliveira wrote:

Ok.

I figured out why does Tomcat prevents me from browsing through NetWork
Drives. It is because I' running it as a service...

Can someone tell me why? If I run it as a process it works fine.


Regards
Rui


-Original Message-
From: Rui Oliveira [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 8 de Janeiro de 2002 16:06
To: Tomcat Users List
Subject: RE: Tomcat Policy


Hello,

I'm using Tomcat 3.1...

Sorry, forgot to mention...

Is it enough to edit the tomcat.policy file and add the
corresponding line?
I have a network drive letter that is e:. If I add the following should
not be enough?

grant codeBase file:e:/- {
  permission java.security.AllPermission;
};


I'm I doing something wrong? Do I need to set anything either in
the tomcat
SCRIPTS or in the server.XML files? Should a restart to Tomcat be enough?


Regards
Rui





-Original Message-
From: Bryan Ha [mailto:[EMAIL PROTECTED]]
Sent: terça-feira, 8 de Janeiro de 2002 15:55
To: Tomcat Users List
Subject: Re: Tomcat Policy


Hi Rui,

Have you tried to use the policytool to edit the
tomcat policy file in catalina/conf ?

grant codeBase file:${catalina.home}/webapps/your
application/WEB-INF/classes/- {

permission java.permission.FilePermission your target
to read, read;
// };

Regards,

Bryan

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Contexts in Tomcat 3.2.1 - Necessary?

2002-01-08 Thread Larry Isaacs

I believe your approach is the correct one.  The context
name is part of how isapi_redirect.dll determines which
requests to forward to Tomcat, i.e. the mappings in 
uriworkermap.properties always start with a /.
I don't think mapping just *.jsp is supported.

Cheers,
Larry

 -Original Message-
 From: Terrence Beard [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 08, 2002 11:23 AM
 To: Tomcat-User (E-mail)
 Subject: Contexts in Tomcat 3.2.1 - Necessary?
 
 
 Hello all!
 
 Here's what we've got: WinNT 4SP6 running IIS 4. We support 
 several seperate
 web sites via IIS (couple internal, several external). The 
 source for each
 is kept on a seperate directory path, different from the 
 Tomcat install
 path. The JSP pages are being serviced by Tomcat 3.2.1 via the
 isapi_redirect.dll, which is set on the filter list for the 
 machine (as
 opposed to each web site).
 
 In order to get things to work, we needed to define a 
 seperate context for
 each site in the server.xml file, and reference them in the
 uriworkmap.properties file. So, there a context named foo 
 pointing as the
 JSP source directory for the www.foo.com. On the URL, these files are
 accessed (and processed) via www.foo.com/foo/sample.jsp. 
 
 The question is this: is this the proper way to do this, or is there a
 better/preferred way of doing this? Is there a way to say 
 process JSP files
 no matter where you find them without being determential?!
 
 All suggestions are welcome and appreciated!
 
 Thanks!
 
 Terry Beard
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat Policy????

2002-01-08 Thread DONNIE HALE

In general, services do not have to run as System. You can configure them to run as 
any user. I don't know if that's true for the Tomcat service or not, but it is true in 
general.

So if the Tomcat service can run as a user other than System, I'd create a special 
user just for running that service. Give that user limited rights but explicitly give 
it permission to the UNC paths of the network shares. Then configure that service to 
run as that user (Control Panel / Services under NT; Control Panel / Admin Tools / 
Component Services under Win2K).

Donnie


 [EMAIL PROTECTED] 01/08/02 12:34PM 
Rui,

Under Windows, network drives are mounted independantly of the Operating 
System. Each user has their own set of mapped drives when they log in, 
which are unseen by services. Since you are running Tomcat as a service, 
it runs under a user know as System, which does not have access to 
your network shares.

I've used two workarounds with other services, but i'm unsure if they 
will work with Tomcat.

1] Use one of the many Run as service applications out there or the 
scheduling system in Windows 2000 to start Tomcat using a user that has 
the requried drives mapped.
  
2] Give, the System permission to access your network shares and 
specify your drive using the \\server\share path. This way of specifying 
a path might not work with Java and Tomcat.

Hopefully someone else knows a better way of doing this.

~Scott

Rui Oliveira wrote:

Ok.

I figured out why does Tomcat prevents me from browsing through NetWork
Drives. It is because I' running it as a service...

Can someone tell me why? If I run it as a process it works fine.


Regards
Rui


-Original Message-
From: Rui Oliveira [mailto:[EMAIL PROTECTED]] 
Sent: terça-feira, 8 de Janeiro de 2002 16:06
To: Tomcat Users List
Subject: RE: Tomcat Policy


Hello,

I'm using Tomcat 3.1...

Sorry, forgot to mention...

Is it enough to edit the tomcat.policy file and add the
corresponding line?
I have a network drive letter that is e:. If I add the following should
not be enough?

grant codeBase file:e:/- {
  permission java.security.AllPermission;
};


I'm I doing something wrong? Do I need to set anything either in
the tomcat
SCRIPTS or in the server.XML files? Should a restart to Tomcat be enough?


Regards
Rui





-Original Message-
From: Bryan Ha [mailto:[EMAIL PROTECTED]] 
Sent: terça-feira, 8 de Janeiro de 2002 15:55
To: Tomcat Users List
Subject: Re: Tomcat Policy


Hi Rui,

Have you tried to use the policytool to edit the
tomcat policy file in catalina/conf ?

grant codeBase file:${catalina.home}/webapps/your
application/WEB-INF/classes/- {

permission java.permission.FilePermission your target
to read, read;
// };

Regards,

Bryan

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Need classpath help

2002-01-08 Thread De Luna, Carlos (CORP, DDEMESIS)

I am installing tomcat 3.3 to create a Oracle JDBC app, but i can't find the way to 
change the class path and the Oracle classes can't be located in the app...
thanx for the help
PS. i already tried in the workers property file... didn't help, and in the server.xml 
file... the variables are OK in the /etc/profile and the tomcat user does seems to be 
having
them OK (on a bash)... and the trouble is on Linux.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: war file with root context

2002-01-08 Thread Larry Isaacs

ROOT.war would deploy as the ROOT context.  Note that
this ROOT context is simply the default context that
is used when no other context matches.  Serving ROOT
as the default context, instead of /ROOT is a
feature of the handling which autoserves the
webapps directory.  You can use any webapp as the
default context by specifying path= in its context
declaration.

Cheers,
Larry

 -Original Message-
 From: Ken Helmes [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 08, 2002 12:43 PM
 To: [EMAIL PROTECTED]
 Subject: war file with root context
 
 
 Hello,
 
 Can someone say if there any way to deploy a .war file into the ROOT
 context?
 
 I want, for example, http://myhost/myServlet
 
 and not http://myhost/application/myServlet
 
 I know that if I put the classes into ROOT/WEB-INF/classes it 
 will work, but
 it would be nice to make it work with a war file.
 
 
 Ken Helmes
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Need classpath help

2002-01-08 Thread Larry Isaacs

See if you can find what you need at:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes

Cheers,
Larry

 -Original Message-
 From: De Luna, Carlos (CORP, DDEMESIS)
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 08, 2002 1:07 PM
 To: [EMAIL PROTECTED]
 Subject: Need classpath help
 
 
 I am installing tomcat 3.3 to create a Oracle JDBC app, but i 
 can't find the way to change the class path and the Oracle 
 classes can't be located in the app...
 thanx for the help
 PS. i already tried in the workers property file... didn't 
 help, and in the server.xml file... the variables are OK in 
 the /etc/profile and the tomcat user does seems to be having
 them OK (on a bash)... and the trouble is on Linux.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




howto get the context path from a ServletContext?

2002-01-08 Thread Richard Sand

Is there a way to figure out the context path from a given ServletContext?  I'm inside 
one context and am trying to dispatch to a resource in another context based upon the 
absolute URI (in other words, a uri relative to the server root).

I can get the proper servlet context as follows:

nextContext = thisServletContext.getContext(dispatch_to_this_uri);

but then I cannot figure out how to do a dispatch to the uri because I don't know how 
to strip off the context path from the front of the URI!

I have a feeling I'm asking a really stupid question, but I'm going blind from looking 
at the servlet 2.3 javadoc for so long!

Can anyone help? 

Thanks!

Best regards,

Richard



RE: webapp necessary?

2002-01-08 Thread Larry Isaacs

Since Tomcat 3.3 implements the Servlet 2.2 spec, the
answer is yes.  All content served must come from
web applications.  This continues to be true for
the Servlet 2.3 spec supported by Tomcat 4.x versions.

Tomcat 3.3 still supports the legacy /servlet method
of invoking servlets, so it is possible to execute
servlets with adding anything to the web.xml.  The
servlet classes don't have to under the WEB-INF
directory, but it is usually the best place for them
to be.

The servlet specs may be found at:
http://java.sun.com/products/servlet/download.html

Cheers,
Larry

 -Original Message-
 From: Darrell Esau [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 07, 2002 8:06 PM
 To: [EMAIL PROTECTED]
 Subject: webapp necessary?
 
 
 Hello all,
 
 I'm trying to migrate a (rather large) legacy application to 
 Tomcat 3.3 + 
 Apache.
 
 Previously (with various web servers), I only needed to 
 provide the classpath 
 and servlet directory repository.
 
 With Tomcat it seems that I MUST use a webapp structure.  Is 
 this true?
 
 Is there any way to tell Tomcat where my servlets are without 
 providing a 
 web.xml file in a WEB-INF directory off the webapps directory?
 
 Thanks,
 Darrell
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Contexts in Tomcat 3.2.1 - Necessary?

2002-01-08 Thread Darrell Esau

I think that it's possible.

Have a look at the example configuration at the bottom of the mod_jk HOWTO.  
I believe it's showing exactly what you want.

it's at:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html

The particular section you're interested in is near the bottom, the heading 
reads: Example Configuration

-d
-- 
Darrell Esau
Software Engineer, Sun Microsystems
NetAdmin Development


  -Original Message-
  From: Terrence Beard [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 08, 2002 11:23 AM
  To: Tomcat-User (E-mail)
  Subject: Contexts in Tomcat 3.2.1 - Necessary?
 
 
  Hello all!
 
  Here's what we've got: WinNT 4SP6 running IIS 4. We support
  several seperate
  web sites via IIS (couple internal, several external). The
  source for each
  is kept on a seperate directory path, different from the
  Tomcat install
  path. The JSP pages are being serviced by Tomcat 3.2.1 via the
  isapi_redirect.dll, which is set on the filter list for the
  machine (as
  opposed to each web site).
 
  In order to get things to work, we needed to define a
  seperate context for
  each site in the server.xml file, and reference them in the
  uriworkmap.properties file. So, there a context named foo
  pointing as the
  JSP source directory for the www.foo.com. On the URL, these files are
  accessed (and processed) via www.foo.com/foo/sample.jsp.
 
  The question is this: is this the proper way to do this, or is there a
  better/preferred way of doing this? Is there a way to say
  process JSP files
  no matter where you find them without being determential?!
 
  All suggestions are welcome and appreciated!
 
  Thanks!
 
  Terry Beard


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: howto get the context path from a ServletContext?

2002-01-08 Thread Mark

Is getContextPath() possibly what you're looking for?  It's found in the
HttpServletRequest interface.


At 07:23 PM 1/8/2002 +0100, you wrote:
Is there a way to figure out the context path from a given ServletContext?
 I'm inside one context and am trying to dispatch to a resource in another
context based upon the absolute URI (in other words, a uri relative to the
server root).

I can get the proper servlet context as follows:

nextContext = thisServletContext.getContext(dispatch_to_this_uri);

but then I cannot figure out how to do a dispatch to the uri because I
don't know how to strip off the context path from the front of the URI!

I have a feeling I'm asking a really stupid question, but I'm going blind
from looking at the servlet 2.3 javadoc for so long!

Can anyone help? 

Thanks!

Best regards,

Richard



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: cookies problems

2002-01-08 Thread Jeff Macomber

Kyller,

I am using 4.0.1 on Linux (RH7.1) with cookies.  I add a custom cookie for
tracking which server behind the CSS is being accessed and this works fine.
I initially had difficulty seeing the cookie on the client side so I ended
up dumping the raw request to the console and viewing it.  One thing that I
had to do was explicitly set the path for the cookie (I used /).  After I
did that the cookie appeared correctly. 

Best of Luck,
Jeff

-Original Message-
From: Kyller Costa Gorgonio [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: cookies problems



Hi all,

I'm using Tomcat 4.0.1 and I'm getting problems using cookies. Using the 
mozilla browser on a Linux box, everything works fine, but when I try to 
access my servlet from a Windows 2k machine (with Internet Explorer) I 
cannot recover the cookie.

In fact, I just recover the JSESSIONID cookie, but I was unable to 
recover the cookie that I added (with a different name). I verified the 
system configuration, and it is allowing cookies.

thanks and best regardsKyller


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: howto get the context path from a ServletContext?

2002-01-08 Thread Richard Sand

No because I don't have a Request.  In other words, the request object I
have is from the current servlet-context, but when I do
nextContext=currentContext.getContext(nexturi), all I have about this other
context is the context object itself and the server-root-relative URI for
some resource somewhere within the new context.

Thanks!

-Richard

- Original Message -
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 7:33 PM
Subject: Re: howto get the context path from a ServletContext?


 Is getContextPath() possibly what you're looking for?  It's found in the
 HttpServletRequest interface.


 At 07:23 PM 1/8/2002 +0100, you wrote:
 Is there a way to figure out the context path from a given
ServletContext?
  I'm inside one context and am trying to dispatch to a resource in another
 context based upon the absolute URI (in other words, a uri relative to the
 server root).
 
 I can get the proper servlet context as follows:
 
 nextContext = thisServletContext.getContext(dispatch_to_this_uri);
 
 but then I cannot figure out how to do a dispatch to the uri because I
 don't know how to strip off the context path from the front of the URI!
 
 I have a feeling I'm asking a really stupid question, but I'm going blind
 from looking at the servlet 2.3 javadoc for so long!
 
 Can anyone help?
 
 Thanks!
 
 Best regards,
 
 Richard
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: webapp necessary?

2002-01-08 Thread Simon

Some of my collegues suggests to define some 'wild card' ( or using reg.exp
?) for servlet mapping, with this, you can have flexility?

Best regrads,
Simon



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4 integration with apache

2002-01-08 Thread Marcelo Demestri

The guide is excellent!
But I configure the WARP connector mod_webapp following all the steps
correctly and still there are problems with the static contents.
I work on W2K pro, JDK 1.3.1, Apache 1.3.22 and Tomcat 4.0.1
I succeed the integration Apache-Tomcat with the mod_jk connector
(utilizing AJP13).
For me, definitively the mod_webapp connector have a weird behavior,
at least in a Windows platform .
Special thaks for Brian in the configuration of mod_jk...


Marcelo

- Original Message -
From: Justin Rowles [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 8:05 AM
Subject: FW: Tomcat 4 integration with apache


 Kindly sent by Mr Peter Burgess, for those needing a guide to the above.

 -Original Message-

 Hi,

 I noticed your posting on the tomcat-user list via the mail archives (I'm
 not directly subscribed myself) - this should answer your problem:

 http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

 Please post to the list so this information can be shared

 Thanks,
 Peter



 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4 integration with apache

2002-01-08 Thread Guido Medina

The problem with this is that you have to be very carefull with the
following issues:

1) The virtual host on the apache web server has to be registered on the DNS
2) The same as one in Tomcat
3) The name on the virtual host in apache has to be the same as in Tomcat,
if not, it will confuse and lost the connection.

It is very important to have that in mind, mainly for windows that normally
is running on LANs without the proper DNS, if it is the case edit the file
C:\WINDOWS\HOST (Win9x) C:\WINNT\System32\Drivers\etc\HOST

That's it...is a very important detail but it can makes you figth for five
days and nothing happens...

:-)

Guido.

-Original Message-
From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 8:00 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 integration with apache


The guide is excellent!
But I configure the WARP connector mod_webapp following all the steps
correctly and still there are problems with the static contents.
I work on W2K pro, JDK 1.3.1, Apache 1.3.22 and Tomcat 4.0.1
I succeed the integration Apache-Tomcat with the mod_jk connector
(utilizing AJP13).
For me, definitively the mod_webapp connector have a weird behavior,
at least in a Windows platform .
Special thaks for Brian in the configuration of mod_jk...


Marcelo

- Original Message -
From: Justin Rowles [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 8:05 AM
Subject: FW: Tomcat 4 integration with apache


 Kindly sent by Mr Peter Burgess, for those needing a guide to the above.

 -Original Message-

 Hi,

 I noticed your posting on the tomcat-user list via the mail archives (I'm
 not directly subscribed myself) - this should answer your problem:

 http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

 Please post to the list so this information can be shared

 Thanks,
 Peter



 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



web.xml does not work...

2002-01-08 Thread Simon

Untitled DocumentDear

My web.xml does not work, somehow, i have check it and check it again but
find no clue:

the log suggest there are error in web.xml...but

2002-01-09 03:17:11 Exception initializing TldLocationsCache: XML parsing
error on file /WEB-INF/web.xml: (line
 47, col 16): The content of element type servlet must match
(icon?,servlet-name,display-name?,description?,
(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-
ref*).
==

I am runing tomcat 4.0.1, does it has something to do my XMP pareser? or
what?
Thanks.

Best regrads,
Simon



!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app


!-- General description of your web application --

display-nameMy Web Application/display-name
description/description


!-- Context initialization parameters that define shared
 String constants used within your application, which
 String value =
   getServletContext().getInitParameter(name);
 where name matches the param-name element of
 one of these initialization parameters.
--

context-param
  param-namewebmaster/param-name
  param-value[EMAIL PROTECTED]/param-value
  description
The EMAIL address of the administrator to whom questions
and comments about this application should be addressed.
  /description
/context-param


servlet
  servlet-nameUserManager/servlet-name
  servlet-classqcer.UserManager/servlet-class
  description
  User Manager servlet
  /description
  !--
  init-param
param-namesiteName/param-name
param-valuewww.qcer.com/param-value
  /init-param
  --
  !--
  load-on-startup5/load-on-startup
  --
/servlet


!-- Define mappings that are used by the servlet container to
 translate a particular request URI (context-relative) to a
 particular servlet.  The examples below correspond to the
 servlet descriptions above.  Thus, a request URI like:

   http://localhost:8080/{contextpath}/graph

 will be mapped to the graph servlet, while a request like:

   http://localhost:8080/{contextpath}/saveCustomer.do

 will be mapped to the controller servlet.

 You may define any number of servlet mappings, including zero.
 It is also legal to define more than one mapping for the same
 servlet, if you wish to.
--

servlet-mapping
  servlet-nameUserManager/servlet-name
  url-patternaction/userManager/url-pattern
/servlet-mapping


!-- Define the default session timeout for your application,
 in minutes.  From a servlet or JSP page, you can modify
 the timeout for a particular session dynamically by using
 HttpSession.getMaxInactiveInterval(). --

session-config
  session-timeout30/session-timeout!-- 30 minutes --
/session-config


/web-app


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Java lib path?

2002-01-08 Thread Darrell Esau

Hello all,

Does anyone know where to place native staticly-linked objects to be used by 
the JVM?

I think this is just the Java library path.. but I'm not sure how to set it 
or what the default is.

Thanks,
d

-- 
Darrell Esau
Software Engineer, Sun Microsystems
NetAdmin Development

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Support of Tomcat 4.01 with Jms required

2002-01-08 Thread amol

Does Tomcat 4.01 support Jms api of j2ee . If not how do i integrate the
other api to it .

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: cookies problems

2002-01-08 Thread Kyller Costa Gorgonio


Hi Jeff,

I'm running on Red Hat 7.2. I think that it's not the reason of my 
problem :-)

I got the same problem before writting the previus message, and fixed it 
in the same way. But it still working only if my client is a mozilla 
browser running on a linux machine. If the client is an internet 
explorer browser running on a windows machine I cannot recover the cookie.

best regards

Kyller


Jeff Macomber wrote:

 Kyller,
 
 I am using 4.0.1 on Linux (RH7.1) with cookies.  I add a custom cookie for

 tracking which server behind the CSS is being accessed and this works fine.
 I initially had difficulty seeing the cookie on the client side so I ended
 up dumping the raw request to the console and viewing it.  One thing that I
 had to do was explicitly set the path for the cookie (I used /).  After I
 did that the cookie appeared correctly. 

 
 Best of Luck,
 Jeff
 
 -Original Message-
 From: Kyller Costa Gorgonio [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 08, 2002 1:05 PM
 To: [EMAIL PROTECTED]
 Subject: cookies problems
 
 
 
 Hi all,
 
 I'm using Tomcat 4.0.1 and I'm getting problems using cookies. Using the 
 mozilla browser on a Linux box, everything works fine, but when I try to 
 access my servlet from a Windows 2k machine (with Internet Explorer) I 
 cannot recover the cookie.
 
 In fact, I just recover the JSESSIONID cookie, but I was unable to 
 recover the cookie that I added (with a different name). I verified the 
 system configuration, and it is allowing cookies.
 
 thanks and best regardsKyller



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Servlet and Web.xml confusion

2002-01-08 Thread David Bazell

Hi,

I have tomcat 4.0.1 running on a Redhat 7.1 system.  I can get the examples
servlets working, the ones that come with tomcat.

I installed some simple servlets in webapps/ROOT and they work.  I put one
in
$CATALINA_HOME/webapps/ROOT/WEB-INF/classes/hello/HelloServlet2.class
 and invoked it with
http://localhost:8080/servlet/hello.HelloServlet2

and it worked fine.

I then installed a servlet in
$CATALINA_HOME/webapps/hello/WEB-INF/classes/hello/HelloWorld2.class

I put the following web.xml file in WEB-INF/web.xml
!DOCTYPE
web-app
  servlet
servlet-nameHelloWorld2/servlet-name
servlet-classHelloWorld2/servlet-class
  /servlet

  servlet-mapping
servlet-nameHelloWorld2/servlet-name
url-pattern/HelloWorld2/url-pattern
  /servlet-mapping
web-app

and I tried to invoke this servlet with
http://localhost:8080/hello/servlet/hello.HelloWorld2

but it didn't work.  I get 404 file not found or whatever.

How do I access this servlet?  What am I doing wrong?

Thanks for the help

Dave


David Bazell
Scientific Perspectives
(410) 531-7963 (phone and fax)
[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Porting Tomcat 3.2.1 contexts to Tomcat 4.0 for IIS

2002-01-08 Thread Terrence Beard

We are looking to upgrade to Tomcat 4.0 from Tomcat 3.2.1. In order to
support several web sites on our IIS 4 server, we had to define multiple
contexts in the server.xml file, one for each web site JSP source. The
server.xml files between 4.0 and 3.2.1 are very different (or look so to
me).

Does anyone know how to port the context definitions from the one to the
other? Do we have to define a new server/engine/contextmanager/etc?

FYI: running on WinNT 4sp6.

Any suggestions appreciated.

Thanks!




Re: Servlet and Web.xml confusion

2002-01-08 Thread John Chan

Hi...


 Hi,

 I have tomcat 4.0.1 running on a Redhat 7.1 system.  I can get the
examples
 servlets working, the ones that come with tomcat.

 I installed some simple servlets in webapps/ROOT and they work.  I put one
 in
 $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/hello/HelloServlet2.class
  and invoked it with
 http://localhost:8080/servlet/hello.HelloServlet2

 and it worked fine.

 I then installed a servlet in
 $CATALINA_HOME/webapps/hello/WEB-INF/classes/hello/HelloWorld2.class

 I put the following web.xml file in WEB-INF/web.xml
 !DOCTYPE
 web-app
   servlet
 servlet-nameHelloWorld2/servlet-name
 servlet-classHelloWorld2/servlet-class
   /servlet

   servlet-mapping
 servlet-nameHelloWorld2/servlet-name
 url-pattern/HelloWorld2/url-pattern
   /servlet-mapping
 web-app

 and I tried to invoke this servlet with
 http://localhost:8080/hello/servlet/hello.HelloWorld2

 but it didn't work.  I get 404 file not found or whatever.

 How do I access this servlet?  What am I doing wrong?

 Thanks for the help

 Dave

I believe that you need to modify the server.xml to add the context. As it
currently stands, Tomcat has no way of knowing that the directory hello
actually exists.

The statement to add (at the minimum) would be something like:

  Context path= docBase=hello debug=0/.

Anyhow, hope that helps.

John



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: web.xml does not work...

2002-01-08 Thread Simon

 For Tomcat 4 make sure your tags are in the same order as specified in the
 DTD
 icon?,servlet-name,display-name?,description?,

(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-
 ref*)

 In your case you have servlet class before description

Thanks, PELOQUIN,JEFFREY. It works !

Simon.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Servlet and Web.xml confusion

2002-01-08 Thread John Chan

Hi...

 I believe that you need to modify the server.xml to add the context. As it
 currently stands, Tomcat has no way of knowing that the directory hello
 actually exists.

 The statement to add (at the minimum) would be something like:

   Context path= docBase=hello debug=0/.

 Anyhow, hope that helps.

 John

Oops, that would be Context path=/hello docBase=hello debug=0/.

John



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 3.3 - multiple JVM's?

2002-01-08 Thread Darrell Esau

Hello all,

Does Tomcat 3.3 spawn multiple JVM's or a single one?

How does one adjust the max heap size of the JVM(s)?  (where do you set the 
-Xmx switch?)

Thanks,
d

-- 
Darrell Esau
Software Engineer, Sun Microsystems
NetAdmin Development

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Installation problems.

2002-01-08 Thread Ansalvish, Dave R

Hi,

 After install TOMCAT, when I tried to access localhost:8080 I recceive a
white screen with the words Not Found.

  Configuration:

   Solaris 8.0
   Installed j2sdk using the shar file from java.sun.com.
   Installed recommend patches.
   Downloaded jakarta-tomcat-3.3.tar.gz.
   Unzip the jakatra-tomcat-3.3 and untar the jakatra-3.3.tar.
   Create the environmental variables of JAVA_HOME and TOMCAT_HOME.
   Executed $TOMCAT_HOME/bin/startup.
   Checked $TOMCAT_HOME/log/tomcat.pid and did a ps -ef | grep for the pid.
TOMCAT
   server appears to be there. All other files in log directory are zero
length.
   

  I'm not sure where else to look and I'm out of idea what is causing this
problem.  Can somebody help me.

Dave

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 3.3 - multiple JVM's?

2002-01-08 Thread Jason Koeninger

On Tue, 8 Jan 2002 12:15:07 -0800, Darrell Esau wrote:

Does Tomcat 3.3 spawn multiple JVM's or a single one?

It spawns a single JVM.


How does one adjust the max heap size of the JVM(s)?  (where do you set the 
-Xmx switch?)

I believe the batch/shell scripts will look at a TOMCAT_OPTS environment 
variable.  You should check the script code to verify that.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Servlet and Web.xml confusion

2002-01-08 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

shouldn't this

servlet-classHelloWorld2/servlet-name

be

servlet-classhello.HelloWorld2/servlet-name

to match your packaging?


Also make sure to restart Tomcat if you do not have the context element in
server.xml set to look for changed files

Jeff

-Original Message-
From: John Chan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 1:19 PM
To: Tomcat Users List; David Bazell
Subject: Re: Servlet and Web.xml confusion


Hi...


 Hi,

 I have tomcat 4.0.1 running on a Redhat 7.1 system.  I can get the
examples
 servlets working, the ones that come with tomcat.

 I installed some simple servlets in webapps/ROOT and they work.  I put one
 in
 $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/hello/HelloServlet2.class
  and invoked it with
 http://localhost:8080/servlet/hello.HelloServlet2

 and it worked fine.

 I then installed a servlet in
 $CATALINA_HOME/webapps/hello/WEB-INF/classes/hello/HelloWorld2.class

 I put the following web.xml file in WEB-INF/web.xml
 !DOCTYPE
 web-app
   servlet
 servlet-nameHelloWorld2/servlet-name
 servlet-classHelloWorld2/servlet-class
   /servlet

   servlet-mapping
 servlet-nameHelloWorld2/servlet-name
 url-pattern/HelloWorld2/url-pattern
   /servlet-mapping
 web-app

 and I tried to invoke this servlet with
 http://localhost:8080/hello/servlet/hello.HelloWorld2

 but it didn't work.  I get 404 file not found or whatever.

 How do I access this servlet?  What am I doing wrong?

 Thanks for the help

 Dave

I believe that you need to modify the server.xml to add the context. As it
currently stands, Tomcat has no way of knowing that the directory hello
actually exists.

The statement to add (at the minimum) would be something like:

  Context path= docBase=hello debug=0/.

Anyhow, hope that helps.

John



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




proxy redirect

2002-01-08 Thread Mark Larson

Hi,
I am using tomcat 4.0 stand-alone without apache.
Does anone know how i can redirect to use an existing proxy on a different 
machine? I'm on x.x.x.x:80 , want to use proxy @ y.y.y.y:8081
thanks,
mark

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3 - multiple JVM's?

2002-01-08 Thread Larry Isaacs

See:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#tomcat_actions

for some info on TOMCAT_OPTS.

Cheers,
Larry

-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 3:31 PM
To: Tomcat Users List
Subject: Re: Tomcat 3.3 - multiple JVM's?


On Tue, 8 Jan 2002 12:15:07 -0800, Darrell Esau wrote:

Does Tomcat 3.3 spawn multiple JVM's or a single one?

It spawns a single JVM.


How does one adjust the max heap size of the JVM(s)?  (where do you set the 
-Xmx switch?)

I believe the batch/shell scripts will look at a TOMCAT_OPTS environment 
variable.  You should check the script code to verify that.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Installation problems.

2002-01-08 Thread Darrell Esau

Did you download a binary installation?

There should be some output when you start the server, such as:
./startup.sh
Using classpath: ./../lib/tomcat.jar
Using JAVA_HOME: /usr/jdk1.3.1
Using TOMCAT_HOME: ..
2002-01-08 12:08:41 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml
2002-01-08 12:08:41 - PathSetter: home=/opt/tomcat
2002-01-08 12:08:41 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-01-08 12:08:41 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml
2002-01-08 12:08:41 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-admin.xml
2002-01-08 12:08:41 - ContextXmlReader: Context
2002-01-08 12:08:41 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-01-08 12:08:41 - AutoWebApp: Auto-Adding DEFAULT:/
2002-01-08 12:08:41 - AutoWebApp: Loaded from config: DEFAULT:/admin
2002-01-08 12:08:41 - ContextManager: Tomcat configured and in stable state
2002-01-08 12:08:41 - ContextManager: Adding  DEFAULT:/examples
2002-01-08 12:08:41 - ContextManager: Adding  DEFAULT:/admin
2002-01-08 12:08:41 - ContextManager: Adding  docwiz.ebay:/ROOT
2002-01-08 12:08:41 - ContextManager: Adding  DEFAULT:/ROOT
2002-01-08 12:08:42 - Ctx() : Validating web.xml

-d


On Tuesday 08 January 2002 12:30 pm, you wrote:
 Hi,

  After install TOMCAT, when I tried to access localhost:8080 I recceive a
 white screen with the words Not Found.

   Configuration:

Solaris 8.0
Installed j2sdk using the shar file from java.sun.com.
Installed recommend patches.
Downloaded jakarta-tomcat-3.3.tar.gz.
Unzip the jakatra-tomcat-3.3 and untar the jakatra-3.3.tar.
Create the environmental variables of JAVA_HOME and TOMCAT_HOME.
Executed $TOMCAT_HOME/bin/startup.
Checked $TOMCAT_HOME/log/tomcat.pid and did a ps -ef | grep for the pid.
 TOMCAT
server appears to be there. All other files in log directory are zero
 length.


   I'm not sure where else to look and I'm out of idea what is causing this
 problem.  Can somebody help me.

 Dave

-- 
Darrell Esau
Software Engineer, Sun Microsystems
NetAdmin Development

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




server interrupt

2002-01-08 Thread Sabrina Liu

Hi, We are using Tomcat3.2.3 and JDK1.2 working on NT. We have no problem
when we use Tomcat as servlet container in front end. But almost every two
days, the tomcat services will be interrupt when we use tomcat in background
as an NT service, we have to reboot the system to restart the tomcat
service.

I checked your document Working with the Jakarta NT
Service(http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-service-howto.ht
ml. I'm not sure how to figure out on your SPECIAL NOTE:. Attached is our
server.xml. How I should modify or which other version you suggest me to
use? Thank you!

Sabrina



?xml version=1.0 encoding=ISO-8859-1?

Server
!-- Debug low-level events in XmlMapper startup 
xmlmapper:debug level=0 /
--

!-- 

Logging:

 Logging in Tomcat is quite flexible; we can either have a log
 file per module (example: ContextManager) or we can have one
 for Servlets and one for Jasper, or we can just have one
 tomcat.log for both Servlet and Jasper.  Right now there are
 three standard log streams, tc_log, servlet_log, and
 JASPER_LOG.  

	 Path: 

	 The file to which to output this log, relative to
	 TOMCAT_HOME.  If you omit a path value, then stderr or
	 stdout will be used.

	 Verbosity: 

	 Threshold for which types of messages are displayed in the
	 log.  Levels are inclusive; that is, WARNING level displays
	 any log message marked as warning, error, or fatal.  Default
	 level is WARNING.

	 verbosityLevel values can be: 
	FATAL
	ERROR
	WARNING 
INFORMATION
DEBUG

	 Timestamps:

	 By default, logs print a timestamp in the form -MM-dd
	 hh:mm:ss in front of each message.  To disable timestamps
	 completely, set 'timestamp=no'. To use the raw
	 msec-since-epoch, which is more efficient, set
	 'timestampFormat=msec'.  If you want a custom format, you
	 can use 'timestampFormat=hh:mm:ss' following the syntax of
	 java.text.SimpleDateFormat (see Javadoc API).  For a
	 production environment, we recommend turning timestamps off,
	 or setting the format to msec.

	 Custom Output:

	 Custom means normal looking.  Non-custom means
	 surrounded with funny xml tags.  In preparation for
	 possibly disposing of custom altogether, now the default is
	 'custom=yes' (i.e. no tags)

	 Per-component Debugging:

	 Some components accept a debug attribute.  This further
	 enhances log output.  If you set the debug level for a
	 component, it may output extra debugging information.
--

!-- if you don't want messages on screen, add the attribute
path=logs/tomcat.log 
	 to the Logger element below
--
Logger name=tc_log 
verbosityLevel = INFORMATION 
/

Logger name=servlet_log 
path=logs/servlet.log
/

Logger name=JASPER_LOG 
	path=logs/jasper.log
verbosityLevel = INFORMATION /

!-- You can add a home attribute to represent the base for 
 all relative paths. If none is set, the TOMCAT_HOME property
 will be used, and if not set . will be used.
 webapps/, work/ and logs/ will be relative to this ( unless 
 set explicitely to absolute paths ).

 You can also specify a randomClass attribute, which determines 
 a subclass of java.util.Random will be used for generating session IDs.
 By default this is java.security.SecureRandom. 
 Specifying java.util.Random will speed up Tomcat startup, 
 but it will cause sessions to be less secure.

 You can specify the showDebugInfo attribute to control whether
 debugging information is displayed in Tomcat's default responses.
 This debugging information includes:
 1. Stack traces for exceptions
 2. Request URI's that cause status codes = 400
 The default is true, so you must specify false to prevent
 the debug information from appearing.  Since the debugging
 information reveals internal details about what Tomcat is serving,
 set showDebugInfo=false if you wish increased security.
  --
ContextManager debug=0 workDir=work showDebugInfo=true 

  !--  Interceptors  --

!-- 
 ContextInterceptor className=org.apache.tomcat.context.LogEvents 
 --

ContextInterceptor className=org.apache.tomcat.context.AutoSetup /

ContextInterceptor 
className=org.apache.tomcat.context.WebXmlReader /

!-- Uncomment out if you have JDK1.2 and want to use policy 
ContextInterceptor 
className=org.apache.tomcat.context.PolicyInterceptor /
--

ContextInterceptor 
className=org.apache.tomcat.context.LoaderInterceptor /
ContextInterceptor 
className=org.apache.tomcat.context.DefaultCMSetter /
ContextInterceptor 

filter questions

2002-01-08 Thread Cox, Charlie

I have read in the spec and tried a filter myself, and I have a few
questions:

1. Where the spec(pg 45) says:
Only one instance per filter declaration in the deployment descriptor is
instantiated per Java virtual machine of the container.
I read this as it works similar to a servlet, one instance per virtual
host(not jvm) with many threads. Is this correct?

2. I have a filter on a downloadable file(50MB) and I have noticed that when
the user clicks 'cancel' on the browser, that it throws an IOException,
which I can trap in my filter ['try' around doChain()]. If I rethrow this
exception(after my processing), it is like I never touched it and it writes
an error in the log about 'socket write error'. If I do not rethrow this
exception is there any processing or cleanup, that will not get done
correctly? Or can I just return without rethrowing? I would really like to
cut down on the 'socket write errors' in the logs.

3. How can I check the status(200,404,etc) on the response object after the
doChain() has returned? I don't need to wrap the request/response, I am just
interested in knowing when a 404 occurs(only within this filter if
possible). I tried converting it to a HttpServletResponse object, but I
don't see how to *read* the status. 

4. How much more efficient is handling a request in filter than handling it
in a servlet if the handling code is the same. I noticed that when I
converted the ServletRequest to an HttpServletRequest that not all the
functions were available(getPathInfo() was the one that I noticed), so I
assume that there is some processing going on between the filter and the
servlet - but I could be wrong.

I'm really liking these filters since I share servlets between virtual
hosts, and now I see that filters can really help cleanup the customized
processing in my servlets for each virtual host.

Charlie

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Commercial Use of Apache

2002-01-08 Thread Charles Baker

You don't have to get permission for anything. Apache
and Tomcat are Free Software!

http://www.apache.org/LICENSE.txt

see also:

http://httpd.apache.org/ABOUT_APACHE.html

--- Hemant Singh [EMAIL PROTECTED] wrote:
 Hi All
 
 I am working on a project which is to be deployed on
 Apache-Tomcat and the client has asked to install
 the beta version of the same .I jus wanted to know
 informations like do i need to get some permissions
 from Apache if i use it for commercial purpose.I'll
 have to write him back the pricing information and
 other details too.
 
 Pls give me some details have anybody collected some
 informations
 Thanks in Advance
 Hemant
 


=
[EMAIL PROTECTED]
Hacking is a Good Thing!
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




SIMPLE PROBLEM..I think

2002-01-08 Thread Catalin




hi 2 all!


I'm new to jakarta and I have this pb:
I want to build a new web app with servlets and I don't know how!
I have an jakarta-tomcat 3.3m4

10x 2 all!


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Newbie mod_webapp/Oracle/jndi question

2002-01-08 Thread Barry Roberts

I'm new to the jndi part of J2EE and to tomcat.  I have my app almost
working in tomcat, but it needs to use Oracle.  I have a sample
servlet that connects to the Oracle database just fine, but only if I
connect directly to the tomcat server's http connector.

If I hit the servlet (below) throught apache, the DataSource returned
is null.  But no exception is thrown by javax.naming* calls.  I have
played endlessly with my server.xml to get the oracle resource, and my
latest one is included below.

My main question is, how do I configure this to use Oracle using
mod_webapp?  I would also like to know if it is possible to configure
tomcat so that I can use it through apache AND directly through the
http connector.

Thanks in advance,
Barry Roberts

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8180.
 You can also enable an SSL HTTP/1.1 Connector on port 8543 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL1 HTTP/1.1 Connector on port 8180 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8180 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=8543
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8543 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8543 minProcessors=5 maxProcessors=75
   enableLookups=false
   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
--
!-- Define an AJP 1.3 Connector on port 8109 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8109 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/
!-- Define a Proxied HTTP/1.1 Connector on port 8181 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8181 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/
--

!-- Define a non-SSL HTTP/1.0 Test Connector on port 8182 --
!--
Connector className=org.apache.catalina.connector.http10.HttpConnector
   port=8182 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8543
   acceptCount=10 debug=0/
--

!-- An Engine represents the entry point (within Catalina) that 

tomcat 3.3 and caching

2002-01-08 Thread Paul Sanwald

hello everyone,
   I have noticed that tomcat 3.3 doesn't clear out the work directory upon
restarting. this causes some jsp files that I have removed to still be
served, even though they have been deleted. I am assuming this is because
the work directory still contains the class files for said pages. is this
all correct? 

if so, I am going to modify the shutdown script to clean out the work
directory so deleted files will no longer be served.  

--paul

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: filter questions

2002-01-08 Thread Craig R. McClanahan



On Tue, 8 Jan 2002, Cox, Charlie wrote:

 Date: Tue, 8 Jan 2002 16:16:44 -0500
 From: Cox, Charlie [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: filter questions

 I have read in the spec and tried a filter myself, and I have a few
 questions:

 1. Where the spec(pg 45) says:
 Only one instance per filter declaration in the deployment descriptor is
 instantiated per Java virtual machine of the container.
 I read this as it works similar to a servlet, one instance per virtual
 host(not jvm) with many threads. Is this correct?


Yes, that's right.  The same thread safety issues apply.

 2. I have a filter on a downloadable file(50MB) and I have noticed that when
 the user clicks 'cancel' on the browser, that it throws an IOException,
 which I can trap in my filter ['try' around doChain()]. If I rethrow this
 exception(after my processing), it is like I never touched it and it writes
 an error in the log about 'socket write error'. If I do not rethrow this
 exception is there any processing or cleanup, that will not get done
 correctly? Or can I just return without rethrowing? I would really like to
 cut down on the 'socket write errors' in the logs.


Again, the same principles apply here as would apply in the servlet that
creates the output in the first place.  You can indeed swallow the
exception, if you would do so in the servlet itself.

 3. How can I check the status(200,404,etc) on the response object after the
 doChain() has returned? I don't need to wrap the request/response, I am just
 interested in knowing when a 404 occurs(only within this filter if
 possible). I tried converting it to a HttpServletResponse object, but I
 don't see how to *read* the status.


You *do* need a wrapper to make this information available - an example
might look like this:

  public class MyResponseWrapper extends HttpServletResponseWrapper {

protected int saveStatus = 0;

public MyResponseWrapper(HttpServletResponse response) {
  super(response);
}

// Override Servlet API methods to save the status value

public void sendError(int sc) {
  saveStatus = sc;
  super.sendError(sc);
}

public void sendError(int sc, String message) {
  saveStatus = sc;
  super.sendError(sc, message);
}

// ... all the other HttpServletResponse methods are delegated
// ... to the superclass automatically

// Extra public method to retrieve the status value

public int getStatus() {
  return (saveStatus);
}

}

Then, after chain.doFilter() returns, you can call the getStatus() method
to see what the response status was:

MyResponseWrapper wresponse =
  new MyResponseWrapper((HttpServletResponse) response);
chain.doFilter(request, wresponse);
int status = wresponse.getStatus();
if (status == HttpServletResponse.SC_NOT_FOUND) {
  ...
}

 4. How much more efficient is handling a request in filter than handling it
 in a servlet if the handling code is the same. I noticed that when I
 converted the ServletRequest to an HttpServletRequest that not all the
 functions were available(getPathInfo() was the one that I noticed), so I
 assume that there is some processing going on between the filter and the
 servlet - but I could be wrong.


By converted, you mean casting don't you?

public void doFilter(ServletRequest request,
 ServletResponse response,
 FilterChain chain)
throws IOException, ServletException {

  HttpServletRequest hrequest = (HttpServletRequest) request;
  String pathInfo = hrequest.getPathInfo();
  ...

}

This will either work or throw a ClassCastException if the request isn't
really an HTTP one -- but that won't happen to you in a standard Tomcat
installation because they are all HTTP requests.

Filtering actually does impose a small performance penalty (minimally, an
extra method call for each request, plus whatever overhead it takes to set
up the filter chain), but IMHO it's very much worth it for the cleaner
code design that is enabled.

 I'm really liking these filters since I share servlets between virtual
 hosts, and now I see that filters can really help cleanup the customized
 processing in my servlets for each virtual host.


That's a pretty good use case.  The other thing I really like about
filters is that you can divide your processing into lots of little
filters, and then mix and match the ones you need for a particular
purpose.

 Charlie

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Unable to load driver

2002-01-08 Thread Praveen Potineni

Hi all,
I have some problem loading the driver. I think i have put the driver files in a wrong 
place. When i run the code which looks like this:

 private String myDriver =com.sybase.jdbc2.jdbc.SybDriver;
...
...
...
...

try{
  Class.forName(myDriver).newInstance();
 }
  catch(Exception e){  
   throw new InstantiationException(Unable to load myDriver:+e.toString());
  }

I am getting this error below:

Exception java.lang.InstantiationException: Unable to load 
myDriver:java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver 
I am using tomcat 3.3 here...

Can some one suggest me where i have to include the driver files to make it work... 
And the environment variable CLASSPATH 
=C:\jakarta-tomcat-3.3\lib\common\servlet.jar;C:\jakarta-tomcat-3.3\webapps\examples\WEB-INF\classes;C:\Program
 Files\Sybase\SQL Anywhere 7\java\jdbcdrv.zip;c:\Program 
Files\Sybase\jConnect\classes\jconn2.jar

Thanks
Praveen



Tomcat vs Apache and Errors

2002-01-08 Thread Brent Johnson

I just upgraded from Tomcat 3.2.x to 4.0.  I'm using it with Apache
1.3.19 and the webapp module to connect.  I've noticed something very
odd though...
 
It seems as though Tomcat is handling all the errors?  Any error I get
is output by Tomcat itself (a 404 error, a 500 error, etc).  In Tomcat
3.2.x when an error occurred that error message was output by Apache
(not the fancy blue Apache Tomcat screen).  It almost seems as though
Tomcat is handling the output of pages and errors itself??  I assume
this behavior does NOT mean Tomcat is serving images and html pages
right?  I want Apache to handle all files EXCEPT for JSP and XML (using
Cocoon 1.8.2) files.
 
(and I realize I can use the error-page tag in the web.xml file to have
it redirect to a file - that's ok in production but I don't want that to
be done in development)
 
Any insight on this would be very helpful... thanks!
 
- Brent

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




class loading tc 3.3 virtual hosts

2002-01-08 Thread Martin v . Boehlen

Greetings Users,

is it possible to use two completely separate virtual hosts
with tomcat ?
What I want to do is using two virtual hosts on the same box.
One for real web serving and one for development.

My problems so far are:
1. Class loading -
Can I configure tomcat in a way that classes don't
interfere between virtual hosts ?
2. Context scope -
Can I use JkMount with a single path for all
applications ?
3. Host aliases
Can I do an 'AutoWebApp' for an 'Alias' and
a full host name at the same time ?

Please note, that:
The application name is 'jRolodex', but I used the 'numguess.jsp'
example for testing.
'www' is the web host and
'javadex' is the development host.

A 'build.sh all' copies the application files to host 'javadex'
i.e. the 'docBase' directory of virtual host
'javadex.tiade-voboe.de'.

A 'build.sh dist' produces a 'jRolodex.war' and a 'jRoldex.jar'
in the 'docBase' directory of host 'www.tiade-voboe.de'.

Before I plunge into the details, please look at the partial
config files, stack and SW version at the end of this mail.

Now the gory details:

ad 1.  When i change some code in the application and afterwards do a
'build.sh all' for application 'jRolodex' without doing a
'build.sh dist', the first virtual server I hit works fine!
No matter wether it is 'www' or 'javadex'.
The second server always gets an 'Error 500' (see error stack at
end of mail).
It seems to me, that tomcat does not load the appropriate class
definitions.

ad 2.  I tried to use '/wapps' as the context path (with and without a
'prefix' in 'AutoWebApp') because I wanted something like
'JkMount /wapps' in 'httpd.conf'. It didn't work. So I have 
to mount every application explicitly.

ad 3.  I tried to use the 'Alias' definition in 'AutoWebApp'. I.e.:
AutoWebApp dir=/usr/local/httpd/webapps/javadex
prefix=/wapps 
host=javadex /
It worked fine but it didn't work for 'javadex.tiade-voboe.de' (and
vice versa).


!-- --- httpd.conf START -- --
# - The Waltons, Daltons, everyone
VirtualHost www.tiade-voboe.de:80
ServerAdmin [EMAIL PROTECTED]
ServerName  www.tiade-voboe.de
DocumentRoot /usr/local/httpd/htdocs/www
ServerAlias www   www.tiade-voboe.de
  
Directory /usr/local/httpd/htdocs/www 
Options Indexes -FollowSymLinks -Includes +MultiViews
Order deny,allow
Allow from all
/Directory

JkMount /*.jsp ajp13
JkMount /wapps/jRolodex ajp13
JkMount /wapps/jRolodex/* ajp13
/VirtualHost

# - Tomcat developer
VirtualHost javadex.tiade-voboe.de:80
ServerAdmin [EMAIL PROTECTED]
ServerName javadex.tiade-voboe.de
DocumentRoot /usr/local/httpd/htdocs/javadex
ServerAlias javadex   javadex.tiade-voboe.de

# - Here comes the directory accessible by all users of the local 
network
Directory /usr/local/httpd/htdocs/javadex 
Options Indexes +FollowSymLinks -Includes +MultiViews
Order allow,deny
Allow from 192.168.17.0/255.255.255.0
/Directory

JkMount /*.jsp ajp13
JkMount /wapps/jRolodex ajp13
JkMount /wapps/jRolodex/* ajp13
/VirtualHost
!-- --- httpd.conf END  --

!-- --- apps-vhosts.xml START - --
?xml version=1.0 encoding=ISO-8859-1?
Server


Host name=www.tiade-voboe.de
Alias name=www /
Context path=
docBase=/usr/local/httpd/webapps/www 
debug=0
reloadable=False  
  SimpleRealm filename=conf/users/example-users.xml /
  LogSetter name=www_tc.log 
path=/var/log/tomcat/www_tc.log
verbosityLevel=ERROR/
  LogSetter name=www_servlet_log
path=/var/log/tomcat/www_servlet.log 
servletLogger=true
verbosityLevel = ERROR/
AutoDeploy source=/usr/local/httpd/webapps/www
target=/usr/local/httpd/webapps/www /
AutoWebApp dir=/usr/local/httpd/webapps/www
prefix=/wapps 
host=www.tiade-voboe.de /
/Context
/Host


Host name=javadex.tiade-voboe.de
Alias name=javadex /
Context path= 
docBase=/usr/local/httpd/webapps/javadex
debug=99 
reloadable=True
  SimpleRealm filename=conf/users/example-users.xml /
  LogSetter name=javadex_tc.log
path=/var/log/tomcat/javadex_tc.log 
verbosityLevel = DEBUG/
  LogSetter name=javadex_servlet_log 
path=/var/log/tomcat/javadex_servlet.log

class loading tc 3.3 virtual hosts

2002-01-08 Thread Martin v . Boehlen

Greetings Users,

is it possible to use two completely separate virtual hosts
with tomcat ?
What I want to do is using two virtual hosts on the same box.
One for real web serving and one for development.

My problems so far are:
1. Class loading -
Can I configure tomcat in a way that classes don't
interfere between virtual hosts ?
2. Context scope -
Can I use JkMount with a single path for all
applications ?
3. Host aliases
Can I do an 'AutoWebApp' for an 'Alias' and
a full host name at the same time ?

Please note, that:
The application name is 'jRolodex', but I used the 'numguess.jsp'
example for testing.
'www' is the web host and
'javadex' is the development host.

A 'build.sh all' copies the application files to host 'javadex'
i.e. the 'docBase' directory of virtual host
'javadex.tiade-voboe.de'.

A 'build.sh dist' produces a 'jRolodex.war' and a 'jRoldex.jar'
in the 'docBase' directory of host 'www.tiade-voboe.de'.

Before I plunge into the details, please look at the partial
config files, stack and SW version at the end of this mail.

Now the gory details:

ad 1.  When i change some code in the application and afterwards do a
'build.sh all' for application 'jRolodex' without doing a
'build.sh dist', the first virtual server I hit works fine!
No matter wether it is 'www' or 'javadex'.
The second server always gets an 'Error 500' (see error stack at
end of mail).
It seems to me, that tomcat does not load the appropriate class
definitions.

ad 2.  I tried to use '/wapps' as the context path (with and without a
'prefix' in 'AutoWebApp') because I wanted something like
'JkMount /wapps' in 'httpd.conf'. It didn't work. So I have 
to mount every application explicitly.

ad 3.  I tried to use the 'Alias' definition in 'AutoWebApp'. I.e.:
AutoWebApp dir=/usr/local/httpd/webapps/javadex
prefix=/wapps 
host=javadex /
It worked fine but it didn't work for 'javadex.tiade-voboe.de' (and
vice versa).


!-- --- httpd.conf START -- --
# - The Waltons, Daltons, everyone
VirtualHost www.tiade-voboe.de:80
ServerAdmin [EMAIL PROTECTED]
ServerName  www.tiade-voboe.de
DocumentRoot /usr/local/httpd/htdocs/www
ServerAlias www   www.tiade-voboe.de
  
Directory /usr/local/httpd/htdocs/www 
Options Indexes -FollowSymLinks -Includes +MultiViews
Order deny,allow
Allow from all
/Directory

JkMount /*.jsp ajp13
JkMount /wapps/jRolodex ajp13
JkMount /wapps/jRolodex/* ajp13
/VirtualHost

# - Tomcat developer
VirtualHost javadex.tiade-voboe.de:80
ServerAdmin [EMAIL PROTECTED]
ServerName javadex.tiade-voboe.de
DocumentRoot /usr/local/httpd/htdocs/javadex
ServerAlias javadex   javadex.tiade-voboe.de

# - Here comes the directory accessible by all users of the local 
network
Directory /usr/local/httpd/htdocs/javadex 
Options Indexes +FollowSymLinks -Includes +MultiViews
Order allow,deny
Allow from 192.168.17.0/255.255.255.0
/Directory

JkMount /*.jsp ajp13
JkMount /wapps/jRolodex ajp13
JkMount /wapps/jRolodex/* ajp13
/VirtualHost
!-- --- httpd.conf END  --

!-- --- apps-vhosts.xml START - --
?xml version=1.0 encoding=ISO-8859-1?
Server


Host name=www.tiade-voboe.de
Alias name=www /
Context path=
docBase=/usr/local/httpd/webapps/www 
debug=0
reloadable=False  
  SimpleRealm filename=conf/users/example-users.xml /
  LogSetter name=www_tc.log 
path=/var/log/tomcat/www_tc.log
verbosityLevel=ERROR/
  LogSetter name=www_servlet_log
path=/var/log/tomcat/www_servlet.log 
servletLogger=true
verbosityLevel = ERROR/
AutoDeploy source=/usr/local/httpd/webapps/www
target=/usr/local/httpd/webapps/www /
AutoWebApp dir=/usr/local/httpd/webapps/www
prefix=/wapps 
host=www.tiade-voboe.de /
/Context
/Host


Host name=javadex.tiade-voboe.de
Alias name=javadex /
Context path= 
docBase=/usr/local/httpd/webapps/javadex
debug=99 
reloadable=True
  SimpleRealm filename=conf/users/example-users.xml /
  LogSetter name=javadex_tc.log
path=/var/log/tomcat/javadex_tc.log 
verbosityLevel = DEBUG/
  LogSetter name=javadex_servlet_log 
path=/var/log/tomcat/javadex_servlet.log

Re: SIMPLE PROBLEM..I think

2002-01-08 Thread Janek Bogucki

 --- Catalin [EMAIL PROTECTED] wrote:  
 
 
 hi 2 all!
 
 
 I'm new to jakarta and I have this pb:
 I want to build a new web app with servlets and I
 don't know how!
 I have an jakarta-tomcat 3.3m4
 
 10x 2 all!
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 

Try this

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

Although it's about TC 4 the basic principles servlet
development are the same.

There is also this book

http://www.servlets.com/jservlet2/index.html

hth,
Janek 

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Newbie mod_webapp/Oracle/jndi question

2002-01-08 Thread lmarcus

Suggestion. Dont use a heavy duty database with a free Web Server.  Get
Weblogic etc.  I hope you arent using tomcat for anything
except your desktop.

L Marcus

- Original Message -
From: Barry Roberts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 4:47 PM
Subject: Newbie mod_webapp/Oracle/jndi question


 I'm new to the jndi part of J2EE and to tomcat.  I have my app almost
 working in tomcat, but it needs to use Oracle.  I have a sample
 servlet that connects to the Oracle database just fine, but only if I
 connect directly to the tomcat server's http connector.

 If I hit the servlet (below) throught apache, the DataSource returned
 is null.  But no exception is thrown by javax.naming* calls.  I have
 played endlessly with my server.xml to get the oracle resource, and my
 latest one is included below.

 My main question is, how do I configure this to use Oracle using
 mod_webapp?  I would also like to know if it is possible to configure
 tomcat so that I can use it through apache AND directly through the
 http connector.

 Thanks in advance,
 Barry Roberts

 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --

 !-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.

  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --

 Server port=8005 shutdown=SHUTDOWN debug=0


   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone

 !-- A Connector represents an endpoint by which requests are
received
  and responses are returned.  Each Connector passes requests on to
the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on port
8180.
  You can also enable an SSL HTTP/1.1 Connector on port 8543 by
  following the instructions below and uncommenting the second
Connector
  entry.  SSL support requires the following steps (see the SSL
Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
with a password value of changeit for both the certificate
and
the keystore itself.

  By default, DNS lookups are enabled when a web application calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are
disabled,
  request.getRemoteHost() will return the String version of the
  IP address of the remote client.
 --

 !-- Define a non-SSL1 HTTP/1.1 Connector on port 8180 --
 Connector
className=org.apache.catalina.connector.http.HttpConnector
port=8180 minProcessors=5 maxProcessors=75
enableLookups=false redirectPort=8543
acceptCount=10 debug=0 connectionTimeout=6/
 !-- Note : To disable connection timeouts, set connectionTimeout
value
  to -1 --

 !-- Define an SSL HTTP/1.1 Connector on port 8543 --
 !--
 Connector
className=org.apache.catalina.connector.http.HttpConnector
port=8543 minProcessors=5 maxProcessors=75
enableLookups=false
acceptCount=10 debug=0 scheme=https secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
 /Connector
 --
 !-- Define an AJP 1.3 Connector on port 8109 --
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8109 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
 !-- Define a Proxied HTTP/1.1 Connector on port 8181 --
 !-- See proxy documentation for more information about using
this. --
 !--
 Connector
className=org.apache.catalina.connector.http.HttpConnector
port=8181 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 

trouble with apache 1.3.22 and tomcat 3.3 on redhat 7.0

2002-01-08 Thread Namrata Kasthuri

Hello,

I am trying to integrate apache 1.3.22 with tomcat
3.3.
Here's a summary of what I've done

1.  intalled apache binaries and it runs fine
standalone

2.  installed tomcat binaries alone and it runs fine
standalone

3.  downloaded the mod_jk.so module and placed it in
apache's libext directory

4.  modifed the tomcat server.xml file to include  
ApacheConfig / so that the mod_jk.conf file gets
auto-generated  (any specific place it should go?)

5.  modified apache's httpd.conf file to include the
above auto-generated file (last line of file)

6.  then I restarted both tomcat and apache and apache
doesn't start.  it says httpd could not start because
there is an error in the autoconfig file...that
something is mispelled or defined by a module that is
not included in the server configuration.

Can someone please tell me what I have missed or done
incorrectly, as I am new to all of these
technologies.also, once working, how can I make
sure that tomcat is only being used as the servlet
container?

Thanks
Namrata


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




how to deploy WebApps in apache's UserDir's ?

2002-01-08 Thread Jonathan C. Detert

Hello All,

I've got apache and tomcat working together successfully, arriving at
this state by doing this :

I downloaded the binary jakarta-tomcat-4.0.1.tar.gz and
webapp-module-1.0-tc40-linux-glibc2.2.tar.gz from jakarta.apache.org.
I've installed them, and followed the directions in the INSTALL.txt that
came with the later in order to instruct apache how/when to hand-off
requests to tomcat.

All good so far.

The sole purpose of the apache server in question is to serve user directories
(i.e. using the UserDir directive from the mod_userdir module).

I want to enable each user to create his own JSP's and servlets.

So, my question is, what's the best way to do this?

My understanding is this:

- tomcat knows that it can serve stuff found in $CATALINA_HOME/webapps

- i tell apache to hand stuff to tomcat via lines like

WebAppDeploy newstufftodeploy localconn /newstufftodeploy

  and there must be a dir
  $CATALINA_HOME/webapps/newstufftodeploy/WEB-INF/classes/
  for this to work.

But how do I tell apache  tomcat that I have a webapps directory that's
not in $CATALINA_HOME ?

E.g. I'd like to tell apache that a request like
http://my.apacheserver.name/~detertj/myexamples/servlet/HelloWorld
is to be handed off to tomcat, and then, of course, I'd like tomcat to
know where this is (cuz it's not gonna be in $CATALINA_HOME/webapps) ?

ATdHvAaNnKcSe,

Jon Detert
Unix System Administrator, Milwaukee School of Engineering
1025 N. Broadway, Milwaukee, Wisconsin 53202

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: howto get the context path from a ServletContext?

2002-01-08 Thread Richard Sand

I've concluded that there is no way to do this- how absurd!  I can get a
context to a uri in another application, but there is no way to dispatch to
it because the context won't tell me what its base path is!!

Isn't this a design oversight in the servlet 2.3 api?  In other words, why
shouldn't I be able to take in a uri, find its corresponding context, and
dispatch to it??

Basically this leaves no way to do server-side includes across applications
in servlet2.3, which from my understanding is the entire point of the
dispatch mechanism in the first place!  If I want a chain of servlets
processing my request, why shouldn't i be able to specify the servlet by its
server-root uri, instead of using two separate parameters (context base and
uri)?

Any comments?

Very frustrating.

The only way i can see to do this in tomcat is to override the
org.apache.catalina.core.ApplicationContext and ApplicationContextFascade to
make a public method getBasePath to return the same variable.  Does anyone
else agree that this should be part of the next servlet spec?

-Richard

- Original Message -
From: Richard Sand [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 7:43 PM
Subject: Re: howto get the context path from a ServletContext?


 No because I don't have a Request.  In other words, the request object I
 have is from the current servlet-context, but when I do
 nextContext=currentContext.getContext(nexturi), all I have about this
other
 context is the context object itself and the server-root-relative URI for
 some resource somewhere within the new context.

 Thanks!

 -Richard

 - Original Message -
 From: Mark [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, January 08, 2002 7:33 PM
 Subject: Re: howto get the context path from a ServletContext?


  Is getContextPath() possibly what you're looking for?  It's found in the
  HttpServletRequest interface.
 
 
  At 07:23 PM 1/8/2002 +0100, you wrote:
  Is there a way to figure out the context path from a given
 ServletContext?
   I'm inside one context and am trying to dispatch to a resource in
another
  context based upon the absolute URI (in other words, a uri relative to
the
  server root).
  
  I can get the proper servlet context as follows:
  
  nextContext = thisServletContext.getContext(dispatch_to_this_uri);
  
  but then I cannot figure out how to do a dispatch to the uri because I
  don't know how to strip off the context path from the front of the URI!
  
  I have a feeling I'm asking a really stupid question, but I'm going
blind
  from looking at the servlet 2.3 javadoc for so long!
  
  Can anyone help?
  
  Thanks!
  
  Best regards,
  
  Richard
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: class loading tc 3.3 virtual hosts

2002-01-08 Thread James Chuang

Yes you can.  You can deploy 2 separate tomcat's each with their own ports,
contexts, etc.  This will allow you to run your apps in 2 separate VMs, so
they can use different versions of classes etc.

This was in Tomcat 3.23-3.3.  I think 4 should work the same way with this?

jchuang

- Original Message -
From: Martin v. Boehlen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 2:04 PM
Subject: class loading tc 3.3  virtual hosts


 Greetings Users,

 is it possible to use two completely separate virtual hosts
 with tomcat ?
 What I want to do is using two virtual hosts on the same box.
 One for real web serving and one for development.

 My problems so far are:
 1. Class loading -
 Can I configure tomcat in a way that classes don't
 interfere between virtual hosts ?
 2. Context scope -
 Can I use JkMount with a single path for all
 applications ?
 3. Host aliases
 Can I do an 'AutoWebApp' for an 'Alias' and
   a full host name at the same time ?

 Please note, that:
 The application name is 'jRolodex', but I used the 'numguess.jsp'
 example for testing.
 'www' is the web host and
 'javadex' is the development host.

 A 'build.sh all' copies the application files to host 'javadex'
 i.e. the 'docBase' directory of virtual host
 'javadex.tiade-voboe.de'.

 A 'build.sh dist' produces a 'jRolodex.war' and a 'jRoldex.jar'
 in the 'docBase' directory of host 'www.tiade-voboe.de'.

 Before I plunge into the details, please look at the partial
 config files, stack and SW version at the end of this mail.

 Now the gory details:

 ad 1.  When i change some code in the application and afterwards do a
 'build.sh all' for application 'jRolodex' without doing a
 'build.sh dist', the first virtual server I hit works fine!
 No matter wether it is 'www' or 'javadex'.
 The second server always gets an 'Error 500' (see error stack at
 end of mail).
 It seems to me, that tomcat does not load the appropriate class
 definitions.

 ad 2.  I tried to use '/wapps' as the context path (with and without a
 'prefix' in 'AutoWebApp') because I wanted something like
 'JkMount /wapps' in 'httpd.conf'. It didn't work. So I have
 to mount every application explicitly.

 ad 3.  I tried to use the 'Alias' definition in 'AutoWebApp'. I.e.:
 AutoWebApp dir=/usr/local/httpd/webapps/javadex
 prefix=/wapps
 host=javadex /
 It worked fine but it didn't work for 'javadex.tiade-voboe.de' (and
 vice versa).


 !-- --- httpd.conf
START -- --
 # - The Waltons, Daltons, everyone
 VirtualHost www.tiade-voboe.de:80
 ServerAdmin [EMAIL PROTECTED]
 ServerName  www.tiade-voboe.de
 DocumentRoot /usr/local/httpd/htdocs/www
 ServerAlias www   www.tiade-voboe.de

 Directory /usr/local/httpd/htdocs/www 
 Options Indexes -FollowSymLinks -Includes +MultiViews
 Order deny,allow
 Allow from all
 /Directory

 JkMount /*.jsp ajp13
 JkMount /wapps/jRolodex ajp13
 JkMount /wapps/jRolodex/* ajp13
 /VirtualHost

 # - Tomcat developer
 VirtualHost javadex.tiade-voboe.de:80
 ServerAdmin [EMAIL PROTECTED]
 ServerName javadex.tiade-voboe.de
 DocumentRoot /usr/local/httpd/htdocs/javadex
 ServerAlias javadex   javadex.tiade-voboe.de

 # - Here comes the directory accessible by all users of the local
 network
 Directory /usr/local/httpd/htdocs/javadex 
 Options Indexes +FollowSymLinks -Includes +MultiViews
 Order allow,deny
 Allow from 192.168.17.0/255.255.255.0
 /Directory

 JkMount /*.jsp ajp13
 JkMount /wapps/jRolodex ajp13
 JkMount /wapps/jRolodex/* ajp13
 /VirtualHost
 !-- --- httpd.conf
END  --

 !-- --- apps-vhosts.xml
START - --
 ?xml version=1.0 encoding=ISO-8859-1?
 Server


 Host name=www.tiade-voboe.de
 Alias name=www /
 Context path=
 docBase=/usr/local/httpd/webapps/www
 debug=0
 reloadable=False 
   SimpleRealm filename=conf/users/example-users.xml /
   LogSetter name=www_tc.log
 path=/var/log/tomcat/www_tc.log
 verbosityLevel=ERROR/
   LogSetter name=www_servlet_log
 path=/var/log/tomcat/www_servlet.log
 servletLogger=true
 verbosityLevel = ERROR/
 AutoDeploy source=/usr/local/httpd/webapps/www
 target=/usr/local/httpd/webapps/www /
 AutoWebApp dir=/usr/local/httpd/webapps/www
 prefix=/wapps
 host=www.tiade-voboe.de /
 /Context
 /Host


 Host name=javadex.tiade-voboe.de
 Alias name=javadex /
 Context path=
 docBase=/usr/local/httpd/webapps/javadex
 debug=99
 reloadable=True
   SimpleRealm filename=conf/users/example-users.xml /
   LogSetter name=javadex_tc.log
 path=/var/log/tomcat/javadex_tc.log
 verbosityLevel = DEBUG/
   LogSetter name=javadex_servlet_log
 

Invalid class file format for JSP import

2002-01-08 Thread Egil Rian

Hi,

I am having trouble using a self-defined class called User.class (part of a 
package called login).
The import directive I use in my JSP file is
%@ page language=java import=login.*%
The location of User.class is
jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes\login
Tomcat version: 3.2.3
JDK version: 1.4.0_beta2
I am not using a .jar file for my class files.
I heard that the problem goes away if I use Tomcat 4.0, but I have to stick 
with this version. Here is the error output:

Error: 500
Location: /examples/jsp/login/results.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror: 
Invalid class file format:
C:\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes\login\User.class, 
wrong version: 46, expected 45

What is this 'version 45'? How do I make my file version 45?
I would appreciate any help explaining why the compiler complains, and how 
to resolve the problem.

Thanks, Egil




-
Egil Rian
San Francisco, CA 94131


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: how to deploy WebApps in apache's UserDir's ?

2002-01-08 Thread Craig R. McClanahan

On Tue, 8 Jan 2002, Jonathan C. Detert wrote:

 Date: Tue, 8 Jan 2002 17:13:05 -0600
 From: Jonathan C. Detert [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: how to deploy WebApps in apache's UserDir's ?

 Hello All,

 I've got apache and tomcat working together successfully, arriving at
 this state by doing this :

 I downloaded the binary jakarta-tomcat-4.0.1.tar.gz and
 webapp-module-1.0-tc40-linux-glibc2.2.tar.gz from jakarta.apache.org.
 I've installed them, and followed the directions in the INSTALL.txt that
 came with the later in order to instruct apache how/when to hand-off
 requests to tomcat.

 All good so far.

 The sole purpose of the apache server in question is to serve user directories
 (i.e. using the UserDir directive from the mod_userdir module).

 I want to enable each user to create his own JSP's and servlets.

 So, my question is, what's the best way to do this?

 My understanding is this:

 - tomcat knows that it can serve stuff found in $CATALINA_HOME/webapps

 - i tell apache to hand stuff to tomcat via lines like

 WebAppDeploy newstufftodeploy localconn /newstufftodeploy

   and there must be a dir
   $CATALINA_HOME/webapps/newstufftodeploy/WEB-INF/classes/
   for this to work.

 But how do I tell apache  tomcat that I have a webapps directory that's
 not in $CATALINA_HOME ?

 E.g. I'd like to tell apache that a request like
 http://my.apacheserver.name/~detertj/myexamples/servlet/HelloWorld
 is to be handed off to tomcat, and then, of course, I'd like tomcat to
 know where this is (cuz it's not gonna be in $CATALINA_HOME/webapps) ?


You've got two choices:

(1) In the Context element, the docBase attribute takes either a
relative or an absolute pathname.  If it's relative, then it is resolved
against the webapps subdirectory; if absolute, it can be anywhere.
Thus, you can configure one Context element for each user that points
into their own directories.

(2) If you use Tomcat stand-alone, you can use the User Home Directories
feature to serve files from each user's directory, in the same way that
Apache does it.  For example, I can make the following URL:

  http://localhost:8080/~craigmcc/

resolve to the public_html directory in my home directory
(/home/craigmcc on my Linux box), without having to configure them all
individually.  This directory is treated like any other webapp directory,
so it can contain a WEB-INF subdirectory with a web.xml file, and so on.

For more info, see the Host page in:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/


 ATdHvAaNnKcSe,

 Jon Detert
 Unix System Administrator, Milwaukee School of Engineering
 1025 N. Broadway, Milwaukee, Wisconsin 53202


Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: howto get the context path from a ServletContext?

2002-01-08 Thread Craig R. McClanahan



On Wed, 9 Jan 2002, Richard Sand wrote:

 Date: Wed, 9 Jan 2002 00:33:31 +0100
 From: Richard Sand [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: howto get the context path from a ServletContext?

 I've concluded that there is no way to do this- how absurd!  I can get a
 context to a uri in another application, but there is no way to dispatch to
 it because the context won't tell me what its base path is!!

 Isn't this a design oversight in the servlet 2.3 api?  In other words, why
 shouldn't I be able to take in a uri, find its corresponding context, and
 dispatch to it??

 Basically this leaves no way to do server-side includes across applications
 in servlet2.3, which from my understanding is the entire point of the
 dispatch mechanism in the first place!  If I want a chain of servlets
 processing my request, why shouldn't i be able to specify the servlet by its
 server-root uri, instead of using two separate parameters (context base and
 uri)?

 Any comments?


If you know what to pass as an argument to ServletContext.getContext(),
then you already know the context path, right?  It's the first part of the
URL that you pass in.

To do cross-context includes, you need the entire (server-relative) URI to
get the right ServletContext, then a *context-relative* path to get the
include.  Assume you've got the foreign path /othercontext/menu.jsp:

  ServletContext context =
   getServletContext().getContext(/othercontext/menu.jsp);
  RequestDispatcher rd = context.getRequestDispatcher(/menu.jsp);
  rd.include(request, response);

There's a variety of ways to approch splitting this up, including an
arbitrary rule that the context path is the part up to (but not including
the second slash), to passing in the context path part as a servlet
initialization parameter, to ...

 Very frustrating.


You've got a couple more gotchas to watch out for, even after you get the
path stuff squared away:

* Many containers (including Tomcat by default) disable the ability to
  access other contexts for security reasons.  In Tomcat 4, set the
  crossContext attribute of the Context element to true.

* The included servlet or JSP page is *not* going to be able to see any
  of the request or session attributes that were created from classes
  loaded by the calling webapp's class loader.

The latter issue, IMHO, makes cross-context includes not very useful in
the majority of situations.

 The only way i can see to do this in tomcat is to override the
 org.apache.catalina.core.ApplicationContext and ApplicationContextFascade to
 make a public method getBasePath to return the same variable.  Does anyone
 else agree that this should be part of the next servlet spec?


If you believe this to be the case, the appropriate mechanism to express
it is to the feedback email address on the servlet spec:

  [EMAIL PROTECTED]

 -Richard


Craig McClanahan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: class loading tc 3.3 virtual hosts

2002-01-08 Thread Craig R. McClanahan



On Tue, 8 Jan 2002, James Chuang wrote:

 Date: Tue, 8 Jan 2002 15:46:12 -0800
 From: James Chuang [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 Subject: Re: class loading tc 3.3  virtual hosts

 Yes you can.  You can deploy 2 separate tomcat's each with their own ports,
 contexts, etc.  This will allow you to run your apps in 2 separate VMs, so
 they can use different versions of classes etc.

 This was in Tomcat 3.23-3.3.  I think 4 should work the same way with this?


In Tomcat 4 stand-alone, you can run multiple virtual
hosts in the same JVM, as long as each app keeps all their classes in
their own /WEB-INF subdirectories -- all the apps are then completely
independent of each other (even within the same virtual host).  All you
need is to add a separate Host element in server.xml for each virtual
host, each with its own appBase directory.

Sorry, but I don't have a clue how to do it with the web connectors.  I
consider any such configuration to be incredibly complex, and avoid them
like the plague (preferring to run Tomcat stand-alone).

 jchuang


Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: howto get the context path from a ServletContext?

2002-01-08 Thread Richard Sand

Hi Craig,

Yes, that's exactly the problem I've grappling with, how to get the
context-relative path that is appropriate for that uri in its context path.

I understand your point about the other context not having any of the
request attributes or such in the invoked servlet/jsp, but this is livable.
My case is simple- I'm trying to include a hit counter.  I don't need any
parameters from the request, I just need the counter servlet to be invoked.

I would normally just have the shtml files served by apache, which will
process the SSI's without issue, but I've implemented an invisible hit
counter using servlet filters, which is why i want tomcat to serve the
files.

So even with the risks and limitations of ssi's via tomcat, I still believe
that it should be possible, and that the servletcontext should be able to
provide the one missing piece of information (instead of making an assumtion
as to convention), its base path, to make this programmatically possible
from within the SsiInvoker.

But here is something strange- even if I put the servlet into the same
application as the shtml file, the SSI still does not work!  I looked into
the class org.apache.catalina.util.ssi.SsiInclude and it is preventing this-
before the RequestDispatcher is called, it does a check which eliminates
serving servlet resources:

if (SsiMediator.servletContext.getResource(path) != null)

So I figure when I remove this check, everything should work fine. But when
I decompiled the class and commented out this line, the SSI still failed,
which tells me that there is *something*
inside the SsiInvoker implementation prevents a dispatch to a servlet in any
case!  As a test I wrote my own simple JSP page that did a dispatch to my
included servlet and it worked fine, so I conclude that its something inside
the SsiInvoked servlet.

In any case, it should be a simple fix for Tomcat4 to at least allow SSI's
of servlets in the same webapp.  And I will request, as you suggested, that
the next servlet api allows servletContext to provide its base path so that
future versions can dispatch to servlets and resources in other web
applications as well.

Thanks for your help and comments!

-Richard



- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 2:02 AM
Subject: Re: howto get the context path from a ServletContext?




 On Wed, 9 Jan 2002, Richard Sand wrote:

  Date: Wed, 9 Jan 2002 00:33:31 +0100
  From: Richard Sand [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: howto get the context path from a ServletContext?
 
  I've concluded that there is no way to do this- how absurd!  I can get a
  context to a uri in another application, but there is no way to dispatch
to
  it because the context won't tell me what its base path is!!
 
  Isn't this a design oversight in the servlet 2.3 api?  In other words,
why
  shouldn't I be able to take in a uri, find its corresponding context,
and
  dispatch to it??
 
  Basically this leaves no way to do server-side includes across
applications
  in servlet2.3, which from my understanding is the entire point of the
  dispatch mechanism in the first place!  If I want a chain of servlets
  processing my request, why shouldn't i be able to specify the servlet by
its
  server-root uri, instead of using two separate parameters (context base
and
  uri)?
 
  Any comments?
 

 If you know what to pass as an argument to ServletContext.getContext(),
 then you already know the context path, right?  It's the first part of the
 URL that you pass in.

 To do cross-context includes, you need the entire (server-relative) URI to
 get the right ServletContext, then a *context-relative* path to get the
 include.  Assume you've got the foreign path /othercontext/menu.jsp:

   ServletContext context =
getServletContext().getContext(/othercontext/menu.jsp);
   RequestDispatcher rd = context.getRequestDispatcher(/menu.jsp);
   rd.include(request, response);

 There's a variety of ways to approch splitting this up, including an
 arbitrary rule that the context path is the part up to (but not including
 the second slash), to passing in the context path part as a servlet
 initialization parameter, to ...

  Very frustrating.
 

 You've got a couple more gotchas to watch out for, even after you get the
 path stuff squared away:

 * Many containers (including Tomcat by default) disable the ability to
   access other contexts for security reasons.  In Tomcat 4, set the
   crossContext attribute of the Context element to true.

 * The included servlet or JSP page is *not* going to be able to see any
   of the request or session attributes that were created from classes
   loaded by the calling webapp's class loader.

 The latter issue, IMHO, makes cross-context includes not very useful in
 the majority of situations.

  The only way i can see to do this in 

https redirect with welcome file

2002-01-08 Thread Daniel C. Heidebrecht

hi,

i'm trying to redirect all http requests to port 8080 to https requests on
port 8443.

this works perfectly if i specify the full pathname of the request.

for example:

http://localhost:8080/index.html

is redirected to:

https://localhost:8443/index.html

however, if i enter:

http://localhost:8080/

and the welcome-file for the default webapp is set to index.html, tomcat
does not redirect to:

https://localhost:8443/index.html as i would expect, the client just hangs
until the connection times out.

following are the welcome-file and security-constraint entries in my
$CATALINA_HOME/conf/web.xml file:

  welcome-file-list
welcome-fileindex.html/welcome-file
  /welcome-file-list

  security-constraint
web-resource-collection
  web-resource-nameEverything/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

thanks for your help.

dan.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




FW: apache and tomcat, again!

2002-01-08 Thread Rama

  -Original Message-
  From: Rama [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, December 28, 2001 9:01 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: A little help for apache vhost  tomcat
  
  
  How to set up mod_webapps in the secure virtual host?
  How to make JSPs work at https://secure/ instead of
  https://secure/secure/ ?
  
  
  Rama
  
  
  this is the snippets from my httpd.conf:
  
  VirtualHost secure:443
ErrorLog logs/secure-ssl-error_log
TransferLog logs/secure-ssl-access_log
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLCACertificatePath /etc/httpd/conf/ssl.crt
SSLCACertificateFile /etc/httpd/conf/ssl.crt/ca-bundle.crt
DocumentRoot /home/myapp/secure
ServerName secure
WebAppConnection  conn1   warpsecure:8008
WebAppDeploy  secure  conn1   /secure
  /VirtualHost
  
  
  this is my full server.xml:
  
  Server port=8005 shutdown=SHUTDOWN debug=0
  
Service name=Tomcat-Apache
  
  Connector
  className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0/
  
  Engine 
 className=org.apache.catalina.connector.warp.WarpEngine
   name=Apache debug=0 appBase=webapps
  
Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt timestamp=true/
  
Host name=localhost debug=0 appBase=webapps
  unpackWARs=true
   Context path=/examples docBase=examples debug=0
  reloadable=true /
/Host
  
Host name=secure debug=0 appBase=/home/myapp
  unpackWARs=true
  Context path=/secure docBase=secure debug=99
  reloadable=true /
/Host
  
Realm className=org.apache.catalina.realm.MemoryRealm /
  
  /Engine
  
/Service
  
  /Server
  
  ==



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




The (tom)cat with 9 lives...

2002-01-08 Thread Dr. Evil


I was trying to get Tomcat to work with Jmagick, and I appear to be
having some problems which cause Tomcat to stop working, but it leaves
a bunch of threads going.  For some reason I can't kill these threads
using the ordinary 'kill -9' method.  This is under Mandrake Linux,
with a 2.4 kernel.  Any sugestions on how to kill these threads which
never die?  I don't want to have to reboot this computer all the
time.  That's a Windows thing!

Also, I am having a lot of problems with getting Jmagick to work.  It
can link in and do some things, but it seems to crash a lot, too.
Basically, I am trying to set up Tomcat so that users can download
images, which are then stored in a DB.  To do this, the images need to
be scaled down to a certain maximum size (ie, we don't want 1000x1000
images) and I also need to convert formats, to go from JPEG/GIF/PNG to
PNG and WBMP.  Any alternatives to Jmagick?

Thanks!

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat 4.0/ Apache1.3.22 problem

2002-01-08 Thread Olivier Brand

No, but I am going to switch to the warp connector.
Any idea on how to setup Apache web server for that, I can't find any 
doc about it ?

Olivier

Mita Solanky wrote:

Hi

I saw your message on tomcat-users list regarding the errors seen on your
tomcat install and wondered whether you had any replies / solutions to the
problem. I am getting the same error in the logs but my applications seem to
work fine.

I have solaris8 with tomcat4 and apache 1.3.22

I get this error in the logs ...
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:47 [org.apache.catalina.connector.warp.WarpConnector]
Connectio
n from localhost/127.0.0.1:39486 to localhost/127.0.0.1:8008
2002-01-07 11:17:47 [org.apache.catalina.connector.warp.WarpConnector]
Connectio
n from localhost/127.0.0.1:39487 to localhost/127.0.0.1:8008
2002-01-07 11:17:47 [org.apache.catalina.connector.warp.WarpConnector]
Connectio
n from localhost/127.0.0.1:39488 to localhost/127.0.0.1:8008
2002-01-07 11:17:47 [org.apache.catalina.connector.warp.WarpConnector]
Connectio
n from localhost/127.0.0.1:39489 to localhost/127.0.0.1:8008
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:47
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:48
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Filter mappings (0)
2002-01-07 11:17:53 [org.apache.catalina.connector.warp.WarpConnection]
Exceptio
n on socket
java.io.IOException: Premature packet header end
at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection
.java:237)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequ
estHandler.java:112)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.
java:194)
at java.lang.Thread.run(Thread.java:484)

I'd be very grateful if you could let me know if you solved this and how ?

Many Thanks
Mita.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat Ugradation

2002-01-08 Thread Designing Department

Hello All,

I want to upgrade from Tomcat 3.2.4 to Tomcat 4.0 on Linux Server with
Apache. Can any one suggest me the requirements and steps?

Thanks in advance

Regards
Vikas



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat Ugradation

2002-01-08 Thread Lai Kok Cheong

Could you give ur current linux machine spec and linux version ?

 -Original Message-
 From: Designing Department [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, January 09, 2002 6:40 AM
 To:   Tomcat Users List
 Subject:  Tomcat Ugradation
 
 Hello All,
 
 I want to upgrade from Tomcat 3.2.4 to Tomcat 4.0 on Linux Server with
 Apache. Can any one suggest me the requirements and steps?
 
 Thanks in advance
 
 Regards
 Vikas
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat Ugradation

2002-01-08 Thread Designing Department

Linux 2.4.7-10, i686

Lai Kok Cheong wrote:

 Could you give ur current linux machine spec and linux version ?

  -Original Message-
  From: Designing Department [SMTP:[EMAIL PROTECTED]]
  Sent: Wednesday, January 09, 2002 6:40 AM
  To:   Tomcat Users List
  Subject:  Tomcat Ugradation
 
  Hello All,
 
  I want to upgrade from Tomcat 3.2.4 to Tomcat 4.0 on Linux Server with
  Apache. Can any one suggest me the requirements and steps?
 
  Thanks in advance
 
  Regards
  Vikas
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat Ugradation

2002-01-08 Thread Lai Kok Cheong

what is the purpose of your server ?
and  currently how many hits did your server encounter ?
Or it is just a development server
and currently how much ram and processor of your machine ?


 -Original Message-
 From: Designing Department [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, January 09, 2002 7:02 AM
 To:   Tomcat Users List
 Subject:  Re: Tomcat Ugradation
 
 Linux 2.4.7-10, i686
 
 Lai Kok Cheong wrote:
 
  Could you give ur current linux machine spec and linux version ?
 
   -Original Message-
   From: Designing Department [SMTP:[EMAIL PROTECTED]]
   Sent: Wednesday, January 09, 2002 6:40 AM
   To:   Tomcat Users List
   Subject:  Tomcat Ugradation
  
   Hello All,
  
   I want to upgrade from Tomcat 3.2.4 to Tomcat 4.0 on Linux Server with
   Apache. Can any one suggest me the requirements and steps?
  
   Thanks in advance
  
   Regards
   Vikas
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Error using Tomcat 4.01 and Oraclie 8i 8.1.6 when using manager/reload

2002-01-08 Thread Frédéric Houbie - ABSIS-GROUP

Hi,

When I reload the application using the manager, the next time I execute it,
I get an error message :

java.lang.UnsatisfiedLinkError: Native Library
C:\Oracle\Ora81\bin\ocijdbc8.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1346)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)


I don't understand what I must do, I try several directory for classes12.zip
but still get the error,

Thanks for help

Frederic




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]