Multiple Tomcat Instances on Linux Box : Binding exceptions galore : No ideas left

2002-05-19 Thread Webdesign

Hi folks.

I'm trying to setup tomcat on one of our servers so that multiple developers
can have their own tomcat instance, but keep running into bind exceptions.
I've been fiddling with it for quite a few days but have come to a stage
where I can't figure out what more to do.

___
Here is the setup:

We use redhat linux 7.2, tomcat rpm 4.0.3-1, j2sdk-1.4.0.  Tomcat has been
installed in /var/tomcat4 on the server. For each developer I have set
CATALINA_BASE to point to their own tomcat directory (
/home/www/user/tomcat ) which contains the conf/webapps/temp/logs
directories. I have modified the server.xml file in each users directory to
use unassigned ports ( eg ports 9620 to 9629 for user1, 9630 to 9639 for
user2 etc...). There are no other services running using any of these ports.

The server is assigned a whole heap of IP addresses, so IPs
192.168.1.253-240, for instance, all point to the same physical machine. All
ip addesses resolve to a name. ie 192.168.1.253=user1.domain.cxm,
192.168.1.252=user2.domain.cxm etc... DNS works fine. These names are used
in each users server.xml file (for engine and hosts). No two server.xml
files share the same hostname.

Tomcat is started by calling '/usr/bin/tomcat4 start' This script has been
modified to run the '/usr/bin/dtomcat4' script as the user making the call.

Now, to start each instance, each user telnets into the server and executes
the command '/usr/bin/tomcat4 start'. The directories tomcat uses are all
correct (it does use the correct CATALINA_BASE).

_
The problem is this:

Tomcat runs for each user if no other tomcat instance is running (I ensure
that by running gtop on the server and killing instances run by other
users). However, if one other instance of tomcat is running (by another
user), we get the error message below.

I have tried commenting out all the connectors except for non-SSL HTTP/1.1.
I have turned them all on and generated keystore files for SSL.

I have replaced the hostnames with the IP addresses.

Nothing seems to work. I am at a complete loss at what to do. If anybody has
ANY idea where to go from here, I am open to suggestions.

_
error message is:

Catalina.start: LifecycleException:  Error creating server socket
(java.net.BindException):  java.net.BindException: Address already in use
LifecycleException:  Error creating server socket (java.net.BindException):
java.net.BindException: Address already in use
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:491)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.init(ServerSocket.java:182)
at java.net.ServerSocket.init(ServerSocket.java:138)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:485)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
_

Bert van Brakel

Web Design
Advance Enterprise Ltd (AEL)
email : [EMAIL PROTECTED]
Bus ph: +64 3 389 9411
fax   : +64 3 389 1411


--
To 

WARP connector and Apache2 - error

2002-05-19 Thread Nikola Milutinovic

Hi all.

Apache 2.0.35
Tomcat 4.1.1
mod_webapp 4.1.2

I've built mod_webapp from sources, the build was more/less OK. The module 
loads. I have copied tomcat-warp.jar to server/lib dir of Tomcat 4.1.1

When I start Apache2 and it attempts to connect and deploy webapp, I get errors 
in error logs:

apache2/logs/error_log
--
[Sun May 19 11:46:42 2002] [crit] the listener thread didn't exit
[Sun May 19 11:46:43 2002] [crit] the listener thread didn't exit
[Sun May 19 11:46:44 2002] [crit] the listener thread didn't exit

Tomcat-4.1.1/logs/WARP.txt
--
2002-05-19 10:46:22 [org.apache.catalina.connector.warp.WarpConnector]
   Connection from Legba.ev.co.yu/192.168.61.18:1275 to
   Mercury.ev.co.yu/192.168.61.16:8008
2002-05-19 10:46:22 [org.apache.catalina.connector.warp.WarpConnector]
   Connection from Legba.ev.co.yu/192.168.61.18:1276 to
   Mercury.ev.co.yu/192.168.61.16:8008
2002-05-19 10:46:23 WarpHost[legba.ev.co.yu]: Installing web application
   at context path /tomcat/addr_book from URL
   file:/usr/users/mercury/webapps/addr_book
2002-05-19 10:46:23 WebappLoader[/tomcat/addr_book]: Deploying class
   repositories to work directory
   /usr/tomcat-4.11/work/Legba.ev.co.yu/legba.ev.co.yu/tomcat_addr_book
2002-05-19 10:46:23 WebappLoader[/tomcat/addr_book]: Deploy class files
   /WEB-INF/classes to /usr/users/mercury/webapps/addr_book/WEB-INF/classes

