Re: How to optimize Tomcat SSL

2004-06-14 Thread Alex Burton
We use Apache HTTP on the front for SSL. Makes a world of difference.
Cheers,
Alex.
Jeremy Conner wrote:
Is there any way to optimize Tomcat's SSL implementation?
Can I change the protocol to only use 40 bit encryption?
Can I change the default keep alive time for the SSL session?
Are there any other values for 'protocol' other than TLS?
I am running a web app that is using Axis for web service 
communication to alot of client apps.  These apps communicate to the 
server every 30 seconds.  I would like a way to cache the SSL session 
so that handshaking is not happening every time.

It looks like the typical answer to optimizing SSL is to not use 
Tomcat for SSL and use Apache.  Is that really the recommended solution?

Here is my current config:
   Connector 
className=org.apache.catalina.connector.http.HttpConnector
   port=8443
   minProcessors=5
   maxProcessors=100
   connectionTimeout=6
   enableLookups=true
   acceptCount=10
   debug=0
   scheme=https
   secure=true
  Factory 
className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=true
   protocol=TLS
   keystoreFile=/serverKeys
   keystorePass=password/
/Connector

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


Re: Using Tomcat's HTTP processor and SSL

2004-06-14 Thread Alex Burton
We found the performance of Tomcat running SSL pretty useless in 
production. Is fine for development, but in production we run Apache 
HTTP in the front to off load the SSL number crunching into native code. 
Works a treat. Also gives you the benifit of being able to load balance 
multiple tomcats and to have apache serve up a maintenance page when we 
update code. Seems Apache queues up requests better too.

Cheers,
Alex.
Jim Kennedy wrote:

-Original Message-
From: Jim Kennedy [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 12, 2004 3:37 PM
To: 'Tomcat Users List'
Subject: Using Tomcat's HTTP processor and SSL 

I am considering using Tomcat alone as my HTTP server as well as my servlet
container with SSL.  I know a lot of people use Apache HTTP Server instead
of Tomcat for this and Tomcat is just the servlet container only.
Is there any reason why I should not use just Tomcat alone for this.  I'm
actually using JBOSS with Tomcat, but Tomcat still handles the HTTP
requests.  I have no static pages on my site.
Seems like a hassle to configure a separate server (Apache HTTP) when I
don't have to.
Also, are there any difficulties configuring Tomcat with SSL?  I am using v
4.1.28
Thanks for any help or suggestions.

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

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


[Fwd: Tomcat5.0.25 and Java Mail not seem to work]

2004-06-12 Thread Alex Burton
Hi all,
I am currently porting an application from Tomcat 4.1.x to Tomcat 
5.0.25. Everything is going fine except for JavaMail.
In the application we have setup both database and JavaMail as Global 
Naming Resources. The database global work fine but I am getting the 
following with the Mail resource (see output below)

I have downloaded the 2 mail and activation Jars and added them to the 
tomcat_home/common/lib directory (have also tried in the endorsed 
directory)

   * javamail-1.3.1
   * jaf-1.0.2 (activation)
I have also tried to setup the java mail in the individual contexts with 
the same error is this a bug or am I doing something wrong?!!!

Thanks in advance,
Alex.
From the catalina.out:

13/06/2004 03:37:50 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
13/06/2004 03:37:50 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 969 ms
13/06/2004 03:37:50 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Cannot create resource instance
   at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
   at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:791)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:155)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:160)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:125)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:97)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2291)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   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.start(Bootstrap.java:284)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
13/06/2004 03:37:50 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13/06/2004 03:37:50 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
13/06/2004 03:37:50 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled

Server.xml snippet:

 GlobalNamingResources
... more stuff ...
   Resource name=mail/Session_global auth=Container 
type=javax.mail.Session/
   ResourceParams name=mail/Session_global
   
parameternamemail.smtp.host/namevaluemail.internode.on.net/value/parameter
   /ResourceParams   

   Resource name=jdbc/Database_global auth=Container 
type=javax.sql.DataSource description=pool of JDBC/
   ResourceParams name=jdbc/Database_global
   
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
   
parameternameusername/namevalueour_user/value/parameter
   
parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver/value/parameter
   
parameternameurl/namevaluejdbc:oracle:thin:@192.168.0.6:1521:UTF8/value/parameter
   
parameternamepassword/namevaluepassword/value/parameter
   /ResourceParams

 /GlobalNamingResources
  ... more stuff ...
   Host name=www.developer.ourhost.com debug=1 
