problem with multiple application on Tomcat

2002-01-01 Thread puneet sachar

To the technical team Tomcat ,

Sir I have a problem, I’m using tomcat server 3.3 ,
now I have 3 different application rather one
application witrh different version 
Say for client A I have some classes that is version
1.0
For client B I have some classes that is version 2.0
which have might have exactly same classes that is
present in version 1.o or modified classes as required
by client B and some extra classes
And for Client C I have version 3.0 which again might
have same classes or modified classes .

Now I problem is I have to run that application on
same tomcat server but I want different application
only respond to their classes 

Is it I have to add 3 different JVM for different for
different classes or different Servlets context for
different classes and how would I add 3 different JVM
in one container.

If u doesn’t follow my question please take this case
study

As I mention I have 3 different applications running
on my tomcat each have same class A
And Class A for client A prints “in client A”
For Class A for client B prints “in client B”
And For Class A for client C prints “in client C”

And suppose if class A is called by any one of client
which is print..

{According to me the class, which is set in class
path, is to be printed and I want classes should
respond to respective classes} 

Please Sir I ‘m stuck because of this problem looking
forward for your suggestions

Regards 
Puneet Sachar
e-Developer
Shyama Software Solutions
New Delhi 



__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat RPMs?

2002-01-01 Thread Gerrit Kuilder

Hi Donald,

I also build my tomcat from RPM's, also hat no startup or other .sh's.


I got the scripts from the cvs tree but found out later that I don't 
need them. On redhat 7.1 I can start and stop with 'service tomcat4 
start' and 'service tomcat4 stop'.

I suppose the .conf file is used for setting JAVA_HOME etc.

the rpm's worked (and works) for me , althoug I have to go localhost:8180


HTH

Regards,

Gerrit
Donald Lee wrote:

> I went to
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/rpms/
> downloaded tomcat4-4.0.1-1.noarch.rpm
> installed using rpm -iv tomcat4-4.0.1-1.noarch.rpm
> everything appeared to be going ok until I came to the part in the doc
> file I found called running.txt
> 
> "execute shell command:
> $CATALINA_HOME/bin/startup.sh"
> 
> That didn't work.
> It turns out my Tomcat installation went to 
> /var/tomcat4
> which is where I set $CATALINA_HOME to.
> I looked in the $CATALINA_HOME/bin directory and to my surprise, there
> was no startup.sh, only a bootstrap.jar.  I searched my whole system
> for a startup.sh and could not find one, so I decided that something
> was dreadfully wrong, and went back to the tomcat site.
> I went into
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/
> this time and downloaded jakarta-tomcat-4.0.1.zip
> I unpacked it and it created it's own directory of
> jakarta-tomcat-4.0.1.  I basically cut and pasted the contents of that
> directory into my /var/tomcat4 directory and over wrote all
> directories and files.  I then ran $CATALINA_HOME/bin/startup.sh and
> tested my installation with http://localhost:8080 and all appears to
> be well.I have a question, when I installed the rpm it created a
> directory etc/tomcat4/conf/tomcat4.conf.  As this was not part of my
> list of installation procedures, can I assume that this directory/file
> is not needed?  I was wondering if I could safely delete this
> directory or is something left out of the running.txt file?
> Can anybody tell me what the purpose of the rpms are if they do not
> properly install tomcat?
> 
> Thanks, and God Bless and have a happy new year!
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Remove Directory Listing from Tomcat

2002-01-01 Thread Lars Nielsen Lind

How do I remove directory listing from Tomcat.

Best regards,
Lars Nielsen Lind



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat RPMs?

2002-01-01 Thread Donald Lee

Thanks, it would have been nice to have a bit of documentation that referred to these 
new RPMs.  Since the docs I was using came from the RPMs themselves, they are 
obviously outdated.
Happy New Year!!!