2002-05-19 10:46:23 [org.apache.catalina.connector.warp.WarpConnector]
   Connection from Legba.ev.co.yu/192.168.61.18:1277 to
   Mercury.ev.co.yu/192.168.61.16:8008
2002-05-19 10:46:25 [org.apache.catalina.connector.warp.WarpConnector]
   Connection from Legba.ev.co.yu/192.168.61.18:1278 to
   Mercury.ev.co.yu/192.168.61.16:8008
2002-05-19 10:46:25 [org.apache.catalina.connector.warp.WarpConnector]
   Connection from Legba.ev.co.yu/192.168.61.18:1279 to
   Mercury.ev.co.yu/192.168.61.16:8008
2002-05-19 10:46:26 [org.apache.catalina.connector.warp.WarpConnector]
   Connection from Legba.ev.co.yu/192.168.61.18:1280 to
   Mercury.ev.co.yu/192.168.61.16:8008
2002-05-19 10:46:32 ContextConfig[/tomcat/addr_book]: Added certificates -
   request attribute Valve
2002-05-19 10:46:32 StandardManager[/tomcat/addr_book]: Seeding random number
   generator class java.security.SecureRandom
2002-05-19 10:46:32 StandardManager[/tomcat/addr_book]: Seeding of random
  number generator has been completed
2002-05-19 10:46:32 StandardWrapper[/tomcat/addr_book:default]: Loading
   container servlet default
2002-05-19 10:46:32 default: init
2002-05-19 10:46:32 StandardWrapper[/tomcat/addr_book:invoker]: Loading
   container servlet invoker
2002-05-19 10:46:32 invoker: init
2002-05-19 10:46:32 jsp: init

2002-05-19 10:46:42 [org.apache.catalina.connector.warp.WarpConnection]
   Exception on socket
java.io.IOException: Premature packet header end
   at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source)
   at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source)
   at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:484)
2002-05-19 10:46:43 [org.apache.catalina.connector.warp.WarpConnection]
   Exception on socket
java.io.IOException: Premature packet header end
   at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source)
   at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source)
   at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:484)

-

So, it sort-of deploys and then when actual communication with Apache2 is 
supposed to take place - Premature packet header end.

Any suggestions?

Nix.


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




Getting mod_webapp to accomplish the same thing at the mod_jk

2002-05-19 Thread tc


I am having no luch at getting the mod_webapp (tomcat 4.x on apache
1.3.x)  to accomplish the same tasks as the mod_jk (tomcat 3.x on apache
1.3.x)

Here is what I have using the mod_jk (using tomcat 3.x on apache 1.3.x)

For the http.conf
VirtualHost *:80
DocumentRoot /home/web/mysite
ServerName www.mysite.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
CustomLog /usr/local/apache/logs/access_log_dnsme common
/VirtualHost

For the server.xml
Host name=www.dnsmadeeasy.com
Context path= docBase=/home/web/mysite debug=0/
/Host




Here is what I have using mod_webapp (using tomcat 4.x on apache 1.3.x)

The httpd.conf:
VirtualHost 192.168.1.12
 ServerName www.mysite.com
 DocumentRoot /home/web/mysite/
 WebAppConnection warpConnection warp localhost:8008
/VirtualHost


The server.xml:
  Service name=Tomcat-Apache
Connector
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/
!-- Replace localhost with what your Apache ServerName is set to
--
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=www.mysite.com debug=0
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  !-- Because this Realm is here, an instance will be shared globally
--
  Realm className=org.apache.catalina.realm.MemoryRealm /
/Engine
  /Service



This obviously is wrong.  I'm stumped here and I am unable to get it
working.  Can someone point me along.  I was able to get the Tomcat
examples running, but I was unable to get my own site up.

Thanks for any help.



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




Re: Getting mod_webapp to accomplish the same thing at the mod_jk

2002-05-19 Thread Jeffrey Bonevich

[EMAIL PROTECTED] wrote:

 I am having no luch at getting the mod_webapp (tomcat 4.x on apache
 1.3.x)  to accomplish the same tasks as the mod_jk (tomcat 3.x on apache
 1.3.x)
 
 Here is what I have using the mod_jk (using tomcat 3.x on apache 1.3.x)
 
 For the http.conf
 VirtualHost *:80
 DocumentRoot /home/web/mysite
 ServerName www.mysite.com
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 CustomLog /usr/local/apache/logs/access_log_dnsme common
 /VirtualHost
 
 For the server.xml
 Host name=www.dnsmadeeasy.com
   Context path= docBase=/home/web/mysite debug=0/
 /Host
 
 
 
 
 Here is what I have using mod_webapp (using tomcat 4.x on apache 1.3.x)
 
 The httpd.conf:
 VirtualHost 192.168.1.12
  ServerName www.mysite.com
  DocumentRoot /home/web/mysite/
  WebAppConnection warpConnection warp localhost:8008


