Re: help with apache tomcat webserver

2002-07-12 Thread Jonathan Zhang

yes Ping is fine. I think this is a problem related to DNS. I thought it
only goes through DNS if it's a host name,  but ip address does not need to
go through DNS ?  maybe I'm just ignorant.

- Original Message -
From: Gunter D'Hondt [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, July 11, 2002 11:18 PM
Subject: RE: help with apache tomcat webserver


 Let the personA do a ping to your ip... if that works then it's strange...
 if not then it's a network problem...
 ping 64.161.27.180 or let him do a telnet 64.161.27.180 8080

 Gunter



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Jonathan Zhang
 Sent: vrijdag 12 juli 2002 07:23
 To: Tomcat Users List
 Subject: Re: help with apache tomcat webserver


 yeah it is odd.  I am not even changing any context yet.  In the log
files,
 I can not find the ip of the person(who's in hk) who's trying to access my
 site.  But oddly another person also in hk could access my site. I don't
 understand this random behavior.
 What's more odd is that I can access personA's site and she's running the
 same tomcat webserver, but personA cannot access my site.
 what's wrong? thank you for the help

 - Original Message -
 From: Eddie Bush [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, July 11, 2002 9:56 PM
 Subject: Re: help with apache tomcat webserver


  That's kind of odd.  I was able to pull your server up and run the
  number guess game.  To me, that indicates you have things set up right
  (at least for the ROOT application).  Is this the context you're having
  problems with?  What do you find in the log files?  I'd look in the log
  files and see if you can determine anything from what you find there.
 
  HTH,
 
  Eddie
 
  Jonathan Zhang wrote:
 
  Everything is in default condition as provided by apache tomcat 4.0.
 People
  in foreign countries such as hk and china can not view it while people
in
 US
  can.  if it helps here's my ip addr:
  http://64.161.27.180:8080/index.html
  thanks for the help
  
  -jonathan
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Cannot load mod_jk.dll into server!

2002-07-12 Thread Gunter D'Hondt

I've tried it all but still I'm getting this error.
Hasn't anybody else got this message and found a solution to it? I've tried
installed mod_webapp first but that gave me the same error so now I'm trying
with mod_jk but also with no luck. how can I connect my apache with
tomcat then? I'm out of possibilities...

Help me out pls!

Gunter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Jacob Kjome
Sent: donderdag 11 juli 2002 15:05
To: Tomcat Users List
Subject: RE: Cannot load mod_jk.dll into server!


Hi Gunter,

Try the following which I know works (change the paths to suit your
setup)

put the following in Apache's httpd.conf:

Include C:/Program Files/Apache
Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf


put the following in Tomcat's mod_jk.conf:

IfModule !mod_jk.c
   LoadModule jk_module modules/mod_jk.dll
/IfModule

JkWorkersFile
c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
 ServerName localhost

 JkMount /webdav ajp13
 JkMount /webdav/* ajp13

 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13

 JkMount /examples ajp13
 JkMount /examples/* ajp13

 JkMount /manager ajp13
 JkMount /manager/* ajp13
/VirtualHost


Put the following in your workers.properties:

workers.tomcat_home=$(CATALINA_HOME)
workers.java_home=$(JAVA_HOME)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.cachesize=8
worker.ajp14.port=8011
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=mysupersecretkey
worker.ajp14.credentials=mysuperveryrandomentropy
worker.ajp14.lbfactor=1
worker.ajp14.cachesize=8
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
talina.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr


There you go.  If that doesn't work, something else is wrong.

Jake



At 10:28 AM 7/11/2002 +0200, you wrote:
I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll
but
with no luck. But when I check the file properties of the dll then I can
see
that Last accessed is always set to the datetime when I last ran apache
-t so I think this should mean that apache DOES find the dll but cannot
load it properly...

Can anybody help me out?

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ralph Einfeldt
Sent: donderdag 11 juli 2002 10:08
To: Tomcat Users List
Subject: AW: Cannot load mod_jk.dll into server!


Obviously your mod_jk.conf is found.

One guess: Make shure that c:\Apache\modules\mod_jk.dll
is exactly equal to the real path (including case), normally
windows isn't case sensitive but some applications are.
(Can't remember if this is a problem for apache, my last
install of apache under windows is to long ago)

  -Ursprüngliche Nachricht-
  Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 11. Juli 2002 09:38
  An: 'Tomcat Users List'
  Betreff: RE: Cannot load mod_jk.dll into server!
 
 
  IfModule !mod_jk.c
LoadModule jk_module c:\Apache\modules\mod_jk.dll
  /IfModule
 
  JkWorkersFile c:\progra~1\apache~1.0\conf\jk\workers.properties
  JkLogFile c:\progra~1\apache~1.0\logs\mod_jk.log
 
  JkLogLevel info
 
  VirtualHost localhost
  ServerName localhost
 
  JkMount /webdav ajp13
  JkMount /webdav/* ajp13
 
  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13
 
  JkMount /examples ajp13
  JkMount /examples/* ajp13
 
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  /VirtualHost
 
 
 
  Gunter
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On
  Behalf Of Ralph Einfeldt
  Sent: donderdag 11 juli 2002 09:33
  To: Tomcat Users List
  Subject: AW: Cannot load mod_jk.dll into server!
 
 
  Can you show us your LoadModule directive ?
 
  The log doesn't complain about not finding mod_jk.conf
  but mod_jk.dll.
 
   -Ursprüngliche Nachricht-
   Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
   Gesendet: Donnerstag, 11. Juli 2002 09:22
   An: 'Tomcat Users List'
   Betreff: Cannot load mod_jk.dll into server!
  
   C:\Apache\binapache -t
   Syntax error on line 4 of C:/Program Files/Apache Tomcat
   4.0/conf/auto/mod_jk.conf:
   Cannot load C:/Apache/modules/mod_jk.dll into server: The
   specified module could not be found.
  
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To 

AW: Cannot load mod_jk.dll into server!

2002-07-12 Thread Ralph Einfeldt

Just a shot in the dark:
  Have you verified, that the user that runs tomcat has the
  right to read that file? (As the access time changes, I 
  assume that he has at least enough rights to read the 
  directory)

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 12. Juli 2002 08:22
 An: 'Tomcat Users List'
 Betreff: RE: Cannot load mod_jk.dll into server!
 
 I've tried it all but still I'm getting this error.
 Hasn't anybody else got this message and found a solution to 
 it?

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Cannot load mod_jk.dll into server!

2002-07-12 Thread Gunter D'Hondt

Thanks for the tip but that also didn't fix it... it has full control for
admins and everyone... i start apache and tomcat manually from the prompt
so i'm using an admin user...
Any other tips?

Gunter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ralph Einfeldt
Sent: vrijdag 12 juli 2002 08:29
To: Tomcat Users List
Subject: AW: Cannot load mod_jk.dll into server!


Just a shot in the dark:
  Have you verified, that the user that runs tomcat has the
  right to read that file? (As the access time changes, I 
  assume that he has at least enough rights to read the 
  directory)

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 12. Juli 2002 08:22
 An: 'Tomcat Users List'
 Betreff: RE: Cannot load mod_jk.dll into server!
 
 I've tried it all but still I'm getting this error.
 Hasn't anybody else got this message and found a solution to 
 it?

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: How to hide a download file

2002-07-12 Thread Michael Rimov

At 11:43 AM 7/11/2002 -0500, you wrote:
I'm going to have to inevitably add it to my site soon, I was going to
approach it the same way, but with a servlet isn't it possible to pipe a
file by setting the response mime type and streaming it out as a PDF or
EXE.  Of course IE does it's own thing no matter the mime type.


Sure, I've been using Download management for some time.  Take a look at 
the code in the Expresso framework at:

http://www.jcorporate.com/

The particular class is:
 com.jcorporate.expresso.ext.controller.Download

Sets MIME types, and IE Does give it a proper filename even though the user 
doesn't know what path it came from.

HTH!
 -Mike



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Why doesn't my classes see the oracle driver?

2002-07-12 Thread Vikramjit Singh

same in my case too. do one thing, added classes12.zip in your classpath.
hope that helps.

Regards,
Vikram


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 9:57 PM
To: Tomcat Users List
Subject: Re: Why doesn't my classes see the oracle driver?


I've never had any issues with just renaming classes12.zip to 
classes12.jar.  I keep it in TOMCAT_HOME/common/lib.  I have no unpacked 
classes at all.  The renaming is all that is needed.  It has worked in 
every version of Tomcat out there...at least for me.

Jake

At 08:19 PM 7/11/2002 +0100, you wrote:
It's probably a class loader issue. As a test pack your classes into a jar
and put it in the common\lib directory where classes12.zip is (remove it
from classes) and try your app again.

Regards.

- Original Message -
From: Christian J. Dechery [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 11, 2002 5:16 PM
Subject: Re: Why doesn't my classes see the oracle driver?


Yes I did... but that's not the point... I've even tried unpacking it... it
doesn't work...

.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

  [EMAIL PROTECTED] 11/07/02 12:33 
Did you rename the file to classes12.jar from the original
classes12.zip?

I know there were some issues with that some time ago...

  [EMAIL PROTECTED] 07/11/02 09:10 AM 
I had a webapp working ok...

I had it set like this:
$TOMCAT_HOME\webapps\fap\WEB-INF\classes\[ all my classes unpackaged
here]
$TOMCAT_HOME\webapps\fap\WEB-INF\lib\classes12.jar -- this is the
Oracle Driver

now I want this:
$TOMCAT_HOME\common\classes\[all my classes unpackaged here]
$TOMCAT_HOME\common\lib\classes12.jar -OR-
$TOMCAT_HOME\common\classes\[oracle driver unpackaged]

why can't this work??? When a JSP accessing one of my classes, the class
is found but it gives me an error saying it didn't find the oracle
drivers...


--
To unsubscribe, e-mail:  mailto:[EMAIL PROTECTED]
 
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED] 






--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Why doesn't my classes see the oracle driver?

2002-07-12 Thread andre . powroznik

A file named nlscharset12.zip or something like that is also needed (at least here).

Regards,

André POWROZNIK

-Original Message-
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 09:11
To: 'Tomcat Users List'
Subject: RE: Why doesn't my classes see the oracle driver?


same in my case too. do one thing, added classes12.zip in your classpath.
hope that helps.

Regards,
Vikram


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 9:57 PM
To: Tomcat Users List
Subject: Re: Why doesn't my classes see the oracle driver?


I've never had any issues with just renaming classes12.zip to 
classes12.jar.  I keep it in TOMCAT_HOME/common/lib.  I have no unpacked 
classes at all.  The renaming is all that is needed.  It has worked in 
every version of Tomcat out there...at least for me.

Jake

At 08:19 PM 7/11/2002 +0100, you wrote:
It's probably a class loader issue. As a test pack your classes into a jar
and put it in the common\lib directory where classes12.zip is (remove it
from classes) and try your app again.

Regards.

- Original Message -
From: Christian J. Dechery [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 11, 2002 5:16 PM
Subject: Re: Why doesn't my classes see the oracle driver?


Yes I did... but that's not the point... I've even tried unpacking it... it
doesn't work...

.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

  [EMAIL PROTECTED] 11/07/02 12:33 
Did you rename the file to classes12.jar from the original
classes12.zip?

I know there were some issues with that some time ago...

  [EMAIL PROTECTED] 07/11/02 09:10 AM 
I had a webapp working ok...

I had it set like this:
$TOMCAT_HOME\webapps\fap\WEB-INF\classes\[ all my classes unpackaged
here]
$TOMCAT_HOME\webapps\fap\WEB-INF\lib\classes12.jar -- this is the
Oracle Driver

now I want this:
$TOMCAT_HOME\common\classes\[all my classes unpackaged here]
$TOMCAT_HOME\common\lib\classes12.jar -OR-
$TOMCAT_HOME\common\classes\[oracle driver unpackaged]

why can't this work??? When a JSP accessing one of my classes, the class
is found but it gives me an error saying it didn't find the oracle
drivers...


--
To unsubscribe, e-mail:  mailto:[EMAIL PROTECTED]
 
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED] 






--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

 DISCLAIMER  
This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Manager App Help

2002-07-12 Thread Joern . Karthaus



Hello List

When I Install a Web Application with the Manager App
.../manager/install... the Application runs correkt.

But when I restart the Server the Application is not accessible.
How can I tell the manager App to write the installed Configuration Data to
Disk.


Thanks Joern Karthaus




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




BasicDataSourceFactory (dbcp)

2002-07-12 Thread Marc Logemann

Hi,

i just read 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
and saw that dbcp uses username as a property for their DataSource Implementation.

I allways thought that the specs say that one should use user.
Shouldnt this be consistent across all DataSource implementations?


---
greetings from
Marc Logemann
Homebase @ www.logemann.info


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat 3.3.1 stops by itself

2002-07-12 Thread Attila Szegedi

I have Tomcat 3.3.1 running on a PA RISC machine under HP-UX 11.00 OS, using
the HP-supplied 1.3.1_01 Java VM. We are experiencing that the java process
running the Tomcat exits occasionally (approximately once a week).

The real mistery is that the Tomcat apparently performs a clean shutdown -
looking at the servlet log, we see that all contexts are closed nicely and
every servlet's destroy() method gets called (there are log messages in
servlet's destroy() methods, so we see them being called).

I'd like to ask: what are the possible events that can trigger a clean
shutdown of Tomcat? I know that a signal to Ajp12 connector is one, but
nobody is executing tomcat.sh stop. We have now disabled the Ajp12
connector and will see if we have another unexpected stop this week...

Are there other events that can cause Tomcat to perform a clean shutdown?

The webapp that runs inside the Tomcat is somewhat heavy on memory - it eats
187 megs of heap by default, but on occasional database refreshes requires
almost twice the ammount; nevertheless the server runs with -Xmx512M and we
have monitored database refreshes and they never caused the server to stop
and never required more than ~300M heap. Altough from what I understand,
even if we had an out-of-memory situation that wouldn't cause the Tomcat to
perform its shutdown sequence, would it? I mean, all those non-daemon
threads waiting for socket connection would keep the VM alive; and even if
they wouldn't I doubt we'd see a graceful exit with contexts being shut down
and servlets being destroyed pedantly.

Any help appreciated.
Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




LD_LIBRARY_PATH

2002-07-12 Thread Johnny


 To all Tomcat users :

 How can I set LD_LIBRARY_PATH in setclasspath.sh? or is there any alternate
way to set the LD_LIBRARY_PATH in Tomcat 4.0.3 in Linux?

 Regards,
 Johnny.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: documentation on mod_jk

2002-07-12 Thread Nikolas A. Rathert

Ukiah,
there are several places where you could find information. The most 
detailed one could be found here:

http://atlassw1.phy.bnl.gov/jakarta-tomcat/mod_jk-howto.html

If there still are questions go to

http://www.galatea.com/flashguides/index

Cheers and good luck,

Nick

Ukiah Smith wrote:
 I am looking for a how-to or other documentation on configuring
 mod_jk. I have installed it, and it serves the basic dynamic pages
 from tomcat. I want information that explains how to configure so that
 I can create my own custom configs instead of copying the examples
 without really understanding them.
 
 thanks //Ukiah Smith
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


-- 
Nikolas A. Rathert
Fraunhofer Institute for Computer Graphics
e-Learning  Knowledge Management

Fraunhoferstrasse 5
D-64283 Darmstadt
Germany
Fon +49 6151 155 552
Fax +49 6151 155 569
email: [EMAIL PROTECTED]
www: http://www.igd.fhg.de


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Cannot load mod_jk.dll into server!

2002-07-12 Thread Nikolas A. Rathert

Gunter - there is a solution,
I finally got my servers working together. But not with the include 
thing. Make sure that you use the right mod_jk that has been compiled 
(if you did it not on your own) for your Version of Apache!
I then made some changes to the httpd.conf and server.xml. Here is the 
code I had to add (you have to change the paths):

1. server.xml
somwhere after  Server port=8005 ...:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig  modJk= 
D:\Programme\Server\Apache\modules /

after Service name=Tomcat-Standalone:
  !-- Define an AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector 
port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 
debug=0/

2. httpd.conf
after the LoadModules Section:
##
   IfModule !mod_jk.c
 LoadModule jk_module modules/mod_jk.dll
   /IfModule
##

at the end of the file:
#---Load 
mod_jk-#
IfModule !mod_jk.c
   LoadModule jk_module 
D:/Programme/Server/OpenSA/Apache/modules/mod_jk.dll
/IfModule

JkWorkersFile 
D:/Programme/Server/jakarta-tomcat-4.0.3/conf/jk/workers.properties
JkLogFile D:/Programme/Server/jakarta-tomcat-4.0.3/logs/jk_log.txt

JkLogLevel debug

JKMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /examples/* ajp13
JkMount /manager/* ajp13
JkMount /tomcat-docs/* ajp13
JkMount /webdav/* ajp13
JkMount /login/* ajp13
#---#

3. workers.properties
Then you have to create a folder named jk in the tomcat/conf folder. 
Therein you have to place a file named workers.properties including 
the following lines:

# Setup for Windows system
#
workers.catalina_home=D:\Programme\Server\jakarta-tomcat-4.0.3
workers.java_home=D:\Programme\Java\j2sdk1.4.0_01

# Linux uses fwd slashes
#ps=/

# Windows uses back slashes
ps=\

worker.list= ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

That should work. It does on my system (I was forced to set that whole 
thing up on a NT4.0 box -aargh!).

Tell me if this works and good luck,

Nick

---
Gunter D'Hondt wrote:
 I've tried it all but still I'm getting this error.
 Hasn't anybody else got this message and found a solution to it? I've tried
 installed mod_webapp first but that gave me the same error so now I'm trying
 with mod_jk but also with no luck. how can I connect my apache with
 tomcat then? I'm out of possibilities...
 
 Help me out pls!
 
 Gunter
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Jacob Kjome
 Sent: donderdag 11 juli 2002 15:05
 To: Tomcat Users List
 Subject: RE: Cannot load mod_jk.dll into server!
 
 
 Hi Gunter,
 
 Try the following which I know works (change the paths to suit your
 setup)
 
 put the following in Apache's httpd.conf:
 
 Include C:/Program Files/Apache
 Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf
 
 
 put the following in Tomcat's mod_jk.conf:
 
 IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.dll
 /IfModule
 
 JkWorkersFile
 c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
 JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log
 
 JkLogLevel info
 
 VirtualHost localhost
  ServerName localhost
 
  JkMount /webdav ajp13
  JkMount /webdav/* ajp13
 
  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13
 
  JkMount /examples ajp13
  JkMount /examples/* ajp13
 
  JkMount /manager ajp13
  JkMount /manager/* ajp13
 /VirtualHost
 
 
 Put the following in your workers.properties:
 
 workers.tomcat_home=$(CATALINA_HOME)
 workers.java_home=$(JAVA_HOME)
 ps=\
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.ajp13.cachesize=8
 worker.ajp14.port=8011
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=mysupersecretkey
 worker.ajp14.credentials=mysuperveryrandomentropy
 worker.ajp14.lbfactor=1
 worker.ajp14.cachesize=8
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
 talina.jar
 worker.inprocess.cmd_line=start
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
 )jvm.dll
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 
 There you go.  If that doesn't work, something else is wrong.
 
 Jake
 
 
 
 At 10:28 AM 7/11/2002 +0200, you wrote:
 
I've tried several possible ways of 

JNI and Tomcat Classloaders

2002-07-12 Thread Jhair Tocancipa Triana

Hi,

I do have the following problem. Suppose the following class:

class Bridge{
   /* ... */
   static{
  System.loadLibrary( jni_tester );
   }   
   /* ... */
}

It is possible to create/destroy  instances of Bridge inside Tomcat in
such a way that the shared library jni_tester is loaded only once?

The  shared  library  and  the   code  which  uses  Bridge  reside  in
$CATALINA_HOME/lib, so this code should  be loaded by the shared class
loader[1]. 

Hence jni_tester will be loaded  by the shared class loader only once.
Is that true?   Or should I do something else to  make the native code
to be loaded only once? (I store state information in the native code)

Thanks in advance for your help,

-- 
--Jhair

[1] http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




access files under WEB-INF ??

2002-07-12 Thread Serdar BOZDA

hello to everyone

can I access a directory under WEB-INF in tomcat. For instance can I access 
c:\root\WEB-INF\project
(I can access lib and classes directory of WEB-INf indirectly when I call a servlet, 
etc. but what about other folders under WEB-INF?)

thanks in advance,

serdar.




RE: Issue on Tomcat 4.0.4 configuration

2002-07-12 Thread Telesis Support - Bangalore

hi,

   I have installed jdk1.4 beta version and after configuration , i received the 
following error.
The thing is the servlets in the examples folder is going thro, only for jsps of 
examples folder, i got these sort of errors.

 Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet jsp is currently unavailable



type Status report

message Servlet jsp is currently unavailable

description The requested service (Servlet jsp is currently unavailable) is not 
currently available

I am really, wondering, how it is happening, when i installed tomcat 3.3.1, i never 
faced these sort of issues.With default settings, the examples should work.

and i am sorry, its not possible for me to make the url accessible for you people.

The url is http://192.168.77.102:8080/examples/jsp/num/numguess.jsp
If any one faced these sort of issues, please let me know..

Thanks,
bye,
Murugan



-Original Message-
From: Nikolas A. Rathert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:34 PM
To: Tomcat Users List
Subject: Re: Issue on Tomcat 4.0.4 configuration


You know that nobody is able to access your private network. By the way 
the address is some sort of generic and looks like mine: 
http://localhost:8080/examples/jsp/num/numguess.jsp
Did you configure the J2SDK in the right way?
Is the example webapp running?

I have the feeling that you have to give more information about that in 
order to get help.

Nick

Telesis Support - Bangalore wrote:
 Dear all,
 
 After Installing tomcat, i got the index page(Welcome) =
 but,couldn't get the example pages.
 I have pasted the error messages  of this process..
  I dont know what might be the reason. Expecting ur valuable reply..
 Thanks..
 bye,
 Murugan
 
 The url is http://192.168.77.102:8080/examples/jsp/num/numguess.jsp
 
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
 
 -=
 ---
 
 type Exception report
 
 message Internal Server Error
 
 description The server encountered an internal error (Internal Server =
 Error) that prevented it from fulfilling this request.
 
 exception=20
 
 javax.servlet.ServletException: Servlet.init() for servlet jsp threw =
 exception
   at =
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java=
 :946)
   at =
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:65=
 5)
   at =
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve=
 .java:214)
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:566)
   at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47=
 2)
   at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at =
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve=
 .java:190)
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:566)
   at =
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB=
 ase.java:475)
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:564)
   at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47=
 2)
   at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at =
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347=
 )
   at =
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:=
 180)
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:566)
   at =
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal=
 ve.java:170)
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:564)
   at =
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:=
 170)
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:564)
   at =
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)=
 
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:564)
   at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47=
 2)
   at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at =
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j=
 ava:174)
   at =
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav=
 a:566)
   at =
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47=
 2)
   at =
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at =
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.ja=
 va:1027)
   at =
 

getRemoteUser in Tomcat 3.3.1 does not work

2002-07-12 Thread Andreas Lehmann

Hi,

I am trying to get the remote user under tomcat 3.3.1 and apache 1.3.12 on NT4 and 
Win2k.
The authentification is done by apache and the ntlm module.

If I try getRemoteUser() I only get a null value.
I tryed NTLM and BASIC authentification - nothing works.
I tryed various mod_jk.dll Versions - nothing helps.
I tryed Tomcat 3.2.3 - everything works fine.

Whats the problem with tomcat 3.3.1? Is this a bug or bevavior by design?

cu
Andreas





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Altering file extensions

2002-07-12 Thread Steven Elliott

 From: Jim Bartram [EMAIL PROTECTED]
Date: Thu, 11 Jul 2002 21:16:30 -0700
 To: [EMAIL PROTECTED]
 Subject: Altering file extensions
 
 I'm using Tomcat 4.0 in a very simple way, hosting some straightforward
 .jsp files. Instead of the client seeing files served with the *.jsp
 extension, I'd like to be able to substitue anothe extension instead --
 like *.html :-). Is there a way to do that in Tomcat ? If so, how do I go
 about it?
 
 --Jim Bartram

try:
$CATALINA_HOME/conf/web.xml
add to the JSP servlet mapping

  !-- The mapping for the JSP servlet --
  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.html/url-pattern
  /servlet-mapping

should work.

HTH

Steven


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Apache+tomcat under Linux

2002-07-12 Thread ZXSPRCR2A017, Ext



does anybody know how to configure apache and tomcat 4 under Mandrake Linux
8.2 ?

thanks,
Frederic
 



x
Frederic Duffau, Cyber Angel - Technical Intranet Team
Transiciel Technologies for ASTRIUM
x
Email Astrium : mailto:[EMAIL PROTECTED]
Email :  mailto:[EMAIL PROTECTED]
x

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: getRemoteUser in Tomcat 3.3.1 does not work

2002-07-12 Thread Telesis Support - Bangalore

hi,
   whats the size of your mod_jk.dll.. Is it 120 kb..?..
   just confirm me..
bye,
Murugan

-Original Message-
From: Andreas Lehmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 3:13 PM
To: 'Tomcat Users List'
Subject: getRemoteUser in Tomcat 3.3.1 does not work


Hi,

I am trying to get the remote user under tomcat 3.3.1 and apache 1.3.12 on NT4 and 
Win2k.
The authentification is done by apache and the ntlm module.

If I try getRemoteUser() I only get a null value.
I tryed NTLM and BASIC authentification - nothing works.
I tryed various mod_jk.dll Versions - nothing helps.
I tryed Tomcat 3.2.3 - everything works fine.

Whats the problem with tomcat 3.3.1? Is this a bug or bevavior by design?

cu
Andreas





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: help with apache tomcat webserver

2002-07-12 Thread Martin Jacobson

Jonathan Zhang wrote:

 Everything is in default condition as provided by apache tomcat 4.0.  People
 in foreign countries such as hk and china can not view it while people in US
 can.  if it helps here's my ip addr:
 http://64.161.27.180:8080/index.html
 thanks for the help
 
 -jonathan


I tried your link, and it returned me a 404 :-(
Ping succeeds.

I notice you said you're connected via DSL - are you sitting behind a 
DSL router that provides firewall facilities? Do you have a dynamic IP 
address (I guess not)?
You *might* have problems if your firewall blocks certain ports from 
certain ip ranges.

I am doing this from Italy.

best of luck,
Martin



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




intranet application - plz help

2002-07-12 Thread # Lalit Nagpal #


how to run an application on an intranet. I want my
servlets to be accessible only for the comps on my
LAN. I am using tomcat 4 - 80 port is for our website
now do i have to use some other port for intranet
application - if yes how to configure tomcat to listen
to two ports.

Thanks is advance
Lalit

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Altering file extensions

2002-07-12 Thread Martin Jacobson

Jim Bartram wrote:

 I'm using Tomcat 4.0 in a very simple way, hosting some straightforward
 .jsp files. Instead of the client seeing files served with the *.jsp
 extension, I'd like to be able to substitue anothe extension instead --
 like *.html :-). Is there a way to do that in Tomcat ? If so, how do I go
 about it?
 


This is what the servlet-mapping element does (I don't use JSPs, but 
it works fine for servlets).

e.g.

servlet
   servlet-namehello/servlet-name
   jsp-filehello.jsp/jsp-file
   ...
/servlet

servlet-mapping
   servlet-namehello/servlet-name
   url-patternhello.html/url-pattern
/servlet-mapping

So your user types hello.html, and gets served the output from hello.jsp.

HTH,
Martin



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: BasicDataSourceFactory (dbcp)

2002-07-12 Thread Martin Jacobson

Marc Logemann wrote:

 Hi,
 
 i just read 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
 and saw that dbcp uses username as a property for their DataSource Implementation.
 
 I allways thought that the specs say that one should use user.
 Shouldnt this be consistent across all DataSource implementations?
 
 
 ---
 greetings from
 Marc Logemann
 Homebase @ www.logemann.info
 


I have posted several times regarding this! In answer to your question, 
it ought to be, but because there is no standard DTD for servlet 
containers, or EJB containers, everybody can do his own thing! :-(

I still think that there ought to be an DTD for server.xml, and maybe a 
way to map 'tomcat standard' parameter names to individual DataSource 
implementations.
IMO, such a DTD (if documented!) would cut out a large proportion of the 
posts on this list!

Just my Euro 0,02

Martin



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: mod_jk.so for HP-UX 11

2002-07-12 Thread Antonio Trigo

Ravi,

Can u send me the binary version of mod_jk.so for HP-UX 11.

Thanks in advance.

Trigo


-Original Message-
From: Ravi Verma [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 14 de Junho de 2002 3:37
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: mod_jk.so for HP-UX 11


Dear Friends,

I am in desperate need for a binary version of mod_jk.so for HP-UX 11. If
you gone through this process, could you please share the file with me.

Regards.

Ravi Verma
916 705 3261


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Classes in WEB-INF/classes not visible to JSP pages

2002-07-12 Thread Vel

Hi Larry and RS,

Thanks for your feedback.

I did try importing the unpackaged classes, but with jdk 1.4 it gives an 
error that '.' is not found in the import statement, meaning i have to 
package.

I will do it hereafter, but for my older applications i can not use 
4.x.x and should be satisfied with 3.x.x and jdk 1.3, sad.

May i know the reason behind packaging the jsps into org.apchae.jsp?, if 
it isn't there it would be cool!

Thanks again
vel


[EMAIL PROTECTED] wrote:

With Tomcat 4.x.x, you need import unpackged classes as well.

RS





Larry Meadors [EMAIL PROTECTED] on 07/11/2002 09:36:05 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Re: Classes in WEB-INF/classes not visible to JSP pages

I do not know if I would consider this a bug. There was a related post
just yesterday. If I understood it correctly, esentially, your jsp gets
compiled as being in the org.apache.jsp package. Unless you explicitly
import your unpackaged classes, they are expected to be in the
org.apache.jsp package as well.

Drink the Kool-Aid...package your classes.

Larry

[EMAIL PROTECTED] 

I could not compile jsp pages which handle classes found in
WEB-INF/classes directory, 'class not found'. The classes are not
packaged but when packaged, the jsp pages works fine. The thing is, it
adds org.apache.jsp package to the class name?


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]










--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


.




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: BasicDataSourceFactory (dbcp)

2002-07-12 Thread Marc Logemann

Hi,

 I have posted several times regarding this! In answer to your question,

sorry to bother you :)

 it ought to be, but because there is no standard DTD for servlet
 containers, or EJB containers, everybody can do his own thing! :-(

i dont know if a DTD would help out, i mean we cant define bean
properties for a custom datasource in advance in an DTD or?

 I still think that there ought to be an DTD for server.xml, and maybe a
 way to map 'tomcat standard' parameter names to individual DataSource
 implementations.
 IMO, such a DTD (if documented!) would cut out a large proportion of the
 posts on this list!

THe point is, SUN defined at least some property names in
http://java.sun.com/products/jdbc/jdbc20.stdext.pdf Paragraph: 5.3.1
it would be nice if at least the common ones would be uniform.

Also just my 2 cents.


---
greetings from
Marc Logemann
Homebase @ www.logemann.info


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: getRemoteUser in Tomcat 3.3.1 does not work

2002-07-12 Thread Andreas Lehmann

I tried the 120kB Version and the 116kB Version - nothing works.

BTW what about version-numbers in mod_jk?? I think it would be a great idea...


-Ursprüngliche Nachricht-
Von:Telesis Support - Bangalore [SMTP:[EMAIL PROTECTED]]
Gesendet am:Freitag, 12. Juli 2002 11:58
An: Tomcat Users List
Betreff:RE: getRemoteUser in Tomcat 3.3.1 does not work

hi,
   whats the size of your mod_jk.dll.. Is it 120 kb..?..
   just confirm me..
bye,
Murugan

-Original Message-
From: Andreas Lehmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 3:13 PM
To: 'Tomcat Users List'
Subject: getRemoteUser in Tomcat 3.3.1 does not work


Hi,

I am trying to get the remote user under tomcat 3.3.1 and apache 1.3.12 on NT4 
and Win2k.
The authentification is done by apache and the ntlm module.

If I try getRemoteUser() I only get a null value.
I tryed NTLM and BASIC authentification - nothing works.
I tryed various mod_jk.dll Versions - nothing helps.
I tryed Tomcat 3.2.3 - everything works fine.

Whats the problem with tomcat 3.3.1? Is this a bug or bevavior by design?

cu
Andreas





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Mailer TAG question

2002-07-12 Thread Kevin Passey

Why does this not work?

mt:setrecipient type=to address='%= request.getParameter(Email) %'/

Thanks


Kevin Passey

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Decode Interceptor: charset from session. How to get rid of it in tomcat 3.3

2002-07-12 Thread Antonio Aparicio

As you can read in the subect, this trace or whatever, is appearing in the 
console on everyr request made to tomcat(v3.3, novell6,jdk1.3.0.1).
I've tried everything with the decodeinterceptor entry (ie: debug -1 or 0) 
in server.xml, but it is still there. I´ve readt it's fixed in Tomcat 3.3.1, 
but what with 3.3?
By the way, if the only solution is going for the upgrade, which is the
latest version of tomcat available for novell 6?
Thanks in advance.
Anxiously waiting for your answers,
Antonio.





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Need help - intranet application

2002-07-12 Thread # Lalit Nagpal #



how to run an application on an intranet. I want my
servlets to be accessible only for the comps on my
LAN. I am using tomcat 4 - 80 port is for our website
now do i have to use some other port for intranet
application - if yes how to configure tomcat to listen
to two ports.

Thanks in advance


=
# Lalit Nagpal #

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: mod_jk.so for HP-UX 11

2002-07-12 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

Trigo,

You could try downloading the HP provided apache/tomcat located at
www.hp.com/products/webservers/apache/index.html

the 2.0 version uses mod_jk and the provided binary might work for you.

We use the warp connection for our work but if I get a chance I might try
compiling mod_jk and see how it works.
what version of apache are you using?

Jeff 

-Original Message-
From: Antonio Trigo [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 4:36 AM
To: Tomcat Users List
Subject: RE: mod_jk.so for HP-UX 11


Ravi,

Can u send me the binary version of mod_jk.so for HP-UX 11.

Thanks in advance.

Trigo


-Original Message-
From: Ravi Verma [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 14 de Junho de 2002 3:37
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: mod_jk.so for HP-UX 11


Dear Friends,

I am in desperate need for a binary version of mod_jk.so for HP-UX 11. If
you gone through this process, could you please share the file with me.

Regards.

Ravi Verma
916 705 3261


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: BasicDataSourceFactory (dbcp)

2002-07-12 Thread Martin Jacobson

Marc Logemann wrote:

 Hi,
 
 
I have posted several times regarding this! In answer to your question,

 
 sorry to bother you :)
 

I wasn't complaining - it was merely an observation; I 'discovered' this 
a month back, and have posted several replies to people in difficulty.

 
it ought to be, but because there is no standard DTD for servlet
containers, or EJB containers, everybody can do his own thing! :-(

 
 i dont know if a DTD would help out, i mean we cant define bean
 properties for a custom datasource in advance in an DTD or?
 
 
I still think that there ought to be an DTD for server.xml, and maybe a
way to map 'tomcat standard' parameter names to individual DataSource
implementations.
IMO, such a DTD (if documented!) would cut out a large proportion of the
posts on this list!

 
 THe point is, SUN defined at least some property names in
 http://java.sun.com/products/jdbc/jdbc20.stdext.pdf Paragraph: 5.3.1
 it would be nice if at least the common ones would be uniform.
 


Having read the doc (thanks for the link), I think you ought to post a 
bug report to the DBCP project for an incorrect property name... come to 
think of it, I might try to do that myself!

But, if there is a 'standard' set of properties for a DataSource, why 
can't they be expressed in a formal way - i.e. currently we write:
Resource
   name=jdbc/RadiationDB
   auth=Container
   type=javax.sql.DataSource
/
ResourceParams
   name=jdbc/RadiationDB
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   ...

which means that an XML parser can only check that it is well-formed.

Instead, it would be nice to be able to write:
Resource
   name=jdbc/RadiationDB
   auth=Container
   type=javax.sql.DataSource
/
DataSourceParams
   name=jdbc/RadiationDB
   factory-class
 org.apache.commons.dbcp.BasicDataSourceFactory
   /factory-class
   ...

with parameter reserved for vendor-specific extensions. This would 
allow a validating parser to barf at most errors, instead of us all 
having to rely on examining the log files and interpreting stack traces!

Getting off soap-box, now!

cheers,
Martin.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Cannot load mod_jk.dll into server!

2002-07-12 Thread Frederick Aubert

Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the path
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and Tomcat
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does it
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...


 Hi Gunter,
 
 Try the following which I know works (change the paths to suit your setup)
 
 put the following in Apache's httpd.conf:
 
 Include C:/Program Files/Apache
 Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf
 
 
 put the following in Tomcat's mod_jk.conf:
 
 IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
 /IfModule
 
 JkWorkersFile 
 c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
 JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log
 
 JkLogLevel info
 
 VirtualHost localhost
ServerName localhost
 
JkMount /webdav ajp13
JkMount /webdav/* ajp13
 
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
 
JkMount /examples ajp13
JkMount /examples/* ajp13
 
JkMount /manager ajp13
JkMount /manager/* ajp13
 /VirtualHost
 
 
 Put the following in your workers.properties:
 
 workers.tomcat_home=$(CATALINA_HOME)
 workers.java_home=$(JAVA_HOME)
 ps=\
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.ajp13.cachesize=8
 worker.ajp14.port=8011
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=mysupersecretkey
 worker.ajp14.credentials=mysuperveryrandomentropy
 worker.ajp14.lbfactor=1
 worker.ajp14.cachesize=8
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)cata
 lina.jar
 worker.inprocess.cmd_line=start
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)j
 vm.dll
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 
 There you go.  If that doesn't work, something else is wrong.
 
 Jake
 
 
 
 At 10:28 AM 7/11/2002 +0200, you wrote:
 I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll but
 with no luck. But when I check the file properties of the dll then I can see
 that Last accessed is always set to the datetime when I last ran apache
 -t so I think this should mean that apache DOES find the dll but cannot
 load it properly...
 
 Can anybody help me out?
 
 Gunter
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 10:08
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!
 
 
 Obviously your mod_jk.conf is found.
 
 One guess: Make shure that c:\Apache\modules\mod_jk.dll
 is exactly equal to the real path (including case), normally
 windows isn't case sensitive but some applications are.
 (Can't remember if this is a problem for apache, my last
 install of apache under windows is to long ago)
 
 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 11. Juli 2002 09:38
 An: 'Tomcat Users List'
 Betreff: RE: Cannot load mod_jk.dll into server!
 
 
 IfModule !mod_jk.c
   LoadModule jk_module c:\Apache\modules\mod_jk.dll
 /IfModule
 
 JkWorkersFile c:\progra~1\apache~1.0\conf\jk\workers.properties
 JkLogFile c:\progra~1\apache~1.0\logs\mod_jk.log
 
 JkLogLevel info
 
 VirtualHost localhost
 ServerName localhost
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 
 
 Gunter
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 09:33
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!
 
 
 Can you show us your LoadModule directive ?
 
 The log doesn't complain about not finding mod_jk.conf
 but mod_jk.dll.
 
 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 11. Juli 2002 09:22
 An: 'Tomcat Users List'
 Betreff: Cannot load mod_jk.dll into server!
 
 C:\Apache\binapache -t
 Syntax error on line 4 of C:/Program 

Re: getRemoteUser in Tomcat 3.3.1 does not work

2002-07-12 Thread Nikolas A. Rathert

Mine has 120 kB and is for Apache 1.3.26.

Nick

Telesis Support - Bangalore wrote:
 hi,
whats the size of your mod_jk.dll.. Is it 120 kb..?..
just confirm me..
 bye,
 Murugan
 
 -Original Message-
 From: Andreas Lehmann [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 12, 2002 3:13 PM
 To: 'Tomcat Users List'
 Subject: getRemoteUser in Tomcat 3.3.1 does not work
 
 
 Hi,
 
 I am trying to get the remote user under tomcat 3.3.1 and apache 1.3.12 on NT4 and 
Win2k.
 The authentification is done by apache and the ntlm module.
 
 If I try getRemoteUser() I only get a null value.
 I tryed NTLM and BASIC authentification - nothing works.
 I tryed various mod_jk.dll Versions - nothing helps.
 I tryed Tomcat 3.2.3 - everything works fine.
 
 Whats the problem with tomcat 3.3.1? Is this a bug or bevavior by design?
 
 cu
 Andreas
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


-- 
Nikolas A. Rathert
Fraunhofer Institute for Computer Graphics
e-Learning  Knowledge Management

Fraunhoferstrasse 5
D-64283 Darmstadt
Germany
Fon +49 6151 155 552
Fax +49 6151 155 569
email: [EMAIL PROTECTED]
www: http://www.igd.fhg.de


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Correct version of mod_jk.dll for Apache 2.0.39

2002-07-12 Thread Gunter D'Hondt

Who can send the correct version mod_jk.dll for Apache 2.0.39???
As I can see a lot of people are experiencing the same problem probably coz
of the wrong (older) version of mod_jk.dll so if someone is running
apache2.0.39 with mod_jk.dll running okay then send us your
apache/modules/mod_jk.dll pls!

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Frederick Aubert
Sent: vrijdag 12 juli 2002 13:44
To: Tomcat Users List
Subject: Re: Cannot load mod_jk.dll into server!


Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the path
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and Tomcat
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does it
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...


 Hi Gunter,

 Try the following which I know works (change the paths to suit your
setup)

 put the following in Apache's httpd.conf:

 Include C:/Program Files/Apache
 Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf


 put the following in Tomcat's mod_jk.conf:

 IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
 /IfModule

 JkWorkersFile
 c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
 JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log

 JkLogLevel info

 VirtualHost localhost
ServerName localhost

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
 /VirtualHost


 Put the following in your workers.properties:

 workers.tomcat_home=$(CATALINA_HOME)
 workers.java_home=$(JAVA_HOME)
 ps=\
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.ajp13.cachesize=8
 worker.ajp14.port=8011
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=mysupersecretkey
 worker.ajp14.credentials=mysuperveryrandomentropy
 worker.ajp14.lbfactor=1
 worker.ajp14.cachesize=8
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
ta
 lina.jar
 worker.inprocess.cmd_line=start

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
)j
 vm.dll

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr


 There you go.  If that doesn't work, something else is wrong.

 Jake



 At 10:28 AM 7/11/2002 +0200, you wrote:
 I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll
but
 with no luck. But when I check the file properties of the dll then I can
see
 that Last accessed is always set to the datetime when I last ran
apache
 -t so I think this should mean that apache DOES find the dll but cannot
 load it properly...

 Can anybody help me out?

 Gunter


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 10:08
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!


 Obviously your mod_jk.conf is found.

 One guess: Make shure that c:\Apache\modules\mod_jk.dll
 is exactly equal to the real path (including case), normally
 windows isn't case sensitive but some applications are.
 (Can't remember if this is a problem for apache, my last
 install of apache under windows is to long ago)

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 11. Juli 2002 09:38
 An: 'Tomcat Users List'
 Betreff: RE: Cannot load mod_jk.dll into server!


 IfModule !mod_jk.c
   LoadModule jk_module c:\Apache\modules\mod_jk.dll
 /IfModule

 JkWorkersFile c:\progra~1\apache~1.0\conf\jk\workers.properties
 JkLogFile c:\progra~1\apache~1.0\logs\mod_jk.log

 JkLogLevel info

 VirtualHost localhost
 ServerName localhost

 JkMount /webdav ajp13
 JkMount /webdav/* ajp13

 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13

 JkMount /examples ajp13
 JkMount /examples/* ajp13

 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost



 Gunter



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 

AW: Cannot load mod_jk.dll into server!

2002-07-12 Thread Andreas Lehmann

Just a tip...

Did you have any spaces in the directory path to apache.exe? If so - mod_jk.dll would 
not load!!


bye
Andreas

-Ursprüngliche Nachricht-
Von:Frederick Aubert [SMTP:[EMAIL PROTECTED]]
Gesendet am:Freitag, 12. Juli 2002 13:44
An: Tomcat Users List
Betreff:Re: Cannot load mod_jk.dll into server!

Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the path
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and Tomcat
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does it
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...


 Hi Gunter,
 
 Try the following which I know works (change the paths to suit your 
setup)
 
 put the following in Apache's httpd.conf:
 
 Include C:/Program Files/Apache
 Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf
 
 
 put the following in Tomcat's mod_jk.conf:
 
 IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
 /IfModule
 
 JkWorkersFile 
 c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
 JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log
 
 JkLogLevel info
 
 VirtualHost localhost
ServerName localhost
 
JkMount /webdav ajp13
JkMount /webdav/* ajp13
 
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
 
JkMount /examples ajp13
JkMount /examples/* ajp13
 
JkMount /manager ajp13
JkMount /manager/* ajp13
 /VirtualHost
 
 
 Put the following in your workers.properties:
 
 workers.tomcat_home=$(CATALINA_HOME)
 workers.java_home=$(JAVA_HOME)
 ps=\
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.ajp13.cachesize=8
 worker.ajp14.port=8011
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=mysupersecretkey
 worker.ajp14.credentials=mysuperveryrandomentropy
 worker.ajp14.lbfactor=1
 worker.ajp14.cachesize=8
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni
 
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)cata
 lina.jar
 worker.inprocess.cmd_line=start
 
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)j
 vm.dll
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 
 There you go.  If that doesn't work, something else is wrong.
 
 Jake
 
 
 
 At 10:28 AM 7/11/2002 +0200, you wrote:
 I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll but
 with no luck. But when I check the file properties of the dll then I can see
 that Last accessed is always set to the datetime when I last ran apache
 -t so I think this should mean that apache DOES find the dll but cannot
 load it properly...
 
 Can anybody help me out?
 
 Gunter
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 10:08
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!
 
 
 Obviously your mod_jk.conf is found.
 
 One guess: Make shure that c:\Apache\modules\mod_jk.dll
 is exactly equal to the real path (including case), normally
 windows isn't case sensitive but some applications are.
 (Can't remember if this is a problem for apache, my last
 install of apache under windows is to long ago)
 
 -Ursprüngliche Nachricht-
 

Re: Correct version of mod_jk.dll for Apache 2.0.39

2002-07-12 Thread Nikolas A. Rathert

Is this not the newest version for Win32 based systems?

http://www.acg-gmbh.de/mod_jk/

Cheers,

Nick

Did you finally switch to the other Apache Version?

Gunter D'Hondt wrote:
 Who can send the correct version mod_jk.dll for Apache 2.0.39???
 As I can see a lot of people are experiencing the same problem probably coz
 of the wrong (older) version of mod_jk.dll so if someone is running
 apache2.0.39 with mod_jk.dll running okay then send us your
 apache/modules/mod_jk.dll pls!
 
 Gunter
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Frederick Aubert
 Sent: vrijdag 12 juli 2002 13:44
 To: Tomcat Users List
 Subject: Re: Cannot load mod_jk.dll into server!
 
 
 Hi,
 
 I am experiencing more or less the same problem. I just got an hand on a
 mod_jk version (120kb) and Apache is telling me it can't load it properly
 (module not found) although the mod_jk.dll is correctly located and the path
 is set to match its location...
 
 However a couple of monthes ago, I did succeed with Apache 2.0.35 and Tomcat
 4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
 work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
 then I am being told to check for a newer version of the mod_jk.dll. Does it
 make any sense?
 
 If anyone succeeded, or did succeed with any other connector under these
 settings, then please write me ;O)
 
 Sincerely, Frederick Aubert
 
 PS: my settings are pretty much the same as the one Jacob's suggested...
 
 
 
Hi Gunter,

Try the following which I know works (change the paths to suit your
 
 setup)
 
put the following in Apache's httpd.conf:

Include C:/Program Files/Apache
Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf


put the following in Tomcat's mod_jk.conf:

IfModule !mod_jk.c
 LoadModule jk_module modules/mod_jk.dll
/IfModule

JkWorkersFile
c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
   ServerName localhost

   JkMount /webdav ajp13
   JkMount /webdav/* ajp13

   JkMount /tomcat-docs ajp13
   JkMount /tomcat-docs/* ajp13

   JkMount /examples ajp13
   JkMount /examples/* ajp13

   JkMount /manager ajp13
   JkMount /manager/* ajp13
/VirtualHost


Put the following in your workers.properties:

workers.tomcat_home=$(CATALINA_HOME)
workers.java_home=$(JAVA_HOME)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.cachesize=8
worker.ajp14.port=8011
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=mysupersecretkey
worker.ajp14.credentials=mysuperveryrandomentropy
worker.ajp14.lbfactor=1
worker.ajp14.cachesize=8
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni

 
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
 ta
 
lina.jar
worker.inprocess.cmd_line=start

 
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
 )j
 
vm.dll

 
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 

There you go.  If that doesn't work, something else is wrong.

Jake



At 10:28 AM 7/11/2002 +0200, you wrote:

I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll

 but
 
with no luck. But when I check the file properties of the dll then I can

 see
 
that Last accessed is always set to the datetime when I last ran

 apache
 
-t so I think this should mean that apache DOES find the dll but cannot
load it properly...

Can anybody help me out?

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ralph Einfeldt
Sent: donderdag 11 juli 2002 10:08
To: Tomcat Users List
Subject: AW: Cannot load mod_jk.dll into server!


Obviously your mod_jk.conf is found.

One guess: Make shure that c:\Apache\modules\mod_jk.dll
is exactly equal to the real path (including case), normally
windows isn't case sensitive but some applications are.
(Can't remember if this is a problem for apache, my last
install of apache under windows is to long ago)


-Ursprüngliche Nachricht-
Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 09:38
An: 'Tomcat Users List'
Betreff: RE: Cannot load mod_jk.dll into server!


IfModule !mod_jk.c
  LoadModule jk_module c:\Apache\modules\mod_jk.dll
/IfModule

JkWorkersFile c:\progra~1\apache~1.0\conf\jk\workers.properties
JkLogFile c:\progra~1\apache~1.0\logs\mod_jk.log

JkLogLevel info

VirtualHost localhost
ServerName localhost

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /manager ajp13
JkMount /manager/* 

RE: Cannot load mod_jk.dll into server!

2002-07-12 Thread Gunter D'Hondt

I've got Apache installed under C:\Apache\ so that shouldn't do it for
me I can see in the file properties of mod_jk.dll that it has been
accesssed but that's all...

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Andreas Lehmann
Sent: vrijdag 12 juli 2002 13:55
To: 'Tomcat Users List'
Subject: AW: Cannot load mod_jk.dll into server!


Just a tip...

Did you have any spaces in the directory path to apache.exe? If so -
mod_jk.dll would not load!!


bye
Andreas

-Ursprüngliche Nachricht-
Von:Frederick Aubert [SMTP:[EMAIL PROTECTED]]
Gesendet am:Freitag, 12. Juli 2002 13:44
An: Tomcat Users List
Betreff:Re: Cannot load mod_jk.dll into server!

Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the
path
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and
Tomcat
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does
it
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...


 Hi Gunter,

 Try the following which I know works (change the paths to suit your
setup)

 put the following in Apache's httpd.conf:

 Include C:/Program Files/Apache
 Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf


 put the following in Tomcat's mod_jk.conf:

 IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
 /IfModule

 JkWorkersFile
 c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
 JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log

 JkLogLevel info

 VirtualHost localhost
ServerName localhost

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
 /VirtualHost


 Put the following in your workers.properties:

 workers.tomcat_home=$(CATALINA_HOME)
 workers.java_home=$(JAVA_HOME)
 ps=\
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.ajp13.cachesize=8
 worker.ajp14.port=8011
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=mysupersecretkey
 worker.ajp14.credentials=mysuperveryrandomentropy
 worker.ajp14.lbfactor=1
 worker.ajp14.cachesize=8
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
ta
 lina.jar
 worker.inprocess.cmd_line=start

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
)j
 vm.dll

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr


 There you go.  If that doesn't work, something else is wrong.

 Jake



 At 10:28 AM 7/11/2002 +0200, you wrote:
 I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll
but
 with no luck. But when I check the file properties of the dll then I can
see
 that Last accessed is always set to the datetime when I last ran
apache
 -t so I think this should mean that apache DOES find the dll but cannot
 load it properly...

 Can anybody help me out?

 Gunter


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 10:08
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!


 Obviously your mod_jk.conf is found.

 One 

Re: intranet application - plz help

2002-07-12 Thread Christoph Fischer

make an additional conncetor in server.xml:

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8085 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

Tomcat now listens on port 80 and 8085.

You can also rederict using the virtual-host:

  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps unpackWARs=false
  Host name=Intranet-IP debug=0 appBase=webapps/intranet 
unpackWARs=false

Hopes it helps
Chris

# Lalit Nagpal # wrote:

how to run an application on an intranet. I want my
servlets to be accessible only for the comps on my
LAN. I am using tomcat 4 - 80 port is for our website
now do i have to use some other port for intranet
application - if yes how to configure tomcat to listen
to two ports.

Thanks is advance
Lalit

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

  



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Error 500? ClassNotFound - org.apache.jsp.frames ?

2002-07-12 Thread Daniel Leong

Hi,

I've just tried running a site I develop on 4.1.7 beta, and it's stopped
working.  It worked on 4.0.3 just fine.  The error I'm getting is (root
cause) java.lang.ClassNotFoundException: org.apache.jsp.frames$jsp.  Trace
provided below.  Very dull.

Can anyone suggest what I should look for in my code, or if this is a known
current bug?

Many thanks,

Dan

Stack trace :-
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:515)
at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
a:144)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
87)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:425)
at
org.apache.jsp.newcarscontroller$jsp._jspService(newcarscontroller$jsp.java:
81)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
02)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.ClassNotFoundException: org.apache.jsp.frames$jsp
at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209)
at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
at

RE: JNI and Tomcat Classloaders

2002-07-12 Thread Cox, Charlie

yes, it is true that jni_tester will only be loaded once. 

Your code that uses Bridge only has to be in the \lib directory if Bridge
uses any of those classes. If your other code is just calling Bridge, it can
go into the web-inf/lib for your context.

Charlie


 -Original Message-
 From: Jhair Tocancipa Triana [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 12, 2002 4:49 AM
 To: [EMAIL PROTECTED]
 Subject: JNI and Tomcat Classloaders
 
 
 Hi,
 
 I do have the following problem. Suppose the following class:
 
 class Bridge{
/* ... */
static{
   System.loadLibrary( jni_tester );
}   
/* ... */
 }
 
 It is possible to create/destroy  instances of Bridge inside Tomcat in
 such a way that the shared library jni_tester is loaded only once?
 
 The  shared  library  and  the   code  which  uses  Bridge  reside  in
 $CATALINA_HOME/lib, so this code should  be loaded by the shared class
 loader[1]. 
 
 Hence jni_tester will be loaded  by the shared class loader only once.
 Is that true?   Or should I do something else to  make the native code
 to be loaded only once? (I store state information in the native code)
 
 Thanks in advance for your help,
 
 -- 
 --Jhair
 
 [1] 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Few questions with XSS vulnerability

2002-07-12 Thread daniel . jarboe

Regarding the recent XSS vulnerability reported with Tomcat 4.0.3.  The 
recommended solution is to upgrade to 4.1.3-beta (I see 4.1.7-beta has 
been released).  The alert doesn't mention any other version of apache 
tomcat besides 4.0.3, but probably 4.0.4 is vulnerable too?  I'm on a 
linux platform and just upgraded to 4.0.4 release via rpm yesterday 
(bravo for the FHS changes).  Tomcat and apache httpd are talking with 
mod_webapp.so.

Since I can't upgrade to the latest beta (trying to stick with RPM's), 
the suggested workaround is to unmap /servlet/ in tomcat's web.xml.  By 
unmapping that, what changes would I likely need to make in the tomcat 
or webapps web.xml to avoid 404 errors (i.e. The requested resource 
(/blah/) is not available.)?  Would I need to do this for each .jsp in 
that webapp?  Beyond that, am I also likely to need to add an entry 
WEB-INF/web.xml for each .jar in its WEB-INF/lib?  What would these 
entries be if any?

Thanks for any and all help.
~ Daniel


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: getRemoteUser in Tomcat 3.3.1 does not work

2002-07-12 Thread Larry Isaacs

To use Apache's authentication, you must update the
Ajp13Connector to set tomcatAuthentication false in
your server.xml (it defaults true), i.e.:

Ajp13Connector port=8009 tomcatAuthentication=false /

There is a little bit of documentation concerning this
in the server.xml, above the Ajp13Connector element.  You can
find a little more documentation here:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#Ajp13Connector

Once tomcatAuthentication is set false, any security constraints in
web.xml files will no longer work.  This probably won't impact
your web applications, but the security examples will stop
functioning.

Cheers,
Larry

 -Original Message-
 From: Andreas Lehmann [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 12, 2002 5:43 AM
 To: 'Tomcat Users List'
 Subject: getRemoteUser in Tomcat 3.3.1 does not work
 
 
 Hi,
 
 I am trying to get the remote user under tomcat 3.3.1 and 
 apache 1.3.12 on NT4 and Win2k.
 The authentification is done by apache and the ntlm module.
 
 If I try getRemoteUser() I only get a null value.
 I tryed NTLM and BASIC authentification - nothing works.
 I tryed various mod_jk.dll Versions - nothing helps.
 I tryed Tomcat 3.2.3 - everything works fine.
 
 Whats the problem with tomcat 3.3.1? Is this a bug or 
 bevavior by design?
 
 cu
 Andreas
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Correct version of mod_jk.dll for Apache 2.0.39

2002-07-12 Thread Gunter D'Hondt

YES!!! The mod_jk.dll on the link below is the one that works for me and I'm
using 2.0.39!
The mod_jk.dll that I was using was 120kb while this one is about 70kb

Gunter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Nikolas A. Rathert
Sent: vrijdag 12 juli 2002 13:56
To: Tomcat Users List
Subject: Re: Correct version of mod_jk.dll for Apache 2.0.39


Is this not the newest version for Win32 based systems?

http://www.acg-gmbh.de/mod_jk/

Cheers,

Nick

Did you finally switch to the other Apache Version?

Gunter D'Hondt wrote:
 Who can send the correct version mod_jk.dll for Apache 2.0.39???
 As I can see a lot of people are experiencing the same problem probably
coz
 of the wrong (older) version of mod_jk.dll so if someone is running
 apache2.0.39 with mod_jk.dll running okay then send us your
 apache/modules/mod_jk.dll pls!

 Gunter


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Frederick Aubert
 Sent: vrijdag 12 juli 2002 13:44
 To: Tomcat Users List
 Subject: Re: Cannot load mod_jk.dll into server!


 Hi,

 I am experiencing more or less the same problem. I just got an hand on a
 mod_jk version (120kb) and Apache is telling me it can't load it properly
 (module not found) although the mod_jk.dll is correctly located and the
path
 is set to match its location...

 However a couple of monthes ago, I did succeed with Apache 2.0.35 and
Tomcat
 4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it
doesn't
 work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
 then I am being told to check for a newer version of the mod_jk.dll. Does
it
 make any sense?

 If anyone succeeded, or did succeed with any other connector under these
 settings, then please write me ;O)

 Sincerely, Frederick Aubert

 PS: my settings are pretty much the same as the one Jacob's suggested...



Hi Gunter,

Try the following which I know works (change the paths to suit your

 setup)

put the following in Apache's httpd.conf:

Include C:/Program Files/Apache
Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf


put the following in Tomcat's mod_jk.conf:

IfModule !mod_jk.c
 LoadModule jk_module modules/mod_jk.dll
/IfModule

JkWorkersFile
c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
   ServerName localhost

   JkMount /webdav ajp13
   JkMount /webdav/* ajp13

   JkMount /tomcat-docs ajp13
   JkMount /tomcat-docs/* ajp13

   JkMount /examples ajp13
   JkMount /examples/* ajp13

   JkMount /manager ajp13
   JkMount /manager/* ajp13
/VirtualHost


Put the following in your workers.properties:

workers.tomcat_home=$(CATALINA_HOME)
workers.java_home=$(JAVA_HOME)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.cachesize=8
worker.ajp14.port=8011
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=mysupersecretkey
worker.ajp14.credentials=mysuperveryrandomentropy
worker.ajp14.lbfactor=1
worker.ajp14.cachesize=8
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni



worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
 ta

lina.jar
worker.inprocess.cmd_line=start



worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
 )j

vm.dll



worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout


worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr


There you go.  If that doesn't work, something else is wrong.

Jake



At 10:28 AM 7/11/2002 +0200, you wrote:

I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll

 but

with no luck. But when I check the file properties of the dll then I can

 see

that Last accessed is always set to the datetime when I last ran

 apache

-t so I think this should mean that apache DOES find the dll but cannot
load it properly...

Can anybody help me out?

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ralph Einfeldt
Sent: donderdag 11 juli 2002 10:08
To: Tomcat Users List
Subject: AW: Cannot load mod_jk.dll into server!


Obviously your mod_jk.conf is found.

One guess: Make shure that c:\Apache\modules\mod_jk.dll
is exactly equal to the real path (including case), normally
windows isn't case sensitive but some applications are.
(Can't remember if this is a problem for apache, my last
install of apache under windows is to long ago)


-Ursprüngliche Nachricht-
Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 09:38
An: 'Tomcat Users List'
Betreff: RE: Cannot load mod_jk.dll into server!


IfModule !mod_jk.c
  LoadModule jk_module c:\Apache\modules\mod_jk.dll
/IfModule

JkWorkersFile 

Differences between versions

2002-07-12 Thread Iain Downie

Would there be any huge differences between Tomcat 4.01 and Tomcat 4.03? I'm
using a webapp on a Linux machine with 4.03 on it. I can't get it to work on
an NT machine with 4.01 on it.

Cheers
Iain


Migration Watch
http://www.bto.org/migwatch



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Correct version of mod_jk.dll for Apache 2.0.39

2002-07-12 Thread Makota, Tarik

Here you go
or visit:
http://www.acg-gmbh.de/mod_jk/

Tarik

-Original Message-
From: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 7:49 AM
To: 'Tomcat Users List'
Subject: Correct version of mod_jk.dll for Apache 2.0.39 


Who can send the correct version mod_jk.dll for Apache 2.0.39???
As I can see a lot of people are experiencing the same problem probably coz
of the wrong (older) version of mod_jk.dll so if someone is running
apache2.0.39 with mod_jk.dll running okay then send us your
apache/modules/mod_jk.dll pls!

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Frederick Aubert
Sent: vrijdag 12 juli 2002 13:44
To: Tomcat Users List
Subject: Re: Cannot load mod_jk.dll into server!


Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the path
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and Tomcat
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does it
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...


 Hi Gunter,

 Try the following which I know works (change the paths to suit your
setup)

 put the following in Apache's httpd.conf:

 Include C:/Program Files/Apache
 Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf


 put the following in Tomcat's mod_jk.conf:

 IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
 /IfModule

 JkWorkersFile
 c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
 JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log

 JkLogLevel info

 VirtualHost localhost
ServerName localhost

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
 /VirtualHost


 Put the following in your workers.properties:

 workers.tomcat_home=$(CATALINA_HOME)
 workers.java_home=$(JAVA_HOME)
 ps=\
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.ajp13.cachesize=8
 worker.ajp14.port=8011
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=mysupersecretkey
 worker.ajp14.credentials=mysuperveryrandomentropy
 worker.ajp14.lbfactor=1
 worker.ajp14.cachesize=8
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
ta
 lina.jar
 worker.inprocess.cmd_line=start

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
)j
 vm.dll

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr


 There you go.  If that doesn't work, something else is wrong.

 Jake



 At 10:28 AM 7/11/2002 +0200, you wrote:
 I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll
but
 with no luck. But when I check the file properties of the dll then I can
see
 that Last accessed is always set to the datetime when I last ran
apache
 -t so I think this should mean that apache DOES find the dll but cannot
 load it properly...

 Can anybody help me out?

 Gunter


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 10:08
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!


 Obviously your mod_jk.conf is found.

 One guess: Make shure that c:\Apache\modules\mod_jk.dll
 is exactly equal to the real path (including case), normally
 windows isn't case sensitive but some applications are.
 (Can't remember if this is a problem for apache, my last
 install of apache under windows is to long ago)

 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 11. Juli 2002 09:38
 An: 'Tomcat Users List'
 Betreff: RE: Cannot load mod_jk.dll into server!


 IfModule !mod_jk.c
   LoadModule jk_module c:\Apache\modules\mod_jk.dll
 /IfModule

 JkWorkersFile c:\progra~1\apache~1.0\conf\jk\workers.properties
 JkLogFile c:\progra~1\apache~1.0\logs\mod_jk.log

 JkLogLevel info

 VirtualHost localhost
 ServerName localhost

 JkMount /webdav ajp13
 JkMount /webdav/* ajp13

 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13

 JkMount /examples 

Re: Classes in WEB-INF/classes not visible to JSP pages

2002-07-12 Thread rsequeira


I don't use JDK1.4. But if you get an error while importing classes without
a package name, it may be a bug. And if you can confirm that you should
probably file it with Sun. As for you packaging your classes, any specific
reason for you to package you classes in org.apache.jsp? I think what Larry
meant was you create you own package name.

RS





Vel [EMAIL PROTECTED] on 07/12/2002 05:40:14 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:Re: Classes in WEB-INF/classes not visible to JSP pages

Hi Larry and RS,

Thanks for your feedback.

I did try importing the unpackaged classes, but with jdk 1.4 it gives an
error that '.' is not found in the import statement, meaning i have to
package.

I will do it hereafter, but for my older applications i can not use
4.x.x and should be satisfied with 3.x.x and jdk 1.3, sad.

May i know the reason behind packaging the jsps into org.apchae.jsp?, if
it isn't there it would be cool!

Thanks again
vel


[EMAIL PROTECTED] wrote:

With Tomcat 4.x.x, you need import unpackged classes as well.

RS





Larry Meadors [EMAIL PROTECTED] on 07/11/2002 09:36:05 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Re: Classes in WEB-INF/classes not visible to JSP pages

I do not know if I would consider this a bug. There was a related post
just yesterday. If I understood it correctly, esentially, your jsp gets
compiled as being in the org.apache.jsp package. Unless you explicitly
import your unpackaged classes, they are expected to be in the
org.apache.jsp package as well.

Drink the Kool-Aid...package your classes.

Larry

[EMAIL PROTECTED] 

I could not compile jsp pages which handle classes found in
WEB-INF/classes directory, 'class not found'. The classes are not
packaged but when packaged, the jsp pages works fine. The thing is, it
adds org.apache.jsp package to the class name?


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]










--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


.




--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]










--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: LD_LIBRARY_PATH

2002-07-12 Thread Fabio Mengue

Hi,

Create in $TOMCAT/bin a file called setenv.sh. In there, put 
LD_LIBRARY_PATH and any other env variable you want (I have the entire 
db2profile file on setenv.sh).

Fabio.

Johnny wrote:

 To all Tomcat users :

 How can I set LD_LIBRARY_PATH in setclasspath.sh? or is there any alternate
way to set the LD_LIBRARY_PATH in Tomcat 4.0.3 in Linux?

 Regards,
 Johnny.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


  


-- 
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
Quem se mata de trabalhar merece mesmo morrer. - Millor




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Decode Interceptor: charset from session. How to get rid of it in tomcat 3.3

2002-07-12 Thread Larry Isaacs


DecodeInterceptor debug=-1 /

worked for me.

Larry

 -Original Message-
 From: Antonio Aparicio [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 12, 2002 7:14 AM
 To: [EMAIL PROTECTED]
 Subject: Decode Interceptor: charset from session. How to get 
 rid of it in tomcat 3.3
 
 
 As you can read in the subect, this trace or whatever, is 
 appearing in the 
 console on everyr request made to tomcat(v3.3, novell6,jdk1.3.0.1).
 I've tried everything with the decodeinterceptor entry (ie: 
 debug -1 or 0) 
 in server.xml, but it is still there. I´ve readt it's fixed 
 in Tomcat 3.3.1, 
 but what with 3.3?
 By the way, if the only solution is going for the upgrade, 
 which is the
 latest version of tomcat available for novell 6?
 Thanks in advance.
 Anxiously waiting for your answers,
 Antonio.
 
 
 
 
 
 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Correct version of mod_jk.dll for Apache 2.0.39

2002-07-12 Thread Nikolas A. Rathert

The 120 kB is for Apache 1.3.x Version not for 2.0.x

Gunter D'Hondt wrote:
 YES!!! The mod_jk.dll on the link below is the one that works for me and I'm
 using 2.0.39!
 The mod_jk.dll that I was using was 120kb while this one is about 70kb
 
 Gunter
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Nikolas A. Rathert
 Sent: vrijdag 12 juli 2002 13:56
 To: Tomcat Users List
 Subject: Re: Correct version of mod_jk.dll for Apache 2.0.39
 
 
 Is this not the newest version for Win32 based systems?
 
 http://www.acg-gmbh.de/mod_jk/
 
 Cheers,
 
 Nick
 
 Did you finally switch to the other Apache Version?
 
 Gunter D'Hondt wrote:
 
Who can send the correct version mod_jk.dll for Apache 2.0.39???
As I can see a lot of people are experiencing the same problem probably
 
 coz
 
of the wrong (older) version of mod_jk.dll so if someone is running
apache2.0.39 with mod_jk.dll running okay then send us your
apache/modules/mod_jk.dll pls!

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Frederick Aubert
Sent: vrijdag 12 juli 2002 13:44
To: Tomcat Users List
Subject: Re: Cannot load mod_jk.dll into server!


Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the
 
 path
 
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and
 
 Tomcat
 
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it
 
 doesn't
 
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does
 
 it
 
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...




Hi Gunter,

Try the following which I know works (change the paths to suit your

setup)


put the following in Apache's httpd.conf:

Include C:/Program Files/Apache
Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf


put the following in Tomcat's mod_jk.conf:

IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.dll
/IfModule

JkWorkersFile
c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
  ServerName localhost

  JkMount /webdav ajp13
  JkMount /webdav/* ajp13

  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13

  JkMount /examples ajp13
  JkMount /examples/* ajp13

  JkMount /manager ajp13
  JkMount /manager/* ajp13
/VirtualHost


Put the following in your workers.properties:

workers.tomcat_home=$(CATALINA_HOME)
workers.java_home=$(JAVA_HOME)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.cachesize=8
worker.ajp14.port=8011
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=mysupersecretkey
worker.ajp14.credentials=mysuperveryrandomentropy
worker.ajp14.lbfactor=1
worker.ajp14.cachesize=8
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni



 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca
 
ta


lina.jar
worker.inprocess.cmd_line=start



 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps
 
)j


vm.dll



 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 

 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
There you go.  If that doesn't work, something else is wrong.

Jake



At 10:28 AM 7/11/2002 +0200, you wrote:


I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll

but


with no luck. But when I check the file properties of the dll then I can

see


that Last accessed is always set to the datetime when I last ran

apache


-t so I think this should mean that apache DOES find the dll but cannot
load it properly...

Can anybody help me out?

Gunter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Ralph Einfeldt
Sent: donderdag 11 juli 2002 10:08
To: Tomcat Users List
Subject: AW: Cannot load mod_jk.dll into server!


Obviously your mod_jk.conf is found.

One guess: Make shure that c:\Apache\modules\mod_jk.dll
is exactly equal to the real path (including case), normally
windows isn't case sensitive but some applications are.
(Can't remember if this is a problem for apache, my last
install of apache under windows is to long ago)



-Ursprüngliche Nachricht-
Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 09:38
An: 'Tomcat Users List'
Betreff: RE: Cannot load mod_jk.dll into server!


IfModule 

AW: Few questions with XSS vulnerability

2002-07-12 Thread Ralph Einfeldt

See below:

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 12. Juli 2002 14:18
 An: [EMAIL PROTECTED]
 Betreff: Few questions with XSS vulnerability
 
 
 Since I can't upgrade to the latest beta (trying to stick 
 with RPM's), the suggested workaround is to unmap /servlet/ in
 tomcat's web.xml. By unmapping that, what changes would I likely 
 need to make in the tomcat or webapps web.xml to avoid 404 errors

As I understand it, it's enough to disable the generic invoker servlet. 
(That mean that you have to define all your servlets explicitly if 
that's not already the case)

 Would I need to do this for each .jsp in  that webapp?  

No, you don't need the invoker servlet to run jsp's.
(The jsp servlet is defined explicitly per default)

 Beyond that, am I also likely to need to add an entry 
 WEB-INF/web.xml for each .jar in its WEB-INF/lib?  What 
 would these entries be if any?

When tomcat starts it includes automatically all jar files 
in the lib directories into the classpath.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Two Questons about Tomcat

2002-07-12 Thread Serdar BOZDA

Hi,
I have two questions about tomcat.

1. Can I access from browser to a folder under the WEB-INF folder.
2. How can I add another server (on port 85 for instance) in Tomcat

thanks in advance,
Serdar 



Error - Please Help

2002-07-12 Thread Sunit Munjal

Hi,
I just installed Tomcat and setup JDK, but can't see any thing.  I always get an 
error.  I was trying the same thing in WebLogic before, but had an error over there.  
I can view the index.html page fine on my local host, but when I try to view a JSP 
page.  I ge the following error:
The server encountered an internal error (Internal Server Error) that prevented it 
from fulfilling this request.
javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
  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:190)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  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.StandardContext.invoke(StandardContext.java:2347)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  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.StandardEngineValve.invoke(StandardEngineValve.java:174)
  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.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
  at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
  at java.lang.Thread.run(Unknown Source)


root cause

java.lang.NoClassDefFoundError: sun/tools/javac/Main
  at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
  at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
  at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
  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:190)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at 

Re: Error - Please Help

2002-07-12 Thread Nikolas A. Rathert

It seems to be the wrong JDK-Version. Try J2SDK1.4
It looks like you only installed the run-time. But this is not 
sufficient. You need the whole thing with javac, javaw etc.

Cheers,

Nick

Sunit Munjal wrote:
 Hi,
 I just installed Tomcat and setup JDK, but can't see any thing.  I always get an 
error.  I was trying the same thing in WebLogic before, but had an error over there.  
I can view the index.html page fine on my local host, but when I try to view a JSP 
page.  I ge the following error:
 The server encountered an internal error (Internal Server Error) that prevented it 
from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   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:190)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   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.StandardContext.invoke(StandardContext.java:2347)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   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.StandardEngineValve.invoke(StandardEngineValve.java:174)
   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.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
   at java.lang.Thread.run(Unknown Source)
 
 
 root cause
 
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   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:190)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 

RE: Error - Please Help

2002-07-12 Thread Turner, John


Please provide more information.

Have you followed the installation instructions and HOW-TO documents?

What port is tomcat listening on on your computer?  Are you using a
webserver in conjunction with tomcat, or just tomcat?

What are the values of JAVA_HOME and CATALINA_HOME on your computer?

Can you view/access the tomcat examples URL?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: Error - Please Help


Hi,
I just installed Tomcat and setup JDK, but can't see any thing.  I always
get an error.  I was trying the same thing in WebLogic before, but had an
error over there.  I can view the index.html page fine on my local host, but
when I try to view a JSP page.  I ge the following error:
The server encountered an internal error (Internal Server Error) that
prevented it from fulfilling this request.
javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  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.ja
va:190)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  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.StandardContext.invoke(StandardContext.java:2347)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  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.StandardEngineValve.invoke(StandardEngineValve.java
:174)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
  at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
  at java.lang.Thread.run(Unknown Source)


root cause

java.lang.NoClassDefFoundError: sun/tools/javac/Main
  at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
  at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:176)
  at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:188)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at

AW: Two Questions about Tomcat

2002-07-12 Thread Ralph Einfeldt

See below:

 -Ursprüngliche Nachricht-
 Von: Serdar BOZDAG [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 12. Juli 2002 15:18
 An: tomcatGroup
 Betreff: Two Questions about Tomcat
 
 1. Can I access from browser to a folder under the WEB-INF folder.

No.

 2. How can I add another server (on port 85 for instance) in Tomcat

If you use tomcat standlone, define a second http connector with this 
port.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Error - Please Help

2002-07-12 Thread Reynir Hübner

put tools.jar from your jsdk into tomcats classpath (for example into 
tomcat/common/lib/ )
that should fix it

-reynir

 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 13:18
 To: [EMAIL PROTECTED]
 Subject: Error - Please Help
 
 
 Hi,
 I just installed Tomcat and setup JDK, but can't see any 
 thing.  I always get an error.  I was trying the same thing 
 in WebLogic before, but had an error over there.  I can view 
 the index.html page fine on my local host, but when I try to 
 view a JSP page.  I ge the following error:
 The server encountered an internal error (Internal Server 
 Error) that prevented it from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1027)
   at 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Unknown Source)
 
 
 root cause
 
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at 
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
 iler.java:136)
   at 
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
   at 
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
   at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
 ecessary(JspServlet.java:176)
   at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.java:188)
   at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:381)
   at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 

Re: Error - Please Help

2002-07-12 Thread Sunit Munjal


I do have JDK 1.4 installed.  How do I get javac,  javaw.  I just went to the sun site 
and downloaded an exe for J2RE1.4.  If this is the wrong one, which one do I need to 
download?


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk.so for HP-UX 11

2002-07-12 Thread John Whitley

Trigo,


We succesfully use mod_jk.so in the HP version of Apache 1.3.26 on both 
11.00 and 11.11i. The recently fixed versions are at

FTP Access: ftp://apache:[EMAIL PROTECTED]/

I don't  know if these have been translated in to product bundles yet.

John

PELOQUIN,JEFFREY (Non-HP-Boise,ex1) wrote:

Trigo,

You could try downloading the HP provided apache/tomcat located at
www.hp.com/products/webservers/apache/index.html

the 2.0 version uses mod_jk and the provided binary might work for you.

We use the warp connection for our work but if I get a chance I might try
compiling mod_jk and see how it works.
what version of apache are you using?

Jeff 

-Original Message-
From: Antonio Trigo [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 4:36 AM
To: Tomcat Users List
Subject: RE: mod_jk.so for HP-UX 11


Ravi,

Can u send me the binary version of mod_jk.so for HP-UX 11.

Thanks in advance.

Trigo


-Original Message-
From: Ravi Verma [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 14 de Junho de 2002 3:37
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: mod_jk.so for HP-UX 11


Dear Friends,

I am in desperate need for a binary version of mod_jk.so for HP-UX 11. If
you gone through this process, could you please share the file with me.

Regards.

Ravi Verma
916 705 3261


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Error - Please Help

2002-07-12 Thread Nikolas A. Rathert

This is wrong. You need J2SDK 1.4. I think this one

http://java.sun.com/j2se/1.4/download.html

is right.

Cheers,

Nick


Sunit Munjal wrote:
 I do have JDK 1.4 installed.  How do I get javac,  javaw.  I just went to the sun 
site and downloaded an exe for J2RE1.4.  If this is the wrong one, which one do I 
need to download?
 
 
 --
 
 This e-mail may contain confidential and/or privileged information. If you are not 
the intended recipient (or have received this e-mail in error) please notify the 
sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


-- 
Nikolas A. Rathert
Fraunhofer Institute for Computer Graphics
e-Learning  Knowledge Management

Fraunhoferstrasse 5
D-64283 Darmstadt
Germany
Fon +49 6151 155 552
Fax +49 6151 155 569
email: [EMAIL PROTECTED]
www: http://www.igd.fhg.de


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Error - Please Help

2002-07-12 Thread Nishant_Awasthi


Sunit j2RE1.4 is just the runtime environment for java.
You need to install J2SDK 1.4 from
http://java.sun.com/j2se/1.4/download.html
From this link download SDK and not JRE version

that is the second column in the table not the first one...
tell me if you have some problems...
--

Nishant Awasthi
Corporate Systems Database Intern
Progressive Insurance
Phone: 440-603-4055 (Work)
Cell: 330-328-0243 (Cell)



   

Sunit 

Munjal  To: Tomcat Users List   

sunit.munjal[EMAIL PROTECTED]  

@db.com cc: (bcc: Nishant Awasthi)

 Subject: Re: Error - Please Help  

07/12/2002 

09:25 AM   

Please 

respond to 

Tomcat Users  

List  

   

   







I do have JDK 1.4 installed.  How do I get javac,  javaw.  I just went to
the sun site and downloaded an exe for J2RE1.4.  If this is the wrong one,
which one do I need to download?


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Error - Please Help

2002-07-12 Thread Sunit Munjal


Yes, I have followed instructions on the installation instructions and HOW-TO 
documents.  I'm just using Tomcat and it is listening on port 80.
What file do I find out from what values JAVA_HOME and CATALINA_HOME on my computer.  
I can't view any examples.

thanks.


 Message History 



From:  Turner, John [EMAIL PROTECTED] on 07/12/2002 09:21 AM AST

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'Tomcat Users List' [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help



Please provide more information.

Have you followed the installation instructions and HOW-TO documents?

What port is tomcat listening on on your computer?  Are you using a
webserver in conjunction with tomcat, or just tomcat?

What are the values of JAVA_HOME and CATALINA_HOME on your computer?

Can you view/access the tomcat examples URL?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: Error - Please Help


Hi,
I just installed Tomcat and setup JDK, but can't see any thing.  I always
get an error.  I was trying the same thing in WebLogic before, but had an
error over there.  I can view the index.html page fine on my local host, but
when I try to view a JSP page.  I ge the following error:
The server encountered an internal error (Internal Server Error) that
prevented it from fulfilling this request.
javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  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.ja
va:190)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  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.StandardContext.invoke(StandardContext.java:2347)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
  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.StandardEngineValve.invoke(StandardEngineValve.java
:174)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
  at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
  at java.lang.Thread.run(Unknown Source)


root cause

java.lang.NoClassDefFoundError: sun/tools/javac/Main
  at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
  at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:176)
  at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:188)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
  at 

RE: Error - Please Help

2002-07-12 Thread Sunit Munjal


Where do I get it.  Its not in my J2RE1.4.0 folder?


 Message History 



From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help


put tools.jar from your jsdk into tomcats classpath (for example into 
tomcat/common/lib/ )
that should fix it

-reynir

 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 13:18
 To: [EMAIL PROTECTED]
 Subject: Error - Please Help


 Hi,
 I just installed Tomcat and setup JDK, but can't see any
 thing.  I always get an error.  I was trying the same thing
 in WebLogic before, but had an error over there.  I can view
 the index.html page fine on my local host, but when I try to
 view a JSP page.  I ge the following error:
 The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1027)
   at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Unknown Source)


 root cause

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
 iler.java:136)
   at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
   at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
 ecessary(JspServlet.java:176)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.java:188)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:381)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 

RE: Error - Please Help

2002-07-12 Thread andre . powroznik

You would better have download the JSDK, not the JRE!

;-)

Andre POWROZNIK

-Original Message-
From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 15:33
To: Tomcat Users List
Subject: RE: Error - Please Help



Where do I get it.  Its not in my J2RE1.4.0 folder?


 Message History 



From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help


put tools.jar from your jsdk into tomcats classpath (for example into 
tomcat/common/lib/ )
that should fix it

-reynir

 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 13:18
 To: [EMAIL PROTECTED]
 Subject: Error - Please Help


 Hi,
 I just installed Tomcat and setup JDK, but can't see any
 thing.  I always get an error.  I was trying the same thing
 in WebLogic before, but had an error over there.  I can view
 the index.html page fine on my local host, but when I try to
 view a JSP page.  I ge the following error:
 The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1027)
   at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Unknown Source)


 root cause

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
 iler.java:136)
   at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
   at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
 ecessary(JspServlet.java:176)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.java:188)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:381)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 

RE: Error - Please Help

2002-07-12 Thread Turner, John


Well, all due respect, but that can't quite be true now, can it?  

Try this document, it explains all the things you need, Windows or UNIX:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

If, after you follow that, you're still having problems getting tomcat to
serve JSPs and servlets, post back to the list.

When installing, just take all the defaults...you should end up with tomcat
running on port 8080 and this URL should work:
http://localhost:8080/examples/


John Turner
[EMAIL PROTECTED]

-Original Message-
From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 9:31 AM
To: Tomcat Users List
Subject: RE: Error - Please Help



Yes, I have followed instructions on the installation instructions and
HOW-TO documents.  I'm just using Tomcat and it is listening on port 80.
What file do I find out from what values JAVA_HOME and CATALINA_HOME on my
computer.  I can't view any examples.

thanks.


 Message History



From:  Turner, John [EMAIL PROTECTED] on 07/12/2002 09:21 AM AST

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'Tomcat Users List' [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help



Please provide more information.

Have you followed the installation instructions and HOW-TO documents?

What port is tomcat listening on on your computer?  Are you using a
webserver in conjunction with tomcat, or just tomcat?

What are the values of JAVA_HOME and CATALINA_HOME on your computer?

Can you view/access the tomcat examples URL?

John Turner
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Two Questions about Tomcat

2002-07-12 Thread Serdar BOZDAG

thanks but when i add another http  connector how will the context elements
know to use the correct connector.

for instance there are two ports (connectors) 80 and 85
and in server.xml
two contexts

   Context path= docBase=c:\folder1 debug=0/
and
   Context path= docBase=c:\folder2 debug=0/

and which page will be shown when I call
http://localhost
and http://localhost:85
thanks..
serdar
- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 12, 2002 4:22 PM
Subject: AW: Two Questions about Tomcat


See below:

 -Ursprüngliche Nachricht-
 Von: Serdar BOZDAG [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 12. Juli 2002 15:18
 An: tomcatGroup
 Betreff: Two Questions about Tomcat

 1. Can I access from browser to a folder under the WEB-INF folder.

No.

 2. How can I add another server (on port 85 for instance) in Tomcat

If you use tomcat standlone, define a second http connector with this
port.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Error - Please Help

2002-07-12 Thread Nikolas A. Rathert

Sorry, I forgot: you need the All languages SDK not the JRE.

Nikolas A. Rathert wrote:
 This is wrong. You need J2SDK 1.4. I think this one
 
 http://java.sun.com/j2se/1.4/download.html
 
 is right.
 
 Cheers,
 
 Nick
 
 
 Sunit Munjal wrote:
 
 I do have JDK 1.4 installed.  How do I get javac,  javaw.  I just went 
 to the sun site and downloaded an exe for J2RE1.4.  If this is the 
 wrong one, which one do I need to download?


 -- 

 This e-mail may contain confidential and/or privileged information. If 
 you are not the intended recipient (or have received this e-mail in 
 error) please notify the sender immediately and destroy this e-mail. 
 Any unauthorized copying, disclosure or distribution of the material 
 in this e-mail is strictly forbidden.



 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]

 
 


-- 
Nikolas A. Rathert
Fraunhofer Institute for Computer Graphics
e-Learning  Knowledge Management

Fraunhoferstrasse 5
D-64283 Darmstadt
Germany
Fon +49 6151 155 552
Fax +49 6151 155 569
email: [EMAIL PROTECTED]
www: http://www.igd.fhg.de


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: AW: Few questions with XSS vulnerability

2002-07-12 Thread daniel . jarboe

Ahh, here's something in my catalina.out.

ERROR reading java.io.FileInputStream@67ff4773
At Line 265 /web-app/servlet-mapping/

ERROR reading java.io.FileInputStream@4190770
At Line 265 /web-app/servlet-mapping/

Apache Tomcat is returning 404's for various URLs. This is after I 
comment out the invoker servlet in tomcat's web.xml (I don't get the 
404's or the errors in my catalina.out with the invoker enabled).  The 
webapps do have servlets defined... since the manager webapp is widely 
distributed I'll go with that one:

  servlet
servlet-nameManager/servlet-name

servlet-classorg.apache.catalina.servlets.ManagerServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
  /servlet

  !-- Define the Manager Servlet Mapping --
  servlet-mapping
servlet-nameManager/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping

And here's another example with the mapping done differently:
servlet
servlet-nameJiveServlet/servlet-name

servlet-classcom.jivesoftware.forum.util.JiveServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameJiveServlet/servlet-name
url-pattern/servlet/JiveServlet/*/url-pattern
/servlet-mapping


I get 404's for both.  Is it something about the servlet-mapping entry 
in these webapp's web.xml which is throwing me off here?

Thanks again,
Daniel



[EMAIL PROTECTED] wrote:

See below:

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 12. Juli 2002 14:18
An: [EMAIL PROTECTED]
Betreff: Few questions with XSS vulnerability


Since I can't upgrade to the latest beta (trying to stick 
with RPM's), the suggested workaround is to unmap /servlet/ in
tomcat's web.xml. By unmapping that, what changes would I likely 
need to make in the tomcat or webapps web.xml to avoid 404 errors


As I understand it, it's enough to disable the generic invoker servlet. 
(That mean that you have to define all your servlets explicitly if 
that's not already the case)

Would I need to do this for each .jsp in  that webapp?  


No, you don't need the invoker servlet to run jsp's.
(The jsp servlet is defined explicitly per default)

Beyond that, am I also likely to need to add an entry 
WEB-INF/web.xml for each .jar in its WEB-INF/lib?  What 
would these entries be if any?


When tomcat starts it includes automatically all jar files 
in the lib directories into the classpath.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





NoSuchMethod at Ajp13Connector.run()

2002-07-12 Thread Gunter D'Hondt

Now that I finally got the mod_jk running with my apache2.0.39 and
tomcat4.0.4 now I'm getting this error in my tomcat dos box:

java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V not
found at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)

I can see the apache/htdocs but when I try http://localhost/examples/ I'm
getting this error...

I just followed the guide on
www.galatea.com/flashguides/apache-tomcat-24-win32.xml

Greetings,
Gunter


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Cannot load mod_jk.dll into server!

2002-07-12 Thread Jacob Kjome

Hi Gunter,

Grab the Apache-2.0.39 compatible version of mod_jk from:
http://www.acg-gmbh.de/mod_jk/

Something changed in the modules between Apache-2.0.36 and 2.0.39 to cause 
the older modules to quit working.

Jake

At 01:43 PM 7/12/2002 +0200, you wrote:
Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the path
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and Tomcat
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does it
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...


  Hi Gunter,
 
  Try the following which I know works (change the paths to suit your 
 setup)
 
  put the following in Apache's httpd.conf:
 
  Include C:/Program Files/Apache
  Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf
 
 
  put the following in Tomcat's mod_jk.conf:
 
  IfModule !mod_jk.c
   LoadModule jk_module modules/mod_jk.dll
  /IfModule
 
  JkWorkersFile
  c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
  JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log
 
  JkLogLevel info
 
  VirtualHost localhost
 ServerName localhost
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
  /VirtualHost
 
 
  Put the following in your workers.properties:
 
  workers.tomcat_home=$(CATALINA_HOME)
  workers.java_home=$(JAVA_HOME)
  ps=\
  worker.list=ajp13, ajp14
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  worker.ajp13.type=ajp13
  worker.ajp13.lbfactor=1
  worker.ajp13.cachesize=8
  worker.ajp14.port=8011
  worker.ajp14.host=localhost
  worker.ajp14.type=ajp14
  worker.ajp14.secretkey=mysupersecretkey
  worker.ajp14.credentials=mysuperveryrandomentropy
  worker.ajp14.lbfactor=1
  worker.ajp14.cachesize=8
  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=ajp13
  worker.inprocess.type=jni
  
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)cata
  lina.jar
  worker.inprocess.cmd_line=start
  
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)j
  vm.dll
  
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
  
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 
  There you go.  If that doesn't work, something else is wrong.
 
  Jake
 
 
 
  At 10:28 AM 7/11/2002 +0200, you wrote:
  I've tried several possible ways of writing 
 C:\Apache\modules\mod_jk.dll but
  with no luck. But when I check the file properties of the dll then I 
 can see
  that Last accessed is always set to the datetime when I last ran apache
  -t so I think this should mean that apache DOES find the dll but cannot
  load it properly...
 
  Can anybody help me out?
 
  Gunter
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On
  Behalf Of Ralph Einfeldt
  Sent: donderdag 11 juli 2002 10:08
  To: Tomcat Users List
  Subject: AW: Cannot load mod_jk.dll into server!
 
 
  Obviously your mod_jk.conf is found.
 
  One guess: Make shure that c:\Apache\modules\mod_jk.dll
  is exactly equal to the real path (including case), normally
  windows isn't case sensitive but some applications are.
  (Can't remember if this is a problem for apache, my last
  install of apache under windows is to long ago)
 
  -Ursprüngliche Nachricht-
  Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 11. Juli 2002 09:38
  An: 'Tomcat Users List'
  Betreff: RE: Cannot load mod_jk.dll into server!
 
 
  IfModule !mod_jk.c