appBase=webapps unpackWARs=true
   Context path= docBase=our-app-base debug=1 
privileged=true reloadable=true override=true
   Valve 
className=org.apache.catalina.valves.AccessLogValve directory=logs 
prefix=www.developer.ourhost.com_access_log. suffix=.txt 
pattern=combined /
   Logger 
className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=www.developer.ourhost.com. suffix=.txt timestamp=true /

   ResourceLink name=jdbc/Database 
global=jdbc/Database_global type=javax.sql.DataSource /
   ResourceLink name=mail/Session 
global=mail/Session_global type=javax.mail.Session /
   /Context
   /Host



Re: [Fwd: Tomcat5.0.25 and Java Mail not seem to work]

2004-06-12 Thread Alex Burton
Thanks Jake. Found same post just before and did exactly that. Solved my 
problem.

Jacob Kjome wrote:
Maybe because of this?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29255
Grab 5.0.26beta.
Jake
At 01:45 PM 6/13/2004 +1000, you wrote:
Hi all,
I am currently porting an application from Tomcat 4.1.x to Tomcat 
5.0.25. Everything is going fine except for JavaMail.
In the application we have setup both database and JavaMail as Global 
Naming Resources. The database global work fine but I am getting the 
following with the Mail resource (see output below)

I have downloaded the 2 mail and activation Jars and added them to 
the tomcat_home/common/lib directory (have also tried in the 
endorsed directory)

   * javamail-1.3.1
   * jaf-1.0.2 (activation)
I have also tried to setup the java mail in the individual contexts 
with the same error is this a bug or am I doing something wrong?!!!

Thanks in advance,
Alex.
From the catalina.out:
 

13/06/2004 03:37:50 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
13/06/2004 03:37:50 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 969 ms
13/06/2004 03:37:50 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Cannot create resource instance
   at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132) 

   at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:791)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:155) 

   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:160) 

   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:125) 

   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:97) 

   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2291)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   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.start(Bootstrap.java:284)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
13/06/2004 03:37:50 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13/06/2004 03:37:50 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
13/06/2004 03:37:50 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled

Server.xml snippet:
 

 GlobalNamingResources
... more stuff ...
   Resource name=mail/Session_global auth=Container 
type=javax.mail.Session/
   ResourceParams name=mail/Session_global

parameternamemail.smtp.host/namevaluemail.internode.on.net/value/parameter 

   /ResourceParams
   Resource name=jdbc/Database_global auth=Container 
type=javax.sql.DataSource description=pool of JDBC/
   ResourceParams name=jdbc/Database_global

parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter 

parameternameusername/namevalueour_user/value/parameter
parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver/value/parameter 

parameternameurl/namevaluejdbc:oracle:thin:@192.168.0.6:1521:UTF8/value/parameter 

parameternamepassword/namevaluepassword/value/parameter
   /ResourceParams
 /GlobalNamingResources
  ... more stuff ...
   Host name=www.developer.ourhost.com debug=1 
appBase=webapps unpackWARs=true
   Context path= docBase=our-app-base debug=1 
privileged=true reloadable=true override=true
   Valve 
className=org.apache.catalina.valves.AccessLogValve 
directory=logs prefix=www.developer.ourhost.com_access_log. 
suffix=.txt pattern=combined /
   Logger 
className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=www.developer.ourhost.com. suffix=.txt timestamp=true /

   ResourceLink name=jdbc/Database 
global=jdbc/Database_global 

RE: Nightmare with Tomcat 4.1 and SSL configuration

2003-06-04 Thread Alex Burton
my 2cents would be to use apache on the front to do the SSL...

-Original Message-
From: Cosmin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 7:22 AM
To: [EMAIL PROTECTED]
Subject: Nightmare with Tomcat 4.1 and SSL configuration


Hi there ,
I've just registered to this list in hope that I could find some better
advice here . I am trying to configure a standalone installation of tomcat
to work with SSL . This at first doesn't seem like a bit headache . I have
followed the two similar howtos at the sun website and jakarta website and
have gotten the same result .

The only wierd thing about setting it all up was using keytool . I am
using a FreeBSD 4.8 machine with Tomcat 4.1 and linux-jdk1.4 . At first
the linux-jdk1.4 keytool didn't seem to work ( telling me that /dev/random
has reached the end of file ... i looked and this was a blank file ) . So
I generated they key using the FreeBSD jdk1.4 ( suposedly of alpha quality
) , exported it to a file then imported this file into a new keystore :
/root/.keystore using the linux-jdk1.4/bin/keytool .