You need a WebAppDeploy directive here as well.  Something like:
WebAppDeploy servlets warpConnection /servlet/


 /VirtualHost
 
 
 The server.xml:
   Service name=Tomcat-Apache
 Connector
 className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true appBase=webapps
  acceptCount=10 debug=0/
 !-- Replace localhost with what your Apache ServerName is set to
 --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=www.mysite.com debug=0
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
   !-- Because this Realm is here, an instance will be shared globally
 --
   Realm className=org.apache.catalina.realm.MemoryRealm /
 /Engine
   /Service
 
 
 
 This obviously is wrong.  I'm stumped here and I am unable to get it
 working.  Can someone point me along.  I was able to get the Tomcat
 examples running, but I was unable to get my own site up.
 
 Thanks for any help.
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


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




Re: Getting mod_webapp to accomplish the same thing at the mod_jk

2002-05-19 Thread Adrian


 LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection /examples/
   ^^^
You forgot the WebAppDeploy line. Are you loading the module mod_webapp ?
Get the examples running , then move on.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 19, 2002 8:36 AM
Subject: Getting mod_webapp to accomplish the same thing at the mod_jk



 I am having no luch at getting the mod_webapp (tomcat 4.x on apache
 1.3.x)  to accomplish the same tasks as the mod_jk (tomcat 3.x on apache
 1.3.x)

 Here is what I have using the mod_jk (using tomcat 3.x on apache 1.3.x)

 For the http.conf
 VirtualHost *:80
 DocumentRoot /home/web/mysite
 ServerName www.mysite.com
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 CustomLog /usr/local/apache/logs/access_log_dnsme common
 /VirtualHost

 For the server.xml
 Host name=www.dnsmadeeasy.com
 Context path= docBase=/home/web/mysite debug=0/
 /Host




 Here is what I have using mod_webapp (using tomcat 4.x on apache 1.3.x)

 The httpd.conf:
 VirtualHost 192.168.1.12
  ServerName www.mysite.com
  DocumentRoot /home/web/mysite/
  WebAppConnection warpConnection warp localhost:8008
 /VirtualHost


 The server.xml:
   Service name=Tomcat-Apache
 Connector
 className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true appBase=webapps
  acceptCount=10 debug=0/
 !-- Replace localhost with what your Apache ServerName is set to
 --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=www.mysite.com debug=0
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
   !-- Because this Realm is here, an instance will be shared globally
 --
   Realm className=org.apache.catalina.realm.MemoryRealm /
 /Engine
   /Service



 This obviously is wrong.  I'm stumped here and I am unable to get it
 working.  Can someone point me along.  I was able to get the Tomcat
 examples running, but I was unable to get my own site up.

 Thanks for any help.



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





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




Re: Getting mod_webapp to accomplish the same thing at the mod_jk

2002-05-19 Thread tc


I was able to get the examples working using:
 DocumentRoot /usr/local/tomcat/webapps/
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection /examples

But I am not able to get my own site working.  I have multiple sites
running on the same box and I am unable to get it to function to get the
same results as the mod_jk.so


Thanks for any help..


On Sun, 19 May 2002, Adrian wrote:

 
  LoadModule webapp_module libexec/mod_webapp.so
  WebAppConnection warpConnection warp localhost:8008
  WebAppDeploy examples warpConnection /examples/
^^^
 You forgot the WebAppDeploy line. Are you loading the module mod_webapp ?
 Get the examples running , then move on.
 
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, May 19, 2002 8:36 AM
 Subject: Getting mod_webapp to accomplish the same thing at the mod_jk
 
 
 
  I am having no luch at getting the mod_webapp (tomcat 4.x on apache
  1.3.x)  to accomplish the same tasks as the mod_jk (tomcat 3.x on apache
  1.3.x)
 
  Here is what I have using the mod_jk (using tomcat 3.x on apache 1.3.x)
 
  For the http.conf
  VirtualHost *:80
  DocumentRoot /home/web/mysite
  ServerName www.mysite.com
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  CustomLog /usr/local/apache/logs/access_log_dnsme common
  /VirtualHost
 
  For the server.xml
  Host name=www.dnsmadeeasy.com
  Context path= docBase=/home/web/mysite debug=0/
  /Host
 
 
 
 
  Here is what I have using mod_webapp (using tomcat 4.x on apache 1.3.x)
 
  The httpd.conf:
  VirtualHost 192.168.1.12
   ServerName www.mysite.com
   DocumentRoot /home/web/mysite/
   WebAppConnection warpConnection warp localhost:8008
  /VirtualHost
 
 
  The server.xml:
