RE: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-23 Thread eurotrans-Verlag
Hi,

 -Original Message-
 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
 Sent: Monday, August 22, 2011 5:35 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 5.5.28 on 64 bit windows server 2008.
 
 
 
 Allow me to clear that up:
 1) If no address= parameter is given in the Connector when running
 under Windows 2008/Vista/7, then the APR will only bind to the IPv6
 any address of [::] for the specified port.
 2) If you need IPv4 support under APR, you will need to either specify
 the address=0.0.0.0 parameter to get the IPv4 any address, or
 specify the actual IP address to listen on.
 3) If you need to support both IPv4  IPv6, you will need to set up two
 connectors, one for each protocol.
 4) This only applies if you are using the APR/native libraries.
 
 This was originally discussed on this list in May of 2010, and I think
 this was determined to be due to Microsoft deciding to implement two
 protocol stacks, but no one was exactly sure.
 
 Also, this only applies to APR/native version 1.1.12 and later, but I
 doubt anyone really wants to use the earlier versions any more.

This seems to only apply to Tomcat 5.5.x, however. When Tomcat 7.0.20 and
Tomcat 6.0.33 are run on a Windows 2008 machine without editing the config
and using the (default) HTTP-APR / AJP-APR connectors, they only bind to the
IPv4 any address. Only Tomcat 5.5.x binds to the IPv6 address, by default.
Maybe 7.0.x and 6.0.x have been changed to use the IPv4 any address by
default with the APR connectors, but not 5.5.x.


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



RE: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-23 Thread Jeffrey Janner
 -Original Message-
 From: eurotrans-Verlag [mailto:verlag.preis...@t-online.de]
 Sent: Tuesday, August 23, 2011 7:14 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 5.5.28 on 64 bit windows server 2008.
 
 Hi,
 
 
 This seems to only apply to Tomcat 5.5.x, however. When Tomcat 7.0.20
 and
 Tomcat 6.0.33 are run on a Windows 2008 machine without editing the
 config
 and using the (default) HTTP-APR / AJP-APR connectors, they only bind
 to the
 IPv4 any address. Only Tomcat 5.5.x binds to the IPv6 address, by
 default.
 Maybe 7.0.x and 6.0.x have been changed to use the IPv4 any address by
 default with the APR connectors, but not 5.5

Thanks for the update.  My experience so far has just been with 5.5.x, but we 
are moving to 6.0.x with our next software release, so I will be testing this 
soon.  It's good to hear that it appears to have been addressed.
Jeff
__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


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



RE: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-22 Thread Jeffrey Janner
This is a known issue with the APR library, though I don't know if a bug has 
ever been entered for it.  The APR connectors will only bind to IPv6-any by 
default.  If you search the list, you will see that it has been a problem for 
about a year, and, I think, only affects the implementation on Windows systems. 
 Therefore, the underlying issue may be a Windows one.

 -Original Message-
 From: Stefan Mayr [mailto:ste...@mayr-stefan.de]
 Sent: Sunday, August 21, 2011 10:16 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.5.28 on 64 bit windows server 2008.
 
 Hello,
 
 Am 21.08.2011 15:01, schrieb Venkata Surapaneni:
  Verlag,
 
   Both the suggestions worked and We are going to add address
 line to the server.xml file.
 
  Is the support for IP 4 dropped by plan or by accident ? If it is by
 plan, isn't it early ? There are still lot of applications running on
 IP 4 and it will be while before every one is ready for IP 6.
 
  If it is by accident, I believe the versions from 5.5.29 have this
 issue.
 
 I guess this is not a Tomcat issue. In your server.xml you habe the
 org.apache.catalina.core.AprLifecycleListener enabled which uses the
 dll
 named by Eurotrans-Verlag. It should be enough to remove this line from
 your config to disable native APR. Another solution might be to keep
 your old Tomcat version and update only the binaries für your operating
 system. Maybe your dlls are not meant for 64bit Windows. See
 http://tomcat.apache.org/download-native.cgi.
 
 For further JVM IPv6 documentation check first
 http://download.oracle.com/javase/6/docs/technotes/guides/net/ipv6_guid
 e/index.html
 Especially java.net.preferIPv4Stack is interesting to enforce a certain
 protocol behaviour.
 
   Stefan
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


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



RE: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-22 Thread Jeffrey Janner


 -Original Message-
 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
 Sent: Monday, August 22, 2011 9:08 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 5.5.28 on 64 bit windows server 2008.
 
 This is a known issue with the APR library, though I don't know if a
 bug has ever been entered for it.  The APR connectors will only bind to
 IPv6-any by default.  If you search the list, you will see that it has
 been a problem for about a year, and, I think, only affects the
 implementation on Windows systems.  Therefore, the underlying issue may
 be a Windows one.
 
Allow me to clear that up:
1) If no address= parameter is given in the Connector when running under 
Windows 2008/Vista/7, then the APR will only bind to the IPv6 any address of 
[::] for the specified port.
2) If you need IPv4 support under APR, you will need to either specify the 
address=0.0.0.0 parameter to get the IPv4 any address, or specify the 
actual IP address to listen on.
3) If you need to support both IPv4  IPv6, you will need to set up two 
connectors, one for each protocol.
4) This only applies if you are using the APR/native libraries.

This was originally discussed on this list in May of 2010, and I think this was 
determined to be due to Microsoft deciding to implement two protocol stacks, 
but no one was exactly sure.

Also, this only applies to APR/native version 1.1.12 and later, but I doubt 
anyone really wants to use the earlier versions any more.
__

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to 
the sender or telephone (512) 343-9100 and delete this transmission from your 
system.


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



Re: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-21 Thread André Warnier

Venkata Surapaneni wrote:

We have a requirement to stick to 5.x version as of now. We tried using the 
latest version of 5.5.x, but we encountered a issue. After installing the 
tomcat and if we check in the browser as localhost, it is working fine. But if 
we try accessing using IP address, then the Tomcat home page is not displayed. 
The result is same for all the versions later than 5.5.28. Not sure what is 
causing this or what needs to be done to fix this. So we started using 5.5.28.

That sounds like a network misconfiguration issue or a misconfiguration within Tomcat's 
server.xml, not a Tomcat problem per se.


1) download the latest version of Tomcat 5.5 and install it, even if it appears 
not to work
2) Note the exact problem carefully (including logfile message if any)
3) Remove all comments and sensitive information from the server.xml file, and copy and 
paste it in your next message.

Repeat : copy and paste, do not send it as an attachment; the list strips most 
attachmnts.

The point : better to use a known best version of Tomcat, and fix what appears to be a 
simple misconfiguration, rather than spending a lot of time looking for missing DLLs or 
the like.


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



RE: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-21 Thread Venkata Surapaneni

As suggested I have installed the latest version(5.5.33) of Tomcat 5.5.x. After 
installing I have typed in the browser 'http://localhost' to check if the 
tomcat is installed properly. The home page is displayed indicating that the 
installation is fine. Then I typed in ip address of the machine 
'http://10.4.2.10' and page not found page is displayed. This is exactly the 
same problem why we have downgraded the version. There are no changes or 
customizations made  to the installation. It was default installation and the 
only change is to use port 80 instead of 8080.

The below is the server.xml file.

?xml version=1.0 encoding=UTF-8?

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

  Service name=Catalina

Connector port=80 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

Connector port=8009
   enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

Engine name=Catalina defaultHost=localhost

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

  /Host

/Engine

  /Service

/Server



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Sunday, August 21, 2011 2:55 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.28 on 64 bit windows server 2008.

Venkata Surapaneni wrote:
 We have a requirement to stick to 5.x version as of now. We tried using the 
 latest version of 5.5.x, but we encountered a issue. After installing the 
 tomcat and if we check in the browser as localhost, it is working fine. But 
 if we try accessing using IP address, then the Tomcat home page is not 
 displayed. The result is same for all the versions later than 5.5.28. Not 
 sure what is causing this or what needs to be done to fix this. So we started 
 using 5.5.28.

That sounds like a network misconfiguration issue or a misconfiguration within 
Tomcat's server.xml, not a Tomcat problem per se.

1) download the latest version of Tomcat 5.5 and install it, even if it appears 
not to work
2) Note the exact problem carefully (including logfile message if any)
3) Remove all comments and sensitive information from the server.xml file, and 
copy and paste it in your next message.
Repeat : copy and paste, do not send it as an attachment; the list strips most 
attachmnts.

The point : better to use a known best version of Tomcat, and fix what 
appears to be a simple misconfiguration, rather than spending a lot of time 
looking for missing DLLs or the like.

-
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: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-21 Thread Venkata Surapaneni
And on top of this all the log look clean. Nothing looks suspicious.



As suggested I have installed the latest version(5.5.33) of Tomcat 5.5.x. After 
installing I have typed in the browser 'http://localhost' to check if the 
tomcat is installed properly. The home page is displayed indicating that the 
installation is fine. Then I typed in ip address of the machine 
'http://10.4.2.10' and page not found page is displayed. This is exactly the 
same problem why we have downgraded the version. There are no changes or 
customizations made  to the installation. It was default installation and the 
only change is to use port 80 instead of 8080.

The below is the server.xml file.

?xml version=1.0 encoding=UTF-8?

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

  Service name=Catalina

Connector port=80 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

Connector port=8009
   enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

Engine name=Catalina defaultHost=localhost

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

  /Host

/Engine

  /Service

/Server



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Sunday, August 21, 2011 2:55 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.28 on 64 bit windows server 2008.

Venkata Surapaneni wrote:
 We have a requirement to stick to 5.x version as of now. We tried using the 
 latest version of 5.5.x, but we encountered a issue. After installing the 
 tomcat and if we check in the browser as localhost, it is working fine. But 
 if we try accessing using IP address, then the Tomcat home page is not 
 displayed. The result is same for all the versions later than 5.5.28. Not 
 sure what is causing this or what needs to be done to fix this. So we started 
 using 5.5.28.

That sounds like a network misconfiguration issue or a misconfiguration within 
Tomcat's server.xml, not a Tomcat problem per se.

1) download the latest version of Tomcat 5.5 and install it, even if it appears 
not to work
2) Note the exact problem carefully (including logfile message if any)
3) Remove all comments and sensitive information from the server.xml file, and 
copy and paste it in your next message.
Repeat : copy and paste, do not send it as an attachment; the list strips most 
attachmnts.

The point : better to use a known best version of Tomcat, and fix what 
appears to be a simple misconfiguration, rather than spending a lot of time 
looking for missing DLLs or the like.

-
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: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-21 Thread eurotrans-Verlag
Hi,

 -Original Message-
 From: Venkata Surapaneni [mailto:vsurapan...@imedx.com]
 Sent: Sunday, August 21, 2011 12:26 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.28 on 64 bit windows server 2008.
 
 And on top of this all the log look clean. Nothing looks suspicious.
 
 ===
 =
 
 As suggested I have installed the latest version(5.5.33) of Tomcat
 5.5.x. After installing I have typed in the browser 'http://localhost'
 to check if the tomcat is installed properly. The home page is
 displayed indicating that the installation is fine. Then I typed in ip
 address of the machine 'http://10.4.2.10' and page not found page is
 displayed. This is exactly the same problem why we have downgraded the
 version. There are no changes or customizations made  to the
 installation. It was default installation and the only change is to use
 port 80 instead of 8080.
 
 (...)

I see the same behavior when installing Tomcat 5.5.33 (Core) on Windows 7 32
bit. Without changing anything in the config nor other Tomcat files, after
starting Tomcat, http://localhost:8080/ works, whereas
http://192.168.0.4:8080/ (the LAN IP) does not (Connecting to that port
fails). Note that also http://127.0.0.1:8080/ does not work.

From looking at netstat, it looks like Tomcat is only binding to the IPv6
addresses, but not to IPv4 addresses, so http://127.0.0.1:8080/ can't work.
Netstat's output for the Tomcat process (ABHÖREN means LISTENING):
  TCP[::]:8009  [::]:0 ABHÖREN 3028
  TCP[::]:8080  [::]:0 ABHÖREN 3028

The default installation of Tomcat 5.5.33 uses Tomcat Native 1.1.20. After I
remove/rename the tcnative-1.dll in Tomcat's bin directory and restarting
Tomcat, now Tomcat binds also to IPv4 addresses and http://127.0.0.1:8080/
(and the variant with the LAN IP) works.
Netstat: 
  TCP0.0.0.0:8009   0.0.0.0:0  ABH™REN 3596
  TCP0.0.0.0:8080   0.0.0.0:0  ABH™REN 3596
  TCP[::]:8009  [::]:0 ABH™REN 3596
  TCP[::]:8080  [::]:0 ABH™REN 3596

With Tomcat 7.0.20 (using TC Native) and without changing anything in the
config, it seems to only bind to the IPv4 addresses, but no IPv6.
  TCP0.0.0.0:8009   0.0.0.0:0  ABH™REN 2864
  TCP0.0.0.0:8080   0.0.0.0:0  ABH™REN 2864

When using Tomcat 7.0.20 (without Native), it binds to IPv4 as well as IPv6
(like Tomcat 5.5.33 without Native).


However I could get TC 5.5.33 to bind on the IPv4 address, by adding the
address attribute to the Connector element in server.xml. Maybe you
could try this and see if it solves the problem?

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true
   address=0.0.0.0 /


However it seems a bit strange that TC 5.5.33 is only binding to the IPv6
addresses by default/using Native.


Regards,

Konstantin Preißer


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



RE: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-21 Thread Venkata Surapaneni
Verlag,

Both the suggestions worked and We are going to add address line to the 
server.xml file.

Is the support for IP 4 dropped by plan or by accident ? If it is by plan, 
isn't it early ? There are still lot of applications running on IP 4 and it 
will be while before every one is ready for IP 6.

If it is by accident, I believe the versions from 5.5.29 have this issue.


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



Re: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-21 Thread Stefan Mayr

Hello,

Am 21.08.2011 15:01, schrieb Venkata Surapaneni:

Verlag,

 Both the suggestions worked and We are going to add address line to 
the server.xml file.

Is the support for IP 4 dropped by plan or by accident ? If it is by plan, 
isn't it early ? There are still lot of applications running on IP 4 and it 
will be while before every one is ready for IP 6.

If it is by accident, I believe the versions from 5.5.29 have this issue.


I guess this is not a Tomcat issue. In your server.xml you habe the 
org.apache.catalina.core.AprLifecycleListener enabled which uses the dll 
named by Eurotrans-Verlag. It should be enough to remove this line from 
your config to disable native APR. Another solution might be to keep 
your old Tomcat version and update only the binaries für your operating 
system. Maybe your dlls are not meant for 64bit Windows. See 
http://tomcat.apache.org/download-native.cgi.


For further JVM IPv6 documentation check first 
http://download.oracle.com/javase/6/docs/technotes/guides/net/ipv6_guide/index.html
Especially java.net.preferIPv4Stack is interesting to enforce a certain 
protocol behaviour.


Stefan






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



Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-20 Thread kiran surapaneni
We are setting up Tomcat 5.5.28 on 64 bit Windows server 2008. The
installation completes fine and also the tomcat seems to be starting
correctly. But in the log files the following exception is logged.

java.lang.UnsatisfiedLinkError: C:\Tomcat5.5\bin\tcnative-1.dll: Can't find
dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.apache.tomcat.jni.Library.init(Library.java:42)
at org.apache.tomcat.jni.Library.initialize(Library.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:83)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:757)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)




Any idea on how this can be resolved ?


Re: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-20 Thread André Warnier

kiran surapaneni wrote:
We are setting up Tomcat 5.5.28 on 64 bit Windows server 2008. 


Why are you doing this on a new system ? The current version of Tomcat is 7.0.20, and 
between Tomcat 5.5.28 (itself not the most recent version of Tomcat 5.5), there was 
already Tomcat 6.0 (current version 6.0.33).


Understand : it is not /forbidden/ to use an older version, but the level of support you 
will get will always be better on a more recent version.

Specially for issues such as the one you mention.

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



RE: Tomcat 5.5.28 on 64 bit windows server 2008.

2011-08-20 Thread Venkata Surapaneni
We have a requirement to stick to 5.x version as of now. We tried using the 
latest version of 5.5.x, but we encountered a issue. After installing the 
tomcat and if we check in the browser as localhost, it is working fine. But if 
we try accessing using IP address, then the Tomcat home page is not displayed. 
The result is same for all the versions later than 5.5.28. Not sure what is 
causing this or what needs to be done to fix this. So we started using 5.5.28.


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Sunday, August 21, 2011 3:15 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.28 on 64 bit windows server 2008.

kiran surapaneni wrote:
 We are setting up Tomcat 5.5.28 on 64 bit Windows server 2008.

Why are you doing this on a new system ? The current version of Tomcat is 
7.0.20, and between Tomcat 5.5.28 (itself not the most recent version of Tomcat 
5.5), there was already Tomcat 6.0 (current version 6.0.33).

Understand : it is not /forbidden/ to use an older version, but the level of 
support you will get will always be better on a more recent version.
Specially for issues such as the one you mention.

-
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: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-14 Thread Shaun Farrugia
 I would think the same but I'm wondering that Tomcat is doing.  Would it allow 
http requests to a JSP to be serviced before ALL of the servlets marked as 
load-on-startup are loaded?

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Saturday, February 12, 2011 1:04 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service 
requests?

On 11/02/2011 22:10, Shaun Farrugia wrote:
 I know that per the Servlet Spec 2.3 that Tomcat will start up the Listeners 
 first and then start up any servlets.  However, I am unsure (the spec is 
 ambigious) on when the Servlet container is supposed to start servicing 
 incoming requests.
 
 I have a Servlet that has a load-on-startup  setting of 2 and this 
 initializes some application settings.  Granted, the best avenue for this is 
 a Listener  I'm wondering if Tomcat will service HTTP requests before or 
 after the any load-on-startup Servlets are loaded.  Specically Tomcat 5.5.28 
 to 5.5.31.

Logically, load-on-startup servlets have to be loaded before requests can be 
serviced.

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: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-14 Thread Konstantin Kolinko
2011/2/14 Shaun Farrugia sfarru...@fry.com:
  I would think the same but I'm wondering that Tomcat is doing.  Would it 
 allow http requests to a JSP to be serviced before ALL of the servlets marked 
 as load-on-startup are loaded?


They will be loaded, but any failure will just mark this specific
servlet as unavailable and not webapp as a whole.

See loadOnStartup(..) and setAvailable(true) calls in StandardContext#start()

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



RE: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-14 Thread Shaun Farrugia
I'm not asking if they will or will not be loaded.  I am wondering if http 
requests to a JSP page are blocked before the servlets are loaded.



-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Monday, February 14, 2011 12:14 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service 
requests?

2011/2/14 Shaun Farrugia sfarru...@fry.com:
  I would think the same but I'm wondering that Tomcat is doing.  Would it 
 allow http requests to a JSP to be serviced before ALL of the servlets marked 
 as load-on-startup are loaded?


They will be loaded, but any failure will just mark this specific servlet as 
unavailable and not webapp as a whole.

See loadOnStartup(..) and setAvailable(true) calls in StandardContext#start()

-
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: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-14 Thread Konstantin Kolinko
The webapp won't service the requests, because it is unavailable,
until setAvailable(true) is called at the end of its start().

Connectors are start()'ed after the Engine, and thus after all the webapps.

