Problems with load balancing

2001-09-27 Thread Uniti Marco

Hi,

 I am using Apache 1.3.12 with mod_jserv module talking
 to tomcat 3.2.1. (system Linux suse 7.1)
 I am trying to load balance between 2 servers and my configuration is
like
 this:

 ApJServLogLevel debug

 ApJServMount /examples balance://set1/zone1

 ApJServBalance set1 Tomcat_1
 ApJServBalance set1 Tomcat_2

 ApJServHost Tomcat_1 ajpv12://1.6.60.18:18007
 ApJServHost Tomcat_2 ajpv12://1.6.60.25:28007

 ApJServRoute JS1 Tomcat_1
 ApJServRoute JS2 Tomcat_2

 ApJServShmFile /var/opt/apache/memory_shared/jserv_shm

 Doesn't work. No one read or write the file Jserv_shm and the watchdog
process don’t work.

Here is teh log file:

[26/09/2001 17:10:59:735] (INFO) setting defaults for balance
set1-Tomcat_1 (weight 1)
[26/09/2001 17:10:59:735] (INFO) setting defaults for balance
set1-Tomcat_2 (weight 1)
[26/09/2001 17:10:59:735] (INFO) setting defaults for host Tomcat_1-JS1
[26/09/2001 17:10:59:735] (INFO) setting defaults for host Tomcat_2-JS2
[26/09/2001 17:10:59:735] (INFO) setting up balance for mount
/examples/, zone zone1
[26/09/2001 17:10:59:735] (INFO) balancing host Tomcat_1-JS1
[26/09/2001 17:10:59:735] (INFO) balancing host Tomcat_2-JS2
[26/09/2001 17:11:00:029] (INFO) jserv_watchdog:(27488)
watchdog_cleanup()
[26/09/2001 17:11:00:029] (INFO) Apache Module was cleaned-up
[26/09/2001 17:11:00:031] (INFO) jserv_watchdog:(27487)
watchdog_terminate()
[26/09/2001 17:11:00:165] (INFO) setting defaults for balance
set1-Tomcat_1 (weight 1)
[26/09/2001 17:11:00:165] (INFO) setting defaults for balance
set1-Tomcat_2 (weight 1)
[26/09/2001 17:11:00:165] (INFO) setting defaults for host Tomcat_1-JS1
[26/09/2001 17:11:00:165] (INFO) setting defaults for host Tomcat_2-JS2
[26/09/2001 17:11:00:165] (INFO) setting up balance for mount
/examples/, zone zone1
[26/09/2001 17:11:00:165] (INFO) balancing host Tomcat_1-JS1
[26/09/2001 17:11:00:165] (INFO) balancing host Tomcat_2-JS2
[26/09/2001 17:12:01:966] (INFO) jserv_watchdog:(27489)
watchdog_terminate()
[26/09/2001 17:12:45:314] (INFO) balance: 27490 attempting to connect to

server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
[26/09/2001 17:12:45:577] (INFO) balance: 27490 successfully made
request to server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
[26/09/2001 17:12:48:362] (INFO) balance: 27490 attempting to connect to

server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
[26/09/2001 17:12:53:211] (INFO) balance: 27490 successfully made
request to server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
*[26/09/2001 17:14:40:478] (INFO) balance: continuing session: JS1
[26/09/2001 17:14:40:479] (EMERGENCY) ajp12: can not connect to host
1.6.60.18:18007
[26/09/2001 17:14:40:479] (EMERGENCY) ajp12: connection fail
[26/09/2001 17:14:40:479] (ERROR) an error returned handling request via

protocol ajpv12
[26/09/2001 17:14:40:479] (INFO) balance: continuing to 1.6.60.18:18007
[26/09/2001 17:14:40:479] (INFO) balance: 27494 JS1 unsuccessfully
[26/09/2001 17:14:40:479] (INFO) balance: 27494 attempting to connect to

server Tomcat_2: ajpv12://1.6.60.25(193c0601):28007
[26/09/2001 17:14:44:351] (INFO) balance: 27494 successfully made
request to server Tomcat_2: ajpv12://1.6.60.25(193c0601):28007


* here I have kill Tomcat_1

 Any help is greatly aprreciated

 Thanks..Marco








communicating between 2 diffrent sessions

2001-09-27 Thread catalin

Hello,

I have 2 apps (one in /webapps/myapp1-with jsp and other
webapps/root/myapp2-with servlets) on a jakarta-tomcat-3.3-m4 on a win98 OS.
My problem is that I need parameters that are in session of myapp2 to
transmmit in session of myapp1.
Can I do that?
It is possible to set the same session for both apps?
Thanks!

  

-- 
Best regards,
 catalin  mailto:[EMAIL PROTECTED]





Re: HTTP Status 500

2001-09-27 Thread Matias Bahlenberg

Hi Lee,

I recognize this. I solved the problem with a Host inside the Engine element in the 
server.xml. See below:

Server port=8005 shutdown=SHUTDOWN debug=0

!-- Some information of the stand-alone service, tomcat web-server --
!-- I you do not use this service, I suggest you comment it all --

!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true 
  acceptCount=10 debug=0 /

!-- Replace localhost with what your Apache ServerName is set to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=www.company.com debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=apache_access_log. suffix=.txt
 pattern=common/

!-- Because this Realm is here, an instance will be shared globally --
Realm className=org.apache.catalina.realm.MemoryRealm /

!-- Be sure that the name is the same as ServerName in httpd.conf --
Host name=www.company.com appBase=webapps
Context path=
 docBase=ROOT
 crossContext=false
 reloadable=true /