LoadModule jk_module c:\Apache\modules\mod_jk.dll
  /IfModule
 
  JkWorkersFile c:\progra~1\apache~1.0\conf\jk\workers.properties
  JkLogFile c:\progra~1\apache~1.0\logs\mod_jk.log
 
  JkLogLevel info
 
  VirtualHost localhost
  ServerName localhost
 
  JkMount /webdav ajp13
  JkMount /webdav/* ajp13
 
  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13
 
  JkMount /examples ajp13
  JkMount /examples/* ajp13
 
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  /VirtualHost
 
 
 
  Gunter
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On
  Behalf Of Ralph Einfeldt
  Sent: donderdag 11 juli 2002 09:33
  To: Tomcat Users List
  Subject: AW: Cannot load mod_jk.dll into server!
 
 
  Can you 

RE: Error - Please Help

2002-07-12 Thread Sunit Munjal


I just installed the SDK for all languages and it still doesn't work.  Reynir 
mentioned something about putting the tools.jar into my tomcats classpath.  What does  
that mean.  Just copying and pasting the file in tomcat/common/lib/ directory or does 
it involve changing/adding a path somewhere.

Thanks.


 Message History 



From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help


put tools.jar from your jsdk into tomcats classpath (for example into 
tomcat/common/lib/ )
that should fix it

-reynir

 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 13:18
 To: [EMAIL PROTECTED]
 Subject: Error - Please Help


 Hi,
 I just installed Tomcat and setup JDK, but can't see any
 thing.  I always get an error.  I was trying the same thing
 in WebLogic before, but had an error over there.  I can view
 the index.html page fine on my local host, but when I try to
 view a JSP page.  I ge the following error:
 The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1027)
   at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Unknown Source)


 root cause

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
 iler.java:136)
   at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
   at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
 ecessary(JspServlet.java:176)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.java:188)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:381)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 

Re: Error - Please Help

2002-07-12 Thread Sunit Munjal


Alright, it works now.  I just copied tools.jar into that directory.

Thanks everyone for the help.


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Error - Please Help

2002-07-12 Thread Reynir Hübner

either of the two, I suggested copying would be a simple way to achive this. 

just copy and try agian.

-reynir


 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 14:07
 To: Tomcat Users List
 Subject: RE: Error - Please Help
 
 
 
 I just installed the SDK for all languages and it still 
 doesn't work.  Reynir mentioned something about putting the 
 tools.jar into my tomcats classpath.  What does  that mean.  
 Just copying and pasting the file in tomcat/common/lib/ 
 directory or does it involve changing/adding a path somewhere.
 
 Thanks.
 
 
  Message History 
 
 
 
 From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT
 
 Please respond to Tomcat Users List [EMAIL PROTECTED]
 
 To:Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:RE: Error - Please Help
 
 
 put tools.jar from your jsdk into tomcats classpath (for 
 example into tomcat/common/lib/ )
 that should fix it
 
 -reynir
 
  -Original Message-
  From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
  Sent: 12. júlí 2002 13:18
  To: [EMAIL PROTECTED]
  Subject: Error - Please Help
 
 
  Hi,
  I just installed Tomcat and setup JDK, but can't see any
  thing.  I always get an error.  I was trying the same thing
  in WebLogic before, but had an error over there.  I can view
  the index.html page fine on my local host, but when I try to
  view a JSP page.  I ge the following error:
  The server encountered an internal error (Internal Server
  Error) that prevented it from fulfilling this request.
  javax.servlet.ServletException: sun/tools/javac/Main
at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
  er(ApplicationFilterChain.java:247)
at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
  cationFilterChain.java:193)
at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.java:243)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardContextValve.invoke(StandardC
  ontextValve.java:190)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.valves.CertificatesValve.invoke(Certificat
  esValve.java:246)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardContext.invoke(StandardContex
  t.java:2347)
at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHost
  Valve.java:180)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
  spatcherValve.java:170)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
  Valve.java:170)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
  e.java:468)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
  gineValve.java:174)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.connector.http.HttpProcessor.process(HttpP
  rocessor.java:1027)
at
  org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
  ssor.java:1125)
at java.lang.Thread.run(Unknown Source)
 
 
  root cause
 
  java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
  org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
  iler.java:136)
at
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at
  org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at
  

RE: Error - Please Help

2002-07-12 Thread Arnaud HERITIER

Have you setted a JAVA_HOME environment variable to your new SDK
installation directory ??

 -Message d'origine-
 De : Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 12 juillet 2002 16:07
 À : Tomcat Users List
 Objet : RE: Error - Please Help



 I just installed the SDK for all languages and it still
 doesn't work.  Reynir mentioned something about putting the
 tools.jar into my tomcats classpath.  What does  that mean.
 Just copying and pasting the file in tomcat/common/lib/
 directory or does it involve changing/adding a path somewhere.

 Thanks.


  Message History
 


 From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:RE: Error - Please Help


 put tools.jar from your jsdk into tomcats classpath (for
 example into tomcat/common/lib/ )
 that should fix it

 -reynir

  -Original Message-
  From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
  Sent: 12. júlí 2002 13:18
  To: [EMAIL PROTECTED]
  Subject: Error - Please Help
 
 
  Hi,
  I just installed Tomcat and setup JDK, but can't see any
  thing.  I always get an error.  I was trying the same thing
  in WebLogic before, but had an error over there.  I can view
  the index.html page fine on my local host, but when I try to
  view a JSP page.  I ge the following error:
  The server encountered an internal error (Internal Server
  Error) that prevented it from fulfilling this request.
  javax.servlet.ServletException: sun/tools/javac/Main
at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
  er(ApplicationFilterChain.java:247)
at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
  cationFilterChain.java:193)
at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.java:243)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardContextValve.invoke(StandardC
  ontextValve.java:190)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.valves.CertificatesValve.invoke(Certificat
  esValve.java:246)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardContext.invoke(StandardContex
  t.java:2347)
at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHost
  Valve.java:180)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
  spatcherValve.java:170)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
  Valve.java:170)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
  e.java:468)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
  gineValve.java:174)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.connector.http.HttpProcessor.process(HttpP
  rocessor.java:1027)
at
  org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
  ssor.java:1125)
at java.lang.Thread.run(Unknown Source)
 
 
  root cause
 
  java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
  org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
  iler.java:136)
at
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at
  org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at
  

RE: Error - Please Help

2002-07-12 Thread rsequeira


You could either copy the tools.jar from JAVA_HOME/lib to
CATALINA_HOME/common/lib (or create symbolic link if you are using some
flavor of Unix). This will resolve the problem of your jsps not compiling.
This is the error that you been getting.

RS






Sunit Munjal [EMAIL PROTECTED] on 07/12/2002 09:06:35 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:RE: Error - Please Help


I just installed the SDK for all languages and it still doesn't work.
Reynir mentioned something about putting the tools.jar into my tomcats
classpath.  What does  that mean.  Just copying and pasting the file in
tomcat/common/lib/ directory or does it involve changing/adding a path
somewhere.

Thanks.


 Message History



From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help


put tools.jar from your jsdk into tomcats classpath (for example into
tomcat/common/lib/ )
that should fix it

-reynir

 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 13:18
 To: [EMAIL PROTECTED]
 Subject: Error - Please Help


 Hi,
 I just installed Tomcat and setup JDK, but can't see any
 thing.  I always get an error.  I was trying the same thing
 in WebLogic before, but had an error over there.  I can view
 the index.html page fine on my local host, but when I try to
 view a JSP page.  I ge the following error:
 The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1027)
   at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Unknown Source)


 root cause

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
 iler.java:136)
   at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
   at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
   at
 

RE: Error - Please Help

2002-07-12 Thread Jacob Lund

An installation of sun java does not set environmental variables! You
have to go to system in your control panel and add it your self!

/Jacob

-Original Message-
From: Sunit Munjal [mailto:[EMAIL PROTECTED]] 
Sent: 12. juli 2002 16:07
To: Tomcat Users List
Subject: RE: Error - Please Help



I just installed the SDK for all languages and it still doesn't work.
Reynir mentioned something about putting the tools.jar into my tomcats
classpath.  What does  that mean.  Just copying and pasting the file in
tomcat/common/lib/ directory or does it involve changing/adding a path
somewhere.

Thanks.


 Message History



From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help


put tools.jar from your jsdk into tomcats classpath (for example into
tomcat/common/lib/ ) that should fix it

-reynir

 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 13:18
 To: [EMAIL PROTECTED]
 Subject: Error - Please Help


 Hi,
 I just installed Tomcat and setup JDK, but can't see any thing.  I 
 always get an error.  I was trying the same thing in WebLogic before, 
 but had an error over there.  I can view the index.html page fine on 
 my local host, but when I try to view a JSP page.  I ge the following 
 error: The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1027)
   at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1125)
   at java.lang.Thread.run(Unknown Source)


 root cause

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at 
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
 iler.java:136)
   at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
   at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
   at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
 ecessary(JspServlet.java:176)
   at 
 

Re: access files under WEB-INF ??

2002-07-12 Thread Jacob Kjome

You can certainly do this from within a servlet or other java class as far 
as reading config file and whatnot, but you cannot publicly serve static 
content from there.  You could, if you wanted, load up the document into 
memory and serve it as a stream via the servlet, but there is no direct way 
to access anything inside the WEB-INF directory from a web browser (thank 
goodness).

An example would be:

String contextPath = getServletContext().getRealPath(/);
String myConfigFilePath = contextPath + WEB-INF/myconfigfile.xml
File myFile = new File(myConfigFilePath);

or for a more portable way to read files in servlets:

InputStream is = 
getServletContext().getResourceAsStream(/WEB-INF/myconfigfile.xml);


Jake

At 12:03 PM 7/12/2002 +0300, you wrote:
hello to everyone

can I access a directory under WEB-INF in tomcat. For instance can I 
access c:\root\WEB-INF\project
(I can access lib and classes directory of WEB-INf indirectly when I call 
a servlet, etc. but what about other folders under WEB-INF?)

thanks in advance,

serdar.



context in server.xml doesn't reload

2002-07-12 Thread Mark Thill

I'm running tomcat 4.0.3 and I have created a context
path in my server.xml file which looks something like
this:

Context path=/foo docBase=C:\some\path debug=0
Resource name=JDBC/SEC_POOLCONN
auth=Container
type=javax.sql.ConnectionPoolDataSource/
ResourceParams name=JDBC/SEC_POOLCONN

parameternameuser/namevalueusername/value/parameter
parameternamepassword/namevaluepasswod/value/parameter
parameternamedriverClassName/namevaluecom.sybase.jdbc2.jdbc.SybDriver/value/parameter
parameternamedriverName/namevaluejdbc:sybase:Tds:192.168.1.10:5010/value/parameter
parameternameinitialPoolSize/namevalue3/value/parameter
/ResourceParams
/context

I start up tomcat and the context is created (/foo)
Everything seems to work fine when I load the
application and run it the first time.  Then, 
through the manager application I go and remove the
context /foo (because maybe I want to load a new
foo.war file that I've added some fixes to) and 
then install the new foo.war file using the 
manager/install?path=/foowar=jar:file:C:\java\jakarta-tomcat-4.0.3\webapps\foo.war!/

command which says it is successful.  When I return to
the application, the 
first attempt to try to get an connection from the
pool gives a 
NullPointerException because the pool seems to be gone
or not reloaded.  I'm guessing that since I've
declared the resource in the server.xml file it won't
reload it when I reinstall the war file.  Does anyone
have any suggestions of how I might get around this
problem?  The only solution so far is to resart
Tomcat, but this is not ideal since we don't want all
the applications going down because of a change to a
single application.

Thanks in advance
Mark

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat 4.0.4 Realm Question

2002-07-12 Thread Kevin Andryc

I was wondering how I can protect certain servlet subdirectories. For
example, lets say that in WEB-INF/classes I have two subdirectories: app1
and app2. How do I use the security-constraint to protect (force the user to
login) app1 but not have them login to classes in app2? I have tried this in
my web.xml file, but the login page doesn't appear and I go directly to the
page:

security-constraint
  display-nameExample Security Constraint/display-name
  web-resource-collection
 web-resource-nameProtected Area/web-resource-name
 url-pattern/servlet/app1.*/url-pattern
 http-methodDELETE/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
  /web-resource-collection
  auth-constraint
 role-nameusr/role-name
  /auth-constraint