2011/2/14 Shaun Farrugia sfarru...@fry.com:
 I'm not asking if they will or will not be loaded.  I am wondering if http 
 requests to a JSP page are blocked before the servlets are loaded.



 -Original Message-
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
 Sent: Monday, February 14, 2011 12:14 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually 
 service requests?

 2011/2/14 Shaun Farrugia sfarru...@fry.com:
  I would think the same but I'm wondering that Tomcat is doing.  Would it 
 allow http requests to a JSP to be serviced before ALL of the servlets 
 marked as load-on-startup are loaded?


 They will be loaded, but any failure will just mark this specific servlet as 
 unavailable and not webapp as a whole.

 See loadOnStartup(..) and setAvailable(true) calls in StandardContext#start()

 -
 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: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-12 Thread Mark Thomas
On 11/02/2011 22:10, Shaun Farrugia wrote:
 I know that per the Servlet Spec 2.3 that Tomcat will start up the Listeners 
 first and then start up any servlets.  However, I am unsure (the spec is 
 ambigious) on when the Servlet container is supposed to start servicing 
 incoming requests.
 
 I have a Servlet that has a load-on-startup  setting of 2 and this 
 initializes some application settings.  Granted, the best avenue for this is 
 a Listener  I'm wondering if Tomcat will service HTTP requests before or 
 after the any load-on-startup Servlets are loaded.  Specically Tomcat 5.5.28 
 to 5.5.31.

Logically, load-on-startup servlets have to be loaded before requests
can be serviced.

Mark



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



Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-11 Thread Shaun Farrugia
I know that per the Servlet Spec 2.3 that Tomcat will start up the Listeners 
first and then start up any servlets.  However, I am unsure (the spec is 
ambigious) on when the Servlet container is supposed to start servicing 
incoming requests.

I have a Servlet that has a load-on-startup  setting of 2 and this initializes 
some application settings.  Granted, the best avenue for this is a Listener 
 I'm wondering if Tomcat will service HTTP requests before or after the any 
load-on-startup Servlets are loaded.  Specically Tomcat 5.5.28 to 5.5.31.




Re: Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28.

2010-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick,

On 8/11/2010 9:38 AM, Nick Langlois wrote:
 Get HTTP/1.1 400 Bad Request response back when Tomcat receives an HTTP
 simple request (no HTTP version specified in request line).

[snip]

 Example of expected behaviour:
 
 wcars1u7-unit1# telnet localhost 
 Trying 127.0.0.1...
 Connected to localhost.
 Escape charac= ter is '^]'.
 GET /index.html
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN

Agreed. Wow. HTML 3.2? No wonder you're supporting HTTP/0.9. :(

 html
 head
 titleZack Networks Application Server/title
 style type=text/css

If you're doing HTML 3.2, you might want your style content to be in
!-- here -- instead of bare like that.

 Behaviour I'm seeing:
 
 wcars1u7-unit1# telnet localhost 8080
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 GET /index.html
 HTTP/1.1 400 Bad Request
 Server: Apache-Coyote/1.1

It looks like there's something wrong, here: Tomcat is responding
immediately with a non-version-matching response (it says HTTP/1.1 and
should be using at most HTTP/1.0) and then supplying response headers,
which aren't legal at the 0.9 level.

Several things may be happening here:

1. Tomcat is assuming HTTP 1.0, and then everything above is normal.
   I'll have to keep reading through the specs to see what the default
   HTTP version is supposed to be... I wouldn't be surprised if it's
   1.0 and not 0.9.

2. Tomcat has a bug (actually Coyote).

Here's what I observe in my environment.

Using Tomcat 6.0.26

$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
GET /mywebapp/index.html
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
  http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html lang=en xmlns=http://www.w3.org/1999/xhtml;
...

$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
GET /mywebapp/index.html HTTP/1.0

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/3136-1280422452000
Last-Modified: Thu, 29 Jul 2010 16:54:12 GMT
Content-Type: text/html
Content-Length: 3136
Date: Fri, 13 Aug 2010 13:08:34 GMT
Connection: close

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
  http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html lang=en xmlns=http://www.w3.org/1999/xhtml;
...

$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
GET /mywebapp/index.html HTTP/1.1
Host: myhost

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/3136-1280422452000
Last-Modified: Thu, 29 Jul 2010 16:54:12 GMT
Content-Type: text/html
Content-Length: 3136
Date: Fri, 13 Aug 2010 13:04:24 GMT
Connection: close

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
  http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html lang=en xmlns=http://www.w3.org/1999/xhtml;
...

(Note that a Host request header is required in HTTP/1.1).

Using Tomcat 5.5.27

$ telnet localhost 8081
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
GET /myotherwebapp/index.html
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
...

$ telnet localhost 8081
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
GET /cschultz-resource-search/index.html HTTP/1.0

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Date: Fri, 13 Aug 2010 13:31:57 GMT
Connection: close

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
...

$ telnet localhost 8081
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
GET /cschultz-resource-search/index.html HTTP/1.1
Host: dev.chadis.com

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Transfer-Encoding: chunked
Date: Fri, 13 Aug 2010 13:32:37 GMT

43d
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
...
0

Odd that the HTTP/1.1 response was chunked for some reason.

I don't have a 5.5.29 version available to test right now, but these two
versions appear to behave appropriately. Do you have time to check the
ChengeLog to see if anything interesting changed in the Coyote portion
of the project?

 wcars1u7-unit1#
 
 With debug enabled, tomcat logs the following thrown exception:
 
 2010-07-29 15:49:22,068 [http-8080-Processor24] DEBUG
 
 org.apache.coyote.http11.Http11Processor - Error parsing HTTP request header
 
 java.lang.IllegalArgumentException: Invalid character (CR or LF) found
 in method name

That certainly looks weird. What else can you tell us about your
environment? Could you provide a wireshark or tcpdump trace of the
conversation, or at least the request part?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - 

Re: Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28.

2010-08-13 Thread Nick Langlois
Hi Chris,
 thanks for the response.  I've already done quite a bit of
analysis and reported it in the following bug:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49718

In summary, the issue was introduced in 5.5.28 as a fix for:

46984: Reject requests with invalid HTTP methods with a 400 rather than a 501.


The issue was originally reported to me by one of our design teams
against Tomcat 5.5.29 on
Java 1.5.0u22, on Solaris 10u8.  However, neither the physical
platform, nor the Java version
seem to have any bearing on the issue.

Following is the proof that the issue was introduced in 5.5.28.

Here is the simple request test executed in a vanilla 5.5.27
deployment that demonstrates the
expected simple response:

$ cd apache-tomcat-5.5.27
$ ls
bin conf logsRELEASE-NOTES  server  temp work
common  LICENSE  NOTICE  RUNNING.txtshared  webapps
$ cd bin
$ ./startup.sh
Using CATALINA_BASE:   /localdisk/data/apps/apache-tomcat-5.5.27
Using CATALINA_HOME:   /localdisk/data/apps/apache-tomcat-5.5.27
Using CATALINA_TMPDIR: /localdisk/data/apps/apache-tomcat-5.5.27/temp
Using JRE_HOME:   /localdisk/data/apps/jdk1.5.0_17
$
$ ps -ef | grep java
nickl21022 1 37 14:49 pts/14   00:00:01
/localdisk/data/apps/jdk1.5.0_17/bin/java
-Djava.util.logging.config.file=/localdisk/data/apps/apache-tomcat-5.5.27/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/localdisk/data/apps/apache-tomcat-5.5.27/common/endorsed
-classpath 
:/localdisk/data/apps/apache-tomcat-5.5.27/bin/bootstrap.jar:/localdisk/data/apps/apache-tomcat-5.5.27/bin/commons-logging-api.jar
-Dcatalina.base=/localdisk/data/apps/apache-tomcat-5.5.27
-Dcatalina.home=/localdisk/data/apps/apache-tomcat-5.5.27
-Djava.io.tmpdir=/localdisk/data/apps/apache-tomcat-5.5.27/temp
org.apache.catalina.startup.Bootstrap start
nickl21031  4529  0 14:49 pts/14   00:00:00 grep java
$
$
$
$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html
htmlheadtitleApache Tomcat/5.5.27 - Error
report/titlestyle!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color :
#525D76;}--/style /headbodyh1HTTP Status 404 -
/index.html/h1HR size=1 noshade=noshadepbtype/b Status
report/ppbmessage/b
u/index.html/u/ppbdescription/b uThe requested resource
(/index.html) is not available./u/pHR size=1
noshade=noshadeh3Apache
Tomcat/5.5.27/h3/body/htmlConnection closed by foreign host.
$


Here is the same simple request test executed in a vanilla 5.5.28
deployment that demonstrates
the invalid HTTP/1.1 error response:
$ ./shutdown.sh
Using CATALINA_BASE:   /localdisk/data/apps/apache-tomcat-5.5.27
Using CATALINA_HOME:   /localdisk/data/apps/apache-tomcat-5.5.27
Using CATALINA_TMPDIR: /localdisk/data/apps/apache-tomcat-5.5.27/temp
Using JRE_HOME:   /localdisk/data/apps/jdk1.5.0_17
$
$
$ pwd
/localdisk/data/apps/apache-tomcat-5.5.27/bin
$ cd ../../apache-tomcat-5.5.28/
$
$
$
$ cd bin
$
$
$ ps -ef | grep java
nickl21108  4529  0 14:51 pts/14   00:00:00 grep java
$
$
$ ./startup.sh
Using CATALINA_BASE:   /localdisk/data/apps/apache-tomcat-5.5.28
Using CATALINA_HOME:   /localdisk/data/apps/apache-tomcat-5.5.28
Using CATALINA_TMPDIR: /localdisk/data/apps/apache-tomcat-5.5.28/temp
Using JRE_HOME:/localdisk/data/apps/jdk1.5.0_17
Using CLASSPATH:
/localdisk/data/apps/apache-tomcat-5.5.28/bin/bootstrap.jar
$
$
$ ps -ef | grep java
nickl21120 1 69 14:51 pts/14   00:00:02
/localdisk/data/apps/jdk1.5.0_17/bin/java
-Djava.util.logging.config.file=/localdisk/data/apps/apache-tomcat-5.5.28/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/localdisk/data/apps/apache-tomcat-5.5.28/common/endorsed
-classpath /localdisk/data/apps/apache-tomcat-5.5.28/bin/bootstrap.jar
-Dcatalina.base=/localdisk/data/apps/apache-tomcat-5.5.28
-Dcatalina.home=/localdisk/data/apps/apache-tomcat-5.5.28
-Djava.io.tmpdir=/localdisk/data/apps/apache-tomcat-5.5.28/temp
org.apache.catalina.startup.Bootstrap start
nickl21130  4529  0 14:51 pts/14   00:00:00 grep java
$
$
$
$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Fri, 13 Aug 2010 18:51:28 GMT
Connection: close

0

Connection closed by foreign host.
$


I've also removed the defective

Re: Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28.

2010-08-13 Thread Nick Langlois
On Thu, Aug 12, 2010 at 5:02 PM, Pid p...@pidster.com wrote:

 On 11/08/2010 14:38, Nick Langlois wrote:
  Hi,
 I need confirmation of an issue I've encountered while upgrading from
  Apache Tomcat 5.5.25 to 5.5.29 running in Java 1.5.0_22 on Solaris 10u8.
  Unfortunately, I'm going about this backwards as I've already created a
 bug
  report.  The tomcat site, however, recommends that confirmation should be
  received as to whether a suspected bug is a bug or not on the tomcat user
  mailing list.
 
  Issue found in: Apache Tomcat 5.5.29
  Issue introduced in: Apache Tomcat 5.5.28
 
 
  Issue:
 
  Get HTTP/1.1 400 Bad Request response back when Tomcat receives an HTTP
  simple request (no HTTP version specified in request line).
 
 
  Expected behaviour:
 
  According to its documentation, tomcat 5.5.x's HTTP connector is
 compliant
  with the HTTP/1.1 RFC, and will seamlessly transition to HTTP/1.0 if an
  HTTP/1.0 request is received.  For backwards compatibility (I assume),
 the
  HTTP 1.0 RFC handles HTTP 0.9 requests for older clients, referring to
 these
  requests as simple requests in the RFC.  Thus, according to the RFC,
  tomcat should respond with a simple response should it receive a
 simple
  request.
 
 
  Example of expected behaviour:
 
  wcars1u7-unit1# telnet localhost 
  Trying 127.0.0.1...
  Connected to localhost.
  Escape charac= ter is '^]'.
  GET /index.html
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
  html
  head
  titleZack Networks Application Server/title
  style type=text/css
  BODY {margin: 64px;
  background: #ff;
  cursor: default;}
  H1, H2, H3, H4, H5, H6
  {font-family: Zack-Networks-Primary, Arial-Bold, Arial,
  Helvetica, Sans-Serif;
  color: #003399;}
  /style
  /head
 
  body
  h2No application is available at this URL. Please see the product
  documentation for the correct URL./h2
  /body
  /html
  Connection to localhost closed by foreign host.
  wcars1u7-unit1#
 
 
  Behaviour I'm seeing:
 
  wcars1u7-unit1# telnet localhost 8080
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  GET /index.html
  HTTP/1.1 400 Bad Request
  Server: Apache-Coyote/1.1
  Transfer-Encoding: chunked
  Date: Tue, 10 Aug 2010 18:32:36 GMT
  Connection: close
 
  0
 
  Connection to localhost closed by foreign host.
  wcars1u7-unit1#
 
 
  With debug enabled, tomcat logs the following thrown exception:
 
  2010-07-29 15:49:22,068 [http-8080-Processor24] DEBUG
 
  org.apache.coyote.http11.Http11Processor - Error parsing HTTP request
 header
 
  java.lang.IllegalArgumentException: Invalid character (CR or LF) found
  in method name
   at
 org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:474)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
 
   at
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:595)
 
  Further information can be found in the bug report:
 
  https://issues.apache.org/bugzilla/show_bug.cgi?id=3D49718
 
  Can someone please confirm this issue?
  Is it possible to get some indication as to if, when, and in what version
  this issue will be fixed in the Tomcat 5.5.x release?

 I'm guessing that no-ones replying, because there's no known issue here.

 Are you sure the issue isn't a result of the means of making the test
 request?


I'm sure, as I've been doing it for years.  It's great for debugging in
environment where you may not have any access to a system other than through
an established ssh or telnet session to the server
for security reasons (like at many of our customers).

You can do something similar to debug HTTPS requests using the openssl
s_client option.

In either case, you just must ensure you send your HTTP request before the
server side times out and
closes the TCP connection.



 p




Re: Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28.

2010-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick,

On 8/13/2010 3:16 PM, Nick Langlois wrote:
  thanks for the response.  I've already done quite a bit of
 analysis and reported it in the following bug:
 https://issues.apache.org/bugzilla/show_bug.cgi?id=49718

I apologize for not reading the bug report first. I'll go take a look
over there and see what I can reproduce. My tests were with Tomcat
5.5.27 - before the fix - so everything looks good to me.

 In summary, the issue was introduced in 5.5.28 as a fix for:
 
 46984: Reject requests with invalid HTTP methods with a 400 rather than a 501.

I'll have to look at this patch a bit more. It's clear that something
isn't working properly, there, because your request was perfectly valid
and you got that weird CR or LF error, which is inaccurate at least.

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

iEYEARECAAYFAkxlpIcACgkQ9CaO5/Lv0PCgmgCfQ4c2i729lBMsZeAFxSgNg71y
BHsAnjwJDF7aOb3F9HSje9Etz7DrWXP/
=6xGS
-END PGP SIGNATURE-

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



Re: Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28.

2010-08-12 Thread Pid
On 11/08/2010 14:38, Nick Langlois wrote:
 Hi,
I need confirmation of an issue I've encountered while upgrading from
 Apache Tomcat 5.5.25 to 5.5.29 running in Java 1.5.0_22 on Solaris 10u8.
 Unfortunately, I'm going about this backwards as I've already created a bug
 report.  The tomcat site, however, recommends that confirmation should be
 received as to whether a suspected bug is a bug or not on the tomcat user
 mailing list.
 
 Issue found in: Apache Tomcat 5.5.29
 Issue introduced in: Apache Tomcat 5.5.28
 
 
 Issue:
 
 Get HTTP/1.1 400 Bad Request response back when Tomcat receives an HTTP
 simple request (no HTTP version specified in request line).
 
 
 Expected behaviour:
 
 According to its documentation, tomcat 5.5.x's HTTP connector is compliant
 with the HTTP/1.1 RFC, and will seamlessly transition to HTTP/1.0 if an
 HTTP/1.0 request is received.  For backwards compatibility (I assume), the
 HTTP 1.0 RFC handles HTTP 0.9 requests for older clients, referring to these
 requests as simple requests in the RFC.  Thus, according to the RFC,
 tomcat should respond with a simple response should it receive a simple
 request.
 
 
 Example of expected behaviour:
 
 wcars1u7-unit1# telnet localhost 
 Trying 127.0.0.1...
 Connected to localhost.
 Escape charac= ter is '^]'.
 GET /index.html
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
 html
 head
 titleZack Networks Application Server/title
 style type=text/css
 BODY {margin: 64px;
 background: #ff;
 cursor: default;}
 H1, H2, H3, H4, H5, H6
 {font-family: Zack-Networks-Primary, Arial-Bold, Arial,
 Helvetica, Sans-Serif;
 color: #003399;}
 /style
 /head
 
 body
 h2No application is available at this URL. Please see the product
 documentation for the correct URL./h2
 /body
 /html
 Connection to localhost closed by foreign host.
 wcars1u7-unit1#
 
 
 Behaviour I'm seeing:
 
 wcars1u7-unit1# telnet localhost 8080
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 GET /index.html
 HTTP/1.1 400 Bad Request
 Server: Apache-Coyote/1.1
 Transfer-Encoding: chunked
 Date: Tue, 10 Aug 2010 18:32:36 GMT
 Connection: close
 
 0
 
 Connection to localhost closed by foreign host.
 wcars1u7-unit1#
 
 
 With debug enabled, tomcat logs the following thrown exception:
 
 2010-07-29 15:49:22,068 [http-8080-Processor24] DEBUG
 
 org.apache.coyote.http11.Http11Processor - Error parsing HTTP request header
 
 java.lang.IllegalArgumentException: Invalid character (CR or LF) found
 in method name
  at 
 org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:474)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
 
  at 
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
  at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
  at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 
  at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
  at java.lang.Thread.run(Thread.java:595)
 
 Further information can be found in the bug report:
 
 https://issues.apache.org/bugzilla/show_bug.cgi?id=3D49718
 
 Can someone please confirm this issue?
 Is it possible to get some indication as to if, when, and in what version
 this issue will be fixed in the Tomcat 5.5.x release?

I'm guessing that no-ones replying, because there's no known issue here.

Are you sure the issue isn't a result of the means of making the test
request?


p



signature.asc
Description: OpenPGP digital signature


Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28.

2010-08-11 Thread Nick Langlois
Hi,
   I need confirmation of an issue I've encountered while upgrading from
Apache Tomcat 5.5.25 to 5.5.29 running in Java 1.5.0_22 on Solaris 10u8.
Unfortunately, I'm going about this backwards as I've already created a bug
report.  The tomcat site, however, recommends that confirmation should be
received as to whether a suspected bug is a bug or not on the tomcat user
mailing list.

Issue found in: Apache Tomcat 5.5.29
Issue introduced in: Apache Tomcat 5.5.28


Issue:

Get HTTP/1.1 400 Bad Request response back when Tomcat receives an HTTP
simple request (no HTTP version specified in request line).


Expected behaviour:

According to its documentation, tomcat 5.5.x's HTTP connector is compliant
with the HTTP/1.1 RFC, and will seamlessly transition to HTTP/1.0 if an
HTTP/1.0 request is received.  For backwards compatibility (I assume), the
HTTP 1.0 RFC handles HTTP 0.9 requests for older clients, referring to these
requests as simple requests in the RFC.  Thus, according to the RFC,
tomcat should respond with a simple response should it receive a simple
request.


Example of expected behaviour:

wcars1u7-unit1# telnet localhost 
Trying 127.0.0.1...
Connected to localhost.
Escape charac= ter is '^]'.
GET /index.html

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
html
head
titleZack Networks Application Server/title
style type=text/css
BODY {margin: 64px;
background: #ff;
cursor: default;}
H1, H2, H3, H4, H5, H6
{font-family: Zack-Networks-Primary, Arial-Bold, Arial,
Helvetica, Sans-Serif;
color: #003399;}
/style
/head

body
h2No application is available at this URL. Please see the product
documentation for the correct URL./h2
/body
/html
Connection to localhost closed by foreign host.
wcars1u7-unit1#


Behaviour I'm seeing:

wcars1u7-unit1# telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Tue, 10 Aug 2010 18:32:36 GMT
Connection: close

0

Connection to localhost closed by foreign host.
wcars1u7-unit1#


With debug enabled, tomcat logs the following thrown exception:

2010-07-29 15:49:22,068 [http-8080-Processor24] DEBUG

org.apache.coyote.http11.Http11Processor - Error parsing HTTP request header

java.lang.IllegalArgumentException: Invalid character (CR or LF) found
in method name
 at 
org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:474)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

 at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Thread.java:595)

Further information can be found in the bug report:

https://issues.apache.org/bugzilla/show_bug.cgi?id=3D49718

Can someone please confirm this issue?
Is it possible to get some indication as to if, when, and in what version
this issue will be fixed in the Tomcat 5.5.x release?

Regards,

Nick.


Re: R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-07 Thread Pid *
On 7 Jun 2010, at 01:24, ago...@libero.it ago...@libero.it wrote:

 HI

 for right knowledge
 I am able, now, to reproduce the socket error that occur.

 In my lan i have a proxy server (192.168.0.254)  so on  server
 win2003 on
 which i have tomcat5.5.28 (IP: 192..168.0.100) if i don't use in IE
 proxy
 configuration all it's ok but if i configure proxy server and port :
 if i don't
 specify a server IP(tomcat server) as exception (i.e example
 192.168.0.100) i
 have the error on socket , meanwhile if i specy this IP i don't have
 a error.

So the only clients that are seeing this problem are ones on your
internal network?


p



  Now how can i configure Tomcat  so that it is insensible to proxy
 configuration on IE namely tomcat don't have a error on socket if i
 have or
 don't have  proxy configuration?
 I already use Remote Address Filter on  server.xml but this isn't
 useful.
 Best regards
 Agostino

 Messaggio originale
 Da: p...@pidster.com
 Data: 05/06/2010 22.06
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R:  Re: intermittent SocketException on startup tomcat
 5.5.28 and
 under JBOSS 4.2.3GA

 On 05/06/2010 20:56, ago...@libero.it wrote:
 Thanks for replay.
 I'm sorry
 I have missed e-mail regard server .xml with romment removed.
 so I attached this file.


 regard Context path= docBase=SIT// i think that a mistake the
 correct
 form is in the file.
 SIT is name of my application.


 I don't able to match timestamp of error whith a request because i
 don't
 know
 how to trace all request in tomcat conaitner. How can do it?

 Configure an access log.

 http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html


 p

 I have essentially only catalina_log (with error)  and
 standard_out_log
 (in
 which i have application SIT stdout message).
 Best regards
 Agostino

 Messaggio originale
 Da: p...@pidster.com
 Data: 05/06/2010 21.26
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup
 tomcat
 5.5.28 and under JBOSS 4.2.3GA

 On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks

 The question started in
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.
 mbox/thread?
 3
 on same thread.

 Now i have reduce the number of user (about 50 user simultanely)
 on a
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28,
 jdk.
 1.6.16,
 IIS
 (with certificate instaled) on port 80 that redirect  request
 from port
 80
 to
 8080 tomcat connector   server. Besides https request are directly
 managed
 from
 second connector, on port 443 of tomcat.)

 So  the error referred, sometime occours. In particular i have
 noted
 that
 this
 error rise when a lot user make  login in the application (  in
 a few
 second).
 Probably  this may be depend from a lot tcp/ip connection, but,
 this
 using
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003
 server
 and/or
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.

 The part of default server.xml of tomcat  that i have change(2
 connector
 configuration an docbase) is :

 I guess you missed the bit about comments removed.
 Why not backup that file, and then create a server.xml with all
 of the
 comments removed?

 ...

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
 port=8080maxHttpHeaderSize=8192
   maxThreads=350 minSpareThreads=50
 maxSpareThreads=
 100
   enableLookups=false redirectPort=443
 acceptCount=
 100
   connectionTimeout=2
 disableUploadTimeout=true /


!-- Note : To disable connection timeouts, set
 connectionTimeout value
 to 0 --

!-- Note : To use gzip compression you could set the following
 properties
 :

   compression=on
   compressionMinSize=2048
   noCompressionUserAgents=gozilla, traviata
   compressableMimeType=text/html,text/xml
--

!-- Define a SSL HTTP/1.1 Connector on port 8443 --
!--
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 /
--

Connector port=443 maxHttpHeaderSize=10240
   maxThreads=150 minSpareThreads=25
 maxSpareThreads=
 100
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=C:\CertificatiHTTPS\aaa.pfx
   keystorePass=
   keystoreType=PKCS12
   /


!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=443
 protocol=AJP/1.
 3
 /

!-- Define a Proxied HTTP/1.1

R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-06 Thread ago...@libero.it
HI  

for right knowledge
I am able, now, to reproduce the socket error that occur.

In my lan i have a proxy server (192.168.0.254)  so on  server win2003 on 
which i have tomcat5.5.28 (IP: 192..168.0.100) if i don't use in IE proxy 
configuration all it's ok but if i configure proxy server and port : if i don't 
specify a server IP(tomcat server) as exception (i.e example 192.168.0.100) i 
have the error on socket , meanwhile if i specy this IP i don't have a error.

  Now how can i configure Tomcat  so that it is insensible to proxy 
configuration on IE namely tomcat don't have a error on socket if i have or 
don't have  proxy configuration?
I already use Remote Address Filter on  server.xml but this isn't useful.
Best regards
Agostino

Messaggio originale
Da: p...@pidster.com
Data: 05/06/2010 22.06
A: Tomcat Users Listusers@tomcat.apache.org
Ogg: Re: R:  Re: intermittent SocketException on startup tomcat 5.5.28 and 
under JBOSS 4.2.3GA

On 05/06/2010 20:56, ago...@libero.it wrote:
 Thanks for replay.
 I'm sorry 
 I have missed e-mail regard server .xml with romment removed.
 so I attached this file.
 
 
 regard Context path= docBase=SIT// i think that a mistake the 
correct 
 form is in the file.
 SIT is name of my application. 
 
 
 I don't able to match timestamp of error whith a request because i don't 
know 
 how to trace all request in tomcat conaitner. How can do it?

Configure an access log.

 http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html


p

 I have essentially only catalina_log (with error)  and standard_out_log 
(in 
 which i have application SIT stdout message).
 Best regards
 Agostino
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 05/06/2010 21.26
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup 
tomcat 
 5.5.28 and under JBOSS 4.2.3GA

 On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks 

 The question started in 
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.
mbox/thread?
 3
 on same thread.

 Now i have reduce the number of user (about 50 user simultanely) on a   
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.
1.6.16, 
 IIS 
 (with certificate instaled) on port 80 that redirect  request from port 
80 
 to 
 8080 tomcat connector   server. Besides https request are directly 
managed 
 from 
 second connector, on port 443 of tomcat.)

 So  the error referred, sometime occours. In particular i have noted 
that 
 this 
 error rise when a lot user make  login in the application (  in a few 
 second).
 Probably  this may be depend from a lot tcp/ip connection, but, this 
 using 
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003 server 
 and/or 
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.

 The part of default server.xml of tomcat  that i have change(2 
connector 
 configuration an docbase) is :

 I guess you missed the bit about comments removed.
 Why not backup that file, and then create a server.xml with all of the
 comments removed?

 ...

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector
 port=8080maxHttpHeaderSize=8192
maxThreads=350 minSpareThreads=50 maxSpareThreads=
100
enableLookups=false redirectPort=443 acceptCount=
100
connectionTimeout=2 disableUploadTimeout=true /


!-- Note : To disable connection timeouts, set connectionTimeout value
  to 0 --

!-- Note : To use gzip compression you could set the following 
properties 
 :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
 !--
 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 /
 --

 Connector port=443 maxHttpHeaderSize=10240 
maxThreads=150 minSpareThreads=25 maxSpareThreads=
 100 
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS 
   keystoreFile=C:\CertificatiHTTPS\aaa.pfx
   keystorePass=
   keystoreType=PKCS12
   /


 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.
3 
 /

 !-- Define a Proxied HTTP/1.1 Connector on port 8082 --
 !-- See proxy

Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread Pid *
On 5 Jun 2010, at 04:33, ago...@libero.it ago...@libero.it wrote:

 Hi
I m very tired because the intermittent socket close exception
 reappear.

We now use tomcat 5.5.28 on win2003 ED SO and jdk 1.6.16.
The error that occours is:

4-giu-2010 7.48.35

What is the above? It doesn't look familiar to me.

Can you refresh our memories and please post the current server.xml
(comments removed)?


