Can't install tomcat as a service on windows

2010-09-22 Thread McElroy Sean
Hello,

 

I am trying to install apache-tomcat-6.0.13 as a service on my machine
but despite trying various suggestions from different forums (copying
MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
variables are set correctly etc) I still cannot get it to install.

 

I am using Windows XP and Java 1.6.0_06.

 

I would really appreciate some help on this as I'm all out of ideas.

 

Thanks.



RE: Can't install tomcat as a service on windows

2010-09-22 Thread Oliver Schwerk
Sean,

I did it several time successfully using apache-tomcat-6.0.14\bin\service.bat. 
What exactly happens if you run this file?

Thanks,

Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 12:57
 To: users@tomcat.apache.org
 Subject: Can't install tomcat as a service on windows
 
 Hello,
 
 
 
 I am trying to install apache-tomcat-6.0.13 as a service on my machine
 but despite trying various suggestions from different forums (copying
 MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
 variables are set correctly etc) I still cannot get it to install.
 
 
 
 I am using Windows XP and Java 1.6.0_06.
 
 
 
 I would really appreciate some help on this as I'm all out of ideas.
 
 
 
 Thanks.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Can't install tomcat as a service on windows

2010-09-22 Thread McElroy Sean
Hi Oliver,

I'm using 6.0.13 and this installation does contain a service.bat file.

Thanks,

Sean

-Original Message-
From: Oliver Schwerk [mailto:oliver.schw...@flexis.com] 
Sent: 22 September 2010 12:03
To: Tomcat Users List
Subject: RE: Can't install tomcat as a service on windows

Sean,

I did it several time successfully using apache-tomcat-6.0.14\bin\service.bat. 
What exactly happens if you run this file?

Thanks,

Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 12:57
 To: users@tomcat.apache.org
 Subject: Can't install tomcat as a service on windows
 
 Hello,
 
 
 
 I am trying to install apache-tomcat-6.0.13 as a service on my machine
 but despite trying various suggestions from different forums (copying
 MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
 variables are set correctly etc) I still cannot get it to install.
 
 
 
 I am using Windows XP and Java 1.6.0_06.
 
 
 
 I would really appreciate some help on this as I'm all out of ideas.
 
 
 
 Thanks.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Can't install tomcat as a service on windows

2010-09-22 Thread hariprasad
FYI



follow below steps to install tomcat in windows.


note: plz install java before installing tomcat.

1. double click  x.exe file.
2. when it prompts please provide your jre details..
3.then..next..finish.

if u enable check boxes before installation complete ..it tomcat already in
running mode.


open your browser http://localhost:8080;

u click get ...tomcat admin home page.



Hari
+91-9538973827
IBM(india)Pvt Ltd.
www.hari-adda.blogspot.com



On Wed, Sep 22, 2010 at 4:26 PM, McElroy Sean
sean.mcel...@uk.fujitsu.comwrote:

 Hello,



 I am trying to install apache-tomcat-6.0.13 as a service on my machine
 but despite trying various suggestions from different forums (copying
 MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
 variables are set correctly etc) I still cannot get it to install.



 I am using Windows XP and Java 1.6.0_06.



 I would really appreciate some help on this as I'm all out of ideas.



 Thanks.




Re: NioBlockingSelector consuming all CPU

2010-09-22 Thread Thiago Locatelli da Silva
Hi Chuck, thanks for the reply. I am using CentOS linux with kernel 
version 2.6.18-53.1.13.el5.


I have changed the BIO Connector due to our application which makes use 
of the comet functionality. This has been a hard time since I need to 
make the application work with tomcat 6.0.29 and after some changes done 
on the release 6.0.19 the application stopped working.


- Thiago

Caldarale, Charles R escreveu:
From: Thiago Locatelli da Silva [mailto:thiago.si...@digitro.com.br] 
Subject: NioBlockingSelector consuming all CPU



  

I am running tomcat 6.0.29 with jdk 1.6.0_21 (under linux)



Which Linux vendor and version?  Others have reported this problem with a 2.4 
kernel, with the problem going away under 2.6.

You could also try the normal BIO connector or APR to see if that makes a 
difference.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Can't install tomcat as a service on windows

2010-09-22 Thread Oliver Schwerk
Sean,

Did you run this file? What happens? I use 6.0.14, services 
install/uninstall/run/stop without any problems.
1. Open a console so you can see the output of the batch file
2. Navigate to apache-tomcat-6.0.14\bin
3. type service.bat and enter
4. See the output. Service name should be tomcat6



Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 13:05
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Hi Oliver,
 
 I'm using 6.0.13 and this installation does contain a service.bat file.
 
 Thanks,
 
 Sean
 
 -Original Message-
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
 Sent: 22 September 2010 12:03
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sean,
 
 I did it several time successfully using apache-tomcat-
 6.0.14\bin\service.bat. What exactly happens if you run this file?
 
 Thanks,
 
 Oliver Schwerk
 
 
 flexis AG
 Schockenriedstraße 46
 D-70565 Stuttgart
 
 Telefon:  +49 (711) 78 23 80 - 0
 Telefax:  +49 (711) 78 23 80 - 78
 E-Mail:   oliver.schw...@flexis.com
 www.flexis.de
 
 --
 flexis AG
 Handelsregister Stuttgart, HRB 21229
 Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
 Reisch
 Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
  -Original Message-
  From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
  Sent: Mittwoch, 22. September 2010 12:57
  To: users@tomcat.apache.org
  Subject: Can't install tomcat as a service on windows
 
  Hello,
 
 
 
  I am trying to install apache-tomcat-6.0.13 as a service on my
 machine
  but despite trying various suggestions from different forums (copying
  MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
  variables are set correctly etc) I still cannot get it to install.
 
 
 
  I am using Windows XP and Java 1.6.0_06.
 
 
 
  I would really appreciate some help on this as I'm all out of ideas.
 
 
 
  Thanks.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat not listening on specified port

2010-09-22 Thread Garg, Saman
Hi All,

 

I am having a very strange issue wherein after starting the tomcat
instance, it doesn't show any errors and also doesn't listen on port
(9046) specified in server.xml as it doesn't list this port on using
netstat command. But similar thing is working for other tomcat
instance which is running on port 9045 on the same machine. I have
verified there is no other service running on port 9046 so this port is
ok to use. Could anybody please help?

 

Thanks



How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
 

 

Hi , 

I am working on a monitoring system to find out hung tomcat/apache
processes . 

By this I mean if the PID exists and still the apache / tomcat is not
responding that die to memory leak or variety of other reasons . Is
their a tool to find this .

 

Regards 

 

Shashank 



Re: Tomcat not listening on specified port

2010-09-22 Thread Darryl Lewis
Try using another machine and :
telnet {server} 9045
and
telnet {server} 9046

You should get a response.

You can also try
lsof -i :9045

To see if tomcat has opened that port.

You might not the port opened in IPTABLES

The file the firewall outputs its logs to is usually either /var/log/syslog or 
/var/log/messages. In order to find out which one, you can do
grep -q Packet log /var/log/syslog  echo yes
If it outputs yes then it is /var/log/syslog, if it outputs nothing it is 
most probably /var/log/messages. You can confirm with
grep -q Packet log /var/log/messages  echo yes



On 22/09/10 9:55 PM, Garg, Saman saman_g...@intuit.com wrote:

Hi All,



I am having a very strange issue wherein after starting the tomcat
instance, it doesn't show any errors and also doesn't listen on port
(9046) specified in server.xml as it doesn't list this port on using
netstat command. But similar thing is working for other tomcat
instance which is running on port 9045 on the same machine. I have
verified there is no other service running on port 9046 so this port is
ok to use. Could anybody please help?



Thanks




Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Darryl Lewis
In my experience, the PID can still exist of tomcat but a Java heap crash has 
stopped it responding.

Checking a PID will not check if the application is responding.

You're better to do some sort of end to end monitoring


On 22/09/10 10:03 PM, Mendiratta, Shashank shashank_mendira...@intuit.com 
wrote:





Hi ,

I am working on a monitoring system to find out hung tomcat/apache
processes .

By this I mean if the PID exists and still the apache / tomcat is not
responding that die to memory leak or variety of other reasons . Is
their a tool to find this .



Regards



Shashank




RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
Hi Darryl,

Yes This is the same problem I am facing. Sorry  I am kind of new to it
but can you tell me what kind of end to end monitoring should I do ?
Regards 

Shashank

-Original Message-
From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au] 
Sent: Wednesday, September 22, 2010 5:38 PM
To: Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

In my experience, the PID can still exist of tomcat but a Java heap
crash has stopped it responding.

Checking a PID will not check if the application is responding.

You're better to do some sort of end to end monitoring


On 22/09/10 10:03 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:





Hi ,

I am working on a monitoring system to find out hung tomcat/apache
processes .

By this I mean if the PID exists and still the apache / tomcat is not
responding that due to memory leak or variety of other reasons . Is
their a tool to find this .



Regards



Shashank



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Darryl Lewis
It depends on the application you are running, but a simple test would be to 
access the webpage (ensuring part of it is served from Tomcat, not apache) and 
check for an expected response.

For example, a simple jsp page that prints out ok
You can then do a wget, and check for that string.

Cheers.

On 22/09/10 10:13 PM, Mendiratta, Shashank shashank_mendira...@intuit.com 
wrote:

Hi Darryl,

Yes This is the same problem I am facing. Sorry  I am kind of new to it
but can you tell me what kind of end to end monitoring should I do ?
Regards

Shashank

-Original Message-
From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au]
Sent: Wednesday, September 22, 2010 5:38 PM
To: Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

In my experience, the PID can still exist of tomcat but a Java heap
crash has stopped it responding.

Checking a PID will not check if the application is responding.

You're better to do some sort of end to end monitoring


On 22/09/10 10:03 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:





Hi ,

I am working on a monitoring system to find out hung tomcat/apache
processes .

By this I mean if the PID exists and still the apache / tomcat is not
responding that due to memory leak or variety of other reasons . Is
their a tool to find this .



