Re: Disable password checking for Manager app

2008-07-19 Thread Rainer Jung

dracus schrieb:

Greetings, all


I have a web app server that has Apache in front of Tomcat.  Apache is
handling user authentication and security checking (through an experimental
X.509 - Kerberos gateway service being developed by others in my group,
but that is neither here nor there), and passes the username (as either
REMOTE_USER or Shib-InetOrgPerson-mail) to Tomcat.  To get that to work, we
had to include the 'request.tomcatAuthentication=false' directive in the
AJP block of server.xml.  Unfortunately, this kills the Tomcat manager, as
it will no longer allow us to log into it.  We use it extensively to deploy
new versions of our web apps, etc.  I have tried putting my authenticated
username into tomcat-users.xml as a user with the manager role, and it still
does not allow me to use the manger, with error 403: Access to the
requested resource has been denied.  I check the tomcat-users.xml file, and
it has added a password entry (password=null) to my user define.  So what
I want to know is, can I get tomcat to accept the username passed in from
Apache without a password (the only connection allowed into Tomcat is AJP)
so that I can put the users allowed to access the manager app into
tomcat-users.xml, and let Apache do all of the authentication?  Any pointers
would be greatly appreciated, thanks in advance.  

JDK 1.6.0  
Tomcat 5.5.23  
mod-jk 1.2.21  
http 2.2.4 RHEL 5  
shibboleth sp 1.3.1


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.


Doesn't that work?

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]



Re: Disable password checking for Manager app

2008-07-19 Thread André Warnier

Rainer Jung wrote:

dracus schrieb:

Greetings, all


I have a web app server that has Apache in front of Tomcat.  Apache is
handling user authentication and security checking (through an 
experimental

X.509 - Kerberos gateway service being developed by others in my group,
but that is neither here nor there), and passes the username (as either
REMOTE_USER or Shib-InetOrgPerson-mail) to Tomcat.  To get that to 
work, we
had to include the 'request.tomcatAuthentication=false' directive in 
the
AJP block of server.xml.  Unfortunately, this kills the Tomcat 
manager, as
it will no longer allow us to log into it.  We use it extensively to 
deploy

new versions of our web apps, etc.  I have tried putting my authenticated
username into tomcat-users.xml as a user with the manager role, and it 
still

does not allow me to use the manger, with error 403: Access to the
requested resource has been denied.  I check the tomcat-users.xml 
file, and
it has added a password entry (password=null) to my user define.  So 
what

I want to know is, can I get tomcat to accept the username passed in from
Apache without a password (the only connection allowed into Tomcat is 
AJP)

so that I can put the users allowed to access the manager app into
tomcat-users.xml, and let Apache do all of the authentication?  Any 
pointers
would be greatly appreciated, thanks in advance. 
JDK 1.6.0  Tomcat 5.5.23  mod-jk 1.2.21  http 2.2.4 RHEL 5  shibboleth 
sp 1.3.1


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.


Doesn't that work?

I suppose you could also have a second AJP connector using a different 
port (e.g. 8010 instead of 8009), with 
request.tomcatAuthentication=true and with JkMount /manager 
ajp13manager in Apache (and the corresponding worker etc..).


But still, what about changing the manager application's security 
constraints, to make it depend on a user-id rather than a role ?

Is that possible ?

André

-
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/mod_jk serves random files from tomcat

2008-07-19 Thread Rainer Jung

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
   CustomLog logs/default-access.log common
   alias /logs /var/widgets
   Location /logs
   AuthUserFile /var/widgets/.htpasswd
   AuthName Widgets
   AuthType Basic
   Require valid-user
   /Location

   Rewriteengine on
   RewriteRule ^/$ /index.html [R]
   jkmount /* loadbalancer
   

Re: Apache 2.2.8+tomcat 6.0.16+Window vista http 404

2008-07-19 Thread Rainer Jung

rangeli nepal schrieb:

Recently I installed apache and tomcat. Environment is depicted int subject
line. They both work nice and fine independently.

I am trying to integrate them with mod_jk.

I belive I followed all the steps suggested by document.

1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory
and added following in line httpd.conf

LoadModule jk_module modules/mod_jk.so


This alone should already define a default log file mod_jk.log in the 
logs sub directory of your Apache web server (not the Tomcat directory) 
and configure it with log level info. Of course you can overwrite that, 
if you want. If the mod_jk.conf file you wrote doesn't work, is the 
default log file there?




3. Went back to http.conf Added following line at the end

Include
C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto


-auto ?


my mod_jk.conf looks like somthing like this:


no -auto?

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]



Re: Multiple websites in tomcat

2008-07-19 Thread Ravi Sharma
Hi,
   I have a server running apache on port 80, and tomcat on 9080. Now apache
has setting that when i enter my domain www.mydomain.com, it point sto a
particular directoty on my server and shows the index.html from that dir.
And now i have created one java application which i want to use for that
site. But tomcat is running on 9080, so i need to enter
www.mydomain.com:9080, and i dont want that.i want to access my java
application using www.mydomain.com. Can you tell me how can i do that.

Thanks,
Ravi.


Re: Multiple websites in tomcat

2008-07-19 Thread Gabe Wong

Hi Ravi,
You need to proxy Tomcat with Apache by using mod_jk or mod_proxy 
(preferred)

Some pertinent links:
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
http://marc.info/?l=tomcat-userm=121286145508630w=2

Ravi Sharma wrote:

Hi,
   I have a server running apache on port 80, and tomcat on 9080. Now apache
has setting that when i enter my domain www.mydomain.com, it point sto a
particular directoty on my server and shows the index.html from that dir.
And now i have created one java application which i want to use for that
site. But tomcat is running on 9080, so i need to enter
www.mydomain.com:9080, and i dont want that.i want to access my java
application using www.mydomain.com. Can you tell me how can i do that.

Thanks,
Ravi.

  



--
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-19 Thread Ravi Sharma
Thanks a lot Gabe,
 Now i have very small problem. I have configured as per the follwoing
link
but when i restarting apache after changing the httpd.conf it gives error
for this line

JkWorkersFile /etc/httpd/conf/workers.properties

Syntax error on line 992 of /etc/httpd/conf/httpd.conf:
JkWorkersFile only allowed once


I added follwoing code to httpd.conf

LoadModule jk_module libexec/mod_jk-1.2.23-apache-2.2.x-linux-i686.so
JkWorkersFile /usr/java/tomcat-5.5/conf/workers.properties
JkLogFile libexec/mod_jk.log
JkLogLevel debug
Alias /temp /usr/java/tomcat-5.5/webapps/tomcat-docs
JkMount /temp/servlet/* testWorker
JkMount /temp/*.jsp testWorker
Location /temp/WEB-INF/
AllowOverride None
deny from all
/Location


i checked its defined only once in this file.
Am i doing something wrong.?

thanks in advance

Ravi.

On Sat, Jul 19, 2008 at 4:39 PM, Gabe Wong [EMAIL PROTECTED] wrote:

 Hi Ravi,
 You need to proxy Tomcat with Apache by using mod_jk or mod_proxy
 (preferred)
 Some pertinent links:
 http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
 http://marc.info/?l=tomcat-userm=121286145508630w=2


 Ravi Sharma wrote:

 Hi,
   I have a server running apache on port 80, and tomcat on 9080. Now
 apache
 has setting that when i enter my domain www.mydomain.com, it point sto a
 particular directoty on my server and shows the index.html from that dir.
 And now i have created one java application which i want to use for that
 site. But tomcat is running on 9080, so i need to enter
 www.mydomain.com:9080, and i dont want that.i want to access my java
 application using www.mydomain.com. Can you tell me how can i do that.

 Thanks,
 Ravi.





 --
 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: Unable to run tomcat in Eclipse

2008-07-19 Thread Ken Bowen

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]



Re: Multiple websites in tomcat

2008-07-19 Thread Rainer Jung

Ravi Sharma schrieb:

Thanks a lot Gabe,
 Now i have very small problem. I have configured as per the follwoing
link
but when i restarting apache after changing the httpd.conf it gives error
for this line

JkWorkersFile /etc/httpd/conf/workers.properties


Once ...


Syntax error on line 992 of /etc/httpd/conf/httpd.conf:
JkWorkersFile only allowed once


I added follwoing code to httpd.conf

LoadModule jk_module libexec/mod_jk-1.2.23-apache-2.2.x-linux-i686.so
JkWorkersFile /usr/java/tomcat-5.5/conf/workers.properties


Twice !


JkLogFile libexec/mod_jk.log
JkLogLevel debug
Alias /temp /usr/java/tomcat-5.5/webapps/tomcat-docs
JkMount /temp/servlet/* testWorker
JkMount /temp/*.jsp testWorker
Location /temp/WEB-INF/
AllowOverride None
deny from all
/Location


i checked its defined only once in this file.
Am i doing something wrong.?


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]



Re: Multiple websites in tomcat

2008-07-19 Thread Ravi Sharma
its two times only in the mail. i was just explaining it. In actual
httpd.conf its only once.


On Sat, Jul 19, 2008 at 5:12 PM, Rainer Jung [EMAIL PROTECTED]
wrote:

 Ravi Sharma schrieb:

 Thanks a lot Gabe,
 Now i have very small problem. I have configured as per the follwoing
 link
 but when i restarting apache after changing the httpd.conf it gives error
 for this line

 JkWorkersFile /etc/httpd/conf/workers.properties


 Once ...

  Syntax error on line 992 of /etc/httpd/conf/httpd.conf:
 JkWorkersFile only allowed once


 I added follwoing code to httpd.conf

 LoadModule jk_module libexec/mod_jk-1.2.23-apache-2.2.x-linux-i686.so
 JkWorkersFile /usr/java/tomcat-5.5/conf/workers.properties


 Twice !

  JkLogFile libexec/mod_jk.log
 JkLogLevel debug
 Alias /temp /usr/java/tomcat-5.5/webapps/tomcat-docs
 JkMount /temp/servlet/* testWorker
 JkMount /temp/*.jsp testWorker
 Location /temp/WEB-INF/
 AllowOverride None
 deny from all
 /Location


 i checked its defined only once in this file.
 Am i doing something wrong.?


 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]




Re: Multiple websites in tomcat

2008-07-19 Thread Rainer Jung

Ravi Sharma wrote:

its two times only in the mail. i was just explaining it. In actual
httpd.conf its only once.


Then provide your full httpd.conf and all file Includ'ed in it.

Also double check, that you definitely know, which httpd.conf your httpd 
reads.


Regards,

Rainer


On Sat, Jul 19, 2008 at 5:12 PM, Rainer Jung [EMAIL PROTECTED]
wrote:


Ravi Sharma schrieb:


Thanks a lot Gabe,
Now i have very small problem. I have configured as per the follwoing
link
but when i restarting apache after changing the httpd.conf it gives error
for this line

JkWorkersFile /etc/httpd/conf/workers.properties


Once ...

 Syntax error on line 992 of /etc/httpd/conf/httpd.conf:

JkWorkersFile only allowed once


I added follwoing code to httpd.conf

LoadModule jk_module libexec/mod_jk-1.2.23-apache-2.2.x-linux-i686.so
JkWorkersFile /usr/java/tomcat-5.5/conf/workers.properties


Twice !

 JkLogFile libexec/mod_jk.log

JkLogLevel debug
Alias /temp /usr/java/tomcat-5.5/webapps/tomcat-docs
JkMount /temp/servlet/* testWorker
JkMount /temp/*.jsp testWorker
Location /temp/WEB-INF/
AllowOverride None
deny from all
/Location


i checked its defined only once in this file.
Am i doing something wrong.?


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]



Re: Multiple websites in tomcat

2008-07-19 Thread Ravi Sharma
Hi Rainer,
Thanks, i checked in included files and found that it was already
declared in one of included conf file. Thanks for pointing me that.Now i
have corrected  it and server is starting properly with following warnings
which i am skipping as of now.
[Sat Jul 19 10:59:41 2008] [warn] module jk_module is already loaded,
skipping
[Sat Jul 19 10:59:41 2008] [warn] Useless use of AllowOverride in line 1000.

The only propblem is that servlet is not being called.


*So now my worker's file looks like this, i  added testWorker*

worker.list=wlb,jkstatus,testWorker
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

*My Server.xml of Tomcat looks like this*

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


*and httpd.conf looks like this

*LoadModule jk_module libexec/mod_jk-1.2.26-httpd-2.2.6.so
#AddModule mod_jk.c
#JkWorkersFile /usr/java/tomcat-5.5/conf/workers.properties
JkLogFile libexec/mod_jk.log
JkLogLevel debug
Alias /ex /usr/java/tomcat-5.5/webapps/servlets-examples
JkMount /ex/servlet/* testWorker
JkMount /temp/*.jsp testWorker
Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location

*Now Problem*

When i access www.jaatmusic.com/ex(try this link please), it shows me the
index page of my application(servlet-example) which is a html page.So this
step work fine. That means it usage the Alias thing(Alias /ex
/usr/java/tomcat-5.5/webapps/servlets-examples)
Now from this page there are links to invoke some servlet examples
http://www.jaatmusic.com/ex/servlet/HelloWorldExample, this link doesn't
work. As per my understanding it should have worked because of this
line - *JkMount
/ex/servlet/* testWorker*
When i access above link i got follwoing in apache log files
*usr/java/tomcat-5.5/webapps/servlets-examples/servlet, referer:
http://www.jaatmusic.com/ex/
*

also in my web.xml servlet is defined like this

servlet
servlet-nameHelloWorldExample/servlet-name
servlet-classHelloWorldExample/servlet-class
/servlet
servlet-mapping
servlet-nameHelloWorldExample/servlet-name
url-pattern*/servlet/HelloWorldExample*/url-pattern
/servlet-mapping