p

 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
 (PoolTcpEndpoint.
 java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
at java.lang.Thread.run(Unknown Source)
 4-giu-2010 7.48.56 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 4-giu-2010 8.04.39 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
 (PoolTcpEndpoint.
 java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
at java.lang.Thread.run(Unknown Source)
 4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
 (PoolTcpEndpoint.
 java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
at java.lang.Thread.run(Unknown Source)
 4-giu-2010 8.05.21 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 4-giu-2010 8.06.55 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method) .

This error slow down the application.

we don't have  firewall, pool of tcp connection seem correct, the
 processor
 and memory usage are normal (10% CPU and 50% RAM).


 How can  i investigte who cuse the problem?  Jconsole observe memory
 but seem
 not tcp connection.
How can i understand why i have close socket?
whath are flakey router error?
How can i understand if i have saturate the connection on SO?

Thank for all suggest
Best regards
Agostino




 Messaggio originale
 Da: chuck.caldar...@unisys.com
 Data: 24/05/2010 15.38
 A: Tomcat Users Listusers@tomcat.apache.org, ago...@libero.it
 ago...@libero.it
 Ogg: RE: Re: intermittent SocketException on startup tomcat 5.5.28
 and under
 JBOSS 4.2.3GA

 From: ago...@libero.it [mailto:ago...@libero.it]
 Subject: R: Re: intermittent SocketException on startup tomcat
 5.5.28
 and under JBOSS 4.2.3GA

 ERROR [org.apache.tomcat.util.net.JIoEndpoint]
 Socket accept failed
 java.net.SocketException: socket closed

 This isn't really a problem with the Tomcat server - it usually
 means the
 client terminated the connection attempt before the socket

Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread Rainer Jung

On 05.06.2010 09:23, Pid * wrote:

On 5 Jun 2010, at 04:33, ago...@libero.itago...@libero.it  wrote:


Hi
I m very tired because the intermittent socket close exception
reappear.

We now use tomcat 5.5.28 on win2003 ED SO and jdk 1.6.16.
The error that occours is:

4-giu-2010 7.48.35


Date and Time in a bit strange format: 4th of June 2010, 07:48:35.

Rainer


What is the above? It doesn't look familiar to me.

Can you refresh our memories and please post the current server.xml
(comments removed)?


p


org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint ServerSocket
[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
4-giu-2010 7.48.56 org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
AVVERTENZA: Reinitializing ServerSocket
4-giu-2010 8.04.39 org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
GRAVE: Endpoint ServerSocket
[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
AVVERTENZA: Reinitializing ServerSocket
4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
GRAVE: Endpoint ServerSocket
[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
4-giu-2010 8.05.21 org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
AVVERTENZA: Reinitializing ServerSocket
4-giu-2010 8.06.55 org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
GRAVE: Endpoint ServerSocket
[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method) .

This error slow down the application.

we don't have  firewall, pool of tcp connection seem correct, the
processor
and memory usage are normal (10% CPU and 50% RAM).


How can  i investigte who cuse the problem?  Jconsole observe memory
but seem
not tcp connection.
How can i understand why i have close socket?
whath are flakey router error?
How can i understand if i have saturate the connection on SO?

Thank for all suggest
Best regards
Agostino





Messaggio originale
Da: chuck.caldar...@unisys.com
Data: 24/05/2010 15.38
A: Tomcat Users Listusers@tomcat.apache.org, ago...@libero.it

ago...@libero.it

Ogg: RE: Re: intermittent SocketException on startup tomcat 5.5.28
and under

JBOSS 4.2.3GA



From: ago...@libero.it [mailto:ago...@libero.it]
Subject: R: Re: intermittent SocketException on startup tomcat
5.5.28
and under JBOSS 4.2.3GA

ERROR [org.apache.tomcat.util.net.JIoEndpoint]
Socket accept failed
java.net.SocketException: socket closed


This isn't really a problem with the Tomcat server - it usually
means the

client terminated

Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread Pid
On 05/06/2010 10:09, Rainer Jung wrote:
 On 05.06.2010 09:23, Pid * wrote:
 On 5 Jun 2010, at 04:33, ago...@libero.itago...@libero.it  wrote:

 Hi
 I m very tired because the intermittent socket close exception
 reappear.

 We now use tomcat 5.5.28 on win2003 ED SO and jdk 1.6.16.
 The error that occours is:

 4-giu-2010 7.48.35
 
 Date and Time in a bit strange format: 4th of June 2010, 07:48:35.

Ah. Yes.  :)


p

 What is the above? It doesn't look familiar to me.

 Can you refresh our memories and please post the current server.xml
 (comments removed)?


 p

 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at java.net.ServerSocket.accept(Unknown Source)
 at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
 (PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 4-giu-2010 7.48.56 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 4-giu-2010 8.04.39 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at java.net.ServerSocket.accept(Unknown Source)
 at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
 (PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at java.net.ServerSocket.accept(Unknown Source)
 at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
 (PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 4-giu-2010 8.05.21 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 4-giu-2010 8.06.55 org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method) .

 This error slow down the application.

 we don't have  firewall, pool of tcp connection seem correct, the
 processor
 and memory usage are normal (10% CPU and 50% RAM).


 How can  i investigte who cuse the problem?  Jconsole observe memory
 but seem
 not tcp connection.
 How can i understand why i have close socket?
 whath are flakey router error?
 How can i understand if i have saturate the connection on SO?

 Thank for all suggest
 Best regards
 Agostino




 Messaggio originale
 Da: chuck.caldar...@unisys.com
 Data: 24/05/2010 15.38
 A: Tomcat Users Listusers@tomcat.apache.org, ago...@libero.it
 ago...@libero.it
 Ogg: RE: Re: intermittent SocketException on startup tomcat 5.5.28
 and under
 JBOSS 4.2.3GA

 From: ago...@libero.it [mailto:ago...@libero.it]
 Subject: R: Re: intermittent SocketException on startup tomcat
 5.5.28
 and under JBOSS 4.2.3GA

 ERROR

R: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread ago...@libero.it
Thanks 

The question started in 
http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.mbox/thread?3
on same thread.

Now i have reduce the number of user (about 50 user simultanely) on a   
win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.1.6.16, IIS 
(with certificate instaled) on port 80 that redirect  request from port 80 to 
8080 tomcat connector   server. Besides https request are directly managed from 
second connector, on port 443 of tomcat.)

So  the error referred, sometime occours. In particular i have noted that this 
error rise when a lot user make  login in the application (  in a few second).
Probably  this may be depend from a lot tcp/ip connection, but, this using 
netstat -na not appear.
May be i must increase the number on maxTcpConnection on win2003 server and/or 
reduce tcpDelay.
Please give me a help to resolve the problem.
What tool i can use for investigate who cause socket close.

The part of default server.xml of tomcat  that i have change(2 connector 
configuration an docbase) is :


...

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector
port=8080maxHttpHeaderSize=8192
   maxThreads=350 minSpareThreads=50 maxSpareThreads=100
   enableLookups=false redirectPort=443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /


!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

!-- Note : To use gzip compression you could set the following 
properties :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

!-- Define a SSL HTTP/1.1 Connector on port 8443 --
!--
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 /
--

Connector port=443 maxHttpHeaderSize=10240 
   maxThreads=150 minSpareThreads=25 maxSpareThreads=100 
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS 
   keystoreFile=C:\CertificatiHTTPS\aaa.pfx
   keystorePass=
   keystoreType=PKCS12
   /


!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=443 protocol=AJP/1.3 /

!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation for more information about using this. --
!--



 !-- Define the default virtual host 
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


Context path= docBase=SIT//
   
!-- Defines a cluster for this node,
 By defining this element, means that every manager will be 
changed.
 So when running a cluster, only make sure that you have webapps 
in there
 that need to be clustered and remove the other ones.
 A cluster has the following parameters:
--





Messaggio originale
Da: rainer.j...@kippdata.de
Data: 05/06/2010 11.09
A: Tomcat Users Listusers@tomcat.apache.org
Ogg: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and 
under JBOSS 4.2.3GA

On 05.06.2010 09:23, Pid * wrote:
 On 5 Jun 2010, at 04:33, ago...@libero.itago...@libero.it  wrote:

 Hi
 I m very tired because the intermittent socket close exception
 reappear.

 We now use tomcat 5.5.28 on win2003 ED SO and jdk 1.6.16.
 The error that occours is:

 4-giu-2010 7.48.35

Date and Time in a bit strange format: 4th of June 2010, 07:48:35.

Rainer

 What is the above? It doesn't look familiar to me.

 Can you refresh our memories and please post the current server.xml
 (comments removed)?


 p

 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint ServerSocket
 [addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at java.net.ServerSocket.accept(Unknown Source)
 at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61

Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread Pid
On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks 
 
 The question started in 
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.mbox/thread?3
 on same thread.
 
 Now i have reduce the number of user (about 50 user simultanely) on a   
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.1.6.16, 
 IIS 
 (with certificate instaled) on port 80 that redirect  request from port 80 to 
 8080 tomcat connector   server. Besides https request are directly managed 
 from 
 second connector, on port 443 of tomcat.)
 
 So  the error referred, sometime occours. In particular i have noted that 
 this 
 error rise when a lot user make  login in the application (  in a few second).
 Probably  this may be depend from a lot tcp/ip connection, but, this using 
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003 server 
 and/or 
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.
 
 The part of default server.xml of tomcat  that i have change(2 connector 
 configuration an docbase) is :

I guess you missed the bit about comments removed.
Why not backup that file, and then create a server.xml with all of the
comments removed?

 ...
 
 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector
 port=8080maxHttpHeaderSize=8192
maxThreads=350 minSpareThreads=50 maxSpareThreads=100
enableLookups=false redirectPort=443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /
 
   
   !-- Note : To disable connection timeouts, set connectionTimeout value
  to 0 --
   
   !-- Note : To use gzip compression you could set the following 
 properties :
   
  compression=on 
  compressionMinSize=2048 
  noCompressionUserAgents=gozilla, traviata 
  compressableMimeType=text/html,text/xml
   --
 
 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
 !--
 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 /
 --
   
 Connector port=443 maxHttpHeaderSize=10240 
maxThreads=150 minSpareThreads=25 maxSpareThreads=100 
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS 
  keystoreFile=C:\CertificatiHTTPS\aaa.pfx
  keystorePass=
  keystoreType=PKCS12
  /
   
   
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.3 /
 
 !-- Define a Proxied HTTP/1.1 Connector on port 8082 --
 !-- See proxy documentation for more information about using this. --
 !--
 
 
 
  !-- Define the default virtual host 
Note: XML Schema validation will not work with Xerces 2.2.
--
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 
   
   Context path= docBase=SIT//

Is the above accurate, or is the extra slash after SIT an error?

If it is accurate, it's wrong and will also cause double deployment -
once as /SIT/ and once as /.


Are you able to match timestamps of the Socket close exception to a
particular request, and is there a matching request in the log?


p


 !-- Defines a cluster for this node,
  By defining this element, means that every manager will be 
 changed.
  So when running a cluster, only make sure that you have webapps 
 in there
  that need to be clustered and remove the other ones.
  A cluster has the following parameters:
 --
 
 
 
 
 
 Messaggio originale
 Da: rainer.j...@kippdata.de
 Data: 05/06/2010 11.09
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 
 and 
 under JBOSS 4.2.3GA

 On 05.06.2010 09:23, Pid * wrote:
 On 5 Jun 2010, at 04:33, ago...@libero.itago...@libero.it  wrote:

 Hi
 I m very tired because the intermittent socket close exception
 reappear.

 We now use tomcat 5.5.28 on win2003 ED SO and jdk 1.6.16.
 The error that occours is:

 4-giu-2010 7.48.35

 Date and Time in a bit strange format: 4th of June 2010, 07:48:35.

 Rainer

 What is the above? It doesn't look familiar to me.

 Can you refresh our memories and please post the current server.xml
 (comments removed)?


 p

R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread ago...@libero.it
Thanks for replay.
I'm sorry 
I have missed e-mail regard server .xml with romment removed.
so I attached this file.


regard Context path= docBase=SIT// i think that a mistake the correct 
form is in the file.
SIT is name of my application. 


I don't able to match timestamp of error whith a request because i don't know 
how to trace all request in tomcat conaitner. How can do it?
I have essentially only catalina_log (with error)  and standard_out_log (in 
which i have application SIT stdout message).
Best regards
Agostino

Messaggio originale
Da: p...@pidster.com
Data: 05/06/2010 21.26
A: Tomcat Users Listusers@tomcat.apache.org
Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 
5.5.28 and under JBOSS 4.2.3GA

On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks 
 
 The question started in 
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.mbox/thread?
3
 on same thread.
 
 Now i have reduce the number of user (about 50 user simultanely) on a   
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.1.6.16, 
IIS 
 (with certificate instaled) on port 80 that redirect  request from port 80 
to 
 8080 tomcat connector   server. Besides https request are directly managed 
from 
 second connector, on port 443 of tomcat.)
 
 So  the error referred, sometime occours. In particular i have noted that 
this 
 error rise when a lot user make  login in the application (  in a few 
second).
 Probably  this may be depend from a lot tcp/ip connection, but, this 
using 
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003 server 
and/or 
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.
 
 The part of default server.xml of tomcat  that i have change(2 connector 
 configuration an docbase) is :

I guess you missed the bit about comments removed.
Why not backup that file, and then create a server.xml with all of the
comments removed?

 ...
 
 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector
 port=8080maxHttpHeaderSize=8192
maxThreads=350 minSpareThreads=50 maxSpareThreads=100
enableLookups=false redirectPort=443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /
 
  
  !-- Note : To disable connection timeouts, set connectionTimeout value
  to 0 --
  
  !-- Note : To use gzip compression you could set the following 
 properties 
:
  
 compression=on 
 compressionMinSize=2048 
 noCompressionUserAgents=gozilla, traviata 
 compressableMimeType=text/html,text/xml
  --
 
 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
 !--
 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 /
 --
  
 Connector port=443 maxHttpHeaderSize=10240 
maxThreads=150 minSpareThreads=25 maxSpareThreads=
100 
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS 
 keystoreFile=C:\CertificatiHTTPS\aaa.pfx
 keystorePass=
 keystoreType=PKCS12
 /
  
  
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.3 
/
 
 !-- Define a Proxied HTTP/1.1 Connector on port 8082 --
 !-- See proxy documentation for more information about using this. --

 !--
 
 
 
  !-- Define the default virtual host 
Note: XML Schema validation will not work with Xerces 2.2.
--
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 
  
  Context path= docBase=SIT//

Is the above accurate, or is the extra slash after SIT an error?

If it is accurate, it's wrong and will also cause double deployment -
once as /SIT/ and once as /.


Are you able to match timestamps of the Socket close exception to a
particular request, and is there a matching request in the log?


p

   
 !-- Defines a cluster for this node,
  By defining this element, means that every manager will be 
 changed.
  So when running a cluster, only make sure that you have 
webapps 
 in there
  that need to be clustered and remove the other ones.
  A cluster has the following parameters:
 --
 
 
 
 
 
 Messaggio originale
 Da: rainer.j

Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread Pid
On 05/06/2010 20:56, ago...@libero.it wrote:
 Thanks for replay.
 I'm sorry 
 I have missed e-mail regard server .xml with romment removed.
 so I attached this file.
 
 
 regard Context path= docBase=SIT// i think that a mistake the correct 
 form is in the file.
 SIT is name of my application. 

So in the file you attached, you have:

 Context path= docBase=/SIT /

Is the SIT application at:

 path/to/tomcat/webapps/SIT

or somewhere else?


p


 I don't able to match timestamp of error whith a request because i don't know 
 how to trace all request in tomcat conaitner. How can do it?
 I have essentially only catalina_log (with error)  and standard_out_log (in 
 which i have application SIT stdout message).
 Best regards
 Agostino
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 05/06/2010 21.26
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 
 5.5.28 and under JBOSS 4.2.3GA

 On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks 

 The question started in 
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.mbox/thread?
 3
 on same thread.

 Now i have reduce the number of user (about 50 user simultanely) on a   
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.1.6.16, 
 IIS 
 (with certificate instaled) on port 80 that redirect  request from port 80 
 to 
 8080 tomcat connector   server. Besides https request are directly managed 
 from 
 second connector, on port 443 of tomcat.)

 So  the error referred, sometime occours. In particular i have noted that 
 this 
 error rise when a lot user make  login in the application (  in a few 
 second).
 Probably  this may be depend from a lot tcp/ip connection, but, this 
 using 
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003 server 
 and/or 
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.

 The part of default server.xml of tomcat  that i have change(2 connector 
 configuration an docbase) is :

 I guess you missed the bit about comments removed.
 Why not backup that file, and then create a server.xml with all of the
 comments removed?

 ...

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector
 port=8080maxHttpHeaderSize=8192
maxThreads=350 minSpareThreads=50 maxSpareThreads=100
enableLookups=false redirectPort=443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /

 
 !-- Note : To disable connection timeouts, set connectionTimeout value
  to 0 --
 
 !-- Note : To use gzip compression you could set the following 
 properties 
 :
 
compression=on 
compressionMinSize=2048 
noCompressionUserAgents=gozilla, traviata 
compressableMimeType=text/html,text/xml
 --

 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
 !--
 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 /
 --
 
 Connector port=443 maxHttpHeaderSize=10240 
maxThreads=150 minSpareThreads=25 maxSpareThreads=
 100 
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS 
keystoreFile=C:\CertificatiHTTPS\aaa.pfx
keystorePass=
keystoreType=PKCS12
/
 
 
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.3 
 /

 !-- Define a Proxied HTTP/1.1 Connector on port 8082 --
 !-- See proxy documentation for more information about using this. --

 !--

 

  !-- Define the default virtual host 
Note: XML Schema validation will not work with Xerces 2.2.
--
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

 
 Context path= docBase=SIT//

 Is the above accurate, or is the extra slash after SIT an error?

 If it is accurate, it's wrong and will also cause double deployment -
 once as /SIT/ and once as /.


 Are you able to match timestamps of the Socket close exception to a
 particular request, and is there a matching request in the log?


 p

  
 !-- Defines a cluster for this node,
  By defining this element, means that every manager will be 
 changed.
  So when running a cluster, only make sure that you have

Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread Pid
On 05/06/2010 20:56, ago...@libero.it wrote:
 Thanks for replay.
 I'm sorry 
 I have missed e-mail regard server .xml with romment removed.
 so I attached this file.
 
 
 regard Context path= docBase=SIT// i think that a mistake the correct 
 form is in the file.
 SIT is name of my application. 
 
 
 I don't able to match timestamp of error whith a request because i don't know 
 how to trace all request in tomcat conaitner. How can do it?

Configure an access log.

 http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html


p

 I have essentially only catalina_log (with error)  and standard_out_log (in 
 which i have application SIT stdout message).
 Best regards
 Agostino
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 05/06/2010 21.26
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 
 5.5.28 and under JBOSS 4.2.3GA

 On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks 

 The question started in 
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.mbox/thread?
 3
 on same thread.

 Now i have reduce the number of user (about 50 user simultanely) on a   
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.1.6.16, 
 IIS 
 (with certificate instaled) on port 80 that redirect  request from port 80 
 to 
 8080 tomcat connector   server. Besides https request are directly managed 
 from 
 second connector, on port 443 of tomcat.)

 So  the error referred, sometime occours. In particular i have noted that 
 this 
 error rise when a lot user make  login in the application (  in a few 
 second).
 Probably  this may be depend from a lot tcp/ip connection, but, this 
 using 
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003 server 
 and/or 
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.

 The part of default server.xml of tomcat  that i have change(2 connector 
 configuration an docbase) is :

 I guess you missed the bit about comments removed.
 Why not backup that file, and then create a server.xml with all of the
 comments removed?

 ...

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector
 port=8080maxHttpHeaderSize=8192
maxThreads=350 minSpareThreads=50 maxSpareThreads=100
enableLookups=false redirectPort=443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /

 
 !-- Note : To disable connection timeouts, set connectionTimeout value
  to 0 --
 
 !-- Note : To use gzip compression you could set the following 
 properties 
 :
 
compression=on 
compressionMinSize=2048 
noCompressionUserAgents=gozilla, traviata 
compressableMimeType=text/html,text/xml
 --

 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
 !--
 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 /
 --
 
 Connector port=443 maxHttpHeaderSize=10240 
maxThreads=150 minSpareThreads=25 maxSpareThreads=
 100 
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS 
keystoreFile=C:\CertificatiHTTPS\aaa.pfx
keystorePass=
keystoreType=PKCS12
/
 
 
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.3 
 /

 !-- Define a Proxied HTTP/1.1 Connector on port 8082 --
 !-- See proxy documentation for more information about using this. --

 !--

 

  !-- Define the default virtual host 
Note: XML Schema validation will not work with Xerces 2.2.
--
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

 
 Context path= docBase=SIT//

 Is the above accurate, or is the extra slash after SIT an error?

 If it is accurate, it's wrong and will also cause double deployment -
 once as /SIT/ and once as /.


 Are you able to match timestamps of the Socket close exception to a
 particular request, and is there a matching request in the log?


 p

  
 !-- Defines a cluster for this node,
  By defining this element, means that every manager will be 
 changed.
  So when running a cluster, only make sure that you have 
 webapps 
 in there
  that need to be clustered

RE: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread Caldarale, Charles R
 From: ago...@libero.it [mailto:ago...@libero.it]
 Subject: R: Re: R: RE: Re: intermittent SocketException on startup
 tomcat 5.5.28 and under JBOSS 4.2.3GA
 
 So the error referred, sometime occours.  In particular i have 
 noted that this error rise when a lot user make login in the 
 application (in a few second).  Probably this may be depend from
 a lot tcp/ip connection, but, this using netstat -na not appear.

After Googling a bit for the symptoms, it looks like you are not alone in 
hitting this Windows bug or limitation, most on Win2K3.  There have been 
several reports of the server socket being inexplicably closed on Windows, for 
no apparent reason, but all under heavy load.  (I did not come across any such 
occurrences on Linux.)  No solutions were apparent, other than the obvious one 
of changing platforms.

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



R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread ago...@libero.it
Yes 
i have one application SIT under C:\tomcat5\webapps\SIT

In the same dir i have olso a rar (not war) file SIT.rar that is a rar 
compressed file of SIT.

Only file log that i have other tomcat log is standard IIS log.
How i can improve verbosity of tomcat so i can match timestamp of error on 
other relevant information ?
bye.
Agostino

Messaggio originale
Da: p...@pidster.com
Data: 05/06/2010 22.00
A: Tomcat Users Listusers@tomcat.apache.org
Ogg: Re: R:  Re: intermittent SocketException on startup tomcat 5.5.28 and 
under JBOSS 4.2.3GA

On 05/06/2010 20:56, ago...@libero.it wrote:
 Thanks for replay.
 I'm sorry 
 I have missed e-mail regard server .xml with romment removed.
 so I attached this file.
 
 
 regard Context path= docBase=SIT// i think that a mistake the 
correct 
 form is in the file.
 SIT is name of my application. 

So in the file you attached, you have:

 Context path= docBase=/SIT /

Is the SIT application at:

 path/to/tomcat/webapps/SIT

or somewhere else?


p


 I don't able to match timestamp of error whith a request because i don't 
know 
 how to trace all request in tomcat conaitner. How can do it?
 I have essentially only catalina_log (with error)  and standard_out_log 
(in 
 which i have application SIT stdout message).
 Best regards
 Agostino
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 05/06/2010 21.26
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup 
tomcat 
 5.5.28 and under JBOSS 4.2.3GA

 On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks 

 The question started in 
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.
mbox/thread?
 3
 on same thread.

 Now i have reduce the number of user (about 50 user simultanely) on a   
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.
1.6.16, 
 IIS 
 (with certificate instaled) on port 80 that redirect  request from port 
80 
 to 
 8080 tomcat connector   server. Besides https request are directly 
managed 
 from 
 second connector, on port 443 of tomcat.)

 So  the error referred, sometime occours. In particular i have noted 
that 
 this 
 error rise when a lot user make  login in the application (  in a few 
 second).
 Probably  this may be depend from a lot tcp/ip connection, but, this 
 using 
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003 server 
 and/or 
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.

 The part of default server.xml of tomcat  that i have change(2 
connector 
 configuration an docbase) is :

 I guess you missed the bit about comments removed.
 Why not backup that file, and then create a server.xml with all of the
 comments removed?

 ...

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector
 port=8080maxHttpHeaderSize=8192
maxThreads=350 minSpareThreads=50 maxSpareThreads=
100
enableLookups=false redirectPort=443 acceptCount=
100
connectionTimeout=2 disableUploadTimeout=true /


!-- Note : To disable connection timeouts, set connectionTimeout value
  to 0 --

!-- Note : To use gzip compression you could set the following 
properties 
 :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
 !--
 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 /
 --

 Connector port=443 maxHttpHeaderSize=10240 
maxThreads=150 minSpareThreads=25 maxSpareThreads=
 100 
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS 
   keystoreFile=C:\CertificatiHTTPS\aaa.pfx
   keystorePass=
   keystoreType=PKCS12
   /


 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.
3 
 /

 !-- Define a Proxied HTTP/1.1 Connector on port 8082 --
 !-- See proxy documentation for more information about using this. 
--

 !--

 

  !-- Define the default virtual host 
Note: XML Schema validation will not work with Xerces 2.2.
--
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread ago...@libero.it

Sorry
i have never  used a Valve Component
i will use this component in production enviroment. so  i don't want have a 
trouble.
Can you give me a little example of configuration of Valve Component fom my 
(unique) application SIT under C:\tomcat5\webapps\SIT

thanks a lot  fot suggest.
Agostino


Messaggio originale
Da: p...@pidster.com
Data: 05/06/2010 22.06
A: Tomcat Users Listusers@tomcat.apache.org
Ogg: Re: R:  Re: intermittent SocketException on startup tomcat 5.5.28 and 
under JBOSS 4.2.3GA

On 05/06/2010 20:56, ago...@libero.it wrote:
 Thanks for replay.
 I'm sorry 
 I have missed e-mail regard server .xml with romment removed.
 so I attached this file.
 
 
 regard Context path= docBase=SIT// i think that a mistake the 
correct 
 form is in the file.
 SIT is name of my application. 
 
 
 I don't able to match timestamp of error whith a request because i don't 
know 
 how to trace all request in tomcat conaitner. How can do it?

Configure an access log.

 http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html


p

 I have essentially only catalina_log (with error)  and standard_out_log 
(in 
 which i have application SIT stdout message).
 Best regards
 Agostino
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 05/06/2010 21.26
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup 
tomcat 
 5.5.28 and under JBOSS 4.2.3GA

 On 05/06/2010 14:41, ago...@libero.it wrote:
 Thanks 

 The question started in 
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.
mbox/thread?
 3
 on same thread.

 Now i have reduce the number of user (about 50 user simultanely) on a   
 win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk.
1.6.16, 
 IIS 
 (with certificate instaled) on port 80 that redirect  request from port 
80 
 to 
 8080 tomcat connector   server. Besides https request are directly 
managed 
 from 
 second connector, on port 443 of tomcat.)

 So  the error referred, sometime occours. In particular i have noted 
that 
 this 
 error rise when a lot user make  login in the application (  in a few 
 second).
 Probably  this may be depend from a lot tcp/ip connection, but, this 
 using 
 netstat -na not appear.
 May be i must increase the number on maxTcpConnection on win2003 server 
 and/or 
 reduce tcpDelay.
 Please give me a help to resolve the problem.
 What tool i can use for investigate who cause socket close.

 The part of default server.xml of tomcat  that i have change(2 
connector 
 configuration an docbase) is :

 I guess you missed the bit about comments removed.
 Why not backup that file, and then create a server.xml with all of the
 comments removed?

 ...

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector
 port=8080maxHttpHeaderSize=8192
maxThreads=350 minSpareThreads=50 maxSpareThreads=
100
enableLookups=false redirectPort=443 acceptCount=
100
connectionTimeout=2 disableUploadTimeout=true /


!-- Note : To disable connection timeouts, set connectionTimeout value
  to 0 --

!-- Note : To use gzip compression you could set the following 
properties 
 :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

 !-- Define a SSL HTTP/1.1 Connector on port 8443 --
 !--
 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 /
 --

 Connector port=443 maxHttpHeaderSize=10240 
maxThreads=150 minSpareThreads=25 maxSpareThreads=
 100 
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS 
   keystoreFile=C:\CertificatiHTTPS\aaa.pfx
   keystorePass=
   keystoreType=PKCS12
   /


 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.
3 
 /

 !-- Define a Proxied HTTP/1.1 Connector on port 8082 --
 !-- See proxy documentation for more information about using this. 
--

 !--

 

  !-- Define the default virtual host 
Note: XML Schema validation will not work with Xerces 2.2.
--
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false


Context path= docBase=SIT//

 Is the above accurate, or is the extra slash after SIT an error

Re: R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-05 Thread André Warnier

ago...@libero.it wrote:

Sorry
i have never  used a Valve Component
i will use this component in production enviroment. so  i don't want have a 
trouble.
Can you give me a little example of configuration of Valve Component fom my 
(unique) application SIT under C:\tomcat5\webapps\SIT