/security-constraint

Is this possible? If so, how can this be achieved?

Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Debugging Servlets

2002-07-12 Thread Jacob Kjome

I use bugseeker 1.0.2 for Java2:
http://www.karmira.com/products/bugseeker2/

I created a new environment variable:

JPDA_FLAGS = -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

Then I created a Tomcat Service which I use exclusively for debugging:

%CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina-JPDA 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar 
-Dcatalina.home=%CATALINA_HOME% %JPDA_FLAGS% %CATALINA_OPTS% -Xrs -start 
org.apache.catalina.startup.BootstrapService -params start -stop 
org.apache.catalina.startup.BootstrapService -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

I am able to attach to the socket using bugseeker's remote debugging.  You 
should be able to do the same in JSwat.

If you want to use bugseeker and want a project that is set up to work 
properly to debug Tomcat servlets, send me a personal email and I'll send 
you the project file.

Jake

At 10:09 AM 7/11/2002 +0200, you wrote:


Can somebody provide me a usable HOW-TO for
debugging servlets under TomCat?

I want to connect remotely TomCat using e.g.
JSwat or cqjd (JPDA), but without success.

I am using Tomcat 4.0.3 and 4.1.7beta, have
CATALINA_OPTS set (-Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,address=,
suspend=n) and still is does't work.

