Tomcat 5.5 help needed

2008-07-21 Thread suman
Hello,
I install Apache 5.5 on Ubuntu as super user.
I also do following:
I also create executable tomcat in /etc/init.d with following contents:

export JAVA_HOME=/sw/jdk1.5.0_16
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME=/sw/tomcat55
cd $CATALINA_HOME
./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar
-outfile ./logs/catalina.out -errfile ./logs/catalina.err
org.apache.catalina.startup.Bootstrap
---
I create rc2.d/S31tomcat  and rc6.d/S31tomcat  to point to above executable
and the tomcat comes up when machine reboots. Till now I have no issues.
Now when I try to start / shutdown the tomcat process I see jsvc is unable
to shut it down.
I use following command to shut it down:
-
/sw/tomcat55/bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp
./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile
./logs/catalina.err org.apache.catalina.startup.Bootstrap -stop -pidfile
/var/run/jsvc.pid


--

Now the .logs.catalina.err has following error:
---
19/07/2008 13:06:43 6455 jsvc.exec error: Still running according to PID
file /var/run/jsvc.pid, PID is 6300
19/07/2008 13:06:43 6454 jsvc.exec error: Service exit with a return value
of 122

-

Any idea wht's going wrong here. Please let me know how to start and stop
this server like we do for other daemons. e.g
/etc/init.d/httpd start
/etc/init.d/httpd stop
etc.

Any help is appreciated.
Thank you.
-suman


Re: Tomcat 5.5 help needed

2008-07-21 Thread Deepak Mishra
On Mon, 21 Jul 2008 11:37:20 +0530, suman [EMAIL PROTECTED]  
wrote:



Any idea wht's going wrong here. Please let me know how to start and stop
this server like we do for other daemons. e.g
/etc/init.d/httpd start
/etc/init.d/httpd stop
etc.


for starting/stopping tomcat you should try:
sudo sh /etc/init.d/tomcatX.X start (where X is the version)
sudo sh /etc/init.d/tomcatX.X stop

have you installed tomcat through synaptic/apt-get ? if you have installed  
it manually (by compiling) , then you need to make a startup-script for  
tomcat.

if you cant create the script, do reply.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



apache tomcat on xserve leopard

2008-07-21 Thread Dave

Hi,
I have a new xserve and it is running both apache and tomcat But it  
doesn't seem like they are hooked together.
I am looking to deploy open bluedragon via war file with tomcat and  
still use apache to server up coldfusion 8.


If I edit the files manually it works fine but the issue is that the  
leopard server over writes all the files if you make changes.
The main thing I need to add to apache is a proxypass and  
proxypassreverse which there is an entry for in the xserve gui but it  
doesnt add them correctly and does not work.


It seems kind of odd that both come pre-installed and running but not  
together and I can't find much info on this.


Anyone have any ideas for me?

thanks 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache tomcat on xserve leopard