Then read the documentation page that pid already pointed you to.
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

I think it should already be in your server.xml, just commented out, 
like this :


!--
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. 
suffix=.txt

 pattern=common resolveHosts=false/
--

Just remove the comment signs around it.

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



R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-06-04 Thread ago...@libero.it
Hi
I m very tired because the intermittent socket close exception reappear.

We now use tomcat 5.5.28 on win2003 ED SO and jdk 1.6.16.
The error that occours is:

4-giu-2010 7.48.35 org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
GRAVE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] 
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
4-giu-2010 7.48.56 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
AVVERTENZA: Reinitializing ServerSocket
4-giu-2010 8.04.39 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] 
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
AVVERTENZA: Reinitializing ServerSocket
4-giu-2010 8.05.00 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] 
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
4-giu-2010 8.05.21 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
AVVERTENZA: Reinitializing ServerSocket
4-giu-2010 8.06.55 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] 
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method) .   

This error slow down the application.

we don't have  firewall, pool of tcp connection seem correct, the 
processor 
and memory usage are normal (10% CPU and 50% RAM).


How can  i investigte who cuse the problem?  Jconsole observe memory but seem 
not tcp connection.
How can i understand why i have close socket? 
whath are flakey router error?
How can i understand if i have saturate the connection on SO?

Thank for all suggest
Best regards
Agostino




Messaggio originale
Da: chuck.caldar...@unisys.com
Data: 24/05/2010 15.38
A: Tomcat Users Listusers@tomcat.apache.org, ago...@libero.it
ago...@libero.it
Ogg: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under 
JBOSS 4.2.3GA

 From: ago...@libero.it [mailto:ago...@libero.it]
 Subject: R: Re: intermittent SocketException on startup tomcat 5.5.28
 and under JBOSS 4.2.3GA
 
 ERROR [org.apache.tomcat.util.net.JIoEndpoint]
  Socket accept failed
  java.net.SocketException: socket closed

This isn't really a problem with the Tomcat server - it usually means the 
client terminated the connection attempt before the socket on the server end 
could be created.  If this is happening

Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-26 Thread Pid
On 24/05/2010 21:54, ago...@libero.it wrote:
 Thanks for suggestion.
 
 But i have  win2008 with dual quad core processor, 4GB ram. The CPU usage  is 
 to 5% and  ram is used to the 75% when error occours.

So the server isn't under load.

 What block the reload time of page (in presence of error  all is more slow 
 the 
 IE page often is white)?

Is this a different question?  Are you describing a different problem?

 What i can investigate when the error occours (i already seen process, TCP 
 connection, firewall)?
 what can i do?
 Plese give me a help.

You can examine the network traffic and try to catch a moment when it
occurs, but Chuck is suggesting that it's a client disconnecting, so you
would need to monitor the client too.

Maybe you can compare access logs and error log timestamps and determine
which of the client connections is causing the 'problem'.


p

 Agostino
 
 
 Messaggio originale
 Da: chuck.caldar...@unisys.com
 Data: 24/05/2010 15.38
 A: Tomcat Users Listusers@tomcat.apache.org, ago...@libero.it
 ago...@libero.it
 Ogg: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under 
 JBOSS 4.2.3GA

 From: ago...@libero.it [mailto:ago...@libero.it]
 Subject: R: Re: intermittent SocketException on startup tomcat 5.5.28
 and under JBOSS 4.2.3GA

 ERROR [org.apache.tomcat.util.net.JIoEndpoint]
  Socket accept failed
  java.net.SocketException: socket closed

 This isn't really a problem with the Tomcat server - it usually means the 
 client terminated the connection attempt before the socket on the server end 
 could be created.  If this is happening persistently, then something in 
 between 
 the client and Tomcat (e.g., a firewall or flakey router) is dropping the 
 connection before it can be fully established.  There's also a possibility 
 that 
 Windows is reaching some resource limit and preventing creation of the server 
 end of the connection.

 - 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
 




signature.asc
Description: OpenPGP digital signature


RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-24 Thread Caldarale, Charles R
 From: ago...@libero.it [mailto:ago...@libero.it]
 Subject: R: Re: intermittent SocketException on startup tomcat 5.5.28
 and under JBOSS 4.2.3GA
 
 ERROR [org.apache.tomcat.util.net.JIoEndpoint]
  Socket accept failed
  java.net.SocketException: socket closed

This isn't really a problem with the Tomcat server - it usually means the 
client terminated the connection attempt before the socket on the server end 
could be created.  If this is happening persistently, then something in between 
the client and Tomcat (e.g., a firewall or flakey router) is dropping the 
connection before it can be fully established.  There's also a possibility that 
Windows is reaching some resource limit and preventing creation of the server 
end of the connection.

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



R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-24 Thread ago...@libero.it
Thanks for suggestion.

But i have  win2008 with dual quad core processor, 4GB ram. The CPU usage  is 
to 5% and  ram is used to the 75% when error occours.
What block the reload time of page (in presence of error  all is more slow the 
IE page often is white)?
What i can investigate when the error occours (i already seen process, TCP 
connection, firewall)?
what can i do?
Plese give me a help.
Agostino


Messaggio originale
Da: chuck.caldar...@unisys.com
Data: 24/05/2010 15.38
A: Tomcat Users Listusers@tomcat.apache.org, ago...@libero.it
ago...@libero.it
Ogg: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under 
JBOSS 4.2.3GA

 From: ago...@libero.it [mailto:ago...@libero.it]
 Subject: R: Re: intermittent SocketException on startup tomcat 5.5.28
 and under JBOSS 4.2.3GA
 
 ERROR [org.apache.tomcat.util.net.JIoEndpoint]
  Socket accept failed
  java.net.SocketException: socket closed

This isn't really a problem with the Tomcat server - it usually means the 
client terminated the connection attempt before the socket on the server end 
could be created.  If this is happening persistently, then something in between 
the client and Tomcat (e.g., a firewall or flakey router) is dropping the 
connection before it can be fully established.  There's also a possibility that 
Windows is reaching some resource limit and preventing creation of the server 
end of the connection.

 - 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: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-23 Thread Pid
On 22/05/2010 23:23, ago...@libero.it wrote:
 
 Thanks for response.
 
 The first server on I install tomcat 5.5.28 is win2003 server and after I 
 install jboss on win2008 server .
 All server have  32bit SO and i don't have a firewall . I disenable all 
 firewall, all antivirus. 
 
 I suppose that two different errors regard different JVM and/or Application 
 server (first Tomct 5.5.28 on win2003 and after Jboss4.2.3GA on win2008)
 At any rate i have now only log by Tomcat 5.5.28 under win2003:


 But don't have a intere log file.
 May be IPV6? I don't disinstall this protocol becuse is important on win2008, 
 but i hve clent that use IPV4.

Do you have any other services running on the server that might
interfere with this one, by binding to the ports you have configured?

Try using the netstat command to see what ports and addresses the
server is listening on.

 
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netstat.mspx?mfr=true

To eliminate the ip4/ip6 problem, you can specify an address=n.n.n.n
for the connector to bind to, in server.xml.  (where n.n.n.n is the IP
v4 address assigned to your server).


p

 Have you  n idea?
 How can resolve  problem.
 Plese is imporatnt for me?
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 22/05/2010 12.47
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: intermittent SocketException on startup tomcat 5.5.28 and under 
 JBOSS 4.2.3GA

 On 22/05/2010 09:28, ago...@libero.it wrote:
 Good Morning

 Excuse  for my poor english

 I have a strange error that  occours  on startup and after some minutes 
 this
 cause the block of  my appliction, only stop webserver from  lot minutes or
 restart  server sometime resolve the problem. But often the problem 
 persist.

 In Short:
 I have a web appliction deployed initially under tomcat 5.5.28 (with jre-
 1_5_0_22 and SO win2003 Server 32 bit) that sometimes cause specially on
 startup the follow error:

 17-apr-2010 7.00.49 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.01.10 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.52.33 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.52.54 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.52.55 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.53.16

R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-23 Thread ago...@libero.it
 Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
 at java.net.ServerSocket.implAccept(ServerSocket.java:453)
 at java.net.ServerSocket.accept(ServerSocket.java:421)
 at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
 (DefaultServerSocketFactory.java:61)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:
309)
 at java.lang.Thread.run(Thread.java:619)

When this occours the page of my appliction initially freeze  but when the 
number of error increase  the connector on port 80 block completely web-console 
or jmx-consolw of jboss. The connector on port 443 stays alive for other few 
minutes and after also this is blocked.

Have you some ideas? In the past the max number of thread used in tomct 5.5.28 
(view with probe) were about 130.
Can you suggest me some investigation for resolve the  problem? 

I thinking of do more strong my configuration i'd like install  Tomct 6.0.26 
and my be ApacheHTTPD server in front.
Is this a good idea?
Best regards

Agostino







Messaggio originale
Da: p...@pidster.com
Data: 23/05/2010 13.12
A: Tomcat Users Listusers@tomcat.apache.org
Ogg: Re: intermittent SocketException on startup tomcat 5.5.28 and under 
JBOSS 4.2.3GA

On 22/05/2010 23:23, ago...@libero.it wrote:
 
 Thanks for response.
 
 The first server on I install tomcat 5.5.28 is win2003 server and after I 
 install jboss on win2008 server .
 All server have  32bit SO and i don't have a firewall . I disenable all 
 firewall, all antivirus. 
 
 I suppose that two different errors regard different JVM and/or 
Application 
 server (first Tomct 5.5.28 on win2003 and after Jboss4.2.3GA on win2008)
 At any rate i have now only log by Tomcat 5.5.28 under win2003:


 But don't have a intere log file.
 May be IPV6? I don't disinstall this protocol becuse is important on 
win2008, 
 but i hve clent that use IPV4.

Do you have any other services running on the server that might
interfere with this one, by binding to the ports you have configured?

Try using the netstat command to see what ports and addresses the
server is listening on.

 http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-
us/netstat.mspx?mfr=true

To eliminate the ip4/ip6 problem, you can specify an address=n.n.n.n
for the connector to bind to, in server.xml.  (where n.n.n.n is the IP
v4 address assigned to your server).


p

 Have you  n idea?
 How can resolve  problem.
 Plese is imporatnt for me?
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 22/05/2010 12.47
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: intermittent SocketException on startup tomcat 5.5.28 and under 
 JBOSS 4.2.3GA

 On 22/05/2010 09:28, ago...@libero.it wrote:
 Good Morning

 Excuse  for my poor english

 I have a strange error that  occours  on startup and after some minutes 
 this
 cause the block of  my appliction, only stop webserver from  lot minutes 
or
 restart  server sometime resolve the problem. But often the problem 
 persist.

 In Short:
 I have a web appliction deployed initially under tomcat 5.5.28 (with 
jre-
 1_5_0_22 and SO win2003 Server 32 bit) that sometimes cause specially on
 startup the follow error:

 17-apr-2010 7.00.49 org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown 
Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.01.10 org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.52.33 org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown 
Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket
(PoolTcpEndpoint.
 java:408

intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-22 Thread ago...@libero.it
Good Morning

Excuse  for my poor english

I have a strange error that  occours  on startup and after some minutes this
cause the block of  my appliction, only stop webserver from  lot minutes or
restart  server sometime resolve the problem. But often the problem persist.

In Short:
I have a web appliction deployed initially under tomcat 5.5.28 (with jre-
1_5_0_22 and SO win2003 Server 32 bit) that sometimes cause specially on
startup the follow error:

17-apr-2010 7.00.49 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
(JSSESocketFactory.java:117)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
17-apr-2010 7.01.10 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
AVVERTENZA: Reinitializing ServerSocket
17-apr-2010 7.52.33 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
(JSSESocketFactory.java:117)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
17-apr-2010 7.52.54 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
AVVERTENZA: Reinitializing ServerSocket
17-apr-2010 7.52.55 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
(JSSESocketFactory.java:117)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
17-apr-2010 7.53.16 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
AVVERTENZA: Reinitializing ServerSocket
17-apr-2010 7.53.17 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
(JSSESocketFactory.java:117)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:408)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:71)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
java:689)
at java.lang.Thread.run(Unknown Source)
17-apr-2010 7.53.38 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
AVVERTENZA: Reinitializing ServerSocket
17-apr-2010 7.53.39 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)  .

in tomcat server.xml i have configured 2 connector: one su port 80 and other
on port 443, The  connectors configuration is:

Connector port=80  maxHttpHeaderSize=8192

Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-22 Thread Pid
On 22/05/2010 09:28, ago...@libero.it wrote:
 Good Morning
 
 Excuse  for my poor english
 
 I have a strange error that  occours  on startup and after some minutes this
 cause the block of  my appliction, only stop webserver from  lot minutes or
 restart  server sometime resolve the problem. But often the problem persist.
 
 In Short:
 I have a web appliction deployed initially under tomcat 5.5.28 (with jre-
 1_5_0_22 and SO win2003 Server 32 bit) that sometimes cause specially on
 startup the follow error:
 
 17-apr-2010 7.00.49 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.01.10 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.52.33 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.52.54 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.52.55 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.53.16 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.53.17 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.53.38 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.53.39 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)  .
 
 in tomcat server.xml i have

Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-22 Thread ago...@libero.it

Thanks for response.

The first server on I install tomcat 5.5.28 is win2003 server and after I 
install jboss on win2008 server .
All server have  32bit SO and i don't have a firewall . I disenable all 
firewall, all antivirus. 

I suppose that two different errors regard different JVM and/or Application 
server (first Tomct 5.5.28 on win2003 and after Jboss4.2.3GA on win2008)
At any rate i have now only log by Tomcat 5.5.28 under win2003:

The log is: 

19-apr-2010 7.14.40 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
C:\tomcat6\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:
\Windows;C:\oracle\product\10.2.0\client_3\bin;C:\oracle\product\10.2.0
\client_1;C:\oracle\product\10.2.0\client_2;C:\Windows\system32;C:\Windows;C:
\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:
\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL 
Server\90\Tools\binn\;C:\Program Files\Microsoft SQL 
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual 
Studio 8\Common7\IDE\PrivateAssemblies\
19-apr-2010 7.14.40 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
19-apr-2010 7.14.40 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 334 ms
19-apr-2010 7.14.40 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
19-apr-2010 7.14.40 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor probe.xml
19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory SIT
19-apr-2010 7.14.40 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory SVILUPPO
19-apr-2010 7.14.40 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
19-apr-2010 7.14.40 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
19-apr-2010 7.14.40 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
19-apr-2010 7.14.40 org.apache.catalina.startup.Catalina start
INFO: Server startup in 641 ms
19-apr-2010 7.23.01 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
GRAVE: Socket accept failed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at 
org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
at java.lang.Thread.run(Unknown Source)
19-apr-2010 7.23.01 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
GRAVE: Socket accept failed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at 
org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
at java.lang.Thread.run(Unknown Source)
19-apr-2010 7.26.48 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
GRAVE: Socket accept failed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket
(DefaultServerSocketFactory.java:61)
at 
org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
at java.lang.Thread.run(Unknown Source)
19-apr-2010 7.35.29 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
GRAVE: Socket accept failed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source

Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Prathima Dandapani -X (pdandapa - HCL at Cisco)
Dear Tomcat Users,

We have upgraded Tomcat from 5.5.17 version to 5.5.28 and experiencing
stream closed IO Exceptions in many places.

java.io.IOException: Stream closed
at
org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:281)
at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:
105)
at java.io.DataInputStream.readLine(DataInputStream.java:496)

When we revert to 5.5.17, we are not experiencing the above exception.
Does this fall under any known issues in 5.5.28 version?
Kindly share your thoughts on this issue.

Thanks and Regards,
Prathima.


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



Re: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Pid
On 06/05/2010 09:08, Prathima Dandapani -X (pdandapa - HCL at Cisco) wrote:
 Dear Tomcat Users,
 
 We have upgraded Tomcat from 5.5.17 version to 5.5.28 and experiencing
 stream closed IO Exceptions in many places.

OS/Platform?

 java.io.IOException: Stream closed
   at
 org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:281)
   at
 org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:
 105)
   at java.io.DataInputStream.readLine(DataInputStream.java:496)
 
 When we revert to 5.5.17, we are not experiencing the above exception.

When does this occur, under load testing or under normal usage?

Does it happen during specific request types?

Does your app have compiled JSPs and if so, have you recompiled it for
5.5.28?

 Does this fall under any known issues in 5.5.28 version?

None that I'm aware of, but then the above information is quite limited.


p

 Kindly share your thoughts on this issue.
 
 Thanks and Regards,
 Prathima.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




signature.asc
Description: OpenPGP digital signature


RE: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Prathima Dandapani -X (pdandapa - HCL at Cisco)
Thanks Pid.
It is happening in both Windows 2003 and Solaris SPARC.
Under normal usage only exception is thrown. 
Yes, All the jsp's are recompiled for 5.5.28.


DataInputStream  is extracted from the HttpServletRequest req.
DataInputStream dis  = new DataInputStream(req.getInputStream());
  Object request = readObject(dis);

private Object readObject(DataInputStream dis) throws Exception  {
String line   = null;
Object object = null;
  while ((line = dis.readLine()) != null) {
  ObjectInputStream ois = new ObjectInputStream(dis);
  object = ois.readObject();
 ois.close();
 }
  return object;
 }

Let me know if any other information is required.

Thanks and Regards,
Prathima.

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Thursday, May 06, 2010 2:34 PM
To: Tomcat Users List
Subject: Re: Stream closed IO Exception when using Tomcat 5.5.28

On 06/05/2010 09:08, Prathima Dandapani -X (pdandapa - HCL at Cisco) wrote:
 Dear Tomcat Users,
 
 We have upgraded Tomcat from 5.5.17 version to 5.5.28 and experiencing 
 stream closed IO Exceptions in many places.

OS/Platform?

 java.io.IOException: Stream closed
   at
 org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:281)
   at

org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:
 105)
   at java.io.DataInputStream.readLine(DataInputStream.java:496)
 
 When we revert to 5.5.17, we are not experiencing the above exception.

When does this occur, under load testing or under normal usage?

Does it happen during specific request types?

Does your app have compiled JSPs and if so, have you recompiled it for
5.5.28?

 Does this fall under any known issues in 5.5.28 version?

None that I'm aware of, but then the above information is quite limited.


p

 Kindly share your thoughts on this issue.
 
 Thanks and Regards,
 Prathima.
 
 
 -
 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: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Prathima Dandapani -X (pdandapa - HCL at Cisco)
Thanks Pid.
The line number specified in the exception matches with the below line of
readObject function.

  while ((line = dis.readLine()) != null) {

The connection is not getting closed at the other end.
Connector config from server.xml is as follows.

Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=9009
minProcessors=5 maxProcessors=500 acceptCount=30 debug=0
enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

 Let me know if any other information is required.

Thanks and Regards,
Prathima.

-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Thursday, May 06, 2010 5:16 PM
To: pdand...@cisco.com
Subject: Re: Stream closed IO Exception when using Tomcat 5.5.28

On 06/05/2010 12:35, Prathima Dandapani -X (pdandapa - HCL at Cisco) wrote:
 Thanks Pid.
 It is happening in both Windows 2003 and Solaris SPARC.
 Under normal usage only exception is thrown.
 Yes, All the jsp's are recompiled for 5.5.28.


 DataInputStream  is extracted from the HttpServletRequest req.
 DataInputStream dis  = new DataInputStream(req.getInputStream());
   Object request = readObject(dis);

 private Object readObject(DataInputStream dis) throws Exception  {
 String line   = null;
 Object object = null;
   while ((line = dis.readLine()) != null) {
   ObjectInputStream ois = new ObjectInputStream(dis);
   object = ois.readObject();
ois.close();
  }
   return object;
  }

 Let me know if any other information is required.

Does the full stack trace for the exception below show a line number which
matches the class above, and if so, which line is it?

Is it possible that the connection is being closed at the other end?

Can you also post your Connector config from server.xml?


p



 Thanks and Regards,
 Prathima.

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: Thursday, May 06, 2010 2:34 PM
 To: Tomcat Users List
 Subject: Re: Stream closed IO Exception when using Tomcat 5.5.28

 On 06/05/2010 09:08, Prathima Dandapani -X (pdandapa - HCL at Cisco)
wrote:
 Dear Tomcat Users,

 We have upgraded Tomcat from 5.5.17 version to 5.5.28 and
 experiencing stream closed IO Exceptions in many places.

 OS/Platform?

 java.io.IOException: Stream closed
  at
 org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:281)
  at