I must be doing something fundamentally wrong as
nobody else seems to have problems and in the documentations
(e.g. JSwat) there is written that this should be VERY
easy... :-)))

Help appreciated!

Thanks...


_
Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt: 
http://www.hotmail.com/de


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



setting index.html as default for directories

2002-07-12 Thread cruegger

We have a situation where we are generating
links to *directories* under Tomcat, each 
of which has an index.html file in it.
(Long story but this is the situation
we are stuck with).

Is there a way to get Tomcat to serve up
index.html in any directory by default
when linking to the directory? Where
would this be configued?

Thanks ahead of time!

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





Tomcat 4.0.4 Not Creating mod_jk auto conf for Apache 1.3

2002-07-12 Thread Allistair Crossley

Hello All,

I have Apache 1.3 and Tomcat 3.2.1 running with mod_jk. I want to upgrade to
Tomcat 4.0.4. I have followed a set of instructions that I found, i.e

1) Added to server.xml under 8005 server line

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/usr/local/apache/modules/mod_jk.so jkDebug=info

workersConfig=/usr/local/jakarta-tomcat-4.0.3/conf/jk/workers.properties
  jkLog=/usr/local/jakarta-tomcat-4.0.3/logs/mod_jk.log/

2) Under standalone line

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

3) After Host localhost line

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /

4) Put the workers.properties file in tomcat_home/conf/jk and started tomcat
(see workers file below)

workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p
s)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

BUT now I am supposed to have a file called CATALINA_HOME/conf/auto but I do
not!! I have done everything to the letter!

Help appreciated :)

Allistair Crossley
Lead Technical Developer
Obvious Solutions (Global) Ltd.
“Delivering the vision for a mobile lifestyle”

www.obvioussolutions.co.uk

(m) +44 (0) 7884 056 274
(w) +44 (0) 20 8451 9352
(f) +44 (0) 20 8537 5236

/**/

This is an email from Obvious Solutions (Global) Ltd.
The contents of this email are confidential to the ordinary
user of the email address to which it was addressed. No-one
else may copy or forward all or any of it in any form.
If you receive this email in error, we should be obliged if
you would telephone our postmaster on +44 (0)208 357 8352
or  email [EMAIL PROTECTED] Thank you.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Error - Please Help

2002-07-12 Thread jeff . guttadauro


Shouldn't moving the tools.jar be unnecessary if JAVA_HOME is set properly??



   

Jacob Lund   

jacob@qualiwTo: 'Tomcat Users List' 
[EMAIL PROTECTED]
are.com cc:   

 Subject: RE: Error - Please Help  

07/12/02   

09:14 AM   

Please 

respond to 

Tomcat Users  

List  

   

   





An installation of sun java does not set environmental variables! You
have to go to system in your control panel and add it your self!

/Jacob

-Original Message-
From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
Sent: 12. juli 2002 16:07
To: Tomcat Users List
Subject: RE: Error - Please Help



I just installed the SDK for all languages and it still doesn't work.
Reynir mentioned something about putting the tools.jar into my tomcats
classpath.  What does  that mean.  Just copying and pasting the file in
tomcat/common/lib/ directory or does it involve changing/adding a path
somewhere.

Thanks.


 Message History



From:  Reynir Hübner [EMAIL PROTECTED] on 07/12/2002 01:15 PM GMT

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Error - Please Help


put tools.jar from your jsdk into tomcats classpath (for example into
tomcat/common/lib/ ) that should fix it

-reynir

 -Original Message-
 From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
 Sent: 12. júlí 2002 13:18
 To: [EMAIL PROTECTED]
 Subject: Error - Please Help


 Hi,
 I just installed Tomcat and setup JDK, but can't see any thing.  I
 always get an error.  I was trying the same thing in WebLogic before,
 but had an error over there.  I can view the index.html page fine on
 my local host, but when I try to view a JSP page.  I ge the following
 error: The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 javax.servlet.ServletException: sun/tools/javac/Main
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
 esValve.java:246)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at
 

RE: LD_LIBRARY_PATH

2002-07-12 Thread Sexton, George

Add the directory to /etc/ld.so.conf and run ldconfig.

-Original Message-
From: Johnny [mailto:[EMAIL PROTECTED]]
Sent: 12 July, 2002 1:49 AM
To: Tomcat Users List
Subject: LD_LIBRARY_PATH



 To all Tomcat users :

 How can I set LD_LIBRARY_PATH in setclasspath.sh? or is there any alternate
way to set the LD_LIBRARY_PATH in Tomcat 4.0.3 in Linux?

 Regards,
 Johnny.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.4 Not Creating mod_jk auto conf for Apache 1.3

2002-07-12 Thread Nikolas A. Rathert

Start the server. It will be created automatically.

Cheers,

Nick

Allistair Crossley wrote:
 Hello All,
 
 I have Apache 1.3 and Tomcat 3.2.1 running with mod_jk. I want to upgrade to
 Tomcat 4.0.4. I have followed a set of instructions that I found, i.e
 
 1) Added to server.xml under 8005 server line
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=/usr/local/apache/modules/mod_jk.so jkDebug=info
 
 workersConfig=/usr/local/jakarta-tomcat-4.0.3/conf/jk/workers.properties
   jkLog=/usr/local/jakarta-tomcat-4.0.3/logs/mod_jk.log/
 
 2) Under standalone line
 
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
 
 3) After Host localhost line
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true  /
 
 4) Put the workers.properties file in tomcat_home/conf/jk and started tomcat
 (see workers file below)
 
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3
 workers.java_home=$(JAVA_HOME)
 ps=/
 
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 
 worker.ajp14.port=8010
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=secret
 worker.ajp14.credentials=myveryrandomentropy
 worker.ajp14.lbfactor=1
 
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
 worker.inprocess.cmd_line=start
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p
 s)libjvm.so
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 BUT now I am supposed to have a file called CATALINA_HOME/conf/auto but I do
 not!! I have done everything to the letter!
 
 Help appreciated :)
 
 Allistair Crossley
 Lead Technical Developer
 Obvious Solutions (Global) Ltd.
 “Delivering the vision for a mobile lifestyle”
 
 www.obvioussolutions.co.uk
 
 (m) +44 (0) 7884 056 274
 (w) +44 (0) 20 8451 9352
 (f) +44 (0) 20 8537 5236
 
 /**/
 
 This is an email from Obvious Solutions (Global) Ltd.
 The contents of this email are confidential to the ordinary
 user of the email address to which it was addressed. No-one
 else may copy or forward all or any of it in any form.
 If you receive this email in error, we should be obliged if
 you would telephone our postmaster on +44 (0)208 357 8352
 or  email [EMAIL PROTECTED] Thank you.
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


-- 
Nikolas A. Rathert
Fraunhofer Institute for Computer Graphics
e-Learning  Knowledge Management

Fraunhoferstrasse 5
D-64283 Darmstadt
Germany
Fon +49 6151 155 552
Fax +49 6151 155 569
email: [EMAIL PROTECTED]
www: http://www.igd.fhg.de


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.4 Not Creating mod_jk auto conf for Apache 1.3 - Server was started

2002-07-12 Thread Allistair Crossley

Yes of course I did that!! :)) I use CATALINA_HOME/bin/startup.sh and the
process does start and listing ports listened to using netstat -tln I can
see the port open.

But no AUTO file!

-Original Message-
From: Nikolas A. Rathert [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 15:50
To: Tomcat Users List
Subject: Re: Tomcat 4.0.4 Not Creating mod_jk auto conf for Apache 1.3


Start the server. It will be created automatically.

Cheers,

Nick

Allistair Crossley wrote:
 Hello All,

 I have Apache 1.3 and Tomcat 3.2.1 running with mod_jk. I want to upgrade
to
 Tomcat 4.0.4. I have followed a set of instructions that I found, i.e

 1) Added to server.xml under 8005 server line

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=/usr/local/apache/modules/mod_jk.so jkDebug=info

 workersConfig=/usr/local/jakarta-tomcat-4.0.3/conf/jk/workers.properties
   jkLog=/usr/local/jakarta-tomcat-4.0.3/logs/mod_jk.log/

 2) Under standalone line

 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/

 3) After Host localhost line

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true  /

 4) Put the workers.properties file in tomcat_home/conf/jk and started
tomcat
 (see workers file below)

 workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3
 workers.java_home=$(JAVA_HOME)
 ps=/

 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1

 worker.ajp14.port=8010
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=secret
 worker.ajp14.credentials=myveryrandomentropy
 worker.ajp14.lbfactor=1

 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
 worker.inprocess.cmd_line=start

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p
 s)libjvm.so

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

 BUT now I am supposed to have a file called CATALINA_HOME/conf/auto but I
do
 not!! I have done everything to the letter!

 Help appreciated :)

 Allistair Crossley
 Lead Technical Developer
 Obvious Solutions (Global) Ltd.
 “Delivering the vision for a mobile lifestyle”

 www.obvioussolutions.co.uk

 (m) +44 (0) 7884 056 274
 (w) +44 (0) 20 8451 9352
 (f) +44 (0) 20 8537 5236

 /**/

 This is an email from Obvious Solutions (Global) Ltd.
 The contents of this email are confidential to the ordinary
 user of the email address to which it was addressed. No-one
 else may copy or forward all or any of it in any form.
 If you receive this email in error, we should be obliged if
 you would telephone our postmaster on +44 (0)208 357 8352
 or  email [EMAIL PROTECTED] Thank you.



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
Nikolas A. Rathert
Fraunhofer Institute for Computer Graphics
e-Learning  Knowledge Management

Fraunhoferstrasse 5
D-64283 Darmstadt
Germany
Fon +49 6151 155 552
Fax +49 6151 155 569
email: [EMAIL PROTECTED]
www: http://www.igd.fhg.de


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Servlet dying silently under ssl.

2002-07-12 Thread Christopher Mark Balz

Running tomcat 3.2 on Win2K with MySql.  Use Cygwin and Emacs dev
tools.

