Re: How to find what encryption algorithm tomcat is using?

2006-01-25 Thread vineesh kumar
the key generation algorithm itself will be the encryption algorithm
as of my knowledge, otherwise the public and private keys do not match
i don know exactly from where they are determining the encryption
algorithm but in the key store the algorithm used will be ther
regards
   vineesh

On 1/25/06, Shirode, Sangita (Sangita) <[EMAIL PROTECTED]> wrote:
> Thanks vineesh
>
> for your immediate reply. I'm using RSA while generationg a key. But I
> think it is for certificate keystore as given in the link
> http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html.
>
> Does the same algorithm is used for data encryption also? If yes I think
> I can get complete details about algorithm in java site since just 'RSA'
> is not sufficient information.
>
> Thanks,
> Sangita
>
> -Original Message-
> From: vineesh kumar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 25, 2006 12:57 PM
> To: Tomcat Users List
> Subject: Re: How to find what encryption algorithm tomcat is using?
>
> sorry,
>  ur  own algorithm means any standard cryptographic algorithm,supported
> by java
>
> On 1/25/06, vineesh kumar <[EMAIL PROTECTED]> wrote:
> > the default key generation algorithm is DSA try man keytool if u are
> > on a linux machine but u can specify ur own algoithm when u generating
>
> > a key like
> >   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
> (Windows)
> > $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
> > regards
> >vineesh
> > On 1/25/06, Shirode, Sangita (Sangita) <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I need the info about what encryption algorithm tomcat is using when
>
> > > it sends/receives data to /from client via SSL. I need this info for
>
> > > export compliance. When I enabled SSL in tomcat I just followed the
> > > normal procedure given in Tomcat docs. I'm generating a self signed
> > > certificate with java keytool.
> > >
> > > I would appreciate immediate reply on this since I need this info
> > > urgently.
> > >
> > > Thanks,
> > > Sangita
> -
> 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]



WG: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-25 Thread andreas.wieczorek
> Mladen Turk wrote:
> No. It works with any protocol.
>
>  
>   BalancerMember ajp://hotstandby status=disabled
>   BalancerMember ajp://node1 redirect=hotstandby
>   BalancerMember ajp://node2 redirect=hotstandby
>   ...
>   BalancerMember ajp://nodeN redirect=hotstandby
> 
>

> The only problem is that it's not documented ;)
That was exactly what I hoped! :)

But: Whatever I try with status=disabled in the BalancerMember line (->
using "", '' , DISABLED, 0,..), it says:
*Starting httpd2 (prefork) Syntax error ..
*BalancerMember Unknow status parameter option

(I have Apache 2.2.0)..any idea?

Thanks so far!

Regards,
Andreas


Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten 
bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie 
uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. 
Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, 
Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. 
Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. 
Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS 
schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die 
Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder 
E-Mails aus.
---
This message contains confidential information and is intended only for the 
named individual. If you are not the named addressee, you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this message in error and delete 
this e-message from your system.
No reliance may be placed on this message without written confirmation of its 
contents from an authorized representative. GZS accepts no liability for loss 
or damage caused by software viruses except in case of gross negligence or 
willful behaviour.


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



Re: WG: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-25 Thread Mladen Turk

[EMAIL PROTECTED] wrote:

Mladen Turk wrote:
No. It works with any protocol.

 
  BalancerMember ajp://hotstandby status=disabled
  BalancerMember ajp://node1 redirect=hotstandby
  BalancerMember ajp://node2 redirect=hotstandby
  ...
  BalancerMember ajp://nodeN redirect=hotstandby





The only problem is that it's not documented ;)

That was exactly what I hoped! :)

But: Whatever I try with status=disabled in the BalancerMember line (->
using "", '' , DISABLED, 0,..), it says:
*Starting httpd2 (prefork) Syntax error ..
*BalancerMember Unknow status parameter option



Right, sorry :)
status=d or status=D
(a single letter).
there is additional stopped option (s), so you can
concat those, (eg. status=SD means stopped and disabled).

If you edit httpd.conf and restart apache then you add
+ or - prefixes.
For example if status was disabled you can edit httpd.conf,
and set 'status=-D'. On graceful restart it will remove
disabled flag.


Mladen.

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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-25 Thread llekann
Microsoft Web Development Experience is truely  more pleasant than that of 
Java, and i have known a number of people do  the switch based on that, though 
they usually like to support it with  some additional arguments like u did, but 
at the end of the day, the  ease of development and that everything is right 
there in one place  still comes through as the reason, or at least the primary 
reason, for  the switch.
  
  As with anything in life, there is a price to pay for freedom, and Java  in 
many ways is liberty. And guaranteeing and assuring that liberty is  not an 
easy task. But of course you decided to make your (developer)  life a little 
easier. cool! i only hope you thought it through.
  
  I dont think there's a point giving attention to the so called "points"  you 
made comparing Java and C# / ASP.NET. i see them as some of those  usual "add 
on" reasons, behind the real reason. 
  
  For those of us that liberty, security, etc, are important to, the extra 
"burden" of Web Development in Java is "okay".
  
  Hey! by the way a person may be eight years into something and have little or 
no understanding of it!
  
  

Tony LaPaso <[EMAIL PROTECTED]> wrote:  Hi all,

I should mention that this post is a bit off topic. If you hate 
Microsoft then stop reading now and I'm sorry for wasting your time. I 
don't own stock in Microsoft, I don't know Bill Gates and nobody paid 
me or asked me to say the things I wrote below. These are just my 
opinions based on my experiences with many years in Java and two months 
of learning .NET/C# 2.0.

I've been programming in Java/J2EE for the past 8+ years, most of this 
time as a contractor for several companies on many J2EE projects. I 
even have a small (and now hopelessly out of date) Java web site that 
I've maintained for the past 5+ years at www.absolutejava.com, which 
will be removed in early May.

Until about 8 weeks ago, I never even considered looking at anything 
Microsoft offered. Recently though, on a whim, I browsed over to the 
Microsoft site because I'd heard about their new release of Visual 
Studio. I'd been a Windows programmer back in the mid '90s and was 
curious to see how Visual Studio (it was Visual C++ back then) had 
evolved (or not).

I didn't download Visual Studio but instead I downloaded a couple free 
tutorial videos for Microsoft's "Web Developer Express" product (which 
is a free product, BTW). "Web Developer Express" has a subset of the 
features in the full "Visual Studio" product and is used for building 
server-side (or client side, for that matter) web apps. I couldn't 
believe what I saw. "Web Developer Express" blows away anything we have 
in the Java world for developing server-side web apps. It was kind of a 
jaw-dropping experience to see what the tool can do and what ASP.NET 
offers compared to servlets/JSP/Struts/JSTL/JSF.

I don't want to turn this post into a "feature by feature" comparison 
of ASP.NET and equivalent Java technologies. My impression, though, 
from watching these tutorial videos is that we in the J2EE world are 
living like knuckle-dragging Barbarians, scratching out an existence 
clothed in bear skins, using stone knives and sticks as our tools of 
choice. Those using .NET are living in fine brick homes with hardwood 
floors, fireplaces and regular visits from PeaPod.

After looking at ASP.NET I became interested in looking at the C# 
language, proper. My impressions of C# vs. Java mirrored those of 
ASP.NET vs. servlets/JSP/etc. Java has kludgey support for properties 
and events (they're just regular methods with parameters) while C# has 
the constructs (delegates & events) built directly into the core 
language. C# also supports co-routines, something we have to simulate 
in Java as well as "out parameters" (which allow a method to change the 
caller's parameter's value) and operator overloading. C# also has 
"nullable" types. Imagine Java's primitive types being able to hold 
null values. This is highly useful when working with databases.

Finally, .NET provides an integrated and more comprehensive approach to 
setting security permissions and versioning of what are called, 
"assemblies". Assemblies are very roughly equivalent to JARs. This 
allows you to compile your code against a specific version of an 
assembly and have that version information maintained in the resulting 
executable. It also allows several versions of the same assemblies 
(again, think "JARs") to co-exist peacefully in a global, system-wide 
cache of assemblies. Sun should have given us something like this five 
years ago.

Another advantage I saw with .NET is that it is more "cross language" 
friendly than Java. First of all, .NET, like Java, executes a "platform 
neutral" representation of a program (analogous to Java bytecode). 
Unlike Java, .NET programs can be written in many languages (C#, C++, 
Perl, Python, J#, VB, and many others). Microsoft's J# is, from what 
I've seen, a clone of Java (although I'm sure there 

Re: From Java to C#, ASP.NET [Off Topic]

2006-01-25 Thread Leon Rosenberg
>
> I've been programming in Java/J2EE for the past 8+ years, most of this
> time as a contractor for several companies on many J2EE projects. I
> even have a small (and now hopelessly out of date) Java web site that
> I've maintained for the past 5+ years at www.absolutejava.com, which
> will be removed in early May.

since you don't need it anymore, can i have it? :-)
I mean the domainname

regards
Leon

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



Getting StandardContext

2006-01-25 Thread Roel De Nijs
Hi,
 
I was wondering if it's possible to programmatically get the 
StandardContext-object from e.g. a Servlet that's running in the container. So 
you can call getters like getDocType, programmatically add some mime types etc.
 
Greetz
Roel


**
Disclaimer: zie www.aquafin.be


Re: From Java to C#, ASP.NET [Off Topic]

2006-01-25 Thread David Delbecq
Hi Tony,

am what you could call a junior programmer (less than 3 years expérience un 
j2ee) 
I'll just respond to a few java related point, as i don't know .NET
- You say primitives are not nullable. If you need a nullable integer, use 
java.lang.Integer.
- Operators overloading is something i consider dangerous, and i thanks sun for 
not implementing those
- We are developping here a webapp which need to be deployed at several 
'clients', whose server 
range from linux to windows to HP-UX, so cross-platform is an important 
constraint :) This explains the use of java.
- The 'only one language' of JAVA compared to .NET make it easier for company 
to manage the
knowledge of developpers, which can compensate the knowledge spreading across 
the various libraries

Those too are only my opinions, and as you express yours, i express mine :)

BTW, i don't think there is a conflict .NET <-> J2EE
Simply use the right tool for the right purpose.

Le Mercredi 25 Janvier 2006 04:27, Tony LaPaso a écrit :
> Hi all,
> 
> I should mention that this post is a bit off topic. If you hate 
> Microsoft then stop reading now and I'm sorry for wasting your time. I 
> don't own stock in Microsoft, I don't know Bill Gates and nobody paid 
> me or asked me to say the things I wrote below. These are just my 
> opinions based on my experiences with many years in Java and two months 
> of learning .NET/C# 2.0.
> 
> I've been programming in Java/J2EE for the past 8+ years, most of this 
> time as a contractor for several companies on many J2EE projects. I 
> even have a small (and now hopelessly out of date) Java web site that 
> I've maintained for the past 5+ years at www.absolutejava.com, which 
> will be removed in early May.
> 
> Until about 8 weeks ago, I never even considered looking at anything 
> Microsoft offered. Recently though, on a whim, I browsed over to the 
> Microsoft site because I'd heard about their new release of Visual 
> Studio. I'd been a Windows programmer back in the mid '90s and was 
> curious to see how Visual Studio (it was Visual C++ back then) had 
> evolved (or not).
> 
> I didn't download Visual Studio but instead I downloaded a couple free 
> tutorial videos for Microsoft's "Web Developer Express" product (which 
> is a free product, BTW). "Web Developer Express" has a subset of the 
> features in the full "Visual Studio" product and is used for building 
> server-side (or client side, for that matter) web apps. I couldn't 
> believe what I saw. "Web Developer Express" blows away anything we have 
> in the Java world for developing server-side web apps. It was kind of a 
> jaw-dropping experience to see what the tool can do and what ASP.NET 
> offers compared to servlets/JSP/Struts/JSTL/JSF.
> 
> I don't want to turn this post into a "feature by feature" comparison 
> of ASP.NET and equivalent Java technologies. My impression, though, 
> from watching these tutorial videos is that we in the J2EE world are 
> living like knuckle-dragging Barbarians, scratching out an existence 
> clothed in bear skins, using stone knives and sticks as our tools of 
> choice. Those using .NET are living in fine brick homes with hardwood 
> floors, fireplaces and regular visits from PeaPod.
> 
> After looking at ASP.NET I became interested in looking at the C# 
> language, proper. My impressions of C# vs. Java mirrored those of 
> ASP.NET vs. servlets/JSP/etc. Java has kludgey support for properties 
> and events (they're just regular methods with parameters) while C# has 
> the constructs (delegates & events) built directly into the core 
> language. C# also supports co-routines, something we have to simulate 
> in Java as well as "out parameters" (which allow a method to change the 
> caller's parameter's value) and operator overloading. C# also has 
> "nullable" types. Imagine Java's primitive types being able to hold 
> null values. This is highly useful when working with databases.
> 
> Finally, .NET provides an integrated and more comprehensive approach to 
> setting security permissions and versioning of what are called, 
> "assemblies". Assemblies are very roughly equivalent to JARs. This 
> allows you to compile your code against a specific version of an 
> assembly and have that version information maintained in the resulting 
> executable. It also allows several versions of the same assemblies 
> (again, think "JARs") to co-exist peacefully in a global, system-wide 
> cache of assemblies. Sun should have given us something like this five 
> years ago.
> 
> Another advantage I saw with .NET is that it is more "cross language" 
> friendly than Java. First of all, .NET, like Java, executes a "platform 
> neutral" representation of a program (analogous to Java bytecode). 
> Unlike Java, .NET programs can be written in many languages (C#, C++, 
> Perl, Python, J#, VB, and many others). Microsoft's J# is, from what 
> I've seen, a clone of Java (although I'm sure there are differences). 
> The point I want to make

Starting Tomcat

2006-01-25 Thread Hooper, Paul
Hello, 

I am a new Tomcat user and am having some difficulties starting the
server ; 

So far, I have downloaded the software ;
apache-tomcat-5.5.15.tar.gz
Uncompressed and un tarred
Created the following environment variables : 

CATALINA_HOME=/vg_LION1/app/lionweb/apache-tomcat-5.5.15
TOMCAT_HOME=/vg_LION1/app/lionweb/apache-tomcat-5.5.15
CATALINA_TMPDIR=/vg_LION1/app/lionweb/apache-tomcat-5.5.15/temp

Run the following : 

$ bin/startup.sh
Using CATALINA_BASE:   /vg_LION1/app/lionweb/apache-tomcat-5.5.15
Using CATALINA_HOME:   /vg_LION1/app/lionweb/apache-tomcat-5.5.15
Using CATALINA_TMPDIR: /vg_LION1/app/lionweb/apache-tomcat-5.5.15/temp
Using JRE_HOME:   /export/home/liondev/software/java_1.4.2_10

Which returns status code 0, but no process gets started and there is no
trace in the logs. 

I then attempted to start as a daemon process using jscv : 

./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp
./bin/bootstrap.jar \
   -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
   org.apache.catalina.startup.Bootstrap

However, ./common/endorsed is not part of the Tomcat installation.

This also fails, with the following in the catalina.err log :

Jan 25, 2006 11:27:53 AM org.apache.catalina.startup.Bootstrap
initClassLoaders
SEVERE: Class loader creation threw exception
java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory
at
org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:1
65)
at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:97
)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:193)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:16
0) 

I am not a java developer, so am now stuck !
Please could you offer some advice to get me up and running.

Thanks

Paul

