Performance gain using precompiled JSP's

2004-03-17 Thread Anand Ravi
Hi List!

I would like to know if there are any metrics available on the performance
gain achieved by using precompiled jsp's and custom tag pooling.

Thanks and Regards,
Anand Ravi




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



Re: JDBC problems with MySQL

2004-03-17 Thread Adam Hardy
Steve, like Wendell said, you've got to put the context.xml file under 
that directory. And rename it to the context name.

It will only work from the META-INF directory when you are deploying a 
.war file.

On 03/16/2004 10:23 PM Steve Gums wrote:
Can I ask a quick question before I do that.  I had my context.xml file
separate, because I like that better, but it fails.  When I put that context
into the server.xml it worked.  I am trying it again right now to make sure
of this.  Am I mistaken to think the context.xml file goes into
webapps/AppName/META-INF/context.xml
?
I will post these files as requested in just a sec.

Thanks for your help.
Steve
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 2:07 PM
To: Tomcat Users List
Subject: Re: JDBC problems with MySQL

Steve,
post the Resource  ResourceParams tags from your context for the 
webapp. State whether it's in a context.xml file, server.xml or whatever.

Perhaps we can spot something.

Adam

ps this email has got some weird font - my mail reader is up the creek 
at the mo'. sorry

On 03/16/2004 09:47 PM Steve Gums wrote:

Just an update.
I included a file, that works great on my webapp that is already running
on

an old system, and you can see the change I made, which allows the app to
run.  Not sure if this helps anyone.
package com.voast.vkey.utils;

import java.io.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public class DBUtils {

  public static Connection getConnection () throws Exception {

 Connection con = null;
 /* Trying to figure this error out. --Temp comment--
 try {
Context ctx = new InitialContext();
if ( ctx == null ) {
   throw new Exception (No Context);
}
DataSource ds;
ds = (DataSource)ctx.lookup(java:comp/env/jdbc/VKEYDB);
if ( ds != null ) {
   con = ds.getConnection ();
}//end ds != null
 }//try
 catch ( Exception e ) {
LoggerUtil.globalLog (ERROR,exception occured:  + 
  e.toString() );
throw (e);
 }//catch
 */
 try {
Class.forName(com.mysql.jdbc.Driver).newInstance();
con = DriverManager.getConnection(jdbc:mysql://localhost/vkey,
USER,PASSWORD);
 }//try
 catch (Exception e) {
LoggerUtil.globalLog (DEBUG,exception occured:  + 
  e.toString() );
throw (e);
 }//catch

 return con;

  }//GetConnection

}//DBUtils

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 10:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC problems with MySQL

Users

   I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't
find

it.



My System:

   Solaris 9

   Tomcat 5.0.19

   MySQL 4.0.18

   Connector J 3.0.11



I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how

to.html



and my result is this.

Results

Foo Not Connected
Bar -1


I have tried everything I can think of.  I verified the database and the
user/password combo.  Works good.  I even created a simple Java app that
connects and performs queries, which worked.  That would indicate
everything

is cool with the Connector J.  I have verified that the jdbc/TestDB is in
the context and it is.  As best I can tell ds (DataSource) is coming back
not null, but the call to getConnection is failing.  I created a little
more

verbose web app and get the following message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver


This has to be something simple, because this works fine on my old
machine.

I know I am forgetting some small step that I did the first time and
failed

to do again.  Trust me I have checked the configs about a million times,
and

can't find any differences.   Any help would be appreciated.



Sorry to be so vague here, but this is really simple. I don't know what
else

to include for info.



Steve Gums

[EMAIL PROTECTED]





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






--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to setup VM opt when running Tomcat as windows service?

2004-03-17 Thread Gordon Luk
Hi All,

 I got a problem on setup Tomcat 5.0.19 on my windows 2000
enterprise server. I have installed java 1.4.x on it. I want change the
java vm option to instead the default setting. for example with opt.
-server -Xms64m -Xmx128m.. i already try few methods as following :

- stop service, run Configure Tomcat gui prog., and add above extra
opt. to Java VM's Java Option and then apply/ok. Then start the service.

- stop service. run regedit modify the tomcat's entries...
HKEY_LOCAL_MACHINE - SYSTEM - Services - Tomcat5 - ImagePath ..
..tomcat.exe.. modify the value... then start the service.

Above also cann't change the default 64M max. mem when i check it from
/mananger/status page...

- stop service. modify tomcat/bin/service.bat ... and then service.bat
remove then install, start the service., it cann't start the service..

   Any one could help me. THX.

Gordon



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



tomcat certificate

2004-03-17 Thread secam secam
Hi all,

I've got ssl with tomcat, and a self signed
certificate

When i try to access my webapp via port 8443 (ssl)
i've got a security alert due to this reason:

the security certificate was send by a compagny i've
not trusted.

How can i solve this problem in order not to have the
security alert?

Regards,
Secam






Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! 
Messenger sur http://fr.messenger.yahoo.com

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



Re: How to setup VM opt when running Tomcat as windows service?

2004-03-17 Thread Gordon Luk
Finally, i got the solution by google, answer also come from
tomcat-user.

Take a look here when you got same problem.

http://mdsh.com/notes/tomcat5OnWindowsNT.jsp


On Wed, 2004-03-17 at 16:41, Gordon Luk wrote:
 Hi All,
 
  I got a problem on setup Tomcat 5.0.19 on my windows 2000
 enterprise server. I have installed java 1.4.x on it. I want change the
 java vm option to instead the default setting. for example with opt.
 -server -Xms64m -Xmx128m.. i already try few methods as following :
 
 - stop service, run Configure Tomcat gui prog., and add above extra
 opt. to Java VM's Java Option and then apply/ok. Then start the service.
 
 - stop service. run regedit modify the tomcat's entries...
 HKEY_LOCAL_MACHINE - SYSTEM - Services - Tomcat5 - ImagePath ..
 ..tomcat.exe.. modify the value... then start the service.
 
 Above also cann't change the default 64M max. mem when i check it from
 /mananger/status page...
 
 - stop service. modify tomcat/bin/service.bat ... and then service.bat
 remove then install, start the service., it cann't start the service..
 
Any one could help me. THX.
 
 Gordon
 
 
 
 -
 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]



[OT] Filter version of mod_security

2004-03-17 Thread Ralph Einfeldt
I just stumbled across the following link:

http://www.modsecurity.org/products/modsecurity/java/index.html

If somebody thinks it's interesting [s]he can keep it :), 
otherwise forget it :{.

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



Thank you for your recent email.

2004-03-17 Thread nozzolio





Thank you for your recent email.   Your comments and suggestions are very
important to me and an integral part of the legislative process. Please be
assured I am in the process of reviewing your correspondence.  If you have
not already done so, please forward your name and address.  This allows me
to stay in touch and keep you up to date on the important issues that
affect you as a constituent.

With best wishes.

Senator Mike Nozzolio.


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



Native libraries configuration under tomcat.

2004-03-17 Thread Nick Holmes
Hi,

I am trying to get the JMagick library working under Tomcat to do some image
translation following an upload.  

My platform is Apache 2, Mod_jk2 and Tomcat 4.1.27 I have several .jar
extensions installed, including postgres, so basic external libraries do
work.

JMagick comes as a semi-stub library .jar archive and a native library
libJMagick.so - under the command line my code works (following ldconfig),
but I get errors in the catalina.out complaining about being unable to find
the library (details at the end of this message). the key clause being:

Caused by: java.lang.RuntimeException: Can't load MagickLoader (class not
found)
at magick.Magick.clinit(Magick.java:25)

Essentially, having trawled through the various documentation, I haven't
worked out how to direct Tomcat to find/use the .so library, so any pointers
to how to do this would be great.

Any help on this would be very much appreciated.

Nick


the catalina.out says 

java.lang.ExceptionInInitializerError
at org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
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:2416)
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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:263)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.RuntimeException: Can't load MagickLoader (class not
found)
at magick.Magick.clinit(Magick.java:25)
... 38 more
java.lang.NoClassDefFoundError
at org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
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

Re: Why Tomcat (4.1.29) cannot find third party package's classes

2004-03-17 Thread Ari Paasonen
Sorry, forgot to mention it on this post. The Castor JAR file is in my 
webapplication's WEB-INF/lib directory.


From: Christopher Schultz [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Why Tomcat (4.1.29) cannot find third party package's classes
Date: Tue, 16 Mar 2004 11:58:52 -0500
Ari,

is there any particular reason why all classes in third party jar-package 
(Exolab Castor in my case) can

not be imported in my JSP pages on new Tomcat (4.1.29 and Java build 
1.4.2_03-b02)? It works fine with

the old version (Tomcat 4.0.1 and Java build 1.3.1_02-b02).
Where is your Castor JAR file located?

-chris
 signature.asc 
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


Re: JProfiler... help!

2004-03-17 Thread tomcatuser
check out http://sourceforge.net/projects/eclipsecolorer/ as well.  There are detailed 
instructions for profiling tomcat.



   ---Original Message---
From: bort [EMAIL PROTECTED]
Subject: JProfiler... help!
Sent: 17 Mar 2004 00:35:25
   
 Hi all
 
 I've installed a demo version of JProfiler ver 3.0 to get some memory
 information on my web app in Tomcat.  I'm using Eclipse 2.1 as my IDE and
 (during development) run Tomcat from within it.
 
 I've gone ahead an integrated JProfiler with my IDE, and got a new little
 button in Eclipse.  When I click on it to Invoke JProfiler, I get a window
 that allows to be select 'Tomcat4.1.x' as a launch configuration.  But then,
 nothing happens.
 
 Sorry if this all sounds very simple, but I can't seem to get JProfiler to
 do anything for me!  I've tried creating a new session, and pointed it to
 localhost on port 8080, but it doesn't connect.
 
 Can anyone help and/or provide some guidance?
 bort
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   ---Original Message---




Timeout or log out for Realm authentication

2004-03-17 Thread Joan Jesús Pujol Espinar
Hello,

Is it possible to set a timeout or manually logout a user that is 
authenticated with a realm?
Because the user is always 'logged' until the navigator is closed.

Cheers,

--
***
Joan Jesús Pujol Espinar
Tècnic de Sistemes
Universitat de Girona
Dpt. Informàtica i Matemàtica Aplicada
Campus Montilivi
17003 - Girona (Spain)
e-mail: [EMAIL PROTECTED]
+34 972 418418 Fax: +34 972 418792
***


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


Re: Thank you for your recent email.

2004-03-17 Thread Vi
What a hell! Why don't you all senators just die and leave us usual 
tomcat users alone?

[EMAIL PROTECTED] wrote:



Thank you for your recent email.   Your comments and suggestions are very
important to me and an integral part of the legislative process. Please be
assured I am in the process of reviewing your correspondence.  If you have
not already done so, please forward your name and address.  This allows me
to stay in touch and keep you up to date on the important issues that
affect you as a constituent.
With best wishes.

Senator Mike Nozzolio.

-
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: Thank you for your recent email.

2004-03-17 Thread Adam Buglass
I think it's cool!

I live in the cold and wet north-east of England and my comments and
suggestions are very important ... and an integral part of the
legislative process of New York!!

I love America!
:-)

On Wed, 2004-03-17 at 11:32, Vi wrote:
 What a hell! Why don't you all senators just die and leave us usual 
 tomcat users alone?
 
 [EMAIL PROTECTED] wrote:
 
 
 
 
 Thank you for your recent email.   Your comments and suggestions are very
 important to me and an integral part of the legislative process. Please be
 assured I am in the process of reviewing your correspondence.  If you have
 not already done so, please forward your name and address.  This allows me
 to stay in touch and keep you up to date on the important issues that
 affect you as a constituent.
 
 With best wishes.
 
 Senator Mike Nozzolio.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Thank you for your recent email.

2004-03-17 Thread Yiannis Mavroukakis
ROFLMAO! What a goverment system that would be...

-Original Message-
From: Adam Buglass [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 11:42
To: Tomcat Users List
Subject: Re: Thank you for your recent email.


I think it's cool!

I live in the cold and wet north-east of England and my comments and
suggestions are very important ... and an integral part of the
legislative process of New York!!

I love America!
:-)

On Wed, 2004-03-17 at 11:32, Vi wrote:
 What a hell! Why don't you all senators just die and leave us usual 
 tomcat users alone?
 
 [EMAIL PROTECTED] wrote:
 
 
 
 
 Thank you for your recent email.   Your comments and suggestions are very
 important to me and an integral part of the legislative process. Please
be
 assured I am in the process of reviewing your correspondence.  If you
have
 not already done so, please forward your name and address.  This allows
me
 to stay in touch and keep you up to date on the important issues that
 affect you as a constituent.
 
 With best wishes.
 
 Senator Mike Nozzolio.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Very strange problem with logging

2004-03-17 Thread Andi Reinbrech
Hi, this may sound impossible, but I just can't figure out *why* it's
happening:
 
I use AXIS to host a web service on Tomcat 5.0.18.  I run tomcat as a
service on a win2ks box.  Now, when -StdOutputFile is enabled to a valid
filename in ./logs, the app works fine (oviously I wanted to use the stdout
to debug, but now it's in production and as the stdout is never rotated it
will grow indefinitely?), but as soon as I disable logging the app fails
after the first request (which works fine).
 
Does this make sense to anyone?  I have just tried accessing AXIS, and
everything seems fine, except that the app it's supposed to call is hanging.
 
Thanks in advance,
Andi

**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the 
individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the 
sender immediately by email, facsimile 
or telephone and destroy the original message.
**


[NON DELIVERY NOTIFICATION]

2004-03-17 Thread noreply
This message was verified by the filtering system of our mail server.

Original message was replaced by this one for the following reason:
*** A suspicious file (executable code) was found in the message !

Original message had the following attached files:
   (X-FILE ??? ) : your_letter.pif
TYPE : application/octet-stream

   SUSPECT FILES : 1

Original message was sent by
   From : [EMAIL PROTECTED]

If you did not send the original message, it is likely that it came to
us with a forged header, and you can safely ignore this warning.

If you think this is an error and the message should not be rejected by
the filtering system, or if you have any questions, you can contact us:
  [EMAIL PROTECTED]

Sincerely,
  [EMAIL PROTECTED]

 j-chkmail - (c) Ecole des Mines de Paris 2002


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



RE: JProfiler... help!

