Re: Port 80, 8009 and 8080

2003-07-30 Thread Zsolt Koppany
Hi,

as far as I know, in this case tomcat must be started by the super-user
under Unix to bind a port  1024.

 In production, if you do not run Apache and run Tomcat alone as your 
 only webserver, you DISABLE the AJP connector on port 8009 and change 
 the HTTP connector on port 8080 to port 80, so that web users do not 
 have to type a port number on the URL.
 


Zsolt


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



Does Tomcat load config. files dynamically?

2003-07-30 Thread Agarwal, Naresh



Hi

Does Tomcat loads the 
configuration files (web.xml, server.xml, tomcat-users.xml) 
dynamically.?

Thus if I make any changes in 
these files while Tomcat is running, Do I need to restart Tomcat to reflect the 
changes or Tomcat automatically detect the changesand use the new 
settings?

If Tomcat does not use dynamic 
loading, is there a way to support this?

thanks  
regards
Naresh 
Agarwal 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Best Tomcat Book, Recommendations???

2003-07-30 Thread Me
Well, everyone else is right. assuming that you have some experience with
http servers in general, you dont need a big fat manual for tomcat. but in
case, you are new to web techs altogether, probably Oreilly Tomcat will give
you a helping hand
good luck

- Original Message - 
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 5:24 AM
Subject: Re: Best Tomcat Book, Recommendations???



 As a Wrox author, I have to tell you that your overall impression is
 incorrect.  Books are like anything else: sometimes you think they're
 great, sometimes you think they're not.

 To make a sweeping generalization is, in my mind, illogical.

 John

 Tony LaPaso wrote:

  Hi all,
 
  Can some of you recommend a good Tomcat book? In the archives I've read
that
  the Wrox book, Professional Apache Tomcat, is pretty good but my
overall
  impression of Wrox books is that they're generally not worth the paper
  they're printed on.
 
  I know O'Reilly has a relatively new TC book that looks pretty good. I
was
  also hoping to find something that covered TC 5, although this is a
nice to
  have.
 
  Any suggestions?
 
  Thanks.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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




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



Re: Does Tomcat load config. files dynamically?

2003-07-30 Thread jj
No,you should restart tomcat.
  - Original Message - 
  From: Agarwal, Naresh 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, July 29, 2003 8:17 PM
  Subject: Does Tomcat load config. files dynamically?


  Hi

  Does Tomcat loads the configuration files (web.xml, server.xml, tomcat-users.xml) 
dynamically.?

  Thus if I make any changes in these files while Tomcat is running, Do I need to 
restart Tomcat to reflect the changes or Tomcat automatically detect the changes and 
use the new settings?

  If Tomcat does not use dynamic loading, is there a way to support this?

  thanks  regards
  Naresh Agarwal


--


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


Re: Installs/deploys to... why?

2003-07-30 Thread Nikolaus Schmitt
Hi Karsten,

check the tomcat 4.1.x documentation for the following expression (excerpt
from tomcat's default server.xml):
--
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
-
Note the attribute unpackWARs - it will explain what You're asking for.
regards
niko

- Original Message -
From: Karsten Wutzke [EMAIL PROTECTED]
To: tomcat-user [EMAIL PROTECTED]; Ant Users List
[EMAIL PROTECTED]
Sent: Wednesday, April 16, 2003 2:06 AM
Subject: Installs/deploys to... why?


 Hi all!

 I'm a Tomcat 4.1 newbie and have the following questions using the Ant
 tasks:

 1. I'm using Ant to (deploy/)install my web app to a local Tomcat 4.1.
 Any time I do that, my web app gets installed in the context path
 /basketball, which is right. The index.html is found, so the install
 seems to work. However, on the local server, when looking for the files
 that have been installed, I don't get where the web application files
 actually are!

 Anytime install or deploy succeeds, the directory called
 tomcat-root/work/Standalone/localhost/manager/basketball is created,
 however, *only* with the WEB-INF subdir recursively plus all the class
 files. No other types of files are there, no jsp's, no html's, no jar's,
 just servlets... But the strange thing works. The web app correctly
 shows the index.html. And it is not about the war file I created. It is
 correct. It expands to the desired tree structure.

 What's going on? Where are the actual installed files, like the
 index.html shown?

 2. Why isn't the web app in tomcat-root/webapps/basketball? Instead,
 some unknown place is used when having used install (see 1.).
 Additionally to the behavior desribed above, when using deploy (instead
 of install), the web app war file is placed in
 tomcat-root/work/Standalone/localhost/manager/ .

 Anyway, in the Tomcat README at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/README.txt
 the work directory is supposed to be a scratch directory for temporary
 files. Why do both tasks, deploy *and* install go to this directory
 instead of tomcat-root/webapps/basketball? The deploy task really
 can't be considered temporary...

 3. How does Tomcat remember web apps to be available/installed?

 I wonder where Tomcat holds web application info itself... If it is not
 in the webapps dir, there must be some other place, but where?

 4. What is the advantage of copying the web app war file to the server
 with deploy (which install doesn't)? Whenever continuing development, a
 new war is created/needed anyway, the one on the server will be out of
 date anyway. Is it just used as some kind of backup? Or what else?

 Thanks for any help!
 Karsten

 Jacob Kjome wrote:

 
  Well, you are describing exactly what the deploy task is for.  If you
  are using this for development purposes, you should use the install
  task which doesn't persist the context after a Tomcat restart.  Instead,
  it just mounts the directory which is the root of your just built webapp
  as a running context in Tomcat.  It doesn't send any file anywhere and a
  simple stop of Tomcat or the remove task gets rid of all traces that
  your app was even running under Tomcat.  It is *much* more convenient
  for development purposes than deploy/undeploy.
 
  Jake
 
  At 06:02 PM 4/15/2003 +0200, you wrote:
 
  Hi all!
 
  Why do the Tomcat 4.1 Ant tasks deploy and install put the context
  directory to tomcat-root/work/Standalone/localhost/context, at
  least on my machine? Anything misconfigured?
 
  property name=local.manager.url value=${local.root.url}/manager/
  property name=local.manager.username value=${manager.username}/
  property name=local.manager.password value=${manager.password}/
 
  property name=webapp.name value=basketball/
  property name=webapp.context.path value=/${webapp.name}/
 
  target name=deploy-local depends=dist,startup-local
  description=Deploys the web app to local Tomcat.
 
deploy url=${local.manager.url}
username=${local.manager.username}
password=${local.manager.password}
path=${webapp.context.path}
war=file://${dist.file}/
  /target
 
  Nothing unusual I'm using... The depends tasks work fine, they create
  the war file which is to be distributed and startup-local starts up
  local Tomcat web server, if it hasn't been started yet.
 
  Can anyone help?
 
  Thanks!
  Karsten
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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




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



Error when using Tomcat 4.1.24

2003-07-30 Thread Sarika Inamdar
Hi All,

We are using tomcat 4.1.24 to connect to web. The application GUI comes
up when we connect to web using
http://hostname:8080/index.jsp.

The next window after this is the Login.jsp page. We use
Password.class to check for password integrity to go thru the
Login.jsp page. But I get the following error when I give password, and
press enter :

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 3 in the jsp file: /login.jsp

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac]
/export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/login_jsp.jav
a:57: cannot resolve symbol
[javac] symbol  : variable Password 
[javac] location: class org.apache.jsp.login_jsp
[javac] InputStream is = Password.getPasswordsFromDB();


We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.

Am I missing some configuration ? Please help me on this.

Thanks,
Sarika


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



Re: Apache + Tomcat + mod_jk

2003-07-30 Thread v.siguier
Dear John,

All I do to configure Apache with Tomcat thanks to mod_jk is from your document at 
http://www.johnturner.com/howto (NT platform)... is there a mail address where I can 
forward you all config files (httpd.conf, server.xml...) ?

Regards



 
 or 3) dispensing with the mod_jk.conf method and modifying httpd.conf 
 manually to work in your environment.
 
 John
 
 John Turner wrote:
 
  
  We didn't know you were using the mod_jk.conf method.
  
  How about posting your dir structure, with a description of where you 
  want your files to be, and then post the relevant VirtualHost block 
  (sanitized if necessary) from mod_jk.conf?  Then we can see what it is 
  you have already so we don't go around in circles.
  
  The point of previous posts is that if you want Apache to serve static 
  content from a certain location, you typically use DocumentRoot to 
  specify that location.  If the DocumentRoot in your mod_jk.conf file 
  isn't working for you, you will have to consider 1) changing your dir 
  structure and server.xml so that mod_jk.conf is created with a 
  DocumentRoot that does work for you, or 2) changing where you put your 
  files to fit with the current DocumentRoot that is being generated.
  
  John
  
  v.siguier wrote:
  
  Thanks for your help but I don't understand where I have to put these 
  new lines...
  I have made changes in server.xml and I have created 
  workers.properties (under Tomcat) in order to generate automatically 
  mod_jk.conf.
  In Apache config file, I have made no changes for my new webapp... do 
  I have to write any information concerning my application in httpd.conf ?
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
--

Faites un voeu et puis Voila ! www.voila.fr 



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



Rooting request to one or an other webapp

2003-07-30 Thread Marc Guillemot
Hi,

does someone know a way to catch a request and to forward it to one or an
other webapp according to some runtime settings?

The idea is to be able at runtime to smoothly add a webapp, set it as the
default, and to remove the one that was the default when it has no active
session anymore.

Marc.




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



Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Clive Luk
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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



Problem building Tomcat Connector mod_jk2.so PART 2

2003-07-30 Thread Clive Luk
Sorry for the second post.

I am trying to build from jakarta-tomcat-connectors-4.1.26-src.tar.gz.
Please let me know if you need more information.

apache2 works fine on port 80.
Tomcat works fine on port 8080.

Cheers,
Clive

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:16 PM
To: [EMAIL PROTECTED]
Subject: Problem building Tomcat Connector mod_jk2.so


Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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



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



Re: Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Jørgen Nørgaard
Hello,

Building the connectors are a bit of a struggle, the documentation is 
inconsistent and (very) sparse. Which is a pitty because 
apache/tomcat are great (and tomcat 3 was so easy to build connectors 
for).



That said, I managed to build a mod_jk2 connector using configure in 
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.

A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so
Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.
I am useing RedHat 9
I have installed:
openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26
automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/l
ocal/tomcat --with-java-home=/usr/local/java
#make
__
__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__
I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o
but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Clive Luk
Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2

$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy

I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so


Hello,


Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).



That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.


A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so


Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

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



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



RE: Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Collins, Jim
This may be a silly question but can't you just download a binary.

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: 30 July 2003 10:41
To: Tomcat Users List
Subject: RE: Problem building Tomcat Connector mod_jk2.so


Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2

$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy

I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so


Hello,


Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).



That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.


A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so


Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

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



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


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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



RE: Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Clive Luk
It may be silly. I just want to complie the latest connector the binary
available for download is not the latest though.

Cheers,
Clive

-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:50 PM
To: 'Tomcat Users List'
Subject: RE: Problem building Tomcat Connector mod_jk2.so


This may be a silly question but can't you just download a binary.

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: 30 July 2003 10:41
To: Tomcat Users List
Subject: RE: Problem building Tomcat Connector mod_jk2.so


Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2

$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy

I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so


Hello,


Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).



That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.


A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so


Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

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



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


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




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

RE: Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Jørgen Nørgaard
Hi Clive,

my best idea is to try building the mod_jk2 the way I did, using 
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz:

after unpacking:
cd jk/native2/
./configure --with-apxs2=/usr/sbin/apxs2-prefork
make jk2-build-apxs
that left me the mod_jk2.so in the secret .libs directory.

Might work for you also.

How far do yo get this way?

I am on SuSE 8.1 java 1.4.1 apache2.0.46 and tomcat 4.1.24 though I 
suppose that should not matter too much.

Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2
$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy
I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!
Cheers,
Clive
-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so
Hello,

Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).


That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork
select the proper apxs2 for your mpm model.

A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so
Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.
I am useing RedHat 9
I have installed:
openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26
automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__
__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__
I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o
but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OFF TOPIC ] Openssl..error creating server.crt ???

2003-07-30 Thread srevilak
 I had some, for me, un-decipherable error messages when trying to sign
 my own certificate.
 First I created  my private key and certificate signing request :
 [ssl]# openssl genrsa -des3 -out sever.key 1024
 [ssl]# openssl req -new -key server.key -out server.csr
 Then I created my own certificate authority:
 [ssl]# openssl genrsa -des3 -out ca.key 1024
 Next, I created a self-signed CA certificate with my rsa key:
 [ssl]# openssl req -new -x509 -days 365 -key ca.key -out ca.crt
 Finally, I attempted to sign the ca.crt
 [ssl]# ./sign.sh private/server.csr

These seem to be very much like the ones listed in the mod_ssl faq.
http://www.modssl.org/docs/2.8/ssl_faq.html#ToC29


 2117:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
 type is not 01:rsa_pk1.c:100:

Just out of curiosity, when sign.sh run the commands

  openssl ca -config ...

what is the argument to -config?  Is the CA_Authority section in that
configuration file referencing your CA?

-- 
Steve

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



Re: Double session cookie

2003-07-30 Thread Tim Funk
It is valid to have multiple JSESSIONID cookies. Because each webapp has its 
own session id. So if you have a webapp mapped to / and a webapp mapped to 
/cowbell. You will have 2 JSESSIONID cookies. One for path / and one for path 
/cowbell. The cookie RFC says that cookies of the same name should be sent 
from most specific to least specific.

So you might be observing this behavior. And some patch revisions of IE don't 
obey the cookie order rule.

-Tim

Tomcat Newbie wrote:
Hello,

I have a problem that has puzzled me for a while and since I was not unable
to find any answers in online archives or elsewhere, I decided to try it
here.
I manage a low traffic web site for a friend of mine on the server running
Tomcat behind the Apache server. What I have been observing lately is that
occasionally I see two JSESSION cookies in the same session. I have seen
this happen even with a newly open browser instance. I am most certain that
this has been affecting the user experience, since in those cases the
browser sort of hangs. The kicker is, the problem only seems to affect
Internet Explorer (at least the version, I have tested with, latest 6.x with
all SPs), but not Mozilla based browsers (not certain about Opera and the
like).
I am not setting a session timeout myself and was assuming/relying on the
default timeout managed by Tomcat. My guess is that any software involved in
the chain could be the culprit: IE, Apache, or Tomcat, and of course, the
site code in JSP. It is Tocat 4.1.24 and Apache 2.0.47. Not sure what
version connectors are, since I built them from source downloaded a few
months ago.
The question is, has anyone observed this on their websites? I presume, that
this is not normal, but is it? Any idea of what I can do about it and where
to look?
Thanks for any ideas,

Ed

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



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


LDAP authentication problem

2003-07-30 Thread Jonipentti Järvinen
I'm using
- Tomcat 4.1.24
- JDK 1.4.x (Sun version)
- Redhat Linux 7.3
- Lotus Domino 5.0.12 as an LDAP server

When I login for the first time, everything works fine. However, after a
while authentication stops working. I tried restarting Domino LDAP
service but it did not help. If I restart Tomcat login works again.
Here's what I get to catalina_log:

---
2003-07-30 13:59:07 CoyoteAdapter An exception or error occurred in the
container during the request processing java.lang.NullPointerException at
org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:793) 
.
.
.
---

Here's realm definition from server.xml:

---
Realm
className=org.apache.catalina.realm.JNDIRealm
connectionURL=ldap://server.name.here:389;
userPattern=cn={0}
roleName=cn
roleSearch=(member={0})/
---
Thank you for any help,

  Jp

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



Tomcat with Virtual hosting

2003-07-30 Thread Abhinav Gautam
Hi,

I am having serious problems with Tomcat. It just happened that without
any reason the web server stopped responding to JSP requests. I have
restarted Tomcat and Apache several times, but when the index.html
forwards the request to index.jsp, I get an error saying page not found.
I have checked the server.xml and the httpd.conf files and everything
seems to be fine. Also when I do netstat -ta the server seems to be
listening on port 8007.

I have virtual hosting set up in tomcat. There's one primary domain with
an IP address and there are 2 other domains with a different IP (different
from primary, but one IP for both of the other domains) set up on the same
web server.

Any help will be greatly appreciated.

Thanks.
Abhinav





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



RE: Best Tomcat Book, Recommendations??? PART 2

2003-07-30 Thread Eric J. Pinnell
You're right,I guess you can always use it to prop your monitor up.  :)

-e

On Wed, 30 Jul 2003, Aggarwal, Gautam (IE03) wrote:

 Can a book ever be 'Pure Garbage'? Please think about it!

 Gautam

 -Original Message-
 From: Tony LaPaso [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 9:50 AM
 To: Tomcat Users List
 Subject: Re: Best Tomcat Book, Recommendations??? PART 2


 First, as I said, my comment about the Wrox books was a generalization.
 There's nothing illogical about making generalizations.

 The Wrox books I've seen were pure garbage. When I'm at the bookstore now I
 don't even bother to browse those big red books, knowing my effort will
 probably be a waste of time. I usually stick with O'Reilly and Manning.
 Perhaps Wrox's quality has improved and I should browse them again.

 As for what I'm looking for -- basically, Tomcat Admin. There are other
 books that teach servlets/JSPs/JSTL/XML, etc. I'm interested in all aspects
 of using TC from an admin's point of view and from a programmer's point of
 view. I guess that's another generalization. :)

 Specifically, setting up TC, using it w/Apache and IIS, TC Security,
 clustering TC servers, setting up JNDI resources. I suspect any good TC book
 will have a good deal of overlap w/the servlet spec v2.4 which is fine.

 I know several books cover these topics (and others) but as I said, I was
 hoping to get some recommendations on the best ones. Perhaps the Wrox one
 is the best.

 Thanks very much for all the input. I really appreciate everyone taking the
 time to write.

 Tony





 - Original Message -
 From: John Turner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, July 29, 2003 7:28 AM
 Subject: Re: Best Tomcat Book, Recommendations??? PART 2


 
  What, exactly is it that you want to know?
 
  You say I want a Tomcat book but then you say I don't want anything
  about servlets.  So what is it you want?  An admin reference (the Wrox
  book is focused that way)?  A performance tuning book?  People can't
  answer you or help you unless you are specific!
 
  Do you have specific questions?  Have you asked them here or on
  tomcat-dev?  Why wait for a book?  You have access to the people who are
  actually writing Tomcat and using Tomcat in heavy-duty production
  situations right here, right now.
 
  John
 
  Tony LaPaso wrote:
 
   Sorry, but I forgot to mention: I'm really only interested in Tomcat
   specifically, not how to program servlets/JSPs. Some of the TC books
 I've
   seen like to make themselves nice and plump by describing servlet
   programming, what HTTP is, what XML is, etc., etc. I don't need that
 extra
   fat.
  
   Thanks again...
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



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



[OFF TOPIC ] Openssl..error creating server.crt ???

2003-07-30 Thread achana
Hi Steve.
Well actually, nothing !
...
CA signing: private/server.csr - private/server.crt:
Using configuration from ca.config
Enter PEM pass phrase:
...
and so forth. But it doesn't tell me what are the configuration
parameters.
I tried this a few times, always the same error messages but it builds
the requisite server.crt at the end.
Is ca.config some file I am suposed t have, t is very hard to find
anything in RedHat.
TIA

[EMAIL PROTECTED] wrote:
 
  I had some, for me, un-decipherable error messages when trying to sign
  my own certificate.
  First I created  my private key and certificate signing request :
  [ssl]# openssl genrsa -des3 -out sever.key 1024
  [ssl]# openssl req -new -key server.key -out server.csr
  Then I created my own certificate authority:
  [ssl]# openssl genrsa -des3 -out ca.key 1024
  Next, I created a self-signed CA certificate with my rsa key:
  [ssl]# openssl req -new -x509 -days 365 -key ca.key -out ca.crt
  Finally, I attempted to sign the ca.crt
  [ssl]# ./sign.sh private/server.csr
 
 These seem to be very much like the ones listed in the mod_ssl faq.
 http://www.modssl.org/docs/2.8/ssl_faq.html#ToC29
 
  2117:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
  type is not 01:rsa_pk1.c:100:
 
 Just out of curiosity, when sign.sh run the commands
 
   openssl ca -config ...
 
 what is the argument to -config?  Is the CA_Authority section in that
 configuration file referencing your CA?
 
 --
 Steve
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: [OFF TOPIC ] Openssl..error creating server.crt ???

2003-07-30 Thread achana
I should add that openssl.cnf is  same RH default directory and I have
edited it a tiny bit.

[EMAIL PROTECTED] wrote:
 
  I had some, for me, un-decipherable error messages when trying to sign
  my own certificate.
  First I created  my private key and certificate signing request :
  [ssl]# openssl genrsa -des3 -out sever.key 1024
  [ssl]# openssl req -new -key server.key -out server.csr
  Then I created my own certificate authority:
  [ssl]# openssl genrsa -des3 -out ca.key 1024
  Next, I created a self-signed CA certificate with my rsa key:
  [ssl]# openssl req -new -x509 -days 365 -key ca.key -out ca.crt
  Finally, I attempted to sign the ca.crt
  [ssl]# ./sign.sh private/server.csr
 
 These seem to be very much like the ones listed in the mod_ssl faq.
 http://www.modssl.org/docs/2.8/ssl_faq.html#ToC29
 
  2117:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block
  type is not 01:rsa_pk1.c:100:
 
 Just out of curiosity, when sign.sh run the commands
 
   openssl ca -config ...
 
 what is the argument to -config?  Is the CA_Authority section in that
 configuration file referencing your CA?
 
 --
 Steve
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Tomcat with Virtual hosting

2003-07-30 Thread Andrew Geery
Why do you need to forward the request from index.html to index.jsp? 
Can't you simply set index.jsp to be a directory index page (e.g., 
DirectoryIndex index.html index.jsp)?

Abhinav Gautam wrote:

Hi,

I am having serious problems with Tomcat. It just happened that without
any reason the web server stopped responding to JSP requests. I have
restarted Tomcat and Apache several times, but when the index.html
forwards the request to index.jsp, I get an error saying page not found.
I have checked the server.xml and the httpd.conf files and everything
seems to be fine. Also when I do netstat -ta the server seems to be
listening on port 8007.
I have virtual hosting set up in tomcat. There's one primary domain with
an IP address and there are 2 other domains with a different IP (different
from primary, but one IP for both of the other domains) set up on the same
web server.
Any help will be greatly appreciated.

Thanks.
Abhinav




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



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


Retrieving user-name via Tomcat/Apache

2003-07-30 Thread Urs Pante
Hi,

I am running Tomcat 4.1.24 with Apache 2.0.46.

Apache is doing the authentication (Type: Basic) for my servlets, but 
now I want to access the user-name within the servlets (using the 
getRemoteUser() method). However, this method only returns with an empty 
string.

Any help is highly appreciated.

Thanks.
Urs
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with buildconf.sh

2003-07-30 Thread batristain
Greetings,
I still can't get buildconf.sh to run without an error - this is what happens
when I try to run it


# ./buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required
automake -a --foreign -i --copy
automake: `configure.ac' or `configure.in' is required
autoconf
autoconf: no input file
--


I've tried untaring it with the new GNU tar - doesn't help - I've also looked
for weird characters in the buildconf.sh and configure.ac files  - but there are
none.  I'm at a loss as to what to do - any help would be appreciated.

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



Re: [Fatal Error] :2:5118: Content is not allowed in trailing section.

2003-07-30 Thread Geralyn M Hollerman
Venkatesh K. Kesavan wrote:
   I have been using tomcat 4.0 till date and recently I upgraded to
 4.1.24. My application is working in 4.1.24 but tomcat server screen
 shows the error [Fatal Error] :2:5118: Content is not allowed in
 trailing section.  whenever I open any jsp.(error repeated till the
 jsp
 is completely displayed in the browser). I don't get this error in
 tomcat 4.0. Why is this error due to? How do I correct it? Thanks in
 advance for your help.

We recently moved from 4.0.4 to 4.1.24 and got a similar error - but
after some research, I found that error was due to another upgrade we
did, from JDK 1.4.1 to JDK 1.4.2. The main app we use uses a lot of XML,
and we needed a newer version of xalan.jar (I think 2.5.1 was the one we
needed)(got it from the apache.org site) to put in
{CATALINA_HOME}/lib/endorsed. This *might* fix your problem...

-- 
Lynn Hollerman.

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



Re: Port 80, 8009 and 8080

2003-07-30 Thread John Turner
That is correct.

John

Zsolt Koppany wrote:
Hi,

as far as I know, in this case tomcat must be started by the super-user
under Unix to bind a port  1024.

In production, if you do not run Apache and run Tomcat alone as your 
only webserver, you DISABLE the AJP connector on port 8009 and change 
the HTTP connector on port 8080 to port 80, so that web users do not 
have to type a port number on the URL.



Zsolt

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


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


RE: 500 Custom Error

2003-07-30 Thread Shapira, Yoav

Howdy,

 Are Custom Error pages available for 500 errors?

500's are tough, as they are internal server (i.e. not your webapp's)
errors.  I don't recall the spec on this point, but at some point I
thought error page customization only had to be available for 300 and
400 range HTTP status.

As 500's can occur anywhere in the request processing pipeline, it's
difficult to provide the custom error page hook for them.

 This is under tomcat 4.0.4. (Although production will be under
 4.1.24)

Not a good idea: there are significant differences between the 4.0.x and
4.1.x branch of tomcat, and you should at least test, if not develop, on
4.1.24 before deploying to it.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Best Tomcat Book, Recommendations??? PART 2

2003-07-30 Thread John Turner
I don't buy many books any more, but AFAIK the Wrox book is the only 
Tomcat book targeted towards setup and administration.

I know for a fact there are at least two books due out before the end of 
the year that should supersede the Wrox book.  The Wrox book was 
published in mid-2002, and there's been a lot of activity on Tomcat since.

Don't judge a book by its cover. ;)

John

Tony LaPaso wrote:

First, as I said, my comment about the Wrox books was a generalization.
There's nothing illogical about making generalizations.
The Wrox books I've seen were pure garbage. When I'm at the bookstore now I
don't even bother to browse those big red books, knowing my effort will
probably be a waste of time. I usually stick with O'Reilly and Manning.
Perhaps Wrox's quality has improved and I should browse them again.
As for what I'm looking for -- basically, Tomcat Admin. There are other
books that teach servlets/JSPs/JSTL/XML, etc. I'm interested in all aspects
of using TC from an admin's point of view and from a programmer's point of
view. I guess that's another generalization. :)
Specifically, setting up TC, using it w/Apache and IIS, TC Security,
clustering TC servers, setting up JNDI resources. I suspect any good TC book
will have a good deal of overlap w/the servlet spec v2.4 which is fine.
I know several books cover these topics (and others) but as I said, I was
hoping to get some recommendations on the best ones. Perhaps the Wrox one
is the best.
Thanks very much for all the input. I really appreciate everyone taking the
time to write.
Tony





- Original Message - 
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 7:28 AM
Subject: Re: Best Tomcat Book, Recommendations??? PART 2



What, exactly is it that you want to know?

You say I want a Tomcat book but then you say I don't want anything
about servlets.  So what is it you want?  An admin reference (the Wrox
book is focused that way)?  A performance tuning book?  People can't
answer you or help you unless you are specific!
Do you have specific questions?  Have you asked them here or on
tomcat-dev?  Why wait for a book?  You have access to the people who are
actually writing Tomcat and using Tomcat in heavy-duty production
situations right here, right now.
John

Tony LaPaso wrote:


Sorry, but I forgot to mention: I'm really only interested in Tomcat
specifically, not how to program servlets/JSPs. Some of the TC books
I've

seen like to make themselves nice and plump by describing servlet
programming, what HTTP is, what XML is, etc., etc. I don't need that
extra

fat.

Thanks again...

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


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


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


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


RE: Does Tomcat load config. files dynamically?

2003-07-30 Thread Shapira, Yoav

Howdy,
These files are different from each other.  Server.xml is read on startup and requires 
a server restart to reload.

Web.xml for a given webapp is read when the webapp is loaded (normally on server 
startup), and you can have it reloaded by reloading the webapp (via the manager 
webapp), without restarting the whole server.

Web.xml for the server ($CATALINA_HOME/conf/web.xml) is loaded once on server startup. 
 If you need elements from it reloaded, move them into your webapp's web.xml file.

Tomcat-users.xml is only used if you're using the default user memory database.  If 
so, it's loaded on startup.  It's conceivable to add dynamic reloading to it: feel 
free to contribute a code patch ;)

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 8:18 AM
To: [EMAIL PROTECTED]
Subject: Does Tomcat load config. files dynamically?

Hi
 
Does Tomcat loads the configuration files (web.xml, server.xml, tomcat-users.xml) 
dynamically.?
 
Thus if I make any changes in these files while Tomcat is running, Do I need to 
restart Tomcat to reflect the changes or Tomcat automatically detect the changes and 
use the new settings?
 
If Tomcat does not use dynamic loading, is there a way to support this?
 
thanks  regards
Naresh Agarwal   



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Apache + Tomcat + mod_jk

2003-07-30 Thread John Turner
Hi -

I try to avoid free individual support.  If you post your questions and 
your config specifics to the list, someone will help you, and then at 
least it will be in the archives for everyone else instead of just your 
InBox and mine.

John

v.siguier wrote:

Dear John,

All I do to configure Apache with Tomcat thanks to mod_jk is from your document at http://www.johnturner.com/howto (NT platform)... is there a mail address where I can forward you all config files (httpd.conf, server.xml...) ?

Regards




or 3) dispensing with the mod_jk.conf method and modifying httpd.conf 
manually to work in your environment.

John



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


RE: Error when using Tomcat 4.1.24

2003-07-30 Thread Shapira, Yoav

Howdy,
Put Password.class under WEB-INF/classes, not WEB-INF/lib.  Only .jar
files go under the lib directory.

Additionally, I strongly suggest you put Password.class in a package,
e.g. com.yourcompany (and then in WEB-INF/classes/com/yourcompany).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 4:00 AM
To: 'Tomcat Users List'
Subject: Error when using Tomcat 4.1.24

Hi All,

We are using tomcat 4.1.24 to connect to web. The application GUI comes
up when we connect to web using
http://hostname:8080/index.jsp.

The next window after this is the Login.jsp page. We use
Password.class to check for password integrity to go thru the
Login.jsp page. But I get the following error when I give password, and
press enter :

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 3 in the jsp file: /login.jsp

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac]
/export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/login_jsp.ja
v
a:57: cannot resolve symbol
[javac] symbol  : variable Password
[javac] location: class org.apache.jsp.login_jsp
[javac]InputStream is = Password.getPasswordsFromDB();


