Tomcat 7.0.16 won't execute my JSP pages

2011-09-03 Thread Martin Cavanagh

Hello Tomcat users.

I have been a happy Tomcat user since Tomcat 4.x, this will be my first 
post in a long time.


We updated from Tomcat 6.x to Tomcat 7.0.4 a few months ago.  This 
worked just fine.
When I updated to Tomcat 7.0.20 last week, I discovered that our JSP 
pages aren't being executed , rather the server sends back our JSP code 
to the user.  That is not really the desired effect.
After some testing, I discovered that this problem was first introduced 
with Tomcat 7.0.16.  Everything works fine in Tomcat 7.0.14.  There is 
no error being logged by Tomcat.


Our Application is programmed, built and compiled in Netbeans.  It is 
distributed via a WAR file.
The only special parts of our web.xml relating to JSP, are that we 
execute jnlp files using the JSP engine (we have dynamic java web start 
files).

/servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jnlp/url-pattern
/servlet-mapping/

There is no error message.
I can see the hits in the localhost_access_log


In the root directory, the index.jsp is executing correctly!


Actually I managed to solve the problem by adding a servlet mapping for jsp.
/
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jnlp/url-pattern
/servlet-mapping/
/servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping

/Interestingly this problem doesn't occur, when both of these sevlet 
mappings are deleted.
It seems that Tomcat up to 7.0.16 always had a default mapping for *.jsp 
and that from Tomcat 7.0.16 this default mapping only exists, if there 
are no other jsp mappings.
In my case I need both mappings, to ensure that both *.jsp and *.jnlp 
files are executed as jsp.
I haven't tried to find the code that changed, it doesn't really bother 
me having one more mapping in my web.xml#


So maybe this will help some other Tomcat user.

Martin


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



Re: Tomcat crash @ midnight - but why?

2007-09-28 Thread Martin Cavanagh

Darek Czarkowski wrote:

Martin Cavanagh wrote:

Caldarale, Charles R wrote:
From: Darek Czarkowski [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


Now, this would be funny, can you search the source code of the 
deployed application for System.exit call?



  
Heres trouble...the System does call System.exit(), when it 
can't create the directory... - so I understand why my application 
would stop- but why would tomcat shutdown?


It's also using the client JVM not the server JVM (I installed JRE 
and there is no server JVM)


See that is funny after all, as other users explained system.exit will 
terminate JVM and not just your application. You should NEVER use this 
call in your application. Try to deal with the error in another way.



I guess it is a little bit funny - nah you live - you learn.

Well thanks for the help

Martin

--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Martin Cavanagh
My logs are being being redirected to other directorys, where log levels 
are being applied.  This are just the tomcat logs, since its tomcat 
which is crashing.


The logs from stdout are just cases where things are still (or also) 
being written to Std out -which is the exception rather than the rule.


Pid wrote:

Martin Cavanagh wrote:

  

Each time when Tomcat has crashed, it has been at midnight.  At exactly
midnight my program changes log directorys - from 20-09-2007 to
21-09-2007.  This is a TimerTask.  A thread which runs at exactly
midnightat each of these crashes it has reported Can't create
directory '\.cs-aterm\logs\SYSTEM\2007-09-25'.  I can't help wondering
if that might somehow be related.  However if that happens, it should
result in no logs being produced, not in Tomcat crashing.



Is this the case for all 3 shutdown instances?

If so, I'd suggest that understanding why that is happening will lead
you to the cause of the shutdown...

You're not really logging much from your app it would appear - is there
any way to increase the logging level, or haven't you got much in the
way of logging in the code?

p

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Martin Cavanagh

Caldarale, Charles R wrote:
From: Darek Czarkowski [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


Now, this would be funny, can you search the source code of 
the deployed application for System.exit call?



  
Heres trouble...the System does call System.exit(), when it 
can't create the directory... - so I understand why my application would 
stop- but why would tomcat shutdown?


It's also using the client JVM not the server JVM (I installed JRE and 
there is no server JVM)

Doesn't quite fit the symptoms.  When a webapp calls System.exit(), the
following entry does NOT appear in the logs:

Sep 26, 2007 1:23:07 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080

Whereas when the service is stopped or the shutdown string is sent to
the shutdown port, the above message does appear in the logs.  The OP
did report that the Pausing ... message is present.

 - Chuck


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

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Martin Cavanagh

Mark Thomas wrote:

Martin Cavanagh wrote:
  

Heres trouble...the System does call System.exit(), when it
can't create the directory... - so I understand why my application would
stop- but why would tomcat shutdown?



And there is the problem. System.exit() will kill the JVM (unless you
are running under a security manager and don't give the code permission
to do this). Tomcat registers a shutdown hook on startup which performs
a clean stop if the JVM is stopped. This is why you see what appears to
be a 'normal' shutdown in the logs.

Mark
  
ahh good - and now I just need to work out why it can't create 
directorys on this one server - great!


Now before I execute the System.exit I do a dump.

Thanks alot.  Additionaly I'll be installing the JDK so I can use the 
server JVM.


Martin

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 and 
26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost interface.  
External clients cannot access it anyway.  Easily demonstrated with a 
netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
  

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone 
else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:


According to your log it did not crash. It did shutdown following the
shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh s'exprimait en
ces termes:

  

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst Apache Tomcat wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service Apache Tomcat stopped unexpectedly.  This has happened 
once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any

other logs regarding this.  How do I find out why my Tomcat crashed?

Thanks

Martin




  


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


  



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

 




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







--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hmm maybe this little bit of extra info helps

Physical Hardware:
656MB RAM
2.4 Ghz Xeon Processor

Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone 
else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
   
According to your log it did not crash. It did shutdown following 
the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:

 

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst Apache Tomcat wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service Apache Tomcat stopped unexpectedly.  This has happened 
once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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


  



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

 




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










--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks for your answers

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Martin Cavanagh wrote:
  

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 and
26.09.



Strange. What is the uptime of your operating system? Perhaps it's being
rebooted every night?
  
No its definitely not being restarted automatically.  I've had the same 
session (Remote Desktop) running to the server for 4 months...
  

We have VM Ware Server as the hardware - could this cause the problem?



Probably not, but if there's some kind of warm backup going on where the
OS is suspended for the backup, you may be running into trouble. VMware
allows the OS to respond to events (such as SUSPEND and RESUME), and
it's possible that your VM is rigged to shut down some services on
SUSPEND. I doubt that very much, but it's certainly possible.
  

I don't have direct access to the VM, but I'll have this checked into.
  

In the config file there is the standard AJP port (8009) - what does
this actually do?



If you are using a web server along with Tomcat, the AJP connector
allows the two to speak to one another. If you are using Tomcat all by
itself, you can safely disable this connector.
  

Ok - I'll disable this.  There is no other Web Server involved

- -chris

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

iD8DBQFG+mfU9CaO5/Lv0PARArvAAJ9xPomWXYlk7a+91+xGUYhQEG653ACgrqVB
YHzpLj93/bqEDS4Tom0j5V4=
=Np9e
-END PGP SIGNATURE-

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hi Frank

Franck Borel wrote:

Hi Martin,

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?


What kind of network connection are you using? NAT or Bridge?
not sure and I don't have direct access to the host machine to check 
this.  Could this play a role?  What should I be looking for.  I would 
have expected a Bridge...

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


This is a connector, that is used to connect Apache with Tomcat. Are 
you using Apache with Tomcat? If yes look at the log file of your 
mod_jk (C:\apache2\logs\mod_jk.log).

Then the AJP port is harmless, Its a tomcat server which is working alone.



Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23




-- Franck

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







--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hi Charles

Caldarale, Charles R wrote:
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


Hmm maybe this little bit of extra info helps



Not really, but answering Pid's question below might, as would following
David's suggestions. 
 
  
There is no \bin\shutdown.bat file - so this isn't being directly 
triggered.  There could of course be something triggering this in a 
different way, but not via this batch file.

656MB RAM



That's an awfully small amount of memory for a modern system, but is
probably not pertinent.
  
I know - it is very little.  That said I've got Tomcat Servers running 
on machine's with much less, without having any problems.
  
In the config file there is the standard AJP port (8009) - what does 
this actually do?



It allows connection between Tomcat and some front end such as Apache
httpd or IIS.
  
Cool to know - but not the problem then.  I can shutdown the AJP 
connector then...
  

- Original Message -
From: Pid [EMAIL PROTECTED]
Subject: Re: Tomcat crash @ midnight - but why?

  

What's immediately before the shutdown description in the logs?


David Delbecq wrote:
   
  
According to your log it did not crash. It did 
shutdown following the shutdown procedure (which

can be executed by bin\shutdown.bat). I suggest
you investigate possibilities that a local service
is setup to shutdown tomcat at midnight on the server.



 - Chuck


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

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thats how much RAM the Virtual Machine has.  I'm not sure what the 
actual host machine has, but I'm assuming at least 1024 MB.  I believe 
this virtual machine is the only one on the Server.


Martin

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
  
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


656MB RAM
  

That's an awfully small amount of memory for a modern system, but is
probably not pertinent.



Especially when you're running VMWare server on it, ostensibly to run
multiple OSs on shared hardware. Yipes!

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

iD8DBQFG+mq59CaO5/Lv0PARAnzJAKCgkKIJpYUZvhtZidmj7ksuPOZhsgCgnZkP
9q00vG5PoMTxzZQDf42ayvk=
=224T
-END PGP SIGNATURE-

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks Gabe.

I've checked the Windows Scheduled Tasks - unfortunately they are empty.

The VMWare instance has 656MB RAm.

Tomcat logs are quite boring - they only indicate that the Tomcat is 
being shutdown


The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

All other logs I posted 5 days ago and I don't want to repost.

Thanks for everyones help

Martin

Gabe Wong wrote:
Check Windows Scheduled Tasks, to see what runs around that time. 
Could be a resource issue. A background task or even a load spike
from a search bot. How much memory is allocated to the VMWare 
instance? Also did you check the Tomcat logs?


Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume 
everyone else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
  
According to your log it did not crash. It did shutdown 
following the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:



Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 
1.5.0_11


It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst Apache Tomcat wurde unerwartet beendet. Dies ist 
bereits 1

Mal passiert. - Which translates to,
Service Apache Tomcat stopped unexpectedly.  This has 
happened once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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


  



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

 




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













--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Sorry everyone - no the the Virtual Machine has 656 MB RAM.  The Host 
has something  656MB Ram (1GB?)


Martin

Peter Crowther wrote:
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Physical Hardware:

656MB RAM
2.4 Ghz Xeon Processor



Crikey.  And a host OS (what host?), VMware on top of that, then Windows
2003 as a guest OS?  Do you have any RAM left for Tomcat?

- Peter

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

the JVM is using the default parameters.  I installed JRE 1.5.0_11 (which was 
upto date at the time...)

Should I be using custom parameters?

VMWare means the the host machine, doesn't know that there is no real 
hardware beneath it

Martin

I'm not overly familiar with VMWare, but is that the memory assigned to
the OS instance?  Have you configured your JVM with custom memory
parameters?



p


  


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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks Alexey.

Notifications only :(

Keep the ideas coming guys!

just to to check - there is no hidden setting in Tomcat which says - 
shut me down at midnight sometimes for an inexplainable reason?


Martin

Alexey Solofnenko wrote:

Maybe it is caused by automatic Windows Update. Did you check it?

- Alexey.

Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume 
everyone else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
  
According to your log it did not crash. It did shutdown 
following the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:



Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 
1.5.0_11


It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst Apache Tomcat wurde unerwartet beendet. Dies ist 
bereits 1

Mal passiert. - Which translates to,
Service Apache Tomcat stopped unexpectedly.  This has 
happened once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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


  



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

 




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












--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks Pid - some good tips

Pid wrote:

Martin Cavanagh wrote:

  

just to to check - there is no hidden setting in Tomcat which says -
shut me down at midnight sometimes for an inexplainable reason?



Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of
humour - they're always building crazy easter eggs into Tomcat.

No, Martin, there's no secret scheduled shutdown setting.
  

phew :)

I've asked about the logs before, but I'll ask again...
What's in the logs immediately before the shutdown?
  
Like I said nothing - I posted them once before - but here they come 
again.  This time I'm even including the Std-Out, which is just junk 
from my program..although now I see something that could either be 
the problem - or a symptom of the problem.


Each time when Tomcat has crashed, it has been at midnight.  At exactly 
midnight my program changes log directorys - from 20-09-2007 to 
21-09-2007.  This is a TimerTask.  A thread which runs at exactly 
midnightat each of these crashes it has reported Can't create 
directory '\.cs-aterm\logs\SYSTEM\2007-09-25'.  I can't help wondering 
if that might somehow be related.  However if that happens, it should 
result in no logs being produced, not in Tomcat crashing.


I've also been using this logging technique for years (inherited from 
the previous programmer).  It always worked fine - on many servers.

You'll need to look in catalina.out, any app logs and the access log for
the app.


If you're using the default JVM settings, there's a chance that you
might not be running on the server JVM, so your app may have a limited
amount of memory at it's disposal (32Mb if memory serves).  If it's
hanging for some reason (e.g. an app internal job at midnight?) would
VMWare shut it down as a bad/dead process?
  

Hmmm - how houw I change the JVM into a Server JVM?

Evidence of this might be found in the logs, by unexpected gaps in
access log traffic, error messages in catalina.out etc.


You could also configure jvm gc logging, (google for this), which may
tell you something.
  

That sounds like this is worth looking into


p



  

Martin



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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341
19.09.2007 12:21:38 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
19.09.2007 12:21:38 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
19.09.2007 12:21:39 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
19.09.2007 12:21:40 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
19.09.2007 12:21:40 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:30 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
19.09.2007 12:22:30 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:30 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1860 ms
19.09.2007 12:22:30 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
19.09.2007 12:22:30 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
19.09.2007 12:22:30 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
19.09.2007 12:22:31 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive soap.war
19.09.2007 12:22:32 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
19.09.2007 12:22:32 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:32 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
19.09.2007 12:22:32 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2140 ms
20.09.2007 10:24:39 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
20.09.2007 10:24:39 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
20.09.2007 10:24:40 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
20.09.2007 10:24:40 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
20.09.2007 10:24:40 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
20.09.2007 12:22:20 org.apache.coyote.http11.Http11AprProtocol

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

David kerber wrote:
Is your tomcat set to roll the log files at midnight?  Maybe there's 
something going on related to that?
no i don't think so - (but how do I control that - It would be cool to 
use that).  Its pretty much a standard Tomcat installation - with HTTPS 
turned on and HTTP turned off.


My standard tomcat logs only change their  filenames, when i restart tomcat.



Pid wrote:

Martin Cavanagh wrote:

 

just to to check - there is no hidden setting in Tomcat which says -
shut me down at midnight sometimes for an inexplainable reason?



Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of
humour - they're always building crazy easter eggs into Tomcat.

No, Martin, there's no secret scheduled shutdown setting.

I've asked about the logs before, but I'll ask again...
What's in the logs immediately before the shutdown?

You'll need to look in catalina.out, any app logs and the access log for
the app.


If you're using the default JVM settings, there's a chance that you
might not be running on the server JVM, so your app may have a limited
amount of memory at it's disposal (32Mb if memory serves).  If it's
hanging for some reason (e.g. an app internal job at midnight?) would
VMWare shut it down as a bad/dead process?

Evidence of this might be found in the logs, by unexpected gaps in
access log traffic, error messages in catalina.out etc.


You could also configure jvm gc logging, (google for this), which may
tell you something.


p



 

Martin



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



  




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







--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Caldarale, Charles R wrote:
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


There is no \bin\shutdown.bat file - so this isn't being directly 
triggered.



That just means you installed from the .exe rather than the .zip
distribution.  Something could still be running around terminating the
Tomcat service at midnight.  Take a look at the properties for the
Apache Tomcat service in the Windows Control Panel - Admin Tools -
Services, and see if it has any dependencies or other unusual
characteristics set.
  

There don't seem to be.

The Server is started with \Tomcat\bin\tomcat5.exe //RS//Tomcat5 - is 
that normal?


A temp solution appeared there - it is possible to tell windows what to 
do if a service stops - i could tell it to automatically restart - which 
would be a solution - not the best but i saves me having to monitor it 
at midnight


Martin



 - Chuck


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

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Tomcat crash @ midnight - but why?

2007-09-21 Thread Martin Cavanagh

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was 
installed several months ago.  Version 5.5.0.23.


The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at 
midnight it crashed.


