Re: JAVA_HOME on Mac OS X?

2002-12-15 Thread Paul DuBois
At 15:05 -0700 12/15/02, Robert Leach wrote:

Hi,

I tried running the startup.sh script for tomcat and it says I need 
a value for the JAVA_HOME environment variable.

I assumed that since I installed the developer package that came 
with Mac OS X 10.2 that I would have it, but after doing this search:

	find / -name jdk* -print

and getting no results, I started searching for the JDK online to 
download it.  Sun's website however doesn't appear to have one for 
Mac.  I also tried searching apple's website to no avail.  Google 
was just as helpful.

I'm at a loss.  I've been searching for hours and I just can't find 
it.  What am I missing here?  This should be simple.

Try:

/System/Library/Frameworks/JavaVM.framework/Home



Thanks,
Rob


* Yoda: *sigh* Always with you, what cannot be done. *




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




Re: Off topis - building pc's

2002-09-07 Thread Paul DuBois

At 14:09 -0500 9/7/02, Ron Day wrote:
Sorry its off topic

Anyone have a good site for how to build a PC ??

Ron

I imagine you can get tons of good information for that on the Tomcat
mailing list.  That's what they discuss there, right?

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




re: macosx setup of tomcat 4.0.3

2002-05-30 Thread Paul DuBois

At 20:25 -0500 5/30/02, Donald Huebschman wrote:
I have gotten a lot of mail asking for the answer to this. In all 
case the following seem to work, so I thought I would post it here 
so that people would also find the answer when doing a search:


The solution is not to let stuffit unzip and untar the the file. Do it by
hand with gunzip and tar. Stuffit truncates all files to 32 character

Or gnutar zxf.

names. Java file names tend to be long.


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




Re: Help on mmmySQL/JDBC/Tomcat

2002-05-25 Thread Paul DuBois

Hi,

I am trying to connect mysql database in jsp file. Mysql itself 
works well. but when I use jsp file, I got ClassNotFoundException 
caused by could not load JDBC/mysql Driver. I have installed 
mm.mysql.Driver.

Where did you install it?

  If connect by java code only, it works well. I do not know why the 
same kind of code does not work for jsp file, does my tomcat has any 
problem?

I am in Linux, tomcat is working with Apache.

This is the jsp code I am using:

...

%@page language=java
import=java.sql.*%
%
 Connection con = null;
 try{

   System.out.println(start);
   Class.forName(org.gjt.mm.mysql.Driver).newInstance();
   System.out.println(JDBC driver loaded);

   con = DriverManager.getConnection(
   jdbc:mysql://localhost/zhaoding ?user=zhaodingpassword=zhaoding);
   System.out.println(Database connection established);

 } catch(ClassNotFoundException cnfe){
   System.out.println(ClassNotFoundException: Could not locate driver);
 } catch(SQLException cnfe){
   System.out.println(SQLException:+cnfe);
 } catch(Exception e){
   System.out.println(An unknow error occurred while connecting 
to the database);
} finally {
   try{
 if(con!=null)
 con.close();
   }catch(SQLException sqle){
System.out.println(Unable to close database connection.);

   }
 }
%
...

Thanks a lot for your time.

Ying





-
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup


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




Re: web-inf/classes

2002-05-06 Thread Paul DuBois

At 15:18 -0700 5/6/02, Chris Shen wrote:
this is a bizzare one. i've placed all my classes under the web-inf/classes

Is it web-inf or WEB-INF?  If the former, rename it.

with the appropriate class structure and everything, and it was working fine
on my tomcat 3.3. yet, after i migrated it to 4.03, i tried to run it the
first time and compiled it, and i kept on getting:
org.apache.jasper.JasperException: Unable to compile class for JSP
C:\jakarta-tomcat-4.0.3\work\localhost\webauth\successfulLogin$jsp.java:3:
Package ant.uci.edu not found in import.
import ant.uci.edu.*;

i did place my class directory ant\uci\edu under web-inf\classes...any
idea???

Chris


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




Re: jdbc driver deployment problem.

2002-02-08 Thread Paul DuBois

Q: How can I get Tomcat to see 3 specific jar files?  They're 
already in my classpath.

Details:
Win2k, MSSQL 2k sp1, tomcat 4.0.1 (not a service), apache 1.3.22 (service).

Tomcat 4.x doesn't use your CLASSPATH.


Aargh.  It was suggested that I try to change jdbc drivers in my 
servlets.  I used to use the jdbc/odbc bridge (sun provided) driver 
and decided to replace it with Microsoft's MSSQL 2000 Server JDBC 
type 4 driver (beta 2) to see if it solved my (other) problem.  If 
it works, I'll be open to buying a better (released) driver.  For 
now, I can't get it to work.  Microsoft's news server has a 
newsgroup just for this driver and I've read all about it.  I can 
get a test app to work with it.  After plugging the driver into my 
servlet on the same machine, it doesn't work.  (Same thing on my 
workstation and our production server)

I get a java.lang.ClassNotFoundException.  This is what happened in 
my test app until I got 3 jar files into my classpath.  Now that I 
try it inside Tomcat, the jar files are not in scope.  It occurs 
after one of these two lines:

Class.forName(com.microsoft.sqlserver.SQLServerDriver);
con = DriverManager.getConnection
(jdbc:microsoft:sqlserver://172.29.6.12:1433;DatabaseName=sqaa;user=sqaauser
);

In trying to remedy the problem, I put the drivers in the same 
directory as my servlets

I get it working outside Tomcat, so I conclude that it's a Tomcat 
issue.  If you think this is an issue with the driver and not 
Tomcat, I'll ask the jdbc driver newsgroup.


If you want it visible only to your application, put it in the application's
WEB-INF/lib directory

If you want it visible to all applications, put it in the lib directory under
the Tomcat root.

If you want it visible both to applications and to Tomcat, put it in the
common/lib directory under the Tomcat root.



Regards,
-Phil


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: mm.mysql driver

2002-01-28 Thread Paul DuBois

At 14:12 +1300 1/29/02, Gareth Cronin wrote:
Better to put the jar or put a link to the jar in the WEB-INF/lib directory
for your web app, that way you won't forget the dependancies when packaging
and deploying, and you won't clutter up your library search paths with stuff
unnecessary to other apps.

Depends on how visible you want the driver to be...

If you want it visible only to your application, put it in the application's
WEB-INF/lib directory

If you want it visible to all applications, put it in the lib directory under
the Tomcat root.