Thanks in adavance. I am almost on the edge of starting my first web
application, please help.

Ravi.


Re: Apache 2.2.8+tomcat 6.0.16+Window vista http 404

2008-07-19 Thread rangeli nepal
Thank you Rainer for your reply. Based on your suggestion I did following

0. removed the auto from Include directive.

1. There was log entry specified in mod_jk.conf. It was pointing to the log
file in tomcat directory I changed in point to the log file in apache
directory. restarted things.

2. Moved the entries to httpd.conf. no effect.

3. Commented out the entries just to see if log is created or not no effect.

I think may be my shared library is corrupted but again apache should have
complained.




On Sat, Jul 19, 2008 at 7:51 AM, Rainer Jung [EMAIL PROTECTED]
wrote:

 rangeli nepal schrieb:

 Recently I installed apache and tomcat. Environment is depicted int
 subject
 line. They both work nice and fine independently.

 I am trying to integrate them with mod_jk.

 I belive I followed all the steps suggested by document.

 1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory
 and added following in line httpd.conf

 LoadModule jk_module modules/mod_jk.so


 This alone should already define a default log file mod_jk.log in the logs
 sub directory of your Apache web server (not the Tomcat directory) and
 configure it with log level info. Of course you can overwrite that, if you
 want. If the mod_jk.conf file you wrote doesn't work, is the default log
 file there?


  3. Went back to http.conf Added following line at the end

 Include

 C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto


 -auto ?

  my mod_jk.conf looks like somthing like this:


 no -auto?

 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]