Service name=Tomcat-Apache
  Connector
  className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true appBase=webapps
   acceptCount=10 debug=0/
  !-- Replace localhost with what your Apache ServerName is set to
  --
  Engine className=org.apache.catalina.connector.warp.WarpEngine
   name=www.mysite.com debug=0
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=apache_log. suffix=.txt
timestamp=true/
!-- Because this Realm is here, an instance will be shared globally
  --
Realm className=org.apache.catalina.realm.MemoryRealm /
  /Engine
/Service
 
 
 
  This obviously is wrong.  I'm stumped here and I am unable to get it
  working.  Can someone point me along.  I was able to get the Tomcat
  examples running, but I was unable to get my own site up.
 
  Thanks for any help.
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Where do I put the oracle jdbc driver?

2002-05-19 Thread Tore Skogly

I have problems making Tomcat find the jdbcdriver which i downloaded from 
Oracle.

I have put the driver (classes12.zip) into $JAVA_HOME/lib and renamed it 
classes12.jar.
In /etc/profile I have added:
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/classes12.jar; export CLASSPATH

My system config is:
RedHat 7.3
jdk1.4.0
Oracle 9.0.1
Tomcat 4.0.3

I have tried putting classes12.jar in $TOMCAT_HOME/lib, but with the same 
amount of success...

Anyone who can help me out on this one?

-- 
regards, 
Tore Skogly

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




PLZ HELP Administration TC 4.0.3

2002-05-19 Thread puneet sachar



Listen i got few peoblem in administrating Tomcat
4.0.3 

Can u help me ...plz guide me ..

Here follows the queries

1) Difference b/w Tomcat_HOME and CATALINA_HOME and
CATALINA_BASE ?

1.1)IS CATALINA_BASE is something related to different
context in a single container?


2)what is ANT_HOME ?
2.1) Do we have to install something additional to
tomcat ? (apart jdk.13.x series)

2.2) What are u doing at ur place with Tomact 3.x
series ?

3) where is httpd.conf/tomcat.conf file ?

4) Where to add new context in tomcat?

5) what to write in build.xml and it is needed to
amend that file?
what exactly this build.xml file do?
is it necessary to have web.xml in each context and
what its function?

6) LIKE expample directory in webapps i want to have
my own context ..as i don't want to keep my files in
root directory directly and i want to have different
packages and what i'll do if i want to comunicate b/w
the 2 context. (i tried by making common .jar file and
tell u its not working )





Regards
Puneet Sachar

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: PLZ HELP Administration TC 4.0.3

2002-05-19 Thread Felipe R. Lorenzo VI



Please read $CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%/bin/catalina.bat.

it describe in details their meaning 

frlvi




5/19/02 10:41:50 AM, puneet sachar [EMAIL PROTECTED] wrote:



Listen i got few peoblem in administrating Tomcat
4.0.3 

Can u help me ...plz guide me ..

Here follows the queries

1) Difference b/w Tomcat_HOME and CATALINA_HOME and
CATALINA_BASE ?

1.1)IS CATALINA_BASE is something related to different
context in a single container?


2)what is ANT_HOME ?
2.1) Do we have to install something additional to
tomcat ? (apart jdk.13.x series)

2.2) What are u doing at ur place with Tomact 3.x
series ?

3) where is httpd.conf/tomcat.conf file ?

4) Where to add new context in tomcat?

5) what to write in build.xml and it is needed to
amend that file?
what exactly this build.xml file do?
is it necessary to have web.xml in each context and
what its function?

6) LIKE expample directory in webapps i want to have
my own context ..as i don't want to keep my files in
root directory directly and i want to have different
packages and what i'll do if i want to comunicate b/w
the 2 context. (i tried by making common .jar file and
tell u its not working )





Regards
Puneet Sachar

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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





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




Re: Where do I put the oracle jdbc driver?

2002-05-19 Thread Felipe R. Lorenzo VI


To use it on a single Web Application, try:  WEB-INF/lib


frlvi




5/19/02 10:07:12 AM, Tore Skogly [EMAIL PROTECTED] wrote:

I have problems making Tomcat find the jdbcdriver which i downloaded from 
Oracle.

I have put the driver (classes12.zip) into $JAVA_HOME/lib and renamed it 
classes12.jar.
In /etc/profile I have added:
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/classes12.jar; export CLASSPATH

My system config is:
RedHat 7.3
jdk1.4.0
Oracle 9.0.1
Tomcat 4.0.3