If you want it visible both to applications and to Tomcat, put it in the
common/lib directory under the Tomcat root.  (This would be the case if
you wanted to do something like JDBC-based session management or realm
authentication, which are handled by Tomcat above the application level.
To do that, Tomcat needs to see the driver.)



  -Original Message-
  From: Galbayar [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, 29 January 2003 2:02 p.m.
  To: Tomcat Users List
  Subject: Re: mm.mysql driver


  copy jar files into $JAVA_HOME/jre/lib/ext directory
  or put jar files into $CLASSPATH variable

  - Original Message -
  From: Stephen Clarke [EMAIL PROTECTED]
  To: tomcat [EMAIL PROTECTED]
  Sent: Tuesday, January 29, 2002 08:41
  Subject: mm.mysql driver


   Can anyone help me set up the MySQL drivers for Java. I
  have it working in
   stand alone programs. But in Tomcat  I get error message
  
   org.gjt.mm.mysql.Driver
  
   which is supposed to be the name of the driver.
  
Grateful for any assistance. Thanks.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: security issue!

2002-01-24 Thread Paul DuBois

At 12:28 -0500 1/24/02, Henry Lu wrote:
I need a solution to orevent from its happenning!

You want to prevent a given client from issuing requests to your
site?

Good luck.


Any ideas?

Thanks,

  [EMAIL PROTECTED] 01/24/02 12:21PM 
looks like good old nimda. but it does not affect your tomcat, since it
only attacks iis on win-systems

  -Original Message-
  From: Henry Lu [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 24, 2002 6:16 PM
  To: [EMAIL PROTECTED]
  Subject: security issue!


  In the CATALINA_HOME/logs/catalina_log.2002-01-24.txt file, there
  are a lot of
  log information like the followings:

  2002-01-24 09:29:48 HttpProcessor[80][3]  Invalid request URI:
  '/scripts/..%255c../winnt/system32/cmd.exe'
  2002-01-24 09:29:48 HttpProcessor[80][3]  Invalid request URI:
  '/_vti_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe'
  2002-01-24 09:29:48 HttpProcessor[80][3]  Invalid request URI:
  '/_mem_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe'
  2002-01-24 09:29:48 HttpProcessor[80][3]  Invalid request URI:
  '/msadc/..%255c../..%255c../..%255c/..%c1%1c../..%c1%1c../..%c1%1c
  ../winnt/system32/cmd.exe'
  2002-01-24 09:29:48 HttpProcessor[80][3]  Invalid request URI:
  '/scripts/..%c0%2f../winnt/system32/cmd.exe'
  2002-01-24 09:29:48 HttpProcessor[80][3]  Invalid request URI:
  '/scripts/..%25%35%63../winnt/system32/cmd.exe'
  2002-01-24 09:29:48 HttpProcessor[80][3]  Invalid request URI:
  '/scripts/..%252f../winnt/system32/cmd.exe'

  Are these from the Tomcat 4.o internal?
  Are these from the out side hacker?
  What we can do to prevent from these happen?
  Can we use Valve? How?

   Thanks, Henry

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: somebody trying hack me, what they really wanted?

2001-12-13 Thread Paul DuBois

It's a Code Red or Nimba attack, probably from an infected IIS server.

On Thu, Dec 13, 2001 at 01:04:51PM -0500, Evgeniy Strokin wrote:
 Hi,
 tonight, somebody had tried hack our Tomcat 3.2.3 in win2000.
 Here is the log:
 
 2001-12-13 01:18:35 - Ctx(  ): 404 R(  + /scripts/root.exe + null) null
 2001-12-13 01:18:36 - Ctx(  ): 404 R(  + /MSADC/root.exe + null) null
 2001-12-13 01:18:42 - Ctx(  ): 404 R(  + /c/winnt/system32/cmd.exe + null)
 null
 2001-12-13 01:18:46 - Ctx(  ): 404 R(  + /d/winnt/system32/cmd.exe + null)

[snip]

 
 Is it something serious or they had tried run NIMDA virus files or something
 like that?
 What do you think?
 
 Best regards,
 Jenya Strokin

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat on Mac OS X

2001-12-08 Thread Paul DuBois

Apple has posted an article on running Tomcat under Mac OS X:

http://developer.apple.com/internet/macosx/tomcat1.html

It even discusses how to accomplish Apache/Tomcat integration. :-)

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problems connecting to mysql

2001-12-08 Thread Paul DuBois

At 4:07 PM +1100 12/9/01, Tim Trainor wrote:
Dear all,

I've been tearing my hair out trying to get this thing to work for 
the last couple of days and I fear there is no alternative other 
than to bug you list gurus for some help:  Here goes

I have Tomcat 4.0.1 installed and it's examples run.
I have mysql 3.23.46 installed and it is running fine with the 
necessary grants etc.

In my server.xml I have the following section which should establish 
the connection to the database:

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/universe?user=snike;password=blahdy
   userTable=users userNameCol=user_name 
userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

You're following the example in sample.xml, which is incorrect.

The MM.MySQL driver requires  between the passwords, not ;.
Also you have to write the  as the amp; entity.  So your
connectionURL should look like this:

connectionURL=jdbc:mysql://localhost/universe?user=snikeamp;password=blahdy



But when I fire up tomcat using the startup.sh script, the following 
error comes up.  This error is extra-weird because we have another 
machine here with an identical setup and identical entries in 
server.xml.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problems connecting to mysql

2001-12-08 Thread Paul DuBois

At 4:07 PM +1100 12/9/01, Tim Trainor wrote:
Dear all,

I've been tearing my hair out trying to get this thing to work for 
the last couple of days and I fear there is no alternative other 
than to bug you list gurus for some help:  Here goes

I have Tomcat 4.0.1 installed and it's examples run.
I have mysql 3.23.46 installed and it is running fine with the 
necessary grants etc.

In my server.xml I have the following section which should 
establish the connection to the database:

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/universe?user=snike;password=blahdy
   userTable=users userNameCol=user_name 
userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

You're following the example in sample.xml, which is incorrect.

The MM.MySQL driver requires  between the passwords, not ;.

Sorry, I meant to say between the parameters.

Also you have to write the  as the amp; entity.  So your
connectionURL should look like this:

connectionURL=jdbc:mysql://localhost/universe?user=snikeamp;password=blahdy



But when I fire up tomcat using the startup.sh script, the 
following error comes up.  This error is extra-weird because we 
have another machine here with an identical setup and identical 
entries in server.xml.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: installing tomcat3.3 unix newbie question

2001-11-25 Thread Paul DuBois

I apologise for this newbie question, I have looked on the internet but
couldn't find the solution, so I decided to ask it here.

In the process of installing tomcat 3.3 I had to set the path to java.
I executed the following lines twice (accidentally)

setenv JAVA_HOME=/usr/local/jdk1.1.8
setenv PATH $JAVA_HOME/bin:$PATH

I'm in the tcsh shell (freebsd 4.1.1)
When I do : echo $PATH it shows the path twice:

/usr/local/jdk1.1.8=/bin /usr/local/jdk1.1.8=/bin

1 .How can I remove one of those ? ( I tried unsetenv, but I didn't succeed)

2. Why does it add a '=' in the path? Is this correct?

It shows a = because you included a = in the value of JAVA_HOME.
Note that you used = in your first setenv and not the second.
(I don't know why the = got added to the *end* of the value, though.)

Log out and back in so your get your original environment, then try:

setenv JAVA_HOME /usr/local/jdk1.1.8
setenv PATH $JAVA_HOME/bin:$PATH


unsetenv didn't work?  What error did you get?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Location of jdbc driver

2001-11-22 Thread Paul DuBois

Hi ya,

Let's share this with the others ;-), and I think this should be mentioned
in the docs.

Anyway, here how I do it, I place the *driver directory tree* in the
directory as the other class files.  For example, my servlet application is
called, myApplet, and I put all the class files for this app in myClasses,
so the directory tree will look like this,

myApplet--myApplet.jsp
   |
   myClasses
|
--(class files for the applet)
   |
--org(this is for the MySQL driver)
  |
  gjt
|
mm
 [...]

See the deep directory tree for the driver, but all you need to do is unjar
it.  If you use WinZip, right click on the driver file and unzip (unjar) it.
I hope you will find this useful.

It's a lot easier to use the driver JAR file, then you have only one file
to mess with.

If you want it visible only to your application, put it in the application's
WEB-INF/lib directory

If you want it visible to all applications, put it in the lib directory under
the Tomcat root.

If you want it visible both to applications and to Tomcat, put it in the
common/lib directory under the Tomcat root.  (This would be the case if
you wanted to do something like JDBC-based session management or realm
authentication, which are handled by Tomcat above the application level.
To do that, Tomcat needs to see the driver.)



- Original Message -
From: Satish Talim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 3:30 PM
Subject: Location of jdbc driver


  Hi,

  I am facing the same problem. I am not sure where I should place the mySQL
  jdbc driver files. What has been the solution?

  My servlet uses JDBC and throws a page with an applet. Then via
  HttpURLConnection I have to do applet/servlet communication...

  Regards,

  Amit Lonkar
  - Original Message -
  From: Yiu Wing [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, November 19, 2001 12:41 AM
  Subject: [repost] loading class files

Sorry guys this is a repost. But after doing numerous google search and
wading through the docs, I still can't solve my problem with regard to
loading applet classes. I sincerely hope some of you can help me this
  time,
I desperately need to get this working. The same message is as follow.
   
Hello All,
   
I'm writing an applet that uses JDBC to connect to MySQL server , and
the
applet is embedded in a jsp. I'm new to this, so I went on and read the
docs that come with Tomcat. I'm also using CVS and ant for the
  development.
The source code layout of my project is as suggested in the docs, which
is
   
project name
|- docs
|- src
|- web
|--WEB-INF
   
In the project/web/WEB-INF directory, do I have to create a classes and
  lib
subdirectories? The reason I ask this is because the class loader, from
  the
Tomcat or web browser, can't find the class files. But they're clearly
in
the web directory, whose structure is as,
   
project
| login.jsp (that's the jsp file that embeds the applet)
| WEB-INF
|--- classes (this directory has all
  the
needed class files)
|--- lib (where the MySQL driver is
stored)
   
The Tomcat docs says the classes and lib dir are made visible to other
classes within your particular web application, but why my class files
can't be loaded there? If I move all the class files to the top of the
  web
directory, and change code=MyClass.class to code=MyClass in the
  jsp
file, then everything seems to working OK. Oh, yeah, almost forgot, I
also
need to copy the whole directory tree for the driver to the web
directory
  as
well. Setting the classpath for the driver doesn't work. I don't want
to
copy the class files to the top of the web directory every time, can
those
file be loaded in the classes and lib directories. Sorry about this
  rather
long message, but I'm getting very frustrated and hopping some of you
can
help me with this.
   
Thanks for your help in advance.
   
P.S. I'm using Tomcat4.0 on Win2000
   


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: [TC4] How to know when tomcat is properly shut down?

2001-11-20 Thread Paul DuBois

The catalina.sh and related scripts all start the Bootstrap.java class and
asks it to shut down Catalina.

This script, if successful in connecting to the shutdown port of Catalina,
returns immediately. This whether or not there is 8953289527 pending
database commits or whatever that has to be done before things actually
are properly shut down.

This is highly undesirable, and I would love if it were possible to shut
down catalina and then chill untill it actually has shut down.

That would be useful too for the /etc/rc.d/init.d/tomcat4 startup
file that's installed by the Linux RPM.  As distributed, if you
invoke this as tomcat4 restart, it stops Tomcat, waits 2 seconds,
then restarts Tomcat.  On my system, Tomcat takes more than 2 seconds
to finish even if it's sitting idle.


This is especially important when shutting down the entire physical
server, as the database shutdown might be the next in line, in which case
everything breaks..

Of course, it would also be very nice if one could know if Catalina has
properly come up. It could for example write a boolean file when the
server has initialized all webapps, and then delete the same file right
before the main method of Catalina exits on shutdown. Or one could use
Bootstrap with argument -waitForUp or something..


--
Mvh,
Endre


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat on Linux

2001-11-20 Thread Paul DuBois

At 1:56 PM -0500 11/20/01, Sergey Snovsky wrote:
Hello!

I'd like to ask some advice on how to best run Tomcat on Linux -- 
how can I make Tomcat start
at the init time (possibly using chkconfig or something similar) and 
how do I make Tomkat run as the Tomcat user/group -- what files 
under Tomcat distribution should be owned by whom?

Thank you very much for any help!

Sergey

Install the RPM files as root:

# rpm --install tomcat4-4.0.1-1.noarch.rpm
# rpm --install tomcat4-webapps-4.0.1-1.noarch.rpm

The first RPM contains the server software, the second contains the
applications that are installed by default for the other distribution formats.
The installation process will create a new user tomcat4 to be used for
running Tomcat.  (It also creates a tomcat4 group.)

Then edit /etc/tomcat4/conf/tomcat4.conf to set JAVA_HOME to the pathname
of your Java SDK.

Change directory into /etc/rc.d/init.d.  You'll find a script tomcat4
that can control Tomcat's startup at boot time.  It needs to be activated:

# chkconfig --add tomcat4

If you like, use the tomcat4 script to start up Tomcat manually:

# ./tomcat4 start

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.01 for OS X

2001-11-19 Thread Paul DuBois

At 21:28 -0600 11/18/01, Jeffrey Kunzelman wrote:
Has anyone installed tomcat 4.01 on Mac OS X?

Sure.  It runs without any particular problems that I've noticed,
once you figure out where to set JAVA_HOME.

Doesn't have that problem that Windows users are reporting of
quitting when you log out, either. :-)


--
Jeff


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Manager maxIdleBackup, {min,max}IdleSwap query

2001-11-14 Thread Paul DuBois

I've been pondering the Tomcat Manager component documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)
with regard to storing sessions in JDBC-based backing store.  I am not
clear on the distinction between backing up a session and swapping it
(the behaviors controlled by the maxIdleBackup attribute and the
minIdleSwap and maxIdleSwap attributes of the Manager element), and I
don't find anything in the archives.

The relevant section of the documentation reads as follows:

--
maxIdleBackup
The time interval (in seconds) since the last access to a session before
it is eligible for being persisted to the session store, or -1 to
disable this feature. By default, this feature is disabled.

maxIdleSwap
The time interval (in seconds) since the last access to a session before
it should be persisted to the session store, and passivated out of the
server's memory, or -1 to disable this feature. If this feature is
enabled, the time interval specified here should be equal to or longer
than the value specified for maxIdleBackup. By default, this feature is
disabled.

minIdleSwap
The time interval (in seconds) since the last access to a session before
it will be eligible to be persisted to the session store, and passivated
out of the server's memory, or -1 for this swapping to be available at
any time. If specified, this value should be less than that specified by
maxIdleSwap. By default, this value is set to -1.
--

Is the distinction simply that for backing up, Tomcat just writes a
copy of the session information to backing store, whereas for swapping,
Tomcat writes it to backing store and forgets it until a client makes a
request that uses the session again?

Also, is there some required relationship between the values of
maxIdleBackup and minIdleSwap?  The documentation states that
maxIdleBackup = maxIdleSwap and minIdleSwap  maxIdleSwap, but nothing
explicit about maxIdleBackup and minIdleSwap.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: ....how to get tomcat running ? .........

2001-11-02 Thread Paul DuBois

I am running into the same types of problems with
Linux 7.0 running on a pentium

Has anyone here installed tomcat4 on Linux on a
pentium boxwhy is this so painful? the previous

You probably haven't (like I didn't when I first installed TC 4)
read the Linux-specific paragraphs in RELEASE-NOTES-4.0.1.txt
that discuss problems with the stack and how to fix them.

Have a look, it might help.  Worked for me.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: MySQL jdbc connection url [ + server.xml bug]

2001-11-01 Thread Paul DuBois

At 1:51 PM +0100 11/1/01, Andrius wrote:
Hello,
 What's the correct MySQL jdbc connection url? I'm trying to setup
jdbcRealm on tomcat 4.0.1,
 and using this url pattern :
connectionURL=jdbc:mysql://localhost/authority?user=test;password=test
but it goes wrong - it says Invalid authorization exception: Access
denied for user: 'test;password@host'.
 I've configured server side permissions properly (mySQL accepts using
another client). thanx for any response.

obj.

Only very old versions of the MM.MySQL driver accept ; as a parameter
separator character.  Current versions accept only  as the separator.

If any of the Tomcap developers happen to read this:

Note that the server.xml file that ships with Tomcat 4.0.1 (and probably
earlier versions as well) is mistaken on this point.  The relevant 
section looks
like this:

   !--
   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
 
connectionURL=jdbc:mysql://localhost/authority?user=test;password=test
   userTable=users userNameCol=user_name userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /
   --

The connectionURL line should be fixed to say this instead:

connectionURL=jdbc:mysql://localhost/authority?user=testpassword=test

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: admin pages.

2001-11-01 Thread Paul DuBois

I said thanks too soon... :(  I tried adding the admin role to a user
in tomcat-users.xml file, but it seems to make no difference... Is there
a list of predefined roles somewhere?

Why admin?  The role should be manager.  For example:

tomcat-users
   user name=yourname password=yourpass roles=manager /
/tomcat-users

Have a look at:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html


-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 10:18 AM
To: Tomcat Users List
Subject: RE: admin pages.


You have to manually add a user to the tomcat-users.xml file, which has the
admin role.

Mvgr,
Martin

  -Original Message-
  From: McDowell, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, November 01, 2001 5:14 PM
  To: 'Tomcat Users List'
  Subject: RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.


  Everyone,

  I have a simple question - I've looked in the documentation and
  can't seem
  to find it.  I'm in the process of trying to use JBoss and Tomcat, and am
  poking around with Tomcat and wanted to use the admin pages.  Except...
  I have NO IDEA what the user name and password is...  Any help???

   mark


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: MySQL jdbc connection url [ + server.xml bug]

2001-11-01 Thread Paul DuBois

At 11:48 AM -0500 11/1/01, David Smith wrote:
An additional note on the  character in the connection URL for MySQL...

XML syntax is going to require the  character be encoded as amp; so the
real URL should loo something like:

jdbc:mysql://localhost/authority?user=testamp;password=test

This is how I had to write it in my server.xml file.  Works like a charm. 
The encoding does not have to be done in regular JSP or java files.  Only XML
files like server.xml require this.  Everywhere else, just use an  character.

--David Smith

Quite right.  I neglected to mention that.  Thanks for pointing it iout.


On Thursday 01 November 2001 11:16 am, you wrote:
  At 1:51 PM +0100 11/1/01, Andrius wrote:
  Hello,
   What's the correct MySQL jdbc connection url? I'm trying to setup
  jdbcRealm on tomcat 4.0.1,
   and using this url pattern :
  connectionURL=jdbc:mysql://localhost/authority?user=test;password=test
  but it goes wrong - it says Invalid authorization exception: Access
  denied for user: 'test;password@host'.
   I've configured server side permissions properly (mySQL accepts using
  another client). thanx for any response.
  
  obj.

  Only very old versions of the MM.MySQL driver accept ; as a parameter
  separator character.  Current versions accept only  as the separator.

  If any of the Tomcap developers happen to read this:

  Note that the server.xml file that ships with Tomcat 4.0.1 (and probably
  earlier versions as well) is mistaken on this point.  The relevant
  section looks
  like this:

 !--
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver

  connectionURL=jdbc:mysql://localhost/authority?user=test;password=test
 userTable=users userNameCol=user_name
  userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name
  /
 --

  The connectionURL line should be fixed to say this instead:

   connectionURL=jdbc:mysql://localhost/authority?user=testpassword=test


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: ClassNotFoundException when using war file (Tomcat 3.2.3)

2001-10-31 Thread Paul DuBois

The examples that gets shipped with the tomcat.zip file also uses Web-inf 

Maybe the developers never used anything but Windows boxes
(case-insensitive file system)?



[EMAIL PROTECTED] wrote:

  I'm new to tomcat but shouldn't it bet WEB-INF?
  isn't it case sensitive?

  Scott Archer
  [EMAIL PROTECTED]


  Abinesh S
  PuthenpurackalTo: 
[EMAIL PROTECTED]
  abinesh.puthenpurackal   cc:
  @sdrc.comSubject: 
ClassNotFoundException when using war file (Tomcat 3.2.3)

  10/31/2001 09:45 AM
  Please respond to
  Tomcat Users List



  Hi,

  I am trying to use a war which has some jar files in it for my web
  application in tomcat 3.2.3. The war file is structured as follows

  WarFile.war
  Web-inf/lib/jarfile1.jar
  Web-inf/lib/jarfile2.jar
  Web-inf/lib/jarfile3.jar

  When running the application I get ClassNotFoundException for the
  classes in the jar file. Also I noticed that empty directories (that
  follows my package structure) were created under lib directory. E.g. I
  see the following empty directories

  %TOMCAT_HOME%/webapps/webapplication/Web-inf/lib/examples/addressbook/.

  A workaround is to place the jar files in the tomcat/lib directory. This
  will result in the the jars to be added to the classpath and everything
  works fine.

  I was wondering if anyone knows about a cleaner solution or point out if
  there is something that I need to do to get this working (perhaps
  something in manifest file or web.xml file etc.).

  Any help is greatly appreciated.

  Thanks,

  Abi -

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


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


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