We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.

Am I missing some configuration ? Please help me on this.

Thanks,
Sarika


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Re[2]: [Q] Is it safe to create threads in Tomcat web-apps?

2003-07-30 Thread Shapira, Yoav

Howdy,
Don't use commons-pool for a thread pool.  Use Doug Lea's concurrency
library instead.  I should add this do the commons-pool javadoc
somewhere.  Commons-pool is excellent for all types of pooling, but not
threads, as the concurrency issues are difficult at best to overcome.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Anton Tagunov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 1:37 AM
To: Tomcat Users List
Subject: Re[2]: [Q] Is it safe to create threads in Tomcat web-apps?

Hello Srevilak!

sgn However, if the three steps are IO-bound, using multiple threads
to
sgn run them concurrently can lead to a big improvement.

One might also consider using some kind of thread pooler in this
setting. Perhaps one could be crafted on top of
jakarta-commons-pool

-Anton


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread John Turner
Try the connector source from here:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

John

Clive Luk wrote:

Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2
$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy
I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!
Cheers,
Clive
-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so
Hello,

Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).


That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork
select the proper apxs2 for your mpm model.

A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so
Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:

Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no

error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.
I am useing RedHat 9
I have installed:
openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26
automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l

ocal/tomcat --with-java-home=/usr/local/java
#make
__
__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__
I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o
but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


Re: Tomcat with Virtual hosting

2003-07-30 Thread John Turner
That's a known problem with the Apache connectors.  DirectoryIndex 
index.jsp has no effect.  I think some people have had success mucking 
around with mod_rewrite and/or the module load order, but I don't recall 
anyone ever posting a definitive solution to the list.

The most basic workaround is to use a META refresh in index.html to 
redirect to index.jsp.  If anyone has a more elegant solution, I'd love 
to see it.

John

Andrew Geery wrote:

Why do you need to forward the request from index.html to index.jsp? 
Can't you simply set index.jsp to be a directory index page (e.g., 
DirectoryIndex index.html index.jsp)?

Abhinav Gautam wrote:

Hi,

I am having serious problems with Tomcat. It just happened that without
any reason the web server stopped responding to JSP requests. I have
restarted Tomcat and Apache several times, but when the index.html
forwards the request to index.jsp, I get an error saying page not 
found.
I have checked the server.xml and the httpd.conf files and everything
seems to be fine. Also when I do netstat -ta the server seems to be
listening on port 8007.

I have virtual hosting set up in tomcat. There's one primary domain with
an IP address and there are 2 other domains with a different IP 
(different
from primary, but one IP for both of the other domains) set up on the 
same
web server.

Any help will be greatly appreciated.

Thanks.
Abhinav




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



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


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


RE: Rooting request to one or an other webapp

2003-07-30 Thread Shapira, Yoav

Howdy,

does someone know a way to catch a request and to forward it to one or
an
other webapp according to some runtime settings?

The idea is to be able at runtime to smoothly add a webapp, set it as
the
default, and to remove the one that was the default when it has no
active
session anymore.

Something similar to this has been requested and discussed several times
(it's generally a bad idea), so you can search this list's archives for
more information.

Broadly speaking:

- Let's call webapp1 the one to be removed
- Let's call webapp2 the one to be added

You would need:
- A session listener in webapp1 maintaining a session count, and having
a public static int getSessionCount() method.
- A filter in webapp1 mapped to /* which consults the session count each
time and if 0 (or whatever other runtime setting you choose, e.g. a
context param), forwards requests to webapp2
- Maybe an admin JSP (or some other means) in webapp1 to set the runtime
settings for the filter
- Once you see the above happening, you can remove webapp1 via the
manager webapp

Of course, there are caveats:

- Initially the session count for webapp1 will be zero, so the filter
will forward, unless you also have a runtime setting for the filter that
says don't forward
- If you want to remove webapp1 programatically, you will need some
classes to be in the common/lib repository, not web-inf/lib, as these
classes will need to access tomcat internals (making them non-portable).

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: 500 Custom Error

2003-07-30 Thread Joe Reger, Jr.
 500's are tough...

Doesn't putting this in web.xml call a custom 500 error page called 500.jsp?

error-page
 error-code500/error-code
 location/error/500.jsp/location
/error-page 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 8:59 AM
To: Tomcat Users List; Kenneth Brooks


Howdy,

 Are Custom Error pages available for 500 errors?

500's are tough, as they are internal server (i.e. not your webapp's)
errors.  I don't recall the spec on this point, but at some point I thought
error page customization only had to be available for 300 and 400 range HTTP
status.

As 500's can occur anywhere in the request processing pipeline, it's
difficult to provide the custom error page hook for them.

 This is under tomcat 4.0.4. (Although production will be under
 4.1.24)

Not a good idea: there are significant differences between the 4.0.x and
4.1.x branch of tomcat, and you should at least test, if not develop, on
4.1.24 before deploying to it.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


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



tomcat-5.0.5 cannot access jar resources in WEB-INF/lib but only unzipped in WEB-INF/classes

2003-07-30 Thread Harmsen, Jan
Hi,

the eclipse XSD API xsd.jar (http://www.eclipse.org/xsd/) provides
a set of XML schemata + dtds in an additional jar file xsd.resources.jar.

Both jar files (xsd.jar + xsd.resources.jar) are located in WEB-INF/lib

While Tomcat 4.1.x can access the resources in xsd.resources.jar
Tomcat 5.0.5 throws an exception:

Wrapped exception
java.io.FileNotFoundException:
C:\ApacheGroup\jakarta-tomcat-5.0.5\work\Catalina\localhost\xapp_simple\load
er\org\eclipse\xsd\cache\www.w3.org\2001\MagicXMLSchema.xsd (The system
cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(Unknown Source)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createFileInputStream(U
RIConverterImpl.java:416)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createInputStream(URICo
nverterImpl.java:382)

If xsd.resources.jar is unzipped in WEB-INF/classes Tomcat 5.0.5 can access
the resources.

Is this a bug of Tomcat 5.0.5 or is it a problem of the emf eclipse package
?


Thanks + best regards,

Jan Harmsen

Software AG
The XML company


RE: Error when using Tomcat 4.1.24

2003-07-30 Thread Sarika Inamdar
I've tried putting the Password.class under WEB-INF/classes also. But
its gives the same error.

I also tried to jar the class file and place under WEB-INF/lib. But no
luck.

Thanks,
Sarika

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 6:40 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Error when using Tomcat 4.1.24
 
 
 
 Howdy,
 Put Password.class under WEB-INF/classes, not WEB-INF/lib.  
 Only .jar files go under the lib directory.
 
 Additionally, I strongly suggest you put Password.class in a 
 package, e.g. com.yourcompany (and then in 
 WEB-INF/classes/com/yourcompany).
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 4:00 AM
 To: 'Tomcat Users List'
 Subject: Error when using Tomcat 4.1.24
 
 Hi All,
 
 We are using tomcat 4.1.24 to connect to web. The 
 application GUI comes 
 up when we connect to web using http://hostname:8080/index.jsp.
 
 The next window after this is the Login.jsp page. We use 
 Password.class to check for password integrity to go thru the 
 Login.jsp page. But I get the following error when I give 
 password, and 
 press enter :
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 3 in the jsp file: /login.jsp
 
 Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler setting.
 [javac] 
 /export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/lo
 gin_jsp.ja
 v
 a:57: cannot resolve symbol
 [javac] symbol  : variable Password
 [javac] location: class org.apache.jsp.login_jsp
 [javac]  InputStream is = Password.getPasswordsFromDB();
 
 
 We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.
 
 Am I missing some configuration ? Please help me on this.
 
 Thanks,
 Sarika
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: starting background thread

2003-07-30 Thread Shapira, Yoav

Howdy,
I think those messages were from the HttpProcessor, the old HTTP
connector.  You can still use it if you'd like, but in tomcat 4.1.x the
default connector is Coyote, which doesn't have these messages.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Geralyn M Hollerman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:08 AM
To: Tomcat Users List
Subject: starting background thread

When I was running Tomcat 4.0.4, I would get messages like the subject
line in my log file - I see a Logger element was set up in server.xml
to create the log file each day. However, I've upgraded to 4.1.24, and
I
don't see these messages anymore; I thought I had figured out how to
get
them created, but putting in a Logger element like I had in the
server.xml for 4.0.4 resulted in the log file having plenty of
information about the headers and data being served. I thought perhaps
I
needed to add a verbosity attribute as described in Tomcat's Server
Configuration Reference, but that didn't have the effect I wanted ( I
set verbosity=4). I'd imagine there were other ways of getting the
information on the starting and stopping of each thread, but it was
nice
to have that info in a file I could refer to - especially when trying
to
figure out what caused a server crash over a long weekend! I can get
along without that information in the logs, but does anyone know if
it's
just a matter of changing some setting to get that printed out?

Thanks!
--
Lynn Hollerman.

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Error when using Tomcat 4.1.24

2003-07-30 Thread EXT / ALTIOR CABOU Carl (DRT)
Maybe an import statement is missing ?

Carl.

-Message d'origine-
De : Sarika Inamdar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 30 juillet 2003 15:21
À : 'Tomcat Users List'
Objet : RE: Error when using Tomcat 4.1.24


I've tried putting the Password.class under WEB-INF/classes also. But
its gives the same error.

I also tried to jar the class file and place under WEB-INF/lib. But no
luck.

Thanks,
Sarika

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 6:40 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Error when using Tomcat 4.1.24
 
 
 
 Howdy,
 Put Password.class under WEB-INF/classes, not WEB-INF/lib.  
 Only .jar files go under the lib directory.
 
 Additionally, I strongly suggest you put Password.class in a 
 package, e.g. com.yourcompany (and then in 
 WEB-INF/classes/com/yourcompany).
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 4:00 AM
 To: 'Tomcat Users List'
 Subject: Error when using Tomcat 4.1.24
 
 Hi All,
 
 We are using tomcat 4.1.24 to connect to web. The 
 application GUI comes 
 up when we connect to web using http://hostname:8080/index.jsp.
 
 The next window after this is the Login.jsp page. We use 
 Password.class to check for password integrity to go thru the 
 Login.jsp page. But I get the following error when I give 
 password, and 
 press enter :
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 3 in the jsp file: /login.jsp
 
 Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler setting.
 [javac] 
 /export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/lo
 gin_jsp.ja
 v
 a:57: cannot resolve symbol
 [javac] symbol  : variable Password
 [javac] location: class org.apache.jsp.login_jsp
 [javac]  InputStream is = Password.getPasswordsFromDB();
 
 
 We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.
 
 Am I missing some configuration ? Please help me on this.
 
 Thanks,
 Sarika
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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



Re: Problem with buildconf.sh

2003-07-30 Thread John Turner
Sorry, I don't have access to a Solaris play box anymore, so I'm at a 
loss on how to help you resolve this.  Hopefully someone else has the 
answer.

John

[EMAIL PROTECTED] wrote:

Greetings,
I still can't get buildconf.sh to run without an error - this is what happens
when I try to run it

# ./buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required
automake -a --foreign -i --copy
automake: `configure.ac' or `configure.in' is required
autoconf
autoconf: no input file
--
I've tried untaring it with the new GNU tar - doesn't help - I've also looked
for weird characters in the buildconf.sh and configure.ac files  - but there are
none.  I'm at a loss as to what to do - any help would be appreciated.
Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: Error when using Tomcat 4.1.24

2003-07-30 Thread Sarika Inamdar
The Password.class is not a part of the package. Hence I cannot import
it :-(

Thanks,
Sarika

 -Original Message-
 From: EXT / ALTIOR CABOU Carl (DRT) 
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 7:03 PM
 To: 'Tomcat Users List'
 Subject: RE: Error when using Tomcat 4.1.24
 
 
 Maybe an import statement is missing ?
 
 Carl.
 
 -Message d'origine-
 De : Sarika Inamdar [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 30 juillet 2003 15:21
 À : 'Tomcat Users List'
 Objet : RE: Error when using Tomcat 4.1.24
 
 
 I've tried putting the Password.class under WEB-INF/classes 
 also. But its gives the same error.
 
 I also tried to jar the class file and place under 
 WEB-INF/lib. But no luck.
 
 Thanks,
 Sarika
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 6:40 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: RE: Error when using Tomcat 4.1.24
  
  
  
  Howdy,
  Put Password.class under WEB-INF/classes, not WEB-INF/lib.
  Only .jar files go under the lib directory.
  
  Additionally, I strongly suggest you put Password.class in a
  package, e.g. com.yourcompany (and then in 
  WEB-INF/classes/com/yourcompany).
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 4:00 AM
  To: 'Tomcat Users List'
  Subject: Error when using Tomcat 4.1.24
  
  Hi All,
  
  We are using tomcat 4.1.24 to connect to web. The
  application GUI comes
  up when we connect to web using http://hostname:8080/index.jsp.
  
  The next window after this is the Login.jsp page. We use
  Password.class to check for password integrity to go thru the 
  Login.jsp page. But I get the following error when I give 
  password, and
  press enter :
  
  org.apache.jasper.JasperException: Unable to compile class for JSP
  
  An error occurred at line: 3 in the jsp file: /login.jsp
  
  Generated servlet error:
  [javac] Since fork is true, ignoring compiler setting.
  [javac] Compiling 1 source file
  [javac] Since fork is true, ignoring compiler setting.
  [javac]
  /export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/lo
  gin_jsp.ja
  v
  a:57: cannot resolve symbol
  [javac] symbol  : variable Password
  [javac] location: class org.apache.jsp.login_jsp
  [javac]InputStream is = 
 Password.getPasswordsFromDB();
  
  
  We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.
  
  Am I missing some configuration ? Please help me on this.
  
  Thanks,
  Sarika
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
  
  This e-mail, including any attachments, is a confidential
  business communication, and may contain information that is 
  confidential, proprietary and/or privileged.  This e-mail is 
  intended only for the individual(s) to whom it is addressed, 
  and may not be saved, copied, printed, disclosed or used by 
  anyone else.  If you are not the(an) intended recipient, 
  please immediately delete this e-mail from your computer 
  system and notify the sender.  Thank you.
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Re[2]: Can I get the webapp context path from the init method of a servlet

2003-07-30 Thread Shapira, Yoav

Howdy,

SI Here is the solution that I implemented.

SI s_contextPath =
SI config.getServletContext()
SI .getResource(/).getPath();
SI if ( s_contextPath.equals(/) ) s_contextPath = ;

I don't think the above even works as quoted.  For example,
for a context name /blah on tomcat 4.1.24 the above
Would return /localhost/blah which is not the context
path strictly speaking.  It might work for SI's needs, but
certainly not for HTML purposes.

I also don't know if the above code would work for
context path's containing a slash (e.g. /blah/blah), which
is legal.

I've also been interested in this: anyway,
context path should be a property of servlet context,
then we should be able to get it.

should is a strong word: why do you say that?  Context
path is a property of the request.

Whenever you find something you think should belong in
the specification, but isn't there, it's good to ask why.
Could it be that the reason context path isn't available in
the init method is the same reason that server port isn't available
there? ;)

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Error when using Tomcat 4.1.24

2003-07-30 Thread John Turner
Circular.

Did you miss Yoav's suggestion to put your class in a package?

John

Sarika Inamdar wrote:

The Password.class is not a part of the package. Hence I cannot import
it :-(
Thanks,
Sarika

-Original Message-
From: EXT / ALTIOR CABOU Carl (DRT) 
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 7:03 PM
To: 'Tomcat Users List'
Subject: RE: Error when using Tomcat 4.1.24

Maybe an import statement is missing ?

Carl.

-Message d'origine-
De : Sarika Inamdar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 30 juillet 2003 15:21
À : 'Tomcat Users List'
Objet : RE: Error when using Tomcat 4.1.24
I've tried putting the Password.class under WEB-INF/classes 
also. But its gives the same error.

I also tried to jar the class file and place under 
WEB-INF/lib. But no luck.

Thanks,
Sarika

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 6:40 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Error when using Tomcat 4.1.24


Howdy,
Put Password.class under WEB-INF/classes, not WEB-INF/lib.
Only .jar files go under the lib directory.
Additionally, I strongly suggest you put Password.class in a
package, e.g. com.yourcompany (and then in 
WEB-INF/classes/com/yourcompany).

Yoav Shapira
Millennium ChemInformatics


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


Re: Double session cookie

2003-07-30 Thread Tomcat Newbie
Tim,

Thanks for your most informative response. Unfortunately, the two
cookies I am observing are from the same webapp.

Would it have something to do with the requests to www.mydomain.com and
mydomain.com? I see such difference for at least one of the requests for
those sessions. My app hardcodes www.mydomain.com links. I remember I had
some problems with enabling https, whereby I would loose session going back
and forth between https and http due to higher priorities elsewhere. I still
have not solved that, but remember reading something about declaring the
cookie domain in Tomcat configuration (why not webapp?).

I also forgot to mention that I have Cocoon 2.0.4 installed for the web app,
but since it had a broken JSPGenerator, I did not use it to process JSP
pages, only to direct requests for now.

Ed


 It is valid to have multiple JSESSIONID cookies. Because each webapp has
its
 own session id. So if you have a webapp mapped to / and a webapp mapped to
 /cowbell. You will have 2 JSESSIONID cookies. One for path / and one for
path
 /cowbell. The cookie RFC says that cookies of the same name should be sent
 from most specific to least specific.

 So you might be observing this behavior. And some patch revisions of IE
don't
 obey the cookie order rule.

 -Tim


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



FW: Problem with buildconf.sh

2003-07-30 Thread batristain


-Original Message-
From: Atristain, Bobbie J. 
Sent: Wednesday, July 30, 2003 8:39 AM
To: [EMAIL PROTECTED]
Subject: Problem with buildconf.sh


Greetings,
I still can't get buildconf.sh to run without an error - this is what
happens when I try to run it


# ./buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required
automake -a --foreign -i --copy
automake: `configure.ac' or `configure.in' is required
autoconf
autoconf: no input file
--


I've tried untaring it with the new GNU tar - doesn't help - I've also
looked for weird characters in the buildconf.sh and configure.ac files  -
but there are none.  I'm at a loss as to what to do - any help would be
appreciated.

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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

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



Re: Problem with buildconf.sh

2003-07-30 Thread Eric J. Pinnell
What version of solaris is this?  I wasn't paying attention.

-e

On Wed, 30 Jul 2003, John Turner wrote:


 Sorry, I don't have access to a Solaris play box anymore, so I'm at a
 loss on how to help you resolve this.  Hopefully someone else has the
 answer.

 John

 [EMAIL PROTECTED] wrote:

  Greetings,
  I still can't get buildconf.sh to run without an error - this is what happens
  when I try to run it
 
  
  # ./buildconf.sh
  libtoolize --force --automake --copy
  libtoolize: `configure.ac' does not exist
  Try `libtoolize --help' for more information.
  aclocal
  aclocal: `configure.ac' or `configure.in' is required
  automake -a --foreign -i --copy
  automake: `configure.ac' or `configure.in' is required
  autoconf
  autoconf: no input file
  --
 
 
  I've tried untaring it with the new GNU tar - doesn't help - I've also looked
  for weird characters in the buildconf.sh and configure.ac files  - but there are
  none.  I'm at a loss as to what to do - any help would be appreciated.
 
  Thanks,
  Bobbie
 
  Bobbie Atristain
  Internet Systems Administrator
  Media General, INC.
  804.649.6156
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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



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



jk connector and response.sendRedirect()

2003-07-30 Thread Chris Egolf
I'm pulling my hair out on this one, but I think I've narrowed it down so I can 
at least ask the question...

We're running Tomcat 4.1.24/Apache 1.3.27/Sun JDK 1.4.2 using mod_jk.  The issue 
we're dealing with now, is that in some cases an existing webapp uses the 
response.sendRedirect() method to redirect the client to another relative URL. 
Previously, we were using the warp connector and everything worked fine.  Now, 
using mod_jk, the redirect fails causing the browser to say it can't find the 
host.

Here's what I've tried so far.  I removed Apache from the mix and setup the 
Coyote HTTP/1.1 connector to listen to port 80.  Everything works fine with this 
setup, so it must be a connector thing, right?

With just the JK connector enabled and listening on 8009, I've added Apache back 
and setup Alias elements in the Host element of my server.xml.  The host the 
browser says it can't find is the actual hostname of the machine, not the DNS 
entry.

I believe this is a problem unique to the jk connector (or how I have it 
configured) and the response.sendRedirect() method.  Here's the documentation 
from the servlet API:

public void sendRedirect(java.lang.String location)
  throws java.io.IOException
Sends a temporary redirect response to the client using the specified 
redirect location URL. This method can accept relative URLs; the servlet 
container will convert the relative URL to an absolute URL before sending the 
response to the client.

If the response has already been committed, this method throws an 
IllegalStateException. After using this method, the response should be 
considered to be committed and should not be written to.

Here's the connector and Host element stuff from my server.xml:
...
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true acceptCount=10 debug=0
   connectionTimeout=0 useURIValidationHack=false/
...
Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
Aliasdemo.mycompany.com/Alias
Aliasgoatweed/Alias
Aliasdemo/Alias
Aliasgoatweed.mycompany.com/Alias
Aliasdemo.anotherdomain.net/Alias
Aliasgoatweed.anotherdomain.net/Alias
...
/Host
Anyone have any ideas or see a glaring mistake on my part?  I'll gladly provide 
more info if needed.

Thanks,

Chris Egolf

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


Problem with tomcat and ssl

2003-07-30 Thread batristain
Greetings,
This will work - http://placeanad.classifiedmarketplace.net:8080/AdWebster
but this will not
https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



Re: Problem with tomcat and ssl

2003-07-30 Thread Mark W. Webb
do you have ssl turned on in apache?  This is definitely an apache 
config issue

[EMAIL PROTECTED] wrote:

Greetings,
This will work - http://placeanad.classifiedmarketplace.net:8080/AdWebster
but this will not
https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?
Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 





smime.p7s
Description: S/MIME Cryptographic Signature


RE: Problem with tomcat and ssl

2003-07-30 Thread batristain
Yes - if I take the 8080 out it just displays code
Go to https://placeanad.classifiedmarketplace.net/AdWebster

But yes the ssl is turned on

Thanks,
Bobbie

-Original Message-
From: Mark W. Webb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:34 AM
To: Tomcat Users List
Subject: Re: Problem with tomcat and ssl


do you have ssl turned on in apache?  This is definitely an apache 
config issue

[EMAIL PROTECTED] wrote:

Greetings,
This will work - 
http://placeanad.classifiedmarketplace.net:8080/AdWebster
but this will not
https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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




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



Re: Problem with tomcat and ssl

2003-07-30 Thread Mark W. Webb
...also, you do not need the :8080 for https.  it will default to port 443

Mark W. Webb wrote:

do you have ssl turned on in apache?  This is definitely an apache 
config issue

[EMAIL PROTECTED] wrote:

Greetings,
This will work - 
http://placeanad.classifiedmarketplace.net:8080/AdWebster
but this will not
https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is 
this?

Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 







smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problem with buildconf.sh

2003-07-30 Thread Eric J. Pinnell
Ok,

Solaris 9 works for me.

I had to install libtool-1.5, autoconf-2.57, and automake-1.7.  I also had
to install m4-1.4.

jakarta-tomcat-connectors-jk-1.2.4-src/jk/native:

bash-2.05$ ./buildconf.sh
libtoolize --force --automake --copy
aclocal
automake -a --foreign -i --copy
configure.in: installing `scripts/build/unix/install-sh'
configure.in: installing `scripts/build/unix/mkinstalldirs'
configure.in: installing `scripts/build/unix/missing'
autoconf
bash-2.05$

Dunno what's going on over there.

-e

On Wed, 30 Jul 2003, Eric J. Pinnell wrote:

 What version of solaris is this?  I wasn't paying attention.

 -e

 On Wed, 30 Jul 2003, John Turner wrote:

 
  Sorry, I don't have access to a Solaris play box anymore, so I'm at a
  loss on how to help you resolve this.  Hopefully someone else has the
  answer.
 
  John
 
  [EMAIL PROTECTED] wrote:
 
   Greetings,
   I still can't get buildconf.sh to run without an error - this is what happens
   when I try to run it
  
   
   # ./buildconf.sh
   libtoolize --force --automake --copy
   libtoolize: `configure.ac' does not exist
   Try `libtoolize --help' for more information.
   aclocal
   aclocal: `configure.ac' or `configure.in' is required
   automake -a --foreign -i --copy
   automake: `configure.ac' or `configure.in' is required
   autoconf
   autoconf: no input file
   --
  
  
   I've tried untaring it with the new GNU tar - doesn't help - I've also looked
   for weird characters in the buildconf.sh and configure.ac files  - but there are
   none.  I'm at a loss as to what to do - any help would be appreciated.
  
   Thanks,
   Bobbie
  
   Bobbie Atristain
   Internet Systems Administrator
   Media General, INC.
   804.649.6156
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



Re: Problem with tomcat and ssl

2003-07-30 Thread Eric J. Pinnell
You can't send http and https requests to the same port.

-e

On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

 Greetings,
 This will work - http://placeanad.classifiedmarketplace.net:8080/AdWebster
 but this will not
 https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?

 Thanks,
 Bobbie

 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156

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



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



Tomcat 4.1.24/NetBeans IDE 3.5 integration

2003-07-30 Thread Carlos Cajina
Good morning to all.

This might look like a dumb question, but I haven't been able to figure
out what's going on.
Previous considerations: I've done the following with both the ZIP and
EXE distribution of Tomcat.
This is the problem: in NetBeans Runtime Tab-Server Registry-Installed
Servers-Tomcat node I add my external tomcat installation, which is located
in C:\ApacheGroup\Tomcat4.1.24. After doign this I'm able to start and
stop the server instance using the IDE, but if during this setup I choose
Full integration mode with the IDE I can't access any of the Tomcat's
included WebApps (/admin, /manager, /examples) after starting the server
from the IDE, I'm not even able to get http://localhost:8080, just error
pages. Now, if I choose Minimum integration mode with the IDE everything
works fine, I mean, I can/view use all of Tomcat's default WebApps.
The bottom line is that in Minimum mode (according to NetBeans docs)
the IDE does not modify any files in your Tomcat installation. Therefore,
some features of the IDE will be unavailable, including HTTP monitoring, JSP
compilation, and JSP debugging., and for development/test purposes I think
I'll need those features.
One thing that caught my attention was the fact that when starting
Tomcat from the IDE in Full integtration mode and checking the open ports in
localhost everything seemed to be fine, ports 8080 and 8009 where listening
for connections.
Does anybody have experience configuring such a development enviroment?
Any help would be much appreciated.

Regards,

Carlos C.

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



RE: Problem with buildconf.sh

2003-07-30 Thread batristain
Yeah I installed all of that but it's still coming up with the error for me
- not sure what's going on either
Thanks,
Bobbie

-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:44 AM
To: Tomcat Users List
Subject: Re: Problem with buildconf.sh


Ok,

Solaris 9 works for me.

I had to install libtool-1.5, autoconf-2.57, and automake-1.7.  I also had
to install m4-1.4.

jakarta-tomcat-connectors-jk-1.2.4-src/jk/native:

bash-2.05$ ./buildconf.sh
libtoolize --force --automake --copy
aclocal
automake -a --foreign -i --copy
configure.in: installing `scripts/build/unix/install-sh'
configure.in: installing `scripts/build/unix/mkinstalldirs'
configure.in: installing `scripts/build/unix/missing'
autoconf
bash-2.05$

Dunno what's going on over there.

-e

On Wed, 30 Jul 2003, Eric J. Pinnell wrote:

 What version of solaris is this?  I wasn't paying attention.

 -e

 On Wed, 30 Jul 2003, John Turner wrote:

 
  Sorry, I don't have access to a Solaris play box anymore, so I'm 
  at a loss on how to help you resolve this.  Hopefully someone else 
  has the answer.
 
  John
 
  [EMAIL PROTECTED] wrote:
 
   Greetings,
   I still can't get buildconf.sh to run without an error - this is 
   what happens when I try to run it
  
   
   # ./buildconf.sh
   libtoolize --force --automake --copy
   libtoolize: `configure.ac' does not exist
   Try `libtoolize --help' for more information.
   aclocal
   aclocal: `configure.ac' or `configure.in' is required automake -a 
   --foreign -i --copy
   automake: `configure.ac' or `configure.in' is required autoconf
   autoconf: no input file
   --
  
  
   I've tried untaring it with the new GNU tar - doesn't help - I've 
   also looked for weird characters in the buildconf.sh and 
   configure.ac files  - but there are none.  I'm at a loss as to 
   what to do - any help would be appreciated.
  
   Thanks,
   Bobbie
  
   Bobbie Atristain
   Internet Systems Administrator
   Media General, INC.
   804.649.6156
  
   --
   ---
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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

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



RE: Problem with tomcat and ssl

2003-07-30 Thread batristain
Well when I try to go through 8443 the page doesn't display at all
Any other suggestions on how to set this  up?

-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:45 AM
To: Tomcat Users List
Subject: Re: Problem with tomcat and ssl


You can't send http and https requests to the same port.

-e

On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

 Greetings,
 This will work - 
 http://placeanad.classifiedmarketplace.net:8080/AdWebster
 but this will not
 https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?

 Thanks,
 Bobbie

 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156

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



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

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



Re: Problem with tomcat and ssl

2003-07-30 Thread John Turner
As Eric said, you can't send HTTP and HTTPS requests to the same port.

The default port for HTTPS with CoyoteConnector, assuming you have SSL 
setup in server.xml, is 8443, not 8080.  And the CoyoteConnector on 8443 
is disabled by default so you will have to enable it as part of the SSL 
setup.

John

[EMAIL PROTECTED] wrote:

Greetings,
This will work - http://placeanad.classifiedmarketplace.net:8080/AdWebster
but this will not
https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?
Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: jk connector and response.sendRedirect()

2003-07-30 Thread John Turner
Chris Egolf wrote:

With just the JK connector enabled and listening on 8009, I've added 
Apache back and setup Alias elements in the Host element of my 
server.xml.  The host the browser says it can't find is the actual 
hostname of the machine, not the DNS entry.
Can Apache resolve this hostname?  Is it setup in /etc/hosts (or the 
HOSTS file if you're using Win32)?

John



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


RE: Problem with tomcat and ssl

2003-07-30 Thread batristain
I uncommented it - is there something else I have to do to set it up?

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:57 AM
To: Tomcat Users List
Subject: Re: Problem with tomcat and ssl



As Eric said, you can't send HTTP and HTTPS requests to the same port.

The default port for HTTPS with CoyoteConnector, assuming you have SSL 
setup in server.xml, is 8443, not 8080.  And the CoyoteConnector on 8443 
is disabled by default so you will have to enable it as part of the SSL 
setup.

John

[EMAIL PROTECTED] wrote:

 Greetings,
 This will work - 
 http://placeanad.classifiedmarketplace.net:8080/AdWebster
 but this will not
 https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?
 
 Thanks,
 Bobbie
 
 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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

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



RE: Problem with buildconf.sh

2003-07-30 Thread Eric J. Pinnell
check your permissions and all that unixy kinda of stuff.  make sure you
can create and read the file.

just a thought.

-e

On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

 Yeah I installed all of that but it's still coming up with the error for me
 - not sure what's going on either
 Thanks,
 Bobbie

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 10:44 AM
 To: Tomcat Users List
 Subject: Re: Problem with buildconf.sh


 Ok,

 Solaris 9 works for me.

 I had to install libtool-1.5, autoconf-2.57, and automake-1.7.  I also had
 to install m4-1.4.

 jakarta-tomcat-connectors-jk-1.2.4-src/jk/native:

 bash-2.05$ ./buildconf.sh
 libtoolize --force --automake --copy
 aclocal
 automake -a --foreign -i --copy
 configure.in: installing `scripts/build/unix/install-sh'
 configure.in: installing `scripts/build/unix/mkinstalldirs'
 configure.in: installing `scripts/build/unix/missing'
 autoconf
 bash-2.05$

 Dunno what's going on over there.

 -e

 On Wed, 30 Jul 2003, Eric J. Pinnell wrote:

  What version of solaris is this?  I wasn't paying attention.
 
  -e
 
  On Wed, 30 Jul 2003, John Turner wrote:
 
  
   Sorry, I don't have access to a Solaris play box anymore, so I'm
   at a loss on how to help you resolve this.  Hopefully someone else
   has the answer.
  
   John
  
   [EMAIL PROTECTED] wrote:
  
Greetings,
I still can't get buildconf.sh to run without an error - this is
what happens when I try to run it
   

# ./buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required automake -a
--foreign -i --copy
automake: `configure.ac' or `configure.in' is required autoconf
autoconf: no input file
--
   
   
I've tried untaring it with the new GNU tar - doesn't help - I've
also looked for weird characters in the buildconf.sh and
configure.ac files  - but there are none.  I'm at a loss as to
what to do - any help would be appreciated.
   
Thanks,
Bobbie
   
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
   
--
---
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
  
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

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



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



Re: Problem with tomcat and ssl

2003-07-30 Thread John Turner
You could follow the SSL HOWTO:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html

John

[EMAIL PROTECTED] wrote:

I uncommented it - is there something else I have to do to set it up?

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:57 AM
To: Tomcat Users List
Subject: Re: Problem with tomcat and ssl



As Eric said, you can't send HTTP and HTTPS requests to the same port.

The default port for HTTPS with CoyoteConnector, assuming you have SSL 
setup in server.xml, is 8443, not 8080.  And the CoyoteConnector on 8443 
is disabled by default so you will have to enable it as part of the SSL 
setup.

John

[EMAIL PROTECTED] wrote:


Greetings,
This will work - 
http://placeanad.classifiedmarketplace.net:8080/AdWebster
but this will not
https://placeanad.classifiedmarketplace.net:8080/AdWebster - why is this?

Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


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


RE: Problem building Tomcat Connector mod_jk2.so PART 2

2003-07-30 Thread Sullivan, Patrick
I struggle for weeks with this but then Jeff's pages provide key pointers to get me 
past it because the .libs version of mod_jk2.so would not load into apache.

Check out his pointers at http://www.apache.org/~trawick/  I know they are mostly AIX 
specific but use them as a general rule that when he says don't use vendor supplied 
tar and make DON'T. Once I switched to the GNU version he suggest I built it in no 
time flat!!!

Thank you... Thank you... Thank you... JEFF!!


Thank you,

Patrick Sullivan
Centura Health

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:23 AM
To: Tomcat Users List
Subject: Problem building Tomcat Connector mod_jk2.so PART 2


Sorry for the second post.

I am trying to build from jakarta-tomcat-connectors-4.1.26-src.tar.gz.
Please let me know if you need more information.

apache2 works fine on port 80.
Tomcat works fine on port 8080.

Cheers,
Clive

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:16 PM
To: [EMAIL PROTECTED]
Subject: Problem building Tomcat Connector mod_jk2.so


Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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






This communication is for the use of the intended recipient only.  It may contain 
information that is privileged and confidential.  If you are not the intended 
recipient of this communication, any disclosure, copying, further distribution or use 
thereof is prohibited.  If you have received this communication in error, please 
advise me by return e-mail or by telephone and delete/destroy it.


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



RE: mod_jk2 combined with mod_include bug?

2003-07-30 Thread Olle Sundblad
Please help! Am I asking in the wrong forum?

I have now also tried with mod_jk (not mod_jk2) and it is the same problem:
as soon as I turn on Apache Includes the page stops working (but only when
it comes from Tomcat via mod_jk, it works perfectly in Tomcat).

Could someone using Apache2 and mod_jk installed (prefrebly mod_jk2) try
this jsp page with and without includes on (in Apache2) and tell me if it
works or not for them?

  %@ page language=java %
  html
  head
titleTest/title
  /head
  body
  pre
  %
 for (int i = 0; i  5000; i++) {
out.println(tabletrtdi = +i+/td/tr/table);
 }
  %
  /pre
  /body
  /html

Just put it in Tomcat's examples/jsp folder and add the following lines to
Apache Httpd2 conf file.

  Location /examples/
  SetOutputFilter Includes
  /Location

If I do it IE the browser tries to reload the page a couple of times before
saying The page cannot be displayed Opera displays a page which is
corrupted.

I have been trying to figure out if it is the Httpd includes (which works
fine for everything except stuff from Tomcat) or the jk connection (which
works fine as long as Includes are off) that is at fault here but getting
nowhere...


Thanks in advance
/Olle


 -Original Message-
 From: Olle Sundblad [mailto:[EMAIL PROTECTED]
 Sent: den 29 juli 2003 17:05
 To: [EMAIL PROTECTED]
 Subject: mod_jk2 combined with mod_include bug?


 Hi,

 I dont't know if this is the right forum? If it is not please tell me were
 to send it.

 I have this bug that I (on and off) have been trying to track down for a
 couple of months now.

 It only occurs when I forward calls from Apache2 to Tomcat and has the the
 Apache2 Includes filter turned on. I get the same result on Win2k
 Professional, Win2k Server, and Win2003 Server (I have also reinstalled
 everything on three different machines just to check:-).

 What I do to get/avoid the bug

 1. Get the bug:
   - Call the jsp page (listed below) through Apache2 which forwards it to
 Tomcat and return it to Apache2 which has the includes filter on
 (SetOutputFilter Includes). The error occurs even when not using
 any include
 statments (as in the sample servlet).
   Sample output from such a call:

   !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 DTD/xhtml1-transitional.dtd
   html
   head
 titleTest/title
 meta http-equiv=content-type content=text/html;
 charset=iso-8859-1
 /
   /head
   body bgcolor=#ff
   h1Test/h1
   pre
   1 tabletrtd1/td/tr/table
   2 tabletrtd2/td/tr/table
   ...
   598 tabletrtd598/td/tr/table
   599  - unexpected newline here
   tabletrtd599/td/tr/table
   600 tabletrtd600/td/tr/table
   ...
   797 tabletrtd797/td/tr/table
   798 tabletrtd798/td  - unexpected newline here
 again (then the
web-browser
 (Opera) stop
 receiving (IE Crash))

   The errors occurs in the same places if I reload the page (or
 even restart
 the machine). But any change to the JSP page move the errors (seemingly at
 random).

 2. Avoid the bug (2 ways)
   - Call the servlet directly from Tomcat - everything works as expected
   or
   - Turn off the Apache2 Includes filter - everything works as expected


 3. (Maybe) Interesting finds
   - If I cut the resulting page from Tomcat's output and place it as a
 static page on the Apache2 server. It outputs it correctly (even with
 includes) on without any bonus new lines. So it is only when the page
 comes from Tomcat (mod_jk2) that the includes fail.
   - Also all static pages with includes work fine as do a number
 of servlets
 and jsp pages (I think the length of the page may have something
 to do with
 it since all shorter pages seem to work fine). So maybe it is a buffer
 problem I actually tried looking at some source code (in both Apache2 and
 Coyote) but gave up since I don't even know were to start...
   - Also on one servlet I removed all uses of includes and it started
 working (but it might have been just luck the newlines in allowed places).
   - Sometimes I get other characters (than newlines) as well for example
 this:

   ...
   992 tabletrtd992/td/tr/table
   993 tabltrtd9
   1ff93/td

 where the newline is followed by 1ff or this:

   ...
   4998 tabletrtd4998/td/tr/table
   4999 tabletrtd4
   8
   999/td
   26
   /tr/table

   /pre
   /body
   /html

   0

 Has anyone encoutered this or have a workaround for it (I would
 really like
 to use the Httpd Includes on output form Tomcat).


 Thanks in advance
 /Olle


 Relevant setup info (don't really know what is relevant so ask for more if
 needed):

 - Apache Tomcat/4.1.24 (binary download version)

 - Apache 2.0.44 (Win32) mod_jk2/2.0.2 (binary download version)
   with mod_jk2-2.0.43.dll (binary download version)

   in httpd.conf
   Location /test/
 SetOutputFilter Includes
   /Location

 - Servlet source code

  

RE: Problem with buildconf.sh

2003-07-30 Thread batristain
Yeah I did that - I even chmod'ed to 775 instead of 755 and I still get the same
message

-rwxrwxr-x   1 root root 295 Oct  8  2002 buildconf.sh

--
# ./buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required
automake -a --foreign -i --copy
automake: `configure.ac' or `configure.in' is required
autoconf
autoconf: no input file


Anything else?

-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:59 AM
To: Tomcat Users List
Subject: RE: Problem with buildconf.sh


check your permissions and all that unixy kinda of stuff.  make sure you can
create and read the file.

just a thought.

-e

On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

 Yeah I installed all of that but it's still coming up with the error 
 for me
 - not sure what's going on either
 Thanks,
 Bobbie

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 10:44 AM
 To: Tomcat Users List
 Subject: Re: Problem with buildconf.sh


 Ok,

 Solaris 9 works for me.

 I had to install libtool-1.5, autoconf-2.57, and automake-1.7.  I also 
 had to install m4-1.4.

 jakarta-tomcat-connectors-jk-1.2.4-src/jk/native:

 bash-2.05$ ./buildconf.sh
 libtoolize --force --automake --copy
 aclocal
 automake -a --foreign -i --copy
 configure.in: installing `scripts/build/unix/install-sh'
 configure.in: installing `scripts/build/unix/mkinstalldirs'
 configure.in: installing `scripts/build/unix/missing' autoconf
 bash-2.05$

 Dunno what's going on over there.

 -e

 On Wed, 30 Jul 2003, Eric J. Pinnell wrote:

  What version of solaris is this?  I wasn't paying attention.
 
  -e
 
  On Wed, 30 Jul 2003, John Turner wrote:
 
  
   Sorry, I don't have access to a Solaris play box anymore, so I'm 
   at a loss on how to help you resolve this.  Hopefully someone else 
   has the answer.
  
   John
  
   [EMAIL PROTECTED] wrote:
  
Greetings,
I still can't get buildconf.sh to run without an error - this is 
what happens when I try to run it
   

# ./buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required automake 
-a --foreign -i --copy
automake: `configure.ac' or `configure.in' is required autoconf
autoconf: no input file
--
   
   
I've tried untaring it with the new GNU tar - doesn't help - 
I've also looked for weird characters in the buildconf.sh and 
configure.ac files  - but there are none.  I'm at a loss as to 
what to do - any help would be appreciated.
   
Thanks,
Bobbie
   
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
   

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

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

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



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

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



RE: Problem with buildconf.sh

2003-07-30 Thread Eric J. Pinnell
and you are building it as root?  If so I'm out of ideas.

-e

On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

 Yeah I did that - I even chmod'ed to 775 instead of 755 and I still get the same
 message

 -rwxrwxr-x   1 root root 295 Oct  8  2002 buildconf.sh

 --
 # ./buildconf.sh
 libtoolize --force --automake --copy
 libtoolize: `configure.ac' does not exist
 Try `libtoolize --help' for more information.
 aclocal
 aclocal: `configure.ac' or `configure.in' is required
 automake -a --foreign -i --copy
 automake: `configure.ac' or `configure.in' is required
 autoconf
 autoconf: no input file
 

 Anything else?

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 10:59 AM
 To: Tomcat Users List
 Subject: RE: Problem with buildconf.sh


 check your permissions and all that unixy kinda of stuff.  make sure you can
 create and read the file.

 just a thought.

 -e

 On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

  Yeah I installed all of that but it's still coming up with the error
  for me
  - not sure what's going on either
  Thanks,
  Bobbie
 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 10:44 AM
  To: Tomcat Users List
  Subject: Re: Problem with buildconf.sh
 
 
  Ok,
 
  Solaris 9 works for me.
 
  I had to install libtool-1.5, autoconf-2.57, and automake-1.7.  I also
  had to install m4-1.4.
 
  jakarta-tomcat-connectors-jk-1.2.4-src/jk/native:
 
  bash-2.05$ ./buildconf.sh
  libtoolize --force --automake --copy
  aclocal
  automake -a --foreign -i --copy
  configure.in: installing `scripts/build/unix/install-sh'
  configure.in: installing `scripts/build/unix/mkinstalldirs'
  configure.in: installing `scripts/build/unix/missing' autoconf
  bash-2.05$
 
  Dunno what's going on over there.
 
  -e
 
  On Wed, 30 Jul 2003, Eric J. Pinnell wrote:
 
   What version of solaris is this?  I wasn't paying attention.
  
   -e
  
   On Wed, 30 Jul 2003, John Turner wrote:
  
   
Sorry, I don't have access to a Solaris play box anymore, so I'm
at a loss on how to help you resolve this.  Hopefully someone else
has the answer.
   
John
   
[EMAIL PROTECTED] wrote:
   
 Greetings,
 I still can't get buildconf.sh to run without an error - this is
 what happens when I try to run it

 
 # ./buildconf.sh
 libtoolize --force --automake --copy
 libtoolize: `configure.ac' does not exist
 Try `libtoolize --help' for more information.
 aclocal
 aclocal: `configure.ac' or `configure.in' is required automake
 -a --foreign -i --copy
 automake: `configure.ac' or `configure.in' is required autoconf
 autoconf: no input file
 --


 I've tried untaring it with the new GNU tar - doesn't help -
 I've also looked for weird characters in the buildconf.sh and
 configure.ac files  - but there are none.  I'm at a loss as to
 what to do - any help would be appreciated.

 Thanks,
 Bobbie

 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156

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

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

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

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



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



RE: Problem with buildconf.sh

2003-07-30 Thread batristain
yepper

-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 11:07 AM
To: Tomcat Users List
Subject: RE: Problem with buildconf.sh


and you are building it as root?  If so I'm out of ideas.

-e

On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

 Yeah I did that - I even chmod'ed to 775 instead of 755 and I still 
 get the same message

 -rwxrwxr-x   1 root root 295 Oct  8  2002 buildconf.sh

 --
 # ./buildconf.sh
 libtoolize --force --automake --copy
 libtoolize: `configure.ac' does not exist
 Try `libtoolize --help' for more information.
 aclocal
 aclocal: `configure.ac' or `configure.in' is required automake -a 
 --foreign -i --copy
 automake: `configure.ac' or `configure.in' is required autoconf
 autoconf: no input file
 

 Anything else?

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 10:59 AM
 To: Tomcat Users List
 Subject: RE: Problem with buildconf.sh


 check your permissions and all that unixy kinda of stuff.  make sure 
 you can create and read the file.

 just a thought.

 -e

 On Wed, 30 Jul 2003 [EMAIL PROTECTED] wrote:

  Yeah I installed all of that but it's still coming up with the error 
  for me
  - not sure what's going on either
  Thanks,
  Bobbie
 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 10:44 AM
  To: Tomcat Users List
  Subject: Re: Problem with buildconf.sh
 
 
  Ok,
 
  Solaris 9 works for me.
 
  I had to install libtool-1.5, autoconf-2.57, and automake-1.7.  I 
  also had to install m4-1.4.
 
  jakarta-tomcat-connectors-jk-1.2.4-src/jk/native:
 
  bash-2.05$ ./buildconf.sh
  libtoolize --force --automake --copy
  aclocal
  automake -a --foreign -i --copy
  configure.in: installing `scripts/build/unix/install-sh'
  configure.in: installing `scripts/build/unix/mkinstalldirs'
  configure.in: installing `scripts/build/unix/missing' autoconf 
  bash-2.05$
 
  Dunno what's going on over there.
 
  -e
 
  On Wed, 30 Jul 2003, Eric J. Pinnell wrote:
 
   What version of solaris is this?  I wasn't paying attention.
  
   -e
  
   On Wed, 30 Jul 2003, John Turner wrote:
  
   
Sorry, I don't have access to a Solaris play box anymore, so 
I'm at a loss on how to help you resolve this.  Hopefully 
someone else has the answer.
   
John
   
[EMAIL PROTECTED] wrote:
   
 Greetings,
 I still can't get buildconf.sh to run without an error - this 
 is what happens when I try to run it

 
 # ./buildconf.sh
 libtoolize --force --automake --copy
 libtoolize: `configure.ac' does not exist
 Try `libtoolize --help' for more information.
 aclocal
 aclocal: `configure.ac' or `configure.in' is required automake 
 -a --foreign -i --copy
 automake: `configure.ac' or `configure.in' is required 
 autoconf
 autoconf: no input file
 --


 I've tried untaring it with the new GNU tar - doesn't help - 
 I've also looked for weird characters in the buildconf.sh and 
 configure.ac files  - but there are none.  I'm at a loss as to 
 what to do - any help would be appreciated.

 Thanks,
 Bobbie

 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156

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

   
   
   

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

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

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



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


AW: jk connector and response.sendRedirect()

2003-07-30 Thread Fischer, Ilona
I'm not a programmer but an administrator.
We have had an similar problem and solved it by changing the apache option
UseCanonicalNames from on to off. 
[when UseCanonicalName ist on, everytimes you call response.sendRedirect()
the apache takes the servername (from httd.conf) and make the absolute URL.
If you are switching UseCanonicalNames to off, apache takes the hostname
from the incoming HTTP-Header]

Maybe this tip helps

Regards :o)
Ilona


 -Ursprüngliche Nachricht-
 Von: Chris Egolf [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 30. Juli 2003 16:18
 An: [EMAIL PROTECTED]
 Betreff: jk connector and response.sendRedirect()
 
 
 I'm pulling my hair out on this one, but I think I've 
 narrowed it down so I can 
 at least ask the question...
 
 We're running Tomcat 4.1.24/Apache 1.3.27/Sun JDK 1.4.2 using 
 mod_jk.  The issue 
 we're dealing with now, is that in some cases an existing 
 webapp uses the 
 response.sendRedirect() method to redirect the client to 
 another relative URL. 
 Previously, we were using the warp connector and everything 
 worked fine.  Now, 
 using mod_jk, the redirect fails causing the browser to say 
 it can't find the 
 host.
 
 Here's what I've tried so far.  I removed Apache from the mix 
 and setup the 
 Coyote HTTP/1.1 connector to listen to port 80.  Everything 
 works fine with this 
 setup, so it must be a connector thing, right?
 
 With just the JK connector enabled and listening on 8009, 
 I've added Apache back 
 and setup Alias elements in the Host element of my 
 server.xml.  The host the 
 browser says it can't find is the actual hostname of the 
 machine, not the DNS 
 entry.
 
 I believe this is a problem unique to the jk connector (or 
 how I have it 
 configured) and the response.sendRedirect() method.  Here's 
 the documentation 
 from the servlet API:
 
 public void sendRedirect(java.lang.String location)
throws java.io.IOException
 
  Sends a temporary redirect response to the client using 
 the specified 
 redirect location URL. This method can accept relative URLs; 
 the servlet 
 container will convert the relative URL to an absolute URL 
 before sending the 
 response to the client.
 
  If the response has already been committed, this method 
 throws an 
 IllegalStateException. After using this method, the response 
 should be 
 considered to be committed and should not be written to.
 
 Here's the connector and Host element stuff from my server.xml:
 ...
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true acceptCount=10 debug=0
 connectionTimeout=0 useURIValidationHack=false/
 ...
 
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
  Aliasdemo.mycompany.com/Alias
  Aliasgoatweed/Alias
  Aliasdemo/Alias
  Aliasgoatweed.mycompany.com/Alias
  Aliasdemo.anotherdomain.net/Alias
  Aliasgoatweed.anotherdomain.net/Alias
 ...
 /Host
 
 Anyone have any ideas or see a glaring mistake on my part?  
 I'll gladly provide 
 more info if needed.
 
 Thanks,
 
 Chris Egolf
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Clashing JNDI names? Maybe?

2003-07-30 Thread Andoni
Hi,

I have two hosts on the same system one is the pilot of my website for testing and 
demo purposes and the other is the live site.

I want to be able to just copy the .war file across once it is tested.

The problem with this is my DB connection pooling is done by a DataSource in Tomcat 
and that is done using JNDI.  I think that the fact that there is the same JNDI name 
in the two host containers may be causing a clash?  The code from my server.xml is 
below.

There are two different settings I have found in my look at the Tomcat web-site to 
tell these not to clash but I don't know if they are what I think they are or which is 
the right one.

They are:
1. in the Resource tag auth=Container.
2. in the Resource tag scope=shareable (I do not have this in at all so it is 
shareable as that is the default)

For example:  When it says shareable makes connections shareable, does it mean even 
between hosts?

Thanks.

Andoni.


   Host name=live.server.com debug=3 appBase=webapps/live unpackWARs=false
Context path= docBase=live.war workDir=work/live debug=0 
reloadable=false
 Resource name=jdbc/live auth=Container type=javax.sql.DataSource/
 ResourceParams name=jdbc/live
  parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
   nameuser/name
   valuelive/value
  /parameter
  parameter
   namepassword/name
   value***/value
  /parameter
  parameter
   namedriverName/name
   valuejdbc:oracle:thin:@troi.eurokom.ie:1521:ora9/value
  /parameter
 /ResourceParams
/Context
   /Host

   Host name=pilot.server.com debug=0 appBase=webapps/pilot unpackWARs=false
Context path= docBase=live.war workDir=work/pilot debug=0 
reloadable=false
 Resource name=jdbc/live auth=Container type=javax.sql.DataSource/
 ResourceParams name=jdbc/live
  parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
   nameuser/name
   valuepilot/value
  /parameter
  parameter
   namepassword/name
   value***/value
  /parameter
  parameter
   namedriverName/name
   valuejdbc:oracle:thin:@localhost:1521:ora9/value
  /parameter
 /ResourceParams
/Context
   /Host


Pb xerces updating tomcat 3.2.1 to 4.1.24

2003-07-30 Thread Olivier M
Hello all

I used JGenerator 1.3.1 with tomcat 3.2.1 to make
flash content.
Now i'm trying to update to tomcat 4.1.24, but I
encounter a lot of difficulties.
After configuration (tomcat, app context), everything
seems ok (jsp, classes...)
But my JGen application crashes.
I think that it's due to xml parser, i tried several
versions but no success.
My application has a WEB-INF folder with lib and
classes folder. I have all used jar files in it :
graffeur.jar, jgen.jar, log4j.jar, xalan.jar,
xerces.jar, xml-apis.jar

Does Tomcat use exclusively the files coming with the
apps ?
Do I need to put those jar files in shared or
common folder ?

Thanks !
Oliver


java.lang.reflect.InvocationTargetException:
java.lang.VerifyError: (class:
com/iv/flash/xml/apache/DocumentBuilderImpl, method:
createDOMParser signature:
()Lorg/apache/xerces/parsers/DOMParser;) Incompatible
object argument for function call
at
com.iv.flash.xml.apache.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:79)
at
com.iv.flash.xml.apache.XMLFactoryImpl.init(XMLFactoryImpl.java:73)
at
java.lang.reflect.Constructor.newInstance(Native
Method)
at
com.iv.flash.xml.XMLFactory.constructFactory(XMLFactory.java:181)
at
com.iv.flash.xml.XMLFactory.clinit(XMLFactory.java:161)
at
com.iv.flash.xml.XMLHelper.clinit(XMLHelper.java:87)


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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