2004-03-17 Thread Edson Alves Pereira
I´ll try to explain, when i profile my web-application i just use
JProfiler and tomcat ( ´cause my machine isn´t that good ). You have two
possibilities create a new process or bind JProfiler to a already running (
usually i bind JProfiler to tomcat ), then you must fill Session window to
inform JProfiler how to start your process, its very simple ( i do recomend
to test first with very small programs to get some ideas and learn how to
manage JProfiler ), after this step press start button. Try to profile a
HelloWorld made by yourself, its a good exercise.

 --
 De:   bort[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 16 de março de 2004 21:35
 Para: [EMAIL PROTECTED]
 Assunto:  JProfiler... help!
 
 Hi all
 
 I've installed a demo version of JProfiler ver 3.0 to get some memory
 information on my web app in Tomcat.  I'm using Eclipse 2.1 as my IDE and
 (during development) run Tomcat from within it.
 
 I've gone ahead an integrated JProfiler with my IDE, and got a new little
 button in Eclipse.  When I click on it to Invoke JProfiler, I get a window
 that allows to be select 'Tomcat4.1.x' as a launch configuration.  But
 then,
 nothing happens.
 
 Sorry if this all sounds very simple, but I can't seem to get JProfiler to
 do anything for me!  I've tried creating a new session, and pointed it to
 localhost on port 8080, but it doesn't connect.
 
 Can anyone help and/or provide some guidance?
 bort
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Some progress but still not working.

1. Using my connection parameters I can open a connection to the database in
the standard JDBC way.

2. I have to moved the DataSource configuration from GlobalNamingResources
to the apps Context area of server.xml. This seems to have allowed the JNDI
look-up to work. I now get a DataSource instance with sensible contents.

3. But when I ask for a connection it throws
Cannot get a connection, pool exhausted
   with a nested exception
Could not create a validated object

Beginning to think it's not me but the tomcat server. I'm now moved to
4.1.24 to 4.1.30 but no improvement :(


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



RE: JProfiler... help!

2004-03-17 Thread Edson Alves Pereira
Try this also, maybe it helps more.

http://download.ej-technologies.net/tutorials/jprofiler/tutorial_1_viewlet_s
wf.html

 --
 De:   bort[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  terça-feira, 16 de março de 2004 21:35
 Para: [EMAIL PROTECTED]
 Assunto:  JProfiler... help!
 
 Hi all
 
 I've installed a demo version of JProfiler ver 3.0 to get some memory
 information on my web app in Tomcat.  I'm using Eclipse 2.1 as my IDE and
 (during development) run Tomcat from within it.
 
 I've gone ahead an integrated JProfiler with my IDE, and got a new little
 button in Eclipse.  When I click on it to Invoke JProfiler, I get a window
 that allows to be select 'Tomcat4.1.x' as a launch configuration.  But
 then,
 nothing happens.
 
 Sorry if this all sounds very simple, but I can't seem to get JProfiler to
 do anything for me!  I've tried creating a new session, and pointed it to
 localhost on port 8080, but it doesn't connect.
 
 Can anyone help and/or provide some guidance?
 bort
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: tomcat certificate

2004-03-17 Thread Andi Reinbrech
View the certificate when you get that prompt and then Trust the site.  This
is a once off

-Original Message-
From: secam secam [mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 11:09 AM
To: [EMAIL PROTECTED]
Subject: tomcat certificate

Hi all,

I've got ssl with tomcat, and a self signed
certificate

When i try to access my webapp via port 8443 (ssl)
i've got a security alert due to this reason:

the security certificate was send by a compagny i've
not trusted.

How can i solve this problem in order not to have the
security alert?

Regards,
Secam






Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez
Yahoo! Messenger sur http://fr.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the 
individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the 
sender immediately by email, facsimile 
or telephone and destroy the original message.
**

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



Tomcat Loadbalancing

2004-03-17 Thread armalai
Hi.,
  I'm trying to do Loadbalancing in tomcat.
My environement details are, 
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector

Right now i'm stuck up with apache to tomcat
communication thru ajp.

my questions are below..
1.How do i create multiple instance of tomcat?
  using CATALINA_BASE i could able to create one
instance with new server.xml from different location. 
  but not able to retrieve the jsp pages from default
tomcat instances webapp.
  i want to create more than two instances.
2.How do i do the loadbalancing  clustering?
   give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?

Please advise me to get thru this task..
It will be great you can provide me document for
this.

Thanks.,
MALAI

RE: Slightly OT: NoBodyResponse

2004-03-17 Thread Shapira, Yoav

Hi,

While I was reading some mail archives today, I stumbles stumbled over
a few postings discribing problems with webapplications referring to a
class called javax.servlet.http.NoBodyResponse and sometimes
javax.servlet.http.NoBodyOutputStream. I was curious, so I browsed
through the javadocs. The odd this is, this class in not mentioned in
any of the recent versions of the servlet api. My second guess was
that it must be a tomcat specific extension (as many postings
mentioned running tomcat), but it's not part of tomcat's javadocs,
either. Perhaps any of you guys could enighten me...

These are private support classes of the Servlet API.  They're still
present, but they're file-private inner classes and thus no in the
JavaDoc (intentionally).  The class name you're quoting for them is
wrong, by the way: it's javax.servlet.http.HttpServlet$NoBodyResponse
and javax.servlet.http.HttpServlet$NoBodyOutputStream.  You can see them
both at
http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/src/share/
javax/servlet/http/HttpServlet.java?rev=1.6view=markup.

Your second guess is also wrong, and I wouldn't normally mention this
but it's significant: there's nothing tomcat-specific (or specific to
any server) in the javax.servlet classes.  There can't be, there won't
be, as it's a J2EE standard API.  We can't even accidentally change it,
because although those classes are hosted on our CVS server, we don't
have commit privileges to them.

Yoav Shapira



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


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



RE: Very strange problem with logging

2004-03-17 Thread Shapira, Yoav

Hi,
Maybe some critical code is after a logging statement that's either
hanging or crashing, so the critical code never gets executed.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Andi Reinbrech [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 7:38 AM
To: Tomcat-User ([EMAIL PROTECTED])
Subject: Very strange problem with logging

Hi, this may sound impossible, but I just can't figure out *why* it's
happening:

I use AXIS to host a web service on Tomcat 5.0.18.  I run tomcat as a
service on a win2ks box.  Now, when -StdOutputFile is enabled to a
valid
filename in ./logs, the app works fine (oviously I wanted to use the
stdout
to debug, but now it's in production and as the stdout is never rotated
it
will grow indefinitely?), but as soon as I disable logging the app
fails
after the first request (which works fine).

Does this make sense to anyone?  I have just tried accessing AXIS, and
everything seems fine, except that the app it's supposed to call is
hanging.

Thanks in advance,
Andi

***

***
Everything in this e-mail and attachments relating to the official
business
of MultiChoice Africa is proprietary to
the company. Any view or opinion expressed in this message may be the
view
of the individual and should not automatically
be ascribed to the company.  If you are not the intended recipient, you
may
not peruse, use, disseminate, distribute or
copy this message. If you have received this message in error, please
notify the sender immediately by email, facsimile
or telephone and destroy the original message.
***

***



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


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



Re: HTTPS support for tomcat using openSSL with Client Authentication

2004-03-17 Thread Anbu
Hello Saravanan,
 
Have you got the answer you wanted ?
 
Anbu

[EMAIL PROTECTED] wrote:

Hi All,

I wanted to support SSL with Client Authentication over Tomcat 4.18.



I followed the steps mentioned in the link below, but I couldn't succeed
in getting the client authentication to work,however I was able to get
the https working with clientAuth=false in tomcat's configuration file
server.xml file.



http://marc.theaimsgroup.com/?l=tomcat-user

m=106293430225790w=2



I have attached the screenshot of the security message I see on the
client which doesn't list any certificate to choose from, though I have
imported the client certificate.pkcs12 (step 16) and the CA certificate
on the client system.



Please let me know If I am doing something wrong?



Thanks  Regards

csaravanan



Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

RE: org.apache.tomcat.util.net.PoolTcpEndpoint for tomcat 3.3.1

2004-03-17 Thread Larry Isaacs
You can find it in the source .tar.gz or .zip here:

http://archive.apache.org/dist/jakarta/tomcat-3/archive/v3.3.1/src/

or if you want just this one file, try:

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat/src/share/org/apache/tomcat/util/net/Attic/PoolTcpEndpoint.java?only_with_tag=tomcat_331_final

Cheers,
Larry


 -Original Message-
 From: Akash Jauhar [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 16, 2004 5:59 PM
 To: Tomcat Users List
 Subject: org.apache.tomcat.util.net.PoolTcpEndpoint for tomcat 3.3.1
 
 
 Can someone please mail the source code for 
 org.apache.tomcat.util.net.PoolTcpEndpoint for tomcat 3.3.1
 I just downloaded the source and cannot find this file.
 
 Would appreciate if someone can mail this
 
 Thanks
 Akash
 
 -Original Message-
 From: Wendell Holmes [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 16, 2004 4:01 PM
 To: 'Tomcat Users List'
 Subject: RE: JDBC problems with MySQL
 
 
 I think with Tomcat 5.0.x, you need to put the context.xml file under
 /conf/Catalina/localhost as web-app.xml
 
 -Original Message-
 From: Steve Gums [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 2:38 PM
 To: 'Tomcat Users List'
 Subject: RE: JDBC problems with MySQL
 
 
 The .cap file can be open with notepad or whatever.
 
 I have it in the META-INF directory.  If I copy the contents of this
 into
 the server.xml file it starts to work.
 
 Gotta be something simple that I am doing wrong here.
 
 Steve
 
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 16, 2004 2:07 PM
 To: Tomcat Users List
 Subject: Re: JDBC problems with MySQL
 
 Steve,
 post the Resource  ResourceParams tags from your context for the 
 webapp. State whether it's in a context.xml file, server.xml or
 whatever.
 
 Perhaps we can spot something.
 
 Adam
 
 ps this email has got some weird font - my mail reader is up 
 the creek 
 at the mo'. sorry
 
 On 03/16/2004 09:47 PM Steve Gums wrote:
  Just an update.
  I included a file, that works great on my webapp that is already
 running
 on
  an old system, and you can see the change I made, which 
 allows the app
 to
  run.  Not sure if this helps anyone.
  
  package com.voast.vkey.utils;
  
  import java.io.*;
  import java.sql.*;
  import javax.sql.*;
  import javax.naming.*;
  
  public class DBUtils {
  
 public static Connection getConnection () throws Exception {
  
Connection con = null;
/* Trying to figure this error out. --Temp comment--
try {
   Context ctx = new InitialContext();
   if ( ctx == null ) {
  throw new Exception (No Context);
   }
   DataSource ds;
   ds = (DataSource)ctx.lookup(java:comp/env/jdbc/VKEYDB);
   if ( ds != null ) {
  con = ds.getConnection ();
   }//end ds != null
}//try
catch ( Exception e ) {
   LoggerUtil.globalLog (ERROR,exception occured:  + 
 e.toString() );
   throw (e);
}//catch
*/
try {
   Class.forName(com.mysql.jdbc.Driver).newInstance();
   con =
 DriverManager.getConnection(jdbc:mysql://localhost/vkey,
   USER,PASSWORD);
}//try
catch (Exception e) {
   LoggerUtil.globalLog (DEBUG,exception occured:  + 
 e.toString() );
   throw (e);
}//catch
  
return con;
  
 }//GetConnection
  
  }//DBUtils
  
  -Original Message-
  From: Steve Gums [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, March 16, 2004 10:57 AM
  To: [EMAIL PROTECTED]
  Subject: JDBC problems with MySQL
  
  Users
  
  I know there has been a bazillion messages 
 about this.  I
  searched the archives and couldn't find anything to solve 
 my extremely
  annoying issue.  It has to be something really simple but I 
 just can't
 find
  it.
  
   
  
  My System:
  
  Solaris 9
  
  Tomcat 5.0.19
  
  MySQL 4.0.18
  
  Connector J 3.0.11
  
   
  
  I have the connector J jar in the /usr/local/tomcat/common/lib dir.
  
  I have basically copied the HOW-TO located at.
  
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasourc
 e-examples
 -how
  to.html
  
   
  
  and my result is this.
  
  
  Results
  
  
  Foo Not Connected
  Bar -1
  
   
  
  I have tried everything I can think of.  I verified the database and
 the
  user/password combo.  Works good.  I even created a simple Java app
 that
  connects and performs queries, which worked.  That would indicate
 everything
  is cool with the Connector J.  I have verified that the 
 jdbc/TestDB is
 in
  the context and it is.  As best I can tell ds (DataSource) is coming
 back
  not null, but the call to getConnection is failing.  I created a
 little
 more
  verbose web app and get the following message.
  
  

RE: Stubborn simple servlet

2004-03-17 Thread Shapira, Yoav

Hi,

Read in some web doc that the plan is to write a tool
tool for _generating_ all these config files rather than
having to tweak them by hand.  A good config tool would
certainly have helped avoid a lot of head bashing. If
anyone on this list knows of someone who is contemplating
writing a tomcat config tool, please let me know.  I
know some requirements methodology approaches that can
be applied when scoping such tools to help make them more
user friendly and more maintainable.  Be happy to teach

You mean like
http://www.icewalkers.com/Linux/Software/517150/webxml.html? ;)

Or perhaps something to go on top of XDoclet,
http://xdoclet.sourceforge.net/ant/xdoclet/modules/web/WebXmlSubTask.htm
l
http://xdoclet.sourceforge.net/tags/web-tags.html ? ;)

Yoav Shapira



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


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



Re: Port-per-webapp?

2004-03-17 Thread Tony Nakamura
Hi Justin,

Be sure, of course, that
 the files you're editing are indeed the ones being read -- for example,
 make sure that by removing /examples from uriworker.properties, IIS no
 longer serves the Tomcat examples.

Great point... I removed the /examples from uriworkermap.properties, and
it's
still serving the http://localhost/examples!!!

I checked my registry settings, and it's pointing to the exact location to
the
uriworkermap.properties:
Registry for worker_mount_file:
c:\\jakarta_tomcat\\appserver\\conf\uriworkermap.properties
file location:  C:\jakarta_tomcat\appserver\conf\uriworkermap.properties

  How could this be..?

Just in case, I am pasting the worker.properties, uriworkermap.properties,
and context from the server.xml.  Thank you!

===uriworker.properties=
# *** Begin uriworkermap.properties ***
# Mount the Servlet context to the ajp13 worker
/servlet/*=ajp13

# This webapp works
/Analyzer6_Server/*=ajp13

#This works too/examples/*=ajp13

#This does NOT work
/examples2/*=ajp13
/examples2/*.jsp=ajp13
==

worker.properties==
#  Begin worker.properties **
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) worker perform weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

#
# worker.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
worker.tomcat_home=c:\jakarta_tomcat\\appserver

#
# worker.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
worker.java_home=c:\jakarta_tomcat\\jdk

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worker list --
#-
#
# The worker that your plugins should create and work with
worker.list=ajp13

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=w2k3dfvm2

#  End worker.properties **
==

- Original Message - 
From: Justin Ruthenbeck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 5:12 PM
Subject: Re: Port-per-webapp?



 Tony,

 Can you include your full uriworker.properties and worker.properties
 files (inline in the email) for us to look at?  Be sure, of course, that
 the files you're editing are indeed the ones being read -- for example,
 make sure that by removing /examples from uriworker.properties, IIS no
 longer serves the Tomcat examples.

 If there's something wrong with your config files, we should catch it
 pretty easily.

 justin


 At 01:20 PM 3/16/2004, you wrote:
 Hi Justin,
 
 Thank you very much for your input (and it's nice to know that my email
is
 actually
 getting distributed).  I've looked extensively at the documentation for
 days
 now, and
 I cannot figure it out.
 
 The problem I'm having is that the forwarding is selective.  I have two
 webapps:
 webapp1 and examples that are correctly forwarded by IIS but not the
 ones
 that I deploy.
 
 In order to test it, I simply copied the examples to examples2 and
 added
 the
 following lines to uriworker.properties:
 
 /examples2/*=ajp13
 
 where ajp13 is my worker name that is defined in the worker.properties
 file.
 
 I get 404-file not found error- when I try to access
 http://localhost/examples2/, but
 it works if I rename examples2 to examples.  So it has to be some
 configuration
 error, but I just can' t seem to find out which configuration.
 
 Any suggestion helps, thank you!
 
 
 
 Tony
 
 
 
 - Original Message -
 From: Justin Ruthenbeck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 

Re: Tomcat Loadbalancing

2004-03-17 Thread Tim Funk
Start here first
http://jakarta.apache.org/tomcat/faq/
-Tim

armalai wrote:

Hi.,
  I'm trying to do Loadbalancing in tomcat.
My environement details are, 
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector

Right now i'm stuck up with apache to tomcat
communication thru ajp.
my questions are below..
1.How do i create multiple instance of tomcat?
  using CATALINA_BASE i could able to create one
instance with new server.xml from different location. 
  but not able to retrieve the jsp pages from default
tomcat instances webapp.
  i want to create more than two instances.
2.How do i do the loadbalancing  clustering?
   give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?

Please advise me to get thru this task..
It will be great you can provide me document for
this.
Thanks.,
MALAI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


server.xml config question

2004-03-17 Thread LILES, DAVID (CONTRACTOR)
I have installed Tomcat 5 on a Windows 2000 server and am having trouble getting a 
site configured. Due to environment policies we have to use IIS for the web server. I 
have downloaded and configured the isapi_redirector2.dll with the site we're having 
trouble with, but when we attempt to access the URL we get a DNS error.


Below is the server.xml file I'm working with...

Could someone please enlighten me as to what I need to change so we can have multiple 
sites configured? Some of what I've read has stated that the server.xml file should 
not contain individual site configurations be cause any time something changes it 
requires a restart of the service.

Thanks,
Dave


Server port=8005 shutdown=SHUTDOWN debug=0

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation for more information about using this. --
!--
Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false
   acceptCount=100 debug=0 connectionTimeout=2
   proxyPort=80 disableUploadTimeout=true /
--

!-- An Engine represents the entry point (within 

RE: JDBC problems with MySQL

2004-03-17 Thread Steve Gums
I got this to work by either placing the context directly into the
server.xml file or placing the xml file into it's correct location in
/usr/local/tomcat/conf/Catalina/localhost/DBTest.xml

Not exactly sure the reason, but it is working now.

Steve

-Original Message-
From: Kawthar Bt M Sulaiman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 9:09 PM
To: [EMAIL PROTECTED]
Subject: RE: JDBC problems with MySQL

I got the same error message as yours.  Still trying to figure out
myself.

--Kawthar

 [EMAIL PROTECTED] 17/03/2004 05:46:43 AM 
It appears the attachment is stripped off.. Makes sense.. Here is the
file.
[wolfgang]# cat context.xml
Context path=/DBTest docBase=DBTest
debug=5 reloadable=true crossContext=true

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_DBTest_log. suffix=.txt
 timestamp=true/

  Resource name=jdbc/TestDB
   auth=Container
   type=javax.sql.DataSource/

  ResourceParams name=jdbc/TestDB
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- Maximum number of dB connections in pool. Make sure you
 configure your mysqld max_connections large enough to handle
 all of your db connections. Set to 0 for no limit.
 --
parameter
  namemaxActive/name
  value100/value
/parameter

!-- Maximum number of idle dB connections to retain in pool.
 Set to 0 for no limit.
 --
parameter
  namemaxIdle/name
  value30/value
/parameter
!-- Maximum time to wait for a dB connection to become available
 in ms, in this example 10 seconds. An Exception is thrown if
 this timeout is exceeded.  Set to -1 to wait indefinitely.
 --
parameter
  namemaxWait/name
  value1/value
/parameter

!-- MySQL dB username and password for dB connections  --
parameter
 nameusername/name
 valuejavauser/value
/parameter
parameter
 namepassword/name
 valuejavadude/value
/parameter

!-- Class name for mm.mysql JDBC driver --
parameter
   namedriverClassName/name
   valuecom.mysql.jdbc.Driver/value
/parameter

!-- The JDBC connection url for connecting to your MySQL dB.
 The autoReconnect=true argument to the url makes sure that
the
 mm.mysql JDBC Driver will automatically reconnect if mysqld
closed
the
 connection.  mysqld by default closes idle connections after
8
hours.
 --
parameter
  nameurl/name
 
valuejdbc:mysql://localhost/javatest?autoReconnect=true/value
/parameter
  /ResourceParams
/Context
[wolfgang]#

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 2:38 PM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL

The .cap file can be open with notepad or whatever.

I have it in the META-INF directory.  If I copy the contents of this
into
the server.xml file it starts to work.

Gotta be something simple that I am doing wrong here.

Steve

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 2:07 PM
To: Tomcat Users List
Subject: Re: JDBC problems with MySQL

Steve,
post the Resource  ResourceParams tags from your context for the 
webapp. State whether it's in a context.xml file, server.xml or
whatever.

Perhaps we can spot something.

Adam

ps this email has got some weird font - my mail reader is up the creek

at the mo'. sorry

On 03/16/2004 09:47 PM Steve Gums wrote:
 Just an update.
 I included a file, that works great on my webapp that is already
running
on
 an old system, and you can see the change I made, which allows the
app to
 run.  Not sure if this helps anyone.
 
 package com.voast.vkey.utils;
 
 import java.io.*;
 import java.sql.*;
 import javax.sql.*;
 import javax.naming.*;
 
 public class DBUtils {
 
public static Connection getConnection () throws Exception {
 
   Connection con = null;
   /* Trying to figure this error out. --Temp comment--
   try {
  Context ctx = new InitialContext();
  if ( ctx == null ) {
 throw new Exception (No Context);
  }
  DataSource ds;
  ds = (DataSource)ctx.lookup(java:comp/env/jdbc/VKEYDB);
  if ( ds != null ) {
 con = ds.getConnection ();
  }//end ds != null
   }//try
   catch ( Exception e ) {
  LoggerUtil.globalLog (ERROR,exception occured:  + 
e.toString() );
  throw (e);
   }//catch
   */
   try {
  Class.forName(com.mysql.jdbc.Driver).newInstance();
  con =
DriverManager.getConnection(jdbc:mysql://localhost/vkey,
  USER,PASSWORD);
   }//try
   catch (Exception e) {
  LoggerUtil.globalLog (DEBUG,exception occured:  + 

RE: HTTPS support for tomcat using openSSL with Client Authentication

2004-03-17 Thread saravanan.babu

Still I am looking in to it.
If you have any idea please let me know.

Regards
saravanan

-Original Message-
From: Anbu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 7:38 PM
To: Tomcat Users List
Subject: Re: HTTPS support for tomcat using openSSL with Client
Authentication

Hello Saravanan,

Have you got the answer you wanted ?

Anbu

[EMAIL PROTECTED] wrote:

Hi All,

I wanted to support SSL with Client Authentication over Tomcat 4.18.



I followed the steps mentioned in the link below, but I couldn't succeed
in getting the client authentication to work,however I was able to get
the https working with clientAuth=false in tomcat's configuration file
server.xml file.



http://marc.theaimsgroup.com/?l=tomcat-user

m=106293430225790w=2



I have attached the screenshot of the security message I see on the
client which doesn't list any certificate to choose from, though I have
imported the client certificate.pkcs12 (step 16) and the CA certificate
on the client system.



Please let me know If I am doing something wrong?



Thanks  Regards

csaravanan



Confidentiality Notice

The information contained in this electronic message and any attachments
to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



RE: JDBC problems with MySQL

2004-03-17 Thread Steve Gums
Does the META-INF directory in a war file sit next to the WEB-INF directory?
Just checking for future reference.  I got it to work when I put the file in
the right place.  I apologize I must read more carefully in the future.

Thanks for your help.

One other thing.  In the context file that is currently working can you tell
me why the logger doesn't?

Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_vkey. directory=logs
   suffix=.txt timestamp=true /

The log never shows up.  Thanks

Steve

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 1:34 AM
To: Tomcat Users List
Subject: Re: JDBC problems with MySQL

Steve, like Wendell said, you've got to put the context.xml file under 
that directory. And rename it to the context name.

It will only work from the META-INF directory when you are deploying a 
.war file.

On 03/16/2004 10:23 PM Steve Gums wrote:
 Can I ask a quick question before I do that.  I had my context.xml file
 separate, because I like that better, but it fails.  When I put that
context
 into the server.xml it worked.  I am trying it again right now to make
sure
 of this.  Am I mistaken to think the context.xml file goes into
 webapps/AppName/META-INF/context.xml
 ?
 
 I will post these files as requested in just a sec.
 
 Thanks for your help.
 Steve
 
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 16, 2004 2:07 PM
 To: Tomcat Users List
 Subject: Re: JDBC problems with MySQL
 
 Steve,
 post the Resource  ResourceParams tags from your context for the 
 webapp. State whether it's in a context.xml file, server.xml or whatever.
 
 Perhaps we can spot something.
 
 Adam
 
 ps this email has got some weird font - my mail reader is up the creek 
 at the mo'. sorry
 
 On 03/16/2004 09:47 PM Steve Gums wrote:
 
Just an update.
I included a file, that works great on my webapp that is already running
 
 on
 
an old system, and you can see the change I made, which allows the app to
run.  Not sure if this helps anyone.

package com.voast.vkey.utils;

import java.io.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;

public class DBUtils {

   public static Connection getConnection () throws Exception {

  Connection con = null;
  /* Trying to figure this error out. --Temp comment--
  try {
 Context ctx = new InitialContext();
 if ( ctx == null ) {
throw new Exception (No Context);
 }
 DataSource ds;
 ds = (DataSource)ctx.lookup(java:comp/env/jdbc/VKEYDB);
 if ( ds != null ) {
con = ds.getConnection ();
 }//end ds != null
  }//try
  catch ( Exception e ) {
 LoggerUtil.globalLog (ERROR,exception occured:  + 
   e.toString() );
 throw (e);
  }//catch
  */
  try {
 Class.forName(com.mysql.jdbc.Driver).newInstance();
 con = DriverManager.getConnection(jdbc:mysql://localhost/vkey,
 USER,PASSWORD);
  }//try
  catch (Exception e) {
 LoggerUtil.globalLog (DEBUG,exception occured:  + 
   e.toString() );
 throw (e);
  }//catch

  return con;

   }//GetConnection

}//DBUtils

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 10:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC problems with MySQL

Users

I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't
 
 find
 
it.

 

My System:

Solaris 9

Tomcat 5.0.19

MySQL 4.0.18

Connector J 3.0.11

 

I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.


 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
 
to.html

 

and my result is this.


Results


Foo Not Connected
Bar -1

 

I have tried everything I can think of.  I verified the database and the
user/password combo.  Works good.  I even created a simple Java app that
connects and performs queries, which worked.  That would indicate
 
 everything
 
is cool with the Connector J.  I have verified that the jdbc/TestDB is in
the context and it is.  As best I can tell ds (DataSource) is coming back
not null, but the call to getConnection is failing.  I created a little
 
 more
 
verbose web app and get the following message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver

 

This has to be something simple, because this works fine on my old
 
 machine.
 
I know I am forgetting some small step that I did the first time and
 
 failed
 
to do again.  Trust me I have checked the 

RE: JDBC problems with MySQL

2004-03-17 Thread Shapira, Yoav

Hi,

Does the META-INF directory in a war file sit next to the WEB-INF
directory?

Yes (a WAR is just a special JAR, and the JAR spec controls the location
of the META-INF directory).

One other thing.  In the context file that is currently working can you
tell me why the logger doesn't?

Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_vkey. directory=logs
   suffix=.txt timestamp=true /

The log never shows up.  Thanks

Never shows up anywhere at all, or just doesn't show up in
$CATALINA_HOME/logs?  Try using an absolute directory path.

Yoav Shapira



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


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



503 errors with mod_jk(2) and apache2

2004-03-17 Thread Nick Holmes
hi,

another quick question that I haven't been able to find a suitable answer to
..

While the tomcat instance is restarting, getting its ducks in line and
generally sorting its life out, the apache end spits out a 503 (and 500)
error to the user on the outside end of the web connection.

While I have custom error pages configured at both the apache level (for
images and flat content) and the tomcat level (for not-found jsps), I don't
seem to be able to override the 503 error generated by mod_jk2.

Additionally, I have found that the The servlet container is temporary
unavailable or being upgraded clause is outside of the html of the error
page, which strikes me as odd.

Should I be able to override this 503, and should the normal Apache Error
handler definition (ErrorDocument 503 /error503.html) be sufficient to
achieve this?

thanks,

Nick


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



RE: JDBC problems with MySQL

2004-03-17 Thread Steve Gums
I tried removing the directory tag and it doesn't appear in the default logs
directory. I tried it with the absolute path and still nothing.  I will
investigate this a little more.  Odd thing is I have a context.xml sitting
right next to it with an identical call other then the file name, and it
works fine.

Steve

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 7:59 AM
To: Tomcat Users List
Subject: RE: JDBC problems with MySQL


Hi,

Does the META-INF directory in a war file sit next to the WEB-INF
directory?

Yes (a WAR is just a special JAR, and the JAR spec controls the location
of the META-INF directory).

One other thing.  In the context file that is currently working can you
tell me why the logger doesn't?

Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_vkey. directory=logs
   suffix=.txt timestamp=true /

The log never shows up.  Thanks

Never shows up anywhere at all, or just doesn't show up in
$CATALINA_HOME/logs?  Try using an absolute directory path.

Yoav Shapira



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


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



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



Re: Port-per-webapp?

2004-03-17 Thread Tony Nakamura
Hi Justin,

Thank you very much for your help, but I finally got it to work!!
I reconfigured registry settings, cleared cache in Tomcat and IE,
restarted all IIS and Tomcat services manually one by one, and
it began working.

I do have one final question though... In the registry setting
tutorials, I see both c:\tomcat\blahblah and c:\\tomcat\\blahblah
should we or should we not use escape character as in the second
entry?

Thanks again!


Tony


- Original Message - 
From: Tony Nakamura [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 8:16 AM
Subject: Re: Port-per-webapp?


 Hi Justin,

 Be sure, of course, that
  the files you're editing are indeed the ones being read -- for example,
  make sure that by removing /examples from uriworker.properties, IIS no
  longer serves the Tomcat examples.

 Great point... I removed the /examples from uriworkermap.properties, and
 it's
 still serving the http://localhost/examples!!!

 I checked my registry settings, and it's pointing to the exact location to
 the
 uriworkermap.properties:
 Registry for worker_mount_file:
 c:\\jakarta_tomcat\\appserver\\conf\uriworkermap.properties
 file location:
C:\jakarta_tomcat\appserver\conf\uriworkermap.properties

   How could this be..?

 Just in case, I am pasting the worker.properties, uriworkermap.properties,
 and context from the server.xml.  Thank you!

 ===uriworker.properties=
 # *** Begin uriworkermap.properties ***
 # Mount the Servlet context to the ajp13 worker
 /servlet/*=ajp13

 # This webapp works
 /Analyzer6_Server/*=ajp13

 #This works too/examples/*=ajp13

 #This does NOT work
 /examples2/*=ajp13
 /examples2/*.jsp=ajp13
 ==

 worker.properties==
 #  Begin worker.properties **
 worker.ajp13.type=ajp13

 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13.lbfactor=1

 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize

 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
 #-
 #

 #
 # The loadbalancer (type lb) worker perform weighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will check its state
 #once in a while. Until then all work is redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13

 #
 # worker.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 worker.tomcat_home=c:\jakarta_tomcat\\appserver

 #
 # worker.java_home should point to your Java installation. Normally
 # you should have a bin and lib directories beneath it.
 #
 worker.java_home=c:\jakarta_tomcat\\jdk

 #
 # You should configure your environment slash... ps=\ on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 ps=\

 #
 #-- ADVANCED MODE 
 #-
 #

 #
 #-- DEFAULT worker list --
 #-
 #
 # The worker that your plugins should create and work with
 worker.list=ajp13

 #
 #-- DEFAULT ajp13 WORKER DEFINITION --
 #-
 #

 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13.port=8009
 worker.ajp13.host=w2k3dfvm2

 #  End worker.properties **
 ==

 - Original Message - 
 From: Justin Ruthenbeck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 5:12 PM
 Subject: Re: Port-per-webapp?


 
  Tony,
 
  Can you include your full uriworker.properties and worker.properties
  files (inline in the email) for us to look at?  Be sure, of course, that
  the files you're editing are indeed the ones being read -- for example,
  make sure that by removing /examples from uriworker.properties, IIS no
  longer serves the Tomcat examples.
 
  If there's something wrong with your config files, we should catch it
  pretty easily.
 
  justin
 
 
  At 01:20 PM 3/16/2004, you wrote:
  Hi Justin,
  
  Thank you very much for your input (and it's nice to know that my email
 is
  actually
  getting distributed).  I've looked extensively at the documentation for
  days
  now, and
  I cannot figure it out.
  
  The problem I'm having is that the forwarding is selective.  I have
two
  

Re: JProfiler... help!

2004-03-17 Thread bort
I've deployed my application to a Linux box with Apache and Tomcat.  We are
about to have some people test it, and I would like to profile memory use
and garbage collection.

How can I do that with JProfiler?

Rocky

bort [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all

 I've installed a demo version of JProfiler ver 3.0 to get some memory
 information on my web app in Tomcat.  I'm using Eclipse 2.1 as my IDE and
 (during development) run Tomcat from within it.

 I've gone ahead an integrated JProfiler with my IDE, and got a new little
 button in Eclipse.  When I click on it to Invoke JProfiler, I get a window
 that allows to be select 'Tomcat4.1.x' as a launch configuration.  But
then,
 nothing happens.

 Sorry if this all sounds very simple, but I can't seem to get JProfiler to
 do anything for me!  I've tried creating a new session, and pointed it to
 localhost on port 8080, but it doesn't connect.

 Can anyone help and/or provide some guidance?
 bort




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



Re: Tomcat Loadbalancing

2004-03-17 Thread armalai
Tim.,
   I understand that i should use mod_jk instead of mod_jk2 ..
Let me start with my basic problem.
1.How do i create more than two instances.?
Using CATALINA_BASE i have created one instance.but i'm not able to get
the jsp pages from the original instances.

Thanks.,
MALAI

- Original Message - 
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 9:21 AM
Subject: Re: Tomcat Loadbalancing


 Start here first
 http://jakarta.apache.org/tomcat/faq/

 -Tim

 armalai wrote:

  Hi.,
I'm trying to do Loadbalancing in tomcat.
  My environement details are,
  Windows
  Tomcat 4.1.xx
  Apace 2.x
  Mod_jk2 connector
 
  Right now i'm stuck up with apache to tomcat
  communication thru ajp.
 
  my questions are below..
  1.How do i create multiple instance of tomcat?
using CATALINA_BASE i could able to create one
  instance with new server.xml from different location.
but not able to retrieve the jsp pages from default
  tomcat instances webapp.
i want to create more than two instances.
  2.How do i do the loadbalancing  clustering?
 give me the idea about worker properties config.
  3.Is it possible to do session replication?in few
  websites they talk about sticky session?
  what is sticky?does it covers session replica?
 
  Please advise me to get thru this task..
  It will be great you can provide me document for
  this.
 
  Thanks.,
  MALAI

 -
 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: Slightly OT: NoBodyResponse

2004-03-17 Thread Philipp Taprogge
Hi and thanks for your response!

Shapira, Yoav wrote:
These are private support classes of the Servlet API.  They're still
present, but they're file-private inner classes and thus no in the
JavaDoc (intentionally).
I thought so, that's why I asked.

 The class name you're quoting for them is
wrong, by the way: it's javax.servlet.http.HttpServlet$NoBodyResponse
and javax.servlet.http.HttpServlet$NoBodyOutputStream.
That explains it. As I said, I just quoted them from several newsgroup 
postings I stumbled across.

Your second guess is also wrong, and I wouldn't normally mention this
but it's significant: there's nothing tomcat-specific (or specific to
any server) in the javax.servlet classes.
It would by all means be bad practice and I would never imply that the 
tomcat developers worked that way, but since HttpServletResponse is 
not final, it could hypothetically be extended by a third party inside 
the same package. I just thought I might have accidently discovered a 
sin of the past ;-)
Thanks for your clarification.

	Phil

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


java.lang.IllegalStateException: zip file closed

2004-03-17 Thread Namasivayam, Sudhakar (Cognizant)
Hi all,
   I deployed my webapp using the war file biult using ant 1.6.  The webapp is 
deployed and works well. But when i stop and atart again through the manager I get the 
exception Zip file closed error.  But removing and installing again works well...  
What could be posssible cause???
I dont  get this error if i unpack the war and deploy.  But tomcat 4.0.4 under linux  
(jdk 1.4)  does not unpack by default but creates a context.   Reload also works well. 
  Is there any way to unpack the war by default   This issue does not arise in 
tomcat 5.0. But i need to use 4.0 :(

Config : tomcat 4.0.4 ,Struts 1.1, jdk1.4


Thanks in advance,
sudhakar








java.lang.IllegalStateException: standardHost.start /sfpsr3: LifecycleException:  
start: :  java.lang.IllegalStateException: zip file closed
at org.apache.catalina.core.StandardHost.start(StandardHost.java:855)
at 
org.apache.catalina.servlets.HTMLManagerServlet.start(HTMLManagerServlet.java:375)
at 
org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

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

[OFF-TOPIC] RE: JProfiler... help!

2004-03-17 Thread Shapira, Yoav

Hi,

I've deployed my application to a Linux box with Apache and Tomcat.  We
are
about to have some people test it, and I would like to profile memory
use
and garbage collection.

How can I do that with JProfiler?

Does this look like a JProfiler list? ;)  Use its help,
http://www.ej-technologies.com/products/jprofiler/resources.html, or if
you must use this list add [OFF-TOPIC] to your subject line as I have.
Thanks,

Yoav Shapira




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


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



Re: Tomcat Loadbalancing

2004-03-17 Thread Tim Funk
I typically copy all of CATALINA_HOME for each tomcat instance and never use 
CATALINA_BASE.

So in other words - I start with one tomcat install. Get it working - then 
copy the whole thing to a new dir. The only difference between those 2 tomcat 
installations is server.xml. Yes - I end up with redundant copies but I 
prefer it that way. But when I want to upgrade or make changes - its much 
easier to keep things running 24x7 since the directories are NOT shared.

I do not keep any webapps inside my tomcat installation. They all live 
somewhere else on my filesystem.

-Tim

armalai wrote:

Tim.,
   I understand that i should use mod_jk instead of mod_jk2 ..
Let me start with my basic problem.
1.How do i create more than two instances.?
Using CATALINA_BASE i have created one instance.but i'm not able to get
the jsp pages from the original instances.
Thanks.,
MALAI
- Original Message - 
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 9:21 AM
Subject: Re: Tomcat Loadbalancing



Start here first
http://jakarta.apache.org/tomcat/faq/
-Tim

armalai wrote:


Hi.,
 I'm trying to do Loadbalancing in tomcat.
My environement details are,
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector
Right now i'm stuck up with apache to tomcat
communication thru ajp.
my questions are below..
1.How do i create multiple instance of tomcat?
 using CATALINA_BASE i could able to create one
instance with new server.xml from different location.
 but not able to retrieve the jsp pages from default
tomcat instances webapp.
 i want to create more than two instances.
2.How do i do the loadbalancing  clustering?
  give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
Hello,
I am working on a web-application that was previously deployed on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX jars
our application appears to work but I was wondering what the ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat installation?
Will Tomcat work properly with our JMX jars? 

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at this
time.

Thanks,

Mark Richards  
Software Developer
InSystems Corporation 
Voice: (905) 513-1400 ext. 3552 
Fax: (905) 513-1419
mailto:[EMAIL PROTECTED] 
http://www.insystems.com 


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



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread D'Alessandro, Arthur
Put these jars under your webapp/WEB-INF/lib folder... 

-Original Message-
From: Mark Richards [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 10:55 AM
To: Tomcat Users List (E-mail)
Subject: JMX conflict in Tomcat 5.0

Hello,
I am working on a web-application that was previously deployed
on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with
Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
our application appears to work but I was wondering what the
ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I
think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat
installation?
Will Tomcat work properly with our JMX jars? 

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at
this
time.

Thanks,

Mark Richards  
Software Developer
InSystems Corporation 
Voice: (905) 513-1400 ext. 3552 
Fax: (905) 513-1419
mailto:[EMAIL PROTECTED] 
http://www.insystems.com 


-
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: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
We originally put these jars there but it didn't work; our application was
unable to connect to the MBean server (or listener... forgive me but JMX
isn't my specialty).  When we removed the Tomcat JMX jars and put ours in
place, the app functioned as we expected.

Thanks,

Mark

-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 10:57 AM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0


Put these jars under your webapp/WEB-INF/lib folder... 

-Original Message-
From: Mark Richards [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 10:55 AM
To: Tomcat Users List (E-mail)
Subject: JMX conflict in Tomcat 5.0

Hello,
I am working on a web-application that was previously deployed
on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with
Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
our application appears to work but I was wondering what the
ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I
think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat
installation?
Will Tomcat work properly with our JMX jars? 

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at
this
time.

Thanks,

Mark Richards  
Software Developer
InSystems Corporation 
Voice: (905) 513-1400 ext. 3552 
Fax: (905) 513-1419
mailto:[EMAIL PROTECTED] 
http://www.insystems.com 


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




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

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



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Shapira, Yoav

Hi,
You removed only the MX4J implementation, or other things as well?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mark Richards [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 10:55 AM
To: Tomcat Users List (E-mail)
Subject: JMX conflict in Tomcat 5.0

Hello,
   I am working on a web-application that was previously deployed
on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with
Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
our application appears to work but I was wondering what the
ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I
think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat
installation?
Will Tomcat work properly with our JMX jars?

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at
this
time.

Thanks,

Mark Richards 
Software Developer
InSystems Corporation
Voice: (905) 513-1400 ext. 3552
Fax: (905) 513-1419
mailto:[EMAIL PROTECTED]
http://www.insystems.com


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




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


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



Re: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Paul,

Since you have done several changes, please repost your current context
section of the server.xml, exception you receive and code you use to access
the DB both with conventional JDBC and DBCP. At this point it sounds like a
typo that's preventing the connection pool from connecting to the database.

Doug


- Original Message - 
From: Paul Mahoney [EMAIL PROTECTED]
To: 'Parsons Technical Services' [EMAIL PROTECTED];
'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 8:35 AM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


Some progress but still not working.

1. Using my connection parameters I can open a connection to the database in
the standard JDBC way.

2. I have to moved the DataSource configuration from GlobalNamingResources
to the apps Context area of server.xml. This seems to have allowed the JNDI
look-up to work. I now get a DataSource instance with sensible contents.

3. But when I ask for a connection it throws
Cannot get a connection, pool exhausted
   with a nested exception
Could not create a validated object

Beginning to think it's not me but the tomcat server. I'm now moved to
4.1.24 to 4.1.30 but no improvement :(


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




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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Here goes Cut and paste, but blanked out the password bits.
I hope your eyes can spy the problem. I assume you have this working :)

Server.xml (the Context bit)
-
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=false debug=0 displayName=Custom Fares
docBase=C:/Documents and Settings/pmahoney/My Documents/Travel
2/code/webapps/CustomFares/web
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/CustomFares privileged=false reloadable=false
swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
  Resource name=jdbc/OscarsDB scope=Shareable
type=javax.sql.DataSource/
  ResourceParams name=jdbc/OscarsDB
parameter
  namevalidationQuery/name
  valueselect count(*) from systables/value
/parameter
parameter
  nameurl/name
 
valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv/value
/parameter
parameter
  namepassword/name
  value??/value
/parameter
parameter
  namemaxActive/name
  value4/value
/parameter
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  namedriverClassName/name
  valuecom.informix.jdbc.IfxDriver/value
/parameter
parameter
  nameusername/name
  valuesy5t3m/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
  /ResourceParams
/Context

Web.xml (the resource reference bit)

...
!-- Comment out now DataSource resource configured in server.xml Context
  resource-ref
descriptionConnection pool for OSCARS database/description
res-ref-namejdbc/OscarsDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
  --
/web-app

The code 

  // The JNDI way...
  protected Connection getJdbcConnection ()
  throws SQLException
  {
Connection connection = null;

// First we need to locate the JNDI data source
if (dataSource == null)
{
  try
  {
synchronized (this)
{
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
(java:comp/env);
dataSource = (DataSource) envContext.lookup (jdbc/OscarsDB);
  }
}
  }
  catch (NamingException ne)
  {
// wrap it up in an SQLException to keep calling code simple
SQLException se = new SQLException (JNDI Data Source lookup
failed);
se.initCause (ne);
throw se;
  }
}

try
{
  connection = dataSource.getConnection ();
}
catch (SQLException se)
{
  throw se;
}

return connection;
  }

  // Hardwired the old way...
  protected Connection getOscarsConnection ()
throws SQLException
  {
Connection connection = null;
try
{
  Properties props = new Properties();

  props.put(user, sy5t3m);
  props.put(password, ??);

  Class.forName(com.informix.jdbc.IfxDriver);
  connection = DriverManager.getConnection(
 
jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=oscars_d
bsrv,
props);
}
catch (ClassNotFoundException cnfe)
{
  System.err.println  (Error: Class not found: 
   + cnfe.getMessage()
  );
}
catch (SQLException se)
{
  System.err.println  (Error: while accessing database: 
   + se.getMessage()
  );
  while ((se = se.getNextException()) != null)
  {
System.err.println(   next:  + se.getMessage());
  }
}

return connection;
  }

  public String execute ()
throws Exception
  {
Connection connection = null;

try
{
  connection = getJdbcConnection();
//  connection = getOscarsConnection();
}
catch (Exception e)
{
  throw e;
}
finally // must release the following resources if acquired...
{
if (connection != null)
{
  try { connection.close (); }  catch (Exception e) {
e.printStackTrace ();   }
}
}

return Fare/Fare; // empty for now
  }
}

-Original Message-
From: Parsons Technical Services 
[mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 16:01
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Problem using JNDI/DBCP to get DataSouce


Paul,

Since you have done several changes, please repost your current context
section of the 

RE: JDBC problems with MySQL

2004-03-17 Thread Kumar Abhay-CAK203C
Dear Steav,

In case you are able to resolve the problem with connection pooling, I request you to 
please send all the files/Code and setting to this forum so that we can have a look 
and implement. 
Thanks a lot for your help !!

Best Regards
Abhay Kumar

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 9:21 AM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL


I tried removing the directory tag and it doesn't appear in the default logs 
directory. I tried it with the absolute path and still nothing.  I will investigate 
this a little more.  Odd thing is I have a context.xml sitting right next to it with 
an identical call other then the file name, and it works fine.

Steve

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 7:59 AM
To: Tomcat Users List
Subject: RE: JDBC problems with MySQL


Hi,

Does the META-INF directory in a war file sit next to the WEB-INF 
directory?

Yes (a WAR is just a special JAR, and the JAR spec controls the location of the 
META-INF directory).

One other thing.  In the context file that is currently working can you 
tell me why the logger doesn't?

Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_vkey. directory=logs
   suffix=.txt timestamp=true /

The log never shows up.  Thanks

Never shows up anywhere at all, or just doesn't show up in $CATALINA_HOME/logs?  Try 
using an absolute directory path.

Yoav Shapira



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


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



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

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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Alex
This is what version?  I have issues still with 5.0.19 but my connection
pools still work despite the error being thrown in the log...does your
pool just not work at all?

On Wed, 17 Mar 2004, Paul Mahoney wrote:

 Date: Wed, 17 Mar 2004 16:24:08 -
 From: Paul Mahoney [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED]
 To: 'Parsons Technical Services' [EMAIL PROTECTED],
  'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Problem using JNDI/DBCP to get DataSouce

 Here goes Cut and paste, but blanked out the password bits.
 I hope your eyes can spy the problem. I assume you have this working :)

 Server.xml (the Context bit)
 -
 Context className=org.apache.catalina.core.StandardContext
 cachingAllowed=true
 charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
 crossContext=false debug=0 displayName=Custom Fares
 docBase=C:/Documents and Settings/pmahoney/My Documents/Travel
 2/code/webapps/CustomFares/web
 mapperClass=org.apache.catalina.core.StandardContextMapper
 path=/CustomFares privileged=false reloadable=false
 swallowOutput=false useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper
   Resource name=jdbc/OscarsDB scope=Shareable
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/OscarsDB
 parameter
   namevalidationQuery/name
   valueselect count(*) from systables/value
 /parameter
 parameter
   nameurl/name

 valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
 cars_dbsrv/value
 /parameter
 parameter
   namepassword/name
   value??/value
 /parameter
 parameter
   namemaxActive/name
   value4/value
 /parameter
 parameter
   namemaxWait/name
   value5000/value
 /parameter
 parameter
   namedriverClassName/name
   valuecom.informix.jdbc.IfxDriver/value
 /parameter
 parameter
   nameusername/name
   valuesy5t3m/value
 /parameter
 parameter
   namemaxIdle/name
   value2/value
 /parameter
   /ResourceParams
 /Context


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



RE: Stubborn simple servlet

2004-03-17 Thread Wendy Smoak
 From: [EMAIL PROTECTED] Rick Lutowski
 With further fussing, this works!  I had changed web.xml
 to key on /pix_servlet/*.pxhtml as an experiment.  When 
 I changed it back to the original *.pxhtml and used the 
 Context base 'ship_pix' in the URL (either absolute or 
 relative), everything started clicking.

Check SRV.11.2 of the Servlet 2.3 specification, 
/pix_servlet/*.pxhtml is not a valid wildcard mapping.  
The choices are:
   - starts with / and ends with /*
   - starts with *.
   - contains the single character /
Anything else requires an exact match on the requested URL.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



Re: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Paul,

Replace this:
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
(java:comp/env);
dataSource = (DataSource) envContext.lookup (jdbc/OscarsDB);
  }

With this:
 if (dataSource == null)
  {
Context initContext = new InitialContext ();
dataSource = (DataSource) initContext.lookup
(java:comp/jdbc/OscarsDB);
  }

This is working fine for me. Just a note that I am running against MySQL,
but at this point in the code it should not matter especially since the
hardwire way works.

Doug

- Original Message - 
From: Paul Mahoney [EMAIL PROTECTED]
To: 'Parsons Technical Services' [EMAIL PROTECTED];
'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 11:24 AM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


Here goes Cut and paste, but blanked out the password bits.
I hope your eyes can spy the problem. I assume you have this working :)

Server.xml (the Context bit)
-
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=false debug=0 displayName=Custom Fares
docBase=C:/Documents and Settings/pmahoney/My Documents/Travel
2/code/webapps/CustomFares/web
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/CustomFares privileged=false reloadable=false
swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
  Resource name=jdbc/OscarsDB scope=Shareable
type=javax.sql.DataSource/
  ResourceParams name=jdbc/OscarsDB
parameter
  namevalidationQuery/name
  valueselect count(*) from systables/value
/parameter
parameter
  nameurl/name

valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv/value
/parameter
parameter
  namepassword/name
  value??/value
/parameter
parameter
  namemaxActive/name
  value4/value
/parameter
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  namedriverClassName/name
  valuecom.informix.jdbc.IfxDriver/value
/parameter
parameter
  nameusername/name
  valuesy5t3m/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
  /ResourceParams
/Context

Web.xml (the resource reference bit)

...
!-- Comment out now DataSource resource configured in server.xml Context
  resource-ref
descriptionConnection pool for OSCARS database/description
res-ref-namejdbc/OscarsDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
  --
/web-app

The code

  // The JNDI way...
  protected Connection getJdbcConnection ()
  throws SQLException
  {
Connection connection = null;

// First we need to locate the JNDI data source
if (dataSource == null)
{
  try
  {
synchronized (this)
{
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
(java:comp/env);
dataSource = (DataSource) envContext.lookup (jdbc/OscarsDB);
  }
}
  }
  catch (NamingException ne)
  {
// wrap it up in an SQLException to keep calling code simple
SQLException se = new SQLException (JNDI Data Source lookup
failed);
se.initCause (ne);
throw se;
  }
}

try
{
  connection = dataSource.getConnection ();
}
catch (SQLException se)
{
  throw se;
}

return connection;
  }

  // Hardwired the old way...
  protected Connection getOscarsConnection ()
throws SQLException
  {
Connection connection = null;
try
{
  Properties props = new Properties();

  props.put(user, sy5t3m);
  props.put(password, ??);

  Class.forName(com.informix.jdbc.IfxDriver);
  connection = DriverManager.getConnection(

jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=oscars_d
bsrv,
props);
}
catch (ClassNotFoundException cnfe)
{
  System.err.println  (Error: Class not found: 
   + cnfe.getMessage()
  );
}
catch (SQLException se)
{
  System.err.println  (Error: while accessing database: 
   + se.getMessage()
  );
  while ((se = se.getNextException()) != null)
 

Re: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Alex,

Chase the thread. He is on 4.1.30 and no the pool does not work at all.

Doug


- Original Message - 
From: Alex [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 11:19 AM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


 This is what version?  I have issues still with 5.0.19 but my connection
 pools still work despite the error being thrown in the log...does your
 pool just not work at all?

 On Wed, 17 Mar 2004, Paul Mahoney wrote:

  Date: Wed, 17 Mar 2004 16:24:08 -
  From: Paul Mahoney [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
[EMAIL PROTECTED]
  To: 'Parsons Technical Services' [EMAIL PROTECTED],
   'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: Problem using JNDI/DBCP to get DataSouce
 
  Here goes Cut and paste, but blanked out the password bits.
  I hope your eyes can spy the problem. I assume you have this working :)
 
  Server.xml (the Context bit)
  -
  Context className=org.apache.catalina.core.StandardContext
  cachingAllowed=true
  charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
  crossContext=false debug=0 displayName=Custom Fares
  docBase=C:/Documents and Settings/pmahoney/My Documents/Travel
  2/code/webapps/CustomFares/web
  mapperClass=org.apache.catalina.core.StandardContextMapper
  path=/CustomFares privileged=false reloadable=false
  swallowOutput=false useNaming=true
  wrapperClass=org.apache.catalina.core.StandardWrapper
Resource name=jdbc/OscarsDB scope=Shareable
  type=javax.sql.DataSource/
ResourceParams name=jdbc/OscarsDB
  parameter
namevalidationQuery/name
valueselect count(*) from systables/value
  /parameter
  parameter
nameurl/name
 
 
valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
  cars_dbsrv/value
  /parameter
  parameter
namepassword/name
value??/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namedriverClassName/name
valuecom.informix.jdbc.IfxDriver/value
  /parameter
  parameter
nameusername/name
valuesy5t3m/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
/ResourceParams
  /Context


 -
 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: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
We removed jmx-remote-tools.jar, jmx-remote.jar and jmx.jar from
TOMCAT_HOME/common/lib, and replaced these with the implementation of JMX we
have been using on other platforms.

I should mention that if it is not possible to make Tomcat 5 work properly,
downgrading to Tomcat 4.x is a solution we are willing to take, but we'd
rather not.

Thanks,

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 11:00 AM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0



Hi,
You removed only the MX4J implementation, or other things as well?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mark Richards [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 10:55 AM
To: Tomcat Users List (E-mail)
Subject: JMX conflict in Tomcat 5.0

Hello,
   I am working on a web-application that was previously deployed
on
Websphere but we would like to deploy it on Tomcat 5.0.  However, our
application uses JMX and it seems that our JMX jars conflict with
Tomcat's
JMX jars.  We found that if we replace Tomcat's JMX jars with our JMX
jars
our application appears to work but I was wondering what the
ramifications
of this are for Tomcat.  We are using the Sun implementation of JMX (I
think
it's version 1.1).

Is there any way to make this work without mangling the Tomcat
installation?
Will Tomcat work properly with our JMX jars?

Other details:
Our web-app conforms to Servlet 2.2
JDK 1.3.1
Changing our version of JMX to whatever Tomcat uses is not an option at
this
time.

Thanks,

Mark Richards 
Software Developer
InSystems Corporation
Voice: (905) 513-1400 ext. 3552
Fax: (905) 513-1419
mailto:[EMAIL PROTECTED]
http://www.insystems.com


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



jk2 shared memory

2004-03-17 Thread tomcatuser
I am trying to figure out the jk2 configuration and need some help.

I want to use the shared memory capability of JK2, but am confused by the requirement 
that I must also use a port (8009).  I have apache configured to require mutual 
authentication.  Here is my config file:

###  Start workers2.properties ###
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/blah/servlet/*]
info=blah context
context=/blah
debug=1

###  End workers2.properties ###


When I comment out the channel.socket:localhost:8009 section, I cannot connect to my 
servlets.  Is there another connector that I should be using?  Or do I need to have 
port 8009 open?

thank you for the help.



Re: [OFF-TOPIC] RE: JProfiler... help!

2004-03-17 Thread bort
No, obviously it doesn't look like a JProfiler list.  However, I was hoping
to get some help.

Thanks anyways.
bort

Shapira, Yoav [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


Does this look like a JProfiler list? ;)  Use its help,
http://www.ej-technologies.com/products/jprofiler/resources.html, or if
you must use this list add [OFF-TOPIC] to your subject line as I have.
Thanks,

Yoav Shapira




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




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



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Shapira, Yoav

Hi,

We removed jmx-remote-tools.jar, jmx-remote.jar and jmx.jar from
TOMCAT_HOME/common/lib, and replaced these with the implementation of
JMX
we
have been using on other platforms.

jmx-remote.jar and jmx-remote-tools.jar are not part of the tomcat
distribution.  I don't know where you got them nor what their impact is.

The jmx.jar is the Sun JMX 1.2.1 API and reference implementation (RI).

I should mention that if it is not possible to make Tomcat 5 work
properly,

It DOES work properly out of the box.  In addition, it even works
properly with the latest Sun RI.  Older Sun or other implementations, I
don't know.

Yoav Shapira



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


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



What's the status with the LE branch?

2004-03-17 Thread Yansheng Lin
Can we still use it?  Well, it's running fun on one of the machines here right
now.  

Thanks!


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



RE: Tomcat Loadbalancing

2004-03-17 Thread Steve Gums
Just something that I found to be very useful.  If I use the minimal
server.xml and put the context.xml files into place. I can use the same
server.xml file as well.  The only thing I have to do is to put the context
file into the new install and I am done.  Works great!

Steve

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 8:52 AM
To: Tomcat Users List
Subject: Re: Tomcat Loadbalancing

I typically copy all of CATALINA_HOME for each tomcat instance and never use

CATALINA_BASE.

So in other words - I start with one tomcat install. Get it working - then 
copy the whole thing to a new dir. The only difference between those 2
tomcat 
installations is server.xml. Yes - I end up with redundant copies but I 
prefer it that way. But when I want to upgrade or make changes - its much 
easier to keep things running 24x7 since the directories are NOT shared.

I do not keep any webapps inside my tomcat installation. They all live 
somewhere else on my filesystem.

-Tim

armalai wrote:

 Tim.,
I understand that i should use mod_jk instead of mod_jk2 ..
 Let me start with my basic problem.
 1.How do i create more than two instances.?
 Using CATALINA_BASE i have created one instance.but i'm not able to
get
 the jsp pages from the original instances.
 
 Thanks.,
 MALAI
 
 - Original Message - 
 From: Tim Funk [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 17, 2004 9:21 AM
 Subject: Re: Tomcat Loadbalancing
 
 
 
Start here first
http://jakarta.apache.org/tomcat/faq/

-Tim

armalai wrote:


Hi.,
  I'm trying to do Loadbalancing in tomcat.
My environement details are,
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector

Right now i'm stuck up with apache to tomcat
communication thru ajp.

my questions are below..
1.How do i create multiple instance of tomcat?
  using CATALINA_BASE i could able to create one
instance with new server.xml from different location.
  but not able to retrieve the jsp pages from default
tomcat instances webapp.
  i want to create more than two instances.
2.How do i do the loadbalancing  clustering?
   give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?


-
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: jk2 shared memory

2004-03-17 Thread Yiannis Mavroukakis
Do you mean using jk2 with tomcat as an in-process server? 
You need the shared memory anyway, wont work without it.
But the options that most people end up using as a connection scheme are
either via
sockets or using JNI (in-process). JNI AFAIK works only under Windows, so if
you
are on a *IX OS, you should use sockets. Is there a problem with making port
8009 available
through localhost?

-Original Message-
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 17:05
To: [EMAIL PROTECTED]
Subject: jk2 shared memory


I am trying to figure out the jk2 configuration and need some help.

I want to use the shared memory capability of JK2, but am confused by the
requirement that I must also use a port (8009).  I have apache configured to
require mutual authentication.  Here is my config file:

###  Start workers2.properties ###
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/blah/servlet/*]
info=blah context
context=/blah
debug=1

###  End workers2.properties ###


When I comment out the channel.socket:localhost:8009 section, I cannot
connect to my servlets.  Is there another connector that I should be using?
Or do I need to have port 8009 open?

thank you for the help.




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: What's the status with the LE branch?

2004-03-17 Thread Shapira, Yoav

Hi,
Discontinued with the release of tomcat 5.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 12:11 PM
To: 'Tomcat Users List'
Subject: What's the status with the LE branch?

Can we still use it?  Well, it's running fun on one of the machines
here
right
now.

Thanks!


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




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


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



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
Hello,
The jmx-remote.jar and jmx-remote-tools.jar were in the archive I
downloaded from jakarta.apache.com (Tomcat 5.0.18).  And I don't mean to
imply that Tomcat doesn't work in general, I mean it doesn't work with my
app (or, my app doesn't work with it - they don't work together, but both
seem to work apart).  

Thanks,

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 12:08 PM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0



Hi,

We removed jmx-remote-tools.jar, jmx-remote.jar and jmx.jar from
TOMCAT_HOME/common/lib, and replaced these with the implementation of
JMX
we
have been using on other platforms.

jmx-remote.jar and jmx-remote-tools.jar are not part of the tomcat
distribution.  I don't know where you got them nor what their impact is.

The jmx.jar is the Sun JMX 1.2.1 API and reference implementation (RI).

I should mention that if it is not possible to make Tomcat 5 work
properly,

It DOES work properly out of the box.  In addition, it even works
properly with the latest Sun RI.  Older Sun or other implementations, I
don't know.

Yoav Shapira



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


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

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



RE: Tomcat Loadbalancing

2004-03-17 Thread Steve Gums
Of course I am not running on the same server. This would require different
server.xml files or you will have port conflicts.  
I am setting up multiple servers so I can host JSP apps for people.  And
this setup makes installs quick and fast.

Steve

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 10:13 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Loadbalancing

Just something that I found to be very useful.  If I use the minimal
server.xml and put the context.xml files into place. I can use the same
server.xml file as well.  The only thing I have to do is to put the context
file into the new install and I am done.  Works great!

Steve

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 8:52 AM
To: Tomcat Users List
Subject: Re: Tomcat Loadbalancing

I typically copy all of CATALINA_HOME for each tomcat instance and never use

CATALINA_BASE.

So in other words - I start with one tomcat install. Get it working - then 
copy the whole thing to a new dir. The only difference between those 2
tomcat 
installations is server.xml. Yes - I end up with redundant copies but I 
prefer it that way. But when I want to upgrade or make changes - its much 
easier to keep things running 24x7 since the directories are NOT shared.

I do not keep any webapps inside my tomcat installation. They all live 
somewhere else on my filesystem.

-Tim

armalai wrote:

 Tim.,
I understand that i should use mod_jk instead of mod_jk2 ..
 Let me start with my basic problem.
 1.How do i create more than two instances.?
 Using CATALINA_BASE i have created one instance.but i'm not able to
get
 the jsp pages from the original instances.
 
 Thanks.,
 MALAI
 
 - Original Message - 
 From: Tim Funk [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 17, 2004 9:21 AM
 Subject: Re: Tomcat Loadbalancing
 
 
 
Start here first
http://jakarta.apache.org/tomcat/faq/

-Tim

armalai wrote:


Hi.,
  I'm trying to do Loadbalancing in tomcat.
My environement details are,
Windows
Tomcat 4.1.xx
Apace 2.x
Mod_jk2 connector

Right now i'm stuck up with apache to tomcat
communication thru ajp.

my questions are below..
1.How do i create multiple instance of tomcat?
  using CATALINA_BASE i could able to create one
instance with new server.xml from different location.
  but not able to retrieve the jsp pages from default
tomcat instances webapp.
  i want to create more than two instances.
2.How do i do the loadbalancing  clustering?
   give me the idea about worker properties config.
3.Is it possible to do session replication?in few
websites they talk about sticky session?
what is sticky?does it covers session replica?


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



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



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



RE: JMX conflict in Tomcat 5.0

2004-03-17 Thread Shapira, Yoav

Hi,

   The jmx-remote.jar and jmx-remote-tools.jar were in the archive
I
downloaded from jakarta.apache.com (Tomcat 5.0.18).

Perhaps it's worth trying with 5.0.19?

Back to your original question: there's also commons-modeler
(http://jakarta.apache.org/commons/modeler/) to consider.  Tomcat uses
modeler fairly heavily to build its beans, and modeler had an MX4J
dependency last I checked.

Yoav Shapira




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


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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Tried
  dataSource = (DataSource) initContext.lookup(java:comp/jdbc/OscarsDB);
But it return null, so tried
  dataSource = (DataSource)
initContext.lookup(java:comp/env/jdbc/OscarsDB);
And a datasource instance was return so before, looking good...
However, still got the same exception when trying to get a connection
instance
  Cannot get a connection, pool exhausted
with a nested exception
  Could not create a validated object


-Original Message-
From: Parsons Technical Services 
[mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 16:49
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Problem using JNDI/DBCP to get DataSouce


Paul,

Replace this:
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
(java:comp/env);
dataSource = (DataSource) envContext.lookup 
(jdbc/OscarsDB);
  }

With this:
 if (dataSource == null)
  {
Context initContext = new InitialContext ();
dataSource = (DataSource) initContext.lookup
(java:comp/jdbc/OscarsDB);
  }

This is working fine for me. Just a note that I am running against MySQL,
but at this point in the code it should not matter especially since the
hardwire way works.

Doug


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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread D'Alessandro, Arthur
Check your validation query in your resource definition. 

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 12:57 PM
To: 'Parsons Technical Services'; 'Tomcat Users List'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

Tried
  dataSource = (DataSource)
initContext.lookup(java:comp/jdbc/OscarsDB);
But it return null, so tried
  dataSource = (DataSource)
initContext.lookup(java:comp/env/jdbc/OscarsDB);
And a datasource instance was return so before, looking good...
However, still got the same exception when trying to get a connection
instance
  Cannot get a connection, pool exhausted
with a nested exception
  Could not create a validated object


-Original Message-
From: Parsons Technical Services 
[mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 16:49
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Problem using JNDI/DBCP to get DataSouce


Paul,

Replace this:
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
(java:comp/env);
dataSource = (DataSource) envContext.lookup 
(jdbc/OscarsDB);
  }

With this:
 if (dataSource == null)
  {
Context initContext = new InitialContext ();
dataSource = (DataSource) initContext.lookup
(java:comp/jdbc/OscarsDB);
  }

This is working fine for me. Just a note that I am running against
MySQL,
but at this point in the code it should not matter especially since the
hardwire way works.

Doug


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




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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
I agree, but it looks good and I've tried without one being specified. In
addition, I've never see a connection raised at the database server end.
This makes me think the DataSource is just not working and I'm not seeing
the proper error. But I can find nothing more in the logs :(

-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 18:00
To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
Subject: RE: Problem using JNDI/DBCP to get DataSouce


Check your validation query in your resource definition. 

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 12:57 PM
To: 'Parsons Technical Services'; 'Tomcat Users List'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

Tried
  dataSource = (DataSource)
initContext.lookup(java:comp/jdbc/OscarsDB);
But it return null, so tried
  dataSource = (DataSource)
initContext.lookup(java:comp/env/jdbc/OscarsDB);
And a datasource instance was return so before, looking good...
However, still got the same exception when trying to get a connection
instance
  Cannot get a connection, pool exhausted
with a nested exception
  Could not create a validated object



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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread D'Alessandro, Arthur
Would you include any resource definitions and/or any resource
links/references.

Also, the full stacktrace of the exception may shed some other potential
problems.

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 1:05 PM
To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
Services'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

I agree, but it looks good and I've tried without one being specified.
In
addition, I've never see a connection raised at the database server end.
This makes me think the DataSource is just not working and I'm not
seeing
the proper error. But I can find nothing more in the logs :(

-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 18:00
To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
Subject: RE: Problem using JNDI/DBCP to get DataSouce


Check your validation query in your resource definition. 

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 12:57 PM
To: 'Parsons Technical Services'; 'Tomcat Users List'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

Tried
  dataSource = (DataSource)
initContext.lookup(java:comp/jdbc/OscarsDB);
But it return null, so tried
  dataSource = (DataSource)
initContext.lookup(java:comp/env/jdbc/OscarsDB);
And a datasource instance was return so before, looking good...
However, still got the same exception when trying to get a connection
instance
  Cannot get a connection, pool exhausted
with a nested exception
  Could not create a validated object





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



Re: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Parsons Technical Services
Change the debug value on the context. It is currently 0 or no debugging.
Try 9 and see what you get. I think the top limit is 99.


- Original Message - 
From: Paul Mahoney [EMAIL PROTECTED]
To: 'D'Alessandro, Arthur' [EMAIL PROTECTED]; 'Tomcat
Users List' [EMAIL PROTECTED]; 'Parsons Technical
Services' [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:05 PM
Subject: RE: Problem using JNDI/DBCP to get DataSouce


 I agree, but it looks good and I've tried without one being specified. In
 addition, I've never see a connection raised at the database server end.
 This makes me think the DataSource is just not working and I'm not seeing
 the proper error. But I can find nothing more in the logs :(

 -Original Message-
 From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
 Sent: 17 March 2004 18:00
 To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
 Subject: RE: Problem using JNDI/DBCP to get DataSouce
 
 
 Check your validation query in your resource definition.
 
 -Original Message-
 From: Paul Mahoney [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 17, 2004 12:57 PM
 To: 'Parsons Technical Services'; 'Tomcat Users List'
 Subject: RE: Problem using JNDI/DBCP to get DataSouce
 
 Tried
   dataSource = (DataSource)
 initContext.lookup(java:comp/jdbc/OscarsDB);
 But it return null, so tried
   dataSource = (DataSource)
 initContext.lookup(java:comp/env/jdbc/OscarsDB);
 And a datasource instance was return so before, looking good...
 However, still got the same exception when trying to get a connection
 instance
   Cannot get a connection, pool exhausted
 with a nested exception
   Could not create a validated object
 


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





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



Re: RE: jk2 shared memory

2004-03-17 Thread tomcatuser
I was of the understanding that tomcat and apache could communicate via shared memory. 
 Is this true?  I am not sure what it means to run in-process.  Could you further 
explain?

thank you.



   ---Original Message---
From: Yiannis Mavroukakis [EMAIL PROTECTED]
Subject: RE: jk2 shared memory
Sent: 17 Mar 2004 17:18:48
   
 Do you mean using jk2 with tomcat as an in-process server?
 You need the shared memory anyway, wont work without it.
 But the options that most people end up using as a connection scheme are
 either via
 sockets or using JNI (in-process). JNI AFAIK works only under Windows, so if
 you
 are on a *IX OS, you should use sockets. Is there a problem with making port
 8009 available
 through localhost?
 
 -Original Message-
 From: tomcatuser [mailto:[EMAIL PROTECTED]
 Sent: 17 March 2004 17:05
 To: [EMAIL PROTECTED]
 Subject: jk2 shared memory
 
 
 I am trying to figure out the jk2 configuration and need some help.
 
 I want to use the shared memory capability of JK2, but am confused by the
 requirement that I must also use a port (8009).  I have apache configured to
 require mutual authentication.  Here is my config file:
 
 ###  Start workers2.properties ###
 [logger]
 level=DEBUG
 
 [config:]
 file=${serverRoot}/conf/workers2.properties
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 [shm:]
 info=Scoreboard. Required for reconfiguration and status with multiprocess
 servers
 file=${serverRoot}/logs/jk2.shm
 size=100
 debug=0
 disabled=0
 
 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=0
 tomcatId=localhost:8009
 
 [status:]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus/*]
 info=Display status information and checks the config file for changes.
 group=status:
 
 [uri:/blah/servlet/*]
 info=blah context
 context=/blah
 debug=1
 
 ###  End workers2.properties ###
 
 
 When I comment out the channel.socket:localhost:8009 section, I cannot
 connect to my servlets.  Is there another connector that I should be using?
 Or do I need to have port 8009 open?
 
 thank you for the help.
 
 
 
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.
 
 
 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.
   ---Original Message---




apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have to 
configure it by hand?? any how-to?? It's not mentioned in tomcat 5 docs..

I used mod_jk, is jk2 prefered There's no linux release for it and 
when trying to build as the readme says, the buildI doesn't work at all...

I'm using suse 9 / apache 1.3 and tomcat 5.

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Joseph Shraibman
I recently upgraded my production server from jk 1.2.5/tomcat 4.1.18 to 
jk 2.0.2/tomcat 5.0.19.  I'm having a horrible memory leak now and need 
to restart tomcat frequently when it runs out of memory.  I always had 
set the max memory to 512m, now after running around 50 minutes memory 
usage is already 178,143,080 bytes.  Does anyone have any idea what 
could be the problem?  The only messages in catalina.out are:

Mar 17, 2004 1:52:51 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:52 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:53 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:57 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:59 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:02 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:03 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:06 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:11 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:35 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:37 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:42 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
PS The faq at http://jakarta.apache.org/tomcat/faq/connectors.html says 
that mod_jk is the preferred connector and that jk2 is not production 
quality.  My understanding was that jk was in maintence mode and jk2 is 
considered the stable connector.  Is the faq right or is it just out of 
date?

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


RE: Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Shapira, Yoav

Hi,
Does the memory leak occur when you run tomcat standalone?  Can you
point out its source e.g. by running with a profiler?  Was the load
during these 50 minutes exceptionally heavy?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:55 PM
To: Tomcat Users List
Subject: Horrible memory leak in tomcat 5.0.19

I recently upgraded my production server from jk 1.2.5/tomcat 4.1.18 to
jk 2.0.2/tomcat 5.0.19.  I'm having a horrible memory leak now and need
to restart tomcat frequently when it runs out of memory.  I always had
set the max memory to 512m, now after running around 50 minutes memory
usage is already 178,143,080 bytes.  Does anyone have any idea what
could be the problem?  The only messages in catalina.out are:

Mar 17, 2004 1:52:51 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:52 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:53 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:57 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:59 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:02 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:03 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:06 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:11 PM org.apache.jk.common.HandlerRequest
decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:35 PM org.apache.jk.common.HandlerRequest
decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:37 PM org.apache.jk.common.HandlerRequest
decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:42 PM org.apache.jk.common.HandlerRequest
decodeRequest
WARNING: Error registering request


PS The faq at http://jakarta.apache.org/tomcat/faq/connectors.html says
that mod_jk is the preferred connector and that jk2 is not production
quality.  My understanding was that jk was in maintence mode and jk2 is
considered the stable connector.  Is the faq right or is it just out of
date?

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




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


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



Re: Port-per-webapp?

2004-03-17 Thread Justin Ruthenbeck
Tony,

Glad to hear you got it working.  The things you did (clear cache, 
restart services, reenter configuration) often solve problems like 
this.  Doesn't provide for a clean explanation of what was wrong, but 
that's a different story.

As for the escape chars, whether they should be escaped really depends on 
who's reading the value.  I've never used the IIS plugin, so I have no 
idea what the behavior is -- an IIS user would have to chime in.

justin

At 07:24 AM 3/17/2004, you wrote:
Hi Justin,

Thank you very much for your help, but I finally got it to work!!
I reconfigured registry settings, cleared cache in Tomcat and IE,
restarted all IIS and Tomcat services manually one by one, and
it began working.
I do have one final question though... In the registry setting
tutorials, I see both c:\tomcat\blahblah and c:\\tomcat\\blahblah
should we or should we not use escape character as in the second
entry?
Thanks again!

Tony

- Original Message -
From: Tony Nakamura [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 8:16 AM
Subject: Re: Port-per-webapp?
 Hi Justin,

 Be sure, of course, that
  the files you're editing are indeed the ones being read -- for 
example,
  make sure that by removing /examples from uriworker.properties, IIS 
no
  longer serves the Tomcat examples.

 Great point... I removed the /examples from uriworkermap.properties, 
and
 it's
 still serving the http://localhost/examples!!!

 I checked my registry settings, and it's pointing to the exact 
location to
 the
 uriworkermap.properties:
 Registry for worker_mount_file:
 c:\\jakarta_tomcat\\appserver\\conf\uriworkermap.properties
 file location:
C:\jakarta_tomcat\appserver\conf\uriworkermap.properties

   How could this be..?

 Just in case, I am pasting the worker.properties, 
uriworkermap.properties,
 and context from the server.xml.  Thank you!

 ===uriworker.properties=
 # *** Begin uriworkermap.properties ***
 # Mount the Servlet context to the ajp13 worker
 /servlet/*=ajp13

 # This webapp works
 /Analyzer6_Server/*=ajp13

 #This works too/examples/*=ajp13

 #This does NOT work
 /examples2/*=ajp13
 /examples2/*.jsp=ajp13
 ==

 worker.properties==
 #  Begin worker.properties **
 worker.ajp13.type=ajp13

 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13.lbfactor=1

 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize

 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION --
 #-
 #

 #
 # The loadbalancer (type lb) worker perform weighted round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will check its state
 #once in a while. Until then all work is redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13

 #
 # worker.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 worker.tomcat_home=c:\jakarta_tomcat\\appserver

 #
 # worker.java_home should point to your Java installation. Normally
 # you should have a bin and lib directories beneath it.
 #
 worker.java_home=c:\jakarta_tomcat\\jdk

 #
 # You should configure your environment slash... ps=\ on NT and / on 
UNIX
 # and maybe something different elsewhere.
 #
 ps=\

 #
 #-- ADVANCED MODE 
 #-
 #

 #
 #-- DEFAULT worker list --
 #-
 #
 # The worker that your plugins should create and work with
 worker.list=ajp13

 #
 #-- DEFAULT ajp13 WORKER DEFINITION --
 #-
 #

 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13.port=8009
 worker.ajp13.host=w2k3dfvm2

 #  End worker.properties **
 ==

 - Original Message -
 From: Justin Ruthenbeck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 5:12 PM
 Subject: Re: Port-per-webapp?


 
  Tony,
 
  Can you include your full uriworker.properties and worker.properties
  files (inline in the email) for us to look at?  Be sure, of course, 
that
  the files you're editing are indeed the ones being read -- for 
example,
  make sure that by removing /examples from 

Re: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
I have a complementary question, taht I know that i have being asked 
before, but didn't find any answer, it's related to my previous question:

- Tomcat 5 can be used directly (in production) without apache??? For 
serving static pages and images??? I mean, there are anybody using it 
direct in production, without any drop in performance?

Emerson Cargnin wrote:
Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have to 
configure it by hand?? any how-to?? It's not mentioned in tomcat 5 docs..

I used mod_jk, is jk2 prefered There's no linux release for it and 
when trying to build as the readme says, the buildI doesn't work at all...

I'm using suse 9 / apache 1.3 and tomcat 5.




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
To get this far I had to more the datasource resource defiition to the
context. I've rasie the debug to 9 but could see no additional loging that
would help. Here is the context ...

Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=false debug=9 displayName=Custom Fares
docBase=C:/Documents and Settings/pmahoney/My Documents/Travel
2/code/webapps/CustomFares/web
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/CustomFares privileged=false reloadable=false
swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
  Resource name=jdbc/OscarsDB scope=Shareable
type=javax.sql.DataSource/
  ResourceParams name=jdbc/OscarsDB
parameter
  namevalidationQuery/name
  valueselect count(*) from systables/value
/parameter
parameter
  nameurl/name
 
valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv/value
/parameter
parameter
  namepassword/name
  value1atan1a/value
/parameter
parameter
  namemaxActive/name
  value4/value
/parameter
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  namedriverClassName/name
  valuecom.informix.jdbc.IfxDriver/value
/parameter
parameter
  nameusername/name
  valuesy5t3m/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
  /ResourceParams
/Context

The stacktrace is...

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
exhausted, cause:
java.util.NoSuchElementException: Could not create a validated object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo
l.java:851)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:140)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
at com.travel2.customFares.Query.getJdbcConnection(Query.java:95)
at com.travel2.customFares.Query.execute(Query.java:160)
at
com.travel2.customFares.CustomFaresService.GetFares(CustomFaresService.java:
58)
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.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402
)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:3
09)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
339)
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:2422)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at

RE: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Shapira, Yoav

Hi,
Tomcat 5 can be used standalone to serve static content including
images, yes.  The same is true for tomcat 3 and 4 as well.  People are
using tomcat in production without a front-end server to handle static
content, yes.  Is there a drop in performance?  Probably yes, but it
depends on the static content, the traffic your site gets, the hardware
and software configuration, and a host of other variables: frequently
the drop in performance is better than the additional maintenance and
setup costs of a separate front-end.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 2:16 PM
To: Tomcat Users List
Subject: Re: apache 1.3 tomcat 5.0.19

I have a complementary question, taht I know that i have being asked
before, but didn't find any answer, it's related to my previous
question:

- Tomcat 5 can be used directly (in production) without apache??? For
serving static pages and images??? I mean, there are anybody using it
direct in production, without any drop in performance?

Emerson Cargnin wrote:
 Hi all

 I'm migrating a tomcat 3.2.3 isntallation to version 5.
 When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
 for use by apache. Does version 5 has the same feature? Or do I have
to
 configure it by hand?? any how-to?? It's not mentioned in tomcat 5
docs..

 I used mod_jk, is jk2 prefered There's no linux release for it
and
 when trying to build as the readme says, the buildI doesn't work at
all...

 I'm using suse 9 / apache 1.3 and tomcat 5.




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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




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


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



Re: Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Joseph Shraibman
Shapira, Yoav wrote:
Hi,
Does the memory leak occur when you run tomcat standalone?
I can't run the production server in standalone, and I can't seem to hit 
my test server hard enough to reproduce the problem clearly.  I'll keep 
trying.

  Can you
point out its source e.g. by running with a profiler?
I don't have a profiler :(

  Was the load
during these 50 minutes exceptionally heavy?

On the heavy side, but not really stressing the server except for this 
memroy leak.  Tomcat 4.1.18 handled loads like this all the time.

BTW How can I view the jk2 status?  I tried both of these:
In httpd.conf:
Location /jkstatus/*
JkUriSet worker status
/Location
in workers2.properties:
[uri:/status/*]
worker=status:status
In my error_log I see:
[Wed Mar 17 14:26:42 2004] [notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 
OpenSSL/0.9.7a mod_jk2/2.0.2 configured -- resuming normal operations
[Wed Mar 17 14:26:42 2004] [error] uriEnv.init() map to invalid worker 
/jkstatus/* status
[Wed Mar 17 14:26:42 2004] [error] uriEnv.init() map to invalid worker 
/status/* status:status
[Wed Mar 17 14:26:42 2004] [error] mod_jk child init 1 -2
[Wed Mar 17 14:26:43 2004] [error] jk2_init() Can't find child 2506 in 
scoreboard

... and going to the url just produces a 500 error.

Also The faq at http://jakarta.apache.org/tomcat/faq/connectors.html 
says that mod_jk is the preferred connector and that jk2 is not 
production quality.  My understanding was that jk was in maintence mode 
and jk2 is considered the stable connector.  Is the faq right or is it 
just out of date?

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


RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread D'Alessandro, Arthur
 For future, recommend snipping any real host/username/passwords for
security reasons.

I am not familiar with Informix, however, given a logged in session by
the user you specify, are you able to execute the query, and return 1 or
more records?

I recommend creating  dummy table just for validation with 1 record, 1
field to minimize the overhead.  A validation query is performed before
each connection object is handed out.

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 2:19 PM
To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
Services'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

To get this far I had to more the datasource resource defiition to the
context. I've rasie the debug to 9 but could see no additional loging
that
would help. Here is the context ...

Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
crossContext=false debug=9 displayName=Custom Fares
docBase=C:/Documents and Settings/pmahoney/My Documents/Travel
2/code/webapps/CustomFares/web
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/CustomFares privileged=false reloadable=false
swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
  Resource name=jdbc/OscarsDB scope=Shareable
type=javax.sql.DataSource/
  ResourceParams name=jdbc/OscarsDB
parameter
  namevalidationQuery/name
  valueselect count(*) from systables/value
/parameter
parameter
  nameurl/name
 
valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVE
R=os
cars_dbsrv/value
/parameter
parameter
  namepassword/name
  value1atan1a/value
/parameter
parameter
  namemaxActive/name
  value4/value
/parameter
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  namedriverClassName/name
  valuecom.informix.jdbc.IfxDriver/value
/parameter
parameter
  nameusername/name
  valuesy5t3m/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
  /ResourceParams
/Context

The stacktrace is...

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection,
pool
exhausted, cause:
java.util.NoSuchElementException: Could not create a validated object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjec
tPoo
l.java:851)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSourc
e.ja
va:140)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:5
18)
at
com.travel2.customFares.Query.getJdbcConnection(Query.java:95)
at com.travel2.customFares.Query.execute(Query.java:160)
at
com.travel2.customFares.CustomFaresService.GetFares(CustomFaresService.j
ava:
58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java
:402
)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.ja
va:3
09)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333
)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
ava:
339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
at

Re: tomcat certificate

2004-03-17 Thread Antonio Fiol Bonnín
Or trust the CA (import the CA certificate).



Andi Reinbrech wrote:

View the certificate when you get that prompt and then Trust the site.  This
is a once off
-Original Message-
From: secam secam [mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 11:09 AM
To: [EMAIL PROTECTED]
Subject: tomcat certificate

Hi all,

I've got ssl with tomcat, and a self signed
certificate
When i try to access my webapp via port 8443 (ssl)
i've got a security alert due to this reason:
the security certificate was send by a compagny i've
not trusted.
How can i solve this problem in order not to have the
security alert?
Regards,
Secam
	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez
Yahoo! Messenger sur http://fr.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
**
Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile 
or telephone and destroy the original message.
**

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




smime.p7s
Description: S/MIME Cryptographic Signature


RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Fixed at last! And of course it's and annoying fix. I've been using these
Informix JDBC 2.0 drivers for some months without problem. As a last resort
I downloaded the very latest version from the IBM site and... The rest is
now history :)

Many thanks to ALL your help. Very much appreciated. 

-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
Sent: 17 March 2004 19:37
To: [EMAIL PROTECTED]; Tomcat Users List; Parsons Technical Services
Subject: RE: Problem using JNDI/DBCP to get DataSouce


 For future, recommend snipping any real host/username/passwords for
security reasons.

I am not familiar with Informix, however, given a logged in session by
the user you specify, are you able to execute the query, and 
return 1 or
more records?

I recommend creating  dummy table just for validation with 1 record, 1
field to minimize the overhead.  A validation query is performed before
each connection object is handed out.

-Original Message-
From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 2:19 PM
To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
Services'
Subject: RE: Problem using JNDI/DBCP to get DataSouce

To get this far I had to more the datasource resource defiition to the
context. I've rasie the debug to 9 but could see no additional loging
that
would help. Here is the context ...

Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
crossContext=false debug=9 displayName=Custom Fares
docBase=C:/Documents and Settings/pmahoney/My Documents/Travel
2/code/webapps/CustomFares/web
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/CustomFares privileged=false reloadable=false
swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
  Resource name=jdbc/OscarsDB scope=Shareable
type=javax.sql.DataSource/
  ResourceParams name=jdbc/OscarsDB
parameter
  namevalidationQuery/name
  valueselect count(*) from systables/value
/parameter
parameter
  nameurl/name
 
valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFO
RMIXSERVE
R=os
cars_dbsrv/value
/parameter
parameter
  namepassword/name
  value1atan1a/value
/parameter
parameter
  namemaxActive/name
  value4/value
/parameter
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  namedriverClassName/name
  valuecom.informix.jdbc.IfxDriver/value
/parameter
parameter
  nameusername/name
  valuesy5t3m/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
  /ResourceParams
/Context

The stacktrace is...

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection,
pool
exhausted, cause:
java.util.NoSuchElementException: Could not create a validated object
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Gen
ericObjec
tPoo
l.java:851)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(Pooling
DataSourc
e.ja
va:140)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicData
Source.ja
va:5
18)
at
com.travel2.customFares.Query.getJdbcConnection(Query.java:95)
at com.travel2.customFares.Query.execute(Query.java:160)
at
com.travel2.customFares.CustomFaresService.GetFares(CustomFares
Service.j
ava:
58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso
rImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
dAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProv
ider.java
:402
)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCPr
ovider.ja
va:3
09)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider
.java:333
)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationS
trategy.j
ava:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at 
org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServ
letBase.j
ava:
339)
at 

Re: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
for the first question, any answer? :)


Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have 
to configure it by hand?? any how-to?? It's not mentioned in tomcat 5 
docs..

I used mod_jk, is jk2 prefered There's no linux release for it and 
when trying to build as the readme says, the build doesn't work at 
all...

I'm using suse 9 / apache 1.3 and tomcat 5.






--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Help, Page not found!!!!

2004-03-17 Thread Inandjo Taurel
hi,

i developed an application using tdk 2.1,jdk1.3.1 on a win2k box and it was 
working just fine!
Now that i try to move it to a unix machine with tomcat installed on it, i 
have this error:

Horrible Exception: java.lang.Exception: Screen template '/Home.vm' not 
found
On the unix box, there is not tdk, just tomcat installed and apache!
All i did was to copy my app folder on my win2k box to the webapp folder 
under tomcat on the linux machine!
Since there is no reference to any folder in the application configuration 
files, there was no modification on that side, the only thing was the 
addition of an environment variable (TDK_HOME).

Is there anything that i am missing or any mistake that i made?
This issue has dragging for the past week!
Thanx.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


RE: tomcat certificate

2004-03-17 Thread Mark Thomas
This is not correct. Tomcat does support CLIENT-CERT authentication
'out-of-the-box'. When combined with appropriate authorisation constraints in
web.xml you can limit access to specific URLs.

I have this working quite happily.

Mark 

 -Original Message-
 From: Rommel Sharma [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 23, 2004 11:28 AM
 To: Tomcat Users List
 Subject: Re: tomcat certificate
 
 Tomcat as such on its own does not parse and validate a certificate.
 I don't think its possible. You can identify a client through the
 certificate alias the client uses.
 Access to specific URLs depends on the server certificate 
 where you specify
 the URL and send the client your public key.
 I think there is no automatic mechanism in Tomcat that studies the
 certificate and allows access to specific URLs. This needs to 
 be implemented
 by any our deployed programs.
 
 - Original Message -
 From: secam secam [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 23, 2004 4:17 PM
 Subject: Re: tomcat certificate
 
  Thanks,
 
  Here is my real problem,
 
  I've got an external server that authentificate user and deliver a
 certicate with the trio User/Group/Role.
 
  In fact, i just want that the certificate give information 
 of the user to
 tomcat in order to permit the access to some specifics url.
 
  Is it possible?
 
  Regard's
 
  Secam
 
  Rommel Sharma [EMAIL PROTECTED] wrote:
  If you mean two way authentication using SSL, then you have 
 to write the
  code that reads clients certificate and matches it with one 
 present in
  client keystore on the server. You enable client authentication in
  server.xml for this and specify the serverkeystore and 
 password in it.
  Regards,
  Rommel Sharma.
 
  - Original Message -
  From: secam secam
  To:
  Sent: Monday, February 23, 2004 3:30 PM
  Subject: tomcat certificate
 
   hello,
  
   I'm a new user of tomcat.
   Can tomcat authenticate a user with a certifcate ?
  
   Thanks,
   Secam
  
  
   -
   Yahoo! Mail : votre e-mail personnel et gratuit qui vous 
 suit partout !
   Créez votre Yahoo! Mail
 
  *
  Disclaimer
 
  This message (including any attachments) contains
  confidential information intended for a specific
  individual and purpose, and is protected by law.
  If you are not the intended recipient, you should
  delete this message and are hereby notified that
  any disclosure, copying, or distribution of this
  message, or the taking of any action based on it,
  is strictly prohibited.
 
  *
  Visit us at http://www.mahindrabt.com
 
 
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  Yahoo! Mail : votre e-mail personnel et gratuit qui vous 
 suit partout !
  Créez votre Yahoo! Mail
 
 *
 Disclaimer
 
 This message (including any attachments) contains 
 confidential information intended for a specific 
 individual and purpose, and is protected by law. 
 If you are not the intended recipient, you should 
 delete this message and are hereby notified that 
 any disclosure, copying, or distribution of this
 message, or the taking of any action based on it, 
 is strictly prohibited.
 
 *
 Visit us at http://www.mahindrabt.com
 
 
 
 
 -
 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: JMX conflict in Tomcat 5.0

2004-03-17 Thread Mark Richards
Ok, I tried with Tomcat 5.0.19 and 4.1.29.  It works fine on 4.1.29 but it
fails on 5.0.19 (and .18) with the following error:

2004-03-17 15:35:44,683 [DEBUG] (SystemSelectionAction.java:124) -
com.sun.jdmk.comm.CommunicationException: java.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.io.InvalidClassException: javax.management.ObjectName; Local
class not compatible: stream classdesc serialVersionUID=1081892073854801359
local class serialVersionUID=-5467795090068647408
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
java.io.InvalidClassException: javax.management.ObjectName; Local
class not compatible: stream classdesc serialVersionUID=1081892073854801359
local class serialVersionUID=-5467795090068647408
java.io.InvalidClassException: javax.management.ObjectName; Local class not
compatible: stream classdesc serialVersionUID=1081892073854801359 local
class serialVersionUID=-5467795090068647408
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:240)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at
com.sun.jdmk.comm.RmiConnectorServerObjectImplV2_Stub.getAttribute(RmiConnec
torServerObjectImplV2_Stub.java:316)
at
com.sun.jdmk.comm.RmiConnectorClient.connect(RmiConnectorClient.java:711)
[snip]

So, it would appear that Tomcat 5's JMX jar is overriding my web-app's JMX
jar.

Can anyone tell me how Tomcat 5 uses JMX?  Is it possible to move Tomcat's
JMX jar into the server/lib directory?  I understand that Tomcat can use JMX
for the management webapp, but is it required, or optional?  Are there any
other reasons to use JMX?  The tomcat installation will be deployed
stand-alone with only my web app and whatever comes standard with Tomcat 5
(i.e. the management web app, etc).

Thanks,

Mark


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: March 17, 2004 12:24 PM
To: Tomcat Users List
Subject: RE: JMX conflict in Tomcat 5.0



Hi,

   The jmx-remote.jar and jmx-remote-tools.jar were in the archive
I
downloaded from jakarta.apache.com (Tomcat 5.0.18).

Perhaps it's worth trying with 5.0.19?

Back to your original question: there's also commons-modeler
(http://jakarta.apache.org/commons/modeler/) to consider.  Tomcat uses
modeler fairly heavily to build its beans, and modeler had an MX4J
dependency last I checked.

Yoav Shapira


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



Apache not starting with Mod_JK

2004-03-17 Thread Chris Haines
Hello,

I am trying to start Apache with mod_jk. When I try starting apache, I 
get the following error. I haven't modified the admin.xml file. If 
anyone can help, I would greatly appreciated it.

Syntax error on line 25 of 
/usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
Expected /!-- but saw /Context

Thank you.

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


Re: Apache not starting with Mod_JK

2004-03-17 Thread Joseph Shraibman
Seems strange that apache would complain about a file only tomcat should 
deal with.

Chris Haines wrote:
Hello,

I am trying to start Apache with mod_jk. When I try starting apache, I 
get the following error. I haven't modified the admin.xml file. If 
anyone can help, I would greatly appreciated it.

Syntax error on line 25 of 
/usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
Expected /!-- but saw /Context

Thank you.

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


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


Re: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Emerson Cargnin
my question is: does tomcat 5 have automatic generation of 
mod_jk.conf and if does, is it the same of 3.2.3?

Emerson Cargnin wrote:
for the first question, any answer? :)


Hi all

I'm migrating a tomcat 3.2.3 isntallation to version 5.
When using 3.2.3, I used to use automatic mod_jk.conf-auto generation 
for use by apache. Does version 5 has the same feature? Or do I have 
to configure it by hand?? any how-to?? It's not mentioned in tomcat 5 
docs..

I used mod_jk, is jk2 prefered There's no linux release for it 
and when trying to build as the readme says, the build doesn't work 
at all...

I'm using suse 9 / apache 1.3 and tomcat 5.








--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache not starting with Mod_JK

2004-03-17 Thread Thomas Tang
Post up your httpd.conf and jk configurations.




Joseph Shraibman [EMAIL PROTECTED] 
03/17/2004 03:58 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
Re: Apache not starting with Mod_JK






Seems strange that apache would complain about a file only tomcat should 
deal with.

Chris Haines wrote:
 Hello,
 
 I am trying to start Apache with mod_jk. When I try starting apache, I 
 get the following error. I haven't modified the admin.xml file. If 
 anyone can help, I would greatly appreciated it.
 
 Syntax error on line 25 of 
 /usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
 Expected /!-- but saw /Context
 
 Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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




Tomcat5 service on Windows

2004-03-17 Thread Daryl Stultz
Hi folks, I know this question has been asked, but I couldn't find an
answer.

I have installed Tomcat 5.0.19 on Windows 2000 / Java 1.4.1. Right out of
the box the service fails to run. With service.bat I can install and
remove the service successfully. Starting the service from the services
panel yields:

Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respond to the start or control request in
a
timely fashion

Running startup.bat works fine.

This is the same condition Mark Turansky reports with 5.0.18.

Running net start tomcat5 yields an equally cryptic error which I can't
remember (nor repeat since I reverted to the previous setup).

Clay Hensley suggested a registry edit that worked for him. No such luck
for me.

This 5.0.19 install is an upgrade from 4.0.24. I did not uninstall 4.0.24,
I simply renamed directories. I did a test upgrade on another machine that
is configured the same and it worked fine. The only notably difference
between the machines is that the failing machine is multi processor.

Any hints for exploring the system would be great. Thanks.

Daryl Stultz
_
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[EMAIL PROTECTED]


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



Tomcat 4.1.12LE Disappears

2004-03-17 Thread Gary Fix
Hi,
We are running Tomcat 4.1.12LE under Win2000 SP2 within a command window.
We use j2sdk1.4.1_02 for our servlet code.
We also use the isapi_redirect.dll dated 11/8/2002.
About the time we upgraded from version 3 of Tomcat to version 4, we strated having 
problems 
of Tomcat disappearing with no apparent error messages.
In the last 8 days, it has disappeared 8 times.
I have searched for a solution with no luck.
The only error messages I could find are in the isapi_redirect.log and some files 
named 
hs_err_pid1208.log showing up in the Tomcat \bin folder.

The  isapi_redirect.log error messages look like this:
[Mon Mar 15 16:19:39 2004]  [jk_isapi_plugin.c (724)]: HttpExtensionProc error, 
service() failed
[Mon Mar 15 16:19:40 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 1
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 0
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 2
[Mon Mar 15 16:19:41 2004]  [jk_isapi_plugin.c (724)]: HttpExtensionProc error, 
service() failed

Notice these seem to be loggin about once each second.
We also some some console messages like this:
361031 [Thread-8] WARN common.ChannelSocket  - server has closed the current con
nection (-1)

The hs_err_pid1208.log files have errors like this:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77FCB8F4
Function=RtlFreeHeap+0x263
Library=C:\WINNT\System32\ntdll.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.freeConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLFreeConnect(JdbcOdbc.java:3287)
at sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDriver.java:952)
at sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.java:740)
at sun.jdbc.odbc.JdbcOdbcConnection.finalize(JdbcOdbcConnection.java:87)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

Dynamic libraries:
followed by a bunch of DLLs.
Any and all suggestions would be greatly appreciated.
thanks...gary...


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



RE: Help, Page not found!!!!

2004-03-17 Thread Mike Curwen
is the tdk in your common/lib or shared/lib directory on the old box?
 


 -Original Message-
 From: Inandjo Taurel [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 17, 2004 1:56 PM
 To: [EMAIL PROTECTED]
 Subject: Help, Page not found
 
 
 hi,
 
 i developed an application using tdk 2.1,jdk1.3.1 on a win2k 
 box and it was 
 working just fine!
 Now that i try to move it to a unix machine with tomcat 
 installed on it, i 
 have this error:
 
 Horrible Exception: java.lang.Exception: Screen template '/Home.vm' 
 not
 found
 
 On the unix box, there is not tdk, just tomcat installed and 
 apache! All i did was to copy my app folder on my win2k box 
 to the webapp folder 
 under tomcat on the linux machine!
 Since there is no reference to any folder in the application 
 configuration 
 files, there was no modification on that side, the only thing was the 
 addition of an environment variable (TDK_HOME).
 
 Is there anything that i am missing or any mistake that i 
 made? This issue has dragging for the past week!
 
 Thanx.
 
 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
 http://join.msn.com/?page=features/virus
 
 
 -
 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: Tomcat5 service on Windows

2004-03-17 Thread Daryl Stultz
Tomcat Users List [EMAIL PROTECTED] writes:
I found Mark's reply:

[mark wrote]
The error I described below was fixed by installing a public JRE.

I do not want a public runtime!  I want the java installation in c:\java
only, NOT in 
c:\program files\java\j2re1.4.2_03!!!

Developers, please remove this ridiculous dependency.  4.1.28 worked just
fine using 
my single installation at c:\java, but 5.0.18 won't?!?!

Is this the current state of Tomcat 5.0? It requires a public JRE? What is
a public JRE? Will installing one mean that I can't compile JSP's since
it's a JRE and not a JDK?

Thanks.

(Is this a developer list issue or user list?

[daryl wrote]
Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respond to the start or control request in
a
timely fashion

Running startup.bat works fine.

This is the same condition Mark Turansky reports with 5.0.18.


Daryl Stultz
_
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[EMAIL PROTECTED]


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



RE: JDBC problems with MySQL

2004-03-17 Thread Kumar Abhay-CAK203C
Dear Steve,

I posted this problem around 3 months back and I am daily reading the forum, hoping 
that one day somebody will give a solution.
I will deeply appreciate you if u share the solution with me if u r able to find.

Good Luck 

Best Regards
Abhay Kumar


-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC problems with MySQL


Users

I know there has been a bazillion messages about this.  I searched the 
archives and couldn't find anything to solve my extremely annoying issue.  It has to 
be something really simple but I just can't find it.

 

My System:

Solaris 9

Tomcat 5.0.19

MySQL 4.0.18

Connector J 3.0.11

 

I have the connector J jar in the /usr/local/tomcat/common/lib dir.

I have basically copied the HOW-TO located at.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html

 

and my result is this.


Results


Foo Not Connected
Bar -1

 

I have tried everything I can think of.  I verified the database and the user/password 
combo.  Works good.  I even created a simple Java app that connects and performs 
queries, which worked.  That would indicate everything is cool with the Connector J.  
I have verified that the jdbc/TestDB is in the context and it is.  As best I can tell 
ds (DataSource) is coming back not null, but the call to getConnection is failing.  I 
created a little more verbose web app and get the following message.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for 
connect URL 'null', cause: No suitable driver

 

This has to be something simple, because this works fine on my old machine. I know I 
am forgetting some small step that I did the first time and failed to do again.  Trust 
me I have checked the configs about a million times, and
can't find any differences.   Any help would be appreciated.

 

Sorry to be so vague here, but this is really simple. I don't know what else to 
include for info.

 

Steve Gums

[EMAIL PROTECTED]

 


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



Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-17 Thread Jerald Powel

Hi,

Thank you for that, and excuse my delay in responding. I tried what you suggested, 
but found the LogManager class did not contain such a method. It did have one method 
to speak of - getLogManager() which returns an instance of LogManager, but that also 
has no shutdown method. I found reset():

LogManager.getLogManager().reset();

I am using JDK 1.4.2_03. How might I sort this hassle out please? It seems to be 
happening very infrequently, but is definately a show stopper!

thanks

G.


This has to do with Log4j. Make sure you set up a servlet context listener 
and do LogManager.shutdown() in the contextDestroyed() method. This will 
take care of your troubles.

Jake

At 02:13 AM 3/16/2004 +, you wrote:

Hello all,

 Can anyone shed some light on the above error please? On the web, I 
 saw it often associated with NoClassDefFoundError, and something called 
 DOMConfigurator.

 May app does indeed parse XML (JDom and Nano XML). Is this message 
 linked to an error possibly residing in my XML parsing?

 I also see that it is associated with the stop() method on the 
 WebappClassLoader'. But I am not calling such a method.

Any info appreciated

G.




-
 Yahoo! Messenger - Communicate instantly...Ping your friends today! 
 Download Messenger Now


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




-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now

Re: JDBC problems with MySQL

2004-03-17 Thread Adrian Lanning
Abhay,

Back on 3/17/04 9:50AM, Steve says he got it to work...


I got this to work by either placing the context directly into the
server.xml file or placing the xml file into it's correct location in
/usr/local/tomcat/conf/Catalina/localhost/DBTest.xml

Not exactly sure the reason, but it is working now.

Steve


Check the archives...

Adrian Lanning

- Original Message - 
From: Kumar Abhay-CAK203C [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 1:01 PM
Subject: RE: JDBC problems with MySQL


 Dear Steve,

 I posted this problem around 3 months back and I am daily reading the
forum, hoping that one day somebody will give a solution.
 I will deeply appreciate you if u share the solution with me if u r able
to find.

 Good Luck

 Best Regards
 Abhay Kumar


 -Original Message-
 From: Steve Gums [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 11:57 AM
 To: [EMAIL PROTECTED]
 Subject: JDBC problems with MySQL


 Users

 I know there has been a bazillion messages about this.  I
searched the archives and couldn't find anything to solve my extremely
annoying issue.  It has to be something really simple but I just can't find
it.



 My System:

 Solaris 9

 Tomcat 5.0.19

 MySQL 4.0.18

 Connector J 3.0.11



 I have the connector J jar in the /usr/local/tomcat/common/lib dir.

 I have basically copied the HOW-TO located at.


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
 to.html



 and my result is this.


 Results


 Foo Not Connected
 Bar -1



 I have tried everything I can think of.  I verified the database and the
user/password combo.  Works good.  I even created a simple Java app that
connects and performs queries, which worked.  That would indicate everything
is cool with the Connector J.  I have verified that the jdbc/TestDB is in
the context and it is.  As best I can tell ds (DataSource) is coming back
not null, but the call to getConnection is failing.  I created a little more
verbose web app and get the following message.

 org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver



 This has to be something simple, because this works fine on my old
machine. I know I am forgetting some small step that I did the first time
and failed to do again.  Trust me I have checked the configs about a million
times, and
 can't find any differences.   Any help would be appreciated.



 Sorry to be so vague here, but this is really simple. I don't know what
else to include for info.



 Steve Gums

 [EMAIL PROTECTED]




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



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



RE: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Galam
Shapira,
 
I have a question! 
 
If I use Tomcat5 standalone in production, do I still need to configure the mod_jk ?  
The mod_jk has been giving me too much troubles, and it would be really great if it is 
not needed in standalone enviroment. Thanks!
 
Galam.
 
 


Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
Tomcat 5 can be used standalone to serve static content including
images, yes. The same is true for tomcat 3 and 4 as well. People are
using tomcat in production without a front-end server to handle static
content, yes. Is there a drop in performance? Probably yes, but it
depends on the static content, the traffic your site gets, the hardware
and software configuration, and a host of other variables: frequently
the drop in performance is better than the additional maintenance and
setup costs of a separate front-end.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 2:16 PM
To: Tomcat Users List
Subject: Re: apache 1.3 tomcat 5.0.19

I have a complementary question, taht I know that i have being asked
before, but didn't find any answer, it's related to my previous
question:

- Tomcat 5 can be used directly (in production) without apache??? For
serving static pages and images??? I mean, there are anybody using it
direct in production, without any drop in performance?

Emerson Cargnin wrote:
 Hi all

 I'm migrating a tomcat 3.2.3 isntallation to version 5.
 When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
 for use by apache. Does version 5 has the same feature? Or do I have
to
 configure it by hand?? any how-to?? It's not mentioned in tomcat 5
docs..

 I used mod_jk, is jk2 prefered There's no linux release for it
and
 when trying to build as the readme says, the buildI doesn't work at
all...

 I'm using suse 9 / apache 1.3 and tomcat 5.




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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




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


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


Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

Re: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Adrian Lanning
Nope,
you only need jk or jk2 if you are using another webserver as a front-end to
Tomcat.
Adrian Lanning

- Original Message - 
From: Galam [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 5:59 PM
Subject: RE: apache 1.3 tomcat 5.0.19


 Shapira,

 I have a question!

 If I use Tomcat5 standalone in production, do I still need to configure
the mod_jk ?  The mod_jk has been giving me too much troubles, and it would
be really great if it is not needed in standalone enviroment. Thanks!

 Galam.




 Shapira, Yoav [EMAIL PROTECTED] wrote:
 Hi,
 Tomcat 5 can be used standalone to serve static content including
 images, yes. The same is true for tomcat 3 and 4 as well. People are
 using tomcat in production without a front-end server to handle static
 content, yes. Is there a drop in performance? Probably yes, but it
 depends on the static content, the traffic your site gets, the hardware
 and software configuration, and a host of other variables: frequently
 the drop in performance is better than the additional maintenance and
 setup costs of a separate front-end.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 17, 2004 2:16 PM
 To: Tomcat Users List
 Subject: Re: apache 1.3 tomcat 5.0.19
 
 I have a complementary question, taht I know that i have being asked
 before, but didn't find any answer, it's related to my previous
 question:
 
 - Tomcat 5 can be used directly (in production) without apache??? For
 serving static pages and images??? I mean, there are anybody using it
 direct in production, without any drop in performance?
 
 Emerson Cargnin wrote:
  Hi all
 
  I'm migrating a tomcat 3.2.3 isntallation to version 5.
  When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
  for use by apache. Does version 5 has the same feature? Or do I have
 to
  configure it by hand?? any how-to?? It's not mentioned in tomcat 5
 docs..
 
  I used mod_jk, is jk2 prefered There's no linux release for it
 and
  when trying to build as the readme says, the buildI doesn't work at
 all...
 
  I'm using suse 9 / apache 1.3 and tomcat 5.
 
 
 
 
 --
 Emerson Cargnin
 Analista de Sistemas
 Setor de Desenvolvimento de Sistemas - TRE-SC
 tel : (048) - 251-3700 - Ramal 3181
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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


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


 Do you Yahoo!?
 Yahoo! Mail - More reliable, more storage, less spam

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



RE: apache 1.3 tomcat 5.0.19

2004-03-17 Thread Randy Harrison


Galem,

Mod_jk and mod_jk2 are connectors between tomcat and a standard webserver(apache, 
etc.). If you are going to use tomcat as a stanalone sever you don't
need to connect to apache.

Short answer = no.

Randy Harrison
Developer, eWatch Services
PR Newswire
612 243-0601 x1120
[EMAIL PROTECTED]


   
   
  Galam
   
  [EMAIL PROTECTED]To:   Tomcat Users List [EMAIL 
PROTECTED]   
  cc: 
   
   Subject:  RE: apache 1.3 tomcat 5.0.19  
   
  03/17/2004 04:59 
   
  PM   
   
  Please respond to
   
  Tomcat Users
   
  List
   
   
   
   
   




Shapira,

I have a question!

If I use Tomcat5 standalone in production, do I still need to configure the mod_jk ?  
The mod_jk has been giving me too much troubles, and it would be
really great if it is not needed in standalone enviroment. Thanks!

Galam.




Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
Tomcat 5 can be used standalone to serve static content including
images, yes. The same is true for tomcat 3 and 4 as well. People are
using tomcat in production without a front-end server to handle static
content, yes. Is there a drop in performance? Probably yes, but it
depends on the static content, the traffic your site gets, the hardware
and software configuration, and a host of other variables: frequently
the drop in performance is better than the additional maintenance and
setup costs of a separate front-end.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 2:16 PM
To: Tomcat Users List
Subject: Re: apache 1.3 tomcat 5.0.19

I have a complementary question, taht I know that i have being asked
before, but didn't find any answer, it's related to my previous
question:

- Tomcat 5 can be used directly (in production) without apache??? For
serving static pages and images??? I mean, there are anybody using it
direct in production, without any drop in performance?

Emerson Cargnin wrote:
 Hi all

 I'm migrating a tomcat 3.2.3 isntallation to version 5.
 When using 3.2.3, I used to use automatic mod_jk.conf-auto generation
 for use by apache. Does version 5 has the same feature? Or do I have
to
 configure it by hand?? any how-to?? It's not mentioned in tomcat 5
docs..

 I used mod_jk, is jk2 prefered There's no linux release for it
and
 when trying to build as the readme says, the buildI doesn't work at
all...

 I'm using suse 9 / apache 1.3 and tomcat 5.




--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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




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


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


 Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam






Re: mod_jk errors when using tomcat 5 and apache

2004-03-17 Thread Galam
 
 
 
Hello, 
 
I am desparate to find the solution to the mod_jk problem.  Anyone can help?
 
Thanks!
 


Galam [EMAIL PROTECTED] wrote:
Hi,


I have a few questions concerning running Apache 1.3.29 and Tomcat5 in a virtual 
hosting enviroment. The tomcat5 server runs fine, and I can access the sites using the 
browser. The only problem is that I got lots of errors in the mod_jk.log. I've 
attached the logs and my configuration in server.xml and workers.properties. I've been 
googling for a whole day but I still couldn't find an answer... It seems that there is 
no official solution to this problem. If anyone of you have the same experiences and 
have the problems resolved, please share your thougths with us. Thanks!


Another question I want to ask is that there are JK and JK2 connectors, which one 
should I use to connect tomcat5 to Apache1.3.29? The mod_jk.so I used came from 
Tomcat4.0.3, I am not sure whether it is compatible with Tomcat5. The output from 
catalina.out log is complaining about the channel sockets, but the channel sockets 
only appears in the JK2 property files, not the JK one. Is it possible that the Apache 
use the wrong JK to talk to Tomcat? 

Any helps will be greately appreciated!

Thanks!






-- mod_jk log 
[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: 
Error - jk_tcp_socket_recvfull failed
[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1009)]: Error reading reply
[Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, 
ajp_get_reply failed in send loop 0




 tomcat 5 log 

Total number of files loaded = 4335
Mar 11, 2004 8:44:15 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:15 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:20 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:20 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:25 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:44:25 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:44:43 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:44:48 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 11, 2004 8:45:03 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:03 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:12 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Mar 11, 2004 8:45:12 AM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 11, 2004 8:45:25 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
java.lang.NullPointerException




Here are my server.xml and workers.properties




- server.xml (partial) 





maxProcessors=150 enableLookups=true redirectPort=8443 acceptCount=100 
debug=0 connectionTimeout=2
useURIValidationHack=false 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

timestamp=true/

prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/





sinclude(`/var/tomcat4/conf/sites.m4') 






 workers.properties-

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1




-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

  1   2   >