Dienst Apache Tomcat wurde unerwartet beendet. Dies ist bereits 1 Mal 
passiert. - Which translates to,
Service Apache Tomcat stopped unexpectedly.  This has happened once 
already.


The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't see any 
other logs regarding this.  How do I find out why my Tomcat crashed?


Thanks

Martin
--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread Martin Cavanagh

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone else 
was who had access to the system..


Thanks

Martin

David Delbecq wrote:

According to your log it did not crash. It did shutdown following the
shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is setup to
shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This connector is by
default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh s'exprimait en
ces termes:
  

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst Apache Tomcat wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service Apache Tomcat stopped unexpectedly.  This has happened once
already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't see any
other logs regarding this.  How do I find out why my Tomcat crashed?

Thanks

Martin




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat crash @ midnight - but why?

2007-09-21 Thread Martin Cavanagh

Well nothing really.

But (assuming attachements are allowed), I've attached them all (except 
Std-Out - thats just junk from my program)


Martin

Pid wrote:

What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
  

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone else
was who had access to the system..

Thanks

Martin

David Delbecq wrote:


According to your log it did not crash. It did shutdown following the
shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is setup to
shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This connector is by
default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh s'exprimait en
ces termes:
 
  

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst Apache Tomcat wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service Apache Tomcat stopped unexpectedly.  This has happened once
already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't see any
other logs regarding this.  How do I find out why my Tomcat crashed?

Thanks

Martin


  
  




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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341
19.09.2007 12:21:38 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
19.09.2007 12:21:38 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
19.09.2007 12:21:39 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
19.09.2007 12:21:40 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
19.09.2007 12:21:40 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:30 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
19.09.2007 12:22:30 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:30 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1860 ms
19.09.2007 12:22:30 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
19.09.2007 12:22:30 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
19.09.2007 12:22:30 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
19.09.2007 12:22:31 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive soap.war
19.09.2007 12:22:32 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
19.09.2007 12:22:32 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:32 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
19.09.2007 12:22:32 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2140 ms
20.09.2007 10:24:39 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
20.09.2007 10:24:39 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
20.09.2007 10:24:40 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
20.09.2007 10:24:40 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
20.09.2007 10:24:40 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
20.09.2007 12

Re: Problems with clientAuth

2007-04-16 Thread Martin Cavanagh
do you want to excannge conf.xml files?  I'll happily try yours on my 
computer


I've had success running both OpenSSL  JavaKeystore.

I'm running OpenSSL now, because it is supposedly considerably faster.  
I'm not quite sure how to check though.


One question though.

I have the SSLCACerticateFile property set.  Awesome.  It works.  
Anything coming from that CA is okay, everything else isn't.


How do I do this on a per Client basis?

Thanks

Martin

Luis Villa wrote:

Hello all !

Someone can throw a little light in this problem?

I am not able to solve it, and I've tried anything I've found 
searching in

google :S

Thank all!

2007/4/2, Luis Villa [EMAIL PROTECTED]:


Ok, now I'm getting mad :S

IExplorer keeps saying the page can't be found (it doesn't ask for the
certificate), and Firefox throws a -12271 error (I don't know if that is
close enought to the error you said, Antoine. Anyway, nothing has 
changed
since the last 12229 error (I left the computer off in the weekend 
because

it's in my workplace).

Martin, the behavior of Tomcat in your case (I think) is correct. You 
put
clientAuth=true, so you are forcing the client to send the 
certificate to
allow connection. You should install a certificate in IExplorer and 
Firefox.



Thank you, Antoine and Martin :)


2007/4/2, Mirou, Antoine [EMAIL PROTECTED]:

  The problem appears when changing clientAuth to true. Then, when 
using

  iexplorer the browser simply can't find the page (or this is what it
  says),
  and when using firefox it warns about the certificate, but after
 accepting
  the certification it says that 'localhost has received an unexpected
 or
  incorrect message. Error code: -12229'. I've been googling for two
 days
  and
  I can't find a clue about what is failing nor what means this error
 code.

 I guess it's a -12227 error, and not 12229. This error appears when
 Firefox doesn't have any client certificate to give to the server.
 You should install a client certificate issued by the same CA on your
 browser.

 Regards,
 Antoine


 Afin de preserver l'environnement, merci de n'imprimer ce courriel 