I then added the following to my server.xml :

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=false
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
keystoreFile=/root/.keystore
   keystorePass=changeit/
/Connector

Tried restarting . As I was watching with netstat the 8180 port opened for
a split second then closed . Tomcat seems to die the moment i try to start
it with the ssl connector uncommented . The moment i put comments arround
the SSL connector Tomcat starts up and works fine again . . .


Has anybody here , ever encountered this miserable problem ? I've been
stuck on it for 2 days and I don't even get an error message to start from
somewhere . no error logs are... WOOPS :) ... found a very relevant error
:

Exception during startup processing
java.lang.reflect.InvocationTargetException
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:203)
Caused by: java.lang.InternalError: URLSeedGenerator file:/dev/random
reached end of file
at
sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedByte(SeedGenerat
or.java:476)
at
sun.security.provider.SeedGenerator.getSeedBytes(SeedGenerator.java:137)
and it goes on

so that /dev/random file is creating trouble here . Does anybody here have
a clue on how to fix this ?

thanks in advance

Cosmin




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


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



RE: Tomcat Memory leaks!

2003-06-03 Thread Alex Burton
Try the option to fork off the JSP compiles (or even use Jikes to compile).

There seems to be a problem with compiling of JSPs that does not use the
usual memory you can allocate with the -Xmx type flag... maybe one of the
guru's can explain this.. but we had similar problem that whe nwe moved to
jikes forked compiles went away...

Hope that helps.

Cheers,
Alex.