org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:
 105)
  at java.io.DataInputStream.readLine(DataInputStream.java:496)

 When we revert to 5.5.17, we are not experiencing the above exception.

 When does this occur, under load testing or under normal usage?

 Does it happen during specific request types?

 Does your app have compiled JSPs and if so, have you recompiled it for
 5.5.28?

 Does this fall under any known issues in 5.5.28 version?

 None that I'm aware of, but then the above information is quite limited.


 p

 Kindly share your thoughts on this issue.

 Thanks and Regards,
 Prathima.


 -
 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: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Caldarale, Charles R
 From: Prathima Dandapani -X (pdandapa - HCL at Cisco)
 [mailto:pdand...@cisco.com]
 Subject: RE: Stream closed IO Exception when using Tomcat 5.5.28
 
 Let me know if any other information is required.

The full stack trace would be a start.

(And send messages just to the list, not to individuals, and don't cc: anyone 
or anything.)

 - 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: Stream closed IO Exception when using Tomcat 5.5.28

2010-05-06 Thread Pid
On 06/05/2010 13:54, Caldarale, Charles R wrote:
 From: Prathima Dandapani -X (pdandapa - HCL at Cisco)
 [mailto:pdand...@cisco.com]
 Subject: RE: Stream closed IO Exception when using Tomcat 5.5.28

 Let me know if any other information is required.
 
 The full stack trace would be a start.
 
 (And send messages just to the list, not to individuals, and don't cc: anyone 
 or anything.)

+1 to both of those.

This code seems a bit strange, what is it intended to achieve?

  String line   = null;
  Object object = null;
  while ((line = dis.readLine()) != null) {
ObjectInputStream ois = new ObjectInputStream(dis);
object = ois.readObject();
ois.close();
  }
  return object;


The DataInputStream.readLine() method is deprecated since Java1.1, seems
a bit odd to use that too...


p


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




signature.asc
Description: OpenPGP digital signature


Re: tomcat 5.5.28

2010-04-15 Thread André Warnier

Christopher Schultz wrote:
...


Note that members of this list often have difficulty giving advice to
folks using package-managed versions of Tomcat because of the ...
latitude taken by the package administrators when it comes to the
placement of configuration files, deployed webapps, etc.


Oh in such elegant terms this is written.

An additional note : package administrators for Linux distributions also 
usually package one single version of Tomcat per release of their OS, 
which tends to be the current one at the time the OS release is being 
planned.
In other words, there is no guarantee that for a given release of say 
Ubuntu, you would find a package with the very latest Tomcat version.


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



tomcat 5.5.28

2010-04-08 Thread William
I just installed ubuntu and netbeans 6.7.1 . My web hosting use 5.5.28 I
need to download the zip ver. of 5.5.28 for netbeans . Where do I
download the ver for ubuntu ?


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



Re: tomcat 5.5.28

2010-04-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

William,

On 4/8/2010 6:32 PM, William wrote:
 I just installed ubuntu and netbeans 6.7.1 . My web hosting use 5.5.28 I
 need to download the zip ver. of 5.5.28 for netbeans . Where do I
 download the ver for ubuntu ?

Apache does not provide OS- or tool-specific versions of packages: all
you can get is the standard installation in either .zip, .tar.gz, or
(for Microsoft Windows) .exe installers.

If you want to install Tomcat under Ubuntu you can either download the
vanilla package from tomcat.apache.org, or you can use the Ubuntu
package manager (or apt-get if you like the command-line) to install
their packaged version of Tomcat.

Note that members of this list often have difficulty giving advice to
folks using package-managed versions of Tomcat because of the ...
latitude taken by the package administrators when it comes to the
placement of configuration files, deployed webapps, etc.

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

iEYEARECAAYFAku+XFwACgkQ9CaO5/Lv0PD2DACfaaauQNuhtcgZWbguqpc+/Xj8
wOIAn1DeL0J7mwFapyiWX2NluYLTFJqK
=N1kK
-END PGP SIGNATURE-

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



Re: Configuring SSL on Tomcat 5.5.28

2010-03-08 Thread CBy

On 8-3-2010 20:40, Jessica Krosschell wrote:

Good afternoon,
I am implementing SSL on Tomcat 5.5.28 (on a Windows Server 2008 box) 
for the first time as part of a BusinessObjects implementation.  My 
client wants to use a self signed certificate and I was able to create 
one using the keytool utilities with a keystore, but it has already 
expired (it's been 90 days).  How can I create a self signed 
certificate that lasts longer?


Use -validity numberOfDays (default 90).

CBy

Do I need to use something like OpenSSL?  I have looked on the Tomcat 
documentation and spent many hours googling, but I'm not completely 
clear on the process.

I've included screenshots of my process to help describe what I'm doing.
Thanks,
Jessica

--
Jessica (Batista) Krosschell
Senior Engineer - BI Division
Guident
198 Van Buren Street
Suite 120
Herndon, VA 20170
Mobile: 703-597-1552
Email: jkrossch...@guident.com mailto:jkrossch...@guident.com
Website: www.guident.com http://www.guident.com



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




RE: Configuring SSL on Tomcat 5.5.28

2010-03-08 Thread Caldarale, Charles R
 From: CBy [mailto:tom...@byrman.demon.nl]
 Subject: Re: Configuring SSL on Tomcat 5.5.28
 
 On 8-3-2010 20:40, Jessica Krosschell wrote:
  I was able to create one using the keytool utilities with a
  keystore, but it has already expired (it's been 90 days).
 
 Use -validity numberOfDays (default 90).
 
  I have looked on the Tomcat documentation and spent many hours 
  googling

To further CBy's statement, use the keytool doc, not Google:
http://java.sun.com/javase/6/docs/technotes/tools/windows/keytool.html

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


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

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



how to configure tomcat 5.5.28 or tomcat 6.0 and apache 2.2

2010-02-09 Thread Ashish Kulkarni
Hi
Is there any document showing how to configure apache 2.2 with tomcat 5.5.28
or tomcat 6.0

-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


RE: how to configure tomcat 5.5.28 or tomcat 6.0 and apache 2.2

2010-02-09 Thread Caldarale, Charles R
 From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com]
 Subject: how to configure tomcat 5.5.28 or tomcat 6.0 and apache 2.2
 
 Is there any document showing how to configure apache 2.2 with tomcat
 5.5.28 or tomcat 6.0

Hmmm... I wonder what the Documentation link on the Tomcat home page for 
Tomcat Connectors might be...

 - 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: how to configure tomcat 5.5.28 or tomcat 6.0 and apache 2.2

2010-02-09 Thread Ashish Kulkarni
Thanks, got it working

On Tue, Feb 9, 2010 at 3:32 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com]
  Subject: how to configure tomcat 5.5.28 or tomcat 6.0 and apache 2.2
 
  Is there any document showing how to configure apache 2.2 with tomcat
  5.5.28 or tomcat 6.0

 Hmmm... I wonder what the Documentation link on the Tomcat home page for
 Tomcat Connectors might be...

  - 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




-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


Tomcat 5.5.28 Class loading issue

2010-01-26 Thread ssmith

I have two filters within my web.xml--one uses a sitemesh plugin and the
other uses a wikiUrlSessionIdFilter plugin---from sitemesh.jar and
jboss-seam.jar respectively.  If I place the two jars in tomcat/common/lib
directory and start the server, I get ClassNotFoundExceptions when Tomcat
tries to create servlets for the filters.  If I move the jars to the
application's WEB-INF/lib directory, I get ClassCastException when Tomcat
tries to create servlets for the filters.  And yes this war works just fine 
under Tomcat 5.0.28---where both jars only reside in tomcat/common/lib.  
I have checked for multiple instances of these jars throughout the
application and there are none.  The jars do not exist in any other tomcat
directory.  The jars are not on the CLASSPATH either and from what I
understand, Tomcat 5.5 does not use the CLASSPATH anymore by default.  I
have checked that the jars are the latest version--good to use with Tomcat
5.5---and they are.  I have double and triple checked that these jars are
not being indirectly packaged in the war somehow.  I use Eclipse to do a
basic build of the war---same as I did for Tomcat 5.0---except now I deploy
to a Tomcat 5.5 server.  
So far, I have worked through several issues of migrating from Tomcat 5.0 to
5.5 (logging changes, class loading changes, dependent jar changes,
inconsisent jar issues, jasper jar issues, etc, etc, etc) and I am now
completely at a loss on this one.  I know it is some sort of class loading
issue, but I have no idea if I can solve it and how.  I cannot seem to
figure out what Tomcat wants.
Tomcat 5.5 acts as if he has to have the jars in the application lib, but is
confused when it uses those--like it alreay loaded the classes before, from
somewhere else.  In case it matters---I am starting Tomcat natively on
Windows using startup.bat
Anyone got any ideas on this---I could sure use some help?  

-- 
View this message in context: 
http://old.nabble.com/Tomcat-5.5.28-Class-loading-issue-tp27323388p27323388.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: Tomcat 5.5.28 Class loading issue

2010-01-26 Thread Pid

On 26/01/2010 14:25, ssmith wrote:

Spacing improves legibility.



I have two filters within my web.xml--one uses a sitemesh plugin and the
other uses a wikiUrlSessionIdFilter plugin---from sitemesh.jar and
jboss-seam.jar respectively.  If I place the two jars in tomcat/common/lib
directory and start the server, I get ClassNotFoundExceptions when Tomcat
tries to create servlets for the filters.


Which are you defining in web.xml Servlet, or Servlet Filter?



If I move the jars to the
application's WEB-INF/lib directory, I get ClassCastException when Tomcat
tries to create servlets for the filters.  And yes this war works just fine
under Tomcat 5.0.28---where both jars only reside in tomcat/common/lib.


Is the WAR completely unchanged or are you deploying a new version for 5.5?


I have checked for multiple instances of these jars throughout the
application and there are none.  The jars do not exist in any other tomcat
directory.  The jars are not on the CLASSPATH either and from what I
understand, Tomcat 5.5 does not use the CLASSPATH anymore by default.


Exactly which version of 5.5?

Have you accidentally duplicated servlet-api.jar files?



 I
have checked that the jars are the latest version--good to use with Tomcat
5.5---and they are.  I have double and triple checked that these jars are
not being indirectly packaged in the war somehow.  I use Eclipse to do a
basic build of the war---same as I did for Tomcat 5.0---except now I deploy
to a Tomcat 5.5 server.


Have you checked that the class definitions are correct in the web.xml.
Post the relevant xml sections here.



So far, I have worked through several issues of migrating from Tomcat 5.0 to
5.5 (logging changes, class loading changes, dependent jar changes,
inconsisent jar issues, jasper jar issues, etc, etc, etc) and I am now
completely at a loss on this one.  I know it is some sort of class loading
issue, but I have no idea if I can solve it and how.  I cannot seem to
figure out what Tomcat wants.


Jasper jar issues sounds alarming.



Tomcat 5.5 acts as if he has to have the jars in the application lib, but is
confused when it uses those--like it alreay loaded the classes before, from
somewhere else.  In case it matters---I am starting Tomcat natively on
Windows using startup.bat
Anyone got any ideas on this---I could sure use some help?



How have you defined the Host and Context, post the relevant section of 
your server.xml.



p

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



Re: Tomcat 5.5.28 Class loading issue

2010-01-26 Thread ssmith

Sorry, new to Nabble.

I am defining a servlet filter.

I tried to use the existing wars built for Tomcat 5.0.28, but they would not
deploy at all.
So, yes, I rebuilt them for Tomcat 5.5.28.
 
Yes, I have a servlet-api.jar in the WEB-INF/lib/ and tomcat/common/lib
directories.  Eclipse (really MyEclipse) automatically builds the war with
the jar, based on the project build path.  I removed the servlet-api.jar
from the WEB-INF/lib and started the server again---got the following error:

SEVERE: Exception starting filter sitemesh
java.lang.NoClassDefFoundError: javax/servlet/Filter
at java.lang.ClassLoader.defineClass1(Native Method)

With the servlet-api.jar in WEB-INF/lib/ I get the following error--which is
my original error that I posted:
  
SEVERE: Exception starting filter sitemesh
java.lang.ClassCastException:
com.opensymphony.module.sitemesh.filter.PageFilter

I listed jasper.jar as being an issue.  It was naming-*.jars packaged with
Tomcat 5.5.28 that was an issue.  Also, I had a references to older jars
(such as jstl.jar) in my project--Tomcat 5.5.28 uses newer jars for several
things.   

Yes, the class definitions in the web.xml are correctas they are when it
runs on Tomcat 5.0.28.

I orginally stated that the WikiUrlSessionIdFilter was a direct plug in
class.  That was not correct--it is referenced and used within our
agriStatsUtilities.jar. The sitemesh class is a direct plug in class. 
Following is the web.xml:

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  filter
 filter-namewikiUrlSessionIdFilter/filter-name

filter-classcom.agristats.agriStatsUtilities.util.WikiUrlSessionIdFilter/filter-class
  /filter
  filter-mapping
 filter-namewikiUrlSessionIdFilter/filter-name
 url-pattern/*/url-pattern
  /filter-mapping
  filter-mapping
 filter-namewikiUrlSessionIdFilter/filter-name
 url-pattern*.do/url-pattern
  /filter-mapping
  filter-mapping
 filter-namewikiUrlSessionIdFilter/filter-name
 url-pattern/employeeUI/*/url-pattern
  /filter-mapping
  filter-mapping
 filter-namewikiUrlSessionIdFilter/filter-name
 url-pattern/partyRoleUI/*/url-pattern
  /filter-mapping
  filter-mapping
 filter-namewikiUrlSessionIdFilter/filter-name
 url-pattern/agriStatsMainUI/*/url-pattern
  /filter-mapping
  filter-mapping
 filter-namewikiUrlSessionIdFilter/filter-name
 url-pattern/agriStatsStandardLayoutUI/*/url-pattern
  /filter-mapping
  filter
filter-namesitemesh/filter-name
   
filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
  /filter
  filter-mapping
filter-namesitemesh/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value3/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value3/param-value
/init-param
load-on-startup0/load-on-startup
  /servlet
  servlet
servlet-nameaction_tmp/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value3/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value3/param-value
/init-param
load-on-startup0/load-on-startup
  /servlet
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping
  servlet
servlet-nameJUnitEETestServlet/servlet-name
servlet-classorg.junitee.servlet.JUnitEEServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameJUnitEETestServlet/servlet-name
url-pattern/TestServlet/*/url-pattern
  /servlet-mapping
  session-config
session-timeout60/session-timeout
  /session-config
/web-app


And below is the content of the server.xml---pretty much standard as
provided by Tomcat, except for the definition for the email resource.  I
also modified the standard context.xml to include a DefaultContext for our
email server (I did not provide contents of context.xml--but can if you need
it).  These modifications existed in the xml files for Tomcat 5.0.28.  
  
?xml version=1.0 encoding=UTF-8?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may

Re: Tomcat 5.5.28 Class loading issue

2010-01-26 Thread Pid

On 26/01/2010 18:12, ssmith wrote:


Sorry, new to Nabble.

I am defining a servlet filter.

I tried to use the existing wars built for Tomcat 5.0.28, but they would not
deploy at all.  So, yes, I rebuilt them for Tomcat 5.5.28.


You should rebuild, especially if you are compiling JSPs.


Yes, I have a servlet-api.jar in the WEB-INF/lib/ and tomcat/common/lib
directories.


That'll be a problem.  Don't put it in WEB-INF/lib.


Eclipse (really MyEclipse) automatically builds the war with
the jar, based on the project build path.  I removed the servlet-api.jar
from the WEB-INF/lib and started the server again---got the following error:

SEVERE: Exception starting filter sitemesh
java.lang.NoClassDefFoundError: javax/servlet/Filter
at java.lang.ClassLoader.defineClass1(Native Method)


Tomcat supplies all of the servlet  JSPs jars, you don't need to add them.


With the servlet-api.jar in WEB-INF/lib/ I get the following error--which is
my original error that I posted:

SEVERE: Exception starting filter sitemesh
java.lang.ClassCastException:
com.opensymphony.module.sitemesh.filter.PageFilter


As above, this is incorrect and will cause problems.


I listed jasper.jar as being an issue.


Why?  If it's also duplicated in WEB-INF, then it should not be.


It was naming-*.jars packaged with Tomcat 5.5.28 that was an issue.


Again, why.  No duplication allowed as above.


Also, I had a references to older jars
(such as jstl.jar) in my project--Tomcat 5.5.28 uses newer jars for several
things.


Tomcat 5.5 doesn't know JSTL exists, you must supply it if you are using it.

Classes should only exist in one place in the classloader tree.  You may 
not duplicate any class in WEB-INF that is supplied with Tomcat, in 
tomcat/lib.



Yes, the class definitions in the web.xml are correctas they are when it
runs on Tomcat 5.0.28.

I orginally stated that the WikiUrlSessionIdFilter was a direct plug in
class.  That was not correct--it is referenced and used within our
agriStatsUtilities.jar. The sitemesh class is a direct plug in class.
Following is the web.xml:


You might consider (backing up, then) removing all of the comments from 
your active server.xml.  Much easier to read.



p



?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   filter
  filter-namewikiUrlSessionIdFilter/filter-name

filter-classcom.agristats.agriStatsUtilities.util.WikiUrlSessionIdFilter/filter-class
   /filter
   filter-mapping
  filter-namewikiUrlSessionIdFilter/filter-name
  url-pattern/*/url-pattern
   /filter-mapping
   filter-mapping
  filter-namewikiUrlSessionIdFilter/filter-name
  url-pattern*.do/url-pattern
   /filter-mapping
   filter-mapping
  filter-namewikiUrlSessionIdFilter/filter-name
  url-pattern/employeeUI/*/url-pattern
   /filter-mapping
   filter-mapping
  filter-namewikiUrlSessionIdFilter/filter-name
  url-pattern/partyRoleUI/*/url-pattern
   /filter-mapping
   filter-mapping
  filter-namewikiUrlSessionIdFilter/filter-name
  url-pattern/agriStatsMainUI/*/url-pattern
   /filter-mapping
   filter-mapping
  filter-namewikiUrlSessionIdFilter/filter-name
  url-pattern/agriStatsStandardLayoutUI/*/url-pattern
   /filter-mapping
   filter
 filter-namesitemesh/filter-name

filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
   /filter
   filter-mapping
 filter-namesitemesh/filter-name
 url-pattern/*/url-pattern
   /filter-mapping
   servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value3/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value3/param-value
 /init-param
 load-on-startup0/load-on-startup
   /servlet
   servlet
 servlet-nameaction_tmp/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value3/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value3/param-value
 /init-param
 load-on-startup0/load-on-startup
   /servlet
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
   /servlet-mapping
   servlet
 servlet-nameJUnitEETestServlet/servlet-name
 servlet-classorg.junitee.servlet.JUnitEEServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-nameJUnitEETestServlet/servlet-name
 url-pattern/TestServlet