I have tried putting classes12.jar in $TOMCAT_HOME/lib, but with the same 
amount of success...

Anyone who can help me out on this one?

-- 
regards, 
Tore Skogly

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





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




RE: PLZ HELP Administration TC 4.0.3

2002-05-19 Thread Subir Sengupta

ALSO READ THE Tomcat docs before posting questions like this here!!!



-Original Message-
From: Felipe R. Lorenzo VI [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 1:54 AM
To: Tomcat Users List
Subject: Re: PLZ HELP Administration TC 4.0.3




Please read $CATALINA_HOME/bin/catalina.sh or
%CATALINA_HOME%/bin/catalina.bat.

it describe in details their meaning 

frlvi




5/19/02 10:41:50 AM, puneet sachar [EMAIL PROTECTED] wrote:



Listen i got few peoblem in administrating Tomcat
4.0.3 

Can u help me ...plz guide me ..

Here follows the queries

1) Difference b/w Tomcat_HOME and CATALINA_HOME and
CATALINA_BASE ?

1.1)IS CATALINA_BASE is something related to different
context in a single container?


2)what is ANT_HOME ?
2.1) Do we have to install something additional to
tomcat ? (apart jdk.13.x series)

2.2) What are u doing at ur place with Tomact 3.x
series ?

3) where is httpd.conf/tomcat.conf file ?

4) Where to add new context in tomcat?

5) what to write in build.xml and it is needed to
amend that file?
what exactly this build.xml file do?
is it necessary to have web.xml in each context and
what its function?

6) LIKE expample directory in webapps i want to have
my own context ..as i don't want to keep my files in
root directory directly and i want to have different
packages and what i'll do if i want to comunicate b/w
the 2 context. (i tried by making common .jar file and
tell u its not working )





Regards
Puneet Sachar

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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





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

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




Re: Where do I put the oracle jdbc driver?

2002-05-19 Thread Tore Skogly

mandag 20. mai 2002, 10:52, skrev Felipe R. Lorenzo VI:
 To use it on a single Web Application, try:  WEB-INF/lib


 frlvi


The jdbc drivers will be used by several applications.
What location does that require? $TOMCAT_HOME/lib (ie /var/tomcat4/lib)
Do I need to add the jar file to my CLASSPATH in /etc/profile?

-- 
regards,
Tore Skogly

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




RE: Multiple Tomcat Instances on Linux Box : Binding exceptions galore : No ideas left

2002-05-19 Thread Webdesign

does tomcat bind to a particular port which is hardcoded in?

Has anyone run multiple instances of tomcat on one machine or is it assumed
that tomcat is run from client machines and not on a central server? If
so,it seems to be a bit strange.

Appreciate any help.

Bert.


 Hi folks.

 I'm trying to setup tomcat on one of our servers so that multiple
 developers
 can have their own tomcat instance, but keep running into bind exceptions.
 I've been fiddling with it for quite a few days but have come to a stage
 where I can't figure out what more to do.

 ___
 Here is the setup:

 We use redhat linux 7.2, tomcat rpm 4.0.3-1, j2sdk-1.4.0.  Tomcat has been
 installed in /var/tomcat4 on the server. For each developer I have set
 CATALINA_BASE to point to their own tomcat directory (
 /home/www/user/tomcat ) which contains the conf/webapps/temp/logs
 directories. I have modified the server.xml file in each users
 directory to
 use unassigned ports ( eg ports 9620 to 9629 for user1, 9630 to 9639 for
 user2 etc...). There are no other services running using any of
 these ports.

 The server is assigned a whole heap of IP addresses, so IPs
 192.168.1.253-240, for instance, all point to the same physical
 machine. All
 ip addesses resolve to a name. ie 192.168.1.253=user1.domain.cxm,
 192.168.1.252=user2.domain.cxm etc... DNS works fine. These
 names are used
 in each users server.xml file (for engine and hosts). No two server.xml
 files share the same hostname.

 Tomcat is started by calling '/usr/bin/tomcat4 start' This script has been
 modified to run the '/usr/bin/dtomcat4' script as the user making
 the call.

 Now, to start each instance, each user telnets into the server
 and executes
 the command '/usr/bin/tomcat4 start'. The directories tomcat uses are all
 correct (it does use the correct CATALINA_BASE).

 _
 The problem is this:

 Tomcat runs for each user if no other tomcat instance is running (I ensure
 that by running gtop on the server and killing instances run by other
 users). However, if one other instance of tomcat is running (by another
 user), we get the error message below.

 I have tried commenting out all the connectors except for non-SSL
 HTTP/1.1.
 I have turned them all on and generated keystore files for SSL.

 I have replaced the hostnames with the IP addresses.

 Nothing seems to work. I am at a complete loss at what to do. If
 anybody has
 ANY idea where to go from here, I am open to suggestions.

 _
 error message is:

 Catalina.start: LifecycleException:  Error creating server socket
 (java.net.BindException):  java.net.BindException: Address already in use
 LifecycleException:  Error creating server socket
 (java.net.BindException):
 java.net.BindException: Address already in use
   at
 org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo
 nnector.ja
 va:491)
   at
 org.apache.catalina.core.StandardService.initialize(StandardServic
 e.java:454
 )
   at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.
 java:553)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
 pl.java:39
 )
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
 cessorImpl
 .java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
   at java.net.ServerSocket.bind(ServerSocket.java:308)
   at java.net.ServerSocket.bind(ServerSocket.java:266)
   at java.net.ServerSocket.init(ServerSocket.java:182)
   at java.net.ServerSocket.init(ServerSocket.java:138)
   at
 org.apache.catalina.net.DefaultServerSocketFactory.createSocket(De
 faultServe
 rSocketFactory.java:118)
   at
 org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo
 nnector.ja
 va:485)
   at
 org.apache.catalina.core.StandardService.initialize(StandardServic
 e.java:454
 )
   at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.
 java:553)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
 pl.java:39
 )
   at
 