qu'en

 cas de necessite.

 Please consider the environment before printing this mail.


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








--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Client Authenification problem in Tomcat

2007-03-30 Thread Martin Cavanagh
So I have now setup my Tomcat 5.5 with HTTPS via APR 
(tcnative-1.dll)/OpenSSL.


It works great.

Now I want to require SSL authenification.

Thats easy enough to do, I just enable SSLVerifyClient.

Connector port=443 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 scheme=https secure=true
  SSLEngine=on
  SSLVerifyClient=require
  SSLCertificateFile=${catalina.base}/conf/192.168.168.79.crt
  
SSLCertificateKeyFile=${catalina.base}/conf/192.168.168.79.key /



Now of course my Browser is broken.

I've downloaded a personal email certificate from Thawte and installed 
in Firefox...but I don't get, how do I install the certificate into 
OpenSSL.  Can anyone help here?  Or is this only possible via the

Java Keystore?

Also how do get the certificates out of Firefox / internet explorer?

Thanks alot

Martin

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



Re: Problems with clientAuth

2007-03-30 Thread Martin Cavanagh

Hi Luis.

I'm pretty sure I'm having exactly the same problem as you - maybe we 
can solve it together:)


When I enable client authentification in my config clientAuth=true for 
you, since your using the Java KeyStore (I'm trying to use OpenSSL),


I get exactly the same error in Firefox! (except in German ;) )

In Internet Explorer I get a message, that the Server requires a 
certificate and I need to provide one and that I should select one (I 
don't have any installed in Internet Explorer).


Are you sure that you don't have Client Authenification turned on?

What does the setting secure=true actually do?

Good luck - let me know how you go.

Martin

Luis Villa wrote:

Hello all,

I' a newbie un the list, so first of all I'd like to say hello to 
everyone

:)

After this, I'd like to ask for help with a problem I have configuring
Tomcat for digital certifications. I've followed all the steps in the 
Tomcat
SSL HOWTO and my tomcat now has a secure connector in port 8443. So, 
I've no

error when trying to enter http://localhost:8443

The key in server.xml is the following:

Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS keystoreFile=conf\.keystore
keystorePass=changeit/


The problem appears when changing clientAuth to true. Then, when using
iexplorer the browser simply can't find the page (or this is what it 
says),
and when using firefox it warns about the certificate, but after 
accepting

the certification it says that 'localhost has received an unexpected or
incorrect message. Error code: -12229'. I've been googling for two 
days and

I can't find a clue about what is failing nor what means this error code.

I'd be very grateful if somebody can help me with this, so my boss could
stop cleaning this gun of his... :P

Thanks in advance for your help :)

Greetings!




--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat HTTPS Help needed

2007-03-30 Thread Martin Cavanagh

where would I find any sort of performance tests of OpenSSL vs Java JSSE?

is it possible to implement client authenification in both OpenSSL and 
Java JSSE?


Thanks

Martin

Mladen Turk wrote:

Martin Cavanagh wrote:

Removing the tcnative-1.dll library worked!

But doesn't that have the disadvantage of decreased performance for 
Tomcat?




Yes, APR connector with OpenSSL is 4 times faster then
with Java JSSE


Is there a way to install OpenSSL without compiling it?



Tcnative-1.dll for windows already
contains the OpenSSL code compiled in.
That's why the tcnative binaries are hosted on the Ireland's site.

Regards,
Mladen.

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






--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Re: Tomcat HTTPS Help needed

2007-03-29 Thread Martin Cavanagh

Removing the tcnative-1.dll library worked!

But doesn't that have the disadvantage of decreased performance for Tomcat?

Is there a way to install OpenSSL without compiling it?

Thanks

Martin

Mladen Turk wrote:

Martin Cavanagh wrote:

Hi everyone.

I'm quite embarrassed - but inspite following the Apache guide, I 
just can't set up HTTPS via Tomcat!



C:\keytool -list -keystore c:\.keystore
Geben Sie das Keystore-Passwort ein:

Keystore-Typ: JKS
Keystore-Provider: SUN





The logs don't seem to show anything interesting


It does, like always ;)


e.g. catalina -
28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80


You are using APR connector with OpenSSL, so Sun keystore
is invalid. Either remove tcnative-1.dll from the bin directory
or use the OpenSSL (like in Apache2) for SSL

See:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Regards,
Mladen.

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






--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com http://www.con-sense-group.com

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

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



Tomcat HTTPS Help needed

2007-03-28 Thread Martin Cavanagh

Hi everyone.

I'm quite embarrassed - but inspite following the Apache guide, I just 
can't set up HTTPS via Tomcat!


I have Windows 2000 Professional (German).  Tomcat 5.5.20.  Running Java 
1.5.


Can anyone here tell me what I'm doing wrong?

I tried the keystore in my user directory - but that doesn't seem to 
work (because Tomcat is running as local system - a different 
account?).  I even tried copy the .keystore file into every directory - 
but no luck.  So I moved the .keystore to C:\.keystore


C:\keytool -list -keystore c:\.keystore
Geben Sie das Keystore-Passwort ein:

Keystore-Typ: JKS
Keystore-Provider: SUN

Ihr Keystore enthlt 2 Eintrge.

consense, 04.05.2006, PrivateKeyEntry,
Zertifikatsfingerabdruck (MD5): 
4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C

tomcat, 28.03.2007, PrivateKeyEntry,
Zertifikatsfingerabdruck (MD5): 
2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67


my keystore has two signatures with the password changeit.

In the server.xml I have the following connector.  (the default, 
uncommented, with the keystoreFile/keypass as parameters - keypass is 
not required).


Connector port=8443 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 scheme=https secure=true
  clientAuth=false sslProtocol=TLS
 keystoreFile=C:\.keystore
keypass=changeit  /

Whenever I try to visit the following website with HTTP/HTTPS I get no 
response.  It takes ages, so I'm sure Tomcat is thinking about doing 
something, just not doing anything.  I've also tried from external 
computers - still no success.


https://localhost:8443/

The logs don't seem to show anything interesting
e.g. catalina -
28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
28.03.2007 18:14:51 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1656 ms
28.03.2007 18:14:51 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
28.03.2007 18:14:51 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
28.03.2007 18:14:51 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
28.03.2007 18:14:53 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive soap.war
28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
28.03.2007 18:14:55 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
28.03.2007 18:14:55 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
28.03.2007 18:14:55 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3922 ms

similary the localhost log looks boring:
28.03.2007 18:14:54 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]


All other logs are empty.

Can anyone tell me what silly mistake I've made?

Thanks a lot.

Martin

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



Re: Tomcat HTTPS Help needed

2007-03-28 Thread Martin Cavanagh

http://localhost worked before and still works.

I also checked the firewall settings.  It definitely isn't a problem here - I 
even tried setting up a different connector http://localhost:8443 (not https) 
and this worked - so I'm 100% sure its not a firewall issue.

Any other ideas?

b.t.w. Thanks

Martin

Zhan, Jimmy wrote:

Hi,

  If you connect to http://localhost while https://localhost:8443, what
happen? Make sure http://localhost works first.

Jimmy

Cash America

-Original Message-
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 4:23 PM

To: Tomcat Users List
Subject: Tomcat HTTPS Help needed

Hi everyone.

I'm quite embarrassed - but inspite following the Apache guide, I just 
can't set up HTTPS via Tomcat!


I have Windows 2000 Professional (German).  Tomcat 5.5.20.  Running Java

1.5.

Can anyone here tell me what I'm doing wrong?

I tried the keystore in my user directory - but that doesn't seem to 
work (because Tomcat is running as local system - a different 
account?).  I even tried copy the .keystore file into every directory - 
but no luck.  So I moved the .keystore to C:\.keystore


C:\keytool -list -keystore c:\.keystore
Geben Sie das Keystore-Passwort ein:

Keystore-Typ: JKS
Keystore-Provider: SUN

Ihr Keystore enthlt 2 Eintrge.

consense, 04.05.2006, PrivateKeyEntry,
Zertifikatsfingerabdruck (MD5): 
4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C

tomcat, 28.03.2007, PrivateKeyEntry,
Zertifikatsfingerabdruck (MD5): 
2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67


my keystore has two signatures with the password changeit.

In the server.xml I have the following connector.  (the default, 
uncommented, with the keystoreFile/keypass as parameters - keypass is 
not required).


Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
  keystoreFile=C:\.keystore
 keypass=changeit  /