Tomcat 5.5.28 EL not evaluated

2010-01-22 Thread sharmila punde
Dear All,
My OS is fedora, and i have installed tomcat 5.5.28. I have web app.  My 
jsp page has EL as follow-
${perosn.name}.

I put jsp-api.jar, servlet-api.jar into /usr/java/jdk1.5.0_16/jre/lib/ext.
Servlet works fine, but above EL is considered as plain text. My web.xml of web 
app has following lines -

jsp-config
jsp-property-group
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
scripting-invalid
true
/scripting-invalid
/jsp-property-group
/jsp-config
Why EL is not getting evaluated after translation to .java file.
Can some one please help me sort out this problem
Regards



 

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



RE: Tomcat 5.5.28 EL not evaluated

2010-01-22 Thread Hadole, Nishant IN BOM SISL
Check this FAQ - http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected

With best regards,
Nishant Hadole

Siemens IT Solutions and Services
SIS PRO SI-I
Tel.: +91 22 2495 7816
Fax: +91 22 6660 8521
Mailto: nishant.had...@siemens.com
www.siemens.co.in
-Original Message-
From: sharmila punde [mailto:sharmila...@yahoo.com]
Sent: Friday, 22 January, 2010 04:13 PM
To: users@tomcat.apache.org
Subject: Tomcat 5.5.28 EL not evaluated

Dear All,
My OS is fedora, and i have installed tomcat 5.5.28. I have web app.  My 
jsp page has EL as follow-
${perosn.name}.

I put jsp-api.jar, servlet-api.jar into /usr/java/jdk1.5.0_16/jre/lib/ext.
Servlet works fine, but above EL is considered as plain text. My web.xml of web 
app has following lines -

jsp-config
jsp-property-group
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
scripting-invalid
true
/scripting-invalid
/jsp-property-group
/jsp-config
Why EL is not getting evaluated after translation to .java file.
Can some one please help me sort out this problem
Regards





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


Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.


Re: Tomcat 5.5.28 EL not evaluated

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

Sharmila,

On 1/22/2010 5:43 AM, sharmila punde wrote:
 My OS is fedora, and i have installed tomcat 5.5.28. I have web app.
 My jsp page has EL as follow- ${perosn.name}.

Did you mean ${person.name}? Could that be the problem?

 I put jsp-api.jar, servlet-api.jar into /usr/java/jdk1.5.0_16/jre/lib/ext.

Why did you put those files into the system-wide library folder? If
you're using Tomcat, they should be available to any webapp that needs them.

 Servlet works fine, but above EL is considered as plain text. My
 web.xml of web app has following lines -
 
 jsp-config
 jsp-property-group
 url-pattern*.jsp/url-pattern
   el-ignoredfalse/el-ignored
 scripting-invalid
 true
 /scripting-invalid
 /jsp-property-group
 /jsp-config

 Why EL is not getting evaluated after translation to .java file.
 Can some one please help me sort out this problem

Are other EL and/or scripting elements working as expected on this page?

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

iEYEARECAAYFAktZ6uwACgkQ9CaO5/Lv0PDg4gCeMi93eiwdqbPB/ZKXtU7SHcCw
Ic8An0zEyXhY+KsqZUXHu/HiwY7jrhUF
=PtlP
-END PGP SIGNATURE-

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



RE: Solved Tomcat 5.5.28 EL not evaluated

2010-01-22 Thread sharmila punde
Thanks Nishant,
  Thank you very much. It was very helpful. 
Regards

--- On Fri, 22/1/10, Hadole, Nishant IN BOM SISL nishant.had...@siemens.com 
wrote:

 From: Hadole, Nishant IN BOM SISL nishant.had...@siemens.com
 Subject: RE: Tomcat 5.5.28 EL not evaluated
 To: 'Tomcat Users List' users@tomcat.apache.org
 Date: Friday, 22 January, 2010, 17:24
 Check this FAQ - http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected

 
 With best regards,
 Nishant Hadole
 
 Siemens IT Solutions and Services
 SIS PRO SI-I
 Tel.: +91 22 2495 7816
 Fax: +91 22 6660 8521
 Mailto: nishant.had...@siemens.com
 www.siemens.co.in
 -Original Message-
 From: sharmila punde [mailto:sharmila...@yahoo.com]
 Sent: Friday, 22 January, 2010 04:13 PM
 To: users@tomcat.apache.org
 Subject: Tomcat 5.5.28 EL not evaluated
 
 Dear All,
 My OS is fedora, and i have installed tomcat
 5.5.28. I have web app.  My jsp page has EL as follow-
 ${perosn.name}.
 
 I put jsp-api.jar, servlet-api.jar into
 /usr/java/jdk1.5.0_16/jre/lib/ext.
 Servlet works fine, but above EL is considered as plain
 text. My web.xml of web app has following lines -
 
 jsp-config
 jsp-property-group

 url-pattern*.jsp/url-pattern

 el-ignoredfalse/el-ignored

 scripting-invalid

 true

 /scripting-invalid
 /jsp-property-group
 /jsp-config
 Why EL is not getting evaluated after translation to .java
 file.
 Can some one please help me sort out this problem
 Regards
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 Important notice: This e-mail and any attachment there to
 contains corporate proprietary information. If you have
 received it by mistake, please notify us immediately by
 reply e-mail and delete this e-mail and its attachments from
 your system.
 Thank You.
 




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



Tomcat 5.5.28 with simple valve causes startup errors

2009-12-16 Thread Martin B. Smith

Hi folks,

I'm getting some exceptions with a vanilla Tomcat 5.5.28 and a simple 
logging valve. I'm using the following version of Java:


java version 1.5.0_22
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)

The valve I've configured inside a Host element:
  Valve 
classname=org.apache.catalina.valves.FastCommonAccessLogValve 
resolveHosts=false rotatable=false pattern=combined /


Below I'm including the stack trace I receive, and below that, the full 
server.xml including the fragment above.


Am I way off the path on configuring a logging valve?

Thanks!

Martin B. Smith
smit...@ufl.edu - (352) 273-1374
CNS/Open Systems Group
University of Florida


--

2009-12-16 11:25:23,071  WARN main org.apache.catalina.startup.Catalina 
- Catalina.start using conf/server.xml:

java.lang.NullPointerException
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2726)
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2752)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1279)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at 
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)

at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.start(Catalina.java:544)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at 
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)

at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)

... 18 more
2009-12-16 11:25:23,192  INFO main org.apache.catalina.startup.Catalina 
- Server startup in 0 ms

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
... 6 more


and my config:


Server port=8005 shutdown=SHUTDOWN
 Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/


 Service name=Catalina
Connector protocol=AJP/1.3 debug=0 redirectPort=443
   enableLookups=false port=8000 maxProcessors=1024
   minProcessors=20 acceptCount=10 
connectionTimeout=2

   URIEncoding=UTF-8

Re: Tomcat 5.5.28 with simple valve causes startup errors

2009-12-16 Thread Mark Thomas
On 16/12/2009 17:28, Martin B. Smith wrote:
 Hi folks,
 
 I'm getting some exceptions with a vanilla Tomcat 5.5.28 and a simple
 logging valve. I'm using the following version of Java:
 
 java version 1.5.0_22
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)
 
 The valve I've configured inside a Host element:
   Valve
 classname=org.apache.catalina.valves.FastCommonAccessLogValve
 resolveHosts=false rotatable=false pattern=combined /
 
 Below I'm including the stack trace I receive, and below that, the full
 server.xml including the fragment above.
 
 Am I way off the path on configuring a logging valve?

Not way off but every so slightly off but in a way the *really* upsets
things. Try using className rather than classname.

Mark



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



Re: Tomcat 5.5.28 with simple valve causes startup errors

2009-12-16 Thread Martin B. Smith

On 12/16/2009 11:33 AM, Mark Thomas wrote:

On 16/12/2009 17:28, Martin B. Smith wrote:

Hi folks,

I'm getting some exceptions with a vanilla Tomcat 5.5.28 and a simple
logging valve. I'm using the following version of Java:

java version 1.5.0_22
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)

The valve I've configured inside a Host element:
   Valve
classname=org.apache.catalina.valves.FastCommonAccessLogValve
resolveHosts=false rotatable=false pattern=combined /

Below I'm including the stack trace I receive, and below that, the full
server.xml including the fragment above.

Am I way off the path on configuring a logging valve?


Not way off but every so slightly off but in a way the *really* upsets
things. Try using className rather than classname.

Mark



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




Thanks!

I took this from documentation and didn't catch that *facepalm* :)

--
Martin B. Smith
smit...@ufl.edu - (352) 273-1374
CNS/Open Systems Group
University of Florida

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



CGI on Tomcat 5.5.28

2009-12-07 Thread nicoli

Hi,

I have installed Tomcat 5.5.28 on my Windows XP computer.
I did all recommended changes to a web.xml:
- uncommented 
servlet
servlet-namecgi/servlet-name
   
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
init-param
  param-nameexecutable/param-name
  param-valueperl/param-value
/init-param
 load-on-startup5/load-on-startup
/servlet


servlet
servlet-namessi/servlet-name
servlet-class
  org.apache.catalina.ssi.SSIServlet
/servlet-class
init-param
  param-namebuffered/param-name
  param-value1/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-nameexpires/param-name
  param-value666/param-value
/init-param
init-param
  param-nameisVirtualWebappRelative/param-name
  param-value0/param-value
/init-param
load-on-startup4/load-on-startup
/servlet

!-- The mapping for the SSI servlet --

servlet-mapping
servlet-namessi/servlet-name
url-pattern*.shtml/url-pattern
/servlet-mapping


!-- The mapping for the CGI Gateway servlet --


servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping

Renamemed $CATALINA_BASE/server/lib/servlets-cgi.renametojar to
$CATALINA_BASE/server/lib/servlets-cgi.jar.

But when I'm trying to execute cgi module from IE, it doesn't recognize it
as executable.
Please help.
What is wrong?

Thank you in advance

 
-- 
View this message in context: 
http://old.nabble.com/CGI-on-Tomcat-5.5.28-tp26683636p26683636.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: CGI on Tomcat 5.5.28

2009-12-07 Thread Mark Thomas
nicoli wrote:

 But when I'm trying to execute cgi module from IE, it doesn't recognize it
 as executable.
 Please help.
 What is wrong?

A few questions:
- What URL are you requesting ?
- Where is the cgi script located in the web app?

Mark




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



Re: CGI on Tomcat 5.5.28

2009-12-07 Thread André Warnier

nicoli wrote:

Hi,

I have installed Tomcat 5.5.28 on my Windows XP computer.
I did all recommended changes to a web.xml:
- uncommented 
servlet

servlet-namecgi/servlet-name
   
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class

init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
init-param
  param-nameexecutable/param-name
  param-valueperl/param-value
/init-param
 load-on-startup5/load-on-startup
/servlet


servlet
servlet-namessi/servlet-name
servlet-class
  org.apache.catalina.ssi.SSIServlet
/servlet-class
init-param
  param-namebuffered/param-name
  param-value1/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-nameexpires/param-name
  param-value666/param-value
/init-param
init-param
  param-nameisVirtualWebappRelative/param-name
  param-value0/param-value
/init-param
load-on-startup4/load-on-startup
/servlet

!-- The mapping for the SSI servlet --

servlet-mapping
servlet-namessi/servlet-name
url-pattern*.shtml/url-pattern
/servlet-mapping


!-- The mapping for the CGI Gateway servlet --


servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping

Renamemed $CATALINA_BASE/server/lib/servlets-cgi.renametojar to
$CATALINA_BASE/server/lib/servlets-cgi.jar.

But when I'm trying to execute cgi module from IE, it doesn't recognize it
as executable.


What does it do then ?
What is the URL you are using in the browser ?
Where is your cgi script (on disk) ?
Is Perl installed on your computer ?
If yes, is it in the PATH (for Tomcat) ?
What if you replace the above
 init-param
   param-nameexecutable/param-name
   param-valueperl/param-value
 /init-param
by
 init-param
   param-nameexecutable/param-name
   param-valuec:/perl/bin/perl.exe/param-value
 /init-param
(or wherever perl.exe really is)



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



Re: CGI on Tomcat 5.5.28

2009-12-07 Thread nicoli

Hi Mark,

Thank you for quick response.
I'm using URL as http://localhost/cognos.cgi
cognos.cgi is located in Tmcat's ROOT directory.
What IE is doing - just asking to choose program to open cognos.cgi
The same issue happens when it’s trying to open cognos.cgi file from a
virtual directory that I configured in server.xml

Thank you in advance



markt-2 wrote:
 
 nicoli wrote:
 
 But when I'm trying to execute cgi module from IE, it doesn't recognize
 it
 as executable.
 Please help.
 What is wrong?
 
 A few questions:
 - What URL are you requesting ?
 - Where is the cgi script located in the web app?
 
 Mark
 
 
 
 
 -
 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/CGI-on-Tomcat-5.5.28-tp26683636p26685673.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: CGI on Tomcat 5.5.28

2009-12-07 Thread Mark Thomas
nicoli wrote:
 Hi Mark,
 
 Thank you for quick response.
 I'm using URL as http://localhost/cognos.cgi
 cognos.cgi is located in Tmcat's ROOT directory.
 What IE is doing - just asking to choose program to open cognos.cgi
 The same issue happens when it’s trying to open cognos.cgi file from a
 virtual directory that I configured in server.xml

Go back and re-read http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html

cognos.cgi needs to be located at
/WEB-INF/cgi/cognos.cgi
The URL to request it is
http://localhost/cgi-bin/cognos.cgi

All of that is configurable as per the docs (link above) and the
comments in the global web.xml

Mark

 
 Thank you in advance
 
 
 
 markt-2 wrote:
 nicoli wrote:

 But when I'm trying to execute cgi module from IE, it doesn't recognize
 it
 as executable.
 Please help.
 What is wrong?
 A few questions:
 - What URL are you requesting ?
 - Where is the cgi script located in the web app?

 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: CGI on Tomcat 5.5.28

2009-12-07 Thread nicoli

Mark,

I also tried to run it from http://localhost/cgi-bin/cognos.cgi
but for some reason IE doesn't find cognos.cgi in that directory, even
WEB-INF/cgi value is specified for cgiPathPrefix:
init-param 
  param-namecgiPathPrefix/param-name 
  param-valueWEB-INF/cgi/param-value 
/init-param 

Thank you


markt-2 wrote:
 
 nicoli wrote:
 Hi Mark,
 
 Thank you for quick response.
 I'm using URL as http://localhost/cognos.cgi
 cognos.cgi is located in Tmcat's ROOT directory.
 What IE is doing - just asking to choose program to open cognos.cgi
 The same issue happens when it’s trying to open cognos.cgi file from a
 virtual directory that I configured in server.xml
 
 Go back and re-read http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html
 
 cognos.cgi needs to be located at
 /WEB-INF/cgi/cognos.cgi
 The URL to request it is
 http://localhost/cgi-bin/cognos.cgi
 
 All of that is configurable as per the docs (link above) and the
 comments in the global web.xml
 
 Mark
 
 
 Thank you in advance
 
 
 
 markt-2 wrote:
 nicoli wrote:

 But when I'm trying to execute cgi module from IE, it doesn't recognize
 it
 as executable.
 Please help.
 What is wrong?
 A few questions:
 - What URL are you requesting ?
 - Where is the cgi script located in the web app?

 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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/CGI-on-Tomcat-5.5.28-tp26683636p26686198.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: CGI on Tomcat 5.5.28

2009-12-07 Thread Mark Thomas
nicoli wrote:
 Mark,
 
 I also tried to run it from http://localhost/cgi-bin/cognos.cgi
 but for some reason IE doesn't find cognos.cgi in that directory, even
 WEB-INF/cgi value is specified for cgiPathPrefix:
 init-param 
   param-namecgiPathPrefix/param-name 
   param-valueWEB-INF/cgi/param-value 
 /init-param 
 
 Thank you

cognos.cgi is located where now?
Exactly what error message do you get?

Mark

 
 
 markt-2 wrote:
 nicoli wrote:
 Hi Mark,

 Thank you for quick response.
 I'm using URL as http://localhost/cognos.cgi
 cognos.cgi is located in Tmcat's ROOT directory.
 What IE is doing - just asking to choose program to open cognos.cgi
 The same issue happens when it’s trying to open cognos.cgi file from a
 virtual directory that I configured in server.xml
 Go back and re-read http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html

 cognos.cgi needs to be located at
 /WEB-INF/cgi/cognos.cgi
 The URL to request it is
 http://localhost/cgi-bin/cognos.cgi

 All of that is configurable as per the docs (link above) and the
 comments in the global web.xml

 Mark

 Thank you in advance



 markt-2 wrote:
 nicoli wrote:

 But when I'm trying to execute cgi module from IE, it doesn't recognize
 it
 as executable.
 Please help.
 What is wrong?
 A few questions:
 - What URL are you requesting ?
 - Where is the cgi script located in the web app?

 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



 




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



Starting up Apache-tomcat 5.5.28

2009-11-08 Thread M A
Hello I'm trying to start Tomcat 5.5.28. I have Java JRE installed: jre1.6.0_07.

JRE_HOME system variable works, I checked it by cd %JRE_HOME%, whicjh takes 
me to C:\jre1.6.0_07.

Tomcat is unzipped into C:\apache-tomcat-5.5.28

I run it:
C:\apache-tomcat-5.5.28\binstartup.bat
and get this error:
Files was unexpected at this time.

I have Windows XP x64 Edition SP2.

How do I get Apache-Tomcat running?

Regards, Dmitri


Luukku Plus -paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku

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



RE: Starting up Apache-tomcat 5.5.28

2009-11-08 Thread Caldarale, Charles R
 From: M A [mailto:do_th...@luukku.com]
 Subject: Starting up Apache-tomcat 5.5.28
 
 I run it:
 C:\apache-tomcat-5.5.28\binstartup.bat
 and get this error:
 Files was unexpected at this time.

The process you described should have worked.  I suspect you have some 
environment variable that the Tomcat scripts are using that is set to an 
unusual value; in particular it may need quotes around the value if it contains 
embedded spaces.  Do a set command to see what is set at the point when 
you're about to run the script; post the results if nothing obvious pops out.

 - 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: Starting up Apache-tomcat 5.5.28

2009-11-08 Thread M A
Hello, here is what I get running set command:


C:\apache-tomcat-5.5.28\binset
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Administrator\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
COMPUTERNAME=DES
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator
JAVA_HOME=C:\Program Files (x86)\Java\jre1.6.0_07
JRE_HOME=C:\jre1.6.0_07
KMP_DUPLICATE_LIB_OK=TRUE
LOGONSERVER=\\DES
NUMBER_OF_PROCESSORS=2
OS=Windows_NT

***Removed some OpenSceneGraph paths.***