-Original Message-
From: Robert Abbate [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 2:06 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Memory leaks!
Importance: High


Hi. It seems Tomcat (4.1.24) has a major memory leak, and I wanted to bring
it to the developers attention so they can check it out.

I run a shared hosting server (Mandrake 8.2, Apache 1.3) with virtual hosts.
I have 1 Gig of RAM and about 50 virtual hosts and yet I keep getting Out of
Memory errors!

I have made numerous adjustments to memory allocations, yet nothing helps.
Here's an example of what I've done:

CATALINA_OPTS=-Xmx64mb
and
CATALINA_OPTS=-Xmx1028mb

I can furnish my server.xml file upon request or anything else you may need
to fix the problem.

Thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003


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


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



RE: Tomcat Memory leaks!

2003-06-03 Thread Alex Burton
Have a look here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html

In your tomcat_home/conf/web.xml you can modify the following like this
(assuming you have Jikes installed):

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
init-param
param-namefork/param-name
param-valuetrue/param-value
/init-param
init-param
param-namecompiler/param-name
param-valuejikes/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

-Original Message-
From: Robert Abbate [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 2:18 PM
To: Tomcat Users List
Subject: RE: Tomcat Memory leaks!


Hi. I honestly have no idea what you are talking about. Can you explain what
needs to be done for this? You talking about changing `javac`? Thanks

-Original Message-
From: Alex Burton [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 11:12 PM
To: Tomcat Users List
Subject: RE: Tomcat Memory leaks!


Try the option to fork off the JSP compiles (or even use Jikes to compile).

There seems to be a problem with compiling of JSPs that does not use the
usual memory you can allocate with the -Xmx type flag... maybe one of the
guru's can explain this.. but we had similar problem that whe nwe moved to
jikes forked compiles went away...

Hope that helps.

Cheers,
Alex.

-Original Message-
From: Robert Abbate [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 2:06 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Memory leaks!
Importance: High


Hi. It seems Tomcat (4.1.24) has a major memory leak, and I wanted to bring
it to the developers attention so they can check it out.

I run a shared hosting server (Mandrake 8.2, Apache 1.3) with virtual hosts.
I have 1 Gig of RAM and about 50 virtual hosts and yet I keep getting Out of
Memory errors!

I have made numerous adjustments to memory allocations, yet nothing helps.
Here's an example of what I've done:

CATALINA_OPTS=-Xmx64mb
and
CATALINA_OPTS=-Xmx1028mb

I can furnish my server.xml file upon request or anything else you may need
to fix the problem.

Thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003


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


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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003


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


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



RE: IOException: failed to communicate with MySQL

2003-06-03 Thread Alex Burton
a couple of days ago a post went by talking about MySQL default timeout
being set to 8 hrs for connections... betting this might be your problem...

-Original Message-
From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 3 June 2003 5:26 PM
To: [EMAIL PROTECTED]
Subject: IOException: failed to communicate with MySQL



Hello,

My JSP application very often after night, in the morning stops
communicating with MySQL database. I get an exception each morning (the
exception body goes below). The application starts to work again after I
restart it from the Tomcat Manager.

Maybe someone else also had this same problem? My server configuration:
Linux Redhat, Tomcat 4.1.24, Java 1.4.1.

My assumptions where the problem might be: the MySQL connections are
eaten by another application or they are eaten by my application
somewhere inside and never closed. Or maybe during the night when no one
is working with my application it somehow frozes? Can anyone give me a
clue how to start debugging these early morning crashes?

Another clue: Connections to the database are made through an SQLManager
which is a class written by another programmer. The class is a singleton.
Could it be that I have to reset it more often?

The exception body goes here:

java.sql.SQLException: Communication link failure: java.io.IOException
at com.mysql.jdbc.MysqlIO.clearAllReceive(Unknown Source)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(Unknown Source)
at com.mysql.jdbc.MysqlIO.sqlQuery(Unknown Source)
at com.mysql.jdbc.Connection.execSQL(Unknown Source)
at com.mysql.jdbc.Connection.execSQL(Unknown Source)
at com.mysql.jdbc.Statement.executeQuery(Unknown Source)
at com.mysql.jdbc.jdbc2.Statement.executeQuery(Unknown Source)
at
lt.ktu.distance.sql.mysql.MySQLGUILanguageManagerHelper.loadGUILanguages(MyS
QLGUILanguageManagerHelper.java:48)
at
lt.ktu.distance.sql.GUILanguageManager.loadGUILanguages(GUILanguageManager.j
ava:55)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:155)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at

RE: Jaybird With Tomcat Part II

2003-05-29 Thread Alex Burton
Make sure the database resource is in the context you are accessing. Also
make sure any classes JAR has .jar extension... .zip extenstion will not
work.

e.g.

Accessing by http://www.mydomain.com/mydomain

Host name=www.mydomain.com debug=1 appBase=virtual_hosts
unpackWARs=true
Context path=/mydomain docBase=mydomain debug=0 reloadable=false
override=true
Resource name=jdbc/myConnection auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/myConnection
parameternameuser/namevalueadmin/value/parameter

parameternamepassword/namevaluepassword/value/parameter

parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDrive
r/value/parameter
parameter
namedriverName/name
valuejdbc:oracle:thin:@127.0.0.1:1521:ORCL/value
/parameter
parameter
namemaxActive/name
value32/value
/parameter
parameter
namemaxIdle/name
value4/value
/parameter
/ResourceParams
/Context
/Host

-Original Message-
From: Rob Casteen [mailto:[EMAIL PROTECTED]
Sent: Thursday, 29 May 2003 8:17 AM
To: Tomcat Users List
Subject: Re: Jaybird With Tomcat Part II


Of course, and I wouldn't be asking the question without tons of
research on my own. I will post the errors below for what I was
receiving previously, yet now when  I copy the libs into common/lib, the
webapps are inaccessible.

Here is my previous email:

Hey guys, I am hoping I could get some help with this issue. The
research I have done online reveals this error with several databases
although I have yet to find a actionable answer nor anything firebird
specific. I am attempting to connect Firebird to Tomcat based on the
MYSQL example in the Tomcat Docs and through the datasource setup in the
administration console. I have attempted to include all relevant data to
show the activity on my server,  including the log, the example code,
and the relevant server.xml code.

I appreciate all help that you can offer.
Rob

**Log

java.sql.SQLException: Cannot load JDBC driver class 'null'
   at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:529)
   at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)
   at foo.DBTest.init(DBTest.java:23)
   at org.apache.jsp.test_jsp._jspService(test_jsp.java:49)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

RE: Multiple instances

2003-05-29 Thread Alex Burton
Why do you want to run separate instances for each application? Why not just
setup more host inside one instance?

-Original Message-
From: Rohit Peyyeti [mailto:[EMAIL PROTECTED]
Sent: Thursday, 29 May 2003 8:41 PM
To: Tomcat Users List
Subject: Multiple instances

Hello Gurus:

I have received no response to my previous post and hence I'm rephrasing
my question and posting it again ;)

I need to setup multiple tomcat 4.1.24 instances (for each of my web
applications). I did read RUNNING.txt shipped with tomcat distribution
-- but was not very clear. Can I give multiple entries to CATALINA_BASE
environment? What if I want to run 5 to 6 different instances? How exactly
should it be configured?

Is there any how-to or document available for setting up tomcat 4's multiple
instances?

Thanks!

Rohit

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


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