/Host
/Engine
/Service
/Server



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 4:46 PM
Subject: HTTP Status 500


 
 Does anyone know why i get the message
 
 HTTP Status 500 - No Host matches server name www.xxx.co.uk
 
 When i use ajp13 to connect to tomcat 4 from apache 1.3.20
 
 I am using the same method i would have used when i was using tomcat 3.x
 (I.e nothing has changed on the apache side
 
 Only the Connetor stuff in server.xml has changed !
 
 
 Any obvious ideas anyone ?
 
 
 Cheers in advance
 
 
 Lee
 
 
 (Embedded image moved to file: pic00041.pcx)
 
 




Tomcat 4 with JSP

2001-09-27 Thread Adam: Kurzawa


So, nobody here knows how to use Apache + Tomcat 4 with JSP?  Is it even
possible?

Like everyone knows, JSP files should be stored on the Apache server
along with all other static content.  I haven't been able to figure out
how to convince Apache to cooperate with Tomcat 4 for execution of JSP
files.

I have no problems with normal servlets, which are served from SPECIAL
directores and can be easily defined in httpd.conf by:

WebApp Deplayservlet conn /servlet/

Kind regards,
Adam: Kurzawa




Class Not Found Exception in TC4

2001-09-27 Thread Patrick . Pierra

Hello,

I've two problems.
First i'm trying to use TC4. I've a jsp which have jsp:useBean ...class
=myClass.class tag. I've put this bean in the lib directory of the
Web-inf directory of my domain but when i call this page i recieve a class
not found exception. I'don't understand why.

Second, in TC 3.2.1 I've a servlet which try to access a xml file. To parse
this xml file i use jaxp and crimson. But i recieve a
java.SecurityException (sealing violation) Why ?

Patrick PIERRA




Form Based authentication problem

2001-09-27 Thread Miguel Angel Medina Lopez

Hi all:

I'm working with Tomcat 3.2.3 and postgres 7.0. I want to use form-based
authentication and i have included the next lines in the server.xml file:
RequestInterceptor
className=org.apache.tomcat.request.JDBCRealm
debug=0
driverName=org.postgresql.Driver
connectionURL=jdbc:postgresql://192.168.0.17/tomcat_users
connectionName=tomcat
connectionPassword=tomcat
userTable=usuarios
userNameCol=login
userCredCol=password
userRoleTable=usuarios
roleNameCol=role /

The connection to the db is opened succesfully but when I put a valid
username and password the query doesn't work. The error in the tomcat.log
file is:
JDBCRealm: The database connection is null or was found to be closed.
Trying to re-open it.

and the user isn't authenticated.

Thank you all

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España






AW: catalina.bat

2001-09-27 Thread Reto Badertscher

Hi Bob,
If you start it from a DOS window you should see the messages and the window
should stay.

Reto

-Ursprüngliche Nachricht-
Von: Epling, Bob [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. September 2001 00:19
An: [EMAIL PROTECTED]
Betreff: catalina.bat


Hi all,

I haven't been able to find the answer to this.
How does one go about keeping the dos window open when catalina.bat
errors?
I would like to see what the exception is, but the window closes as soon
as the error gets displayed.
I am trying to run tomcat4 on a winnt machine, in standalone mode.

Thanks for the help.

Bob




Re: Form Based authentication problem

2001-09-27 Thread Kaneda K

This might be (I had a probleme that look the same with Mysql)
so this might be that it need to be autoReconnect=true:

  connectionURL=jdbc:postgresql://192.168.0.17/tomcat_users

became :
  connectionURL=jdbc:postgresql://192.168.0.17/tomcat_users?autoReconnect=true

Try and give me your feed back, please.

At 09:32 27/09/2001 +0200, you wrote:
Hi all:

I'm working with Tomcat 3.2.3 and postgres 7.0. I want to use form-based
authentication and i have included the next lines in the server.xml file:
 RequestInterceptor
 className=org.apache.tomcat.request.JDBCRealm
 debug=0
 driverName=org.postgresql.Driver
 connectionURL=jdbc:postgresql://192.168.0.17/tomcat_users
 connectionName=tomcat
 connectionPassword=tomcat
 userTable=usuarios
 userNameCol=login
 userCredCol=password
 userRoleTable=usuarios
 roleNameCol=role /

The connection to the db is opened succesfully but when I put a valid
username and password the query doesn't work. The error in the tomcat.log
file is:
 JDBCRealm: The database connection is null or was found to be closed.
Trying to re-open it.

and the user isn't authenticated.

Thank you all

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España




Re: Thawte, SSL, and Tomcat

2001-09-27 Thread jean-frederic clere

Jon Shoberg wrote:
 
 Hypothetical situation ...
 
 I have the domain secure.foobar.com and a Thawte SSL certificate
 configured with Apache (mod_ssl).  The file provided back from Thawte is
 called secure.foobar.com.crt.  Is there a way to use that certificate in
 setting up https://secure.foobar.com:8443/myWebApp/ ? Do I have to go back
 to Thawte for another cert if I want to provide SSL though tomcat?

Use a Apache/Tomcat connector like mod_jk.

 
 Does anyone have, literally, blind instructions for setting up a
 commercial SSL cert?  The current docs are pretty good but I am looking for
 something related to tomcat 3.x.x which covers creation and install of a
 commercial cert.
 
 Thanks



Incomplete HTTP status from tomcat

2001-09-27 Thread Geoff Ballinger

Dear all,

Here at DB we are using Tomcat 3.2.3 combined with apache 1.3.20 and 
mod_jk running under redhat 7.1 (+ kernel 2.4.9) to host our mobile
games platform - Unity. I have come across a slightly odd feature of
Tomcat's HTTP response which seems to confuse a couple of the WML
microbrowsers we need to support.

The basic problem is that the HTTP status line doesn't seem to include 
the textual version of the response i.e. you get back HTTP/1.1 200 
instead of HTTP/1.1 200 OK etc. I am comparing our current tomcat
build with our previous build which was hosted using JServ. The only
difference between the two responses are the change in the status line
as described plus the addition of a charset clause in the Content-Type

My first question is which of the three layers of software is generating 
the header when used in this combination - Apache proper, mod_jk, or 
Tomcat itself?

Is this form of header normal for a hit to a servlet in this setup. What 
do other people see? Do the newer tomcat versions also exhibit this 
behaviour?

Thanks,

Geoff.




Re: AW: catalina.bat

2001-09-27 Thread Jim Cheesman

At 09:43 AM 27/09/01, you wrote:
Hi Bob,
If you start it from a DOS window you should see the messages and the window
should stay.


Not true - you have to type catalina run for this to work.



Reto

-Ursprüngliche Nachricht-
Von: Epling, Bob [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. September 2001 00:19
An: [EMAIL PROTECTED]
Betreff: catalina.bat


Hi all,

I haven't been able to find the answer to this.
How does one go about keeping the dos window open when catalina.bat
errors?
I would like to see what the exception is, but the window closes as soon
as the error gets displayed.
I am trying to run tomcat4 on a winnt machine, in standalone mode.

Thanks for the help.

Bob


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  I'm still not sure 
if I understand ambiguity.





AW: Thawte, SSL, and Tomcat

2001-09-27 Thread Ralph Einfeldt

Some day's ago [EMAIL PROTECTED] sent the attached mail:

 -Ursprüngliche Nachricht-
 Von: Jon Shoberg [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 27. September 2001 00:41
 An: [EMAIL PROTECTED]
 Betreff: Thawte, SSL, and Tomcat
snip/
   Does anyone have, literally, blind instructions for 
 setting up a
 commercial SSL cert?  The current docs are pretty good but I 
 am looking for
 something related to tomcat 3.x.x which covers creation and 
 install of a
 commercial cert.
snip/

---BeginMessage---

Hi,

after long time of trying to setup a (demo)certificate from thawte.com
or
trustcenter.de I finally made it. And because of the numerous questions
on
this list concerning this topic, I thought it would be a good idea to
share
my gained wisdom :-)
So what follows is a step-by-step instruction on how to install a
commercial
(*not* self signed or openssl) certificate:
1. generate a local certificate:
   keytool -genkey -alias tomcat -keyalg RSA -keystore myfile
   where myfile is the name of the desired keystore-file
2. generate the CSR (you need it to request your (demo)certificate)
   keytool -certreq -keyalg RSA -alias tomcat -file certreq.pem
-keystore
myfile
   now you have a file called certreq.pem. Send this to your
trustcenter.
3. most trustcenters do not deliver a so called chained certificate,
   so you have to install their root-certificate (their website says
where
to find it)
   keytool -import -alias root -keystore myfile -trustcacerts -file
root-cert-file
4. after your final (demo)certificate has been sent to you, install it
like
this
   keytool -import -alias tomcat -keystore myfile -trustcacerts -file
received-cert-file

For the tomcat-specific part of the installation go to the *real good*
tomcat-doc-page:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

I hope it helped somebody... If there are any
questions/suggestions/etc...
simply hit REPLY (-:

greets,
pero



---End Message---


Re: two tomcat-apache connections?

2001-09-27 Thread michael . brohl


Hi,

you don't need to set up a second connection to deploy more applications.
Just add

WebAppDeploy  jsp   conn2  /jsp

under the first WebAppDeploy ... entry.


Regards

Michael Brohl





   

akeijou@netsca 

pe.net (mTo: [EMAIL PROTECTED]

akeijou) cc:   

 Subject: two tomcat-apache connections?   

26.09.2001 

21:01  

Please respond 

to tomcat-user 

   

   





red hat linux 7.1, apache 1.3.20 with mod_webapp, jakarta-tomcat 4.0

the tomcat-apache connection for /examples works with the following setting
in httpd.conf:
   WebAppConnection  conn  warp  myhostname:8008
   WebAppDeploy  examples  conn  /examples

now, i have another application /jsp that currently works as standalone,
i.e., http://myhostname:8080/jsp.

how do i set it up such that it also goes through apache?  i tried defining
another Apache-Connector service in server.xml with port 8009 then placed
another couple of lines in httpd.conf as follows:

   WebAppConnection  conn2 warp   myhostname:8009
   WebAppDeploy  jsp   conn2  /jsp

and restarted the servers.  was just guessing so i was not surprised that
it did not work.  the errors in the apache log in tomcat say that there are
errors in initializing naming contexts for /examples and /jsp so that the
context startup failed.  the error on the browser when accessing
http://myhostname/examples/ is the requested resource(/examples/) is not
found, which makes sense.  and the standalone tomcat, e.g.,
http://myhostname:8080/examples still worked.

question: how should i set up tomcat and apache to serve more than one app?
thanks,
--meg



__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/







Re: communicating between 2 diffrent sessions

2001-09-27 Thread Christof Soehngen

The context is a container like a session, only that it's valid for the
lifetime of the tomcat process and is accessible by all webpages.
In JSP you refer to it as the application

You could say in your Servlet:

-

public class TestServlet extends HttpServlet {

 ServletContext context = null;

 public void init (ServletConfig config) {
  context = config.getServletContext();
 }

 public void doPost (HttpServletRequest request, HttpServletResponse
response) {

  String parameter = (String) context.getAttribute(parameter_name);

  if (parameter==null) {
parameter = Some standard value for the parameter
context.setAttribute(parameter_name, parameter);
  }
 }
}

-

Now, in your JSP, you should be able to access the parameter as a bean with
scope = application

Hope there are no typos, and it helps, this could be one way to solve your
problem.

Christof

- Original Message -
From: catalin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 9:01 AM
Subject: communicating between 2 diffrent sessions


 Hello,

 I have 2 apps (one in /webapps/myapp1-with jsp and other
 webapps/root/myapp2-with servlets) on a jakarta-tomcat-3.3-m4 on a
win98 OS.
 My problem is that I need parameters that are in session of myapp2 to
 transmmit in session of myapp1.
 Can I do that?
 It is possible to set the same session for both apps?
 Thanks!



 --
 Best regards,
  catalin  mailto:[EMAIL PROTECTED]





Re: Form Based authentication problem

2001-09-27 Thread Miguel Angel Medina Lopez

Hi:

Thanks Kaneda but the parameter autoReconnect doesn't work in Postgres.
I have found the error in the server.xml file and now I can't authenticate
fine. Now the problem is that I need the user name in differents context.
How can I do that? How can I keep client state in different contexts?

Miguel Ángel Medina López


- Original Message -
From: Kaneda K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 10:01 AM
Subject: Re: Form Based authentication problem


 This might be (I had a probleme that look the same with Mysql)
 so this might be that it need to be autoReconnect=true:

   connectionURL=jdbc:postgresql://192.168.0.17/tomcat_users

 became :

connectionURL=jdbc:postgresql://192.168.0.17/tomcat_users?autoReconnect=tru
e

 Try and give me your feed back, please.

 At 09:32 27/09/2001 +0200, you wrote:
 Hi all:
 
 I'm working with Tomcat 3.2.3 and postgres 7.0. I want to use form-based
 authentication and i have included the next lines in the server.xml file:
  RequestInterceptor
  className=org.apache.tomcat.request.JDBCRealm
  debug=0
  driverName=org.postgresql.Driver
  connectionURL=jdbc:postgresql://192.168.0.17/tomcat_users
  connectionName=tomcat
  connectionPassword=tomcat
  userTable=usuarios
  userNameCol=login
  userCredCol=password
  userRoleTable=usuarios
  roleNameCol=role /
 
 The connection to the db is opened succesfully but when I put a valid
 username and password the query doesn't work. The error in the tomcat.log
 file is:
  JDBCRealm: The database connection is null or was found to be
closed.
 Trying to re-open it.
 
 and the user isn't authenticated.
 
 Thank you all
 
 -
 Miguel Ángel Medina López
 Logic Factory: www.logic-factory.com
 Granada - España




Re: HTTP Status 500 - Now Exception

2001-09-27 Thread Lee . Lovell


Thanks for that tip
It did get me past the point i was stuck on.

However now i am getting a class cast exception on the tomcat 4 machine
with
code that runs fine on the tomcat 3.x machine


both use mod_jk ajp13.
Both have java 1.3.1 running.

java.security is identical.

Is the information passed differently in the latest tomcat compared to
versions 3.x.

I use request.getAttribute(javax.servlet.request.X509Certificate) to
extract the certificate string.

Any ideas anyone.


java.lang.ClassCastException: [Ljava.security.cert.X509Certificate;
at ..






|+---
||  Matias  |
||  Bahlenberg  |
||  matias.bahlenber|
||  [EMAIL PROTECTED]   |
||   |
||  09/27/01 08:05 AM|
||  Please respond to|
||  tomcat-user  |
||   |
|+---
  
|
  |
|
  |   To: [EMAIL PROTECTED] 
|
  |   cc:  
|
  |   Subject: Re: HTTP Status 500 
|
  
|





Hi Lee,

I recognize this. I solved the problem with a Host inside the Engine
element in the server.xml. See below:

Server port=8005 shutdown=SHUTDOWN debug=0

!-- Some information of the stand-alone service, tomcat web-server --
!-- I you do not use this service, I suggest you comment it all --

!-- Define an Apache-Connector Service --
Service name=Tomcat-Apache
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0 /

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache defaultHost=www.company.com debug=0 appBase
=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=apache_access_log. suffix
=.txt
 pattern=common/

!-- Because this Realm is here, an instance will be shared
globally --
Realm className=org.apache.catalina.realm.MemoryRealm /

!-- Be sure that the name is the same as ServerName in
httpd.conf --
Host name=www.company.com appBase=webapps
Context path=
 docBase=ROOT
 crossContext=false
 reloadable=true /
/Host
/Engine
/Service
/Server



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 26, 2001 4:46 PM
Subject: HTTP Status 500



 Does anyone know why i get the message

 HTTP Status 500 - No Host matches server name www.xxx.co.uk

 When i use ajp13 to connect to tomcat 4 from apache 1.3.20

 I am using the same method i would have used when i was using tomcat 3.x
 (I.e nothing has changed on the apache side

 Only the Connetor stuff in server.xml has changed !


 Any obvious ideas anyone ?


 Cheers in advance


 Lee


 (Embedded image moved to file: pic00041.pcx)










How to get rid of timestamp in AccessLogValve ?

2001-09-27 Thread Oleksandr Fedorenko

Hi.

Does anybody know how to get rid of timestamp in AccessLogValve ?

Catalina creates access log filename with timestamp every time .

Thanks. Alexander .







AW: AW: catalina.bat

2001-09-27 Thread Reto Badertscher

I assumed that someone does not just opening a DOS window without entering
any command. Sorry for that!

Reto

-Ursprüngliche Nachricht-
Von: Jim Cheesman [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. September 2001 10:14
An: [EMAIL PROTECTED]
Betreff: Re: AW: catalina.bat


At 09:43 AM 27/09/01, you wrote:
Hi Bob,
If you start it from a DOS window you should see the messages and the
window
should stay.


Not true - you have to type catalina run for this to work.



Reto

-Ursprüngliche Nachricht-
Von: Epling, Bob [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. September 2001 00:19
An: [EMAIL PROTECTED]
Betreff: catalina.bat


Hi all,

I haven't been able to find the answer to this.
How does one go about keeping the dos window open when catalina.bat
errors?
I would like to see what the exception is, but the window closes as soon
as the error gets displayed.
I am trying to run tomcat4 on a winnt machine, in standalone mode.

Thanks for the help.

Bob


--

   *   Jim Cheesman   *
 Trabajo:
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  I'm still not sure
if I understand ambiguity.




Re: HTTP Status 500 - Now Exception

2001-09-27 Thread Lee . Lovell


Your a life saver...

Works a treat

and with a deadline of tomorrow fits in perfectly.

Cheers

Lee




|+---
||  Matias  |
||  Bahlenberg  |
||  matias.bahlenber|
||  [EMAIL PROTECTED]   |
||   |
||  09/27/01 09:43 AM|
||  Please respond to|
||  tomcat-user  |
||   |
|+---
  
|
  |
|
  |   To: [EMAIL PROTECTED] 
|
  |   cc:  
|
  |   Subject: Re: HTTP Status 500 - Now Exception 
|
  
|





Hi Lee,

The return value is an array of certificates:

java.security.cert.X509Certificate[] certArray
= (java.security.cert.X509Certificate[])
request.getAttribute
(javax.servlet.request.X509Certificate);

// Matias


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 10:33 AM
Subject: Re: HTTP Status 500 - Now Exception



 Thanks for that tip
 It did get me past the point i was stuck on.

 However now i am getting a class cast exception on the tomcat 4 machine
 with
 code that runs fine on the tomcat 3.x machine


 both use mod_jk ajp13.
 Both have java 1.3.1 running.

 java.security is identical.

 Is the information passed differently in the latest tomcat compared to
 versions 3.x.

 I use request.getAttribute(javax.servlet.request.X509Certificate) to
 extract the certificate string.

 Any ideas anyone.


 java.lang.ClassCastException: [Ljava.security.cert.X509Certificate;
 at ..






 |+---
 ||  Matias  |
 ||  Bahlenberg  |
 ||  matias.bahlenber|
 ||  [EMAIL PROTECTED]   |
 ||   |
 ||  09/27/01 08:05 AM|
 ||  Please respond to|
 ||  tomcat-user  |
 ||   |
 |+---
   
|

   |
|
   |   To: [EMAIL PROTECTED]
|
   |   cc:
|
   |   Subject: Re: HTTP Status 500
|
   
|






 Hi Lee,

 I recognize this. I solved the problem with a Host inside the Engine
 element in the server.xml. See below:

 Server port=8005 shutdown=SHUTDOWN debug=0

 !-- Some information of the stand-alone service, tomcat web-server
--
 !-- I you do not use this service, I suggest you comment it all --

 !-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 /

 !-- Replace localhost with what your Apache ServerName is
set
 to --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache defaultHost=www.company.com debug=0 appBase
 =webapps

   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/

 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=apache_access_log. suffix
 =.txt
  pattern=common/

 !-- Because this Realm is here, an instance will be shared
globally --
 Realm className=org.apache.catalina.realm.MemoryRealm /

 !-- Be sure that the name is the same as ServerName in
httpd.conf --
 Host name=www.company.com appBase=webapps
 Context path=
  docBase=ROOT
  crossContext=false
  reloadable=true /
 /Host
 /Engine
 /Service
 

Tomcat JDO

2001-09-27 Thread Patrick . Pierra

hello,

is someone work with Tomcat and JDO (java data object KODO implementation)
? I recieve a
java.lang.SecurityException: sealing violation

when the jdo try to access my Business classes !
How could i manipulate the tomcat.policy file ?
Is a technique to desactivate this aspect of security in Tomcat ?

Patrick PIERRA




Session scope problem

2001-09-27 Thread paul

Is it true that the session object is only valid in a given context/Web app
which means that if you change context you lose all your stored objects.

..very annoying..why?

Surley a seesion is one browser one server irrespective of the pages
visited.

Thanks







Re: Tomcat 4 with JSP

2001-09-27 Thread paul


here is relevant httpd.conf.

WebAppConnection conn warp localhost:8009
NameVirtualHost 193.133.123.162


VirtualHost 193.133.123.162
ServerName pan.web.roadrunner.uk.com
DocumentRoot /usr/local/apache/pan.web.roadrunner.uk.com/htdocs
WebAppDeploy ct conn /ct/
WebAppDeploy b2b conn /b2b/
WebAppDeploy logon conn /logon/
WebAppDeploy wh conn /wh/
WebAppDeploy edi conn /edi/
/VirtualHost


here is relevent server.xml


  Host name=pan.web.roadrunner.uk.com debug=1 appBase=webapps

Context path= docBase=ROOT debug=0/
Context path=/ct docBase=ct debug=1 crossContext=true
reloadabl
e=true
/Context
Context path=/b2b docBase=b2b debug=1 crossContext=true
reloada
ble=true
/Context
Context path=/logon docBase=logon debug=1 crossContext=true
rel
oadable=true
/Context
Context path=/wh docBase=wh debug=1 crossContext=true
reloadabl
e=true
/Context

  /Host

/Engine

  /Service

/Server


I have five seperate contexts,

I then place my jsp pages in

TOMCAT_HOME/webapps/ct/*.jsp for example

then the page pan.web.roadrunner.uk.com/ct/*.jsp will retreive the jsp page.







- Original Message -
From: Adam: Kurzawa [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 8:11 AM
Subject: Tomcat 4 with JSP



 So, nobody here knows how to use Apache + Tomcat 4 with JSP?  Is it even
 possible?

 Like everyone knows, JSP files should be stored on the Apache server
 along with all other static content.  I haven't been able to figure out
 how to convince Apache to cooperate with Tomcat 4 for execution of JSP
 files.

 I have no problems with normal servlets, which are served from SPECIAL
 directores and can be easily defined in httpd.conf by:

 WebApp Deplayservlet conn /servlet/

 Kind regards,
 Adam: Kurzawa





web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Hi !

Tomcat complains that it can't find some of my classes
.../web-inf/classes/xxx/yyy/myclassses for example,
Everything works fine when I compile it (I specify the -classpath to let the
compiler find the classes), but when I run the application in Tomcat, it
does not find the classes.

The docs says that it should look in the web-inf/classes directory ?

Am I doing something wrong here maybe ?

Mikael





mod_jk how to -- documentation issue

2001-09-27 Thread U n d e r a c h i e v e r

Hi

Enclosed with the 3.2.3 jakarta-tomcat is the following item of
documentation:-

./jakarta-tomcat/doc/mod_jk-howto.html

It mentions the following under 'Building mod_jk for Unix'

Change directory to TOMCAT_HOME/native/mod_jk/apache1.3 (or
apache2.0).

... but i have no such directory. Last time i needed to build mod_jk i
recall i needed to download the source, not binary, tarball, but again
this has no 'native' directory. The documentation mentions a solaris
build script, this is not present in any directory.

Is the documentation wrong? or have i downloaded the wrong thing - or
otherwise misunderstood??

thanks

PS i'm likely to have a crack at compiling mod_jk using the code in the
source plus apxs... any pointers on this would be gratefully recieved.


=
u n d e r a c h i e v e r (and proud)
[EMAIL PROTECTED]

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com



can't find mod_jserv.so

2001-09-27 Thread jason lane

Hello everyone,
finally got tomcat 3.3 working on my mac (os x 10.4) and am now running 
Cocoon 2 as well.

I a now trying to tune the whole environment between tomcat / cocoon  
apache. So I have included the path to the tomcat.conf in httpd.conf but 
I  get an error generated on the tomcat.conf  - it  can't find 
mod_jserv.so in  libexec/ Has mod_jserv.so been replaced by mod_jk.so ?

If not any ideas?

Many thanks to everyone

;-)




Re: web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Ok, thanks, I will see if I can figure out how to do that

The documentation says that Tomcat (4) always adds a classloader for each
web application that looks in the web-inf/classes and web-inf/dir directory,
I could not find any examples/web-inf/classes reference in my server.xml, I
guess I should place this information in the context for my application but
I have no idea where, but I will see if I can find anything about it in the
documentation.

Mikael

- Original Message -
From: Chaber, Eric [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 12:53 PM
Subject: RE: web-inf/classes not found ?


 Mikeal,

 you have to specify in server.xml where your classes are.
 for the example directory it's
 /webapps/examples/web-inf/classes
 recreate same path in server.xml
 /webapps/mydir/web-inf/classes
 reboot tomcat
 put your class files there
 tomcat should find them

 rgds,
 Eric
 -Original Message-
 From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
 Sent: September 27 2001 13:55
 To: [EMAIL PROTECTED]
 Subject: web-inf/classes not found ?


 Hi !

 Tomcat complains that it can't find some of my classes
 .../web-inf/classes/xxx/yyy/myclassses for example,
 Everything works fine when I compile it (I specify the -classpath to let
the
 compiler find the classes), but when I run the application in Tomcat, it
 does not find the classes.

 The docs says that it should look in the web-inf/classes directory ?

 Am I doing something wrong here maybe ?

 Mikael





Tomcat 4.0 - Two bugs?

2001-09-27 Thread Mark Muffett

1. Has anyone successfully got the alias feature (for virtual hosts) to work
?  I have a configuration with

  Host name=sota debug=9 appBase=webapps unpackWARs=true
   Alias name=sota.silly.domain.net /


/Host

in server.xml.

http://sota works, http://sota.silly.domain.net goes to the default domain
(not to sota).

2. I find that I have to stop and start Tomcat twice after every change I
make to server.xml.  Has anyone else seen this?

Thanks for any help

Mark Muffett




Webapp

2001-09-27 Thread Jim Urban

We are now two weeks from go live and we still can't find a Win32 version of
mod_webapp.  Where is it?  When will it be posted on the web site?  Please
don't suggest building it.  We are a Java shop (thus we are using Tomcat to
run servlets and not just Apache to run CGIs) and don't have the resources
to build a C module.  

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


 winmail.dat


RE: web-inf/classes not found ?

2001-09-27 Thread Chaber, Eric

Edit your server.xml
copy paste

Context path=/examples
 docBase=webapps/examples
 crossContext=false
 debug=0
 reloadable=true 
/Context

change examples to mydir
create a dir $TOMCAT_HOME/webapps/mydir
under my dir creates directories WEB-INF/classes

at the end you should have $TOMCAT_HOME/webapps/mydir/WEB-INF/classes
reboot tomcat
put yur classes there
that's how I did for my setup.


-Original Message-
From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
Sent: September 27 2001 14:24
To: [EMAIL PROTECTED]
Subject: Re: web-inf/classes not found ?


Ok, thanks, I will see if I can figure out how to do that

The documentation says that Tomcat (4) always adds a classloader for each
web application that looks in the web-inf/classes and web-inf/dir directory,
I could not find any examples/web-inf/classes reference in my server.xml, I
guess I should place this information in the context for my application but
I have no idea where, but I will see if I can find anything about it in the
documentation.

Mikael

- Original Message -
From: Chaber, Eric [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 12:53 PM
Subject: RE: web-inf/classes not found ?


 Mikeal,

 you have to specify in server.xml where your classes are.
 for the example directory it's
 /webapps/examples/web-inf/classes
 recreate same path in server.xml
 /webapps/mydir/web-inf/classes
 reboot tomcat
 put your class files there
 tomcat should find them

 rgds,
 Eric
 -Original Message-
 From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
 Sent: September 27 2001 13:55
 To: [EMAIL PROTECTED]
 Subject: web-inf/classes not found ?


 Hi !

 Tomcat complains that it can't find some of my classes
 .../web-inf/classes/xxx/yyy/myclassses for example,
 Everything works fine when I compile it (I specify the -classpath to let
the
 compiler find the classes), but when I run the application in Tomcat, it
 does not find the classes.

 The docs says that it should look in the web-inf/classes directory ?

 Am I doing something wrong here maybe ?

 Mikael




Tomcat-Standalone? what else..

2001-09-27 Thread Marcel Stoer

hi all

the term Tomcat-Standalone is everywhere. what does standalone in this
context mean? tomcat is the one and only webserver (container) on the system
(no apache/iis etc present)? what would it be if it is NOT standalone?

thanks
marcel





Re: web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Ok, many thanks for the help.

Mikael

- Original Message -
From: Chaber, Eric [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 1:32 PM
Subject: RE: web-inf/classes not found ?


 Edit your server.xml
 copy paste

 Context path=/examples
  docBase=webapps/examples
  crossContext=false
  debug=0
  reloadable=true 
 /Context

 change examples to mydir
 create a dir $TOMCAT_HOME/webapps/mydir
 under my dir creates directories WEB-INF/classes

 at the end you should have $TOMCAT_HOME/webapps/mydir/WEB-INF/classes
 reboot tomcat
 put yur classes there
 that's how I did for my setup.


 -Original Message-
 From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
 Sent: September 27 2001 14:24
 To: [EMAIL PROTECTED]
 Subject: Re: web-inf/classes not found ?


 Ok, thanks, I will see if I can figure out how to do that

 The documentation says that Tomcat (4) always adds a classloader for each
 web application that looks in the web-inf/classes and web-inf/dir
directory,
 I could not find any examples/web-inf/classes reference in my server.xml,
I
 guess I should place this information in the context for my application
but
 I have no idea where, but I will see if I can find anything about it in
the
 documentation.

 Mikael

 - Original Message -
 From: Chaber, Eric [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 27, 2001 12:53 PM
 Subject: RE: web-inf/classes not found ?


  Mikeal,
 
  you have to specify in server.xml where your classes are.
  for the example directory it's
  /webapps/examples/web-inf/classes
  recreate same path in server.xml
  /webapps/mydir/web-inf/classes
  reboot tomcat
  put your class files there
  tomcat should find them
 
  rgds,
  Eric
  -Original Message-
  From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
  Sent: September 27 2001 13:55
  To: [EMAIL PROTECTED]
  Subject: web-inf/classes not found ?
 
 
  Hi !
 
  Tomcat complains that it can't find some of my classes
  .../web-inf/classes/xxx/yyy/myclassses for example,
  Everything works fine when I compile it (I specify the -classpath to let
 the
  compiler find the classes), but when I run the application in Tomcat, it
  does not find the classes.
 
  The docs says that it should look in the web-inf/classes directory ?
 
  Am I doing something wrong here maybe ?
 
  Mikael
 




java.io.NotSerializable exception when calling EJB from servlet?

2001-09-27 Thread Andrew Wright

Hi all,

I'm trying to call an EJB method from a servlet. The EJB methods work 
fine when I use a standalone test app, but die when I make the same 
calls from a servlet, throwing:

java.io.NotSerializableException: 
org.apache.catalina.connector.HttpRequestFacade
stack trace snipped

The servlet can create the EJB instance OK, it's not a lookup problem. 
The exception is thrown when I call a custom method in the servlet (it 
doesn't do anything, it's just a test stub). The remote interface method 
looks like:

public void process(HttpServletRequest reqest, HttpServletResponse 
response) throws RemoteException, java.io.NotSerializableException;

I'm currently using Tomcat 4 + JBoss 2.4.1 (seperately, not integrated), 
but had the same problem with Tomcat 3. The only fields in the 
Registration EJB are Strings - nothing fancy. I've stripped the bean 
'bare' to try and isolate the problem, without success.

Despite much net searching I haven't seen any reports of similar 
problems - surely I'm not the only one? I'm running on Mac OS X 10.1 
(Hotspot Java VM 1.3.1 for those who don't know).

Any suggestions/thoughts gratefully received.
Regards,
Andrew Wright




How much JNDI support does Tomcat 3.2.3 provide?

2001-09-27 Thread Vel Periasamy

The following text is from J2EE specifications.


~~~
The following additional elements exist in the web application deployment
descriptor to meet the requirements of web containers that are JSP pages
enabled
or part of a J2EE application server. They are not required to be supported
by
containers wishing to support only the servlet specification:
* taglib
* syntax for looking up JNDI objects (env-entry, ejb-ref,
ejb-local-ref,
resource-ref, resource-env-ref)

~~~

I would like to know how much of this is supported in Tomcat 3.2.3.

If we want to use resource-ref's to connect to database via
javax.sql.DataSource,
can it be done in Tomcat 3.2.3, or, should we move to Tomcat 4.0?

Thanks for your help.

Velmurugan Periasamy 
[EMAIL PROTECTED] 
http://www.aegis.net 
Personal Home Page: http://www.geocities.com/velmurugan_p 




RE: How to call EJB's from Servlet in a portable J2EE way?

2001-09-27 Thread Vel Periasamy

Thanks for the clarification, Asheesh.

One more thing, what's the significance of ejb-ref elements in web.xml?
Do you have to specify them?

Thanks again.
-Velmurugan Periasamy.


-Original Message-
From: asheesh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 12:46 AM
To: [EMAIL PROTECTED]
Subject: Re: How to call EJB's from Servlet in a portable J2EE way?


Earlier in tomcat 3.1 i use to get context by following

Context ctx = new InitialContext();
Object obj = ctx.lookup(mybean);

Then in tomcat 3.2.3 i follow following technique, which i suppose is applic
able to all j2ee compliant servers

Hashtable env = new Hashtable();
env.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY, com.inprise.
j2ee.jndi.CtxFactory );
env.put( javax.naming.Context.URL_PKG_PREFIXES, com.inprise.j2ee.jn
di );
Context ctx = new InitialContext(env);
Object obj = ctx.lookup(mybean);
  This is reference to the Borland AppServer, pls do check for the JBOSS
implementation of it, u may have to include few class files in ur class path
.

regards
asheesh

- Original Message -
From: Vel Periasamy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 4:48 AM
Subject: How to call EJB's from Servlet in a portable J2EE way?


 We're planning to build a Servlet/JSP application(using Tomcat).
 We might also use EJB's if required (using JBoss).

 What's the best portable J2EE way to call EJB's on JBoss from a
 servlet in Tomcat? We have Tomcat 3.2.3.

 I understand this should be done by acquiring an initial context
 and doing a lookup for the EJB. But does Tomcat support the initial
 context stuff? Also, I want to know how we should configure the
 ejb-ref/ejb-local-ref elements in web.xml(Are these mandatory?)

 Thanks for your help.
 ---
 Velmurugan Periasamy
 [EMAIL PROTECTED]
 http://www.aegis.net
 Personal Home Page: http://www.geocities.com/velmurugan_p
 ---






Commercial support for Tomcat?

2001-09-27 Thread David Ripton

Sorry if this is a FAQ; I browsed through the archives and didn't see
any good answers.

Anyone had good or bad experiences with any commercial support vendors
for Tomcat?  (If it matters, we're running it alongside Apache on
Solaris, we already have our system working, and we're going through the
paperwork to be allowed to deploy it.  We want to use our configuration,
not some vendor's prepackaged web-stuff-in-a-box setup.)

If there isn't anyone out there providing good commercial support, what
do people who work at large companies with stringent all software used
must have 24/7 support contracts requirements do?  Is industry best
practice to rely on mailing lists and internal expertise rather than
support contracts for Tomcat?

Thanks.

-- 
David Ripton   [EMAIL PROTECTED]



Tomcat 4.0 i18n BUG

2001-09-27 Thread Andrew

Hi, I've following problem: after request.setCharacterEncoding()
invocation,  request.getParameter() was properly set encoding but
request.getQueryString() does nothig- ignore encoding setting...
What's the matter?






Re: java.io.NotSerializable exception when calling EJB from servlet?

2001-09-27 Thread Dmitri Colebatch

The arguments to the remote metho dmust be serializable at runtime.  The
HttpRequest of Catalina's isn't so you wont be able to do that.  What you
want to do is extract the values you need out of the request, and pass
them to the process method so that the process method is pure business
logic and doesn't care where the request comes from 

cheers
dim

On Thu, 27 Sep 2001, Andrew Wright wrote:

 Hi all,
 
 I'm trying to call an EJB method from a servlet. The EJB methods work 
 fine when I use a standalone test app, but die when I make the same 
 calls from a servlet, throwing:
 
 java.io.NotSerializableException: 
 org.apache.catalina.connector.HttpRequestFacade
 stack trace snipped
 
 The servlet can create the EJB instance OK, it's not a lookup problem. 
 The exception is thrown when I call a custom method in the servlet (it 
 doesn't do anything, it's just a test stub). The remote interface method 
 looks like:
 
 public void process(HttpServletRequest reqest, HttpServletResponse 
 response) throws RemoteException, java.io.NotSerializableException;
 
 I'm currently using Tomcat 4 + JBoss 2.4.1 (seperately, not integrated), 
 but had the same problem with Tomcat 3. The only fields in the 
 Registration EJB are Strings - nothing fancy. I've stripped the bean 
 'bare' to try and isolate the problem, without success.
 
 Despite much net searching I haven't seen any reports of similar 
 problems - surely I'm not the only one? I'm running on Mac OS X 10.1 
 (Hotspot Java VM 1.3.1 for those who don't know).
 
 Any suggestions/thoughts gratefully received.
 Regards,
 Andrew Wright
 
 




Re: two tomcat-apache connections?

2001-09-27 Thread David Smith

WebAppConnection forms the communications channel between Tomcat and Apache, 
so only use it once in your httpd.conf file unless you have more than one 
Tomcat running.

WebAppDeploy is the line that matches URL's to specific tomcat contexts.  Use 
it for each application and have them all use the same connection.  
It's all described briefly, but effectively in the INSTALL.TXT file that 
comes with mod_webapp (the CVS source at least). 

--David Smith


On Wednesday 26 September 2001 03:01 pm, you wrote:
 red hat linux 7.1, apache 1.3.20 with mod_webapp, jakarta-tomcat 4.0

 the tomcat-apache connection for /examples works with the following setting
 in httpd.conf: WebAppConnection  conn  warp  myhostname:8008
WebAppDeploy  examples  conn  /examples

 now, i have another application /jsp that currently works as standalone,
 i.e., http://myhostname:8080/jsp.

 how do i set it up such that it also goes through apache?  i tried defining
 another Apache-Connector service in server.xml with port 8009 then placed
 another couple of lines in httpd.conf as follows:

WebAppConnection  conn2 warp   myhostname:8009
WebAppDeploy  jsp   conn2  /jsp

 and restarted the servers.  was just guessing so i was not surprised that
 it did not work.  the errors in the apache log in tomcat say that there are
 errors in initializing naming contexts for /examples and /jsp so that the
 context startup failed.  the error on the browser when accessing
 http://myhostname/examples/ is the requested resource(/examples/) is not
 found, which makes sense.  and the standalone tomcat, e.g.,
 http://myhostname:8080/examples still worked.

 question: how should i set up tomcat and apache to serve more than one app?
 thanks,
 --meg



 __
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with Shop@Netscape!
 http://shopnow.netscape.com/

 Get your own FREE, personal Netscape Mail account today at
 http://webmail.netscape.com/




Réf. : web-inf/classes not found ?

2001-09-27 Thread joseph . vallot


Hi...

you seem working on windows (your email header say so): beware on case ;)
it is NOT web-inf, it is WEB-INF (under explorer right-click on dir,
porperties gives you exact name).

my 2 cents
--
Joseph



Internet
[EMAIL PROTECTED] - 27/09/2001 14:54


Veuillez répondre à [EMAIL PROTECTED]
Pour :tomcat-user

cc :

ccc :


Objet :   web-inf/classes not found ?


Hi !

Tomcat complains that it can't find some of my classes
.../web-inf/classes/xxx/yyy/myclassses for example,
Everything works fine when I compile it (I specify the -classpath to let
the
compiler find the classes), but when I run the application in Tomcat, it
does not find the classes.

The docs says that it should look in the web-inf/classes directory ?

Am I doing something wrong here maybe ?

Mikael










This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.



Re: Réf. : web-inf/classes not found ?

2001-09-27 Thread Mikael Aronsson

Hi !

Already done, (I am using Linux 50% of the time so that's the first thing I
check) it's all uppercase and it still does not work, but I am pretty sure
that I have done something stupid so I will dig around a bit and see if I
can fix it.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 1:00 PM
Subject: Réf. : web-inf/classes not found ?



 Hi...

 you seem working on windows (your email header say so): beware on case ;)
 it is NOT web-inf, it is WEB-INF (under explorer right-click on dir,
 porperties gives you exact name).

 my 2 cents
 --
 Joseph



 Internet
 [EMAIL PROTECTED] - 27/09/2001 14:54


 Veuillez répondre à [EMAIL PROTECTED]
 Pour :tomcat-user

 cc :

 ccc :


 Objet :   web-inf/classes not found ?


 Hi !

 Tomcat complains that it can't find some of my classes
 .../web-inf/classes/xxx/yyy/myclassses for example,
 Everything works fine when I compile it (I specify the -classpath to let
 the
 compiler find the classes), but when I run the application in Tomcat, it
 does not find the classes.

 The docs says that it should look in the web-inf/classes directory ?

 Am I doing something wrong here maybe ?

 Mikael










 This message and any attachments (the message) is
 intended solely for the addressees and is confidential.
 If you receive this message in error, please delete it and
 immediately notify the sender. Any use not in accord with
 its purpose, any dissemination or disclosure, either whole
 or partial, is prohibited except formal approval. The internet
 can not guarantee the integrity of this message.
 BNP PARIBAS (and its subsidiaries) shall (will) not
 therefore be liable for the message if modified.

 -

 Ce message et toutes les pieces jointes (ci-apres le
 message) sont etablis a l'intention exclusive de ses
 destinataires et sont confidentiels. Si vous recevez ce
 message par erreur, merci de le detruire et d'en avertir
 immediatement l'expediteur. Toute utilisation de ce
 message non conforme a sa destination, toute diffusion
 ou toute publication, totale ou partielle, est interdite, sauf
 autorisation expresse. L'internet ne permettant pas
 d'assurer l'integrite de ce message, BNP PARIBAS (et ses
 filiales) decline(nt) toute responsabilite au titre de ce
 message, dans l'hypothese ou il aurait ete modifie.




Re: catalina.bat

2001-09-27 Thread David Smith

Have you tried a pause command in the catalina.bat?  Place it right after the 
point where things die and it should keep the window open.  Or you could  
checking the log file 'catalina.out' which should also have any errors from 
startup.

--David Smith

On Wednesday 26 September 2001 06:18 pm, you wrote:
 Hi all,

 I haven't been able to find the answer to this.
 How does one go about keeping the dos window open when catalina.bat
 errors?
 I would like to see what the exception is, but the window closes as soon
 as the error gets displayed.
 I am trying to run tomcat4 on a winnt machine, in standalone mode.

 Thanks for the help.

 Bob