Regards



Shashank





RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
HI Darryl ,

Thanx , about that here the outbound port 80 is blocked so we cannot
wget , moreover this wont solve the problem as to why the the services
are getting hung. 

Well I had an idea, please critic it. Why not monitor the server.log
file if we get some kind of error. We send an alert and then restart the
service . Befire that we have to make a repository of types of error
that can occur 

Please do comment 

 

Regards 

Shashank

 

From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au] 
Sent: Wednesday, September 22, 2010 5:54 PM
To: Mendiratta, Shashank; Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

 

It depends on the application you are running, but a simple test would
be to access the webpage (ensuring part of it is served from Tomcat, not
apache) and check for an expected response.

For example, a simple jsp page that prints out ok
You can then do a wget, and check for that string.

Cheers.

On 22/09/10 10:13 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:

Hi Darryl,

Yes This is the same problem I am facing. Sorry  I am kind of new to it
but can you tell me what kind of end to end monitoring should I do ?
Regards

Shashank

-Original Message-
From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au]
Sent: Wednesday, September 22, 2010 5:38 PM
To: Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

In my experience, the PID can still exist of tomcat but a Java heap
crash has stopped it responding.

Checking a PID will not check if the application is responding.

You're better to do some sort of end to end monitoring


On 22/09/10 10:03 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:





Hi ,

I am working on a monitoring system to find out hung tomcat/apache
processes .

By this I mean if the PID exists and still the apache / tomcat is not
responding that due to memory leak or variety of other reasons . Is
their a tool to find this .



Regards



Shashank






Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Darryl Lewis
Are you trying to monitor from the same computer that tomcat is running on? 
That's not a good idea. What happens if the entire system crashes...you won't 
get any data/alerts. End to end uses another machine to monitor the first.
You could monitor catalina.out for errors, but I don't think you'll capture 
every possibility.
What would happen if the system stops serving pages (or serves them slow)? That 
won't show in the logs.

What port is your application running on? You can use (from another machine) 
wget {servername}:8080.



On 22/09/10 10:30 PM, Mendiratta, Shashank shashank_mendira...@intuit.com 
wrote:

HI Darryl ,
Thanx , about that here the outbound port 80 is blocked so we cannot wget , 
moreover this wont solve the problem as to why the the services are getting 
hung.
Well I had an idea, please critic it. Why not monitor the server.log file if we 
get some kind of error. We send an alert and then restart the service . Befire 
that we have to make a repository of types of error that can occur
Please do comment

Regards
Shashank


From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au]
Sent: Wednesday, September 22, 2010 5:54 PM
To: Mendiratta, Shashank; Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

It depends on the application you are running, but a simple test would be to 
access the webpage (ensuring part of it is served from Tomcat, not apache) and 
check for an expected response.

For example, a simple jsp page that prints out ok
You can then do a wget, and check for that string.

Cheers.

On 22/09/10 10:13 PM, Mendiratta, Shashank shashank_mendira...@intuit.com 
wrote:
Hi Darryl,

Yes This is the same problem I am facing. Sorry  I am kind of new to it
but can you tell me what kind of end to end monitoring should I do ?
Regards

Shashank

-Original Message-
From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au]
Sent: Wednesday, September 22, 2010 5:38 PM
To: Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

In my experience, the PID can still exist of tomcat but a Java heap
crash has stopped it responding.

Checking a PID will not check if the application is responding.

You're better to do some sort of end to end monitoring


On 22/09/10 10:03 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:





Hi ,

I am working on a monitoring system to find out hung tomcat/apache
processes .

By this I mean if the PID exists and still the apache / tomcat is not
responding that due to memory leak or variety of other reasons . Is
their a tool to find this .



Regards



Shashank





RE: Can't install tomcat as a service on windows

2010-09-22 Thread McElroy Sean
Sorry Oliver I should have said the installation does not contain a service.bat 
file

-Original Message-
From: Oliver Schwerk [mailto:oliver.schw...@flexis.com] 
Sent: 22 September 2010 12:35
To: Tomcat Users List
Subject: RE: Can't install tomcat as a service on windows

Sean,

Did you run this file? What happens? I use 6.0.14, services 
install/uninstall/run/stop without any problems.
1. Open a console so you can see the output of the batch file
2. Navigate to apache-tomcat-6.0.14\bin
3. type service.bat and enter
4. See the output. Service name should be tomcat6



Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 13:05
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Hi Oliver,
 
 I'm using 6.0.13 and this installation does contain a service.bat file.
 
 Thanks,
 
 Sean
 
 -Original Message-
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
 Sent: 22 September 2010 12:03
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sean,
 
 I did it several time successfully using apache-tomcat-
 6.0.14\bin\service.bat. What exactly happens if you run this file?
 
 Thanks,
 
 Oliver Schwerk
 
 
 flexis AG
 Schockenriedstraße 46
 D-70565 Stuttgart
 
 Telefon:  +49 (711) 78 23 80 - 0
 Telefax:  +49 (711) 78 23 80 - 78
 E-Mail:   oliver.schw...@flexis.com
 www.flexis.de
 
 --
 flexis AG
 Handelsregister Stuttgart, HRB 21229
 Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
 Reisch
 Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
  -Original Message-
  From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
  Sent: Mittwoch, 22. September 2010 12:57
  To: users@tomcat.apache.org
  Subject: Can't install tomcat as a service on windows
 
  Hello,
 
 
 
  I am trying to install apache-tomcat-6.0.13 as a service on my
 machine
  but despite trying various suggestions from different forums (copying
  MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
  variables are set correctly etc) I still cannot get it to install.
 
 
 
  I am using Windows XP and Java 1.6.0_06.
 
 
 
  I would really appreciate some help on this as I'm all out of ideas.
 
 
 
  Thanks.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Can't install tomcat as a service on windows

2010-09-22 Thread McElroy Sean
Hi Hari, I have done this, but it did not solve my problem

-Original Message-
From: hariprasad [mailto:haribach...@gmail.com] 
Sent: 22 September 2010 12:07
To: Tomcat Users List
Subject: Re: Can't install tomcat as a service on windows

FYI



follow below steps to install tomcat in windows.


note: plz install java before installing tomcat.

1. double click  x.exe file.
2. when it prompts please provide your jre details..
3.then..next..finish.

if u enable check boxes before installation complete ..it tomcat
already in
running mode.


open your browser http://localhost:8080;

u click get ...tomcat admin home page.



Hari
+91-9538973827
IBM(india)Pvt Ltd.
www.hari-adda.blogspot.com



On Wed, Sep 22, 2010 at 4:26 PM, McElroy Sean
sean.mcel...@uk.fujitsu.comwrote:

 Hello,



 I am trying to install apache-tomcat-6.0.13 as a service on my machine
 but despite trying various suggestions from different forums (copying
 MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
 variables are set correctly etc) I still cannot get it to install.



 I am using Windows XP and Java 1.6.0_06.



 I would really appreciate some help on this as I'm all out of ideas.



 Thanks.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Can't install tomcat as a service on windows

2010-09-22 Thread Oliver Schwerk
Sean,

Try to use 6.0.14, it is pretty stable, I use it for years now and it contains 
service.bat.

Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 14:50
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sorry Oliver I should have said the installation does not contain a
 service.bat file
 
 -Original Message-
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
 Sent: 22 September 2010 12:35
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sean,
 
 Did you run this file? What happens? I use 6.0.14, services
 install/uninstall/run/stop without any problems.
 1. Open a console so you can see the output of the batch file
 2. Navigate to apache-tomcat-6.0.14\bin
 3. type service.bat and enter
 4. See the output. Service name should be tomcat6
 
 
 
 Oliver Schwerk
 
 
 flexis AG
 Schockenriedstraße 46
 D-70565 Stuttgart
 
 Telefon:  +49 (711) 78 23 80 - 0
 Telefax:  +49 (711) 78 23 80 - 78
 E-Mail:   oliver.schw...@flexis.com
 www.flexis.de
 
 --
 flexis AG
 Handelsregister Stuttgart, HRB 21229
 Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
 Reisch
 Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
  -Original Message-
  From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
  Sent: Mittwoch, 22. September 2010 13:05
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Hi Oliver,
 
  I'm using 6.0.13 and this installation does contain a service.bat
 file.
 
  Thanks,
 
  Sean
 
  -Original Message-
  From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
  Sent: 22 September 2010 12:03
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Sean,
 
  I did it several time successfully using apache-tomcat-
  6.0.14\bin\service.bat. What exactly happens if you run this file?
 
  Thanks,
 
  Oliver Schwerk
 
 
  flexis AG
  Schockenriedstraße 46
  D-70565 Stuttgart
 
  Telefon:+49 (711) 78 23 80 - 0
  Telefax:+49 (711) 78 23 80 - 78
  E-Mail: oliver.schw...@flexis.com
  www.flexis.de
 
  --
  flexis AG
  Handelsregister Stuttgart, HRB 21229
  Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
  Reisch
  Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
   -Original Message-
   From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
   Sent: Mittwoch, 22. September 2010 12:57
   To: users@tomcat.apache.org
   Subject: Can't install tomcat as a service on windows
  
   Hello,
  
  
  
   I am trying to install apache-tomcat-6.0.13 as a service on my
  machine
   but despite trying various suggestions from different forums
 (copying
   MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
   variables are set correctly etc) I still cannot get it to install.
  
  
  
   I am using Windows XP and Java 1.6.0_06.
  
  
  
   I would really appreciate some help on this as I'm all out of
 ideas.
  
  
  
   Thanks.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
I get you point . well we are using dynatrace to keep a track on how
slow the server is serving pages and for the entire system metrics
monitoring we are using monit and both are done externally .  The
firewall has closed all the outbound ports so wget is not possible.

Its just that we have to monitor the JVM so that it does not hang but
yes you are right with dynatrace just has a monitoring window and it
does not restart the service. So I have to come up with a cript also
which how the system is serving pages if its to slow . then to restart
the JVM .

 

From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au] 
Sent: Wednesday, September 22, 2010 6:12 PM
To: Mendiratta, Shashank; Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

 

Are you trying to monitor from the same computer that tomcat is running
on? That's not a good idea. What happens if the entire system
crashes...you won't get any data/alerts. End to end uses another machine
to monitor the first.
You could monitor catalina.out for errors, but I don't think you'll
capture every possibility.
What would happen if the system stops serving pages (or serves them
slow)? That won't show in the logs.

What port is your application running on? You can use (from another
machine) wget {servername}:8080.
 


On 22/09/10 10:30 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:

HI Darryl ,
Thanx , about that here the outbound port 80 is blocked so we cannot
wget , moreover this wont solve the problem as to why the the services
are getting hung. 
Well I had an idea, please critic it. Why not monitor the server.log
file if we get some kind of error. We send an alert and then restart the
service . Befire that we have to make a repository of types of error
that can occur 
Please do comment 
 
Regards 
Shashank
 

From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au] 
Sent: Wednesday, September 22, 2010 5:54 PM
To: Mendiratta, Shashank; Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

It depends on the application you are running, but a simple test would
be to access the webpage (ensuring part of it is served from Tomcat, not
apache) and check for an expected response.

For example, a simple jsp page that prints out ok
You can then do a wget, and check for that string.

Cheers.

On 22/09/10 10:13 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:
Hi Darryl,

Yes This is the same problem I am facing. Sorry  I am kind of new to it
but can you tell me what kind of end to end monitoring should I do ?
Regards

Shashank

-Original Message-
From: Darryl Lewis [mailto:darryl.le...@unsw.edu.au]
Sent: Wednesday, September 22, 2010 5:38 PM
To: Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

In my experience, the PID can still exist of tomcat but a Java heap
crash has stopped it responding.

Checking a PID will not check if the application is responding.

You're better to do some sort of end to end monitoring


On 22/09/10 10:03 PM, Mendiratta, Shashank
shashank_mendira...@intuit.com wrote:





Hi ,

I am working on a monitoring system to find out hung tomcat/apache
processes .

By this I mean if the PID exists and still the apache / tomcat is not
responding that due to memory leak or variety of other reasons . Is
their a tool to find this .



Regards



Shashank






RE: Can't install tomcat as a service on windows

2010-09-22 Thread McElroy Sean
Will do. I've been using the 6.0.13 for some time, and haven't had any 
problems... until now.

-Original Message-
From: Oliver Schwerk [mailto:oliver.schw...@flexis.com] 
Sent: 22 September 2010 13:54
To: Tomcat Users List
Subject: RE: Can't install tomcat as a service on windows

Sean,

Try to use 6.0.14, it is pretty stable, I use it for years now and it contains 
service.bat.

Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 14:50
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sorry Oliver I should have said the installation does not contain a
 service.bat file
 
 -Original Message-
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
 Sent: 22 September 2010 12:35
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sean,
 
 Did you run this file? What happens? I use 6.0.14, services
 install/uninstall/run/stop without any problems.
 1. Open a console so you can see the output of the batch file
 2. Navigate to apache-tomcat-6.0.14\bin
 3. type service.bat and enter
 4. See the output. Service name should be tomcat6
 
 
 
 Oliver Schwerk
 
 
 flexis AG
 Schockenriedstraße 46
 D-70565 Stuttgart
 
 Telefon:  +49 (711) 78 23 80 - 0
 Telefax:  +49 (711) 78 23 80 - 78
 E-Mail:   oliver.schw...@flexis.com
 www.flexis.de
 
 --
 flexis AG
 Handelsregister Stuttgart, HRB 21229
 Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
 Reisch
 Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
  -Original Message-
  From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
  Sent: Mittwoch, 22. September 2010 13:05
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Hi Oliver,
 
  I'm using 6.0.13 and this installation does contain a service.bat
 file.
 
  Thanks,
 
  Sean
 
  -Original Message-
  From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
  Sent: 22 September 2010 12:03
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Sean,
 
  I did it several time successfully using apache-tomcat-
  6.0.14\bin\service.bat. What exactly happens if you run this file?
 
  Thanks,
 
  Oliver Schwerk
 
 
  flexis AG
  Schockenriedstraße 46
  D-70565 Stuttgart
 
  Telefon:+49 (711) 78 23 80 - 0
  Telefax:+49 (711) 78 23 80 - 78
  E-Mail: oliver.schw...@flexis.com
  www.flexis.de
 
  --
  flexis AG
  Handelsregister Stuttgart, HRB 21229
  Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
  Reisch
  Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
   -Original Message-
   From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
   Sent: Mittwoch, 22. September 2010 12:57
   To: users@tomcat.apache.org
   Subject: Can't install tomcat as a service on windows
  
   Hello,
  
  
  
   I am trying to install apache-tomcat-6.0.13 as a service on my
  machine
   but despite trying various suggestions from different forums
 (copying
   MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
   variables are set correctly etc) I still cannot get it to install.
  
  
  
   I am using Windows XP and Java 1.6.0_06.
  
  
  
   I would really appreciate some help on this as I'm all out of
 ideas.
  
  
  
   Thanks.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: 

RE: Can't install tomcat as a service on windows

2010-09-22 Thread Caldarale, Charles R
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com] 
 Subject: RE: Can't install tomcat as a service on windows

 I have done this, but it did not solve my problem

1) Is there any particular reason you're mucking about with a version of Tomcat 
that's 3.5 years old?  Move to 6.0.29 and try again.

2) Use the .zip download, not the .exe, to get the various .bat scripts.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Can't install tomcat as a service on windows

2010-09-22 Thread Caldarale, Charles R
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com] 
 Subject: RE: Can't install tomcat as a service on windows

 Try to use 6.0.14, it is pretty stable

You must be joking.  Move to a current version - with many, many security and 
stability fixes - rather than one that's three years old.

 it contains service.bat

So does every .zip download of every Tomcat version; the .exe downloads do not 
have the .bat files.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Can't install tomcat as a service on windows

2010-09-22 Thread McElroy Sean
I'm using this because I am providing support to a project that uses
6.0.13.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: 22 September 2010 13:56
To: Tomcat Users List
Subject: RE: Can't install tomcat as a service on windows

 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com] 
 Subject: RE: Can't install tomcat as a service on windows

 I have done this, but it did not solve my problem

1) Is there any particular reason you're mucking about with a version of
Tomcat that's 3.5 years old?  Move to 6.0.29 and try again.

2) Use the .zip download, not the .exe, to get the various .bat scripts.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Issue with logging in to Tomcat 6.0

2010-09-22 Thread Martin O'Shea
Hello

I have a Java / Tomcat application which creates a cookie for a user when
they visit the homepage. This cookie is used to recognize that user on
subsequent visits and generate recent lists. These are working well and so
far without any type of authentication of the user using Tomcat itself.
Which brings me to my issue.

On certain pages of my application, users have the option to post comments
or save content created, and of course to maintain their profiles. So what
I'm trying to do is have users login on these pages so that the relevant
operation can be carried out, e.g. if posting a comment, the user must first
login from the current page which is not specifically intended as a login
page, rather it displays content created. Or to access a profile page, login
must have occurred. I can then record the login in a session variable.

But when I try to login to Tomcat, I am given message 'Invalid direct
reference to form login page' but do not quite see why. In my pages, I'm
using login code provided with Tomcat, i.e.:

div id = login

form method = POST action='%=
response.encodeURL(j_security_check) %' 

table border=0

tr

th align = rightUsername/th

td align = leftinput type=text
name=j_username/td

/tr

tr

th align = rightPassword/th

td align = leftinput type=password
name=j_password/td

/tr

tr

td align = rightinput type=submit value=Log
In/td

td align = leftinput type=reset/td

/tr

  /table

/form

/div

I've also tried using a default login page with an HTML iframe but the same
message occurs. What I want is for the login to work from the current above,
authenticate the user, and then return the user to the page. 

Is anyone able to advise? Do I need to use realms in Tomcat or write my own
servlet to read the user table of the database?

I'm using Tomcat 6.X.

Thanks

Mr Morgan.

 



RE: Can't install tomcat as a service on windows

2010-09-22 Thread McElroy Sean
Hi Oliver,

I downloaded the zip version of 6.0.13 and managed to get it up and running 
using the bat files that come with it.

Thanks,
Sean

-Original Message-
From: Oliver Schwerk [mailto:oliver.schw...@flexis.com] 
Sent: 22 September 2010 13:54
To: Tomcat Users List
Subject: RE: Can't install tomcat as a service on windows

Sean,

Try to use 6.0.14, it is pretty stable, I use it for years now and it contains 
service.bat.

Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 14:50
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sorry Oliver I should have said the installation does not contain a
 service.bat file
 
 -Original Message-
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
 Sent: 22 September 2010 12:35
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sean,
 
 Did you run this file? What happens? I use 6.0.14, services
 install/uninstall/run/stop without any problems.
 1. Open a console so you can see the output of the batch file
 2. Navigate to apache-tomcat-6.0.14\bin
 3. type service.bat and enter
 4. See the output. Service name should be tomcat6
 
 
 
 Oliver Schwerk
 
 
 flexis AG
 Schockenriedstraße 46
 D-70565 Stuttgart
 
 Telefon:  +49 (711) 78 23 80 - 0
 Telefax:  +49 (711) 78 23 80 - 78
 E-Mail:   oliver.schw...@flexis.com
 www.flexis.de
 
 --
 flexis AG
 Handelsregister Stuttgart, HRB 21229
 Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
 Reisch
 Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
  -Original Message-
  From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
  Sent: Mittwoch, 22. September 2010 13:05
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Hi Oliver,
 
  I'm using 6.0.13 and this installation does contain a service.bat
 file.
 
  Thanks,
 
  Sean
 
  -Original Message-
  From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
  Sent: 22 September 2010 12:03
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Sean,
 
  I did it several time successfully using apache-tomcat-
  6.0.14\bin\service.bat. What exactly happens if you run this file?
 
  Thanks,
 
  Oliver Schwerk
 
 
  flexis AG
  Schockenriedstraße 46
  D-70565 Stuttgart
 
  Telefon:+49 (711) 78 23 80 - 0
  Telefax:+49 (711) 78 23 80 - 78
  E-Mail: oliver.schw...@flexis.com
  www.flexis.de
 
  --
  flexis AG
  Handelsregister Stuttgart, HRB 21229
  Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
  Reisch
  Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
   -Original Message-
   From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
   Sent: Mittwoch, 22. September 2010 12:57
   To: users@tomcat.apache.org
   Subject: Can't install tomcat as a service on windows
  
   Hello,
  
  
  
   I am trying to install apache-tomcat-6.0.13 as a service on my
  machine
   but despite trying various suggestions from different forums
 (copying
   MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
   variables are set correctly etc) I still cannot get it to install.
  
  
  
   I am using Windows XP and Java 1.6.0_06.
  
  
  
   I would really appreciate some help on this as I'm all out of
 ideas.
  
  
  
   Thanks.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: 