_Confidentiality notice: Whilst this company has procedures in place and
makes every effort to safeguard both Inbound and Outbound Emails, we cannot 
guarantee that attachments are Virus - Free or compatible with your systems and 
therefore we do not accept any liability in respect of viruses or computer 
problems experienced. This e-mail and any files transmitted with it are 
confidential and/or privileged. They are for the intended recipient only. If 
you are not the intended recipient, you must not use, review, distribute, 
disclose, alter, print, copy, transmit or rely on this e-mail and any file 
transmitted with it. If you have received this e-mail and any file transmitted 
with it in error please notify the sender or Mitsui Sumitomo Insurance (London 
Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company 
Number 1063340 email: [EMAIL PROTECTED]

Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo 
Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are 
all regulated by the Financial Services Authority.
_
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: Starting Tomcat

2006-01-25 Thread Peter Crowther
> From: Hooper, Paul [mailto:[EMAIL PROTECTED] 
> I am a new Tomcat user and am having some difficulties starting the
> server
[...]
> Using JRE_HOME:   /export/home/liondev/software/java_1.4.2_10

5.5 needs *either* a Java 1.5 VM *or* the JDK 1.4 Compatability Package
available from the download links at
http://tomcat.apache.org/download-55.cgi - this may be your problem.

- Peter

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



Re: Problems with Tomcat 5.5 build.xml

2006-01-25 Thread Andre Kammerl

Hello.

Sorry for the missing exact description of the Problem. The following output 
is given when I use ant (ver 1.6.5) on the build.xml file. Looks like the 
destinations of the links inside the build.xml do not exist.


O:\Tomcat_5.5>ant
Buildfile: build.xml

check.source:

get.source:

checkout:
   [echo] If the checkout fails, - todo -

BUILD FAILED
O:\Tomcat_5.5\build.xml:87: The following error occurred while executing 
this line:
O:\Tomcat_5.5\build.xml:70: Execute failes: java.io.IOException: 
CreateProcess: svn checkout 
http://svn.apache.org/repos/asf//tomcat/current/tc5.5.x O:\Tomcat_5.5 
error=2


Total time: 0 seconds
O:\Tomcat_5.5>

Hopefully somebody has an idea to solve my problem.

Greetings

   André



- Original Message - 
From: "Markus Schönhaber" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Tuesday, January 24, 2006 6:37 PM
Subject: Re: Problems with Tomcat 5.5 build.xml



Andre Kammerl wrote:

for a case study concerning AspectJ, I need a compilable version of the
Tomcat 5.5 source. I tried the instruction on
http://tomcat.apache.org/tomcat-5.5-doc/building.html , but the build.xml
linked on this page is not working. If somebody could help me I would be
very pleased.


If you did provide some information what *exactly* "is not working" means,
maybe someone would be able to help you.

Regards
 mks

-
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: Starting Tomcat

2006-01-25 Thread Hooper, Paul
Thank you, I'll give it a try.

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2006 11:46
To: Tomcat Users List
Subject: RE: Starting Tomcat

> From: Hooper, Paul [mailto:[EMAIL PROTECTED] I am a new Tomcat user 
> and am having some difficulties starting the server
[...]
> Using JRE_HOME:   /export/home/liondev/software/java_1.4.2_10

5.5 needs *either* a Java 1.5 VM *or* the JDK 1.4 Compatability Package
available from the download links at
http://tomcat.apache.org/download-55.cgi - this may be your problem.

- Peter

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

_Confidentiality notice: Whilst this company has procedures in place and
makes every effort to safeguard both Inbound and Outbound Emails, we cannot 
guarantee that attachments are Virus - Free or compatible with your systems and 
therefore we do not accept any liability in respect of viruses or computer 
problems experienced. This e-mail and any files transmitted with it are 
confidential and/or privileged. They are for the intended recipient only. If 
you are not the intended recipient, you must not use, review, distribute, 
disclose, alter, print, copy, transmit or rely on this e-mail and any file 
transmitted with it. If you have received this e-mail and any file transmitted 
with it in error please notify the sender or Mitsui Sumitomo Insurance (London 
Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company 
Number 1063340 email: [EMAIL PROTECTED]

Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo 
Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are 
all regulated by the Financial Services Authority.
_
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



[SOLVED]: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-25 Thread andreas.wieczorek
Mladen Turk wrote:
>Right, sorry :)
>status=d or status=D
>(a single letter).
>there is additional stopped option (s), so you can
>concat those, (eg. status=SD means stopped and disabled).

>If you edit httpd.conf and restart apache then you add
>+ or - prefixes.
>For example if status was disabled you can edit httpd.conf,
>and set 'status=-D'. On graceful restart it will remove
>disabled flag.

>Mladen.

Thank you very much, that was it, now it works!

Here´s the valid config-example for the others:


   BalancerMember ajp://hotstandby status=d
   BalancerMember ajp://node1 redirect=hotstandby
   BalancerMember ajp://node2 redirect=hotstandby
   ...
   BalancerMember ajp://nodeN redirect=hotstandby


Best regards,
Andreas

Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten 
bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie 
uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. 
Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, 
Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. 
Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. 
Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS 
schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die 
Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder 
E-Mails aus.
---
This message contains confidential information and is intended only for the 
named individual. If you are not the named addressee, you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this message in error and delete 
this e-message from your system.
No reliance may be placed on this message without written confirmation of its 
contents from an authorized representative. GZS accepts no liability for loss 
or damage caused by software viruses except in case of gross negligence or 
willful behaviour.


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



RE: Starting Tomcat

2006-01-25 Thread Hooper, Paul
That worked perfectly.
Thank you very much

Paul


-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2006 11:46
To: Tomcat Users List
Subject: RE: Starting Tomcat

> From: Hooper, Paul [mailto:[EMAIL PROTECTED] I am a new Tomcat user 
> and am having some difficulties starting the server
[...]
> Using JRE_HOME:   /export/home/liondev/software/java_1.4.2_10

5.5 needs *either* a Java 1.5 VM *or* the JDK 1.4 Compatability Package
available from the download links at
http://tomcat.apache.org/download-55.cgi - this may be your problem.

- Peter

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

_Confidentiality notice: Whilst this company has procedures in place and
makes every effort to safeguard both Inbound and Outbound Emails, we cannot 
guarantee that attachments are Virus - Free or compatible with your systems and 
therefore we do not accept any liability in respect of viruses or computer 
problems experienced. This e-mail and any files transmitted with it are 
confidential and/or privileged. They are for the intended recipient only. If 
you are not the intended recipient, you must not use, review, distribute, 
disclose, alter, print, copy, transmit or rely on this e-mail and any file 
transmitted with it. If you have received this e-mail and any file transmitted 
with it in error please notify the sender or Mitsui Sumitomo Insurance (London 
Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company 
Number 1063340 email: [EMAIL PROTECTED]

Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo 
Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are 
all regulated by the Financial Services Authority.
_
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: Are servlet name and class name required in web.xml for tomcat 5.5?

2006-01-25 Thread David Smith
You're talking about the Invoker servlet that automagicly mapped
requests to servlets.  This is a bad security problem that's best avoided.

First you need to declare all your servlets in web.xml:


  NameOfServlet
  com.mycompany.myproject.MyServlet


then declare the mappings of requests to servlets:


  NameOfServlet
  /doAction/*


In servlet specs prior to 2.4, the order of elements in the web.xml file
was important.  All the  elements had to be together and
precede the  elements.  Writing the web.xml file to
servlet spec 2.4 standard eliminates the ordering requirement.  More
information on this subject can be found in the servlet specs
themselves.  Tomcat 5.5 is servlet spec 2.4 conformant but can work with
previous servlet specs.

http://java.sun.com/products/servlet/download.html

--David

Alla Winter wrote:

>For Tomcat 4.x I didn't have to set up anything in web.xml.  But it seems
>that I have to define each servlet name and corresponding class name in
>web.xml in order to make it to work for Tomcat 5.5.  Is that right
>statement? 
>I have a lot of servlets, it seems like it is a lot of work.
>Can not find what info is required in web.xml and what is optional? Can you
>please refer me to that info?
>Thanks 
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture & Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



Re: Problems with Tomcat 5.5 build.xml

2006-01-25 Thread Markus Schönhaber
Andre Kammerl wrote:
> Sorry for the missing exact description of the Problem. The following
> output is given when I use ant (ver 1.6.5) on the build.xml file. Looks
> like the destinations of the links inside the build.xml do not exist.
>
> O:\Tomcat_5.5>ant
> Buildfile: build.xml
>
> check.source:
>
> get.source:
>
> checkout:
> [echo] If the checkout fails, - todo -
>
> BUILD FAILED
> O:\Tomcat_5.5\build.xml:87: The following error occurred while executing
> this line:
> O:\Tomcat_5.5\build.xml:70: Execute failes: java.io.IOException:
> CreateProcess: svn checkout
> http://svn.apache.org/repos/asf//tomcat/current/tc5.5.x O:\Tomcat_5.5
> error=2
>
> Total time: 0 seconds
> O:\Tomcat_5.5>
>
> Hopefully somebody has an idea to solve my problem.

It seems that either you don't have Subversion installed or the svn.exe is not 
in %PATH%. The Tomcat sourcecode is managed in a Subversion repository and 
the ant build tries to check it out from there.
So you should install Subversion into a location where ant can find it.
Or, you could download the Tomcat source distribution and build that.

Regards
mks

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



Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed

2006-01-25 Thread Endre Stølsvik

(Apparently sent this to the wrong address first time)

Hi!

I have a memory-leak.

That is, I can't start my full application and have unload-capability. If I 
"comment out" (by adding 'if (false) { ... }') large chuncks of the system, I 
manage to get it up, _and_ get it down again!


Currently, pretty much the whole application have to be commented out to enable 
webapp unloading to actually let the system be GC'ed. Both if I comment in the 
starting of WebMacro, or the "subsystem" that parses the system XML 
configuration (which uses on jdom), I can't unload.


The problem seems to be that I get a large cluster with somehow-reacable 
objects forming - all having the not-GC'ed WebappClassLoader somewhere in 
common.


Is there any documentation out there that can give me a definitive clue? I've 
used VERY MUCH time on this problem now, and searched high and low for answers. 
I've used JProfiler and YourKit to my limit too, and still can't seem to get an 
understanding: Using the "find GC roots", I sometimes get an _elaborate_ 
diagram including lots of tomcat and sun mbean-stuff that I don't know (!), but 
often there is just an _annoying_ "other gc root" or "Other GC".


Any help appreciated.

Regards,
Endre

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



application problem after installing Apache Portable Runtime

2006-01-25 Thread Gaël Lams
Hi all,

After reading the benefits of using apr (and seen the info message in
catalina.out ;-)
I downloaded apr-1.2.2, configure && make && make install and modified
my init.d script with  -Djava.library.path=/usr/local/apr/lib'.

Tomcat (version 5.5.12, jre1.5.0_05, Suse Professional 9.3) seems to
start well but, when I try use our application, I have two problems:
- connection is really slow, at least the page loads really slowly
- I have some javascript problems and some html tags appear on my jsp page.

As soon as I remove apr and restart Tomcat, everything works perfectly fine.

I googled a little bit and read the documentation but I didn't find
any useful information.

Should I change something in my tomcat configuration ( apart from
having  in
server.xml?)

Should something be modified at the application level?

Regards,

Gaël


RE: How to find what encryption algorithm tomcat is using?

2006-01-25 Thread Shirode, Sangita \(Sangita\)
Vineesh,

I think you are right. 
I used the following code to find out the encryption algorithm in my
servlet,

 String cipherSuite = (String)
httpReq.getAttribute("javax.servlet.request.cipher_suite");
   if(cipherSuite != null){
out.println("javax.servlet.request.cipher_suite is " + cipherSuite);
   }

I got the following result
javax.servlet.request.cipher_suite is SSL_RSA_WITH_RC4_128_MD5 

And I also used the RSA while generating a keypair for certificate. So
may be the same key-pair is used for encryption also.

Thanks for all your help.
Sangita


-Original Message-
From: vineesh kumar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 1:49 PM
To: Tomcat Users List
Subject: Re: How to find what encryption algorithm tomcat is using?

the key generation algorithm itself will be the encryption algorithm as
of my knowledge, otherwise the public and private keys do not match i
don know exactly from where they are determining the encryption
algorithm but in the key store the algorithm used will be ther regards
   vineesh

On 1/25/06, Shirode, Sangita (Sangita) <[EMAIL PROTECTED]> wrote:
> Thanks vineesh
>
> for your immediate reply. I'm using RSA while generationg a key. But I

> think it is for certificate keystore as given in the link 
> http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html.
>
> Does the same algorithm is used for data encryption also? If yes I 
> think I can get complete details about algorithm in java site since
just 'RSA'
> is not sufficient information.
>
> Thanks,
> Sangita
>
> -Original Message-
> From: vineesh kumar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 25, 2006 12:57 PM
> To: Tomcat Users List
> Subject: Re: How to find what encryption algorithm tomcat is using?
>
> sorry,
>  ur  own algorithm means any standard cryptographic 
> algorithm,supported by java
>
> On 1/25/06, vineesh kumar <[EMAIL PROTECTED]> wrote:
> > the default key generation algorithm is DSA try man keytool if u are

> > on a linux machine but u can specify ur own algoithm when u 
> > generating
>
> > a key like
> >   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
> (Windows)
> > $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) 
> > regards
> >vineesh
> > On 1/25/06, Shirode, Sangita (Sangita) <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I need the info about what encryption algorithm tomcat is using 
> > > when
>
> > > it sends/receives data to /from client via SSL. I need this info 
> > > for
>
> > > export compliance. When I enabled SSL in tomcat I just followed 
> > > the normal procedure given in Tomcat docs. I'm generating a self 
> > > signed certificate with java keytool.
> > >
> > > I would appreciate immediate reply on this since I need this info 
> > > urgently.
> > >
> > > Thanks,
> > > Sangita
> -
> 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]




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



Severe Socket Exception / Invalid argument

2006-01-25 Thread Von Gunten, Bernhard
Hello

Browsing the internet and searching this mailinglist, I found several
posts from people having the same problem, but nowhere an explanation to
it. Besides the hope to find any answers, I'd like to add some
informations from my side.

As other users, from time to time I find following entries in my
catalina.out, and as they are "SEVERE" my customer is concerned:

SEVERE: Remote Host / SocketException: Invalid argument
Jan 24, 2006 4:11:30 PM org.apache.tomcat.util.net.TcpWorkerThread runIt

All I'd like is to understand this message, or what might lead to it!

Environment:

- Tomcat 5.0.28
- Java 1.4.2-4.p8
- OS: Compaq Tru64 UNIX V5.1B (Rev. 2650)

Additional Informations:

- Tomcat seems be not affected in a bad way after this messages.
- The usage of the application running on the tomcat does not seem to
have a direct impact on the amount of messages showing up.
- Hundreds of people are working with the application, but no reactions
from their side so far.

Just by the way:

- Weird coincidence: The same tomocat/java instance, is not able to run
for longer periods. After +/- 3 days and tenthousands of hits the java
process seems to hang and tomcat gives no answer what so ever to any
requests anymore. The process has to be killed. No big issue as this is
a intranet application and may be restarted every night. Anyway, just
fyi.

Greetings from Switzerland and sorry my english ;-)

Bernhard von Gunten

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



Re: Problems with Tomcat 5.5 build.xml

2006-01-25 Thread Andre Kammerl

Hi.

The problem is solved. It was a problem in the %PATH%-settings. Thank you 
very much.


Greetings

   André



- Original Message - 
From: "Markus Schönhaber" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Wednesday, January 25, 2006 1:44 PM
Subject: Re: Problems with Tomcat 5.5 build.xml



Andre Kammerl wrote:

Sorry for the missing exact description of the Problem. The following
output is given when I use ant (ver 1.6.5) on the build.xml file. Looks
like the destinations of the links inside the build.xml do not exist.

O:\Tomcat_5.5>ant
Buildfile: build.xml

check.source:

get.source:

checkout:
[echo] If the checkout fails, - todo -

BUILD FAILED
O:\Tomcat_5.5\build.xml:87: The following error occurred while executing
this line:
O:\Tomcat_5.5\build.xml:70: Execute failes: java.io.IOException:
CreateProcess: svn checkout
http://svn.apache.org/repos/asf//tomcat/current/tc5.5.x O:\Tomcat_5.5
error=2

Total time: 0 seconds
O:\Tomcat_5.5>

Hopefully somebody has an idea to solve my problem.


It seems that either you don't have Subversion installed or the svn.exe is 
not

in %PATH%. The Tomcat sourcecode is managed in a Subversion repository and
the ant build tries to check it out from there.
So you should install Subversion into a location where ant can find it.
Or, you could download the Tomcat source distribution and build that.

Regards
mks

-
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]



FarmDeployer - removing webapp on deploy?

2006-01-25 Thread Julie McCabe
Hello,

Environment: tomcat-5.5.7, java 1.5.0_03

I have set up a vertical cluster containing 4 nodes.  I am attempting to 
create a master farm node, the  element in the master node is:














The other nodes have the same  element but with the watchEnabled 
attribute set to false on the / element.

When all the nodes are running, I copy a war file into the master node 
CATALINA_HOME/war_listen, this is the output in the logs:

25-Jan-2006 12:35:14 org.apache.catalina.cluster.deploy.WarWatcher check
INFO: check cluster wars at /media/jm/cluster/tomcat1/war-listen
25-Jan-2006 12:35:18 org.apache.catalina.cluster.deploy.FarmWarDeployer 
fileModified
INFO: Installing webapp[/testFarm] from 
/media/jm/cluster/tomcat1/war-deploy/testFarm.war
25-Jan-2006 12:35:18 org.apache.catalina.cluster.deploy.FarmWarDeployer remove
INFO: Cluster wide remove of web app /testFarm

It seems the war file is getting deployed but then it is removed from the 
whole cluster.  The filesystem is left with the war file getting copied into 
CATALINA_HOME/war-deploy on the master node plus the other 3 nodes, however 
the webapp is not accessible.

The webapp has the  element as:
http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

Test Farm Webapp

.

Is there something im missing - perhaps it something in the webapp - although 
its just a hello world webapp with a single html file.

Any ideas appreciated!

Regards,
Julie.


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



Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed

2006-01-25 Thread Mike Fowler

Good day,

I have encountered a similar problem while deploying webapps. In my case 
I noticed that after the sixth deployment I would encounter 
OutOfMemoryError when I tried to use the application. After trawling the 
archives and running the tomcat jvm with the -XX:+PrintGCDetails option 
I discovered that I run out of PermSpace. Reading this posting
http://marc.theaimsgroup.com/?l=tomcat-user&m=113532811904238&w=2 from 
Rodrigo Ruiz I discover that the memory leak is caused by static classes 
(aka Singletons) that are dotted all over support jars in my classpath. 
For me to solve my problem I would need to go on one hell of an 
anti-singleton crusade, and tempting as it, is I haven't the time. 
Perhaps this is the cause of your problems as well?


Kind regards,

Mike Fowler
Registered Linux user: 379787

"I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it"
-PULP 'Glory Days'

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



Can i upgrade just one of my clusters

2006-01-25 Thread Randy Paries
Hello,
I am running a clustered env
Two boxes RH9 and tomcat 5.0.24

These two boxes are clustered together via tomcat

I am getting ready to ugrade them one at a time to the latest fedora
and tomcat which appears to be 5.5.15

My question is during the process there will be  some time that one
box is in the original config and one is in the new config.

Will this totally hose the clustering?

Thanks for any info/help

Randy

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



is Bug 35252 really fixed ? namespaces & xml

2006-01-25 Thread Nicole Nemer
Hello-
My exact error:
Attribute "star" bound to namespace "http://www.w3.org/2000/xmlns/"; was
already specified for element "star:content-block". Nested exception:
Attribute "star" bound to namespace "http://www.w3.org/2000/xmlns/"; was
already specified for element "star:content-block".

I have the exact problem as is described in Bug 35252 which is reported
to be fixed in 5.5.13 at
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html .

I have downloaded the 5.5.15.distribution and I still get the same error.

I have downloaded the 5.5.15 source, recompiled PageDataImpl.java with
the suggested changes, re-jarred jasper-compiler.jar and used that
jarfile instead and I still get the same error.

Is this bug really fixed?  Could my problem which appears to be from
35252 actually be from something else?

Thank you in advance.
NN


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



Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed

2006-01-25 Thread Davide Romanini
Il giorno mer, 25/01/2006 alle 15.34 +, Mike Fowler ha scritto:
> Good day,
> 
> I have encountered a similar problem while deploying webapps. In my case 
> I noticed that after the sixth deployment I would encounter 
> OutOfMemoryError when I tried to use the application. After trawling the 
> archives and running the tomcat jvm with the -XX:+PrintGCDetails option 
> I discovered that I run out of PermSpace. Reading this posting
> http://marc.theaimsgroup.com/?l=tomcat-user&m=113532811904238&w=2 from 
> Rodrigo Ruiz I discover that the memory leak is caused by static classes 
> (aka Singletons) that are dotted all over support jars in my classpath. 
> For me to solve my problem I would need to go on one hell of an 
> anti-singleton crusade, and tempting as it, is I haven't the time. 
> Perhaps this is the cause of your problems as well?
> 
> Kind regards,
> 

It's a known problem caused by a lot of different situations. It's sad
that a lot of important applications suffer of this problem. I'm working
with Axis, and just trying to reload the bundled webapp never release
the old WebappClassloader.

I think this is serious: hot deployment becomes totally useless and you
have to restart tomcat each time you deploy a new version :-(

Bye,
Davide Romanini


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



PoolableConnectionFactory/NetworkAdapter/OutOfMemoryError Tomcat5.0.28

2006-01-25 Thread Aimee Ukasick
Windows 2003 Server with jdk 1.4.2_09, Tomcat 5.0.28 and a single web
application installed

remote Oracle 9 instance

We have been encountering the following error with increasing frequency
on our production server when trying to connect to a remote Oracle
instance:

[org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Io exception: The Network Adapter could not
establish the connection)]

Tomcat then completely locks up and we have to restart the Tomcat
service. The Tomcat logs show an OutOfMemoryError is thrown around the
same time as Tomcat is trying to establish the Oracle connection. This
morning the Windows Task Manager showed Tomcat5 memory usage at over
100,000 K, and we couldn't access our web application nor the Tomcat
Manager until we had restarted the service.

Can anyone suggest causes for the problem and how to resolve the issue?

 
Thanks.

Aimee


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Are servlet name and class name required in web.xml for tomcat 5.5?

2006-01-25 Thread TonyCoco

 -- Original message --
From: "Alla Winter" <[EMAIL PROTECTED]>
> For Tomcat 4.x I didn't have to set up anything in web.xml.  But it seems
> that I have to define each servlet name and corresponding class name in
> web.xml in order to make it to work for Tomcat 5.5.  Is that right
> statement? 
> I have a lot of servlets, it seems like it is a lot of work.
> Can not find what info is required in web.xml and what is optional? Can you
> please refer me to that info?
> Thanks 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Yes, that is correct. Within the  element you must have the 
 element, which can be any unique name you want, and the 
 element which has the real class name. Then within the 
 element you must have a  which is the same as 
one of the names from the  section, and you must have a  
element which tells Tomcat the url pattern that it will map to the identified 
servlet. Here is an example for a servlet called "Login":

 
Login
net.homeip.coconets.sessionpkg.Logout
  

   
Login
/Login
  

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



Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed

2006-01-25 Thread Mike Fowler


Davide Romanini wrote:


I think this is serious: hot deployment becomes totally useless and you
have to restart tomcat each time you deploy a new version :-(


I agree, and from what I understand of the problem there is not a whole 
lot that can be done at the Tomcat level, it appears to be down to the 
JVM itself. For example, a collegue has experienced a similar problem in 
WebLogic. I run Tomcat 5.0.28 in Sun's HotSpot Client VM 1.4.2_09. I 
wonder if other JVM implementations with presumably different GC 
implementations suffer this problem as well?


I've always hated the Singleton pattern and it's overuse. To me 
it's use seems like a bad OO design. I do not use the singleton in my 
designs, but I've been stung by "singleton hell" because of, IMHO, 
poorly designed support libraries that rely far to heavily on the use of 
singletons. (I feel a little less frustrated with this problem now!).


Kind regards,

Mike Fowler
Registered Linux user: 379787

"I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it"
-PULP 'Glory Days'



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



Re: FarmDeployer - removing webapp on deploy?

2006-01-25 Thread Peter Rossbach

Is your deployDir the host appBase (webapps) directory?
Check that tempDir,deployDir and watchDir are exists
and read/writeable at all nodes.

Configure debug logging at FarmWarDeployer package
conf/logging.properties
org.apache.catalina.cluster.deploy.level=FINE

See what happens...

Peter


Am 25.01.2006 um 16:24 schrieb Julie McCabe:


Hello,

Environment: tomcat-5.5.7, java 1.5.0_03

I have set up a vertical cluster containing 4 nodes.  I am  
attempting to
create a master farm node, the  element in the master node  
is:




 
className="org.apache.catalina.cluster.mcast.McastService"

mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>


className="org.apache.catalina.cluster.tcp.ReplicationListener"

tcpListenAddress="127.0.0.1"
tcpListenPort="4000"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>



   filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.* 
\.html;.*\.txt;"/>





The other nodes have the same  element but with the  
watchEnabled

attribute set to false on the / element.

When all the nodes are running, I copy a war file into the master node
CATALINA_HOME/war_listen, this is the output in the logs:

25-Jan-2006 12:35:14 org.apache.catalina.cluster.deploy.WarWatcher  
check

INFO: check cluster wars at /media/jm/cluster/tomcat1/war-listen
25-Jan-2006 12:35:18  
org.apache.catalina.cluster.deploy.FarmWarDeployer

fileModified
INFO: Installing webapp[/testFarm] from
/media/jm/cluster/tomcat1/war-deploy/testFarm.war
25-Jan-2006 12:35:18  
org.apache.catalina.cluster.deploy.FarmWarDeployer remove

INFO: Cluster wide remove of web app /testFarm

It seems the war file is getting deployed but then it is removed  
from the
whole cluster.  The filesystem is left with the war file getting  
copied into
CATALINA_HOME/war-deploy on the master node plus the other 3 nodes,  
however

the webapp is not accessible.

The webapp has the  element as:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

Test Farm Webapp

.

Is there something im missing - perhaps it something in the webapp  
- although

its just a hello world webapp with a single html file.

Any ideas appreciated!

Regards,
Julie.


-
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: Can i upgrade just one of my clusters

2006-01-25 Thread Peter Rossbach

You must install the same tomcat release at
all boxes. The cluster protocol has changed!

Peter


Am 25.01.2006 um 16:45 schrieb Randy Paries:


Hello,
I am running a clustered env
Two boxes RH9 and tomcat 5.0.24

These two boxes are clustered together via tomcat

I am getting ready to ugrade them one at a time to the latest fedora
and tomcat which appears to be 5.5.15

My question is during the process there will be  some time that one
box is in the original config and one is in the new config.

Will this totally hose the clustering?

Thanks for any info/help

Randy

-
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: From Java to C#, ASP.NET [Off Topic]

2006-01-25 Thread George Sexton
I've been developing with Microsoft Products for 15 year. At one point I was
an MVP, and I was on the original MVP program steering committee. Here's
what I can tell you about MS product development. A lot of my comments are
going to be about FoxPro, which I used most, but the same issues exist with
other tools.

Corporate strategy drives tool development, not developer desires. Several
years ago, with FoxPro, OLE forms was the big thing. So, the bulk of the
development effort went into creating the ability to run FoxPro forms as OLE
controls in a browser. None of the developers wanted it. They wanted an
improved report writer and menu system. No one that I know ever used this
capability.

There are ALWAYS a lot of unexpected problems when using MS tools. Take for
example, memo fields and ADO. You basically only get one shot to read a memo
field from an ADO result set. Once you access it, its consumed and you can't
get the value again. There's also a problem in ADO if you don't make sure
that memo fields are the last elements in a select list. In FoxPro, if you
assign a string longer than 200 characters to a caption, the caption isn't
displayed at all. Its not truncated, and it doesn't throw an error, it just
doesn't display. You're just sitting there, scratching your head wonder why
the heck it isn't working. If you create a view in FoxPro that is "select *
from table", and someone modifies the base table, you'll get an error
opening the remote view, and you have to drop the view and re-add it. Don't
even get me started on Windows Installer technology.

Bugs RARELY get fixed. There's a problem in the Excel ODBC driver. If the
first 6-8 rows are digits, the driver assumes the column type is numeric and
will throw an error if later rows have characters. There's supposed to be an
override feature to set the type, but it doesn't work either. Another
example is THEAD/TBODY tags. There is a KB article for IE 4.0 (Q190278)
saying that failure to support THEAD/TBODY tags for printing was a defect
(although the revised KB article now says this is by design). This was never
fixed in IE 4.0, 5.0, 5.5, or 6.0. I don't have IE 7.0 so I can't say if
they have added support for it or not. There's a real corporate culture that
says customers are fools, and these quirks don't have to be repaired. The
problem is that a small bug in a development tool can easily consume a day
of developer time.

Tool strategy churn is another problem. Their development tool focus changes
every two years. Did I mention tool strategy exists to sell servers (SQL,
Windows, etc)? Right when developers become comfortable with a technology,
the focus is changed. The end result is that companies end up with a series
of core applications, each developed using a different toolset, methodology,
or mindset. Developers never become proficient at a tool, and consequently
quality of applications just sucks.

These things make it almost impossible to accurately fix bid a project. You
just never know when some obscure bug reported 5 years ago is going to come
out and bite you. 

>From my experience, I've had perhaps 1/10th of the development tool problems
with Java compared to using MS tools. I can accurately cost estimate Java
projects, and do them profitably. I know that I probably am not going to run
into any bugs (where a large project will hit at least 5-10 in the MS
world).

So, good luck. I hope you're really happy. But, I think that when you have
the experience and the career span that I do you'll start to see these
things as I do and look for a way out.



George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Tony LaPaso [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 24, 2006 8:28 PM
> To: users@tomcat.apache.org
> Subject: From Java to C#, ASP.NET [Off Topic]
> 
> Hi all,
> 
> I should mention that this post is a bit off topic. If you hate 
> Microsoft then stop reading now and I'm sorry for wasting 
> your time. I 
> don't own stock in Microsoft, I don't know Bill Gates and nobody paid 
> me or asked me to say the things I wrote below. These are just my 
> opinions based on my experiences with many years in Java and 
> two months 
> of learning .NET/C# 2.0.
> 
> I've been programming in Java/J2EE for the past 8+ years, 
> most of this 
> time as a contractor for several companies on many J2EE projects. I 
> even have a small (and now hopelessly out of date) Java web site that 
> I've maintained for the past 5+ years at www.absolutejava.com, which 
> will be removed in early May.
> 
> Until about 8 weeks ago, I never even considered looking at anything 
> Microsoft offered. Recently though, on a whim, I browsed over to the 
> Microsoft site because I'd heard about their new release of Visual 
> Studio. I'd been a Windows programmer back in the mid '90s and was 
> curious to see how Visual Studio (it was Visual C++ back then) had 
> evolved (or not).
> 
> I didn't download Visua

Re: Apache does not override errors coming from Tomcat

2006-01-25 Thread Len Popp
On 1/24/06, Akoulov, Alexandre <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'd appreciate if you could help with the following problem.
>
> In our environment apache 1.3.33 acts as a web server that dispatches certain 
> requests to tomcat 5.5. What we're currently trying to achieve is to make 
> apache handle errors that come from tomcat (eg, if tomcat throws 404 Not 
> Found error let apache display the appropriate html page).
>
> We've used ErrorDocument directive in apache to specify what html pages to 
> show for different errors:
>
> ErrorDocument 400 /forbidden.html
> ErrorDocument 401 /unauthorised.html
> ErrorDocument 403 /forbidden.html
> ErrorDocument 404 /missing.html
> ErrorDocument 500 /server_error.html
>
>
> The problem is that apache does not override errors that come from tomcat but 
> rather propagates them to the client (web browser). Eg, if the user has 
> requested the resource that does not exist in tomcat he/she gets "HTTP Status 
> 404 - ..." page generated by tomcat while we're expecting it to be overridden 
> by apache with the missing.html page.
>
> Any ideas on what's happening?
>
>
> Kind regards,
>
> Sasha.

I think the Apache ErrorDocuments only apply to errors generated
within Apache. For Tomcat errors, Apache is just acting as a proxy and
returning whatever response page that Tomcat generated.

You can customize Tomcat's error pages by putting 
declarations in web.xml.
--
Len

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



Re: Memory leaking on [un|re]load: WebappClassLoader isn't GC'ed

2006-01-25 Thread Wade Chandler
--- Davide Romanini <[EMAIL PROTECTED]> wrote:

> Il giorno mer, 25/01/2006 alle 15.34 +, Mike
> Fowler ha scritto:
> > Good day,
> > 
> > I have encountered a similar problem while
> deploying webapps. In my case 
> > I noticed that after the sixth deployment I would
> encounter 
> > OutOfMemoryError when I tried to use the
> application. After trawling the 
> > archives and running the tomcat jvm with the
> -XX:+PrintGCDetails option 
> > I discovered that I run out of PermSpace. Reading
> this posting
> >
>
http://marc.theaimsgroup.com/?l=tomcat-user&m=113532811904238&w=2
> from 
> > Rodrigo Ruiz I discover that the memory leak is
> caused by static classes 
> > (aka Singletons) that are dotted all over support
> jars in my classpath. 
> > For me to solve my problem I would need to go on
> one hell of an 
> > anti-singleton crusade, and tempting as it, is I
> haven't the time. 
> > Perhaps this is the cause of your problems as
> well?
> > 
> > Kind regards,
> > 
> 
> It's a known problem caused by a lot of different
> situations. It's sad
> that a lot of important applications suffer of this
> problem. I'm working
> with Axis, and just trying to reload the bundled
> webapp never release
> the old WebappClassloader.
> 
> I think this is serious: hot deployment becomes
> totally useless and you
> have to restart tomcat each time you deploy a new
> version :-(
> 
> Bye,
> Davide Romanini

Don't use shared libraries and you shouldn't have this
problem.  If all of the statics are in your WEB-INF
directory then you won't have an issue with unloading
classes and class loaders.

Wade

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



https difficulties w/ Tomcat5

2006-01-25 Thread Stevie G. Messervey
Hello,
 Please let me preface that I have actually tried
to run down various
threads,tutorials,FAQS, and the Tomcat docs (both
shipped & online).

dist: Crux Evolution 2.0.x kernel: 2.6.8.1 gcc:3.3.4
java:jdk1.5.0_06
kde:3.3(incl/konqueror) firefox:1.5 Tomcat:5.5.15
(binary tar.gz)
APR:1.2.2

Basically, I cannot get the SSL connector to work. I
uncomment the 
appropriate entry in server.xml, and when I try to
access 
https://localhost:8443,the session times out. 
Oddly (to me), accessing via http://localhost:8080
works.

I do have the keystore properly configured, as I
recently installed 4.1.31
to test it. Tomcat4.1.31 w/ https works flawlessly.

I chased this thing round and round- I downloaded
firefox, thinking maybe 
it was a browser issue, as I built KDE myself(i.e.
it's not the bundle from the distro). Same issue. I
don't really suspect gcc or associated
problems,as jsvc and libtcnative both compiled (and
installed, for
libtcnative) w/o complaint.

I have even tried copying a modified  from
4.1.31, which 
(unmodified) works under 4.1.31 . 
I have tried explicitly setting the address, i.e.
address="127.0.0.1"; no
luck. I created some scripts to monitor the tomcat
sessions, the most
useful fragment being 'neststat -p | grep localhost:',
which, during my
tests, shows tomcat talking to itself, from which I
can conclude that the
sessions are being started.

The only thing I haven't tried is building from
source.

In short, has anyone else been able to:
* get https working, 'out of the box', from the 5.5.15
binary .tar.gz?
* ditto above, with Crux? Crux-Evolution?


Thank you for your time and interest,
 Tarkin

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



mod_jk configuration directives in VirtualHost sections

2006-01-25 Thread Jonathan Woods
Hello, list.
 
I have Apache 1.3.33 running on Linux and talking successfully to Tomcat
5.5.15 through mod_jk.  I'd now like to host multiple instances of Tomcat
(or maybe just multiple Tomcat connectors within one instance) to receive
requests dispatched at multiple VirtualHosts on the same server.
 
Is it possible to have more than one workers.properties file, and therefore
more than one JkWorkersFile directive, per Apache?  Ideally, I'd like one
workers.properties file per VirtualHost just to make app-building easier.
The documentation says that certain directives may be repeated in
VirtualHost sections - e.g. JkLogFile - but doesn't mention JkWorkersFile.
 
Thanks in advance -
 
Jon


Tomcat mod_jk on WhiteboxEL ??

2006-01-25 Thread Olav Drageset

Hello

I am new to Tomcat and just installed Tomcat5.5 on whiteboxEL4 and get  
proper result when using http://localhost:8080
However browsing from another host on the same local network only hangs  
the browser when using the right IP-number. Should this work? Is there a  
remedy for this?



I try to get mod_jk installed with Apache2.0 (httpd-2.0). I cannot find a  
binary  version and the compilation do not work because I have no Apache  
sourse directory nor a apxs file in my Linux distribution.


Do anyone know how this is normally done?

Thanks
Olav


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



Re: Tomcat mod_jk on WhiteboxEL ??

2006-01-25 Thread Edoardo Panfili

Olav Drageset ha scritto:

Hello

I am new to Tomcat and just installed Tomcat5.5 on whiteboxEL4 and get 
proper result when using http://localhost:8080
However browsing from another host on the same local network only 
hangs the browser when using the right IP-number. Should this work? Is 
there a remedy for this?



The same situation for me before the check on the firewall on my server.

Edoardo


--
[EMAIL PROTECTED]
AIM: edoardopn 
Jabber: [EMAIL PROTECTED]

tel:075 9142766


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



RE: Tomcat mod_jk on WhiteboxEL ??

2006-01-25 Thread Caldarale, Charles R
> From: Olav Drageset [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat mod_jk on WhiteboxEL ??
>
> However browsing from another host on the same local network 
> only hangs the browser when using the right IP-number.

As a previous respondent said, most likely a firewall issue - on either
box.

> I try to get mod_jk installed with Apache2.0 (httpd-2.0).

Unless you have a specific need for httpd, why bother?

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: https difficulties w/ Tomcat5

2006-01-25 Thread Caldarale, Charles R
> From: Stevie G. Messervey [mailto:[EMAIL PROTECTED] 
> Subject: https difficulties w/ Tomcat5
> 
> Tomcat:5.5.15
> APR:1.2.2
> 
> Basically, I cannot get the SSL connector to work.

APR uses a different SSL configuration based on OpenSSL, as documented
near the bottom of:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

You can try disabling APR, or reconfigure.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Are servlet name and class name required in web.xml for tomcat 5.5?

2006-01-25 Thread Warren Pace

> 
> From: [EMAIL PROTECTED]
> Date: 2006/01/25 Wed AM 11:13:11 EST
> To: "Tomcat Users List" ,  "'Tomcat Users List'" 
> 
> CC: "Alla Winter" <[EMAIL PROTECTED]>
> Subject: Re: Are servlet name and class name required   in web.xml for tomcat 
> 5.5?
> 
> 
>  -- Original message --
> From: "Alla Winter" <[EMAIL PROTECTED]>
> > For Tomcat 4.x I didn't have to set up anything in web.xml.  But it seems
> > that I have to define each servlet name and corresponding class name in
> > web.xml in order to make it to work for Tomcat 5.5.  Is that right
> > statement? 
> > I have a lot of servlets, it seems like it is a lot of work.
> > Can not find what info is required in web.xml and what is optional? Can you
> > please refer me to that info?
> > Thanks 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> Yes, that is correct. Within the  element you must have the 
>  element, which can be any unique name you want, and the 
>  element which has the real class name. Then within the 
>  element you must have a  which is the same as 
> one of the names from the  section, and you must have a 
>  element which tells Tomcat the url pattern that it will map to 
> the identified servlet. Here is an example for a servlet called "Login":
> 
>  
> Login
> net.homeip.coconets.sessionpkg.Logout
>   
> 
>
> Login
> /Login
>   
> 
Deployment Descriptor Element Ordering:
icon
display-name
description
distributable
context-param
filter
filter-mapping
listener
servlet
servlet-mapping
session-config
mime-mapping
welcome-file-list
error-page
jsp-config
resource-env-ref
message-destination-ref
resource-ref
security-constraint
login-config
security-role
env-entry
ejb-ref
ejb-local-ref
message-destination
locale-encoding-mapping-list

I think that's all.  I'm pretty sure they're in the right order.
Warren

> -
> 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: mod_jk / 503 Error

2006-01-25 Thread Warren Pace

> 
> From: Neal Whitley <[EMAIL PROTECTED]>
> Date: 2006/01/24 Tue PM 05:40:53 EST
> To: users@tomcat.apache.org
> Subject: mod_jk / 503 Error
> 
> I have mod_jk / tomcat and apache somewhat working together but I am 
> getting an error when displaying pages via the connector.
> 
> Tomcat is set up and works.  I can hit:
> http://www.site.com:8080/examples/
> or
> http://www.site.com:8009/examples/
> 
> However, when I try:  http://www.site.com/examples/
> I get a 503 error.  "Service Temporarily Unavailable.  The server is 
> temporarily unable to service your request due to maintenance 
> downtime or capacity problems. Please try again later."
> 
> What stands out in my mod_jk.log is this line:  " trying to connect 
> socket 10 to 127.0.0.1:8009"
> 
> The system seems to be trying to connect via the local host.  As you 
> can see from my config files below I do not reference localhost or 
> the 127.0.0.1 IP address.  Best I can tell JK should be 
> using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.
> 
> Is there a configuration option I am missing?  Or how can I get JK to 
> use the correct location?
> 
> Thanks,
> 
> Neal
> 
> 
> 
> 
> System Specs:
> 
> Lixux/Debian
> Apache 1.3.X
> Tomcat 4.1.31
> JK  1.2.14
> 
> 
> 
> mod_jk.log file:
> 
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
> '/examples/' from 11 maps
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/jsp/security/protected/j_security_check'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/CompressionTest'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/SendMailServlet'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/servletToJsp'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/servlet/*'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/*.jsp'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/snoop'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/*'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
> ajp13 -> /examples/*
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
> '/examples/' from 11 maps
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/jsp/security/protected/j_security_check'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/CompressionTest'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/SendMailServlet'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/servletToJsp'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/servlet/*'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/*.jsp'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/snoop'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
> context URI '/examples/*'
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
> ajp13 -> /examples/*
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> wc_maintain::jk_worker.c (301): Maintaining worker ajp13
> [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
> init_ws_service::mod_jk.c (479): Service protocol=HTTP/1.1 method=GET 
> host=(null) addrr=68.58.4.70 name=www.site.com port=80 auth=(null) 
> user=(null) laddr=66.33.192.77 

Re: https difficulties w/ Tomcat5

2006-01-25 Thread TonyCoco
I had the same problem with Tomcat 5.5.12. Finally someone told me to check the 
Tomcat 5.5\bin directory for a file called tcnative-1.dll (or something like 
that, I don't remember exactly). After I deleted that file, my SSL connections 
worked fine. 


 -- Original message --
From: "Stevie G. Messervey" <[EMAIL PROTECTED]>
> Hello,
>  Please let me preface that I have actually tried
> to run down various
> threads,tutorials,FAQS, and the Tomcat docs (both
> shipped & online).
> 
> dist: Crux Evolution 2.0.x kernel: 2.6.8.1 gcc:3.3.4
> java:jdk1.5.0_06
> kde:3.3(incl/konqueror) firefox:1.5 Tomcat:5.5.15
> (binary tar.gz)
> APR:1.2.2
> 
> Basically, I cannot get the SSL connector to work. I
> uncomment the 
> appropriate entry in server.xml, and when I try to
> access 
> https://localhost:8443,the session times out. 
> Oddly (to me), accessing via http://localhost:8080
> works.
> 
> I do have the keystore properly configured, as I
> recently installed 4.1.31
> to test it. Tomcat4.1.31 w/ https works flawlessly.
> 
> I chased this thing round and round- I downloaded
> firefox, thinking maybe 
> it was a browser issue, as I built KDE myself(i.e.
> it's not the bundle from the distro). Same issue. I
> don't really suspect gcc or associated
> problems,as jsvc and libtcnative both compiled (and
> installed, for
> libtcnative) w/o complaint.
> 
> I have even tried copying a modified  from
> 4.1.31, which 
> (unmodified) works under 4.1.31 . 
> I have tried explicitly setting the address, i.e.
> address="127.0.0.1"; no
> luck. I created some scripts to monitor the tomcat
> sessions, the most
> useful fragment being 'neststat -p | grep localhost:',
> which, during my
> tests, shows tomcat talking to itself, from which I
> can conclude that the
> sessions are being started.
> 
> The only thing I haven't tried is building from
> source.
> 
> In short, has anyone else been able to:
> * get https working, 'out of the box', from the 5.5.15
> binary .tar.gz?
> * ditto above, with Crux? Crux-Evolution?
> 
> 
> Thank you for your time and interest,
>  Tarkin
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> 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: https difficulties w/ Tomcat5

2006-01-25 Thread Mike Sabroff
it works fine for me in 5.5.12  I haven't tried 5.5.15isn't that 
still in beta status??


[EMAIL PROTECTED] wrote:
I had the same problem with Tomcat 5.5.12. Finally someone told me to check the Tomcat 5.5\bin directory for a file called tcnative-1.dll (or something like that, I don't remember exactly). After I deleted that file, my SSL connections worked fine. 



 -- Original message --
From: "Stevie G. Messervey" <[EMAIL PROTECTED]>
  

Hello,
 Please let me preface that I have actually tried
to run down various
threads,tutorials,FAQS, and the Tomcat docs (both
shipped & online).

dist: Crux Evolution 2.0.x kernel: 2.6.8.1 gcc:3.3.4
java:jdk1.5.0_06
kde:3.3(incl/konqueror) firefox:1.5 Tomcat:5.5.15
(binary tar.gz)
APR:1.2.2

Basically, I cannot get the SSL connector to work. I
uncomment the 
appropriate entry in server.xml, and when I try to
access 
https://localhost:8443,the session times out. 
Oddly (to me), accessing via http://localhost:8080

works.

I do have the keystore properly configured, as I
recently installed 4.1.31
to test it. Tomcat4.1.31 w/ https works flawlessly.

I chased this thing round and round- I downloaded
firefox, thinking maybe 
it was a browser issue, as I built KDE myself(i.e.

it's not the bundle from the distro). Same issue. I
don't really suspect gcc or associated
problems,as jsvc and libtcnative both compiled (and
installed, for
libtcnative) w/o complaint.

I have even tried copying a modified  from
4.1.31, which 
(unmodified) works under 4.1.31 . 
I have tried explicitly setting the address, i.e.

address="127.0.0.1"; no
luck. I created some scripts to monitor the tomcat
sessions, the most
useful fragment being 'neststat -p | grep localhost:',
which, during my
tests, shows tomcat talking to itself, from which I
can conclude that the
sessions are being started.

The only thing I haven't tried is building from
source.

In short, has anyone else been able to:
* get https working, 'out of the box', from the 5.5.15
binary .tar.gz?
* ditto above, with Crux? Crux-Evolution?


Thank you for your time and interest,
 Tarkin

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
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]

  


--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: mod_jk / 503 Error

2006-01-25 Thread Pulkit Singhal
Hello Neal,

> What stands out in my mod_jk.log is this line:
> " trying to connect socket 10 to 127.0.0.1:8009"
>
> The system seems to be trying to connect via the local host.  As you
> can see from my config files below I do not reference localhost or
> the 127.0.0.1 IP address.  Best I can tell JK should be
> using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.

> Is there a configuration option I am missing?
I remember seeing a few posts in this mailing-list which to my understanding
pretty much stated that the worker.properties file is only used to tell the
connector where the tomcat instance is located.
I too tried entering the outward facing ip of my local machine but it
doesn't seem to make a difference. Maybe it would, if tomcat was actually
located on a different machine. But locallly even if i give the website name
or the outward-facing-ip address itself...it uses localhost to talk to
tomcat (after locating it i guess).

> Or how can I get JK to use the correct location?
So what I'm trying to say is that in the end I Couldn't get the connector to
talk with tomcat with anything other than localhost.
AND that it DOES NOT hurt if it uses localhost to talk to Tomcat!!! It
should work fine!

Having said that..I think we should concentrate on these log entries that
you posted to figure out what the error is:
[info]  jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed
with errno=111
[info]  ajp_connect_to_endpoint::jk_ajp_common.c (880): Failed opening
socket to (127.0.0.1:8009) with (errno=111)
[info]  ajp_send_request::jk_ajp_common.c (1239): Error connecting to the
Tomcat process.

I wonder what errno=111 is? Maybe the tomcat experts can help answer this
one.

By the way you mentioned that you cannot access the page via:
http://www.site.com/examples/
BUT can you access it via http://localhost/examples/ ??? If so, I might
write more :)

Cheers,
- Pulkit

On 1/25/06, Warren Pace <[EMAIL PROTECTED]> wrote:
>
>
> >
> > From: Neal Whitley <[EMAIL PROTECTED]>
> > Date: 2006/01/24 Tue PM 05:40:53 EST
> > To: users@tomcat.apache.org
> > Subject: mod_jk / 503 Error
> >
> > I have mod_jk / tomcat and apache somewhat working together but I am
> > getting an error when displaying pages via the connector.
> >
> > Tomcat is set up and works.  I can hit:
> > http://www.site.com:8080/examples/
> > or
> > http://www.site.com:8009/examples/
> >
> > However, when I try:  http://www.site.com/examples/
> > I get a 503 error.  "Service Temporarily Unavailable.  The server is
> > temporarily unable to service your request due to maintenance
> > downtime or capacity problems. Please try again later."
> >
> > What stands out in my mod_jk.log is this line:  " trying to connect
> > socket 10 to 127.0.0.1:8009"
> >
> > The system seems to be trying to connect via the local host.  As you
> > can see from my config files below I do not reference localhost or
> > the 127.0.0.1 IP address.  Best I can tell JK should be
> > using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.
> >
> > Is there a configuration option I am missing?  Or how can I get JK to
> > use the correct location?
> >
> > Thanks,
> >
> > Neal
> >
> >
> >
> > 
> > System Specs:
> >
> > Lixux/Debian
> > Apache 1.3.X
> > Tomcat 4.1.31
> > JK  1.2.14
> >
> > 
> >
> > mod_jk.log file:
> >
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI
> > '/examples/' from 11 maps
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/jsp/security/protected/j_security_check'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/CompressionTest'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/SendMailServlet'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/servletToJsp'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/servlet/*'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/*.jsp'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/snoop'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map
> > context URI '/examples/*'
> > [Tue Jan 24 13:53:01 2006] [23378:] [debug]
> > map_uri_

Re: How can I take a webapp "temporarily out of service" using mod_jk?

2006-01-25 Thread Pulkit Singhal
Hello,

Ok this might be a step in the totally wrong direction for you...but I just
saw another post...where the "problem" is that the user sees the "out of
service" message...LOL
So may be you'll have some luck if you head over there and checkout what his
config is!!!

The subject of this topic is:*
mod_jk / 503 Error

*Cheers,
-Pulkit

On 1/24/06, Mladen Turk <[EMAIL PROTECTED]> wrote:
>
> Prout John - jprout wrote:
> > I think this is the trick:
> >
> > If you need only to remove particular mappings then use JkMount
> > directive and prefix each mapping with '-'. Within 60 seconds, mod_jk
> > will disable the mappings.
> > 
> >
> > Looking at documentation at the link you sent, it describes this
> > behavior for the JkMountFile directive; do you know there's similar
> > functionality for the JkMount directive?
> >
>
> Right, it's JkMountFile (type :).
>
> > In an ideal world, I'd like to be able to make these changes without
> > editing a file - similar to stopping a node using the status worked -
> > but this is a big step in the right direction
> >
>
> In mod_jk3 (mod_jk1.3.x) we'll add the url management to status worker.
>
> Regards,
> Mladen.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: From Java to C#, ASP.NET [Off Topic]

2006-01-25 Thread Tony LaPaso

Certainly -- $5,000 and it's yours!
--
Tony LaPaso



- Original Message - 
From: "Leon Rosenberg" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Wednesday, January 25, 2006 4:00 AM
Subject: Re: From Java to C#, ASP.NET [Off Topic]




I've been programming in Java/J2EE for the past 8+ years, most of 
this

time as a contractor for several companies on many J2EE projects. I
even have a small (and now hopelessly out of date) Java web site that
I've maintained for the past 5+ years at www.absolutejava.com, which
will be removed in early May.


since you don't need it anymore, can i have it? :-)
I mean the domainname

regards
Leon

-
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: https difficulties w/ Tomcat5

2006-01-25 Thread Caldarale, Charles R
> From: Mike Sabroff [mailto:[EMAIL PROTECTED] 
> Subject: Re: https difficulties w/ Tomcat5
> 
> I haven't tried 5.5.15isn't that 
> still in beta status??

5.5.15 was voted stable late last week.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Authentication & Authorization

2006-01-25 Thread Luis Gervaso
Hello all,

I am developing a login module for a webapp,

Until now for me was sufficient with default tomcat login form

j_security_check + j_username + j_password

but now I need one more item in the authentication challenge
this is the countryId because a user can belong many countries :)
so now we have 3 parameters for the j_security_check and my
problem is the last one (countryId combox of the form)

1)

I have made a CustomCallbackHandler

Constructor
CustomCallbackHandler(String login, String clearPass, String countryId)

2)

then I write a LoginServlet ...

LoginContext lc = new LoginContext(MyModule,new
CustomCallbackHandler(reqLogin,reqClearPass,reqCountryId));
lc.login()
//now i forward to a jsp: test.jsp

3)

for test purpose my LoginModule: MyCustomLoginModule

//subject attribute is initialized in initialize method of LoginModule
interface :)

login() {
 return true; // always return true for test OK?
}

commit() {
  subject.getPrincipals().add(new CustomPrincipal("luis.gervaso"));
}

OK that is all about JAAS code

test.jsp (code)

<%
out.println("User: " + request.getParameter("user") + "");
out.println("Pass (clear): " + request.getParameter("pass") + "");
out.println("User Principal: " + request.getUserPrincipal() + "");
out.println("Remote User: " + request.getRemoteUser());
%>

test.jsp (out)

User: luis
Pass (clear): clearxxx
User Principal: null
Remote User: null

user principal & remote user are null WHY?

Regards
--
Un saludo


RE: https difficulties w/ Tomcat5

2006-01-25 Thread Stevie G. Messervey
Thanks, chuck.
 That popping sound is merely my cranium being romoved
from rectal cavity. I neglected to mention I that I
didn't read the documentation thoroughly enough ;^) .
I read just enough to confuse myself.

 In a nutshell, I followed the instructions for
building Tomcat from scratch,
i.e. getting Ant & APR. Then I discovered the binary
download, and merrily
compiled jsvc and libtcnative.so . IIRC, though,
./configure complained about
not finding apr, wanting me to specify it as an
option, after not finding my
$APR_HOME.

 >reconfigure
After reading the APR section of the docs, this tut:
http://www.apachetomcat.com/tomcat-ssl-5-unix
makes absolute sense, and had my https up in 15
minutes flat.

 Thanks again,
 Stevie G.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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