2008-07-21 Thread Peter Crowther
 From: Dave [mailto:[EMAIL PROTECTED]
 I have a new xserve and it is running both apache and tomcat But it
 doesn't seem like they are hooked together.
[...]
 If I edit the files manually it works fine but the issue is that the
 leopard server over writes all the files if you make changes.
 The main thing I need to add to apache is a proxypass and
 proxypassreverse which there is an entry for in the xserve gui but it
 doesnt add them correctly and does not work.

Typical Apple - a superb interface for the common operations, actively broken 
for the uncommon ones.  You'll probably have more luck on an httpd list than a 
Tomcat list for this one, as most people on this list hook httpd and Tomcat 
together using AJP rather than by proxying.  That configuration is sufficiently 
complex that I suspect Apple won't have coded for it, though you might want to 
check.

[...]
 Anyone have any ideas for me?

The main answers you'll get on here are, I suspect, Don't use xserve or 
Don't use the pre-packaged server applications.  I'm in the second camp.  You 
almost certainly won't be able to get the config you need using Apple's GUI; 
Apple's GUI is overwriting the correct config; you probably can't ensure that 
nobody ever uses Apple's GUI to make config changes; so the way to a system 
that works and keeps working is to install versions of the applications that 
can't have their config overwritten at whim.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: Rotate stdout_xxx.log without Restart Tomcat

2008-07-21 Thread Alexander Diedler
Has nobody any idea about rotating Tomcat logfiles??

Alex

-Original Message-
From: Alexander Diedler [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 9:24 AM
To: users@tomcat.apache.org
Subject: Rotate stdout_xxx.log without Restart Tomcat

Hello,

It is possible to implement a log rotation for the Tomcat Default logs
(Stdout, stderr,localhost,Jakarta_service etc) ?

It is a Tomcat 6.0.14 x64 on Windows 2003 Std Ed.

 

Greetings

Alex

 

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invalid DOAP file for the Tomcat Project

2008-07-21 Thread Erling Wegger Linde
Hi,

http://svn.apache.org/repos/asf/tomcat/site/trunk/docs/doap_Tomcat.rdf
is invalid.

Try validating it here to see for yourself: http://rdfabout.com/demo/validator/

You should replace:

release
  Version
nameLatest Stable Release/name
created2006-04-14/created
revision5.5.17/revision
  /Version
  Version
name5.5.16/name
created2006-03-05/created
revision5.5.16/revision
  /Version
  Version
name5.5.15/name
created2006-01-23/created
revision5.5.15/revision
  /Version
/release

With :

release
  Version
nameLatest Stable Release/name
created2006-04-14/created
revision5.5.17/revision
  /Version
/release
release
  Version
name5.5.16/name
created2006-03-05/created
revision5.5.16/revision
  /Version
/release
release
  Version
name5.5.15/name
created2006-01-23/created
revision5.5.15/revision
  /Version
/release

Btw. I don't know if this is a general problem for all the doap files
with more than one version at http://projects.apache.org/index.html or
not. If the files are auto-generated, then it probably is =)

Thanks,
- Erling

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FW: Rotate stdout_xxx.log without Restart Tomcat

2008-07-21 Thread Alex Mestiashvili

Alexander Diedler wrote:

Has nobody any idea about rotating Tomcat logfiles??

Alex

-Original Message-
From: Alexander Diedler [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 9:24 AM

To: users@tomcat.apache.org
Subject: Rotate stdout_xxx.log without Restart Tomcat

Hello,

It is possible to implement a log rotation for the Tomcat Default logs
(Stdout, stderr,localhost,Jakarta_service etc) ?

It is a Tomcat 6.0.14 x64 on Windows 2003 Std Ed.

 


Greetings

Alex

 

 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


The problem is windows ...

but , may be this links will be useful for you
http://www.datori.org/?p=7
http://freshmeat.net/projects/perl-logrotate/

but , you should be careful with log rotation , it is better to copy log 
and truncate it , but not rename , in such case restart of tomcat is not 
needed .


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat + SSL+ page cannot be displayed

2008-07-21 Thread Bellamine, Khalil
Hi all,
I've configured my tomcat server to use SSL with the explanation
in tomcat site (ssl-howto.html). After this configuration when I try
https://localhost:8443 in Internet Explorer the page try to open for a
long time and then I get The page cannot be displayed error. I even
tried with Mozilla FireFox and I had the same result.

I'm using Tomcat 6.0.16 and JRE 1.6.0_06 and I have the
.keystore in the default directory. I chose the normal installation for
Tomcat without the APR package. I didn't install the JSSE because I have
the last version of JRE and as I read isn't necessary.
I configured the connector in the server.xml file as below:
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=${user.home}/.keystore
keystorePass=mypasswd/

Does anyone know if is needed more configuration to use ssl?

Thanks, Khalil.


Re: Apache/mod_jk serves random files from tomcat

2008-07-21 Thread Tim Redding

Hi,

 Are Apache and Tomcat on the same system? 

Yes they are.


 Do you have any of the httpd cache modules active?

No, none.


Tim..




Rainer Jung-3 wrote:
 
 Tim Redding schrieb:
 I now have logs from both the Apache server and Tomcat.   I'm a little
 unsure
 how to interpret these log files. It shows that Tomcat does serve the
 file
 correctly and it is Apache that appears to do something odd when Tomcat
 returns a 304 response code.  
 
 Apache Access Log
 
 xx.xx.4.58 - - [17/Jul/2008:12:31:38 +0100] GET /css/global.css
 HTTP/1.1
 304 -
 xx.xx.4.58 - - [17/Jul/2008:12:31:42 +0100] GET /css/global.css
 HTTP/1.1
 200 2352
 xx.xx.4.58 - - [17/Jul/2008:12:31:48 +0100] GET /css/global.css
 HTTP/1.1
 200 7323
 xx.xx.4.58 - - [17/Jul/2008:12:31:51 +0100] GET /css/global.css
 HTTP/1.1
 304 -
 xx.xx.4.58 - - [17/Jul/2008:12:33:01 +0100] GET /css/global.css
 HTTP/1.1
 200 7248
 xx.xx.4.58 - - [17/Jul/2008:13:42:14 +0100] GET /css/global.css
 HTTP/1.1
 200 7323
 
 Tomcat Access Log
 
 xx.xx.4.58 - - [17/Jul/2008:12:31:38 +0100] GET /css/global.css
 HTTP/1.1
 304 -
 xx.xx.4.58 - - [17/Jul/2008:12:31:42 +0100] GET /css/global.css
 HTTP/1.1
 304 -
 xx.xx.4.58 - - [17/Jul/2008:12:31:48 +0100] GET /css/global.css
 HTTP/1.1
 200 7323
 xx.xx.4.58 - - [17/Jul/2008:12:31:50 +0100] GET /css/global.css
 HTTP/1.1
 304 -
 xx.xx.4.58 - - [17/Jul/2008:12:33:01 +0100] GET /css/global.css
 HTTP/1.1
 304 -
 xx.xx.4.58 - - [17/Jul/2008:13:42:14 +0100] GET /css/global.css
 HTTP/1.1
 200 7323
 
 Little unsure about how the 4th request at 12:31:51 on Apache was served
 by
 Tomcat at 12:31:50.  I've double checked this and it is correct.
 
 Are Apache and Tomcat on the same system? If not: is ntp used and does 
 indeed work? The timestamp with Apache is taken directly after the 
 request comes in, with Tomcat directly before Logging, so after the 
 response has been send out. This makes it even more strange.
 
 Do you have any of the httpd cache modules active?
 
 Regards,
 
 Rainer
 
 Tim Redding wrote:

 Thanks for the quick reply.  I've enabled the AccessLogValve.  I've just
 gotta wait for it to start playing up again.  Could be 2 hours or 2
 weeks. 
 I'll reply when I have more info.

 Tim.


 Len Popp wrote:
 That log file is from the httpd server, right? What does the Tomcat
 log file say? (Turn on AccessLogValve if you haven't already.) Is
 Tomcat always getting requests for the correct file, or is mod_jk
 requesting the wrong file sometimes?
 -- 
 Len


 On Thu, Jul 10, 2008 at 11:44, Tim Redding [EMAIL PROTECTED]
 wrote:
 Hi,

 We are experiencing intermittent problems with a particular site that
 is
 not
 returning the correct file that is requested.  For instance if we
 request
 the index.html file we actually get a css file or even an image.  From
 the
 apache access log you can see that the size of the index.html file
 grows
 on
 the second request. This is because a gif was actually returned.

 XXX.XXX.XXX.130 - - [10/Jul/2008:15:10:39 +0100] GET /index.html
 HTTP/1.1
 200 1068
 XXX.XXX.XXX.130 - - [10/Jul/2008:15:13:10 +0100] GET /index.html
 HTTP/1.1
 200 9526
 XXX.XXX.XXX.130 - - [10/Jul/2008:15:13:48 +0100] GET /index.html
 HTTP/1.1
 200 1086

 No error messages are logged in the mode_jk.log file.

 We have Apache/2.2.3 on the front on a Tomcat 6.0.16 server with
 mod_jk
 (version unknown but fairly recent).  We have all assets in our war
 file.
 When we hit Tomcat directly on port 8080 it serves the correct file.
 And
 to
 fix the problem an apache restart seems to sort things out.

 On this server with have 2 vhosts.  One is a simple nothing fancy
 static
 site and the other forwards everything to our Tomcat server.  Below
 I've
 included our mod_jk config and a snippet of our httpd.conf.

 Any ideas or things to try would be most appreciated.


 Tim.



 = mod_jk.conf ==

 # Load mod_jk module
 # Specify the filename of the mod_jk lib
 LoadModule jk_module modules/mod_jk.so

 # Where to find workers.properties
 JkWorkersFile conf/workers.properties

 # Where to put jk logs
 JkLogFile logs/mod_jk.log

 # Set the jk log level [debug/error/info]
 JkLogLevel debug

 # Select the log format
 JkLogStampFormat [%a %b %d %H:%M:%S %Y]

 # JkOptions indicates to send SSK KEY SIZE
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

 # JkRequestLogFormat
 JkRequestLogFormat %w %V %T

 # Add shared memory.
 # This directive is present with 1.2.10 and
 # later versions of mod_jk, and is needed for
 # for load balancing to work properly
 JkShmFile logs/jk.shm

 # original URL pass through
 JkEnvVarORIGINAL_URIw00t

 # Add jkstatus for managing runtime data
 Location /jkstatus/
 JkMount status
 Order deny,allow
 Deny from all
 Allow from 127.0.0.1
 /Location


 === httpd.conf (our additions to the default file) ==

 # mod_jk include
 Include conf/mod_jk.conf

 VirtualHost *:80
DocumentRoot /var/www/html/
ServerName example.co.uk
ErrorLog logs/default-error.log
 

Re: some concepts needed

2008-07-21 Thread Deepak Mishra

On Sun, 20 Jul 2008 23:24:45 +0530, David Smith [EMAIL PROTECTED] wrote:

Tomcat does have a java compiler (jasper) to compile jsp pages to  
servlets, but it also needs a JVM (java).  Setting CLASSPATH is a big  
no-no.  Put any required jars your webapp might need in the proper  
place.  If you use tomcat's internal pooling for db connections, that  
means putting driver jar files in tomcat's lib directory.


--David


sorry, if i am looking into this matter too much , but i really want to  
know more !!
i just read class loading in java. the jar files (all the ones needed by  
the program) are loaded by the JVM (through bootstrap , extension and  
system classloaders) just before running the program.
now, since tomcat uses the operating system installed JVM for running the  
programs (as you said it has got only a java compiler of its own and not a  
personal JVM), why isnt it(the operating system JVM)  able to locate the  
CLASSPATH for jsps as it would do for an ordinary program??


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: some concepts needed

2008-07-21 Thread David Smith
Back in the days before tomcat 3.3, we used to have to put all the jars 
on the classpath and it was HORRIBLE.  Nasty version conflicts and lot's 
of headaches.  Somewhere after the introduction of tomcat 3.3, tomcat 
started purposely ignoring the CLASSPATH in favor of it's own 
classloader architecture in order to save people a fair number of 
headaches.  In short, you shouldn't worry about CLASSPATH.   Just put 
the jar files where they belong -- typically in your webapp's 
WEB-INF/lib folder and watch tomcat do it's wonderful magic.


--David

Deepak Mishra wrote:

On Sun, 20 Jul 2008 23:24:45 +0530, David Smith [EMAIL PROTECTED] wrote:

Tomcat does have a java compiler (jasper) to compile jsp pages to 
servlets, but it also needs a JVM (java).  Setting CLASSPATH is a big 
no-no.  Put any required jars your webapp might need in the proper 
place.  If you use tomcat's internal pooling for db connections, that 
means putting driver jar files in tomcat's lib directory.


--David


sorry, if i am looking into this matter too much , but i really want 
to know more !!
i just read class loading in java. the jar files (all the ones needed 
by the program) are loaded by the JVM (through bootstrap , extension 
and system classloaders) just before running the program.
now, since tomcat uses the operating system installed JVM for running 
the programs (as you said it has got only a java compiler of its own 
and not a personal JVM), why isnt it(the operating system JVM)  able 
to locate the CLASSPATH for jsps as it would do for an ordinary program??


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
David Smith
Programmer/Analyst
College of Agriculture and Life Sciences
Cornell University
B32 Morrison Hall
Ithaca, NY 14853
Phone: (607) 255-4521


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to run tomcat in Eclipse

2008-07-21 Thread Larry Isaacs
For details about the Tomcat support, see:

http://wiki.eclipse.org/WTP_Tomcat_FAQ

You might also check the Error Log view to see if any complaints are being 
logged related to this.

Cheers,
Larry

 -Original Message-
 From: KANIKA GUPTA [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 19, 2008 2:18 PM
 To: Tomcat Users List
 Subject: Re: Unable to run tomcat in Eclipse

 I am using the tomcat version downloaded from apache site only...
 I just cant figure out what the problem is...

 Kanika

 --- On Sat, 7/19/08, Ken Bowen [EMAIL PROTECTED] wrote:
 From: Ken Bowen [EMAIL PROTECTED]
 Subject: Re: Unable to run tomcat in Eclipse
 To: Tomcat Users List users@tomcat.apache.org
 Date: Saturday, July 19, 2008, 9:50 PM

 Are you running a version of Tomcat supplied by your Linux
 distribution?
 Often these cause many problems.   You might try downloading a clean
 version of Tomcat from the Apache site,
 unzipping that, and trying it.

 On Jul 19, 2008, at 12:37 AM, KANIKA GUPTA wrote:

 
  Hi
 
  I am using tomcat V6.0.16 on openSuse 11.0 along with eclipse 3.4.0
  genameyde.
  The tomcat starts and stop normally when i do the same on command
  line, but when i try to start the server through eclipse... it gives
  me the following error:
 
  'Starting Tomcat v6.0 Server at localhost has encountered a problem.
  Could not load the Tomcat server configuration at /Servers/Tomcat
  v6.0 Server at localhost-config. The configuration may be corrupt or
  incomplete.
 
  I am running the server at port 8085. I changed it to same in the
  server.xml file located in the installation directory of tomcat in
  conf folder. This was done because i am using was ce at 8080.
 
  I have jdk5 as well as jdk6 installed bt currently working with jdk5.
 
  Please help what to do...
 
  Kanika
 
 
 
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: some concepts needed

2008-07-21 Thread Caldarale, Charles R
 From: David Smith [mailto:[EMAIL PROTECTED]
 Subject: Re: some concepts needed

 In short, you shouldn't worry about CLASSPATH.

Don't just not worry about it - don't even think about using it.

 Just put the jar files where they belong -- typically in
 your webapp's WEB-INF/lib folder and watch tomcat do it's
 wonderful magic.

The OP needs to read the Servlet spec to get an understanding of webapp 
structure and construction:
http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html

And also the Tomcat classloading doc:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

The CLASSPATH variable, like the invoker servlet, is an abomination; neither 
should ever be used.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: some concepts needed

2008-07-21 Thread Deepak Mishra

On Mon, 21 Jul 2008 17:29:58 +0530, David Smith [EMAIL PROTECTED] wrote:

Back in the days before tomcat 3.3, we used to have to put all the jars  
on the classpath and it was HORRIBLE.  Nasty version conflicts and lot's  
of headaches.  Somewhere after the introduction of tomcat 3.3, tomcat  
started purposely ignoring the CLASSPATH in favor of it's own  
classloader architecture in order to save people a fair number of  
headaches.  In short, you shouldn't worry about CLASSPATH.   Just put  
the jar files where they belong -- typically in your webapp's  
WEB-INF/lib folder and watch tomcat do it's wonderful magic.


--David
 thanks a lot david..especially for the patience you showed...its all  
clear now.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable

2008-07-21 Thread Jesse Klaasse

Last Wednesday, I decided to try to use commons-dbcp (1.2.2) instead of the
included naming-factory-dbcp.jar. Besides that, I have removed the
validationQuery attribute, after reading about some problems with that.

Since then, no problems have arised, Tomcat behaved nicely. I hope this
finally has solved my problems. Still have to wait a few weeks before I can
really say the system is stable. I keep my fingers crossed.

Only problem which I still can't explain: there seems to be a 20 second
timeout somewhere between IIS and Tomcat. I have created a test JSP with
does this:

out.println(wait...); out.flush();
Thread.sleep(65000).
out.println(finished!); out.flush();

Calling Tomcat directly by using http://localhost:8080/delay.jsp works as
expected (it shows wait..., then waits for 65 seconds and then prints
finished!).

Calling the same page through IIS causes this:
wait... appears on screen
after 10 seconds, another wait... appears
after another 10 seconds, a Service temporary unavailable message appears

I suppose this has something to do with the connect_timeout, prepost_timeout
and socket_timeout parameters (which are set to 1, 1 and 10
respectively). Should I set these values to a higher value? What I
especially don't understand, is the reappearance of wait... after 10
seconds.

Again, thanks for your help so far! Regards, Jesse.


Rainer Jung-3 wrote:
 
 Jesse Klaasse schrieb:
 Hi Rainer,
 
 We are a week later now, with the changed settings, and while the
 environment first seemed to be a little more stable, in the end this
 unfortunately is not the case... We still reboot Tomcat every night
 automatically, and most of the time once a day manually because of the
 503
 error.
 
 For example, I restarted Tomcat and IIS 10 minutes ago, and in the last
 10
 minutes, isapi_redirect.log shows about 7 503 errors. Also a lot of 53,
 54,
 60 and 61 errors.
 
 Still looking into the dbcp issue.. I will try to put up a new post, but
 I'm
 not sure what the relevant info would be..
 
 Do you have any clues left?
 
 Focus on the dbcp problem: Database Pool: all threads waiting in 
 getConnection(). Check, if your bad nodes once again encountered this 
 problem (using thread dumps). Then start a new discussion thread with an 
 appropriate Subject. I'm sure webapp developers with db pool experience 
 will try to help. If the tomcat users list doesn't find a solution, you 
 could then move along to the dbcp list.
 
 Regards,
 
 Rainer
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/IIS-6.0---JK1.2.25---Tomcat-5.5.20---%22Service-temporary-unavailable%22-tp18238896p18570774.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Capture and replay

2008-07-21 Thread Andrew Hole
Hello!

I'm interested to  capture and replay Java application  events. There is
some tool to do that? My java application runs on tomcat container.

Thanks a lot


Tomcat 5.0.27 + Mod_Jk2 issue

2008-07-21 Thread sridharmnj

Hi,
Firstly my apologies for asking help about a deprecated application
(mod_jk2).

We have Tomcat5.0.27 + Mod_jk2 setup on the production.

One tomcat instance is running with the following port numbers for the
existing sites.
8080, 8009, 8005

Now we have reengineered an existing site and created a new tomcat instance
with the following port numbers.
9080, 9009, 9005

I added the below configuration to workers2.properties file in apache/conf
folder.

###[channel.socket:localhost:9009]
info=A second tomcat instance. 
debug=0
tomcatId=localhost:9009

I restarted apache and new tomcat instances.
But, I couldnot access the new site using www.mysite.com/newInstance.
Instead I could access it using www.mysite.com:9080/newInstance.

I didnot change anything in httpd.conf file. Do I need to configure any
thing else in workers2.properties file or httpd.conf file?

I referred many forums and apache site
(http://tomcat.apache.org/connectors-doc-archive/jk2/index.html), but of no
use.

Please point me in right direction.

Thanks,
Sridhar




-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.0.27-%2B-Mod_Jk2-issue-tp18572352p18572352.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat PHP install

2008-07-21 Thread Ryan Ollerenshaw
I am trying to get Tomcat and PHP running on the same server.  I am using to 
following tutorial: http://wiki.apache.org/tomcat/UsingPhp everything seems to 
be working but when i load my test.php page i get the following error:

java.lang.UnsatisfiedLinkError: libphp4: /usr/lib64/gcj-4.1.2/libphp4.so: 
undefined symbol: JNI_CreateJavaVM

I am using the following:
Tomcat 5
apache 2.2
java 1.4.2_18

Any suggestions on what i should try next?



  

tomcat 5.5 help needed in start-stop

2008-07-21 Thread suman
Hello,
I install Apache 5.5 on Ubuntu as super user.
I also do following:
I also create executable tomcat in /etc/init.d with following contents:

export JAVA_HOME=/sw/jdk1.5.0_16
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME=/sw/tomcat55
cd $CATALINA_HOME
./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar
-outfile ./logs/catalina.out -errfile ./logs/catalina.err
org.apache.catalina.startup.Bootstrap
---
I create rc2.d/S31tomcat  and rc6.d/S31tomcat  to point to above executable
and the tomcat comes up when machine reboots. Till now I have no issues.
Now when I try to start / shutdown the tomcat process I see jsvc is unable
to shut it down.
I use following command to shut it down:
-
/sw/tomcat55/bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp
./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile
./logs/catalina.err org.apache.catalina.startup.Bootstrap -stop -pidfile
/var/run/jsvc.pid


--

Now the .logs.catalina.err has following error:
---
19/07/2008 13:06:43 6455 jsvc.exec error: Still running according to PID
file /var/run/jsvc.pid, PID is 6300
19/07/2008 13:06:43 6454 jsvc.exec error: Service exit with a return value
of 122

-

Any idea wht's going wrong here. Please let me know how to start and stop
this server like we do for other daemons. e.g
/etc/init.d/httpd start
/etc/init.d/httpd stop
etc.

Any help is appreciated.
Thank you.
-suman


Re: Tomcat PHP install

2008-07-21 Thread Gabe Wong

Hi Ryan,

Since you are already using Apache, why burden yourself with serving PHP 
through Tomcat. It would be so so much easier to serve PHP directly

from Apache.
Regards

Ryan Ollerenshaw wrote:

I am trying to get Tomcat and PHP running on the same server.  I am using to 
following tutorial: http://wiki.apache.org/tomcat/UsingPhp everything seems to 
be working but when i load my test.php page i get the following error:

java.lang.UnsatisfiedLinkError: libphp4: /usr/lib64/gcj-4.1.2/libphp4.so: 
undefined symbol: JNI_CreateJavaVM

I am using the following:
Tomcat 5
apache 2.2
java 1.4.2_18

Any suggestions on what i should try next?



  
  



--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement for Cloud Computing
http://www.ngasi.com
NEW! FREE Developer account for Hosted version on Amazon EC2


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat 5.5 help needed in start-stop

2008-07-21 Thread Deepak Mishra

Any idea wht's going wrong here. Please let me know how to start and stop
this server like we do for other daemons. e.g
/etc/init.d/httpd start
/etc/init.d/httpd stop
etc.

Any help is appreciated.
Thank you.
-suman


if you installed tomcat through the repositories , you should have got a  
start-stop script as /etc/init.d/tomcat5.5
if you have compiled and installed tomcat, you can make the above file  
like this :(this is for java1.6 and tomcat6,adjust the parameters).


export JAVA_HOME=/usr/lib/jvm/java-6-sun
case $1 in
start)
sh /usr/local/apache-tomcat-6.0.14/bin/startup.sh;;
stop)
sh /usr/local/apache-tomcat-6.0.14/bin/shutdown.sh;;
restart)
	sh /usr/local/apache-tomcat-6.0.14/bin/shutdown.sh sleep 5  sh  
/usr/local/apache-tomcat-6.0.14/bin/startup.sh;;

esac
exit 0


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat PHP install

2008-07-21 Thread Ryan Ollerenshaw
I am have installed ArcIMS on my server which requires Tomcat to handle all the 
calls to the default port 80.  With Tomcat handling the calls to port 80 there 
is no way to have apache running on the same port to handle the PHP calls so i 
need some way to have Tomcat handle PHP.

-Ryan



- Original Message 
From: Gabe Wong [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, July 21, 2008 10:38:31 AM
Subject: Re: Tomcat PHP install

Hi Ryan,

Since you are already using Apache, why burden yourself with serving PHP 
through Tomcat. It would be so so much easier to serve PHP directly
from Apache.
Regards

Ryan Ollerenshaw wrote:
 I am trying to get Tomcat and PHP running on the same server.  I am using to 
 following tutorial: http://wiki.apache.org/tomcat/UsingPhp everything seems 
 to be working but when i load my test.php page i get the following error:

 java.lang.UnsatisfiedLinkError: libphp4: /usr/lib64/gcj-4.1.2/libphp4.so: 
 undefined symbol: JNI_CreateJavaVM

 I am using the following:
 Tomcat 5
 apache 2.2
 java 1.4.2_18

 Any suggestions on what i should try next?



  
  


-- 
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement for Cloud Computing
http://www.ngasi.com
NEW! FREE Developer account for Hosted version on Amazon EC2


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Re: Multiple websites in tomcat

2008-07-21 Thread André Warnier

Hi Ravi.

It is quite difficult to help you if
a) you do not provide precise information
b) you do not follow precise steps when indicated
c) you mix up information when describing a problem

Ravi Sharma wrote:

Hi Andre,
 Thanks a lot for your help and time , i really appreciate your patience
to explain me everything step by step.
I did the exactly what u suggested.

No, you did not.

 I have tomcat running on port 9080(as

well as 8180) and 8009 is ajp listner.
http://www.jaatmusic.com:9080
http://www,jaatmusic.com:8180
http://www.jaatmusic.com:8009
all working


Ok, but how do you know they are working ? did you use the netstat
command as suggested ?
Maybe you did, but I do not know that, and my own information
contradicts that.
I can see the connector 8009 open from outside, but not 9080 nor 8180.
That is possible, because between me and them, there may be a firewall
that is not there for you.
I can see a connector at port 8009, and can see that it is AJP13, but 
when I connect to it via telnet, it gives me a different kind of answer 
than when I connect to the connector 8009 of my own tomcat 4.1 system.

So I am still wondering if I am seeing the same system, or seeing a
different port 8009 on your firewall (if any).



My Server.xml is like this

 Connector port=9080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=9443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

This does not seem to be an exact copy of your server.xml.  There is,
for example, a classname attribute missing, which is strange.
It also has different attributes than the next one.  Where does that 
Connector come from ?

It is that kind of thing that makes me wonder.


Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8180 minProcessors=5 maxProcessors=75
  enableLookups=true acceptCount=10 debug=0
  connectionTimeout=2 useURIValidationHack=false /

This one seems ok.


Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/

This one also.

At this point, I was asking you to try to access your Tomcat server
directly, without going through Apache.
In other words, using the following links, exactly :
a) http://www.jaatmusic.com:8180
b) http://www.jaatmusic.com:8180/examples
What do you get when you try (a) or (b) above ?