I have a simple servlet running under ssl (public-private key) that is 
dying silently and unexpectedly.  It was working flawlessly and then 
stopped working without there being any change anywhere on my entire 
machine that I would notice as something that would cause the servlet to 
die silently (can't get any logging).  I don't know where to look next 
for the problem and hope for some suggestions.

Prior to my latest reboot, I couldn't even 'tail' my tomcat.log.  At 
that time when I ran this very simple servlet that was just working 
recently, tomcat.log became 416 Kb and wouldn't 'tail'.  The servlet 
accepts a 'post'-method http form submission, and other servlets that do 
the same but not under ssl still run fine.

I can get no 'servlet.log''s from the servlet that is dying.  Two 
reboots ago, tomcat.log was also huge and showed what appeared to be
low-level i/o errors from running the dying servlet.  The symptoms on 
the client are that after http form submission the page just flashes 
(refreshes) and resets itself, with no server error message.

The only defining change from when the dying servlet used to work that
I can see is that the machine (a laptop running Win2K) shut itself
down when on battery -- perhaps it ran low on juice.  But all else works 
fine and since then I've shutdown and rebooted three times, to no avail.

web.xml and the simple servlet in question are below, as well as a 
relevant section from servlet.xml, and the tomcat.log and servlet.log 
from my latest reboot and attempt.

Any clues?

servlet.log
---
2002-07-11 22:07:54 - path=/examples :jsp: init
2002-07-11 22:07:54 - path=/dynasurv :jsp: init
2002-07-11 22:07:54 - path=/admin :jsp: init
2002-07-11 22:07:54 - path=/dynasurv.tar.gz :jsp: init
2002-07-11 22:07:54 - path=/dynasurv.zip :jsp: init
2002-07-11 22:07:54 - path=/olddynasurv.tar.gz :jsp: init
2002-07-11 22:07:55 - path= :jsp: init
2002-07-11 22:07:55 - path=/test :jsp: init


tomcat.log
---
2002-07-11 22:07:45 - ContextManager: Adding context Ctx( /examples )
2002-07-11 22:07:45 - Ctx( /dynasurv ): Set debug to 9
2002-07-11 22:07:45 - ContextManager: Adding context Ctx( /dynasurv )
2002-07-11 22:07:45 - ContextManager: Adding context Ctx( /admin )
2002-07-11 22:07:45 - ContextManager: Adding context Ctx( /dynasurv.tar.gz )
2002-07-11 22:07:45 - ContextManager: Adding context Ctx( /dynasurv.zip )
2002-07-11 22:07:45 - ContextManager: Adding context Ctx( 
/olddynasurv.tar.gz )
2002-07-11 22:07:45 - ContextManager: Adding context Ctx(  )
2002-07-11 22:07:45 - ContextManager: Adding context Ctx( /test )
2002-07-11 22:07:54 - Ctx( /dynasurv ): XmlReader - init  /dynasurv 
webapps/dynasurv
2002-07-11 22:07:54 - Ctx( /dynasurv ): Reading C:\Program 
Files\jakarta-tomcat-3.2.4\webapps\dynasurv\WEB-INF\web.xml
2002-07-11 22:07:54 - Ctx( /dynasurv ): Loading -2147483646 jsp
2002-07-11 22:07:55 - PoolTcpConnector: Starting HttpConnectionHandler 
on 8080
2002-07-11 22:07:56 - PoolTcpConnector: Starting HttpConnectionHandler 
on 8443
2002-07-11 22:07:56 - PoolTcpConnector: Starting Ajp12ConnectionHandler 
on 8007
2002-07-11 22:21:22 - Ctx( /dynasurv ): Get real path 
/static/QueryTool/index.html C:\Program 
Files\jakarta-tomcat-3.2.4\webapps\dynasurv\static\QueryTool\index.html 
C:\Program Files\jakarta-tomcat-3.2.4\webapps\dynasurv
2002-07-11 22:26:06 - Ctx( /dynasurv ): Get real path 
/static/QueryTool/index.html C:\Program 
Files\jakarta-tomcat-3.2.4\webapps\dynasurv\static\QueryTool\index.html 
C:\Program Files\jakarta-tomcat-3.2.4\webapps\dynasurv
2002-07-11 22:26:13 - Ctx( /dynasurv ): Get real path 
/static/QueryTool/index.html C:\Program 
Files\jakarta-tomcat-3.2.4\webapps\dynasurv\static\QueryTool\index.html 
C:\Program Files\jakarta-tomcat-3.2.4\webapps\dynasurv
2002-07-11 22:26:17 - Ctx( /dynasurv ): Get real path 
/static/QueryTool/index.html C:\Program 
Files\jakarta-tomcat-3.2.4\webapps\dynasurv\static\QueryTool\index.html 
C:\Program Files\jakarta-tomcat-3.2.4\webapps\dynasurv



 From server.xml:
---

 Context path=/dynasurv
  docBase=webapps/dynasurv
  crossContext=false
  debug=9
  reloadable=true 
 /Context




 From web.xml:

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

!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app

   !-- Servlets: --

   servlet
servlet-name
   DynaForm
/servlet-name
servlet-class
   com.treelogic_swe.frameworks.dynaForm.DynaForm
/servlet-class
  init-param
   param-name
   dbDriver
/param-name
param-value
   

Problem calling JAVA BEAN in JSP

2002-07-12 Thread Mahesh Balakrishnan


Respected Sir/Madam,

we have created a web application in tomcat and added jsp's to a directory , we 
are finding problem in calling bean in jsp files... we want to know where to deploy 
bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free  unlimited access


RE: Problem calling JAVA BEAN in JSP

2002-07-12 Thread Allistair Crossley

as far as I know you just put them in the CLASSES folder of your web app's
WEB-INF folder.

-Original Message-
From: Mahesh Balakrishnan [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 09:42
To: [EMAIL PROTECTED]
Subject: Problem calling JAVA BEAN in JSP



Respected Sir/Madam,

we have created a web application in tomcat and added jsp's to a
directory , we are finding problem in calling bean in jsp files... we want
to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free  unlimited access


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: context in server.xml doesn't reload

2002-07-12 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

We noticed the same thing.
The load option does not appear to check to see if a context entry exists
within the server.xml

Our solution was to write a script that removed the existing webapp
directory and manually unwarred the new war file into the correct directory
and then use the manager stop/start commands.

One other thing we did notice was that Database connection pool connections
are not destroyed using the stop/start commands (at least for our pool
implementation) as a result any changes to the classes or connection
parameters such as login/password or database server id for the pool require
a restart of Tomcat.  With luck our developers will determine if it is their
code or Tomcat one of these days.

-Original Message-
From: Mark Thill [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 8:31 AM
To: [EMAIL PROTECTED]
Subject: context in server.xml doesn't reload 


I'm running tomcat 4.0.3 and I have created a context
path in my server.xml file which looks something like
this:

Context path=/foo docBase=C:\some\path debug=0
Resource name=JDBC/SEC_POOLCONN
auth=Container
type=javax.sql.ConnectionPoolDataSource/
ResourceParams name=JDBC/SEC_POOLCONN

parameternameuser/namevalueusername/value/parameter
parameternamepassword/namevaluepasswod/value/parameter
parameternamedriverClassName/namevaluecom.sybase.jdbc2.jdbc.SybDrive
r/value/parameter
parameternamedriverName/namevaluejdbc:sybase:Tds:192.168.1.10:5010/
value/parameter
parameternameinitialPoolSize/namevalue3/value/parameter
/ResourceParams
/context

I start up tomcat and the context is created (/foo)
Everything seems to work fine when I load the
application and run it the first time.  Then, 
through the manager application I go and remove the
context /foo (because maybe I want to load a new
foo.war file that I've added some fixes to) and 
then install the new foo.war file using the 
manager/install?path=/foowar=jar:file:C:\java\jakarta-tomcat-4.0.3\webapps\
foo.war!/

command which says it is successful.  When I return to
the application, the 
first attempt to try to get an connection from the
pool gives a 
NullPointerException because the pool seems to be gone
or not reloaded.  I'm guessing that since I've
declared the resource in the server.xml file it won't
reload it when I reinstall the war file.  Does anyone
have any suggestions of how I might get around this
problem?  The only solution so far is to resart
Tomcat, but this is not ideal since we don't want all
the applications going down because of a change to a
single application.

Thanks in advance
Mark

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.4 Not Creating mod_jk auto conf for Apache 1.3 - Serverwas started

2002-07-12 Thread Nikolas A. Rathert

Ok, sorry. :)
New idea: see below.


1) Added to server.xml under 8005 server line

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/usr/local/apache/modules/mod_jk.so jkDebug=info
^
I have that not in my configuration.


workersConfig=/usr/local/jakarta-tomcat-4.0.3/conf/jk/workers.properties
  jkLog=/usr/local/jakarta-tomcat-4.0.3/logs/mod_jk.log/


This I do not have in my configuration either.


2) Under standalone line

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

3) After Host localhost line

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /

I don't have this.

My workers.properties looks like this:

# Setup for Windows system
#
workers.catalina_home=D:\Programme\Server\jakarta-tomcat-4.0.3
workers.java_home=D:\Programme\Java\j2sdk1.4.0_01

# Linux uses fwd slashes
#ps=/

# Windows uses back slashes
ps=\


worker.list= ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.4 Not Creating mod_jk auto conf for Apache 1.3 - Server was started

2002-07-12 Thread Allistair Crossley

Danke Nikolas...

When you use the ^^ arrows here, do you mean that you do not have the entire
section OR that you do not have mod_jk.so as the value??

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/usr/local/apache/modules/mod_jk.so jkDebug=info
^
I assume the same again here...that you do not have the entire section
here..

workersConfig=/usr/local/jakarta-tomcat-4.0.3/conf/jk/workers.properties
  jkLog=/usr/local/jakarta-tomcat-4.0.3/logs/mod_jk.log/


Do I understand therefore that out of all the things I first posted, you
only have this line to configure mod_jk...

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig /

??

Or how do you load mod_jk to generate the AUTO file?

Vielen Dank fuer Ihren Hilfe Nikolas :)

Allistair


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: AW: Few questions with XSS vulnerability

2002-07-12 Thread Ralph Einfeldt

It loks like tomcat can't parse your web.xml file completely.

Did you remove/disable the servlet-mapping and the 
servlet entry for the invoker servlet ?

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 12. Juli 2002 15:53
 An: Tomcat Users List
 Betreff: Re: AW: Few questions with XSS vulnerability
 
snip/
 
 ERROR reading java.io.FileInputStream@67ff4773
 At Line 265 /web-app/servlet-mapping/
 
snip/
 
 And here's another example with the mapping done differently:
 servlet
 servlet-nameJiveServlet/servlet-name
 
 servlet-classcom.jivesoftware.forum.util.JiveServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-nameJiveServlet/servlet-name
 url-pattern/servlet/JiveServlet/*/url-pattern
 /servlet-mapping
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: context in server.xml doesn't reload

2002-07-12 Thread Mark Thill

Thanks for the tip.  That will solve our problem for
the time being.

Mark
--- PELOQUIN,JEFFREY (Non-HP-Boise,ex1)
[EMAIL PROTECTED] wrote:
 We noticed the same thing.
 The load option does not appear to check to see if a
 context entry exists
 within the server.xml
 
 Our solution was to write a script that removed the
 existing webapp
 directory and manually unwarred the new war file
 into the correct directory
 and then use the manager stop/start commands.
 
 One other thing we did notice was that Database
 connection pool connections
 are not destroyed using the stop/start commands (at
 least for our pool
 implementation) as a result any changes to the
 classes or connection
 parameters such as login/password or database server
 id for the pool require
 a restart of Tomcat.  With luck our developers will
 determine if it is their
 code or Tomcat one of these days.
 
 -Original Message-
 From: Mark Thill [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 12, 2002 8:31 AM
 To: [EMAIL PROTECTED]
 Subject: context in server.xml doesn't reload 
 
 
 I'm running tomcat 4.0.3 and I have created a
 context
 path in my server.xml file which looks something
 like
 this:
 
 Context path=/foo docBase=C:\some\path
 debug=0
 Resource name=JDBC/SEC_POOLCONN
 auth=Container
 type=javax.sql.ConnectionPoolDataSource/
 ResourceParams name=JDBC/SEC_POOLCONN
 

parameternameuser/namevalueusername/value/parameter

parameternamepassword/namevaluepasswod/value/parameter

parameternamedriverClassName/namevaluecom.sybase.jdbc2.jdbc.SybDrive
 r/value/parameter

parameternamedriverName/namevaluejdbc:sybase:Tds:192.168.1.10:5010/
 value/parameter

parameternameinitialPoolSize/namevalue3/value/parameter
 /ResourceParams
 /context
 
 I start up tomcat and the context is created (/foo)
 Everything seems to work fine when I load the
 application and run it the first time.  Then, 
 through the manager application I go and remove the
 context /foo (because maybe I want to load a new
 foo.war file that I've added some fixes to) and 
 then install the new foo.war file using the 

manager/install?path=/foowar=jar:file:C:\java\jakarta-tomcat-4.0.3\webapps\
 foo.war!/
 
 command which says it is successful.  When I return
 to
 the application, the 
 first attempt to try to get an connection from the
 pool gives a 
 NullPointerException because the pool seems to be
 gone
 or not reloaded.  I'm guessing that since I've
 declared the resource in the server.xml file it
 won't
 reload it when I reinstall the war file.  Does
 anyone
 have any suggestions of how I might get around this
 problem?  The only solution so far is to resart
 Tomcat, but this is not ideal since we don't want
 all
 the applications going down because of a change to a
 single application.
 
 Thanks in advance
 Mark
 
 __
 Do You Yahoo!?
 Sign up for SBC Yahoo! Dial - First Month Free
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: AW: AW: Few questions with XSS vulnerability

2002-07-12 Thread daniel . jarboe

Thank you, that did it!  The mapping for the invoker servlet was in a 
lower part of tomcat's web.xml file, and I didn't realize it was there. 
 Once I removed it too, of course my problems were solved.  Thank you!

~ Daniel

[EMAIL PROTECTED] wrote:

It loks like tomcat can't parse your web.xml file completely.

Did you remove/disable the servlet-mapping and the 
servlet entry for the invoker servlet ?




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem calling JAVA BEAN in JSP

2002-07-12 Thread Ron Day

Its a little more complex than this. It is very wise to put beans in
packages, as there are some issues with using the default package for these
classes. Assuming you use a package in the java code, make sure you put the
class files under WEB-INF/classes in the appropriate directory structures
for your packages. i.e classes directory is the root for your packages.

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: Tomcat Users List
Subject: RE: Problem calling JAVA BEAN in JSP


as far as I know you just put them in the CLASSES folder of your web app's
WEB-INF folder.

-Original Message-
From: Mahesh Balakrishnan [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 09:42
To: [EMAIL PROTECTED]
Subject: Problem calling JAVA BEAN in JSP



Respected Sir/Madam,

we have created a web application in tomcat and added jsp's to a
directory , we are finding problem in calling bean in jsp files... we want
to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free  unlimited access


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem calling JAVA BEAN in JSP

2002-07-12 Thread Allistair Crossley

Yes, that's what I meant, wasn't too clear :)

If you had a bean...

com.somecompany.beans.Bean

your web app structure would be

webapps
 +- appname
 +- WEB-INF
 +- classes
 +- com
 +- somecompany
 +- beans
 +- Bean.class

Ali

-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 16:31
To: Tomcat Users List
Subject: RE: Problem calling JAVA BEAN in JSP


Its a little more complex than this. It is very wise to put beans in
packages, as there are some issues with using the default package for these
classes. Assuming you use a package in the java code, make sure you put the
class files under WEB-INF/classes in the appropriate directory structures
for your packages. i.e classes directory is the root for your packages.

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: Tomcat Users List
Subject: RE: Problem calling JAVA BEAN in JSP


as far as I know you just put them in the CLASSES folder of your web app's
WEB-INF folder.

-Original Message-
From: Mahesh Balakrishnan [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 09:42
To: [EMAIL PROTECTED]
Subject: Problem calling JAVA BEAN in JSP



Respected Sir/Madam,

we have created a web application in tomcat and added jsp's to a
directory , we are finding problem in calling bean in jsp files... we want
to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free  unlimited access


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Where is the MOD_JK 2 bin or src for Linux...cannot find it on jakarta.apache.org!!

2002-07-12 Thread Allistair Crossley

Where is the MOD_JK 2 bin or src for Linux...cannot find it on
jakarta.apache.org!! All the folders in jakarta-tomcat-connectors are empty
for JK2

Allistair Crossley
Lead Technical Developer
Obvious Solutions (Global) Ltd.
“Delivering the vision for a mobile lifestyle”

www.obvioussolutions.co.uk

(m) +44 (0) 7884 056 274
(w) +44 (0) 20 8451 9352
(f) +44 (0) 20 8537 5236

/**/

This is an email from Obvious Solutions (Global) Ltd.
The contents of this email are confidential to the ordinary
user of the email address to which it was addressed. No-one
else may copy or forward all or any of it in any form.
If you receive this email in error, we should be obliged if
you would telephone our postmaster on +44 (0)208 357 8352
or  email [EMAIL PROTECTED] Thank you.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Manager App Help

2002-07-12 Thread Craig R. McClanahan



On Fri, 12 Jul 2002 [EMAIL PROTECTED] wrote:

 Date: Fri, 12 Jul 2002 08:38:19 +0200
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Manager App Help



 Hello List

 When I Install a Web Application with the Manager App
 .../manager/install... the Application runs correkt.

 But when I restart the Server the Application is not accessible.
 How can I tell the manager App to write the installed Configuration Data to
 Disk.


Tomcat 4.0.x does not support saving an updated server.xml file to
remember the dynamically installed application.  You will need to
re-install each time you restart Tomcat (or manually update server.xml
yourself).

Tomcat 4.1.7 or later can do this.


 Thanks Joern Karthaus


Craig


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




  1   2   >