RE: Can't install tomcat as a service on windows

2010-09-22 Thread Oliver Schwerk
That's great!

Oliver Schwerk


flexis AG
Schockenriedstraße 46
D-70565 Stuttgart

Telefon:+49 (711) 78 23 80 - 0
Telefax:+49 (711) 78 23 80 - 78
E-Mail: oliver.schw...@flexis.com
www.flexis.de

--
flexis AG
Handelsregister Stuttgart, HRB 21229
Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver Reisch
Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann



 -Original Message-
 From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
 Sent: Mittwoch, 22. September 2010 15:35
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Hi Oliver,
 
 I downloaded the zip version of 6.0.13 and managed to get it up and
 running using the bat files that come with it.
 
 Thanks,
 Sean
 
 -Original Message-
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
 Sent: 22 September 2010 13:54
 To: Tomcat Users List
 Subject: RE: Can't install tomcat as a service on windows
 
 Sean,
 
 Try to use 6.0.14, it is pretty stable, I use it for years now and it
 contains service.bat.
 
 Oliver Schwerk
 
 
 flexis AG
 Schockenriedstraße 46
 D-70565 Stuttgart
 
 Telefon:  +49 (711) 78 23 80 - 0
 Telefax:  +49 (711) 78 23 80 - 78
 E-Mail:   oliver.schw...@flexis.com
 www.flexis.de
 
 --
 flexis AG
 Handelsregister Stuttgart, HRB 21229
 Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
 Reisch
 Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
  -Original Message-
  From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
  Sent: Mittwoch, 22. September 2010 14:50
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Sorry Oliver I should have said the installation does not contain a
  service.bat file
 
  -Original Message-
  From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
  Sent: 22 September 2010 12:35
  To: Tomcat Users List
  Subject: RE: Can't install tomcat as a service on windows
 
  Sean,
 
  Did you run this file? What happens? I use 6.0.14, services
  install/uninstall/run/stop without any problems.
  1. Open a console so you can see the output of the batch file
  2. Navigate to apache-tomcat-6.0.14\bin
  3. type service.bat and enter
  4. See the output. Service name should be tomcat6
 
 
 
  Oliver Schwerk
 
 
  flexis AG
  Schockenriedstraße 46
  D-70565 Stuttgart
 
  Telefon:+49 (711) 78 23 80 - 0
  Telefax:+49 (711) 78 23 80 - 78
  E-Mail: oliver.schw...@flexis.com
  www.flexis.de
 
  --
  flexis AG
  Handelsregister Stuttgart, HRB 21229
  Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
  Reisch
  Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
 
 
 
   -Original Message-
   From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
   Sent: Mittwoch, 22. September 2010 13:05
   To: Tomcat Users List
   Subject: RE: Can't install tomcat as a service on windows
  
   Hi Oliver,
  
   I'm using 6.0.13 and this installation does contain a service.bat
  file.
  
   Thanks,
  
   Sean
  
   -Original Message-
   From: Oliver Schwerk [mailto:oliver.schw...@flexis.com]
   Sent: 22 September 2010 12:03
   To: Tomcat Users List
   Subject: RE: Can't install tomcat as a service on windows
  
   Sean,
  
   I did it several time successfully using apache-tomcat-
   6.0.14\bin\service.bat. What exactly happens if you run this file?
  
   Thanks,
  
   Oliver Schwerk
  
  
   flexis AG
   Schockenriedstraße 46
   D-70565 Stuttgart
  
   Telefon:  +49 (711) 78 23 80 - 0
   Telefax:  +49 (711) 78 23 80 - 78
   E-Mail:   oliver.schw...@flexis.com
   www.flexis.de
  
   --
   flexis AG
   Handelsregister Stuttgart, HRB 21229
   Vorstand: Philipp Beisswenger (Vorsitzender), Benno Ziller, Oliver
   Reisch
   Vorsitzender des Aufsichtsrats: Dr. Rolf Aschermann
  
  
  
-Original Message-
From: McElroy Sean [mailto:sean.mcel...@uk.fujitsu.com]
Sent: Mittwoch, 22. September 2010 12:57
To: users@tomcat.apache.org
Subject: Can't install tomcat as a service on windows
   
Hello,
   
   
   
I am trying to install apache-tomcat-6.0.13 as a service on my
   machine
but despite trying various suggestions from different forums
  (copying
MSVCR71.dll to various folders, making sure my JAVA_HOME and Path
variables are set correctly etc) I still cannot get it to
 install.
   
   
   
I am using Windows XP and Java 1.6.0_06.
   
   
   
I would really appreciate some help on this as I'm all out of
  ideas.
   
   
   
Thanks.
  
  
   ---
 --
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  
  
   ---
 --
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: How to reproduce tomcat security vulnerabilities

2010-09-22 Thread Mark Thomas
On 21/09/2010 19:13, viola lu wrote:
 Can someone give some hints?

Take a look at the security pages.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Mark Thomas
On 22/09/2010 06:27, Martin O'Shea wrote:
 But when I try to login to Tomcat, I am given message 'Invalid direct
 reference to form login page' but do not quite see why.

Because you haven't told Tomcat that those pages need to be protected by
authentication. Do that, and Tomcat will handle the whole process for you.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Martin O'Shea
 Because you haven't told Tomcat that those pages need to be protected by
 authentication. Do that, and Tomcat will handle the whole process for you.

But won't the authentication apply to the whole page in question? I'm only
looking to have a user log in when they seek to do something, like post a
comment, on the page.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 22 Sep 2010 15 43
To: Tomcat Users List
Subject: Re: Issue with logging in to Tomcat 6.0

On 22/09/2010 06:27, Martin O'Shea wrote:
 But when I try to login to Tomcat, I am given message 'Invalid direct
 reference to form login page' but do not quite see why.

Because you haven't told Tomcat that those pages need to be protected by
authentication. Do that, and Tomcat will handle the whole process for you.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Mark Thomas
On 22/09/2010 07:50, Martin O'Shea wrote:
 Because you haven't told Tomcat that those pages need to be protected by
 authentication. Do that, and Tomcat will handle the whole process for you.
 
 But won't the authentication apply to the whole page in question? I'm only
 looking to have a user log in when they seek to do something, like post a
 comment, on the page.

Then protect the URL that the comment is POSTed to.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Martin O'Shea
It appears to be working. Many thanks.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 22 Sep 2010 16 06
To: Tomcat Users List
Subject: Re: Issue with logging in to Tomcat 6.0

On 22/09/2010 07:50, Martin O'Shea wrote:
 Because you haven't told Tomcat that those pages need to be protected by
 authentication. Do that, and Tomcat will handle the whole process for
you.
 
 But won't the authentication apply to the whole page in question? I'm only
 looking to have a user log in when they seek to do something, like post a
 comment, on the page.

Then protect the URL that the comment is POSTed to.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 6.0.26, session-timeout gets no respect

2010-09-22 Thread Eero Nevalainen
I've got an exploded web app running on a Tomcat 6.0.26 server on
Debian Lenny, and I've run into a really strange problem with trying
to up the session timeout into something like 120 minutes from the
default 30... regardless of what it says in the application's web.xml,
or the server's conf/web.xml, the timeout is always 30. This is the
case also when the timeout element does not exist in either of the two
files (so the value should come just from the one which has it
defined).

I'm really being defeated by this... any pointers for further investigations?

-- 
Eero Nevalainen (enevalai...@gmail.com)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat not listening on specified port

2010-09-22 Thread Pid
On 22/09/2010 12:55, Garg, Saman wrote:
 Hi All,

Exactly which Tomcat, JVM, OS versions are you using?

 I am having a very strange issue wherein after starting the tomcat
 instance, it doesn't show any errors and also doesn't listen on port
 (9046)

How are you starting the instance?  Which script are you using?

What happens if you stop, completely clear the log files for that
instance, and start up again?

Which logs do you have?

What is in them?


p

 specified in server.xml as it doesn't list this port on using
 netstat command. But similar thing is working for other tomcat
 instance which is running on port 9045 on the same machine. I have
 verified there is no other service running on port 9046 so this port is
 ok to use. Could anybody please help?
 
  
 
 Thanks
 
 



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 13:08, Darryl Lewis wrote:
 In my experience, the PID can still exist of tomcat but a Java heap crash has 
 stopped it responding.
 
 Checking a PID will not check if the application is responding.

Obviously, I exist whether Tomcat is running or not.


p




0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 13:54, Mendiratta, Shashank wrote:
 So I have to come up with a cript also
 which how the system is serving pages if its to slow . then to restart
 the JVM .

Really?  That sounds, well, a little drastic...


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Can not deploy the grail project

2010-09-22 Thread Yue Yuanyuan
Hi,
  I delete the original ROOT directory and deploy my ROOT.war. But after
this I can not deploy any grail project anymore. What is this problem?
   Thank you.
Best,
Gavin


Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 13:03, Mendiratta, Shashank wrote:
 Hi , 
 
 I am working on a monitoring system to find out hung tomcat/apache
 processes. 

Instead of looking for problems so you can restart the JVM, trying
looking at the actual problem and fixing it, then you won't have to
invent crazy solutions.


 By this I mean if the PID exists and still the apache / tomcat is not
 responding that die to memory leak or variety of other reasons . 

The PID may still exist, even if the process is dead.


 Is their a tool to find this .

There are lots of tools.  It depends on whether you want to pay for one
or if you're trying to get this for free.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Tomcat 6.0.26, session-timeout gets no respect

2010-09-22 Thread Pid
On 22/09/2010 17:16, Eero Nevalainen wrote:
 I've got an exploded web app running on a Tomcat 6.0.26 server on
 Debian Lenny, and I've run into a really strange problem with trying
 to up the session timeout into something like 120 minutes from the
 default 30... regardless of what it says in the application's web.xml,
 or the server's conf/web.xml, the timeout is always 30. This is the
 case also when the timeout element does not exist in either of the two
 files (so the value should come just from the one which has it
 defined).
 
 I'm really being defeated by this... any pointers for further investigations?

Is the application setting it programmatically?


p



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Can not deploy the grail project

2010-09-22 Thread Pid
On 22/09/2010 17:22, Yue Yuanyuan wrote:
 Hi,
   I delete the original ROOT directory and deploy my ROOT.war. But after
 this I can not deploy any grail project anymore. What is this problem?
Thank you.
 Best,


Is that a riddle?

If not:

 http://www.catb.org/esr/faqs/smart-questions.html


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Can't install tomcat as a service on windows

2010-09-22 Thread Pid
On 22/09/2010 13:58, Caldarale, Charles R wrote:
 From: Oliver Schwerk [mailto:oliver.schw...@flexis.com] 
 Subject: RE: Can't install tomcat as a service on windows
 
 Try to use 6.0.14, it is pretty stable

!

 You must be joking.  Move to a current version - with many, many security and 
 stability fixes - rather than one that's three years old.

++1

zeesh.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


RE: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Mendiratta, Shashank
Hi .. can you share the script ??

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Wednesday, September 22, 2010 9:52 PM
To: Tomcat Users List
Subject: Re: How ot monitor hung tomcat/apache processes?

On 22/09/2010 13:54, Mendiratta, Shashank wrote:
 So I have to come up with a cript also which how the system is serving

 pages if its to slow . then to restart the JVM .

Really?  That sounds, well, a little drastic...


p

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Can't install tomcat as a service on windows

2010-09-22 Thread Pid
On 22/09/2010 14:00, McElroy Sean wrote:
 I'm using this because I am providing support to a project that uses
 6.0.13.

On the upside, as you run into bugs that have already been patched in
later versions of Tomcat, you can just look in Bugzilla for the fixes.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Can not deploy the grail project

2010-09-22 Thread Yue Yuanyuan
I delete the ROOT directory under /webapp. Then I deployed one grail project
which is package to ROOT.war through HTMLmanager. This step works fine.
But when I want to deploy more project, like abc.war through HTMLmanager.
It always fails and cannot run .


On Wed, Sep 22, 2010 at 12:27 PM, Pid p...@pidster.com wrote:

 On 22/09/2010 17:22, Yue Yuanyuan wrote:
  Hi,
I delete the original ROOT directory and deploy my ROOT.war. But after
  this I can not deploy any grail project anymore. What is this problem?
 Thank you.
  Best,


 Is that a riddle?

 If not:

  http://www.catb.org/esr/faqs/smart-questions.html


 p



Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Pid
On 22/09/2010 17:29, Mendiratta, Shashank wrote:
 Hi .. can you share the script ??

Which script?  You wrote it, according to the below:

 On 22/09/2010 13:54, Mendiratta, Shashank wrote:
 So I have to come up with a cript also which how the system is serving
 
 pages if its to slow . then to restart the JVM .

?


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Can not deploy the grail project

2010-09-22 Thread Pid
On 22/09/2010 17:33, Yue Yuanyuan wrote:
 I delete the ROOT directory under /webapp. Then I deployed one grail project
 which is package to ROOT.war through HTMLmanager. This step works fine.
 But when I want to deploy more project, like abc.war through HTMLmanager.
 It always fails and cannot run .

 http://www.catb.org/esr/faqs/smart-questions.html

Hmm.  Tricky.  I wonder what the link above has to say about this sort
of problem, or what's in the log files. Or what your OS is.  Or what
version of Tomcat you're using.  etc.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Can not deploy the grail project

2010-09-22 Thread Yue Yuanyuan
Sep 22, 2010 12:40:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/vazztcaster-0.1] startup failed due to previous errors
Sep 22, 2010 12:40:59 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
SEVERE: A web application registered the JBDC driver [org.hsqldb.jdbcDriver]
but failed to unregister it when the web application was stopped. To prevent
a memory leak, the JDBC Driver has been forcibly unregistered.



This is the log.
It seems this is this problem:
http://jira.codehaus.org/browse/GRAILS-5817

How could I solve it?

On Wed, Sep 22, 2010 at 12:27 PM, Pid p...@pidster.com wrote:

 On 22/09/2010 17:22, Yue Yuanyuan wrote:
  Hi,
I delete the original ROOT directory and deploy my ROOT.war. But after
  this I can not deploy any grail project anymore. What is this problem?
 Thank you.
  Best,


 Is that a riddle?

 If not:

  http://www.catb.org/esr/faqs/smart-questions.html


 p



Re: Can not deploy the grail project

2010-09-22 Thread Yue Yuanyuan
Server version: Apache Tomcat/6.0.26
Server built:   March 11 2010 1923
Server number:  6.0.26.0
OS Name:Linux
OS Version: 2.6.21.7-2.fc8xen
Architecture:   i386
JVM Version:1.6.0_14-b08
JVM Vendor: Sun Microsystems Inc.


CentOS

On Wed, Sep 22, 2010 at 12:42 PM, Pid p...@pidster.com wrote:

 On 22/09/2010 17:33, Yue Yuanyuan wrote:
  I delete the ROOT directory under /webapp. Then I deployed one grail
 project
  which is package to ROOT.war through HTMLmanager. This step works fine.
  But when I want to deploy more project, like abc.war through HTMLmanager.
  It always fails and cannot run .

  http://www.catb.org/esr/faqs/smart-questions.html

 Hmm.  Tricky.  I wonder what the link above has to say about this sort
 of problem, or what's in the log files. Or what your OS is.  Or what
 version of Tomcat you're using.  etc.


 p



Re: Can not deploy the grail project

2010-09-22 Thread Yue Yuanyuan
After I change the grail datasource setting from using hsqldb to postgresql,
this problem has solved

On Wed, Sep 22, 2010 at 12:42 PM, Pid p...@pidster.com wrote:

 On 22/09/2010 17:33, Yue Yuanyuan wrote:
  I delete the ROOT directory under /webapp. Then I deployed one grail
 project
  which is package to ROOT.war through HTMLmanager. This step works fine.
  But when I want to deploy more project, like abc.war through HTMLmanager.
  It always fails and cannot run .

  http://www.catb.org/esr/faqs/smart-questions.html

 Hmm.  Tricky.  I wonder what the link above has to say about this sort
 of problem, or what's in the log files. Or what your OS is.  Or what
 version of Tomcat you're using.  etc.


 p



Outlook 2003and 2010 does not display image when streamed through tomcat

2010-09-22 Thread Campbell, Lance
I am streaming an image through tomcat 6.29.  In a browser the image
looks fine. But in an email in Outlook 2003 and 2010 the image does not
display.  Any thoughts?  

 

System.out.println content:

 

fileSize:80848

contentTypeStr:image/jpeg

 

The file name does have .jpg

 

Code:

 

if (contentTypeStr != null)

  {

resp.setContentType(contentTypeStr);

try

{

File file = new File(filePath);

long fileSize = file.length();

int fileSizeInt = (int)fileSize;

resp.setContentLength(fileSizeInt);

System.out.println(fileSize: + fileSizeInt);

System.out.println(contentTypeStr: +
contentTypeStr);

}

catch(Exception e)

{

}

  }

  //

  InputStream is =
FileAssistant.getInputStream(filePath);

  if (is == null)

  {

resp.sendError(404);

return;

  }

  //

  OutputStream out = resp.getOutputStream();

  try

  {

int data = 0;

while ((data = is.read())  -1)

{

  out.write(data);

}

out.flush();

out.close();  

  }

  catch (Exception e)

  {

  }

 

Thanks,

 

Lance Campbell

Software Architect/DBA/Project Manager

Web Services at Public Affairs

217-333-0382

 



RE: Outlook 2003and 2010 does not display image when streamed through tomcat

2010-09-22 Thread Caldarale, Charles R
 From: Campbell, Lance [mailto:la...@illinois.edu] 
 Subject: Outlook 2003and 2010 does not display image when streamed through 
 tomcat

 I am streaming an image through tomcat 6.29.  In a browser 
 the image looks fine. But in an email in Outlook 2003 and 
 2010 the image does not display.  Any thoughts?  

Don't use Outlook?  (Which I say while forced to use it myself by corporate 
requirements.)

There's an option for Outlook to show embedded images and it may be locally or 
globally disabled.  Run Wireshark and see if Outlook even makes a request to 
Tomcat to retrieve the image, or use Tomcat's AccessLogValve to see if the 
request is made.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Client to communicate to SSL WebServices on tomcat

2010-09-22 Thread aravidu

Guys.. need help asap. 
I don't know if this is directly related to tomcat but here is the
situation: 

1. I have deployed web services on tomcat 
2. they listen on a secure port - https://host:port/endpoint/
3. mutual authentication on the server side is established. implies, i have
configured the server to have a truststore  a keystore. keystore contains
server privkey. truststore contains client publickey. 
4. this mutual authentication works via the browser (i mean..if the client
is a browser). 

5. what i want is, i want to test this using a Java client with/without
Spring. Currently it uses spring. How can i do that? I have some code
written already.. but with this, it is not able to connect to the secure
port. if i expose the same webservice on a non-secure port, it works fine. 

So, below listed code works for http but doesn't work for https. When I hit
the https port, it complains like this. It is basically not even able to
send the message because we need to figure out how to accept server
certificate  produce my client certificate. 


-- javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking
https:name
-- javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
-- Exception in thread main javax.xml.ws.WebServiceException: Could not
send Message.


---
// client code.. 
---
public final class Client {

private Client() {
}

public static void main(String args[]) throws Exception {

ClassPathXmlApplicationContext sprcontext = new
ClassPathXmlApplicationContext(
new String[] { client-config.xml });

WebService client = (WebService) sprcontext.getBean(client);

// will build the request here.. 

Response response = client.myOperation(request);
}
}

---
// config file ---
---

beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:jaxws=http://cxf.apache.org/jaxws;
xmlns:http=http://cxf.apache.org/transports/http/configuration;
xsi:schemaLocation=http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws 
http://cxf.apache.org/schema/jaxws.xsd;

bean id=client class=com.mycompany.web.service.WebService
factory-bean=clientFactory factory-method=create /

bean id=clientFactory
class=org.apache.cxf.jaxws.JaxWsProxyFactoryBean
property name=serviceClass
value=com.scivantage.chimera.service.TaxLotsService /
property name=address value=https://host:8081/myapp; /
/bean
/beans
-- 
View this message in context: 
http://old.nabble.com/Client-to-communicate-to-SSL-WebServices-on-tomcat-tp29780497p29780497.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Outlook 2003and 2010 does not display image when streamed through tomcat

2010-09-22 Thread Campbell, Lance
I took the image file that Outlook won't display from Tomcat 6 and
copied it to a public directory on our web server.  I then resent the
email to Outlook using the public web location on apache and it
displayed fine. 

Thanks,

Lance Campbell
Software Architect/DBA/Project Manager
Web Services at Public Affairs
217-333-0382

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, September 22, 2010 1:03 PM
To: Tomcat Users List
Subject: RE: Outlook 2003and 2010 does not display image when streamed
through tomcat

 From: Campbell, Lance [mailto:la...@illinois.edu] 
 Subject: Outlook 2003and 2010 does not display image when streamed
through tomcat

 I am streaming an image through tomcat 6.29.  In a browser 
 the image looks fine. But in an email in Outlook 2003 and 
 2010 the image does not display.  Any thoughts?  

Don't use Outlook?  (Which I say while forced to use it myself by
corporate requirements.)

There's an option for Outlook to show embedded images and it may be
locally or globally disabled.  Run Wireshark and see if Outlook even
makes a request to Tomcat to retrieve the image, or use Tomcat's
AccessLogValve to see if the request is made.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Outlook 2003and 2010 does not display image when streamed through tomcat

2010-09-22 Thread Campbell, Lance
Never Mind.  It was a security issue on our side.  There is no problem.

Thanks,

Lance Campbell
Software Architect/DBA/Project Manager
Web Services at Public Affairs
217-333-0382


-Original Message-
From: Campbell, Lance [mailto:la...@illinois.edu] 
Sent: Wednesday, September 22, 2010 1:08 PM
To: Tomcat Users List
Subject: RE: Outlook 2003and 2010 does not display image when streamed
through tomcat

I took the image file that Outlook won't display from Tomcat 6 and
copied it to a public directory on our web server.  I then resent the
email to Outlook using the public web location on apache and it
displayed fine. 

Thanks,

Lance Campbell
Software Architect/DBA/Project Manager
Web Services at Public Affairs
217-333-0382

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, September 22, 2010 1:03 PM
To: Tomcat Users List
Subject: RE: Outlook 2003and 2010 does not display image when streamed
through tomcat

 From: Campbell, Lance [mailto:la...@illinois.edu] 
 Subject: Outlook 2003and 2010 does not display image when streamed
through tomcat

 I am streaming an image through tomcat 6.29.  In a browser 
 the image looks fine. But in an email in Outlook 2003 and 
 2010 the image does not display.  Any thoughts?  

Don't use Outlook?  (Which I say while forced to use it myself by
corporate requirements.)

There's an option for Outlook to show embedded images and it may be
locally or globally disabled.  Run Wireshark and see if Outlook even
makes a request to Tomcat to retrieve the image, or use Tomcat's
AccessLogValve to see if the request is made.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to reproduce tomcat security vulnerabilities

2010-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Viola,

On 9/21/2010 10:13 PM, viola lu wrote:
 Here is my client:

[snip]

Note that your client can be replaced by this one-liner:

$ wget -S -O - --header='Transfer-Encoding: unsupported' \
   --post-data='test send post' \
   http://localhost:8080/SecurityTomcat/SecurityServlet

It also has the added advantages of not stripping newlines from the
response, and including the response headers in the output.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyaShYACgkQ9CaO5/Lv0PBzFgCeMVSEXNtPhBFe0ae+M3Ip0aOT
6SgAnAihZq7v3w6icGiPeceYFjnAPN21
=LoyH
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Shashank,

On 9/22/2010 8:30 AM, Mendiratta, Shashank wrote:
 Thanx , about that here the outbound port 80 is blocked so we cannot
 wget , moreover this wont solve the problem as to why the the services
 are getting hung. 

Hmm. Can you monitor from the server itself? That's not unusual to do.
Also, connections to localhost:80 usually work even when software-based
firewalls are in place, since the local host is usually considered trusted.

 Well I had an idea, please critic it. Why not monitor the server.log
 file if we get some kind of error. We send an alert and then restart the
 service . Befire that we have to make a repository of types of error
 that can occur 

We have one particularly poorly-written webapp that has a habit of
running out of memory. We have segregated it into it's own Tomcat
instance and actually do scan the log file for errors in the way you
describe.

The script is essentially this:

grep -m 1 OutOfMemoryError ${LOGFILE}  /dev/null

if [ $? == 0 ] ; then

# notify an administrator

fi

It's not particularly elegant, but it gets the job done.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyaS0wACgkQ9CaO5/Lv0PCxXQCgwIlct+hqxxejBAEUAPw8+gXj
EiAAoImkWA55dP3Nw8iuWIqM2P/N7Hvk
=avt1
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Client to communicate to SSL WebServices on tomcat

2010-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

To whom it may concern,

On 9/22/2010 2:05 PM, aravidu wrote:
 I don't know if this is directly related to tomcat

It is not related to Tomcat, but that's okay. Just mark the thread
off-topic using [OT] in the subject as I have done.

 5. what i want is, i want to test this using a Java client with/without
 Spring. Currently it uses spring. How can i do that? I have some code
 written already.. but with this, it is not able to connect to the secure
 port. if i expose the same webservice on a non-secure port, it works fine. 
 
 So, below listed code works for http but doesn't work for https. When I hit
 the https port, it complains like this. It is basically not even able to
 send the message because we need to figure out how to accept server
 certificate  produce my client certificate. 
 
 
 -- javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking
 https:name
 -- javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find
 valid certification path to requested target
 -- Exception in thread main javax.xml.ws.WebServiceException: Could not
 send Message.

This is because you haven't configured the web services client to use
your truststore. Note that Tomcat configures it's own HTTPS listener
with the truststore you set in the Connector. You web service client
ought to provide the same type of configuration.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyaTvAACgkQ9CaO5/Lv0PBNwwCgv87ljYFiSQG9kibcDbKHvxxB
of0AnjBGqOLeLSKGdxFXDXc8+5O2U/Ru
=rwOg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Client to communicate to SSL WebServices on tomcat

2010-09-22 Thread aravidu

but how? this is not a webclient nor is the client running on a webserver.
how can i do this?
i tried giving the client.keystore and client.truststore in VMARGS (of
eclipse) but it wont work. 




Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 To whom it may concern,
 
 On 9/22/2010 2:05 PM, aravidu wrote:
 I don't know if this is directly related to tomcat
 
 It is not related to Tomcat, but that's okay. Just mark the thread
 off-topic using [OT] in the subject as I have done.
 
 5. what i want is, i want to test this using a Java client with/without
 Spring. Currently it uses spring. How can i do that? I have some code
 written already.. but with this, it is not able to connect to the secure
 port. if i expose the same webservice on a non-secure port, it works
 fine. 
 
 So, below listed code works for http but doesn't work for https. When I
 hit
 the https port, it complains like this. It is basically not even able
 to
 send the message because we need to figure out how to accept server
 certificate  produce my client certificate. 
 
 
 -- javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking
 https:name
 -- javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to
 find
 valid certification path to requested target
 -- Exception in thread main javax.xml.ws.WebServiceException: Could not
 send Message.
 
 This is because you haven't configured the web services client to use
 your truststore. Note that Tomcat configures it's own HTTPS listener
 with the truststore you set in the Connector. You web service client
 ought to provide the same type of configuration.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkyaTvAACgkQ9CaO5/Lv0PBNwwCgv87ljYFiSQG9kibcDbKHvxxB
 of0AnjBGqOLeLSKGdxFXDXc8+5O2U/Ru
 =rwOg
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Client-to-communicate-to-SSL-WebServices-on-tomcat-tp29780497p29782877.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Maximum number of session for tomcat 6

2010-09-22 Thread rujin raj
Chris,

I have  installed LambdaProbe for monitoring tomcat. I am not able to
monitor the memory utilisation for the application.

*Error:This page requires Java5 with enabled JMX Agent. To enable the JXM
Agent please add -Dcom.sun.management.jmxremote to java command line or
$JAVA_OPTS environment variable. If you are an IBM JDK user please add these
properties: -Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=29001
-Dcom.sun.management.jmxremote.ssl=false *

How can i enable the JMX agent.. I am using Windows 2003 server tomcat 6 and
java jre 1.6 is installed.

--rujin

On 22 September 2010 00:26, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rujin,

 On 9/21/2010 2:24 PM, rujin raj wrote:
  Dear support,

 Note this is a user mailing list, not a support line.

  I am newbie for tomcat.In our office i installed tomcat 6.Please let us
 know
  what is the maximum number of session tomcat will support

 I don't believe Tomcat has a maximum number of sessions: you are
 likely to run out of memory before you hit any practical maximum.

  and how to monitor the active session, idle session

 Tomcat exposes this information via JMX, so you can use your tool of
 choice to monitor them. List users have mentioned LambdaProbe and
 Moskito in the past as favorite tools.

  and rejected request.

 What is a rejected request?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkyY/+8ACgkQ9CaO5/Lv0PDrXgCdF8QhEytuD8uL6iiq2FVoRhu1
 MAkAoISRWg9SVluPAcZ9fwIriUDWCiku
 =yjM4
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: conf/Catalina/HOST/contextname.xml being removed

2010-09-22 Thread Pid
On 10/09/2010 01:03, Jason Britton wrote:
 Could anyone give me an explanation what might cause my webapp's context
 configuration to be deleted out of the tomcat/conf/Catalina/[HOST]/
 directory?  I've got a foo.war file in the webapps directory, it gets
 exploded upon startup. It has its context definition residing in the file
 conf/Catalina/[HOST]/foo.xml.  Every now and then foo.xml just gets up and
 blown away from the tomcat/conf/Catalina/[HOST]/ directory, usually upon a
 tomcat shutdown and startup.  Any suggestions on what might be causing this
 deletion and how to prevent it from occurring would be greatly appreciated.

Check the exact date of the file and system time.

Make it readonly and look out for a stack trace.

Seems like a weird issue for 6.0.29 - does it only occur during
shutdown, or startup as well (even weirder), any other time?

 Running tomcat 6.0.29 on 64-bit RHEL 5.5.

Much obliged.


p



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: acegi+spring+jsf

2010-09-22 Thread Pid
On 04/08/2010 08:25, vinay basavanal wrote:
 hi,
 
i downloaded an application from java world which has jsf and spring and
 myfaces but when i deploy application on tomcat i get this
 
 http://www.javaworld.com/javaworld/jw-04-2008/jw-04-acegi-jsf.html

Anything unclear about the exception message below?
Seems to have a LARGE CLEAR TEXT explanation in it.


p

 Aug 4, 2010 12:32:48 PM org.apache.catalina.core.ApplicationContext log
 INFO: Closing Spring root WebApplicationContext
 Aug 4, 2010 12:32:48 PM org.apache.catalina.core.StandardContext
 listenerStop
 SEVERE: Exception sending context destroyed event to listener instance of
 class org.apache.myfaces.webapp.StartupServletContextListener
 java.lang.IllegalStateException: No Factories configured for this
 Application. This happens if the faces-initialization does not work at all -
 make sure that you properly include all configuration settings necessary for
 a basic faces application and that all the necessary libs are included. Also
 check the logging output of your web application and your container for any
 exceptions!
 If you did that and find nothing, the mistake might be due to the fact that
 you use some special web-containers which do not support registering
 context-listeners via TLD files and a context listener is not setup in your
 web.xml.
 A typical config looks like this;
 listener
 
 listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
 /listener
 
 at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:172)
 at
 org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:131)
 at



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Maximum number of session for tomcat 6

2010-09-22 Thread Pid
On 22/09/2010 21:04, rujin raj wrote:
 Chris,
 
 I have  installed LambdaProbe for monitoring tomcat. I am not able to
 monitor the memory utilisation for the application.
 
 *Error:This page requires Java5 with enabled JMX Agent. To enable the JXM
 Agent please add -Dcom.sun.management.jmxremote to java command line or
 $JAVA_OPTS environment variable. If you are an IBM JDK user please add these
 properties: -Dcom.sun.management.jmxremote=true
 -Dcom.sun.management.jmxremote.authenticate=false
 -Dcom.sun.management.jmxremote.port=29001
 -Dcom.sun.management.jmxremote.ssl=false *
 
 How can i enable the JMX agent.. I am using Windows 2003 server tomcat 6 and
 java jre 1.6 is installed.

What's unclear about the above?  Did you read the message carefully?

please add -Dcom.sun.management.jmxremote to java command line or
$JAVA_OPTS environment variable.


In this case, it's probably actually $CATALINA_OPTS that you want, but
the info is all there.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: [OT] Client to communicate to SSL WebServices on tomcat

2010-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

To whom it may concern,

On 9/22/2010 3:04 PM, aravidu wrote:
 but how? this is not a webclient

The class is called WebService and the identified in your code is
client. How is this not a client?

 nor is the client running on a webserver.

That's not relevant.

 how can i do this?

If you are using a web services API, read the API, or ask the people who
wrote the API (not us). If you're written the code yourself, then you
have to work with the Java API to properly configure a trust store for
an outgoing HTTPS connection.

 i tried giving the client.keystore and client.truststore in VMARGS (of
 eclipse) but it wont work.

I'm not familiar with those system properties. Are you sure they are
meaningful? References to online documentation would be appropriate, here.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyaenkACgkQ9CaO5/Lv0PCHEACeLXwTtBhZ0lsT22GOOV00FK9V
mmUAn0X+1qb+Mla51Q+9EMra6uPLTUtc
=a2cE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Client to communicate to SSL WebServices on tomcat

2010-09-22 Thread Jorge Medina
Is your server using a test certificate? If so, Have you tried setting
the Java system property javax.net.ssl.trustStore?

If your server is using a certificate signed by a certificate
authority, then your certificate may have been signed using a
intermediate certificate. Your server is responsible to provide the
whole chain of certificates to get to a trusted root. (This file can
be provided by the company who signed your server certificate)



On Wed, Sep 22, 2010 at 5:51 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 To whom it may concern,

 On 9/22/2010 3:04 PM, aravidu wrote:
 but how? this is not a webclient

 The class is called WebService and the identified in your code is
 client. How is this not a client?

 nor is the client running on a webserver.

 That's not relevant.

 how can i do this?

 If you are using a web services API, read the API, or ask the people who
 wrote the API (not us). If you're written the code yourself, then you
 have to work with the Java API to properly configure a trust store for
 an outgoing HTTPS connection.

 i tried giving the client.keystore and client.truststore in VMARGS (of
 eclipse) but it wont work.

 I'm not familiar with those system properties. Are you sure they are
 meaningful? References to online documentation would be appropriate, here.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkyaenkACgkQ9CaO5/Lv0PCHEACeLXwTtBhZ0lsT22GOOV00FK9V
 mmUAn0X+1qb+Mla51Q+9EMra6uPLTUtc
 =a2cE
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Client to communicate to SSL WebServices on tomcat

2010-09-22 Thread Jorge Medina
I have had browsers (IE) that can establish an SSL (https) connection
to a server even when the server did not provide the intermediate
certificates.  Other browsers (like Firefox) won't allow the
connection to be established unless the intermediate certificates are
provided.

On Wed, Sep 22, 2010 at 8:50 PM, Jorge Medina
cerebrotecnolog...@gmail.com wrote:
 Is your server using a test certificate? If so, Have you tried setting
 the Java system property javax.net.ssl.trustStore?

 If your server is using a certificate signed by a certificate
 authority, then your certificate may have been signed using a
 intermediate certificate. Your server is responsible to provide the
 whole chain of certificates to get to a trusted root. (This file can
 be provided by the company who signed your server certificate)



 On Wed, Sep 22, 2010 at 5:51 PM, Christopher Schultz
 ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 To whom it may concern,

 On 9/22/2010 3:04 PM, aravidu wrote:
 but how? this is not a webclient

 The class is called WebService and the identified in your code is
 client. How is this not a client?

 nor is the client running on a webserver.

 That's not relevant.

 how can i do this?

 If you are using a web services API, read the API, or ask the people who
 wrote the API (not us). If you're written the code yourself, then you
 have to work with the Java API to properly configure a trust store for
 an outgoing HTTPS connection.

 i tried giving the client.keystore and client.truststore in VMARGS (of
 eclipse) but it wont work.

 I'm not familiar with those system properties. Are you sure they are
 meaningful? References to online documentation would be appropriate, here.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkyaenkACgkQ9CaO5/Lv0PCHEACeLXwTtBhZ0lsT22GOOV00FK9V
 mmUAn0X+1qb+Mla51Q+9EMra6uPLTUtc
 =a2cE
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Client to communicate to SSL WebServices on tomcat

2010-09-22 Thread aravidu

Thanks for your reply. 
Yes, the server is using a test certificate. Server has a truststore  a
keystore. keystore has server's privatekey and truststore has client's
publickey (stored as trustedcert). 

on the client side, i have setup a client.keystore (type JKS) that contains
2 keys. One key is client's privatekey. Second key is server's publickey
(stored as trustedcert)

on the client side, yes.. i tried setting up the VMARGS that you are talking
of. i am using myeclipse to run the client. so, under Run-- Run
Configurations -- Java Application -- Client: I setup these 4 variables
under Arguments tab. 

-Djavax.net.ssl.trustStore=${truststore.location}
-Djavax.net.ssl.trustStorePassword=${ssl.password}
-Djavax.net.ssl.keyStore =${truststore.location}
-Djavax.net.ssl.keyStorePassword=${ssl.password}

I defined ${truststore.location} under variables as: 
name: truststore.location
value: C:\Clientcerts\client.keystore

With this setup, it kept complaining about a very basic error. Here is the
exception: 
java.lang.NoClassDefFoundError: =C:\Clientcerts\client.keystore 

If I tried the variable value as - value: C:/Clientcerts/client.keystore
it threw a similar exception like this: Caused by:
java.lang.ClassNotFoundException: =C:.Clientcerts.client.keystore

I verified that i have these in there.. 

If you are talking of some other Java system variable setup, please let me
know.. 




Jorge Medina-5 wrote:
 
 Is your server using a test certificate? If so, Have you tried setting
 the Java system property javax.net.ssl.trustStore?
 
 If your server is using a certificate signed by a certificate
 authority, then your certificate may have been signed using a
 intermediate certificate. Your server is responsible to provide the
 whole chain of certificates to get to a trusted root. (This file can
 be provided by the company who signed your server certificate)
 
 
 
 On Wed, Sep 22, 2010 at 5:51 PM, Christopher Schultz
 ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 To whom it may concern,

 On 9/22/2010 3:04 PM, aravidu wrote:
 but how? this is not a webclient

 The class is called WebService and the identified in your code is
 client. How is this not a client?

 nor is the client running on a webserver.

 That's not relevant.

 how can i do this?

 If you are using a web services API, read the API, or ask the people who
 wrote the API (not us). If you're written the code yourself, then you
 have to work with the Java API to properly configure a trust store for
 an outgoing HTTPS connection.

 i tried giving the client.keystore and client.truststore in VMARGS (of
 eclipse) but it wont work.

 I'm not familiar with those system properties. Are you sure they are
 meaningful? References to online documentation would be appropriate,
 here.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkyaenkACgkQ9CaO5/Lv0PCHEACeLXwTtBhZ0lsT22GOOV00FK9V
 mmUAn0X+1qb+Mla51Q+9EMra6uPLTUtc
 =a2cE
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Client-to-communicate-to-SSL-WebServices-on-tomcat-tp29780497p29785504.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: conf/Catalina/HOST/contextname.xml being removed

2010-09-22 Thread Jason Britton
Glad you brought this back up P - was cursing this problem again yesterday.
So if tomcat 6.0.29 is running and my foo webapp is deployed, if I dare copy
in foo.war for auto re-deployment tomcat nukes my foo.xml context definition
in conf/Catalina/HOST/ directory.  Absolutely maddening.  Is this expected
behavior?  It seems that you wouldn't want external configuration files
removed on a redeployment.  Of course I'm just testing out a new system and
in production I'm not sure I'd be just copying in a new war file and calling
that a redeployment...  I'll change permissions on that file and see what
happens.  Thanks for your insights.

Jason


On Wed, Sep 22, 2010 at 10:54 AM, Pid p...@pidster.com wrote:

 On 10/09/2010 01:03, Jason Britton wrote:
  Could anyone give me an explanation what might cause my webapp's context
  configuration to be deleted out of the tomcat/conf/Catalina/[HOST]/
  directory?  I've got a foo.war file in the webapps directory, it gets
  exploded upon startup. It has its context definition residing in the file
  conf/Catalina/[HOST]/foo.xml.  Every now and then foo.xml just gets up
 and
  blown away from the tomcat/conf/Catalina/[HOST]/ directory, usually upon
 a
  tomcat shutdown and startup.  Any suggestions on what might be causing
 this
  deletion and how to prevent it from occurring would be greatly
 appreciated.

 Check the exact date of the file and system time.

 Make it readonly and look out for a stack trace.

 Seems like a weird issue for 6.0.29 - does it only occur during
 shutdown, or startup as well (even weirder), any other time?

  Running tomcat 6.0.29 on 64-bit RHEL 5.5.

 Much obliged.


 p




Re: How to reproduce tomcat security vulnerabilities

2010-09-22 Thread viola lu
thanks. I tried it on tomcat 6.0.26, and 6.0.29, it worked for the second
one, i can get correct response headers on tomcat 6.0.26 and tomcat 6.0.29:
tomcat 6.0.26
suse10sp268:~ # wget -S -O - --post-data='test send post'
http://9.125.1.248:8080/BasicAuthor_without_realm/BasicAuthor
--07:21:33--  http://9.125.1.248:8080/BasicAuthor_without_realm/BasicAuthor
   = `-'
Connecting to 9.125.1.248:8080... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 401 Unauthorized
  Server: Apache-Coyote/1.1
  *WWW-Authenticate: Basic realm=9.125.1.248:8080*

*tomcat 6.0.29:*
suse10sp268:~ # wget -S -O - --post-data='test send post'
http://9.125.1.248:8080/BasicAuthor_without_realm/BasicAuthor
--07:24:02--  http://9.125.1.248:8080/BasicAuthor_without_realm/BasicAuthor
= `-'
Connecting to 9.125.1.248:8080... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 401 Unauthorized
  Server: Apache-Coyote/1.1
  *WWW-Authenticate: Basic realm=Authentication required*

 But for the first one, both got the same repsonse: 200 OK as below:
suse10sp268:~ # wget -S -O - --header='Transfer-Encoding:unsupported'
--post-data='test send post'
http://9.125.1.248:8080/SecurityTomcat/SecurityServlet
--07:12:16--  http://9.125.1.248:8080/SecurityTomcat/SecurityServlet
   = `-'
Connecting to 9.125.1.248:8080... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Content-Type: text/html
  Content-Length: 61
  Date: Thu, 23 Sep 2010 03:09:09 GMT
  Connection: keep-alive
Length: 61 [text/html]
 0%
[
] 0 --.--K/s unsupported
application/x-www-form-urlencoded
9.125.1.248
100%[=]
61--.--K/s

07:12:16 (7.27 MB/s) - `-' saved [61/61]

Seems no difference on tomcat 6.0.26 and tomcat 6.0.29, is there something
wrong?
Appreciate if you can provide more help!

On Thu, Sep 23, 2010 at 2:25 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Viola,

 On 9/21/2010 10:13 PM, viola lu wrote:
  Here is my client:

 [snip]

 Note that your client can be replaced by this one-liner:

 $ wget -S -O - --header='Transfer-Encoding: unsupported' \
   --post-data='test send post' \
http://localhost:8080/SecurityTomcat/SecurityServlet

 It also has the added advantages of not stripping newlines from the
 response, and including the response headers in the output.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkyaShYACgkQ9CaO5/Lv0PBzFgCeMVSEXNtPhBFe0ae+M3Ip0aOT
 6SgAnAihZq7v3w6icGiPeceYFjnAPN21
 =LoyH
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
viola


Re: How ot monitor hung tomcat/apache processes?

2010-09-22 Thread Leon Kolchinsky
Hi,

You can try several approaches (I'll list 2 that I'm aware of):

1) Automatic restarts on OutOfMemory errors:
Add the following to CATALINA_OPTS:

-XX:OnOutOfMemoryError=/usr/sbin/restart_tcserver

Write your restart_tcserver (you may send an e-mail notification from it
etc.)

2) This is what I do (please critisice/suggest improvements to this
approach):

I've got 2 servers with Tomcat+Apache httpd with heartbeat beetween them:
I'm running this little script every 15 min. via cron:

# cat /srv/scripts/test_live.sh
#!/bin/bash
SERVICE_HTTPD=$(ps -ef | grep -v grep | grep -c httpd)
SERVICE_TOMCAT=$(ps -ef | grep -v grep | grep -c tomcat)
SERVICE_HEARTBEAT=$(ps -ef | grep -v grep | grep -c heartbeat)
SERVICE_STATUS=$(/srv/scripts/check_http.pl -H confluence-server.myorg.com
-u /blank.html)

# While testing, please uncomment the following echo statements
if [ $SERVICE_HTTPD -ne 0 -a $SERVICE_TOMCAT -ne 0 -a $SERVICE_STATUS =
Status: OK ]
then
#   echo SERVICE_HTTPD and SERVICE_TOMCAT and SERVICE_STATUS
are OK, everything is fine
exit
elif [ $SERVICE_HEARTBEAT -ne 0 ]
then
echo The following output triggered failover:
SERVICE_HTTPD=$SERVICE_HTTPD , SERVICE_TOMCAT=$SERVICE_TOMCAT ,
SERVICE_STATUS=$SERVICE_STATUS , failing over to spare server
echo The following output triggered failover:
SERVICE_HTTPD=$SERVICE_HTTPD , SERVICE_TOMCAT=$SERVICE_TOMCAT ,
SERVICE_STATUS=$SERVICE_STATUS , failing over to a spare server at `date` |
/bin/mailx -s Server `uname -n` encountered a problem, failing over to a
spare server at `date` lkolchin at gmail dot com
/etc/init.d/heartbeat stop
else
#   echo This server probably failed over to the spare one,
nothing to do
exit
fi
-

If Tomcat+Apache running and application responsive ($SERVICE_STATUS) do
nothing if at least one of those conditions is not true, failover to a spare
server.

check_http.pl - This is a perl script (from Nagios Plugin I believe)-
## check_http.pl
## Copyright (c) 2008, Oliver Wittenburg  oli...@wiburg.de
##
## This program is free software: you can redistribute it and/or modify it
under
## the terms of the GNU General Public License as published by the Free
Software
...


Cheers,
Leon Kolchinsky



On Thu, Sep 23, 2010 at 04:30, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Shashank,

 On 9/22/2010 8:30 AM, Mendiratta, Shashank wrote:
  Thanx , about that here the outbound port 80 is blocked so we cannot
  wget , moreover this wont solve the problem as to why the the services
  are getting hung.

 Hmm. Can you monitor from the server itself? That's not unusual to do.
 Also, connections to localhost:80 usually work even when software-based
 firewalls are in place, since the local host is usually considered trusted.

  Well I had an idea, please critic it. Why not monitor the server.log
  file if we get some kind of error. We send an alert and then restart the
  service . Befire that we have to make a repository of types of error
  that can occur

 We have one particularly poorly-written webapp that has a habit of
 running out of memory. We have segregated it into it's own Tomcat
 instance and actually do scan the log file for errors in the way you
 describe.

 The script is essentially this:

 grep -m 1 OutOfMemoryError ${LOGFILE}  /dev/null

 if [ $? == 0 ] ; then

 # notify an administrator

 fi

 It's not particularly elegant, but it gets the job done.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkyaS0wACgkQ9CaO5/Lv0PCxXQCgwIlct+hqxxejBAEUAPw8+gXj
 EiAAoImkWA55dP3Nw8iuWIqM2P/N7Hvk
 =avt1
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org