Whenever I try to visit the following website with HTTP/HTTPS I get no 
response.  It takes ages, so I'm sure Tomcat is thinking about doing 
something, just not doing anything.  I've also tried from external 
computers - still no success.


https://localhost:8443/

The logs don't seem to show anything interesting
e.g. catalina -
28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
28.03.2007 18:14:51 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1656 ms
28.03.2007 18:14:51 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
28.03.2007 18:14:51 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
28.03.2007 18:14:51 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
28.03.2007 18:14:53 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive soap.war
28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
28.03.2007 18:14:55 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
28.03.2007 18:14:55 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
28.03.2007 18:14:55 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
28.03.2007 18:14:55 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3922 ms

similary the localhost log looks boring:
28.03.2007 18:14:54 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]


All other logs are empty.

Can anyone tell me what silly mistake I've made?

Thanks a lot.

Martin

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


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

Re: Tomcat HTTPS Help needed

2007-03-28 Thread Martin Cavanagh

I sure did - heres a little bit of my server.xml

Connector port=8443 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25
maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 scheme=https secure=true
  clientAuth=false sslProtocol=TLS
 keystoreFile=C:\.keystore
keypass=changeit  /

I know the keypass isn't needed - just as soon as it works I want to 
change it :) 


Any other ideas?  It doesn't seem like it should be that complicated

I even tried installing the admin package and installing the connector 
port via thatno luck that way either.


Thanks

Martin

Martin Gainty wrote:

did you enable SSL on Port 8443 in server.xml??? e.g.

!-- Define a SSL HTTP/1.1 Connector on port 8443 --
Connector port=8443 
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75

   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS debug=5/

Martin--
--- 
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Martin Cavanagh [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 28, 2007 6:41 PM
Subject: Re: Tomcat HTTPS Help needed


  

http://localhost worked before and still works.

I also checked the firewall settings.  It definitely isn't a problem here - I 
even tried setting up a different connector http://localhost:8443 (not https) 
and this worked - so I'm 100% sure its not a firewall issue.

Any other ideas?

b.t.w. Thanks

Martin

Zhan, Jimmy wrote:


Hi,

  If you connect to http://localhost while https://localhost:8443, what
happen? Make sure http://localhost works first.

Jimmy

Cash America

-Original Message-
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 4:23 PM

To: Tomcat Users List
Subject: Tomcat HTTPS Help needed

Hi everyone.

I'm quite embarrassed - but inspite following the Apache guide, I just 
can't set up HTTPS via Tomcat!


I have Windows 2000 Professional (German).  Tomcat 5.5.20.  Running Java

1.5.

Can anyone here tell me what I'm doing wrong?

I tried the keystore in my user directory - but that doesn't seem to 
work (because Tomcat is running as local system - a different 
account?).  I even tried copy the .keystore file into every directory - 
but no luck.  So I moved the .keystore to C:\.keystore


C:\keytool -list -keystore c:\.keystore
Geben Sie das Keystore-Passwort ein:

Keystore-Typ: JKS
Keystore-Provider: SUN

Ihr Keystore enthlt 2 Eintrge.

consense, 04.05.2006, PrivateKeyEntry,
Zertifikatsfingerabdruck (MD5): 
4E:A5:87:1F:61:62:B2:72:48:C2:31:0D:EF:51:42:3C

tomcat, 28.03.2007, PrivateKeyEntry,
Zertifikatsfingerabdruck (MD5): 
2C:99:4C:D5:6F:94:BE:BE:EA:42:FF:9C:11:F1:A7:67


my keystore has two signatures with the password changeit.

In the server.xml I have the following connector.  (the default, 
uncommented, with the keystoreFile/keypass as parameters - keypass is 
not required).


Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
  keystoreFile=C:\.keystore
 keypass=changeit  /

Whenever I try to visit the following website with HTTP/HTTPS I get no 
response.  It takes ages, so I'm sure Tomcat is thinking about doing 
something, just not doing anything.  I've also tried from external 
computers - still no success.


https://localhost:8443/

The logs don't seem to show anything interesting
e.g. catalina -
28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
28.03.2007 18:14:51 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
28.03.2007 18:14:51 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
28.03.2007 18:14:51