AW: Does Tomcat load config. files dynamically?

2003-07-30 Thread Fischer, Ilona
Hallo Yoav
 Web.xml for a given webapp is read when the webapp is loaded 
 (normally on server startup), and you can have it reloaded by 
 reloading the webapp (via the manager webapp), without 
 restarting the whole server.
If i'm reloading the webapp via manager application, all users lost there
sessions, isn't it?

Regards :o)
Ilona

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



Hooking Tomcat to Apache HTTPD

2003-07-30 Thread Julien Martin
Hello,
I am trying to connect Tomcat 5.0 to Apache HTTPD 2.0.47 on a windows 2k platform.
I configured the workers2.properties file as follows:

**
[logger]
level=DEBUG
[config:]
#file=${serverRoot}/conf/workers2.properties
file=D:/system/Apache Group/Apache2/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0
[lb:lb]
info=Default load balancer.
debug=0
#[lb:lb_1]
#info=A second load balancer.
#debug=0
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
#[channel.socket:localhost:8019]
#info=A second tomcat instance. 
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0
#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[status:]
info=Status worker, displays runtime informations
[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 
5.0/server/lib//commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=D:/system/Apache Group/Apache2/logs/stdout.log
stderr=D:/system/Apache Group/Apache2/logs/stderr.log
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
#alias=myVirtualHost:8003
#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
#context=/ex
#group=lb_1
[uri:/examples]
info=Example webapp in the default context. 
context=/jsp-examples
debug=0
#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0
[uri:/examples/servlets/*]
info=Prefix mapping
[uri:/examples/*.jsp]
info=Extension mapping
[uri:/examples/*]
info=Map the whole webapp
[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10
**

I get a tomcat style 404 error when I try to access the following url: 
http://localhost/examples

Here is what I get in the apache error log file:
**
[Wed Jul 30 17:28:29 2003] [notice] Parent: Created child process 748
[Wed Jul 30 17:28:30 2003] [notice] Child 748: Child process is running
[Wed Jul 30 17:28:30 2003] [notice] vm.init(): Jni lib: C:\Program 
Files\Java\j2re1.4.1_03\bin\client\jvm.dll
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: 
-Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 
5.0/server/lib//commons-logging.jar
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Dtomcat.home=${TOMCAT_HOME}
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: 
-Dcatalina.home=${TOMCAT_HOME}
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Xmx128M
[Wed Jul 30 17:28:31 2003] [notice] vm.open2() done
[Wed Jul 30 17:28:31 2003] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter 
[Wed Jul 30 17:28:32 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Wed Jul 30 17:28:32 2003] [error] Can't find class org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at java.lang.ClassLoader.defineClass0(Native Method)

Re: Hooking Tomcat to Apache HTTPD

2003-07-30 Thread Eric J. Pinnell
Hi,

Why don't you slim down that file and try something simple first.  Like:

[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009

-e

On Wed, 30 Jul 2003, Julien Martin wrote:

 Hello,
 I am trying to connect Tomcat 5.0 to Apache HTTPD 2.0.47 on a windows 2k platform.
 I configured the workers2.properties file as follows:

 **
 [logger]
 level=DEBUG
 [config:]
 #file=${serverRoot}/conf/workers2.properties
 file=D:/system/Apache Group/Apache2/conf/workers2.properties
 debug=0
 debugEnv=0
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 # Alternate file logger
 #[logger.file:0]
 #level=DEBUG
 #file=${serverRoot}/logs/jk2.log
 [shm:]
 info=Scoreboard. Required for reconfiguration and status with multiprocess servers
 file=${serverRoot}/logs/jk2.shm
 size=100
 debug=0
 disabled=0
 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 [lb:lb]
 info=Default load balancer.
 debug=0
 #[lb:lb_1]
 #info=A second load balancer.
 #debug=0
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=0
 tomcatId=localhost:8009
 #[channel.socket:localhost:8019]
 #info=A second tomcat instance.
 #debug=0
 #tomcatId=localhost:8019
 #lb_factor=1
 #group=lb
 #group=lb_1
 #disabled=0
 #[channel.un:/opt/33/work/jk2.socket]
 #info=A second channel connecting to localhost:8019 via unix socket
 #tomcatId=localhost:8019
 #lb_factor=1
 #debug=0
 [channel.jni:jni]
 info=The jni channel, used if tomcat is started inprocess
 [status:]
 info=Status worker, displays runtime informations
 [vm:]
 info=Parameters used to load a JVM in the server process
 #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
 OPT=-Djava.class.path=D:/system/Tomcat 
 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 5.0/server/lib//commons-logging.jar
 OPT=-Dtomcat.home=${TOMCAT_HOME}
 OPT=-Dcatalina.home=${TOMCAT_HOME}
 OPT=-Xmx128M
 #OPT=-Djava.compiler=NONE
 disabled=0
 [worker.jni:onStartup]
 info=Command to be executed by the VM on startup. This one will start tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=start
 disabled=0
 stdout=D:/system/Apache Group/Apache2/logs/stdout.log
 stderr=D:/system/Apache Group/Apache2/logs/stderr.log
 [worker.jni:onShutdown]
 info=Command to be executed by the VM on shutdown. This one will stop tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=stop
 disabled=0
 [uri:/jkstatus/*]
 info=Display status information and checks the config file for changes.
 group=status:
 #[uri:127.0.0.1:8003]
 #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
 #alias=myVirtualHost:8003
 #[uri:127.0.0.1:8003/ex]
 #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
 #context=/ex
 #group=lb_1
 [uri:/examples]
 info=Example webapp in the default context.
 context=/jsp-examples
 debug=0
 #[uri:/examples1/*]
 #info=A second webapp, this time going to the second tomcat only.
 #group=lb_1
 #debug=0
 [uri:/examples/servlets/*]
 info=Prefix mapping
 [uri:/examples/*.jsp]
 info=Extension mapping
 [uri:/examples/*]
 info=Map the whole webapp
 [uri:/examples/servlets/HelloW]
 info=Exampel with debug enabled.
 debug=10
 **

 I get a tomcat style 404 error when I try to access the following url: 
 http://localhost/examples

 Here is what I get in the apache error log file:
 **
 [Wed Jul 30 17:28:29 2003] [notice] Parent: Created child process 748
 [Wed Jul 30 17:28:30 2003] [notice] Child 748: Child process is running
 [Wed Jul 30 17:28:30 2003] [notice] vm.init(): Jni lib: C:\Program 
 Files\Java\j2re1.4.1_03\bin\client\jvm.dll
 [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: 
 -Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 
 5.0/server/lib//commons-logging.jar
 [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: 
 -Dtomcat.home=${TOMCAT_HOME}
 [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: 
 -Dcatalina.home=${TOMCAT_HOME}
 [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Xmx128M
 [Wed Jul 30 17:28:31 2003] [notice] vm.open2() done
 [Wed Jul 30 17:28:31 2003] [notice] jni.validate() class= 
 org/apache/jk/apr/TomcatStarter
 [Wed Jul 30 17:28:32 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
 [Wed Jul 30 17:28:32 2003] [error] Can't find class org/apache/jk/apr/AprImpl
 java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
  at 

Re: 500 Custom Error

2003-07-30 Thread Tim Funk
500 errors can be webapp generated errors. You should get a 500 error if you 
do the following in a servlet:
String more = cowbell;
more = null;
more.toString();

Tomcat (or any container) will trap the null pointer exception and wrap it 
into a ServletException. The nullpointer exception is exposed during error 
processing as defined in Table SRV.9-1 Request Attributes and their types 
in section 9.9.1 of the spec.

-Tim

Shapira, Yoav wrote:
Howdy,


Are Custom Error pages available for 500 errors?


500's are tough, as they are internal server (i.e. not your webapp's)
errors.  I don't recall the spec on this point, but at some point I
thought error page customization only had to be available for 300 and
400 range HTTP status.
As 500's can occur anywhere in the request processing pipeline, it's
difficult to provide the custom error page hook for them.

This is under tomcat 4.0.4. (Although production will be under
4.1.24)


Not a good idea: there are significant differences between the 4.0.x and
4.1.x branch of tomcat, and you should at least test, if not develop, on
4.1.24 before deploying to it.
Yoav Shapira



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


Re: Double session cookie

2003-07-30 Thread Tim Funk
AFAIK, you can't define the domain (or name) of the session cookie in tomcat. 
That would break spec compliance.

If you do switch from domain.com and www.domain.com - that could easily 
explain the multiple cookie issue. Especially if you go to www.domain.com, 
then domain.com.

-Tim

Tomcat Newbie wrote:
Tim,

Thanks for your most informative response. Unfortunately, the two
cookies I am observing are from the same webapp.
Would it have something to do with the requests to www.mydomain.com and
mydomain.com? I see such difference for at least one of the requests for
those sessions. My app hardcodes www.mydomain.com links. I remember I had
some problems with enabling https, whereby I would loose session going back
and forth between https and http due to higher priorities elsewhere. I still
have not solved that, but remember reading something about declaring the
cookie domain in Tomcat configuration (why not webapp?).
I also forgot to mention that I have Cocoon 2.0.4 installed for the web app,
but since it had a broken JSPGenerator, I did not use it to process JSP
pages, only to direct requests for now.
Ed




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


Re: jk connector and response.sendRedirect()

2003-07-30 Thread Chris Egolf
John Turner wrote:
Chris Egolf wrote:

With just the JK connector enabled and listening on 8009, I've added 
Apache back and setup Alias elements in the Host element of my 
server.xml.  The host the browser says it can't find is the actual 
hostname of the machine, not the DNS entry.


Can Apache resolve this hostname?  Is it setup in /etc/hosts (or the 
HOSTS file if you're using Win32)?

Yes, I believe so.  I added all the possible hostnames as alias to /etc/hosts 
(BTW, I'm running on Linux -- RH7.3).

Chris

--

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


Hooking Tomcat to Apache HTTPD

2003-07-30 Thread Julien Martin
Hello,
I changed the file. I still get a 404 error from tomcat..
Julien.

- Original Message -
From: Eric J. Pinnell [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 5:37 PM
Subject: Re: Hooking Tomcat to Apache HTTPD


 Hi,

 Why don't you slim down that file and try something simple first.  Like:

 [shm]
 file=${serverRoot}/logs/shm.file
 size=1048576

 # socket channel
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 # Uri mapping
 [uri:/examples/*]
 worker=ajp13:localhost:8009

 -e

 On Wed, 30 Jul 2003, Julien Martin wrote:

  Hello,
  I am trying to connect Tomcat 5.0 to Apache HTTPD 2.0.47 on a windows 2k
platform.
  I configured the workers2.properties file as follows:
 
  **
  [logger]
  level=DEBUG
  [config:]
  #file=${serverRoot}/conf/workers2.properties
  file=D:/system/Apache Group/Apache2/conf/workers2.properties
  debug=0
  debugEnv=0
  [uriMap:]
  info=Maps the requests. Options: debug
  debug=0
  # Alternate file logger
  #[logger.file:0]
  #level=DEBUG
  #file=${serverRoot}/logs/jk2.log
  [shm:]
  info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
  file=${serverRoot}/logs/jk2.shm
  size=100
  debug=0
  disabled=0
  [workerEnv:]
  info=Global server options
  timing=1
  debug=0
  # Default Native Logger (apache2 or win32 )
  # can be overriden to a file logger, useful
  # when tracing win32 related issues
  #logger=logger.file:0
  [lb:lb]
  info=Default load balancer.
  debug=0
  #[lb:lb_1]
  #info=A second load balancer.
  #debug=0
  [channel.socket:localhost:8009]
  info=Ajp13 forwarding over socket
  debug=0
  tomcatId=localhost:8009
  #[channel.socket:localhost:8019]
  #info=A second tomcat instance.
  #debug=0
  #tomcatId=localhost:8019
  #lb_factor=1
  #group=lb
  #group=lb_1
  #disabled=0
  #[channel.un:/opt/33/work/jk2.socket]
  #info=A second channel connecting to localhost:8019 via unix socket
  #tomcatId=localhost:8019
  #lb_factor=1
  #debug=0
  [channel.jni:jni]
  info=The jni channel, used if tomcat is started inprocess
  [status:]
  info=Status worker, displays runtime informations
  [vm:]
  info=Parameters used to load a JVM in the server process
  #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
  OPT=-Djava.class.path=D:/system/Tomcat
5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat
5.0/server/lib//commons-logging.jar
  OPT=-Dtomcat.home=${TOMCAT_HOME}
  OPT=-Dcatalina.home=${TOMCAT_HOME}
  OPT=-Xmx128M
  #OPT=-Djava.compiler=NONE
  disabled=0
  [worker.jni:onStartup]
  info=Command to be executed by the VM on startup. This one will start
tomcat.
  class=org/apache/jk/apr/TomcatStarter
  ARG=start
  disabled=0
  stdout=D:/system/Apache Group/Apache2/logs/stdout.log
  stderr=D:/system/Apache Group/Apache2/logs/stderr.log
  [worker.jni:onShutdown]
  info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
  class=org/apache/jk/apr/TomcatStarter
  ARG=stop
  disabled=0
  [uri:/jkstatus/*]
  info=Display status information and checks the config file for changes.
  group=status:
  #[uri:127.0.0.1:8003]
  #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to
test it
  #alias=myVirtualHost:8003
  #[uri:127.0.0.1:8003/ex]
  #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
  #context=/ex
  #group=lb_1
  [uri:/examples]
  info=Example webapp in the default context.
  context=/jsp-examples
  debug=0
  #[uri:/examples1/*]
  #info=A second webapp, this time going to the second tomcat only.
  #group=lb_1
  #debug=0
  [uri:/examples/servlets/*]
  info=Prefix mapping
  [uri:/examples/*.jsp]
  info=Extension mapping
  [uri:/examples/*]
  info=Map the whole webapp
  [uri:/examples/servlets/HelloW]
  info=Exampel with debug enabled.
  debug=10
  **
 
  I get a tomcat style 404 error when I try to access the following url:
http://localhost/examples
 
  Here is what I get in the apache error log file:
  **
  [Wed Jul 30 17:28:29 2003] [notice] Parent: Created child process 748
  [Wed Jul 30 17:28:30 2003] [notice] Child 748: Child process is running
  [Wed Jul 30 17:28:30 2003] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.1_03\bin\client\jvm.dll
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2()
Option: -Djava.class.path=D:/system/Tomcat
5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat
5.0/server/lib//commons-logging.jar
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2()
Option: -Dtomcat.home=${TOMCAT_HOME}
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2()
Option: -Dcatalina.home=${TOMCAT_HOME}
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Xmx128M
  [Wed Jul 30 17:28:31 2003] [notice] vm.open2() done
  [Wed Jul 30 17:28:31 2003] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
  [Wed Jul 30 17:28:32 2003] [notice] Loaded
org/apache/jk/apr/TomcatStarter
  [Wed Jul 30 17:28:32 2003] 

Re: Hooking Tomcat to Apache HTTPD

2003-07-30 Thread John Turner
Julien Martin wrote:

[Wed Jul 30 17:28:32 2003] [error] Can't find class org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
NoClassDefFoundError typically means that you have a class file or a JAR 
file that is not the version your application is expecting.

Do you have a previous install of Tomcat or something else hanging 
around on your system?

I would verify that you only have one copy of things like servlet.jar, 
etc., that the copies are the copies and versions you expect, and that 
your paths are set correctly.

John



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


Re: 500 Custom Error

2003-07-30 Thread Andoni
Surely you mean:

String more = cowbell;
more = null;
more.toString();

or even:

String more = null;
more.toString();

Andoni.

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 4:48 PM
Subject: Re: 500 Custom Error


 500 errors can be webapp generated errors. You should get a 500 error if
you
 do the following in a servlet:
 String more = cowbell;
 more = null;
 more.toString();

 Tomcat (or any container) will trap the null pointer exception and wrap it
 into a ServletException. The nullpointer exception is exposed during error
 processing as defined in Table SRV.9-1 Request Attributes and their
types
 in section 9.9.1 of the spec.

 -Tim

 Shapira, Yoav wrote:
  Howdy,
 
 
 Are Custom Error pages available for 500 errors?
 
 
  500's are tough, as they are internal server (i.e. not your webapp's)
  errors.  I don't recall the spec on this point, but at some point I
  thought error page customization only had to be available for 300 and
  400 range HTTP status.
 
  As 500's can occur anywhere in the request processing pipeline, it's
  difficult to provide the custom error page hook for them.
 
 
 This is under tomcat 4.0.4. (Although production will be under
 4.1.24)
 
 
  Not a good idea: there are significant differences between the 4.0.x and
  4.1.x branch of tomcat, and you should at least test, if not develop, on
  4.1.24 before deploying to it.
 
  Yoav Shapira
 


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




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



Redirect an URL to webdav

2003-07-30 Thread Zsolt Koppany
Hi,

I use the WEBDAV implementation of tomcat and it works even for MS-Word
documents. My problem is as follows: the user comes via a normal browser
(for example Internet Explorer) and when he clicks on a word Document, I
don't want to start Word in Internet Explorer (because that the user
cannot save his modifications) but via WEBDAV. How can I do that? Can I
do with an URL redirect?

Zsolt


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



Re: jk connector and response.sendRedirect()

2003-07-30 Thread Chris Egolf


Chris Egolf wrote:
John Turner wrote:
Can Apache resolve this hostname?  Is it setup in /etc/hosts (or the 
HOSTS file if you're using Win32)?

Yes, I believe so.  I added all the possible hostnames as alias to 
/etc/hosts (BTW, I'm running on Linux -- RH7.3).
Hmmm...my JkMount stuff is in the VirtualHost _default_:* sectionand the 
ServerName directive is the hostname the sendRedirect is failing on.
--

   Chris Egolf
 http://www.ugholf.net [EMAIL PROTECTED]


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


Re: Tomcat with Virtual hosting

2003-07-30 Thread Andoni
I am using both:

 DirectoryIndex /jsp/index.jsp index.html

and

DirectoryIndex /jsp/index.jsp

and both work fine.  There is no longer an index.html file either so that
one only goes to index.jsp.

I am using Apache 1.3.24.

An alternative I would suggest is to remove the DirectoryIndex setting from
Apache and let Tomcat handle this by putting

 welcome-file-list
  welcome-filejsp/index.jsp/welcome-file
 /welcome-file-list

into the web.xml of the application in question.

In fact I now realise that I have both of the above implemented for the app.
I'm looking at at the moment.

Hope that helps,

Andoni.

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 2:16 PM
Subject: Re: Tomcat with Virtual hosting



 That's a known problem with the Apache connectors.  DirectoryIndex
 index.jsp has no effect.  I think some people have had success mucking
 around with mod_rewrite and/or the module load order, but I don't recall
 anyone ever posting a definitive solution to the list.

 The most basic workaround is to use a META refresh in index.html to
 redirect to index.jsp.  If anyone has a more elegant solution, I'd love
 to see it.

 John

 Andrew Geery wrote:

  Why do you need to forward the request from index.html to index.jsp?
  Can't you simply set index.jsp to be a directory index page (e.g.,
  DirectoryIndex index.html index.jsp)?
 
  Abhinav Gautam wrote:
 
  Hi,
 
  I am having serious problems with Tomcat. It just happened that without
  any reason the web server stopped responding to JSP requests. I have
  restarted Tomcat and Apache several times, but when the index.html
  forwards the request to index.jsp, I get an error saying page not
  found.
  I have checked the server.xml and the httpd.conf files and everything
  seems to be fine. Also when I do netstat -ta the server seems to be
  listening on port 8007.
 
  I have virtual hosting set up in tomcat. There's one primary domain
with
  an IP address and there are 2 other domains with a different IP
  (different
  from primary, but one IP for both of the other domains) set up on the
  same
  web server.
 
  Any help will be greatly appreciated.
 
  Thanks.
  Abhinav
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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




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



Re: Hooking Tomcat to Apache HTTPD

2003-07-30 Thread Julien Martin
Hello John and all,
I altered the workers2.properties using this:


[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009


and I don't get anymore error in the error.log file.  But I still get a 404
error from tomcat when I use the following url: http://localhost/examples
Julien.


- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 5:56 PM
Subject: Re: Hooking Tomcat to Apache HTTPD


 Julien Martin wrote:

  [Wed Jul 30 17:28:32 2003] [error] Can't find class
org/apache/jk/apr/AprImpl
  java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:502)

 NoClassDefFoundError typically means that you have a class file or a JAR
 file that is not the version your application is expecting.

 Do you have a previous install of Tomcat or something else hanging
 around on your system?

 I would verify that you only have one copy of things like servlet.jar,
 etc., that the copies are the copies and versions you expect, and that
 your paths are set correctly.

 John




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



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



RE: Does Tomcat load config. files dynamically?

2003-07-30 Thread Shapira, Yoav

Howdy,

If i'm reloading the webapp via manager application, all users lost
there
sessions, isn't it?

Regards :o)

Not by default.  They're persisted to disk by the session manager.  Only
times session go away is on timeout.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: tomcat5.0

2003-07-30 Thread Andoni
As you have already been told WEB-INF has a special meaning.

You should know that it is possible to move this and any application to
anywhere on your system but this involves configuring the server to know
where it has been moved to.

For now don't worry about that kind of thing and just go with as many of the
default settings as you can.  If you NEED to move it you can mail me and
I'll give you instructions.

Andoni.

- Original Message -
From: Raicea Lavinia [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 10:58 AM
Subject: tomcat5.0


 Hi,
My name is Lavinia Raicea and I am a student. I am trying to learn
about JSP2.0 and Servlets so I have installed Apache Tomcat 5.0 (Windows XP)
and I took some documentation to run some servlet examples.
I don't know what I am doing wrong but when I put the source code in
the folder $installdir/webapps/ROOT/WEB-INF/classes it works. But when I do
the same thing but in a subfolder of ROOT (.../ROOT/deploy/WEB-INF/classes)
it doesn't work anymore.I think is something with my configuration of tomcat
but I dont't seem to get it right.
   If you would be so kind and tell me where I am wrong I would be very
grateful.
 Thank you very much,
  Lavinia



 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



DOM-to-String

2003-07-30 Thread Ben Johnson
All,
I have a org.w3c.dom.Document object and I want to pull the string
representation of it.  Do I need to use the Xerces XMLSerializer or is there
an interface for it within org.w3c.dom?


Ben Johnson
Senior Software Developer
 
Collect America, LTD.
1999 Broadway, Suite 2150
Denver, CO 80202
[p]: 303.296.3345 x124


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



RE: DOM-to-String

2003-07-30 Thread Koes, Derrick
You need a DOMWriter.

http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/DOMWriter.html



-Original Message-
From: Ben Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 1:38 PM
To: Tomcat Users List
Subject: DOM-to-String

All,
I have a org.w3c.dom.Document object and I want to pull the string
representation of it.  Do I need to use the Xerces XMLSerializer or is there
an interface for it within org.w3c.dom?


Ben Johnson
Senior Software Developer
 
Collect America, LTD.
1999 Broadway, Suite 2150
Denver, CO 80202
[p]: 303.296.3345 x124


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Re: Production server tuning

2003-07-30 Thread Antonio Fiol Bonnín
Kwok Peng Tuck wrote:

I'm no expert in load balancing and stuff like that, but shouldn't you 
load balance tomcat as well ? 


If I could do everything I wanted to...

No. I am trying, but I cannot do that yet. Budget is not ready and 
purchase timings are far too long.

Thanks anyway.

Antonio





Antonio Fiol Bonnín wrote:

Hello,

We have already gone live, and we actually spend too much time dead. 
I hope some of you can help me a bit about the problems we have.

Architecture:
3 Apache web servers (1.3.23) behind a replicated load balancer in DMZ
1 Tomcat server (4.1.9) behind firewall, in secure zone.
1 Firewall in between.
Some facts I observed:
- Under high load, server sometimes hangs from the user's point of 
view (connection not refused, but nothing comes out of them.
- Under low load, I netstat and I still see lots of ESTABLISHED 
connections between the web servers and the Tomcat server.

For the first case, I reckon I might have found the cause:
Apache MaxClients is set to 200, and Tomcat maxProcessors was set to 
something about 150. Taking into account that there are 3 Apache, 
that means 200 x 3 = 600 clients -- tomcat chokes. Just raised 
maxProcessors to 601 ;-)

For the second one, I have really no clue:
Apache MaxSpareServers is set to 10. I see more than 30 ESTABLISHED 
connections even with extremely load.

Could someone point me to either
- a solution (or part thereof, or hints, or ...)
- a good tomcat tuning resource
?
I hope I can find a solution for this soon... The Directors are 
starting to think that buying WebLogic is the solution to our 
nightmares. They think they only need to throw money at the problem. 
Please help me show them they are wrong before they spend the money.

Thank you very much.

Antonio Fiol




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




smime.p7s
Description: S/MIME Cryptographic Signature


Server.xml

2003-07-30 Thread batristain
When I uncommented out the 8443 section so I could run a ssl site the 8080 part
stopped working.  Can I only have one section uncommented at a time?

Btw - I know it's not apache b/c the index.html page loads fine - just not the
jsps

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



RE: DOM-to-String

2003-07-30 Thread Ben Johnson
 You need a DOMWriter.
 
 http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/DOMWriter.html


Derrick,
Where do I find an implementation of DOMWriter?

Ben Johnson


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



Re: Production server tuning

2003-07-30 Thread Antonio Fiol Bonnn
john d. haro wrote:

What is the load on your web servers? 

Very low.


Could you repurpose a web server and
load balance the app server instead? 

Web servers are light machines (uniprocessor, low memory, ...), while 
app server is a heavyweight (two nice fast processors, 4Gb RAM, ...). 
Web servers are Linux Intel, App server is Solaris/Sparc.

Sadly I dont know anything about load balancing Tomcat and I'm usually
doing BEA WL or WAS setups.  I'm here to learn people... dont flame me.
No flames. Thank you for your .02

[...] dont you
performance test before going 'live'?
We went live even before we were sure that everything was functionally 
correct. We have been very lucky it has. Now we're live-optimizing ;-(

 That is how we 'tune' our systems...
run some serious load tests on your setup in a mirrored QA or staging
environment prior to go-live.  Then watch closely, use a code profiler or
similar tools to see where the bottlenecks are.  Play with the database and
app server configurations...
We will try to do that before our next update.

Sometimes turning up things like connections will actually seriously degrade
performance for a myriad of other reasons.
Could you please elaborate a bit more on that?

Apache JMeter running on several machines is a good load tester.

Why did you say several machines? Do you mean JMeter may be the 
bottleneck if run single-instance?

 If you
have the $$ and the project is important enough... we have had great results
from the Compuware suite of products, TrueTime etc.
I don't think so.

Good luck

Thank you.

Antonio Fiol


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat UML Diagram

2003-07-30 Thread Nikola Milutinovic
 Am I asking a dumb Q or there is just no such thing around?

There is no such thing. UML is a information system modelling language.
Tomcat is a JSP/Servlet container - a part of J2EE server specification
implementation (web application interface). So, Tomcat implements only a
segment of an IS. What is more, it implements a GUI, for which UML is not
very well suited.

There are UML tools ou there, Poseideon UML (successor of Argus UML),
Rational Rose/XDE/..., NetBeans have an extension, IBM Eclipse also has an
extension,... They can all produce code which can be refined to be used with
Tomcat (IOW, JSP/Servlet classes can be derived from some of the UML
classes), but there is nothing specific to Tomcat.

Nix.


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



Re: Tomcat with Virtual hosting

2003-07-30 Thread Zach Gatu
In my Apache conf file I have this:

IfModule mod_dir.c
DirectoryIndex index.html index.htm index.jsp
/IfModule
Using mod_jk both in Win32 and Linux, I've never had any problems 
serving index.jsp as a directory index file.

Zach.

John Turner wrote:
That's a known problem with the Apache connectors.  DirectoryIndex 
index.jsp has no effect.  I think some people have had success mucking 
around with mod_rewrite and/or the module load order, but I don't recall 
anyone ever posting a definitive solution to the list.

The most basic workaround is to use a META refresh in index.html to 
redirect to index.jsp.  If anyone has a more elegant solution, I'd love 
to see it.

John

Andrew Geery wrote:

Why do you need to forward the request from index.html to index.jsp? 
Can't you simply set index.jsp to be a directory index page (e.g., 
DirectoryIndex index.html index.jsp)?

Abhinav Gautam wrote:

Hi,

I am having serious problems with Tomcat. It just happened that without
any reason the web server stopped responding to JSP requests. I have
restarted Tomcat and Apache several times, but when the index.html
forwards the request to index.jsp, I get an error saying page not 
found.
I have checked the server.xml and the httpd.conf files and everything
seems to be fine. Also when I do netstat -ta the server seems to be
listening on port 8007.

I have virtual hosting set up in tomcat. There's one primary domain with
an IP address and there are 2 other domains with a different IP 
(different
from primary, but one IP for both of the other domains) set up on the 
same
web server.

Any help will be greatly appreciated.

Thanks.
Abhinav




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



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


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




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


Re: jk connector and response.sendRedirect()

2003-07-30 Thread Zach Gatu
When I use response.sendRedirect(), although redirecting to within the 
same context, I tend supply the whole URL.  I thus avoid the kind of 
problems you seem to be getting.

In a controller servlet where I redirect depending on the request, I do 
this:

String urlPath = request.getScheme() + :// + request.getServerName() + 
: + request.getServerPort() + request.getContextPath();

I can then do this:

response.sendRedirect(urlPath + /afolder/afile.jsp);

Zach.

Chris Egolf wrote:

I'm pulling my hair out on this one, but I think I've narrowed it down 
so I can at least ask the question...

We're running Tomcat 4.1.24/Apache 1.3.27/Sun JDK 1.4.2 using mod_jk.  
The issue we're dealing with now, is that in some cases an existing 
webapp uses the response.sendRedirect() method to redirect the client to 
another relative URL. Previously, we were using the warp connector and 
everything worked fine.  Now, using mod_jk, the redirect fails causing 
the browser to say it can't find the host.

Here's what I've tried so far.  I removed Apache from the mix and setup 
the Coyote HTTP/1.1 connector to listen to port 80.  Everything works 
fine with this setup, so it must be a connector thing, right?

With just the JK connector enabled and listening on 8009, I've added 
Apache back and setup Alias elements in the Host element of my 
server.xml.  The host the browser says it can't find is the actual 
hostname of the machine, not the DNS entry.

I believe this is a problem unique to the jk connector (or how I have it 
configured) and the response.sendRedirect() method.  Here's the 
documentation from the servlet API:

public void sendRedirect(java.lang.String location)
  throws java.io.IOException
Sends a temporary redirect response to the client using the 
specified redirect location URL. This method can accept relative URLs; 
the servlet container will convert the relative URL to an absolute URL 
before sending the response to the client.

If the response has already been committed, this method throws an 
IllegalStateException. After using this method, the response should be 
considered to be committed and should not be written to.

Here's the connector and Host element stuff from my server.xml:
...
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true acceptCount=10 debug=0
   connectionTimeout=0 useURIValidationHack=false/
...
Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
Aliasdemo.mycompany.com/Alias
Aliasgoatweed/Alias
Aliasdemo/Alias
Aliasgoatweed.mycompany.com/Alias
Aliasdemo.anotherdomain.net/Alias
Aliasgoatweed.anotherdomain.net/Alias
...
/Host
Anyone have any ideas or see a glaring mistake on my part?  I'll gladly 
provide more info if needed.

Thanks,

Chris Egolf

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




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


Re: Production server tuning

2003-07-30 Thread Antonio Fiol Bonnín
Bill Barker wrote:

In theory, I'd go with Kwok's recommendation:  one Apache with it's own
load-balancer, and 3 Tomcats instead of 3 Apaches.  However, in the
real-world, this would require you to upgrade to Apache 2.0.x with the
'worker' MPM.
We cannot repurpose machines. Three web servers (a fourth one is in the 
way, don't ask why) are a need for other projects, as Apache servers are 
shared. And technically, I don't think it is viable either (see previous 
post).

However, I am worried about what you say about Apache 2.0.x and the 
'worker' MPM. Could you please tell me about the real-world 
inconveniences of having 3/4 Apache 1.3.X with 2/3 tomcats behind?


Yes, for your current config, you need to have your maxProcessors somewhere
near 600 to handle peak load.  For part two, go to each of your Apache
machines and run:
 $ ps -ef | grep httpd | wc -l
Done that. Very varying, depending on time of day. But we set MaxClients 
to 200 knowing what we were doing. We used to have 100 and it was not 
enough. Raised to 150 and still not enough. It was during a peak period, 
but I don't think we should lower it back.



Add the numbers together, and subtract three (one for each of the Apache
'controller' processes).  If the system has been running for awhile, this
should be about the same as the number of connections to your Tomcat server
on 8009, since mod_jk holds the connection open (by default) for the
lifetime of the Apache child.
The problem is that the connection is kept open even if unused, isn't it?

I mean: If I do not connect to my web-app, does it start the connections?

 The threads that are waiting for Apache to
talk to them are blocked pending input, so aren't affecting Tomcat's
performance in any way.
Except maybe memory requirement??


Since you are using 4.1.9, I'm assuming that you are using the AjpConnector
(instead of the newer CoyoteConnector).
I think it is CoyoteConnector, but I'd have to check to be sure.

We'll be moving to 4.1.26 as soon as we have time to test our app on it. 
Stuck on 4.1.9 because of client cert auth problem.


With the AjpConnector, you can set the attribute
'connectionTimeout=xx-ms' to have Tomcat drop the connection to Apache
after xx milliseconds have gone by without traffic.
Does that apply to CoyoteConnector? Is it really useful?

For tuning, I like OptimizeIt (but it costs).

It helped me once upon a time. But I'm in a different company now.

 I'm sure that other people
will offer there opinions.
Yes, I heard of JProbe. Never tested. Any insights? How is it compared 
to (3 years ago) OptimizeIt?

Thank you very much for your answer, Bill. I think it was really useful.

Antonio Fiol


smime.p7s
Description: S/MIME Cryptographic Signature


RE: DOM-to-String

2003-07-30 Thread Koes, Derrick

I'll assume you are using tomcat since you posted to this list.
org.apache.catalina.util.DOMWriter in the catalina.jar.

-Original Message-
From: Ben Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 1:56 PM
To: 'Tomcat Users List'
Subject: RE: DOM-to-String

 You need a DOMWriter.
 
 http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/DOMWriter.html


Derrick,
Where do I find an implementation of DOMWriter?

Ben Johnson


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: Server.xml

2003-07-30 Thread Shapira, Yoav

Howdy,
Make sure you change the redirectPort for the 8080 connector to not be
8443, then, and point instead to your SSL port ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: Server.xml

When I uncommented out the 8443 section so I could run a ssl site the
8080
part
stopped working.  Can I only have one section uncommented at a time?

Btw - I know it's not apache b/c the index.html page loads fine - just
not
the
jsps

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat with Virtual hosting

2003-07-30 Thread John Turner
I have mod_dir (its included by default in a build from source). 
Doesn't work for me.

John

Zach Gatu wrote:
In my Apache conf file I have this:

IfModule mod_dir.c
DirectoryIndex index.html index.htm index.jsp
/IfModule
Using mod_jk both in Win32 and Linux, I've never had any problems 
serving index.jsp as a directory index file.

Zach.



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


RE: Server.xml

2003-07-30 Thread batristain
Hey Yoav,
Do I change in the connector portion where it says 8080 to 8443 or do I just
uncomment the ssl section with the 8443 section and leave the 8080 non ssl
section uncommented?

Thanks,
Bobbie

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Server.xml



Howdy,
Make sure you change the redirectPort for the 8080 connector to not be 8443,
then, and point instead to your SSL port ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: Server.xml

When I uncommented out the 8443 section so I could run a ssl site the
8080
part
stopped working.  Can I only have one section uncommented at a time?

Btw - I know it's not apache b/c the index.html page loads fine - just
not
the
jsps

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to whom
it is addressed, and may not be saved, copied, printed, disclosed or used by
anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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

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



  1   2   >