-Original Message-
From: Gerrit Kuilder [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 01, 2002 7:53 AM
To: Tomcat Users List
Subject: Re: Tomcat RPMs?


Hi Donald,

I also build my tomcat from RPM's, also hat no startup or other .sh's.


I got the scripts from the cvs tree but found out later that I don't 
need them. On redhat 7.1 I can start and stop with 'service tomcat4 
start' and 'service tomcat4 stop'.

I suppose the .conf file is used for setting JAVA_HOME etc.

the rpm's worked (and works) for me , althoug I have to go localhost:8180


HTH

Regards,

Gerrit
Donald Lee wrote:

> I went to
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/rpms/
> downloaded tomcat4-4.0.1-1.noarch.rpm
> installed using rpm -iv tomcat4-4.0.1-1.noarch.rpm
> everything appeared to be going ok until I came to the part in the doc
> file I found called running.txt
> 
> "execute shell command:
> $CATALINA_HOME/bin/startup.sh"
> 
> That didn't work.
> It turns out my Tomcat installation went to 
> /var/tomcat4
> which is where I set $CATALINA_HOME to.
> I looked in the $CATALINA_HOME/bin directory and to my surprise, there
> was no startup.sh, only a bootstrap.jar.  I searched my whole system
> for a startup.sh and could not find one, so I decided that something
> was dreadfully wrong, and went back to the tomcat site.
> I went into
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/
> this time and downloaded jakarta-tomcat-4.0.1.zip
> I unpacked it and it created it's own directory of
> jakarta-tomcat-4.0.1.  I basically cut and pasted the contents of that
> directory into my /var/tomcat4 directory and over wrote all
> directories and files.  I then ran $CATALINA_HOME/bin/startup.sh and
> tested my installation with http://localhost:8080 and all appears to
> be well.I have a question, when I installed the rpm it created a
> directory etc/tomcat4/conf/tomcat4.conf.  As this was not part of my
> list of installation procedures, can I assume that this directory/file
> is not needed?  I was wondering if I could safely delete this
> directory or is something left out of the running.txt file?
> Can anybody tell me what the purpose of the rpms are if they do not
> properly install tomcat?
> 
> Thanks, and God Bless and have a happy new year!
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: tomcat servlet output

2002-01-01 Thread Mark

At 05:13 PM 12/31/2001 -0800, you wrote:
>
>My servlets in Tomcat works just fine, but I was wondering where does the
'System.out.println("bla bla...")' goes when the servelet is executed.  I
would like to use this to debug my servlet.
>
>thanks,
>
>Sanjeev


In my case (Win 2K), System.out.println goes to the Catalina console window
that's spawned when Tomcat is started.




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: tomcat servlet output

2002-01-01 Thread Micael Padraig Og mac Grene

At 10:59 AM 1/1/02 -0500, you wrote:
>At 05:13 PM 12/31/2001 -0800, you wrote:
> >
> >My servlets in Tomcat works just fine, but I was wondering where does the
>'System.out.println("bla bla...")' goes when the servelet is executed.  I
>would like to use this to debug my servlet.
> >
> >thanks,
> >
> >Sanjeev
>
>
>In my case (Win 2K), System.out.println goes to the Catalina console window
>that's spawned when Tomcat is started.


Same with me RedHat 7.2


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: tomcat servlet output

2002-01-01 Thread Pae Choi

That will look ugly even though it's for the test purpose. Try
use the log file. You will more than likely need them in the
production environment unless that is not your preference
and no necessary.


Pae


> At 05:13 PM 12/31/2001 -0800, you wrote:
> >
> >My servlets in Tomcat works just fine, but I was wondering where does the
> 'System.out.println("bla bla...")' goes when the servelet is executed.  I
> would like to use this to debug my servlet.
> >
> >thanks,
> >
> >Sanjeev
>
>
> In my case (Win 2K), System.out.println goes to the Catalina console
window
> that's spawned when Tomcat is started.
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




A Present for Sanjeev

2002-01-01 Thread Micael Padraig Og mac Grene

At 07:52 AM 1/1/02 -0800, you wrote:
>At 10:59 AM 1/1/02 -0500, you wrote:
>>At 05:13 PM 12/31/2001 -0800, you wrote:
>> >
>> >My servlets in Tomcat works just fine, but I was wondering where does the
>>'System.out.println("bla bla...")' goes when the servelet is executed.  I
>>would like to use this to debug my servlet.
>> >
>> >thanks,
>> >
>> >Sanjeev


If you want a debugger you can put in easier than using 
System.out.println("blah blah ..."), I include one you are welcome to use, 
but not sell, with this reply.  I use it all the time.  Essentially you 
just go (where "data" is the variable you want to test): new 
Debugger(true).add(data).log(true);  If you want to add lots of variables, 
new Debugger(true).add(data1).add(data2).add(dataN).log(true);  The  The 
value "true" in log(true) tells the application to save the last run of the 
log.  Using "false" as in log(false) would overwrite the last run.  You can 
figure out the rest easily enough.  There are a few rather obvious choices 
and all data types are overloaded and covered. Enjoy!

- micael


/* tccjava.toolbox.debugger.Debugger: December 9, 2001
 *
 * Copyright 2001 Swords and Ploughshares, Ltd. All Rights Reserved.
 *
 * This software is the proprietary information of Swords and Ploughshares, Ltd.
 * Use is subject to license terms. */
package tccjava.toolbox.debugger;

import java.io.IOException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.Date;
import java.util.StringTokenizer;

import tccjava.JavaPlatform;

/**  This class is for debugging and logging values
  *  in Java classes and applications -- The class
  *  will log any values without difficulty -- Further,
  *  having a log which is time stamped will allow
  *  the user to make decisions based on looking at
  *  the history of an application and will allow a
  *  look at whatever length of values may occur,
  *  unlike with a DOS window: the application
  *  overloads add([Whatever]) methods for all data
  *  types.
  *  @authorMicael Padraig Og mac Grene
  *  @version   1.2: 21 April 2001
  *  @since Version 1.2 */
public class Debugger {
private FileWriterwriter;
private PrintWriter  printer;
private StringBuffer  strbuf = new StringBuffer();
private String  path;
private boolean showtype;

/**  The default constructor, which sets the default path of the debugger 
logs. */
public Debugger() {
setPath("C", new String [] { JavaPlatform.version, "jre", "classes", 
"tccjava", "bugs" }, "defaultlog", "bug");
}

/**  Constructor that informs the application to show the type of variables
  *  tested dureing debugging.
  *  @param showtype If set to true, shows the type of variables, e.g. int,
  *  class, short, etc. The default of the debugger logs is also set. */
public Debugger(boolean showtype) {
this.showtype = showtype;
setPath("C", new String [] { JavaPlatform.version, "jre", "classes", 
"tccjava", "bugs" }, "defaultlog", "bug");
}

/**  Allows the user to set the path for the debugger logs.
  *  @param root The root of the path, usually "C" for a PC and ""
  *  for Linux, Unix.
  *  @param directories The directories along the path to the file, not
  *  including the file.
  *  @param logFileName The name of the log file.
  *  @param ext The name of the extension of the log file, the default
  *  is "bug".
  *  @return The Debugger value. */
public Debugger setPath(String root, String [] directories, String 
logFileName, String ext) {
/*  Make a buffer to hold values temporarily. */
StringBuffer strbuf = new StringBuffer();

/*  Add ":" if the root is a PC root. */
if(root.length() > 0 && Character.isLetter(root.charAt(0))) {
strbuf.append(root + ":");
}

/*  Use platform independent File.separator values. */
for (int i = 0; i < directories.length; i++) {
strbuf.append(File.separator + directories[i]);
}

/*  Create the directories for the file. */
new File(strbuf.toString()).mkdirs();

/*  Add the file name to the directories. */
strbuf.append(File.separator + logFileName);

/*  Add the extension to the file name. */
strbuf.append("." + ext);

/*  Create the file. */
try {
new File(strbuf.toString()).createNewFile();
} catch (IOException ioe) {
ioe.printStackTrace();
}

/*  Set the Debugger class path

Re:Batteries for A Present for Sanjeev

2002-01-01 Thread Micael Padraig Og mac Grene

At 09:04 AM 1/1/02 -0800, you wrote:
>At 07:52 AM 1/1/02 -0800, you wrote:
>>At 10:59 AM 1/1/02 -0500, you wrote:
>>>At 05:13 PM 12/31/2001 -0800, you wrote:
>>> >
>>> >My servlets in Tomcat works just fine, but I was wondering where does the
>>>'System.out.println("bla bla...")' goes when the servelet is executed.  I
>>>would like to use this to debug my servlet.
>>> >
>>> >thanks,
>>> >
>>> >Sanjeev
>
>
>If you want a debugger you can put in easier than using 
>System.out.println("blah blah ..."), I include one you are welcome to use, 
>but not sell, with this reply.  I use it all the time.  Essentially you 
>just go (where "data" is the variable you want to test): new 
>Debugger(true).add(data).log(true);  If you want to add lots of variables, 
>new Debugger(true).add(data1).add(data2).add(dataN).log(true);  The  The 
>value "true" in log(true) tells the application to save the last run of 
>the log.  Using "false" as in log(false) would overwrite the last 
>run.  You can figure out the rest easily enough.  There are a few rather 
>obvious choices and all data types are overloaded and covered. Enjoy!
>
>- micael


You need, of course, Sanjeev, to set the name of the jdk you are 
using.  The debugger class references the following class:

package tccjava;

public class JavaPlatform {
 public static final String version = "j2sdk1.4.0-beta3";
}

And, you need to set the path for you log files as show in the constructors 
of the debugger, using this JavaPlatform file.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Ribbons on A Present for Sanjeev

2002-01-01 Thread Micael Padraig Og mac Grene

At 09:04 AM 1/1/02 -0800, you wrote:
>At 07:52 AM 1/1/02 -0800, you wrote:
>>At 10:59 AM 1/1/02 -0500, you wrote:
>>>At 05:13 PM 12/31/2001 -0800, you wrote:
>>> >
>>> >My servlets in Tomcat works just fine, but I was wondering where does the
>>>'System.out.println("bla bla...")' goes when the servelet is executed.  I
>>>would like to use this to debug my servlet.
>>> >
>>> >thanks,
>>> >
>>> >Sanjeev


And, here is even a javadoc for the classes.  Wahla! ;-)



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Re: problem with multiple application on Tomcat

2002-01-01 Thread Tom Drake

Puneet:

The answer to your problem is simple. You can simply package 
and deploy each set of classes as a seperate web application 
with it's own context (e.g. a, b, and c). Under each context is 
a WEB-INF/lib directory that would hold the jar file that 
contains the correct versions of all the classes used by that 
clients application. 

This way, when your user requests a URL from context 'a', 
the servlet, jsp, bean, ... code that handles the request will be
loaded from the jar file in the 'a' context. Similarly for the the
other contexts.

This will all run under one JVM, but each context will be loaded
via a different class loader.

Unless I've completely misunderstood your question, this should
be all there is to it.

Good luck, and happy new year.

Tom

- Original Message - 
From: "puneet sachar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 01, 2002 2:57 AM
Subject: problem with multiple application on Tomcat 


| To the technical team Tomcat ,
| 
| Sir I have a problem, I'm using tomcat server 3.3 ,
| now I have 3 different application rather one
| application witrh different version 
| Say for client A I have some classes that is version
| 1.0
| For client B I have some classes that is version 2.0
| which have might have exactly same classes that is
| present in version 1.o or modified classes as required
| by client B and some extra classes
| And for Client C I have version 3.0 which again might
| have same classes or modified classes .
| 
| Now I problem is I have to run that application on
| same tomcat server but I want different application
| only respond to their classes 
| 
| Is it I have to add 3 different JVM for different for
| different classes or different Servlets context for
| different classes and how would I add 3 different JVM
| in one container.
| 
| If u doesn't follow my question please take this case
| study
| 
| As I mention I have 3 different applications running
| on my tomcat each have same class A
| And Class A for client A prints "in client A"
| For Class A for client B prints "in client B"
| And For Class A for client C prints "in client C"
| 
| And suppose if class A is called by any one of client
| which is print..
| 
| {According to me the class, which is set in class
| path, is to be printed and I want classes should
| respond to respective classes} 
| 
| Please Sir I 'm stuck because of this problem looking
| forward for your suggestions
| 
| Regards 
| Puneet Sachar
| e-Developer
| Shyama Software Solutions
| New Delhi 
| 
| 
| 
| __
| Do You Yahoo!?
| Send your FREE holiday greetings online!
| http://greetings.yahoo.com
| 
| --
| To unsubscribe:   
| For additional commands: 
| Troubles with the list: 
| 
| 
| 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JDBC for mySQL

2002-01-01 Thread Simon

Sorry, this goes a little out of topic.

Are there JDBC driver for MySQL and postgres? Any these drivers work with
tomcat?

Simon.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JDBC for mySQL

2002-01-01 Thread Brian Adams

yep!
http://jdbc.postgresql.org/

http://sourceforge.net/project/showfiles.php?group_id=15923

both work with tomcat!
have fun.
B

-Original Message-
From: Simon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 01, 2002 12:44 PM
To: Tomcat Users List
Subject: JDBC for mySQL


Sorry, this goes a little out of topic.

Are there JDBC driver for MySQL and postgres? Any these drivers work with
tomcat?

Simon.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




problem with multiple application on Tomcat

2002-01-01 Thread puneet sachar

i got your answers

but sir tell me onr simple thing
u have one server running ok

and 3 classes A.java placed some where and thoes files
correspond to different clients 

is it possible at runtime i change the classpath
acording to my liking with suit the particular client 

is it possible

i'm also sending u a word attachment where i had 3
sloutions for them 
now go through them all and mail me and tell me whatz
exactly be done to get solutions 

regards
Puneet

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com


The answer.doc
Description: The answer.doc

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Missing Step in deployng TDk app?

2002-01-01 Thread Ivo Zivkov

I have a question about deploying the application.

I am using the latest Turbine TDK with Tomcat 4.0.1 on Linux. After
successfully building the sample ‘newapp’ in the turbine TDK, tomcat
reposted “Not fond error 404’ to the URL:
http://localhost:8080/newapp/servlet/newapp, even though I have correctly
set CATALINA_HOME variable. I can verify that TOMCAT is running properly,
because id displays its information when browser pointed to
http://localhost:8080  . The only way I could get it
to work is by making a link from the TDK directory:

$SOME_TDK_HOME/webapps/newapp

to the tomcat directory:

$CATALINA_HOME/webapps/newapp

I could then access the application using the URL
http://localhost:8080/newapp/servlet/newapp.

Was this step not supposed to be made automatically by the build process? Is
there anything special to be done to  make tomcat find the application. I
could not find anything that links the TDK application to the tomcat
directory.

Any help would be greatly appreciated.

Regards,
Ivo Zivkov
[EMAIL PROTECTED]



Re: Missing Step in deployng TDk app?

2002-01-01 Thread Scott Eade

From: "Ivo Zivkov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
> I have a question about deploying the application.
>
> I am using the latest Turbine TDK with Tomcat 4.0.1 on Linux. After
> successfully building the sample 'newapp' in the turbine TDK, tomcat
> reposted "Not fond error 404' to the URL:
> http://localhost:8080/newapp/servlet/newapp, even though I have correctly
> set CATALINA_HOME variable. I can verify that TOMCAT is running properly,
> because id displays its information when browser pointed to
> http://localhost:8080  . The only way I could get
it
> to work is by making a link from the TDK directory:
>
> $SOME_TDK_HOME/webapps/newapp
>
> to the tomcat directory:
>
> $CATALINA_HOME/webapps/newapp
>
> I could then access the application using the URL
> http://localhost:8080/newapp/servlet/newapp.
>
> Was this step not supposed to be made automatically by the build process?
Is
> there anything special to be done to  make tomcat find the application. I
> could not find anything that links the TDK application to the tomcat
> directory.
>
> Any help would be greatly appreciated.
>
> Regards,
> Ivo Zivkov
> [EMAIL PROTECTED]
>

You would probably get a better response from the turbine-user
mailing list.

The tdk comes with it's own tomcat (4.0b6 I think) and it should
fire up correctly if you use the startup.sh in /tdk/bin with
CATALINA_HOME set to /tdk

If you want to use tomcat 4.01 installed elsewhere you need to
copy webapp/newapp over to the 4.01 webapp directory or
use the link that you are already using.

HTH

Scott


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




tomcat + apache

2002-01-01 Thread shine

hello,
has anywone successfully integrated tomcat 4.01 with apache 2.0.28 via
mod_webapp.so
if so how.?
thank you.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???)

2002-01-01 Thread Jeff Kilbride

Hi Drasko,

Sorry, I haven't used Solaris in quite a while. I use FreeBSD and Linux most
of the time. I vaguely remember seeing posts about threading issues, but I
can't recall the problems.

I used the 3.2.x release successfully behind Apache before switching to 4.x.
I found that I didn't need Apache, except to serve static content -- no php,
perl, etc...  So, I moved to Tomcat standalone and now I run a faster,
smaller footprint webserver (thttpd) on port 81 to handle my images and
other static content. Unfortunately, you can't load balance this way without
an external solution.

Anyway, I took a look at the 3.3 ThreadPool code and I think the ThreadPool
configuration is actually being done in PoolTCPEndpoint.java in
org.apache.tomcat.util.net. This starts a pool (with the defaults) then uses
the setXXX methods to configure the Pool. When I was using 3.2.x, I remember
there being serious problems if the MAX_THREADS value was ever reached. For
heavy load, the way around it was to set MAX_THREADS equal to the number of
possible Apache child processes (MaxClients in httpd.conf). This way,
MAX_THREADS should never be reached -- hence, no blocking problem. You might
give this a try and see if it helps. It solved the problems I was having
with 3.2.x at the time.

Hope this helps.

Thanks,
--jeff

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, December 30, 2001 9:43 PM
Subject: Re: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???)


>
>
> Thanks for your reply Jeff :-)
>
> I am using it "behind" the Apache Web server (ajp1.3)  and am having
> serious problems to keep the service alive (not to mention the poor
> performance)
> The Tomcat is increasing the number of threads when under the load and
> inevitable finishes with ThreadPool giving up.
> The code in the ThreadPool is really "not okay" as it does not provide any
> way of tuning the pools and definetly does not provide any solution when
> running out of available Threads :-(
> By the way, do you have any experience with the load-balancing under
ajp1.3
> ... up to now I have observed only that one blocked Tomcat is stalling the
> whole ajp1.3 load-balancing for the rest of the gang (I have 4 Solaris
> machine each configured with identical application).
> Also browsing a bit thrue the internet I have found quite a few articles
> about Solaris and Threads in JVM ... mostly confusing me if not giving me
> very bad feeling in stomach ... any comments about the stability of the
> Tomcat3.3/JDK1.3.1_02/Solaris8 ???
>
> Thanks in advance
> Drasko
>
>
>
>
>
>
> "Jeff Kilbride" <[EMAIL PROTECTED]> on 31.12.2001 06:34:42
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:   "Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:  Re: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION
USE???)
>
> Are you using Tomcat standalone or with Apache? If standalone, then yes, I
> would recommend using the latest version of Tomcat 4.x. If you're using
> Apache, I would stick with 3.3 until the mod_jk code is fully implemented
> with the 4.x versions.
>
> Thanks,
> --jeff
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, December 29, 2001 2:09 PM
> Subject: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???)
>
>
> >
> >
> > Hi there,
> >
> > I am trying to deploy our production service on the Tomcat 3.3 platform
> > (Solaris8, JDK 1.3.1) but am very often facing the instability problems.
> > Somehow, the ThreadPool just runs out of steam and blocks Connectors
from
> > receiving any more requests.
> >
> > Looking into the source code, I have noticed some very interesting
> > "constructions" in the ThreadPool class.  Namely, the setters for the
> > maxThreads, maxSpareThreads and minSpareThreads are having very little
> > influence as the start() method is resseting the values to the default
> > constants ?!?!
> >
> > public ThreadPool() {
> > maxThreads  = MAX_THREADS;
> > maxSpareThreads = MAX_SPARE_THREADS;
> > minSpareThreads = MIN_SPARE_THREADS;
> > currentThreadCount  = 0;
> > currentThreadsBusy  = 0;
> > stopThePool = false;
> > }
> >
> > public synchronized void start() {
> >  stopThePool=false;
> > currentThreadCount  = 0;
> > currentThreadsBusy  = 0;
> > maxThreads  = MAX_THREADS;
> > maxSpareThreads = MAX_SPARE_THREADS;
> > minSpareThreads = MIN_SPARE_THREADS;
> >
> > adjustLimits();
> >
> > openThreads(minSpareThreads);
> > monitor = new MonitorRunnable(this);
> > }
> >
> > Also, the situation when there are no more available Threads in the pool
> is being handled in a special way which JUST BLOCKS IN THE INFINITE LOOP :
> > -(((
> >
> > Is the code of the Tomcat4 equaly immature or there is a fair chance to
> > role a productiv system on top o

has the use of mod_webapp a file disclosure vulnerability?

2002-01-01 Thread lupo

Hello,

I just went the easy way to install Tomcat4 on linux via binary RPMs
(tomcat4-4.0-1, tomcat4-webapps-4.0-1) and configured my Apache/1.3.20
something like this:

DocumentRoot /var/www/virtual/testhost
ServerName www.testhost.dom

WebAppDeploy examples warpConnection /examples/



The Apache Webserver has some handlers configured:
AddHandler server-parsed .shtml
AddHandler send-as-is asis

Now if I request any URL ending with ".shtml", the Apache server
handles the request itself (what may be perfectly legal), but it
ignores the DocumentRoot!
So a request for "http://www.testhost.dom/var/www/html/index.shtml";
tries to serve the file "/var/www/html/index.shtml" which is not
contained in the DocumentRoot of that virtual host. The server seems
to take "/" as the new DocumentRoot. This behaviour occurs whether
the Tomcat engine itself is running or not.

Is this a problem of the Apache Webserver, a flaw of mod_webapp or did
I just do something completely wrong in my configuration?

regards,
Markus "Lupo" Volk

-- 
Hardware, n.:
  The parts of a computer system that can be kicked.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: has the use of mod_webapp a file disclosure vulnerability?

2002-01-01 Thread lupo

Oops, a fatal error in my mail.

On Wed, 2 Jan 2002 [EMAIL PROTECTED] wrote:

> Hello,
> 
> I just went the easy way to install Tomcat4 on linux via binary RPMs
> (tomcat4-4.0-1, tomcat4-webapps-4.0-1) and configured my Apache/1.3.20
> something like this:
> 
> DocumentRoot /var/www/virtual/testhost
> ServerName www.testhost.dom
> 
> WebAppDeploy examples warpConnection /examples/
The above line should read:
 WebAppDeploy examples warpConnection /
> 
> 
> 
> The Apache Webserver has some handlers configured:
> AddHandler server-parsed .shtml
> AddHandler send-as-is asis
> 
> Now if I request any URL ending with ".shtml", the Apache server
> handles the request itself (what may be perfectly legal), but it
> ignores the DocumentRoot!
> So a request for "http://www.testhost.dom/var/www/html/index.shtml";
> tries to serve the file "/var/www/html/index.shtml" which is not
> contained in the DocumentRoot of that virtual host. The server seems
> to take "/" as the new DocumentRoot. This behaviour occurs whether
> the Tomcat engine itself is running or not.
> 
> Is this a problem of the Apache Webserver, a flaw of mod_webapp or did
> I just do something completely wrong in my configuration?
> 
> regards,
> Markus "Lupo" Volk
> 
> 

-- 
Hardware, n.:
  The parts of a computer system that can be kicked.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Turbine/Velocity abd PostgreSQL problem

2002-01-01 Thread Ivo Zivkov

Has anyone been able to get turbine and velocity to work with PostgreSQL? I
followed the instruction to build the sample application (newapp), and
applied the patch to the PostgreSQL JDBC driver as recommended here:

http://jakarta.apache.org/turbine/turbine-2/howto/postgres-howto.html

Still, I am getting the following errors in the app log file:

[Tue Jan 01 18:44:15 EST 2002] -- ERROR -- Error rendering Velocity
template: s\
creens/user/FluxUserList.vm: Invocation of method 'getUsers' in  class
org.apac\
he.turbine.flux.tools.FluxTool threw exception class
org.apache.turbine.util.se\
curity.DataBackendException
and:
[Tue Jan 01 18:44:15 EST 2002] -- ERROR -- Error rendering Velocity
template: s\
creens/user/FluxUserList.vm: Error rendering Velocity template:
screens/user/Fl\
uxUserList.vm: Invocation of method 'getUsers' in  class
org.apache.turbine.flu\
x.tools.FluxTool threw exception class
org.apache.turbine.util.security.DataBac\
kendException


I understand it has something to do with velocity and PostgreSQL not
handling BLObs correctly, but has anyone been able to resolve this?

Regards,
Ivo Zivkov




Tomcat, threads and garbagecleaner: A question

2002-01-01 Thread Duarte Loreto

   Hello!

I have a JSP page that instantiates an object. This instantiates another 
one, as a thread. The thread is created and started on the same inline, and 
I have no pointer to the thread.

My question is: when this thread finishes it's run(), does it get 
garbagecleaned? The object that referenced it was created by a JSP page that 
was already delivered to the client, so it should be, right?

I'm asking this as I have a server that, after some usage, starts to get 
slow and then completly freezes, needing a restart. I suspect that there is 
a memory leak somewhere, and this seems the most probable place.

If your answer is "the thread gets garbagecleaned, so look elsewhere for 
your problem", I would appreciate help on how to analyse memory usage. I'm 
clueless on this.

I'm using tomcat 3.2.3 and I run it on UNIX, with JDK1.3. If needed be, I 
can put it to run on a Windows, if you tell me that THE tool to check for 
the problem is windows-based

I appreciate your help. If you think that this question shouldn't be posted 
here but rather on the devel list, please notify me.

Duarte "HappyGuy" Loreto

"Don't worry, be happy!"


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 4.01, IIS and JSPs

2002-01-01 Thread Daniel Parnell

G'day All,

I've written a little program that allows Tomcat 4.01 to be used with
IIS.
If anybody is interrested I can post it somewhere.

Daniel

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Turbine/Velocity abd PostgreSQL problem

2002-01-01 Thread Scott Eade

Try the turbine-user list.

- Original Message -
From: "Ivo Zivkov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 11:13 AM
Subject: Turbine/Velocity abd PostgreSQL problem


> Has anyone been able to get turbine and velocity to work with PostgreSQL?
I
> followed the instruction to build the sample application (newapp), and
> applied the patch to the PostgreSQL JDBC driver as recommended here:
>
> http://jakarta.apache.org/turbine/turbine-2/howto/postgres-howto.html
>
> Still, I am getting the following errors in the app log file:
>
> [Tue Jan 01 18:44:15 EST 2002] -- ERROR -- Error rendering Velocity
> template: s\
> creens/user/FluxUserList.vm: Invocation of method 'getUsers' in  class
> org.apac\
> he.turbine.flux.tools.FluxTool threw exception class
> org.apache.turbine.util.se\
> curity.DataBackendException
> and:
> [Tue Jan 01 18:44:15 EST 2002] -- ERROR -- Error rendering Velocity
> template: s\
> creens/user/FluxUserList.vm: Error rendering Velocity template:
> screens/user/Fl\
> uxUserList.vm: Invocation of method 'getUsers' in  class
> org.apache.turbine.flu\
> x.tools.FluxTool threw exception class
> org.apache.turbine.util.security.DataBac\
> kendException
>
>
> I understand it has something to do with velocity and PostgreSQL not
> handling BLObs correctly, but has anyone been able to resolve this?
>
> Regards,
> Ivo Zivkov
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Problem with Tomcat 4.0.1 installer: Cannot find JDK!

2002-01-01 Thread Antonio Vargas

Ion,
Yup! This certainly worked! I just had to add a string value:
CurrentVersion - 1.4 to both the JDK and the JRE keys.  Thanks a lot for
your help.

William,
Try adding a CurrentVersion string value to the
HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Runtime Environment key.
Following are my registry entries (they might help):

HKLM/SOFTWARE/JavaSoft/Java Development Kit
CurrentVersion = "1.4"
HKLM/SOFTWARE/JavaSoft/Java Development Kit/1.4
JavaHome = "C:\windows\jdk143"
MicroVersion = "0"
HKLM/SOFTWARE/JavaSoft/Java Development Kit/1.4.0 beta3
JavaHome = "c:\windows\jdk143"
MicroVersion = "0"

HKLM/SOFTWARE/JavaSoft/Java Runtime Environment
CurrentVersion = "1.4"
HKLM/SOFTWARE/JavaSoft/Java Runtime Environment/1.4
JavaHome = "C:\Program Files\Java\j2re1.4.0-beta3"
MicroVersion = "0"
RuntimeLib = "C:\Program Files\Java\j2re1.4.0-beta3\bin\client\jvm.dll"
HKLM/SOFTWARE/JavaSoft/Java Runtime Environment/1.4.0 beta3
JavaHome = "C:\Program Files\Java\j2re1.4.0-beta3"
MicroVersion = "0"
RuntimeLib = "C:\Program Files\Java\j2re1.4.0-beta3\bin\client\jvm.dll"

Anton Vargas
Technical Specialist
CIS, Inc.

http://hits4pay.com/members/index.cgi?prophet
http://www.onedollaremail.com/?ref=15752
http://www.dynamicsms.com.au/intro.asp?ref=09175209396&refc=382
http://www.lunch4free.com/cgi-bin/refer?credit=advargas=cis.com.ph
- Original Message -
From: "Ion Larrañaga" <[EMAIL PROTECTED]>
> Subject:  RE: Problem with Tomcat 4.0.1 installer: Cannot find JDK!
> The Tomcat 4.0.1 installer for Windows uses register entries to detect the
> JDK installation directory. Check the value of CurrentVersion under
> HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Development Kit. For instance,
in
> my computer I have 1.4. Then, check JavaHome under
> HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Development Kit/1.4 (in my
case),
> which must point to the java directory. The error you report seems to
> happen
> when the installer is unable to find the current version value.
>
> Hope it helps
>
> Ion

- Original Message -
From: "William Tillotson" <[EMAIL PROTECTED]>
Hi.

I too have experienced the same problem trying to get
Tomcat 4.0.1 to install on Windows when i *do* have a
valid Sun SDK (d:\jdk1.3.1_02). I have already checked
the registry as I suspected that this is where the
Tomcat installer is looking and the relevant entries
are there - yet i am still getting the same error
message from the tomcat installer as per the orginal
poster of this thread. The difference is that I am
using NT4SP6a so are there any other registry entries
i should be looking for?


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




class load problem

2002-01-01 Thread maddux

I use TC4.0.1 to develop my application
I want to use a javabean,but I receive this error from TC4.0.1 as follow:

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error



type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 7 in the jsp file: /mail.jsp

Generated servlet error:
E:\JSP\server\catalina-4.0.1\work\localhost\mail\mail$jsp.java:65: Class
org.apache.jsp.MailReader not found.
MailReader mr = null;
^


An error occurred at line: 7 in the jsp file: /mail.jsp

Generated servlet error:
E:\JSP\server\catalina-4.0.1\work\localhost\mail\mail$jsp.java:68: Class
org.apache.jsp.MailReader not found.
mr= (MailReader)
 ^


An error occurred at line: 7 in the jsp file: /mail.jsp

Generated servlet error:
E:\JSP\server\catalina-4.0.1\work\localhost\mail\mail$jsp.java:73: Class
org.apache.jsp.MailReader not found.
mr = (MailReader)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"MailReader");
  ^
3 errors


I use this code to include javabean:


This webapplication can run on tomcat3.3 but can't run on tomcat4.0.1 , I
want to change server to tomcat4.0.1 ,
so I hope someone can help me!!!

Can somebody tell me where to place my javabean , thanks!!

Maddux



Re: Tomcat 4.01, IIS and JSPs

2002-01-01 Thread puneet sachar

hi Daniel

if u have that program plz fwd that code to me 
at [EMAIL PROTECTED]

regards
Puneet


--- Daniel Parnell <[EMAIL PROTECTED]> wrote:
> G'day All,
> 
> I've written a little program that allows Tomcat
> 4.01 to be used with
> IIS.
> If anybody is interrested I can post it somewhere.
> 
> Daniel
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.01, IIS and JSPs

2002-01-01 Thread Daniel Parnell

G'day Puneet,

There are a couple of limitations.  Only JSPs work, and Tomcat must be
installed on the same machine as IIS.
The JSPs are copied into the Tomcat root context for execution.

I've had a couple of requests for the code, so I've started a sourceforge
project for it.  With any luck it should be up in the next couple of days.

Daniel

- Original Message -
From: "puneet sachar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 4:03 PM
Subject: Re: Tomcat 4.01, IIS and JSPs


> hi Daniel
>
> if u have that program plz fwd that code to me
> at [EMAIL PROTECTED]
>
> regards
> Puneet
>
>
> --- Daniel Parnell <[EMAIL PROTECTED]> wrote:
> > G'day All,
> >
> > I've written a little program that allows Tomcat
> > 4.01 to be used with
> > IIS.
> > If anybody is interrested I can post it somewhere.
> >
> > Daniel
> >
> > --
> > To unsubscribe:
> > 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> >
>
>
> __
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat4.0:-Ignorance Of class path ::::oracle.jdbc.driver.OracleDriver ..

2002-01-01 Thread Sachin Tyagi

thanks ..
Its working...when classes12.jar file placed to
jakarta-tomcat-4.0\common\lib (WEB-INF/lib  it might be )  only...It does
not work when we place that file in \common\classes...that directory is for
what.

And on more thing is this mentioned some where that TomCat4.0  ignore the
complete CLASSPATH of system.because some other .jar files required for
my web application,  set in classpath are also not able to import...

So is this mandatory to place all .jar files in tomcat/lib...  which is
required for the application.??
Or
can we add classpath through scripts at Tomcat startup

Regds

sachin


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 01, 2002 2:01 AM
Subject: Re:
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver
..


>
>
> On Mon, 31 Dec 2001, David Morsberger wrote:
>
> > Date: Mon, 31 Dec 2001 13:02:23 -0500
> > From: David Morsberger <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Re:
> >
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDrive
> > r ..
> >
> > I had the same problem and converting the .zip to a .jar worked. I
reviewed
> > the documentation and I could not find any mention of zip files. Does
the
> > absence of info on zip files imply they are not supported?
> >
>
> Yep, in terms of what any web container is supposed to support in
> /WEB-INF/lib (and Tomcat applies the same rules to its shared "lib"
> directories).
>
> Zip files still work on a CLASSPATH for standard Java applications,
> because they were in existence from JDK 1.0 days -- before there was such
> a thing as a JAR file.  But that still doesn't do you any good on either
> 3.3 or 4.0, because they both ignore your CLASSPATH ...
>
>
> > I think the Tomcat 3.3 and 4.0 documentation should be updated to
explicitly
> > state that zip files and not supported by the servlet spec and therefore
> > must be converted to jar files and stored in the /lib directory.
> >
>
> I disagree.
>
> The list of things that are *not* supported is close to infinite :-).
> You'd be much better off making the starting assumption that anything not
> mentioned is not supported.  The only time you'll be wrong is when a
> feature hasn't been documented yet.
>
> And, even with it documented, it would still be one of the "top 5"
> questions on TOMCAT-USER, just like it is today.  The mailing list
> archives are full of the answer to this question -- along with a lot of
> questions that *are* answered in the docs -- so it wouldn't help much
> anyway.
>
> Craig
>
>
> >
> > > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > > Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Date: Mon, 31 Dec 2001 09:00:31 -0800 (PST)
> > > To: Tomcat Users List <[EMAIL PROTECTED]>
> > > Subject: Re:
> > >
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver.
.
> > >
> > >
> > >
> > > On Mon, 31 Dec 2001, Sachin Tyagi wrote:
> > >
> > >> Date: Mon, 31 Dec 2001 14:52:15 +0530
> > >> From: Sachin Tyagi <[EMAIL PROTECTED]>
> > >> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > >> To: [EMAIL PROTECTED]
> > >> Subject:
> > >>
Tomcat4.0:-java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDrive
> > >> r..
> > >>
> > >> hi all,
> > >> while I am running my web application with Tomcat4.0(Catalina)  in
accessing
> > >> database queries.It is showing java.lang.ClassNotFoundException:
> > >> oracle.jdbc.driver.OracleDriver..
> > >> I am using classes12.zip driver ..I have already set classpath for
the
> > >> same..And with Tomcat3.2 my application is running well. Only with
Tomcat4.0
> > >> getting this problem.I am trying to upgrade for Tomcat4.0.
> > >> In this case any thing I have to edit or set properties in
server.xml. or
> > >> some where else. Or this relate with Realms.
> > >> If any one having idea about this plz pass this.
> > >>
> > >
> > > You need to do two things:
> > >
> > > * Read the class-loader-howto.html documentation, and you'll see that
> > > Tomcat recognizes only JAR files, not ZIP files.  Rename classes12.zip
> > > to classes12.jar and it should work.
> > >
> > > * Complain to Oracle that they should package their JDBC drivers as
> > > JAR files.
> > >
> > >> Regards
> > >> Sachin
> > >>
> > >
> > > Craig McClanahan
> > >
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscrib

RE: Tomcat 4.01, IIS and JSPs

2002-01-01 Thread Yuriy Pasichnyk

Please, do

-Original Message-
From: Daniel Parnell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 3:18 AM
To: Tomcat-Users
Subject: Tomcat 4.01, IIS and JSPs


G'day All,

I've written a little program that allows Tomcat 4.01 to be used with
IIS.
If anybody is interrested I can post it somewhere.

Daniel

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JDBC for mySQL

2002-01-01 Thread Micael Padraig Og mac Grene

At 01:05 PM 1/1/02 -0600, you wrote:
>yep!
>http://jdbc.postgresql.org/
>
>http://sourceforge.net/project/showfiles.php?group_id=15923
>
>both work with tomcat!
>have fun.
>B
>
>-Original Message-
>From: Simon [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 01, 2002 12:44 PM
>To: Tomcat Users List
>Subject: JDBC for mySQL
>
>
>Sorry, this goes a little out of topic.
>
>Are there JDBC driver for MySQL and postgres? Any these drivers work with
>tomcat?
>
>Simon.


There is a list of drivers in java.sun.com.  Also, you need to know if you 
are going to be using the java.sql.jdbc or the javax.sql.jdbc.  I recommend 
the latter.  Whatever will work with your jdk will work with tomcat or any 
other Java platform.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: