Re: anonymising Tomcat

2005-08-04 Thread Bill Barker

"Paul Singleton" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Is it possible to configure Tomcat (5.5.9) so that a
> moderately able hacker couldn't figure out what is
> serving up our web apps?
>

As documented at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html:

   

> Paul Singleton
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005 




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



Apache mod_rewrite + Tomcat clustering/ load balancing.

2005-08-04 Thread Sunkersett, Jeevan \(Cognizant\)

Hi,



I hv clustered 2 Tomcat (version 5.0.18) instances on 2 physically
different machines A and B.

Individually accessible as

http://machineA:8080   and
http://machineB:8080 



I have Apache 2.0.54 installed on machine A and following the tomcat doc


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/balancer-howto.html



I am trying to use Apache mod_rewrite to load balance/
failover between my 2 tomcat instances.



As per the doc modified the  element in server.xml
to include the jvmRoute attribute

Configuring Apache was a headache.

The documentation assumes the reader is an expert with Apache.

It is not completely accurate. The reader cannot use it as is.

For instance it talks of creating balancer.conf but uses servers.conf in
http.



Anyways I discovered it and created a balancing.conf for
mod_rewrite as explained.

   

Edited apache's httpd.conf as given in the tomcat doc.

And with both tomcat instances working browsed
to


http://localhost/servlets-examples/servlet/RequestInfoExample

But it did not work. Error log gave:

File does not exist:
proxy:http://machineA:8080/servlets-examples/servlet/RequestInfoExample



   But I could get the expected page when I replaced [P, L]
in the RewriteRule for  with only [L]

   

The funny thing however is I browse to


http://localhost/servlets-examples/servlet/RequestInfoExample

but that later automatically changes to either


http://machineA:8080/servlets-examples/servlet/RequestInfoExample or


http://machineB:8080/servlets-examples/servlet/RequestInfoExample

depending upon which Tomcat instance served my request.



Any clues as to why the URL in the browser changes?



PS: My entries in httpd.conf

   RewriteMap SERVERS rnd:<>

RewriteEngine On
RewriteCond "%{HTTP_COOKIE}"
"(^|;\s*)jsessionid=\w*\.(\w+)($|;)"
RewriteRule "(.*)"
"http://${SERVERS:%2}%{REQUEST_URI}";  [P,L]
RewriteRule "^.*;jsessionid=\w*\.(\w+)($|;)"
"http://${SERVERS:$1}%{REQUEST_URI}";  [P,L]
RewriteRule "(.*)"
"http://${SERVERS:ALL}%{REQUEST_URI}"; [P,L]




<< I had to replace [P,L] with [L] to make it work>>

   

rgds,

G1







This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
prohibited and may be unlawful.

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

Re: Why Tomcat 5.0.28 uses a context's log4j.jar and log4j.properties?

2005-08-04 Thread KwonNam Son
I solved this problem.
It was not the problem of tomcat.

I just added the following lines into log4j.properties

# Remove org.apache.* logs
log4j.logger.org.apache=WARN

It was because of struts and Digester which is used by struts.

So I change the log level of org.apache.*.

2005/8/3, KwonNam Son <[EMAIL PROTECTED]>:
> I installed a web context to Tomcat 5.0.28 ant the struts 1.2.7 web
> application context includes log4j-1.2.11.jar in WEB-INF/lib and
> log4j.properties in WEB-INF/classes.
> 
> After that, Tomcat shows all it's log messages(include DEBUG) in log4j
> format which is configured in WEB-INF/classes/log4j.properties.
> 
> Because tomcat print all the log messages, it takes too long time to
> start tomcat.
> 
> If I remove log4j-*.jar and log4.properties from the web context,
> Tomcat does not show log messages any more.
> 
> What should I do for preventing the topcat using a web context's log4j.
> 
> Thanks,
> KwonNam.
>

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



RE: suppress directory listing

2005-08-04 Thread Aaron Loucks
Override the default servlet in your application's web.xml:


  default
 
org.apache.catalina.servlets.DefaultServlet
  
debug
0
  
  
listings
false
  
  1



  default
  /images



Aaron Loucks
Web Developer
Gardner, Inc.
3641 Interchange Road 
Columbus, OH 43204 
614.456.3492
-Original Message-
From: Stephen Caine [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 04, 2005 12:33 PM
To: Tomcat Users List
Subject: Re: suppress directory listing

Paul,

> My JSP app has a /images folder and Tomcat 5.5.9 happily serves up  
> a directory listing of this: how can I suppress this?

Just add a filed named, "index.html", to the directory.  You can put  
whatever you want in the file.  I often put, Access Prohibited" or  
some such thing.

Stephen Caine
Soft Breeze Systems, LLC

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


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



please ignore...test

2005-08-04 Thread Wade Chandler
test

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



Bug in "allowlinking" on AIX?

2005-08-04 Thread Ben Ricker
I am definitely having an issue getting "allowlinking=true" to work in
a Tomcat 5.0.28, JDK 1.4 on AIX 5.2 install.

I have tried multiple scenarios using the following  tag:



I can bring up the app but a request to "/help", which is a symlink in
the war to a directory outside of the tomcat applications directory,
throws 404s.

I also tried this:



I changed to  appbase to go to a webapps which is empty so I
knew the context was definitely loading the unpacked war which
includes the symlink.  I still get a 404.

The ChangeNotes for the 5.0.28 version states explicitely:

 --- Symlinking static resources:
---

By default, Unix symlinks will not work when used in a web application
to link resources located outside the web application root directory.

This behavior is optional, and the "allowLinking" flag may be used to
disable the check.

Does anyone have symlinks working on 5.0.28? 

-- 
Ben Ricker
He's just this guy, you know?

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



RE: Foro de Tomcat en español

2005-08-04 Thread Martín Cabrera
http://www.javahispano.org

Saludos/Regards
Martín. 

-Mensaje original-
De: Héctor A. Abreu [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 04 de Agosto de 2005 03:12 p.m.
Para: Tomcat Users List
Asunto: Re: Foro de Tomcat en español

Dale un vistazo a www.programacion.com en la sección de foros "Java
(Servlets y JSP)". Ahí suelen publicar mensajes de Tomcat.

Saludos,

Héctor.

- Original Message -
From: "Marcos Jara" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, August 04, 2005 12:59 PM
Subject: Foro de Tomcat en español


> Hola
>
> Quisiera hacerles una pregunta a las personas de habla hispana, si conocen
algún foro interesante como este sobre Tomcat, (Java, JBoss no excluyente)
>
> Esta lista me parece muy interesante, solamente que no puedo entender
muchas veces la escritura de los amigos, o talvés ellos no entiendan lo que
yo escribo, por que no me suelen responder mis dudas.
>
> Gracias.
>
>
> "Lo que recibisteis grátis, dadlo gratis.!!!"
>
> MARCOS JARA
> [EMAIL PROTECTED]
> [EMAIL PROTECTED] (MSN)
> [EMAIL PROTECTED]
>
> -
> Fabrica de Software - Parque Tecnológico de Itaipú
> +595 61 - 599 7343/7414 - Oficina
> +595 973 527155 - Celular
> Ciudad del Este - Alto Paraná - Paraguay
>
>
>
>
>
>
>
>
>
> -
>
> Correo Yahoo!
> Comprueba qué es nuevo, aquí
> http://correo.yahoo.es


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

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 267.10.0 - Release Date: 03/08/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 267.10.0 - Release Date: 03/08/2005
 


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



Re: Foro de Tomcat en español

2005-08-04 Thread Héctor A . Abreu
Dale un vistazo a www.programacion.com en la sección de foros "Java
(Servlets y JSP)". Ahí suelen publicar mensajes de Tomcat.

Saludos,

Héctor.

- Original Message - 
From: "Marcos Jara" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, August 04, 2005 12:59 PM
Subject: Foro de Tomcat en español


> Hola
>
> Quisiera hacerles una pregunta a las personas de habla hispana, si conocen
algún foro interesante como este sobre Tomcat, (Java, JBoss no excluyente)
>
> Esta lista me parece muy interesante, solamente que no puedo entender
muchas veces la escritura de los amigos, o talvés ellos no entiendan lo que
yo escribo, por que no me suelen responder mis dudas.
>
> Gracias.
>
>
> "Lo que recibisteis grátis, dadlo gratis.!!!"
>
> MARCOS JARA
> [EMAIL PROTECTED]
> [EMAIL PROTECTED] (MSN)
> [EMAIL PROTECTED]
>
> -
> Fabrica de Software - Parque Tecnológico de Itaipú
> +595 61 - 599 7343/7414 - Oficina
> +595 973 527155 - Celular
> Ciudad del Este - Alto Paraná - Paraguay
>
>
>
>
>
>
>
>
>
> -
>
> Correo Yahoo!
> Comprueba qué es nuevo, aquí
> http://correo.yahoo.es


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



RE: anonymising Tomcat

2005-08-04 Thread MC Moisei

That a good question Paul.

On top of that is there a way to threat/redirect requests to a different 
application while the requested application is being deployed ?






From: Paul Singleton <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: anonymising Tomcat
Date: Thu, 04 Aug 2005 18:30:56 +0100

Is it possible to configure Tomcat (5.5.9) so that a
moderately able hacker couldn't figure out what is
serving up our web apps?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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





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



anonymising Tomcat

2005-08-04 Thread Paul Singleton

Is it possible to configure Tomcat (5.5.9) so that a
moderately able hacker couldn't figure out what is
serving up our web apps?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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



Re: Which Oracle JDBC Drive for JDK 1.5?

2005-08-04 Thread Woodchuck
fwiw, i'm still using the old 9.2.0.x oracle jdbc drivers with my new
TC 5.5/JDK 5.0 setup.  works fine as far as i can tell :p

woodchuck


--- Paul Singleton <[EMAIL PROTECTED]> wrote:

> > I noticed there are JDBC drivers for 10.1.0.2 and 10.1.0.4. Which
> > should I use?
> 
> I've always found that Oracle JDBC drivers are backwards
> compatible (not that I've driven them very hard) so I'd
> use the .4
> 
> (or should I patch to 10.1.0.4)
> 
> not if it ain't broke :-)
> 
> Paul S.
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date:
> 3/Aug/2005
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Which Oracle JDBC Drive for JDK 1.5?

2005-08-04 Thread Paul Singleton

I noticed there are JDBC drivers for 10.1.0.2 and 10.1.0.4. Which
should I use?


I've always found that Oracle JDBC drivers are backwards
compatible (not that I've driven them very hard) so I'd
use the .4

(or should I patch to 10.1.0.4)

not if it ain't broke :-)

Paul S.


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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



Which Oracle JDBC Drive for JDK 1.5?

2005-08-04 Thread Chuck
Getting ready to build some applications on Tomcat 5.5.9 on Solaris 9
using jdk 1.5 rev 4 and Oracle 10.1.0.3 as my backend.

I noticed there are JDBC drivers for 10.1.0.2 and 10.1.0.4. Which
should I use? (or should I patch to 10.1.0.4)

Thanks,
CC
-- 

To reply to this message, remove _NOSPAM_ from the return address.

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



Foro de Tomcat en español

2005-08-04 Thread Marcos Jara
Hola 
 
Quisiera hacerles una pregunta a las personas de habla hispana, si conocen 
algún foro interesante como este sobre Tomcat, (Java, JBoss no excluyente)
 
Esta lista me parece muy interesante, solamente que no puedo entender muchas 
veces la escritura de los amigos, o talvés ellos no entiendan lo que yo 
escribo, por que no me suelen responder mis dudas.
 
Gracias.


"Lo que recibisteis grátis, dadlo gratis.!!!"

MARCOS JARA
[EMAIL PROTECTED]
[EMAIL PROTECTED] (MSN)
[EMAIL PROTECTED] 

-
Fabrica de Software - Parque Tecnológico de Itaipú
+595 61 - 599 7343/7414 - Oficina
+595 973 527155 - Celular
Ciudad del Este - Alto Paraná - Paraguay









-

Correo Yahoo!
Comprueba qué es nuevo, aquí
http://correo.yahoo.es

Re: suppress directory listing

2005-08-04 Thread Stephen Caine

Paul,

My JSP app has a /images folder and Tomcat 5.5.9 happily serves up  
a directory listing of this: how can I suppress this?


Just add a filed named, "index.html", to the directory.  You can put  
whatever you want in the file.  I often put, Access Prohibited" or  
some such thing.


Stephen Caine
Soft Breeze Systems, LLC

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



Installing Tomcat 5.5 & viewing site to see if works

2005-08-04 Thread Andrea Becker

Hello,

I am having problems getting Tomcat 5.5 installed.
Do you have to enter a Username & Password at the time of installation 
where it has the number 8080 listed?


Once I have java downloaded and tomcat downloaded & the Compat zip 
 
file, should the site be viewable in working fashion when I type in


http://130.71.56.123

Thanks,

Allistair Crossley wrote:


Oops! :)

http://www.adcworks.com/blog/index.php/archives/2005/08/03/load-balancing-with-tomcat-55-and-jk-12/

Cheers, Allistair.

 


-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 12:42
To: Tomcat Users List
Subject: Re: Blog: JK1.2 load balancing as solution to 100% uptime


Allistair Crossley wrote:
   


Hi Chaps,

If anyone is interested, I blogged last night on my 
 


experience setting up ...
   



 


It would be great if you provide a link to your blog :)

Regards,
Mladen.

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


   




 
---

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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

 



--

Andrea Becker

St. Olaf College ~ CEL

1520 St. Olaf Avenue

Northfield, MN  55057

Ph: (507) 646-3268

Fax: (507) 646-3626

http://www.stolaf.edu/services/cel



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



RE: suppress directory listing

2005-08-04 Thread Arup Vidyerthy
In your TOMCAT_HOME/conf/web.xml there is some stuff that looks like this:



default
 
org.apache.catalina.servlets.DefaultServlet

debug
0


listings
false

1


Notice the listing is switched off. By default it's turned on.

 

-Original Message-
From: Paul Singleton [mailto:[EMAIL PROTECTED] 
Sent: 04 August 2005 17:00
To: Tomcat Users List
Subject: suppress directory listing

My JSP app has a /images folder and Tomcat 5.5.9 happily serves up a
directory listing of this: how can I suppress this?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Re: suppress directory listing

2005-08-04 Thread Tim Funk

http://jakarta.apache.org/tomcat/faq/misc.html#listing

-Tim

Paul Singleton wrote:


My JSP app has a /images folder and Tomcat 5.5.9 happily
serves up a directory listing of this: how can I suppress
this?

Paul Singleton




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



suppress directory listing

2005-08-04 Thread Paul Singleton

My JSP app has a /images folder and Tomcat 5.5.9 happily
serves up a directory listing of this: how can I suppress
this?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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



Re: Help with a Class

2005-08-04 Thread Wade Chandler
Yep...simple example of a class as a wrapper around
the Integer class.  Syntax way off and looks more like
you're trying to do it in a JSP page where you would
do it in a library.  So surejust read a good java
book for syntax and maybe some of the java tutorial
and you can get all the info you need at java.sun.com
and www.java.net and if you need a good free IDE
www.netbeans.org.  Don't know what else to say really.
 Java uses patterns so you have methods setTest1 and
getTest1 which is what you would do in C++ with the
same pattern style for setters and getters as C++
doesn't have any simpler syntax than java for setters
and getters.  Maybe to say java scripting languages
and EL in JSP pages let you access the "properties"
directly like 
Integer temp2 = temp.test1
and
temp.test1 = new Integer(4)
so other than that I don't know what else to say
without trying to explain java itself.

Wade

--- "Charles P. Killmer"
<[EMAIL PROTECTED]> wrote:

> Does Java provide any ability to do something like
> the following.  C#
> and C++ both allow this functionlality and I am
> hoping that Java does as
> well
>  
>  
> <%!
> public class myInteger {
>private Integer _test1;
>public Integer test1
>{
>   set
>   {
>  _test1 = value;
>   }
>  
>   get
>   {
>  return _test1;
>   }
>}
> }
> %>
> <%
> myInteger temp = new myInteger;
> temp.test1 = new Integer(4);
> %>
>  
> Charles
> 


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



Problem with navigating a struts based webapp after logging in

2005-08-04 Thread Sujit Gangadharan
Hi
We have a struts based web application running under Tomcat 4.1.12. There is 
this random issue that happens with certain users. The user logs in using 
the domain name, say http://www.xyz.com, he gets redirected to 
https://www.xyz.com. After the user logs in, he gets kicked out back to 
login page when he selects any of the navigational links. ( Monitoring the 
Tomcat console error messages told us that the session had expired). 

The same user if he logs in with the IP address xxx.xxx.xx.xxx, he has no 
problems. I have tried within my limited abilities to try to find out why 
this happens so, but to no avail. 

Also in certain cases, after a few days, the user is able to log in with the 
domain name. I tried finding a pattern of users w.r.t the browser, OS etc, 
but at this point it seems to be quite random.

Can anyone suggest a solution?

Thanks
SUJIT

On 7/28/05, Andre Schild <[EMAIL PROTECTED]> wrote:
> 
> Via JMX thiss is possible.
> We for example look for numActive in
> 
> Catalina:type=DataSource,path=/,host=www.aarboard.ch
> ,class=javax.sql.DataSource,name="jdbc
> /aarboard-productdatabase"
> 
> André
> 
> 
> Raymond Fung wrote:
> > Dear all,
> >
> > It seems this question has been asked from time to time, but still no
> > one can give a concrete answer. Is it really impossible to query Tomcat
> > for the available connection threads inside the connection pool ? How
> > can I ensure my application will not have connection leaks ?
> >
> > Regards,
> > Raymond Fung.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Help with a Class

2005-08-04 Thread Charles P. Killmer
Does Java provide any ability to do something like the following.  C#
and C++ both allow this functionlality and I am hoping that Java does as
well
 
 
<%!
public class myInteger {
   private Integer _test1;
   public Integer test1
   {
  set
  {
 _test1 = value;
  }
 
  get
  {
 return _test1;
  }
   }
}
%>
<%
myInteger temp = new myInteger;
temp.test1 = new Integer(4);
%>
 
Charles


Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-04 Thread MC Moisei

Thanks Rainer!

Meanwhile what I did was to give root access to the conf folder.That worked 
as a charm.


Right/Owner are
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common
chown -R root:root /usr/local/tomcat/conf

Having it in the memory is a much better way. I'm looking forward to get the 
5.5.11 release then.


MC




From: Rainer Jung <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux 
fails in Bootstrap

Date: Thu, 04 Aug 2005 15:22:19 +0200

CVS head now includes an improvement:

1) If the directory containing tomcat-users.xml is not writeable you will 
get a nice warning instead of a strange exception.
2) You can configure the MemoryUserDatabase with the attribute 
readonly="true". Then there will be not write attempt at all.


Details under

http://issues.apache.org/bugzilla/show_bug.cgi?id=36020

Will be included in 5.5.11 most probably sometime during august.

MC Moisei wrote:


Hi,

I manage to configure my tomcat with jsvc(common-daemon) and everything 
work great till I start to launch it as root. If I run it as tomcat user 
it does work great. If I try to run it as root from command prompt or from 
init.d I get the following exception ( see below )


Right are given as below
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common

This is not right - looks like the bootstrap is trying to access the Realm 
and there is no write access to the conf/tomcat-users.xml file. I can't 
believe the common-daemon not tomcat side didn't say a thing about this, I 
bet there are others experiencing the matter.
Do i have to disable Tomcat realms ? It doesn't sounds right. There is no 
way I'd give "others" write access on that.


Looking forward to hear from you if you experienced something similar.
Thanks,
MC




Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission 
denied)

at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at 
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462)


at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98)


at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)


at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)

at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)


at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)


at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)


at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)


at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:676)

at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Aug 1, 2005 7:23:15 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources



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


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





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



Cannot get symlinks in war to work in tomcat 5.0.28

2005-08-04 Thread Ben Ricker
I have an app that ahs to refernce http content outiside of the war.
Since there are many references to the content using URI
"/context_name_for_app/help/foo.html", I cannot map the content to
another context. I also did not want to have the 100s of MBs in the
war.

I am running Tomcat 5.0.28 with JDK 1.4 on AIX 5L.

I tried to do symlinks to the content from within the war and then
access the help but I get a 404. So I added an explicit context to
allow symlinks:



I can get to the app but I cannot get the help symlink to come up. I
put the symlink called "help" in the top level of the war file. I can
cd into the link and it goes to the right directory. All of the files
are readable to the world.

Am I missing something?

-- 
Ben Ricker
He's just this guy, you know?

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



RE: Blog: JK1.2 load balancing as solution to 100% uptime

2005-08-04 Thread Allistair Crossley
Oops! :)

http://www.adcworks.com/blog/index.php/archives/2005/08/03/load-balancing-with-tomcat-55-and-jk-12/

Cheers, Allistair.

> -Original Message-
> From: Mladen Turk [mailto:[EMAIL PROTECTED]
> Sent: 04 August 2005 12:42
> To: Tomcat Users List
> Subject: Re: Blog: JK1.2 load balancing as solution to 100% uptime
> 
> 
> Allistair Crossley wrote:
> > Hi Chaps,
> >  
> > If anyone is interested, I blogged last night on my 
> experience setting up ...
> >  
> 
> It would be great if you provide a link to your blog :)
> 
> Regards,
> Mladen.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: war files not deploying on redhat

2005-08-04 Thread Edgar Alves
A typo in a post about a typo...  :)
s/"|autodeploy"/"autoDeploy"/

Edgar Alves wrote:

>Hi,
>  I don't know if it was just a typo in your post, but "AutoDeploy"
>should be "|autoDeploy".
>
>-- Edgar Alves
>|
>Paul Warner wrote:
>  
>


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



RE: war files not deploying on redhat

2005-08-04 Thread Paul Warner
> Hi,
>   I don't know if it was just a typo in your post, but "AutoDeploy"
> should be "|autoDeploy".
> 
> -- Edgar Alves

Thanks for the quick answer and sharp eye - but it WAS a typo, sorry!  In the
server.xml file, it is listed as autoDeploy="true".  It is the basic server.xml
file, not really altered by me, and almost exactly matches the server.xml file
on the other machine, the one that works.

Thanks,
Paul

> |
> Paul Warner wrote:
> 
> >Hello,
> >
> >I have read the documentation and searched the archives, and 
> whatever I have
> >found, I have tried, but still my .war files will not unpack 
> and auto deploy.  I
> >have been running a tomcat server for several months in 
> which the .war files
> >unpacked and auto-deployed perfectly.  But with this new 
> installation, the
> >"Redhat" way, with files all over the place, I have not been 
> able to make it
> >work.
> >
> >I am using Tomcat 5.0.28 via an rpm on Redhat EL 3.  I am 
> accessing the tomcat
> >server via apache and the jk2 connector.  I have the 
> server.xml file configured
> >with:
> >
> > >  unpackWARs=true AutoDeploy="true"
> >  xmlValidation="false" xmlNamespaceAware="false">
> >
> >My application has its context.xml file in the META-INF 
> directory correctly
> >pointing to the appname, /copse.  I have an xml file in
> >/etc/tomcat5/Catalina/localhost/copse.xml which has in it:
> >
> > >privileged="true" antiResourceLocking="false"
> >antiJARLocking="false">
> >
> >The /webapps directory and its contents are owned by tomcat, 
> the tomcat process
> >owner.  root has CATALINA_HOME in its environment, set to 
> "/usr/share/tomcat5".
> >I have a link in /usr/share/tomcat5 to 
> /var/lib/tomcat5/build, which contains
> >the copse.war file.  tomcat has read and write privs for 
> this build/ directory
> >and all its files.
> >
> >The differences between my working installation and the 
> 'broken' one seem to be:
> >1. root owned the instance of tomcat in the working version, 
> tomcat owns the
> >instance of tomcat in the broken one
> >2. file permissions were not all tomcat rw in the broken 
> one, but this I have
> >fixed now - as far as I know all relevant files are owned by tomcat
> >3. CATALINA_HOME wasn't set properly for root at first in 
> the 'broken' install -
> >but this also has been fixed (I believe).  It points to the 
> directory that holds
> >all the softlinks to the other directories, such as conf, 
> webapps, build, and so
> >on.
> >
> >I have resorted to unpacking the war file myself, and the 
> application works.
> >But unpacking by hand is cumbersome and time-consuming.  
> Does anyone have the (I
> >presume simple) key to unlock this problem?
> >
> >Thanks,
> >Paul
> >
> >  
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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



Re: war files not deploying on redhat

2005-08-04 Thread Edgar Alves
Hi,
  I don't know if it was just a typo in your post, but "AutoDeploy"
should be "|autoDeploy".

-- Edgar Alves
|
Paul Warner wrote:

>Hello,
>
>I have read the documentation and searched the archives, and whatever I have
>found, I have tried, but still my .war files will not unpack and auto deploy.  
>I
>have been running a tomcat server for several months in which the .war files
>unpacked and auto-deployed perfectly.  But with this new installation, the
>"Redhat" way, with files all over the place, I have not been able to make it
>work.
>
>I am using Tomcat 5.0.28 via an rpm on Redhat EL 3.  I am accessing the tomcat
>server via apache and the jk2 connector.  I have the server.xml file configured
>with:
>
>  unpackWARs=true AutoDeploy="true"
>  xmlValidation="false" xmlNamespaceAware="false">
>
>My application has its context.xml file in the META-INF directory correctly
>pointing to the appname, /copse.  I have an xml file in
>/etc/tomcat5/Catalina/localhost/copse.xml which has in it:
>
>privileged="true" antiResourceLocking="false"
>antiJARLocking="false">
>
>The /webapps directory and its contents are owned by tomcat, the tomcat process
>owner.  root has CATALINA_HOME in its environment, set to "/usr/share/tomcat5".
>I have a link in /usr/share/tomcat5 to /var/lib/tomcat5/build, which contains
>the copse.war file.  tomcat has read and write privs for this build/ directory
>and all its files.
>
>The differences between my working installation and the 'broken' one seem to 
>be:
>1. root owned the instance of tomcat in the working version, tomcat owns the
>instance of tomcat in the broken one
>2. file permissions were not all tomcat rw in the broken one, but this I have
>fixed now - as far as I know all relevant files are owned by tomcat
>3. CATALINA_HOME wasn't set properly for root at first in the 'broken' install 
>-
>but this also has been fixed (I believe).  It points to the directory that 
>holds
>all the softlinks to the other directories, such as conf, webapps, build, and 
>so
>on.
>
>I have resorted to unpacking the war file myself, and the application works.
>But unpacking by hand is cumbersome and time-consuming.  Does anyone have the 
>(I
>presume simple) key to unlock this problem?
>
>Thanks,
>Paul
>
>  
>



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



war files not deploying on redhat

2005-08-04 Thread Paul Warner
Hello,

I have read the documentation and searched the archives, and whatever I have
found, I have tried, but still my .war files will not unpack and auto deploy.  I
have been running a tomcat server for several months in which the .war files
unpacked and auto-deployed perfectly.  But with this new installation, the
"Redhat" way, with files all over the place, I have not been able to make it
work.

I am using Tomcat 5.0.28 via an rpm on Redhat EL 3.  I am accessing the tomcat
server via apache and the jk2 connector.  I have the server.xml file configured
with:



My application has its context.xml file in the META-INF directory correctly
pointing to the appname, /copse.  I have an xml file in
/etc/tomcat5/Catalina/localhost/copse.xml which has in it:



The /webapps directory and its contents are owned by tomcat, the tomcat process
owner.  root has CATALINA_HOME in its environment, set to "/usr/share/tomcat5".
I have a link in /usr/share/tomcat5 to /var/lib/tomcat5/build, which contains
the copse.war file.  tomcat has read and write privs for this build/ directory
and all its files.

The differences between my working installation and the 'broken' one seem to be:
1. root owned the instance of tomcat in the working version, tomcat owns the
instance of tomcat in the broken one
2. file permissions were not all tomcat rw in the broken one, but this I have
fixed now - as far as I know all relevant files are owned by tomcat
3. CATALINA_HOME wasn't set properly for root at first in the 'broken' install -
but this also has been fixed (I believe).  It points to the directory that holds
all the softlinks to the other directories, such as conf, webapps, build, and so
on.

I have resorted to unpacking the war file myself, and the application works.
But unpacking by hand is cumbersome and time-consuming.  Does anyone have the (I
presume simple) key to unlock this problem?

Thanks,
Paul


Re: Using more than one SSL cert in keystore?

2005-08-04 Thread Paul Singleton

Justin Jaynes wrote:


...But now I would like to put up a new
site that is completely independant of the others.  It
needs its own SSL cert and it needs four host names to
all point to the same place and redirect to just one
of the domain names so that the SSL cert will be
valid, regardless of how the users chose to get to my
site.


An SSL cert is for a specific domain name.  If you want
your users to be able to make HTTPS requests to all four
domains without warnings from the browser, I reckon you
need four certificates.

But if they make non-SSL requests, and you respond with
a client-side redirect to your one true certificated
site using HTTPS, that may work OK?


Is it possible to do Virtual Hosting using IP's on a
Tomcat standalone installation?


Yes, I'm doing this now with 5.5.9

You need e.g. this server.xml stuff for each host:

  Service
Connector (HTTP)
Connector (HTTPS)
Engine
  Host
Context

You can use the default keystore for all hosts, and
use the (undocumented) keyAlias="myalias" Connector attribute
to offer the appropriate certificate for each host, e.g.



(in 5.5.9 you also need sslProtocol="TLS" explicitly,
fixed in later versions)

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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



Connection reset by peer: socket write error

2005-08-04 Thread Frank Schaare

Hi,

i´m in trouble with a Tomcat 4.1.29 (Standalone, no Apache !, Win2K) 
acting as as Mapserver. It seems to work fine, but writes tons of 
exceptions to isapi.log and sterr.log. I´ve googled a few hours withe 
the result, that 'Connection reset by peer' may happen when the client 
presses the stop button, closes connection etc. That is impossible, i´ve 
got over 1000 exceptions in my logfile. There must be another reason.


isapi.log:
[Thu Aug 04 14:44:27 2005]  [jk_ajp_common.c (651)]: 
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed

[Thu Aug 04 14:44:27 2005]  [jk_ajp_common.c (1009)]: Error reading reply
[Thu Aug 04 14:44:27 2005]  [jk_ajp_common.c (1146)]: In 
jk_endpoint_t::service, ajp_get_reply failed in send loop 0


sterr.log:
04.08.2005 14:37:15 org.apache.jk.server.JkCoyoteHandler action
SCHWERWIEGEND: Error in action code
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)
at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:435)
at org.apache.coyote.Response.action(Response.java:222)
at org.apache.coyote.Response.finish(Response.java:343)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:314)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
	at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)

at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)

at java.lang.Thread.run(Thread.java:534)
04.08.2005 14:37:37 org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
04.08.2005 14:44:25 org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached

Maybe, someone can answer one of the following questions:
- What is jk_ajp_common.c ? (Seems to be a native class for the Apache 
connector)


- what is org.apache.jk.server.JkCoyoteHandler exacly responsible for ?

- How do i know, what EXACT connection is reseted.

- is the reseted connection necessarily a http connection or possibly a 
database connection ?


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



How to exclude weak ciphers from SSL in 5.5?

2005-08-04 Thread Paul Singleton

How can I best prevent the use of allegedly weak ciphers
with my SSL-enabled Tomcat 5.5.9 setup?  E.g.

  NULL-SHA (no encryption or key exchange)
  EXP-DES-CBC-SHA (40 bit encryption)
  DES-CBC-SHA (56 bit)
  etc.

All I can find is the Connector attribute

  ciphers = 

but I only know the ciphers I *don't* want, not the
ones I do...

Paul Singleton



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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



Re: Blog: JK1.2 load balancing as solution to 100% uptime

2005-08-04 Thread Jon Wingfield

From one of Allistair's posts yesterday:
www.adcworks.com/blog



Mladen Turk wrote:

Allistair Crossley wrote:


Hi Chaps,
 
If anyone is interested, I blogged last night on my experience setting 
up ...
 



It would be great if you provide a link to your blog :)

Regards,
Mladen.

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





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



Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap

2005-08-04 Thread Rainer Jung

CVS head now includes an improvement:

1) If the directory containing tomcat-users.xml is not writeable you 
will get a nice warning instead of a strange exception.
2) You can configure the MemoryUserDatabase with the attribute 
readonly="true". Then there will be not write attempt at all.


Details under

http://issues.apache.org/bugzilla/show_bug.cgi?id=36020

Will be included in 5.5.11 most probably sometime during august.

MC Moisei wrote:


Hi,

I manage to configure my tomcat with jsvc(common-daemon) and everything 
work great till I start to launch it as root. If I run it as tomcat user 
it does work great. If I try to run it as root from command prompt or 
from init.d I get the following exception ( see below )


Right are given as below
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common

This is not right - looks like the bootstrap is trying to access the 
Realm and there is no write access to the conf/tomcat-users.xml file. I 
can't believe the common-daemon not tomcat side didn't say a thing about 
this, I bet there are others experiencing the matter.
Do i have to disable Tomcat realms ? It doesn't sounds right. There is 
no way I'd give "others" write access on that.


Looking forward to hear from you if you experienced something similar.
Thanks,
MC




Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied)

at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at 
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462) 

at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98) 

at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129) 

at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)

at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138) 

at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108) 

at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80) 

at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:676)

at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Aug 1, 2005 7:23:15 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources



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


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



RE: Regarding JDBC Driver error

2005-08-04 Thread ajith.skumar

Hi Siva,

Jar files placed in CATALINA_HOME/common/lib are visible both to all of
your web applications and internal Tomcat code. I think u must be using
JDBCRealm for your application security and this is managed by Tomcat
internally. So u got error when u put your JDBC driver jar file in
WEB-INF/lib.

Regards
Ajith

-Original Message-
From: tomcat [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 1:30 PM
To: Tomcat Users List
Subject: Regarding JDBC Driver error

Hi all
 Placing jar in the /common/lib works fine.
but  placing  jar in the webapp//WEB-INF/lib  throws
JDBC
Driver error

i think this is due to classloader.could anyone explain me in detail
why
placing a jar under WEB-INF/lib   throws error reason?

regards,
siva


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




Confidentiality Notice

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

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



Re: Blog: JK1.2 load balancing as solution to 100% uptime

2005-08-04 Thread Mladen Turk

Allistair Crossley wrote:

Hi Chaps,
 
If anyone is interested, I blogged last night on my experience setting up ...
 


It would be great if you provide a link to your blog :)

Regards,
Mladen.

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



Exception initializing TldLocationsCache: zip file closed

2005-08-04 Thread IndianAtTech
Hi All,

What is this Bug??
Exception initializing TldLocationsCache: zip file closed


This exception wasn't logged till yesterday.
What ever the log messages I have in my Java classess, I am not able
to see them and find the above specified error in  log file.

I am using tomcat 4.3.2 and my JSP programming is using Sun RI
implementation of JSF Framework

Thanks
Sudhakar

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



Blog: JK1.2 load balancing as solution to 100% uptime

2005-08-04 Thread Allistair Crossley
Hi Chaps,
 
If anyone is interested, I blogged last night on my experience setting up 2 
tomcats on 1 server and then load balancing them with JK 1.2, and tested that 
bringing 1 down, and then back up did not lose any requests. 
 
This for my web application is an ideal way to avoid downtime during class 
patching or full builds, although for those needing session replication, the 
blog does not cover that.
 
Take it or leave it :), I've also added this to the Tomcat links wiki.
 
Allistair


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




RE: 1 jakarta server + multiple ip's