Next, now that I know that you also have a port 9080, and only if it 
works with the above port 8180, then also try

c) http://www.jaatmusic.com:9080
d) http://www.jaatmusic.com:9080/examples
What do you get when you try (c) or (d) above ?
(you should get the same thing)

Next,


put these two lines in apache
JkMount /ex testWorker
JkMount /ex/* testWorker

No, that is not what I asked.
What I asked you to do, was to put these 2 lines :
JkMount /examples testWorker
JkMount /examples/* testWorker
and restart Apache
(not /ex, but /examples.  There was a reason for asking that.)




I am sorry but it still not working.
*In apache log i got this*
File does not exist: /home/jaatadmin/public_html/ex*
( NOTE : /home/jaatadmin/public_html* is my default apache directory for
this domain,

No, it is not. /home/jaatadmin/public_html* cannot be your
DocumentRoot of Apache, because there is a * at the end.
If you provide information, please provide the exact configuration line, 
not an inexact version, that is confusing.


 so when u just write the jaatmusic.com it picks index.html from

this dir, but when i had alias there it was picking index.html from
servelet-examples folder of webapps of tomcat dir, anyways alias is
different story)

Yes, Alias is a different story.  And not a good idea.
But one thing at a time, that is why I was asking you for a deliberate
and precise series of steps.
I do not see and cannot guess the exact content of your configuration 
files, and I do not exactly know how your setup is, in terms of network,

firewall, etc..
So I am trying to understand it, in order to help you.
But if you give me approximative data, then I cannot help, because it
does not make a lot of sense.

[...]

*In Browser i am getting following error message from apache when i access
this url*
http://www.jaatmusic.com/ex http://www.jaatmusic.com/examples
or this link http://www.jaatmusic.com/ex/servlet/HelloWorldExample

Not Found

The requested URL /ex/ was not found on this server.
--
Apache/2.2.8 (Fedora) Server at www.jaatmusic.com Port 80
Again : the error message cannot be exactly the same for all 3 URLs. So 
you are interpreting, and that makes things more confusing for the 
person trying to help.



Which browser are you using ? Internet Explorer, or another one ?

I also have a specific technical reason to ask :
when a server responds with a 404 error page (not found), Firefox or
Netscape show you the page as it comes back from the server.  

Re: Tomcat PHP install

2008-07-21 Thread Gabe Wong

Hi Ryan,

The common practice for such a scenario is to have Apache act as a proxy 
to Tomcat via mod_proxy or mod_jk.


Regards

Ryan Ollerenshaw wrote:

I am have installed ArcIMS on my server which requires Tomcat to handle all the 
calls to the default port 80.  With Tomcat handling the calls to port 80 there 
is no way to have apache running on the same port to handle the PHP calls so i 
need some way to have Tomcat handle PHP.

-Ryan



- Original Message 
From: Gabe Wong [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, July 21, 2008 10:38:31 AM
Subject: Re: Tomcat PHP install

Hi Ryan,

Since you are already using Apache, why burden yourself with serving PHP 
through Tomcat. It would be so so much easier to serve PHP directly

from Apache.
Regards

Ryan Ollerenshaw wrote:
  

I am trying to get Tomcat and PHP running on the same server.  I am using to 
following tutorial: http://wiki.apache.org/tomcat/UsingPhp everything seems to 
be working but when i load my test.php page i get the following error:

java.lang.UnsatisfiedLinkError: libphp4: /usr/lib64/gcj-4.1.2/libphp4.so: 
undefined symbol: JNI_CreateJavaVM

I am using the following:
Tomcat 5
apache 2.2
java 1.4.2_18

Any suggestions on what i should try next?



 
 




  



--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement for Cloud Computing
http://www.ngasi.com
NEW! FREE Developer account for Hosted version on Amazon EC2


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Server.xml Host Configuration

2008-07-21 Thread Tomcat User6


Hi All,

I am new to configuring Server.xml for tomcat. I am using Tomcat 6.0. I have
an application called Roller from apache for blogging purposes. I want to
configure its host by forum.abc123.com. I did the configuration as below:

Host name=forum.abc123.com
  appBase=/usr/local/apache-tomcat-6.0.16/webapps/roller
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
  Aliasforum.abc123.com/Alias

   Context docBase= path=/ /
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=local_roller_access_log.
suffix=.txt
pattern=common
resolveHosts=false//Host


This application is under the
/usr/local/apache-tomcat-6.0.16/webapps/roller directory and that is not a
WAR file but a directory. When I clicked on Web URL with forum.abc123.com,
it is showing me site but with no colors and styles as they are in original.
Log sile says that it is not finding any of the files and that is why none
of the links on the first page are aslo working.

I am sure that, i am doing something wrong in configuration. Please help me
out.

Thank you in advance.

-- 
View this message in context: 
http://www.nabble.com/Server.xml-Host-Configuration-tp18575305p18575305.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: logging!!

2008-07-21 Thread Shahar Cohen
Hi,
I indeed already look at this page but unfortunately I haven't found the
'header content-length' argument there.
Can you please tell me which argument supplies this information?
Thanks in advanced.


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 19, 2008 10:16 PM
To: Tomcat Users List
Subject: RE: logging!!

 From: Shahar Cohen [mailto:[EMAIL PROTECTED]
 Subject: logging!!

 I want to log inside my access log the  header content-length

http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%2
0Valve

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: logging!!

2008-07-21 Thread Caldarale, Charles R
 From: Shahar Cohen [mailto:[EMAIL PROTECTED]
 Subject: RE: logging!!

 Can you please tell me which argument supplies this information?

Use an appropriate pattern:

There is also support to write information from the cookie, incoming header, 
the Session or something else in the ServletRequest. It is modeled after the 
apache syntax:

* %{xxx}i for incoming headers
* %{xxx}o for outgoing response headers
* %{xxx}c for a specific cookie
* %{xxx}r xxx is an attribute in the ServletRequest
* %{xxx}s xxx is an attribute in the HttpSession

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache tomcat on xserve leopard

2008-07-21 Thread Dave

thanks Peter...
It is a shame because  the gui is so nice. I had another issue before  
where it was overwriting the files and we needed to add a jrun line in  
and we just built an include for that and all was well but not working  
for this. The gui does have proxying on it but its going to the wrong  
place for this to work.


thanks and I will try the httpd list




On Jul 21, 2008, at 2:21 AM, Peter Crowther wrote:


From: Dave [mailto:[EMAIL PROTECTED]
I have a new xserve and it is running both apache and tomcat But it
doesn't seem like they are hooked together.

[...]

If I edit the files manually it works fine but the issue is that the
leopard server over writes all the files if you make changes.
The main thing I need to add to apache is a proxypass and
proxypassreverse which there is an entry for in the xserve gui but it
doesnt add them correctly and does not work.


Typical Apple - a superb interface for the common operations,  
actively broken for the uncommon ones.  You'll probably have more  
luck on an httpd list than a Tomcat list for this one, as most  
people on this list hook httpd and Tomcat together using AJP rather  
than by proxying.  That configuration is sufficiently complex that I  
suspect Apple won't have coded for it, though you might want to check.


[...]

Anyone have any ideas for me?


The main answers you'll get on here are, I suspect, Don't use  
xserve or Don't use the pre-packaged server applications.  I'm in  
the second camp.  You almost certainly won't be able to get the  
config you need using Apple's GUI; Apple's GUI is overwriting the  
correct config; you probably can't ensure that nobody ever uses  
Apple's GUI to make config changes; so the way to a system that  
works and keeps working is to install versions of the applications  
that can't have their config overwritten at whim.


   - Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Server.xml Host Configuration

2008-07-21 Thread Caldarale, Charles R
 From: Tomcat User6 [mailto:[EMAIL PROTECTED]
 Subject: Server.xml Host Configuration

 Host name=forum.abc123.com
   appBase=/usr/local/apache-tomcat-6.0.16/webapps/roller

Change appBase to /usr/local/apache-tomcat-6.0.16/webapps; appBase must never 
point directly to a specific webapp.

   Aliasforum.abc123.com/Alias

Remove the Alias, since it's the same as the Host name.  In fact you can 
probably just leave the Host name as localhost, as long as DNS routes 
forum.abc123.com to an IP address on your box.  If you are going to change the 
Host name, make sure the defaultHost attribute of the Engine points to a 
valid Host element.

Context docBase= path=/ /

Remove the Context element; it should never be placed in server.xml and you 
don't need one.

 This application is under the
 /usr/local/apache-tomcat-6.0.16/webapps/roller directory

Change the name of the directory to ROOT (case sensitive), rather than roller.  
Remove the existing ROOT directory, if you haven't already done so.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable

2008-07-21 Thread Rainer Jung

Jesse Klaasse schrieb:

Last Wednesday, I decided to try to use commons-dbcp (1.2.2) instead of the
included naming-factory-dbcp.jar. Besides that, I have removed the
validationQuery attribute, after reading about some problems with that.

Since then, no problems have arised, Tomcat behaved nicely. I hope this
finally has solved my problems. Still have to wait a few weeks before I can
really say the system is stable. I keep my fingers crossed.

Only problem which I still can't explain: there seems to be a 20 second
timeout somewhere between IIS and Tomcat. I have created a test JSP with
does this:

out.println(wait...); out.flush();
Thread.sleep(65000).
out.println(finished!); out.flush();

Calling Tomcat directly by using http://localhost:8080/delay.jsp works as
expected (it shows wait..., then waits for 65 seconds and then prints
finished!).

Calling the same page through IIS causes this:
wait... appears on screen
after 10 seconds, another wait... appears
after another 10 seconds, a Service temporary unavailable message appears

I suppose this has something to do with the connect_timeout, prepost_timeout
and socket_timeout parameters (which are set to 1, 1 and 10
respectively). Should I set these values to a higher value? What I
especially don't understand, is the reappearance of wait... after 10
seconds.


Not sure here. There's always the topic of flushing. With Apache httpd 
we have switches to configure, if httpd is allowed to combine ajp result 
packets before sending them to the client, or if it should flush each 
packet by itself. No idea, how IIS does it.


Considering the wait reappearance: what's you client?

To really study communication behaviour I would suggest installing a raw 
http client like curl and then do


curl -v -D - http://myserver:myport/myuri

curl will not cache, follow redirects or any other of those nice user 
GUI features, that make understanding communication behaviour difficult.


prepose and connect timeout should not induce any problem here, because 
the are run before the request is sent, and the result for those probes 
is immediately returned by the Tomcat connector itself.


socket_timeout could be a reason, e.g. JK might detect a request failure 
and retry the request another 2 times, before it gives up.


Any of those should log info and finally error log lines in the isapi 
log telling u more about the reason.


I generally don't like the socket_timeout much ... (the same does not 
hold true for the other timeouts).


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Question about the connector Apache x Tomcat

2008-07-21 Thread Tan, Liao
Hi, All:
 My team has installed Apache 2.x and configured the connector with Tomcat 
4.1.x and when started the apache, it gives the following error:

/usr/local/apache2/bin ./apachectl start
httpd: Syntax error on line 471 of /usr/local/apache2/etc/httpd.conf: Syntax 
error on line 1 of /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot 
load /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved external
/usr/local/apache2/bin 

Does anybody know what´s going on this time?
Thank you
Ingrid 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about the connector Apache x Tomcat

2008-07-21 Thread Steve Ochani
On 21 Jul 2008 at 17:32, Tan, Liao wrote:

Date sent:  Mon, 21 Jul 2008 17:32:38 -0300
From:   Tan, Liao  [EMAIL PROTECTED]
Subject:Question about the connector Apache x Tomcat
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi, All:

Hi,


  My team has installed Apache 2.x and configured the connector with
 Tomcat 4.1.x and when started the apache, it gives the following
 error:

 /usr/local/apache2/bin ./apachectl start
 httpd: Syntax error on line 471 of
 /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of
 /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot load
 /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved
 external
 /usr/local/apache2/bin 

 Does anybody know what´s going on this time?

Do you have mod_jk installed in /usr/local/apache2/lib/modules/ ?

It might be the wrong version (it needs to be built for your version of apache 
httpd), I would
recommend just building it from src yourself.



-Steve O.




 Thank you
 Ingrid


 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable password checking for Manager app

2008-07-21 Thread dracus


Rainer Jung-3 wrote:
 
 
 What about using a different connector to use the manager webapp? It 
 wouldn't be to uncommon to let customer traffic in via the AJP 
 connector, and local admin traffic via the/an http connector. Since that 
 one wouldn't have the tomcatAuthentication=false, it should rely on 
 the defined Realm.
 
 

This opens up other problems that we do not wish to deal with.  The Apache
instance in question is on the local machine, so we would have to use a
non-standard port, which will require getting that approved by the security
team.  Also, with the number of servers we plan of deploying with this
architecture, this would become an administrative problem.  Having the
authentication infrastructure we are building pass the username from Apache
to Tomcat makes this worlds easier, so we will not have to have a separate
infrastructure for updating the Tomcat manager passwords.  When you are
talking about a dozen plus servers with a half dozen to a dozen Tomcat
containers each, with both operational staff and separate development staff
for each container needing access to the manager, managing passwords becomes
challenging. 

Dracus

-- 
View this message in context: 
http://www.nabble.com/Disable-password-checking-for-Manager-app-tp18537331p18577434.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question about the connector Apache x Tomcat

2008-07-21 Thread Tan, Liao
Hi, Steve and all

 Then what if we get the mod_jk for our apache (2.2.2.8) (we are avoinding 
doing the src)? Do u know where(link) can I find?

Thanks
Ingrid



-Original Message-
From: Steve Ochani [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2008 5:52 PM
To: Tomcat Users List
Subject: Re: Question about the connector Apache x Tomcat


On 21 Jul 2008 at 17:32, Tan, Liao wrote:

Date sent:  Mon, 21 Jul 2008 17:32:38 -0300
From:   Tan, Liao  [EMAIL PROTECTED]
Subject:Question about the connector Apache x Tomcat
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi, All:

Hi,


  My team has installed Apache 2.x and configured the connector with
 Tomcat 4.1.x and when started the apache, it gives the following
 error:
 
 /usr/local/apache2/bin ./apachectl start
 httpd: Syntax error on line 471 of
 /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of
 /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot load
 /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved
 external
 /usr/local/apache2/bin 
 
 Does anybody know what´s going on this time?

Do you have mod_jk installed in /usr/local/apache2/lib/modules/ ?

It might be the wrong version (it needs to be built for your version of apache 
httpd), I would 
recommend just building it from src yourself.



-Steve O.




 Thank you
 Ingrid 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about the connector Apache x Tomcat

2008-07-21 Thread Gabe Wong

Tan, Liao wrote:

Hi, All:
 My team has installed Apache 2.x and configured the connector with Tomcat 
4.1.x and when started the apache, it gives the following error:

/usr/local/apache2/bin ./apachectl start
httpd: Syntax error on line 471 of /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot load /usr/local/apache2/lib/modules/mod_jk.sl into server: 

*try mod_jk.so instead of mod_jk.sl*

Unresolved external
/usr/local/apache2/bin 

Does anybody know what´s going on this time?
Thank you
Ingrid 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement for Cloud Computing
http://www.ngasi.com
NEW! FREE Developer account for Hosted version on Amazon EC2


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DataSourceRealm documentation

2008-07-21 Thread Carol Cheung

Hi,

I'm reading about DataSourceRealm at 
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html

and step 2 under Quick Start is confusing.

It says Configure a database username and password for use by Tomcat ...
What does this mean? What should the username and password be and where 
should they be located so that they are configured for use by Tomcat?


There's no username or password specified in the example Realm element 
under the DataSourceRealm section.


Thanks,
Carol

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: DataSourceRealm documentation

2008-07-21 Thread Caldarale, Charles R
 From: Carol Cheung [mailto:[EMAIL PROTECTED]
 Subject: DataSourceRealm documentation

 It says Configure a database username and password for use
 by Tomcat ...
 What does this mean? What should the username and password be
 and where
 should they be located so that they are configured for use by Tomcat?

You appear to have skipped over this rather critical step:

3. Configure a JNDI named JDBC DataSource for your database. Refer to the JNDI 
DataSource Example HOW-TO for information on how to configure a JNDI named JDBC 
DataSource.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question about the connector Apache x Tomcat

2008-07-21 Thread Steve Ochani
On 21 Jul 2008 at 17:59, Tan, Liao wrote:

 Hi, Steve and all

  Then what if we get the mod_jk for our apache (2.2.2.8) (we are
 avoinding doing the src)? Do u know where(link) can I find?

Depends on what OS you are using but some binary releases can be downloaded 
from:

http://tomcat.apache.org/download-connectors.cgi



-Steve O.




 Thanks
 Ingrid



 -Original Message-
 From: Steve Ochani [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 21, 2008 5:52 PM
 To: Tomcat Users List
 Subject: Re: Question about the connector Apache x Tomcat


 On 21 Jul 2008 at 17:32, Tan, Liao wrote:

 Date sent:Mon, 21 Jul 2008 17:32:38 -0300
 From: Tan, Liao  [EMAIL PROTECTED]
 Subject:  Question about the connector Apache x Tomcat
 To:   users@tomcat.apache.org
 Send reply to:Tomcat Users List users@tomcat.apache.org

  Hi, All:

 Hi,


   My team has installed Apache 2.x and configured the connector
 with
  Tomcat 4.1.x and when started the apache, it gives the following
  error:
 
  /usr/local/apache2/bin ./apachectl start
  httpd: Syntax error on line 471 of
  /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of
  /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot
 load
  /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved
  external
  /usr/local/apache2/bin 
 
  Does anybody know what´s going on this time?

 Do you have mod_jk installed in /usr/local/apache2/lib/modules/ ?

 It might be the wrong version (it needs to be built for your version
 of apache httpd), I would
 recommend just building it from src yourself.



 -Steve O.




  Thank you
  Ingrid
 
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSourceRealm documentation

2008-07-21 Thread Steve Ochani
On 21 Jul 2008 at 17:37, Carol Cheung wrote:

Date sent:  Mon, 21 Jul 2008 17:37:29 -0400
From:   Carol Cheung [EMAIL PROTECTED]
Subject:DataSourceRealm documentation
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 
 I'm reading about DataSourceRealm at 
 http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
 and step 2 under Quick Start is confusing.
 
 It says Configure a database username and password for use by
 Tomcat ...
 What does this mean? What should the username and password be and
 where 
 should they be located so that they are configured for use by
 Tomcat?
 

It means make a username/password (account) on the database server. The 
complete 
sentence is:

Configure a database username and password for use by Tomcat, that has at 
least read 
only access to the tables described above. (Tomcat will never attempt to write 
to these 
tables.)



-Steve O.




 There's no username or password specified in the example Realm
 element 
 under the DataSourceRealm section.
 
 Thanks,
 Carol
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSourceRealm documentation

2008-07-21 Thread André Warnier

Carol Cheung wrote:

Hi,

I'm reading about DataSourceRealm at 
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html

and step 2 under Quick Start is confusing.

It says Configure a database username and password for use by Tomcat ...
What does this mean? What should the username and password be and where 
should they be located so that they are configured for use by Tomcat?


There's no username or password specified in the example Realm element 
under the DataSourceRealm section.


Keep looking around there.  I can't tell you where exactly anymore, but 
I was browsing that a few days ago and I remember seeing a place where 
they described what the table should be named, what the columns should 
be, etc..  (or else they are just talking there of the 
tomcat-users.xml file in the conf directory.)
Of course you can pick any name and password value you choose, as long 
as that user is given the appropriate role for your application (e.g. 
manager for the Manager application).


André

P.S. The above is all I think I know about this theme.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: DataSourceRealm documentation

2008-07-21 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: Re: DataSourceRealm documentation

 Of course you can pick any name and password value you choose, as long
 as that user is given the appropriate role for your application (e.g.
 manager for the Manager application).

The OP is not asking about the userid and password clients use to access an app 
but rather the userid and password Tomcat uses to access the database 
containing client userid and passwords.  The database credentials are specified 
in an appropriate Resource element.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSourceRealm documentation

2008-07-21 Thread André Warnier

Caldarale, Charles R wrote:

From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: DataSourceRealm documentation




The OP is not asking about the userid and password clients use to access an app but 
rather the userid and password Tomcat uses to access the database containing client 
userid and passwords.  The database credentials are specified in an appropriate 
Resource element.

 - Chuck

Oops, sorry.  I have seen the error of my ways, and by now I think the 
OP has seen his too.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple websites in tomcat

2008-07-21 Thread Ravi Sharma
Hi Andre,
   Thanks for reply and sorry for my incomplete reply.
So here is what i have done now.
First i have reinstalled everything again,So i have fresh environment with
apache (version 2.2.3) and tomcat (version 5.5).
JK module(1.2.26 ) is already installed in apache, so i don't need to get it
from anywhere.

Step 1) I changed the server.xml file to include two connector one which you
provided and another for AJP connector as follows
The red color one was already there in server.xml after fresh installation,
even i was wondering why class name is not there, but i assumed that, may be
tomcat give some default class name. Any ways without class name port 9080
is working.

 Connector port=9080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=9443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=*8180* minProcessors=5 maxProcessors=75
  enableLookups=true acceptCount=10 debug=0
  connectionTimeout=2 useURIValidationHack=false /

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=*8010* minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/

*Step 2*: Restarted tomcat.
restarted fine

*Step 3:*
Ran following commands
 netstat -an | grep 9080
tcp0  0 0.0.0.0:90800.0.0.0:*
LISTEN
 netstat -an | grep 8010
tcp0  0 0.0.0.0:80100.0.0.0:*
LISTEN
  netstat -an | grep 8180
tcp0  0 0.0.0.0:81800.0.0.0:*
LISTEN

and also checked the following url
http://www.jaatmusic.com:9080 (showing tomcat starting page)
http://www.jaatmusic.com:8010 (showing tomcat starting page)
http://www.jaatmusic.com:8180 (showing tomcat starting page)

*Step 4:*

accesed url
http://www.jaatmusic.com:9080/servlets-examples
and http://www.jaatmusic.com:8010/servlets-examples
and http://www.jaatmusic.com:8180/servlets-examples

all showing the same page which has links to different servlets.Means
working fine.

Clicked on HelloWorld link whose url on different ports are
http://www.jaatmusic.com:9080/servlets-examples/servlet/HelloWorldExample
http://www.jaatmusic.com:8010/servlets-examples/servlet/HelloWorldExample
http://www.jaatmusic.com:8180/servlets-examples/servlet/HelloWorldExample

All ran fine and showed me the correct output

*Step 5:* Checking the AJP port 8010
 netstat -an | grep 8010
tcp0  0 0.0.0.0:80100.0.0.0:*
LISTEN

and also telnet www.jaatmusic.com 8010 worked fine, i did get the
connection.
i typed something and closed the connection but didnt get anything exactly
like this in tomcat log
2008-07-21 00:29:44 Ajp13Processor[8010][5] [Ajp13] incomplete read, waited
#-1 got only 0

but i do have something like this in tomcat log
Jul 21, 2008 10:59:28 PM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 14961
Jul 21, 2008 11:00:19 PM org.apache.jk.common.ChannelSocket receive
WARNING: can't read body, waited #3338
Jul 21, 2008 11:00:19 PM org.apache.jk.common.ChannelSocket
processConnection
WARNING: Closing ajp connection -1

*Step 6:* Updated the workers.properties to include these three lines

worker.tempWorker.type=ajp13
worker.tempWorker.host=localhost
worker.tempWorker.port=8010

and also updated this line
worker.list=wlb,jkstatus,*tempWorker*
# wlb and jkstatus was already there.


*Step 7* : now i updated the httpd.conf file with following lines

JkLogFile /etc/httpd/logs/jk.log
JkLogLevel debug
JkMount /examples testWorker
JkMount /examples/* testWorker

Restarted apache. it restarted fine.
**
*Step 8 :*
Finally i entered this url
http://www.jaatmusic.com/examples (nothing came up)
*IE said  *
HTTP 404 Page Not found, the web page can not be found.
*Mozilla said : *
Not Found

The requested URL /examples was not found on this server.
--
Apache/2.2.3 (CentOS) Server at www.jaatmusic.com Port 80


Then i tried
http://www.jaatmusic.com/examples/servlet/HelloWorldExample

*IE said*
HTTP 404 Page Not found, the web page can not be found.
*Mozilla said*
Not Found

The requested URL /examples/servlet/HelloWorldExample was not found on this
server.
--
Apache/2.2.3 (CentOS) Server at www.jaatmusic.com Port 80


You can access following files from this url
http://www.jaatmusic.com/log.html
httpd.conf
server.xml
worker.properties
jk.conf which is being included in httpd.conf by using this line Include
conf.d/*.conf
from this url


i have tried many other things too but it didnt work, so right now the
server setup is as what is written here.

Thanks a lot in advance

Ravi.


Cannot set up Tomcat as a service

2008-07-21 Thread akaii

Hi,

I can't set up Tomcat as a service, here are the error message in the log : 

[2008-07-22 10:32:16] [184 javajni.c] [error] The specified procedure could
not be found. 
[2008-07-22 10:32:17] [986 prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_06\bin\java.exe 
[2008-07-22 10:32:17] [1260 prunsrv.c] [error] ServiceStart returned 1


Does anybody have had the same problem? any solution? 
Thanks

-- 
View this message in context: 
http://www.nabble.com/Cannot-set-up-Tomcat-as-a-service-tp18580305p18580305.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot set up Tomcat as a service

2008-07-21 Thread Caldarale, Charles R
 From: akaii [mailto:[EMAIL PROTECTED]
 Subject: Cannot set up Tomcat as a service

 [2008-07-22 10:32:16] [184 javajni.c] [error] The specified
 procedure could not be found.
 [2008-07-22 10:32:17] [986 prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_06\bin\java.exe
 [2008-07-22 10:32:17] [1260 prunsrv.c] [error] ServiceStart returned 1

In the future, please supply Tomcat version, OS type, and platform (e.g., 32 vs 
64 bit).  Without that information, no definitive answer can be given.  The 
symptoms can arise from a variety of causes, including attempting to use a 
32-bit service with a 64-bit JVM (or vice versa), or msvcr71.dll not being 
available.  If the latter, find a copy of it and put it in Tomcat's bin 
directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSourceRealm documentation

2008-07-21 Thread Sameer Acharya
It means that on whichever database you are using to store your authentication 
information  you need to create a user id and password for Tomcat to connect to 
it and then read the information.

Your database doc. will give instructions on creating user/pass on it. For eg. 
you can create user/password as tcuser/mypassword.

You then need to configure a Datasource in Tomcat which can be used by Tomcat 
to connect to this database and read the proper tables for authentication. Read 
the Datasource related docs.

http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html

These instructions are for authentication information stored in a relational 
database that can be accessed by proper JDBC driver an example would be MySQL.

If you are storing authentication information in LDAP server then read that 
section.

-Sameer


--- On Tue, 7/22/08, Carol Cheung [EMAIL PROTECTED] wrote:

 From: Carol Cheung [EMAIL PROTECTED]
 Subject: DataSourceRealm documentation
 To: Tomcat Users List users@tomcat.apache.org
 Date: Tuesday, July 22, 2008, 3:07 AM
 Hi,
 
 I'm reading about DataSourceRealm at 
 http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
 and step 2 under Quick Start is confusing.
 
 It says Configure a database username and password
 for use by Tomcat ...
 What does this mean? What should the username and password
 be and where 
 should they be located so that they are configured for use
 by Tomcat?
 
 There's no username or password specified in the
 example Realm element 
 under the DataSourceRealm section.
 
 Thanks,
 Carol
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]


  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]