RE: Where do I put the oracle jdbc driver?

2002-05-19 Thread Jack Hermanto

Put it on 
- $TOMCAT_HOME/server/lib if you need the JDBC 
  available only for tomcat server.
- $TOMCAT_HOME/common/lib if you need JDBC available for both
  server and application.

Notes: Tomcat class loader only recognize .jar file,
   so rename the JDBC's extension to .jar.



Jack Hermanto
Java Software Engineer

PT Mitrais
World Class Software Development Center
Jl. Kediri/Ksatria 38 Kuta - Bali
Ph.: +62 361 755025, Fax: +62 361 755024
http://www.mitrais.com
~~~
This transmission is for the intended addresses only and is 
confidential information. If you have received this 
transmission in error, please delete it and notify the sender. 
The contents of this E-mail are the opinion of the writer 
only and are not endorsed by PT Mitrais unless expressly 
stated otherwise.
~~~




 -Original Message-
 From: Tore Skogly [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 20, 2002 5:30 AM
 To: Tomcat Users List
 Subject: Re: Where do I put the oracle jdbc driver?
 
 
 mandag 20. mai 2002, 10:52, skrev Felipe R. Lorenzo VI:
  To use it on a single Web Application, try:  WEB-INF/lib
 
 
  frlvi
 
 
 The jdbc drivers will be used by several applications.
 What location does that require? $TOMCAT_HOME/lib (ie 
 /var/tomcat4/lib)
 Do I need to add the jar file to my CLASSPATH in /etc/profile?
 
 -- 
 regards,
 Tore Skogly
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Should /usr/share/tomcat/server/classes/ be empty?

2002-05-19 Thread John F. Davis

Hello

I'm trying to start tomcat on a debian sparc linux machine and I'm getting a 
failure.  I have traced the program and one of the last failures is when 
tomcat looks for the file:
/usr/share/tomcat4/server/classes/org/apache/catalina/net/DefaultServerSocketFactory.class

Tomcat can not find this file, because the directory 
/usr/share/tomcat4/server/classes is empty.  Is this normal, or the source of 
my failure?  ie., is there something else which is really the reason tomcat 
doesn't run on my box?

JD

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




High Traffic Problem

2002-05-19 Thread Tony White

Hi,

We have a problem with Apache 1.3.24 plus mod_jk 1.2.1 and Tomcat 4.0.3.
They are setup in a load balancing configuration, where multiple Apaches
connect to multiple Tomcats. 

What happens is that sometimes, after the server has been running without
any problems, the network traffic between one Apache and one Tomcat
skyrockets, ie. it jumps from say 250kbits/s up to 8-10mbits/s (note from
kilo to mega!). The incoming external traffic at the same time does not
increase at all. So it is only between the two servers. We can only rest
that by either restarting that instance of Tomcat or Apache. 

Please note that at the same time both Apache and Tomcat instance are still
handling normal external traffic. It looks like a AJP13 connection got stuck
and some sort of extensive checking or handshaking is happening between the
two.

We have no explanation what the traffic can be and what causes this. We
would appreciate any suggestion of what the problem could be or how to
investigate this issue further.

Kind regards,

Tony

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




Session JDBC

2002-05-19 Thread Wiwi Wiwi

Hi all. Can somebody point me some guides on my project. Now, I'm trying to 
do a login page for my client, and I wish to do some session once the login 
is successfully. However, I don't know where should my login page forward 
to? Is it straight away forward to servlet to create a session and validate 
the user within a servlet? Or, use some Java Bean to create a JDBC 
connectivity, and on the other hand, create a servlet to handle session?

By the way, can anyone guides me on what method(servlet or bean) to be used 
to create the validation on the user login and create the session for the 
user?

Thanks.

regards,
wiwi.

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


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




Problem in restarting Tomcat

2002-05-19 Thread Zhongwen Zhu (LMC)

Hi

In linux OS, when Tomcat is shut down, the port which is used by Tomcat is

not released. Hence it is impossible to re-start Tomcat. Do you have any

solution so that the system is forced to release the port when Tomcat is

shut down?

Thank you for your hints.

michael zhu




my application won't start..

2002-05-19 Thread nino stevens bretana

after i started the server, my application is not
running. i already tried to work around with /manager
and add a context... on server.xml. after i
restarted the server, still its not running. what are
the other possibilities why it keeps on happenning?
thanks in advance. nesty

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: Problem in restarting Tomcat

2002-05-19 Thread Chris Campbell


We had this problem the other day. We fixed it by putting 'killall java' in
the restart script before attempting to restart tomcat... of course this is
no good if you want other java processes to keep running though.

ChrisC

 -Original Message-
 From: Zhongwen Zhu (LMC) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 20, 2002 11:55 AM
 To: '[EMAIL PROTECTED]'
 Subject: Problem in restarting Tomcat
 
 
 Hi
 
 In linux OS, when Tomcat is shut down, the port which is used 
 by Tomcat is
 
 not released. Hence it is impossible to re-start Tomcat. Do 
 you have any
 
 solution so that the system is forced to release the port 
 when Tomcat is
 
 shut down?
 
 Thank you for your hints.
 
 michael zhu
 
 

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




Re: Problem in restarting Tomcat

2002-05-19 Thread Oki DZ

On 05/20 09:54 Zhongwen Zhu (LMC) wrote:
 In linux OS, when Tomcat is shut down, the port which is used by Tomcat is
 
 not released. Hence it is impossible to re-start Tomcat. Do you have any

What version of Tomcat do you use?
I use 4.0.3, on a Linux machine. /usr/local/tomcat/bin/catalina.sh start or 
/usr/local/tomcat/bin/catalina.sh stop works fine; ie: another catalina.sh 
start will start it again.

Try to connect to port 8005, using telnet on the localhost, and type 
SHUTDOWN; and see whether Tomcat gets shutdown properly.

Oki



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




tomcat.auth.originalLocation with Tomcat 4.X

2002-05-19 Thread Victor Hadianto

I am using form-based authentication. With Tomcat 3.X when the user type the 
login.jsp page directly I set the tomcat.auth.originalLocation explicitly to 
tell tomcat where to forward.

This doesn't seem to work anymore with Tomcat 4.0, although in my login.jsp 
page (when the user is redirected to the login page, not accessing it 
directly), Tomcat 4.0 does set the tomcat.auth.originalLocation, but it is 
not used.

Anyone has any workaround/solution?

Regards,

-- 
Victor Hadianto

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




Re: placing my source code

2002-05-19 Thread Vishal

Hi SivaPrasad ,
If u'r calling a Bean from a Jsp u have to put that Bean in u'r
Classes Folder . where u put rest of u'r java files . Just put u'r Bean that
is nothing but a  .java file in u'r classes folder underWeb-Inf .

Vishal



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 18, 2002 7:17 PM
Subject: placing my source code


 Hi ,
 Where should I place my standalone java program.I have a bean which is
 called by a jsp .I dont know where to create  a folder to place my bean.
 I am new to tomcat .Please help me.

 thanks  Regards
 SivaPrasad. g
 Orbitech Solutions limited
 [EMAIL PROTECTED]
 091-44-8586231 Extn- 4593




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




[Coyote] Coyote 1.0 Release Candidate 1 available

2002-05-19 Thread Remy Maucherat

Coyote 1.0 RC 1 is now available, and includes:
- HTTP/1.1 protocol handler
- JK 2 protocol handler, with support for the AJP 1.3 protocol
- An adapter for Tomcat 3.3.x
- An adapter for Tomcat 4.x

Changes over Beta 8 include:
- Fixes to the HTTP/1.1 protocol handler initialization order with Tomcat
4.x.
- i18n in HTTP/1.1 components.
- Many JK 2 fixes (AJP response generation fixes, JNI fixes).

Binaries can be downloaded at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1
.0-rc1/

Installation instructions for both 3.3.x and 4.0.x are given on the download
page. The Tomcat 4.1.x milestones already include this new connector, and
use it for HTTP/1.1 and AJP 1.3 support.

Remy


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




RE: Multiple Tomcat Instances on Linux Box : Binding exceptions galore : - fixed. My error

2002-05-19 Thread Webdesign

Not to worry. After a relaxing weekend I found the problem this morning. I'd
just forgotton to set a port right at the bottom of the server.xml files.

What a dofus. My apologies for adding unnessescary traffic to the list

Bert.

 -Original Message-
 From: Webdesign [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 20 May 2002 9:36 a.m.
 To: Tomcat Users List
 Subject: RE: Multiple Tomcat Instances on Linux Box : Binding exceptions
 galore : No ideas left


 does tomcat bind to a particular port which is hardcoded in?

 Has anyone run multiple instances of tomcat on one machine or is
 it assumed
 that tomcat is run from client machines and not on a central server? If
 so,it seems to be a bit strange.

 Appreciate any help.

 Bert.

 
  Hi folks.
 
  I'm trying to setup tomcat on one of our servers so that multiple
  developers
  can have their own tomcat instance, but keep running into bind
 exceptions.
  I've been fiddling with it for quite a few days but have come to a stage
  where I can't figure out what more to do.
 
  ___
  Here is the setup:
 
  We use redhat linux 7.2, tomcat rpm 4.0.3-1, j2sdk-1.4.0.
 Tomcat has been
  installed in /var/tomcat4 on the server. For each developer I have set
  CATALINA_BASE to point to their own tomcat directory (
  /home/www/user/tomcat ) which contains the conf/webapps/temp/logs
  directories. I have modified the server.xml file in each users
  directory to
  use unassigned ports ( eg ports 9620 to 9629 for user1, 9630 to 9639 for
  user2 etc...). There are no other services running using any of
  these ports.
 
  The server is assigned a whole heap of IP addresses, so IPs
  192.168.1.253-240, for instance, all point to the same physical
  machine. All
  ip addesses resolve to a name. ie 192.168.1.253=user1.domain.cxm,
  192.168.1.252=user2.domain.cxm etc... DNS works fine. These
  names are used
  in each users server.xml file (for engine and hosts). No two server.xml
  files share the same hostname.
 
  Tomcat is started by calling '/usr/bin/tomcat4 start' This
 script has been
  modified to run the '/usr/bin/dtomcat4' script as the user making
  the call.
 
  Now, to start each instance, each user telnets into the server
  and executes
  the command '/usr/bin/tomcat4 start'. The directories tomcat
 uses are all
  correct (it does use the correct CATALINA_BASE).
 
  _
  The problem is this:
 
  Tomcat runs for each user if no other tomcat instance is
 running (I ensure
  that by running gtop on the server and killing instances run by other
  users). However, if one other instance of tomcat is running (by another
  user), we get the error message below.
 
  I have tried commenting out all the connectors except for non-SSL
  HTTP/1.1.
  I have turned them all on and generated keystore files for SSL.
 
  I have replaced the hostnames with the IP addresses.
 
  Nothing seems to work. I am at a complete loss at what to do. If
  anybody has
  ANY idea where to go from here, I am open to suggestions.
 
  _
  error message is:
 
  Catalina.start: LifecycleException:  Error creating server socket
  (java.net.BindException):  java.net.BindException: Address
 already in use
  LifecycleException:  Error creating server socket
  (java.net.BindException):
  java.net.BindException: Address already in use
  at
  org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo
  nnector.ja
  va:491)
  at
  org.apache.catalina.core.StandardService.initialize(StandardServic
  e.java:454
  )
  at
  org.apache.catalina.core.StandardServer.initialize(StandardServer.
  java:553)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
  pl.java:39
  )
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
  cessorImpl
  .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
  - Root Cause -
  java.net.BindException: Address already in use
  at java.net.PlainSocketImpl.socketBind(Native Method)
  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
  at java.net.ServerSocket.bind(ServerSocket.java:308)
  at java.net.ServerSocket.bind(ServerSocket.java:266)
  at java.net.ServerSocket.init(ServerSocket.java:182)
  at java.net.ServerSocket.init(ServerSocket.java:138)
  at
  org.apache.catalina.net.DefaultServerSocketFactory.createSocket(De
  faultServe
  rSocketFactory.java:118)
  at
  org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo
  nnector.ja
  va:485)
  at
  org.apache.catalina.core.StandardService.initialize(StandardServic