2005-08-04 Thread Peter Crowther
> From: Justin Jaynes [mailto:[EMAIL PROTECTED] 
> I tried the solution you offered (below) about
> creating more than one service and using the
> address="xxx" parameter in the Connectors tags.  It
> works great.

Glad to hear it.

> However, what do you mean in your
> "disclaimer" that it is from the documentation and is
> untested?  Did you mean to say NOT from the
> documentation?

I mean that I have not personally tested the solution, but have instead
read the documentation and have come up with that solution.  I would
expect the Tomcat development team to have tested the address attribute
and its consequences.

> And if it is untested, but it is
> working, are there any reasons not to use it in a
> production server?  Is it safe?

I'm the wrong person to answer that - not being on the Tomcat dev team
and not running such a site myself!  However, from my poking around the
innards of UNIX, Windows and Tomcat over the years:

- Binding a socket to a particular IP address rather than all the
addresses on a machine is stable and well-tested on Windows and all the
UNIX networking stacks I know;

- Java's socket interface appears stable under such conditions;

- I am aware of a few other sites running Tomcat for production use
under such conditions - not least to get multiple SSLs onto one Tomcat
instance.  I have seen no traffic on this list over the past year or so
that would indicate Tomcat is unstable under these conditions, but it is
undoubtedly a less common configuration than running Tomcat with a
single listening socket.

Sorry to weasel-word the answer, Justin; I'm trying to make clear the
limits of my own knowledge and where I'm relying on others for
information.

- Peter

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



Re: How bind Tomcat to an IP address?

2005-08-04 Thread Andrea Senatore
Hi Justin,
thanks for fast reply!

I'm sorry but I'm rookie on Tomcat.
What I've written is what happens, i.e. when I try to connect
to Tomcat server typing localhost address (http://localhost:port)
all works. If I type in the browser my IP address (http://myIP:port)
the server doesn't accept any connections.

Either is my mistake or there is a configuration setting
that forces Tomcat to accept connection only from localhost
(e.g. a security option).

However If you want I could post my Tomcat Configuration Files.

Thanks,
Andrea


2005/8/4, Justin Jaynes <[EMAIL PROTECTED]>:
> Andrea,
> 
> Let's say you install tomcat on machine A, (your
> server), and your network administrator has given that
> machine the address of 192.168.0.7.
> 
> You and want to reach the server from a machine B,
> your workstation.  All you need to do (assuming they
> are on the same network and properly configured, which
> are NOT tomcat issues) is sit down at the workstation,
> machine B, and open your browser.  Enter the address
> of the server (here, 192.168.0.7:8080).  Thats it.
> 
> No "address"=xxx.xxx.xxx field is needed.  Ommit them
> from your server.xml file unless you plan to have your
> server host virtual domains based on IP address.
> "Usually" a machine only has one IP address, but even
> so, if you do not set up the address parameter in your
> server.xml file, tomcat should listen to all the
> network devices on the server and respond to your
> requests to each of the IP's.
> 
> If this does not answer your question, either I
> misunderstood it altogether and you need to be more
> specific about what you are trying to do, or you might
> try a brief chapter on basic networking in any good
> "internet,how it works" type reference book.  Or a
> good linux reference book, same chapter.
> 
> Justin
> 
> --- Andrea Senatore <[EMAIL PROTECTED]> wrote:
> 
> > Hi all,
> > I have installed jakarta-tomcat-4.1.18-LE-jdk14 on
> > my windows 2000.
> > I tried it locally typing in my browser
> > http://localhost:8080 and all
> > works fine.
> > As I need to use Tomcat on machine different from
> > mine I tried to
> > change the address which Tomcat is listening to.
> > I read on HOW-TO that you can change the listening
> > address through the
> > field "address" of Connector in conf/server.xml.
> > I tried this advice but nothing happens.

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



Re: How bind Tomcat to an IP address?

2005-08-04 Thread Justin Jaynes
Andrea,

Let's say you install tomcat on machine A, (your
server), and your network administrator has given that
machine the address of 192.168.0.7.

You and want to reach the server from a machine B,
your workstation.  All you need to do (assuming they
are on the same network and properly configured, which
are NOT tomcat issues) is sit down at the workstation,
machine B, and open your browser.  Enter the address
of the server (here, 192.168.0.7:8080).  Thats it.

No "address"=xxx.xxx.xxx field is needed.  Ommit them
from your server.xml file unless you plan to have your
server host virtual domains based on IP address. 
"Usually" a machine only has one IP address, but even
so, if you do not set up the address parameter in your
server.xml file, tomcat should listen to all the
network devices on the server and respond to your
requests to each of the IP's.

If this does not answer your question, either I
misunderstood it altogether and you need to be more
specific about what you are trying to do, or you might
try a brief chapter on basic networking in any good
"internet,how it works" type reference book.  Or a
good linux reference book, same chapter.

Justin

--- Andrea Senatore <[EMAIL PROTECTED]> wrote:

> Hi all,
> I have installed jakarta-tomcat-4.1.18-LE-jdk14 on
> my windows 2000.
> I tried it locally typing in my browser
> http://localhost:8080 and all
> works fine.
> As I need to use Tomcat on machine different from
> mine I tried to
> change the address which Tomcat is listening to.
> I read on HOW-TO that you can change the listening
> address through the
> field "address" of Connector in conf/server.xml.
> I tried this advice but nothing happens.
> 
> Any suggestions?
> 
> Thanks in advance,
> Andrea
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


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



Regarding JDBC Driver error

2005-08-04 Thread tomcat
Hi all
 Placing jar in the /common/lib works fine.
but  placing  jar in the webapp//WEB-INF/lib  throws JDBC
Driver error

i think this is due to classloader.could anyone explain me in detail  why
placing a jar under WEB-INF/lib   throws error reason?

regards,
siva


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