Path=C:\Program Files 
(x86)\readers\MikTex\miktex\bin;C:\media\programs\programming\math\watcom_(needed_for_maple)\binnt
;C:\media\programs\programming\math\watcom_(needed_for_maple)\binw;C:\Program 
Files (x86)\Common Files\ArcSoft\Bin;C:\WI
NDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\ATI 
Technologies\ATI.ACE\Core-Static;C:\Python
25;C:\MinGW\bin;C:\Program Files 
(x86)\programming\OpenSceneGraph-2.8.2\bin;C:\Program Files 
(x86)\programming\OpenScene
Graph-2.8.2\share\OpenSceneGraph\bin;C:\Program Files (x86)\CVS Suite\CVSNT 
Tools\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=EM64T Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
USERDOMAIN=DES
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator
VS90COMNTOOLS=C:\Program Files (x86)\programming\Microsoft Visual Studio 
9\Common7\Tools\
WATCOM=C:\media\programs\programming\math\watcom_(needed_for_maple)
windir=C:\WINDOWS



Caldarale, Charles R kirjoitti 08.11.2009 kello 21:12:
  From: M A [mailto:do_th...@luukku.com]
  Subject: Starting up Apache-tomcat 5.5.28
  
  I run it:
  C:\apache-tomcat-5.5.28\binstartup.bat
  and get this error:
  Files was unexpected at this time.
 
 The process you described should have worked.  I suspect you have some
 environment variable that the Tomcat scripts are using that is set to an
 unusual value; in particular it may need quotes around the value if it
 contains embedded spaces.  Do a set command to see what is set at the
 point when you're about to run the script; post the results if nothing
 obvious pops out.
 
  - 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
 



Luukku Plus -paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku

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



RE: Starting up Apache-tomcat 5.5.28

2009-11-08 Thread Caldarale, Charles R
 From: M A [mailto:do_th...@luukku.com]
 Subject: RE: Starting up Apache-tomcat 5.5.28
 
 JAVA_HOME=C:\Program Files (x86)\Java\jre1.6.0_07

Try getting rid of the above.  Even though it is wrapped by quotes, it causes a 
problem.  The JRE_HOME setting will suffice.

(Cue André's highly appropriate rant about spaces in path names... :-)

 - 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: Starting up Apache-tomcat 5.5.28

2009-11-08 Thread M A
Caldarale, Charles R kirjoitti 08.11.2009 kello 21:42:
  From: M A [mailto:do_th...@luukku.com]
  Subject: RE: Starting up Apache-tomcat 5.5.28
  
  JAVA_HOME=C:\Program Files (x86)\Java\jre1.6.0_07
 
 Try getting rid of the above.  Even though it is wrapped by quotes, it
 causes a problem.  The JRE_HOME setting will suffice.
 
 (Cue André's highly appropriate rant about spaces in path names... :-)
 
  - Chuck

Thank you for helping, now the server works. JAVA_HOME was left there from 
using by some other application, I didn't think it could cause a problm.


Luukku Plus -paketilla pääset eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku

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



Re: Starting up Apache-tomcat 5.5.28

2009-11-08 Thread André Warnier

Caldarale, Charles R wrote:

From: M A [mailto:do_th...@luukku.com]
Subject: RE: Starting up Apache-tomcat 5.5.28

JAVA_HOME=C:\Program Files (x86)\Java\jre1.6.0_07


Try getting rid of the above.  Even though it is wrapped by quotes, it causes a 
problem.  The JRE_HOME setting will suffice.

(Cue André's highly appropriate rant about spaces in path names... :-)


R i g h t.

To which should maybe be added the uncertain interpretation of 
backslashes inside quoted strings.



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



Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread Michael C
Hi all,

I’m using a program called EMC Smarts which is a network monitoring
tool.  It can accommodate a web interface using Tomcat, which is
currently version 5.5.28 and works perfectly.  I am trying to upgrade
to version 6.0.20 but am having some trouble.  Smarts official
documentation for Tomcat upgrades says to rename the tomcat folder
within the Smarts directory to tomcat-old and just unzip the new one
in place of the old one (and rename it to what the old one was named).
 But also needed are several folders from the old install,
specifically tss, templates and webconsole, as well as the
SMViewletAuth.war file from the webapps folder.  They are supposed to
be pasted into the new install.  I’ve done all this (I did the same
process which worked to get to 5.5.28), and Tomcat no longer works.  I
read on the migration page that there are some directory structure
differences between Tomcat 5 and 6, but I am no Tomcat expert, in fact
today is the first time I’ve had to deal with it at all.  I know my
version of java is good, and I looked in conf/catalina.properties and
noticed that there are differences, but I have no idea if this
matters.  I have requested support from EMC about this, but I do not
have high hopes.  Any input at all would be appreciated.

--Michael

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



RE: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread Caldarale, Charles R
 From: Michael C [mailto:tomcat6d...@gmail.com]
 Subject: Tomcat 5.5.28 to 6.0.20 migration question
 
 Tomcat no longer works.

Care to tell us what that means?  Log entries, error messages, anything useful? 
 Or do we have to call Pid to get him to use his Internet Telepathy?

 - 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: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread Michael C
Chuck,

I can't get to the server at the moment but I'm an absolute noob. The
way I know it doesn't work is that when I go to http://tomcat
server:8080 I don't get the tomcat screen that comes up with version
5.5.28.  Just page cannot be displayed. As soon as I am allowed, I'll
check the log files (which I hope are in /logs folder). Tomcat is run
as a service by the Smarts program when it starts, and the service
does start, so I'm not sure where I would see errors.  Also, a little
telepathy couldn't hurt.

--Mike

On Thursday, November 5, 2009, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Michael C [mailto:tomcat6d...@gmail.com]
 Subject: Tomcat 5.5.28 to 6.0.20 migration question

 Tomcat no longer works.

 Care to tell us what that means?  Log entries, error messages, anything 
 useful?  Or do we have to call Pid to get him to use his Internet Telepathy?

  - 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: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread André Warnier

Caldarale, Charles R wrote:

From: Michael C [mailto:tomcat6d...@gmail.com]
Subject: Tomcat 5.5.28 to 6.0.20 migration question

Tomcat no longer works.


Care to tell us what that means?  Log entries, error messages, anything useful? 
 Or do we have to call Pid to get him to use his Internet Telepathy?


Michael,
since you are new here, don't go misinterpreting the above.
Chuck is a bit rough sometimes, but he's good.
And the above contains a hint that he might even be inclined to help, if 
you provide some more info.
Cos' if he wasn't, he'd just have told you to go find yourself a Smarts 
forum.


;-)

And by the way, Pid is another one of the gurus here.  His specialty is 
to devine, at long distance and with minimal information, what actually 
does not work.  But we keep him in reserve for the really bizarre cases, 
ghostbusters-like.


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



RE: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread Caldarale, Charles R
 From: Michael C [mailto:tomcat6d...@gmail.com]
 Subject: Re: Tomcat 5.5.28 to 6.0.20 migration question
 
 when I go to http://tomcatserver:8080 I don't get the tomcat screen 
 that comes up with version 5.5.28.  Just page cannot be displayed.

Sounds like you're using IE as your browser; if so, I'd strongly recommend 
picking anything else, since IE likes to hide errors behind its friendly 
error pages (which can be turned off).

 As soon as I am allowed, I'll check the log files (which I hope 
 are in /logs folder).

When using a 3rd-party repackaged or an embedded version of Tomcat, there's no 
telling where the logs are; you may have to hunt for them.  Also, since the log 
file names are configurable, the repackaged/embedded version might not even be 
using the normal file names, let alone locations.  You might try experimenting 
a bit with a standard Tomcat download from tomcat.apache.org to get an idea of 
what to expect.

 Also, a little telepathy couldn't hurt.

It's 21:50 where Pid is, so that might have to wait until tomorrow.

 - 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: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread André Warnier

Michael C wrote:

Chuck,

I can't get to the server at the moment but I'm an absolute noob. The
way I know it doesn't work is that when I go to http://tomcat
server:8080 I don't get the tomcat screen that comes up with version
5.5.28.  Just page cannot be displayed. As soon as I am allowed, I'll
check the log files (which I hope are in /logs folder). Tomcat is run
as a service by the Smarts program when it starts, and the service
does start, so I'm not sure where I would see errors.  Also, a little
telepathy couldn't hurt.

Mmm.  Maybe I can gain some credits on my long-distance devination 
rating here.

Let me feel the nodes and receive the vibes.. what do I see ?
I see.. a system.. a Windows system..
with a Smarts directory, and in it a tomcat directory...
and that tomcat directory looks like it contains a logs directory, where 
there might well be some file which would tell Chuck what happens.
it also seems to contain a bin directory, with a program called 
tomcat6w.exe.

and when you double-click on that one, it opens a dialog.
and in that dialog, there are plenty of things, like a path to a JVM and 
stuff.
also, in Windows there are Event logs. Sometimes they also contain 
interesting stuff about Services.
there is also, under the tomcat directory, a /conf directory, with a 
file in it called server.xml.

I would bet that it contains at least one part looking like
Connector port=8080 ...
and if it does not, it probably should.
I mean, instead of 8180 or something.

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



Re: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread Michael C
Chuck,

I fully agree about IE but the people in charge don't wanna hear it.
The fact that this is a third party tomcat install confuses me even
more than if it was normal, and definitely frustrating that the logs
could be anywhere. If we pretend I did have a normal install, are
there any extra steps involved going from 5 to 6 that could be useful?
 Because going from 5.5.17 to 5.5.28 was extremely easy, following the
steps I said in the original email.  I do plan on experimenting with a
vanilla install tomorrow (I get access tomorrow afternoon since
everyone will be gone) but not sure how helpful it will be given the
third party nature.

--Mike

On Thursday, November 5, 2009, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Michael C [mailto:tomcat6d...@gmail.com]
 Subject: Re: Tomcat 5.5.28 to 6.0.20 migration question

 when I go to http://tomcatserver:8080 I don't get the tomcat screen
 that comes up with version 5.5.28.  Just page cannot be displayed.

 Sounds like you're using IE as your browser; if so, I'd strongly recommend 
 picking anything else, since IE likes to hide errors behind its friendly 
 error pages (which can be turned off).

 As soon as I am allowed, I'll check the log files (which I hope
 are in /logs folder).

 When using a 3rd-party repackaged or an embedded version of Tomcat, there's 
 no telling where the logs are; you may have to hunt for them.  Also, since 
 the log file names are configurable, the repackaged/embedded version might 
 not even be using the normal file names, let alone locations.  You might try 
 experimenting a bit with a standard Tomcat download from tomcat.apache.org to 
 get an idea of what to expect.

 Also, a little telepathy couldn't hurt.

 It's 21:50 where Pid is, so that might have to wait until tomorrow.

  - 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: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread Caldarale, Charles R
 From: Michael C [mailto:tomcat6d...@gmail.com]
 Subject: Re: Tomcat 5.5.28 to 6.0.20 migration question
 
 I fully agree about IE but the people in charge don't wanna hear it.

I didn't mean for everyone, just for your testing until things are sorted.

 If we pretend I did have a normal install, are there any extra steps 
 involved going from 5 to 6 that could be useful?

Not really; the config is pretty much the same, other than for clustering.  
There are a few new options for 6.0, but nothing that should stop your webapps 
from working.  There are some Jasper fixes for spec compliance that may result 
in incompatibilities, and these can be disabled by setting the appropriate 
system properties.  Whether or not they're of consequence can't be determined 
without looking at the logs.
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html

 - 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: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread Michael C
Andre,

From what I'm able to remember, that's amazing!  Also I will check all
of those places as soon as I'm allowed back on. I'm almost certain
server.XML contains 8080.

-Mike

On Thursday, November 5, 2009, André Warnier a...@ice-sa.com wrote:
 Michael C wrote:

 Chuck,

 I can't get to the server at the moment but I'm an absolute noob. The
 way I know it doesn't work is that when I go to http://tomcat
 server:8080 I don't get the tomcat screen that comes up with version
 5.5.28.  Just page cannot be displayed. As soon as I am allowed, I'll
 check the log files (which I hope are in /logs folder). Tomcat is run
 as a service by the Smarts program when it starts, and the service
 does start, so I'm not sure where I would see errors.  Also, a little
 telepathy couldn't hurt.


 Mmm.  Maybe I can gain some credits on my long-distance devination rating 
 here.
 Let me feel the nodes and receive the vibes.. what do I see ?
 I see.. a system.. a Windows system..
 with a Smarts directory, and in it a tomcat directory...
 and that tomcat directory looks like it contains a logs directory, where 
 there might well be some file which would tell Chuck what happens.
 it also seems to contain a bin directory, with a program called tomcat6w.exe.
 and when you double-click on that one, it opens a dialog.
 and in that dialog, there are plenty of things, like a path to a JVM and 
 stuff.
 also, in Windows there are Event logs. Sometimes they also contain 
 interesting stuff about Services.
 there is also, under the tomcat directory, a /conf directory, with a file in 
 it called server.xml.
 I would bet that it contains at least one part looking like
 Connector port=8080 ...
 and if it does not, it probably should.
 I mean, instead of 8180 or something.

 -
 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: Tomcat 5.5.28 to 6.0.20 migration question

2009-11-05 Thread André Warnier

Michael C wrote:

Chuck,

I fully agree about IE but the people in charge don't wanna hear it.
The fact that this is a third party tomcat install confuses me even
more than if it was normal, and definitely frustrating that the logs
could be anywhere. If we pretend I did have a normal install, are
there any extra steps involved going from 5 to 6 that could be useful?
 Because going from 5.5.17 to 5.5.28 was extremely easy, following the
steps I said in the original email.  I do plan on experimenting with a
vanilla install tomorrow (I get access tomorrow afternoon since
everyone will be gone) but not sure how helpful it will be given the
third party nature.

Well you see, we're guessing also, because we have no idea what Smarts 
did to Tomcat.  Although if they say that you could just download a new 
tomcat and unzip it to the same directory, then what they did might not 
be so bad.

There is one element here that may be a cause of problems :
To run Tomcat as a service under Windows, there are a couple of .exe 
programs being used.  Under all versions of Tomcat 5.0 and 5.5, they are 
called tomcat5.exe and tomcat5w.exe.
So when you upgraded before from 5.5.17 to 5.5.28, these names did not 
change.
But with Tomcat 6, they are the same programs, but they are renamed to 
tomcat6.exe and tomcat6w.exe.
But Smarts probably doesn't know that, so it may still try to call up 
tomcat5.exe to start Tomcat as a service.
And who knows which one is running, when you say that the Service is 
running..


Maybe you could start at the beginning.
Verify that the Tomcat service is running, and have a look :
- with the Task Manager, and check which tomcat-like .exe program is 
really running

- with a command window,
  - enter net start and check if you see a line in there mentioning 
tomcat (and if yes, paste it here so that we can see it too)

  - enter netstat -an and see there is a line with something like
TCP  127.0.0.1:8080 ..LISTEN
and then if it says by any chance
TCP  127.0.0.1:8180 ..LISTEN
instead, try with your browser to access
http://localhost:8180

Come to think of it, enter netstat -an and then cut and paste here all 
the lines that start with TCP.

I mean we can guess, but it is very energy-consuming, spiritually speaking.

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



RE: How to install Tomcat 5.5.28 32-bit version on Windows 64-bit version?

2009-10-19 Thread Jeffrey Janner
The only reason I can think of for wanting to run 32-bit on 64-bit O/S
is too test against a production setup that is still 32-bit (for memory
limits, etc.)
Personally, I'm glad the 5.5.28 implemented this change, as those were
some significant hoops to jump through to get the 64-bit binaries for
procrun and the native dlls, like I did at 5.5.27.  They weren't all
that easy to locate for a general users.
Personally, I'm all for 64-bit everything these days.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Thursday, October 15, 2009 8:05 AM
To: Tomcat Users List
Subject: RE: How to install Tomcat 5.5.28 32-bit version on Windows
64-bit version?

 From: Vadim Volkov [mailto:chain@gmail.com]
 Subject: Re: How to install Tomcat 5.5.28 32-bit version on Windows
64-
 bit version?
 
 I strongly needs in 32-bit JRE and 32-bit Tomcat
 service on 64-bit Windows.

Could you please tell us why?  I can't imagine any reason one would want
a 32-bit JVM these days, except for JNI compatibility, which is not an
issue with Tomcat.  Note that you can have both 32- and 64-bit JVMs
installed at the same time.

 Is it feasible to install 32-bit version of Tomcat on 64-bit Windows +
 32-bit JVM?

Tomcat itself is pure Java, so it's only the service wrapper that has to
be the same mode as the JVM being used.  You can get the 32-bit version
here:
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/

 - 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



***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


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



RE: How to install Tomcat 5.5.28 32-bit version on Windows 64-bit version?

2009-10-19 Thread George Sexton
 -Original Message-
 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
 Sent: Monday, October 19, 2009 10:28 AM
 To: Tomcat Users List
 Subject: RE: How to install Tomcat 5.5.28 32-bit version on Windows 64-
 bit version?
 
 The only reason I can think of for wanting to run 32-bit on 64-bit O/S
 is too test against a production setup that is still 32-bit (for memory
 limits, etc.)


Here's one more nasty reason. If you're using the JDBC/ODBC Bridge you
probably need to run on 32-bit. That's because MS isn't making 64 bit ODBC
drivers. Particularly MS Access.

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


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



RE: How to install Tomcat 5.5.28 32-bit version on Windows 64-bit version?

2009-10-19 Thread Jeffrey Janner
George -
Never occurred to me to use Tomcat with Access (or any ODBC for that
matter), but good catch.
I'm sure there are others.  Sometime I has tunnel vision.
Jeff

-Original Message-
From: George Sexton [mailto:geor...@mhsoftware.com] 
Sent: Monday, October 19, 2009 12:05 PM
To: 'Tomcat Users List'
Subject: RE: How to install Tomcat 5.5.28 32-bit version on Windows
64-bit version?

 -Original Message-
 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
 Sent: Monday, October 19, 2009 10:28 AM
 To: Tomcat Users List
 Subject: RE: How to install Tomcat 5.5.28 32-bit version on Windows
64-
 bit version?
 
 The only reason I can think of for wanting to run 32-bit on 64-bit O/S
 is too test against a production setup that is still 32-bit (for
memory
 limits, etc.)


Here's one more nasty reason. If you're using the JDBC/ODBC Bridge you
probably need to run on 32-bit. That's because MS isn't making 64 bit
ODBC
drivers. Particularly MS Access.

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


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



***  NOTICE  *
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


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



Re: How to install Tomcat 5.5.28 32-bit version on Windows 64-bit version?

2009-10-15 Thread Vadim Volkov
Hi Christopher. Thanks for replying.

On Wed, Oct 14, 2009 at 10:04 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
 Are you using 32-bit JVM? If so, then you must use the 32-bit service
 loader.

I'm using 32-bit JVM (JDK 1.5.0_21) on 64-bit Windows.

Form Tomcat 5.5.28 changelog: Add the 64-bit windows service binaries
to the distribution and get the Windows installer to automatically
select the correct one for the current platform. (markt/kkolinko), so
I cannot find different service installer for 32-bit - there is only
one Windows installer
(http://tomcat.apache.org/download-55.cgi#5.5.28)

When I install Tomcat 5.5.28 on 64-bit Windows + 32-bit JVM I get
64-bit service version of Tomcat. There is a note that if I have a
64-bit operation system, I must specify 64-bit JRE during Tomcat
installation, but I strongly needs in 32-bit JRE and 32-bit Tomcat
service on 64-bit Windows.

Is it feasible to install 32-bit version of Tomcat on 64-bit Windows +
32-bit JVM?

Thanks.

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



  1   2   >