Re: Unable to run tomcat in Eclipse

2008-07-19 Thread KANIKA GUPTA
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]


  

logging!!

2008-07-19 Thread Shahar Cohen
Hi,

I have installed tomcat5.5 with JDK 1.5

I want to log inside my access log the  header content-length though I
cant find anywhere on the web 

Or tomcat documentation on how to do it. is it possible.

Please advice 

 

 

Thanks in advanced

 



RE: logging!!

2008-07-19 Thread Caldarale, Charles R
 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%20Valve

 - 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: Multiple websites in tomcat

2008-07-19 Thread André Warnier

Ravi Sharma wrote:
[...]

I'm not as competent as Rainer, but your problem may be here :


worker.list=wlb,jkstatus,testWorker


and here


worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009



In other words, in the workers list, you are mentioning the worker 
testWorker, but in the following worker.* lines, you don't mention 
testWorker, but ajp13w.


Maybe you want to change these 3 lines to
 worker.testWorker.type=ajp13
 worker.testWorker.host=localhost
 worker.testWorker.port=8009
and try again ?


Personally, I would also change this :


Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location


to this :

Directory /var/www/xyz/examples/WEB-INF (*)
  Order allow,deny
  deny from all
/Directory

(*) replace this by the real disk path to WEB-INF

the reason being that, if you are under Windows e.g., someone requesting 
the URI /examples/web-inf would get to the directory, because it does 
not match exactly the Location, and for Windows the directory path is 
case-insensitive, so Apache will serve it.

See here :
http://httpd.apache.org/docs/2.2/mod/core.html#location


-
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: Method or function to be executed on tomcat startup

2008-07-19 Thread Yves Glodt
On Friday 18 July 2008, Mikolaj Rydzewski wrote:
 Edoardo Panfili wrote:
  xx.ServerInit is a regular servlet the code is in
  init(ServletConfig config) method

 Use of ServletContextListener is preferred.

That worked very well, thanks for the hint.
Helpful article:

http://www.stardeveloper.com/articles/display.html?article=200901page=1

 To OP: put properties Map in ServletContext and it will be accessible
 for both servlets and JSPs (which are the servlets anyway).


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