RE: [OT] Using tomcat7-maven-plugin- 2.0-beta-1: java.lang.RuntimeException: Name jdbc is not bound in this Context

2012-03-09 Thread Guofeng Zhang
I create a simple project using commons-dbcp and without using any query for 
test, the issue still occurred. I reported a bug.

Thanks!

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Wednesday, March 07, 2012 11:53 PM
To: Tomcat Users List
Subject: Re: [OT] Using tomcat7-maven-plugin- 2.0-beta-1: 
java.lang.RuntimeException: Name jdbc is not bound in this Context

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Guofeng,

On 3/7/12 5:32 AM, Guofeng Zhang wrote:
 Resource auth=Container maxPoolSize=100 minPoolSize=10 
 name=jdbc/iviewDS testQuery=select count(*) from T_ROLE

You might want to use a simper testQuery (like SELECT 1 FROM DUAL, for 
instance). Some RDBMS engines don't have great performance with SELECT 
COUNT(*) (for instance, MySQL using the InnoDB engine).

Also, does your factory generate a DataSource for which testQuery is a valid 
property? If you are using Tomcat's standard connection poll (DBCP's 
BasicDataSource) or Tomcat's other pool (jdbc-pool), then the proper 
configuration attribute is validationQuery.

See
http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#JDBC_Data_Sources

Specifically, step #4 under that heading.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9XhGoACgkQ9CaO5/Lv0PB7yACguvu8xlUz6Yf+MJKMqv5NH0V9
Lv0AnA+8Qyo5NUClxyAJHsfMIaaBbXXk
=K1IB
-END PGP SIGNATURE-

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


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



ClassNotFoundException in jnlp-servlet after restart of Tomcat

2012-03-09 Thread Volodymyr Bezuglyy
Hello!

Our client use Tomcat 5.0.28.
We deploy Web application with jnlp servlet on this Tomcat.
From time to time after restart of Tomcat and when first user tries to 
download our application via Java WebStart there occures 
java.lang.ClassNotFoundException exceptions on Tomcat's side like following:
java.lang.NoClassDefFoundError: jnlp.sample.servlet.DownloadRequest
at 
jnlp.sample.servlet.JnlpDownloadServlet.handleRequest(JnlpDownloadServlet.java:122)
at 
jnlp.sample.servlet.JnlpDownloadServlet.doGet(JnlpDownloadServlet.java:113)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...
Caused by: java.lang.ClassNotFoundException: jnlp.sample.servlet.DownloadRequest
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
... 40 more

or like following
java.lang.NoClassDefFoundError: jnlp.sample.servlet.ResourceCatalog$PathEntries
at 
jnlp.sample.servlet.ResourceCatalog.lookupResource(ResourceCatalog.java:109)
at 
jnlp.sample.servlet.JnlpDownloadServlet.handleVersionRequest(JnlpDownloadServlet.java:204)
at 
jnlp.sample.servlet.JnlpDownloadServlet.locateResource(JnlpDownloadServlet.java:179)
at 
jnlp.sample.servlet.JnlpDownloadServlet.handleRequest(JnlpDownloadServlet.java:120)
at 
jnlp.sample.servlet.JnlpDownloadServlet.doGet(JnlpDownloadServlet.java:85)
...
Caused by: java.lang.ClassNotFoundException: 
jnlp.sample.servlet.ResourceCatalog$PathEntries
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
... 45 more
etc.

Not found classes are different each time.
Bu these classes exist in classpath - they are in WEB-INF\lib.

We do not have these exceptions if we run Tomcat using Java 1.4.
These exceptions occures on Java 5 only.
As far as I can see these exceptions occurs only once after restart of Tomcat, 
when first user downloads our application.
There are no any ClassNotFoundException when second user downloads our 
application.

We have such problems on a few clients.
Ant these clients can't change either version of Tomcat or version of Java.

Do you have any idea what could be wrong?

Thank you,
Vladimir.




Tomcat 7 Cluster Issue

2012-03-09 Thread Bruce Pease
Good Morning:

 

I recently upgraded my tomcat containers from tomcat 6 to tomcat 7.0.26, and
the jdk from 1.6 to 1.7.  I am now seeing a clustering issue when I start a
second instance on the same server.  I have tried a few variations of the
config (address=auto, address=the ip, no address entry, different ports,
etc.) with no success.  I have included the configurations and error messages
below.  Thank you in advance for your assistance.

 

Error:

Mar 09, 2012 11:16:16 AM org.apache.catalina.tribes.transport.nio.NioReceiver
listen

SEVERE: Unable to process request in NioReceiver

java.net.SocketException: Invalid argument: no further information

at sun.nio.ch.Net.setIntOption0(Native Method)

at sun.nio.ch.Net.setSocketOption(Net.java:279)

at
sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

at
sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

at
sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

at
org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
308)

at
org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.java:418
)

at java.lang.Thread.run(Thread.java:722)

 

SEVERE: Unable to send message through cluster sender.

org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 max:1;
Faulty members:tcp://{10, 103, 4, 70}:4021; 

at
org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(ParallelNio
Sender.java:187)

at
org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(Parall
elNioSender.java:89)

at
org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMessage(Poo
ledParallelSender.java:54)

at
org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessage(Repli
cationTransmitter.java:79)

at
org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(ChannelCoordi
nator.java:78)

at
org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
terceptorBase.java:79)

at
org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.send
Message(MessageDispatchInterceptor.java:77)

at
org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
terceptorBase.java:79)

at
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendMessage(
TcpFailureDetector.java:89)

at
org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
terceptorBase.java:79)

at
org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:224)

at
org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:182)

at
org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:804)

at
org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(DeltaManage
r.java:830)

at
org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManager.java:7
98)

at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5
282)

at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:89
5)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)

at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)

at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1599)

at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:111
0)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:60
3)

at java.lang.Thread.run(Thread.java:722)

Caused by: java.net.SocketException: Invalid argument: no further information

at sun.nio.ch.Net.setIntOption0(Native Method)

at sun.nio.ch.Net.setSocketOption(Net.java:279)

at
sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

at
sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

at
sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

at

Non page pool issue will not go away, please help.

2012-03-09 Thread Doron Tsur
Hi Guys,

A while back I've addressed you guys with the non paged pool issue. Most
people advised upgrading the java/tomcat. We did just that and the issue is
still happening. We are investigating a lot of directions of memory leaks
in the environment with Microsoft. I wanted to address you guys, to see if
you can give me a second feedback. The server isn't using direct memory or
JNI for tomcat. I've been perusing a lot of directions here, yet still at a
lost on why this is happening. Here is a recap of the information with the
updates:

I've been having an issue in one of our production servers. The Non Paged
Pool creeps up slowly until the system hangs and than crash.

Tomcat: 7  latest Java: 1.6.25 OS: Windows Server 2003 R2 SP2

This is a production server that uses high bandwidth. Poking around
Poolmon.exe I was able to find that

   1. the AfdP tag is consuming a lot of NP (Non Paged) pool.
   2. This is a tag concerning the windows socket driver (afd.sys).

We have many production servers running our tomcat. We have only
encountered this issue in two of them, those servers have the same
OS/Java/Tomcat installed. One server uses high bandwidth and the other uses
much less.

I say tomcat because this is the process that consumes all NP pool (about
170MB).

   1. Have you ever encountered this issue?
   2. Do you know of any application level/Tomcat configuration work around
   to solve this issue?
   3. Do you think that there is something wrong in the way Tomcat
   interfaces with winsock?
   4. Do you believe that Tomcat APR might resolve this issue?
   5. I can't seem to download this hotfix to further investigate these
   files, they might contain a suitable version. Do you know how can I get
   them?

When Tomcat is killed the Non Paged Pool doesn't return to the OS.

Please share your wisdom and Tomcat greatness,

qballer


Re: Tomcat 7 Cluster Issue

2012-03-09 Thread Daniel Mikusa
On Fri, 2012-03-09 at 08:38 -0800, Bruce Pease wrote:
 Good Morning:



 I recently upgraded my tomcat containers from tomcat 6 to tomcat 7.0.26, and
 the jdk from 1.6 to 1.7.

This is a major jump for both Tomcat  the JVM.  Have you considered
rolling back one of them to the previous version?

For example, roll back the JDK to 1.6 and try just the upgrade to Tomcat
7.0.26.

Also, from a Tomcat standpoint, how did you perform the migration?  In
particular with your configuration files?

Dan


 I am now seeing a clustering issue when I start a
 second instance on the same server.  I have tried a few variations of the
 config (address=auto, address=the ip, no address entry, different ports,
 etc.) with no success.  I have included the configurations and error messages
 below.  Thank you in advance for your assistance.



 Error:

 Mar 09, 2012 11:16:16 AM org.apache.catalina.tribes.transport.nio.NioReceiver
 listen

 SEVERE: Unable to process request in NioReceiver

 java.net.SocketException: Invalid argument: no further information

 at sun.nio.ch.Net.setIntOption0(Native Method)

 at sun.nio.ch.Net.setSocketOption(Net.java:279)

 at
 sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

 at
 sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

 at
 sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
 308)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.java:418
 )

 at java.lang.Thread.run(Thread.java:722)



 SEVERE: Unable to send message through cluster sender.

 org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 max:1;
 Faulty members:tcp://{10, 103, 4, 70}:4021;

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(ParallelNio
 Sender.java:187)

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(Parall
 elNioSender.java:89)

 at
 org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMessage(Poo
 ledParallelSender.java:54)

 at
 org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessage(Repli
 cationTransmitter.java:79)

 at
 org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(ChannelCoordi
 nator.java:78)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.send
 Message(MessageDispatchInterceptor.java:77)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendMessage(
 TcpFailureDetector.java:89)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:224)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:182)

 at
 org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:804)

 at
 org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(DeltaManage
 r.java:830)

 at
 org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManager.java:7
 98)

 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5
 282)

 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:89
 5)

 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)

 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)

 at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)

 at
 org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1599)

 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

 at java.util.concurrent.FutureTask.run(FutureTask.java:166)

 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:111
 0)

 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:60
 3)

 at java.lang.Thread.run(Thread.java:722)

 Caused by: java.net.SocketException: Invalid 

RE: Web service not starting up as expected

2012-03-09 Thread Debbie Shapiro

Hi Chris -

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Thursday, March 08, 2012 11:54 AM
To: Tomcat Users List
Subject: Re: Web service not starting up as expected


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Debbie,

On 3/8/12 2:46 PM, Debbie Shapiro wrote:
 I recently upgraded my Tomcat to version 7.0.26. I'm using a third
 party application within Tomcat (InetSoft). All I do is place their
 web application folder within the Tomcat webapps directory. Most
 recently, I had 7.0.23 installed and it would start up as expected.
 I have a process each night that automatically restarts the
 services. In my web.xml, I have code that is supposed to
 automatically start it up (the automated process restarts it at
 11:30PM) using the load-on-startup tag.

 servlet servlet-namereplets/servlet-name
 servlet-classinetsoft.sree.web.ServletRepository/servlet-class
 load-on-startup1/load-on-startup /servlet

So, your load-on-startup servlet somehow restarts your services? When
you say services, do you mean it restarts Tomcat? How does it do that?

*
No, it forces (or is supposed to) InetSoft's application to load when the 
service starts up.
*


 Since the upgrade to 7.0.26, when we try to access the web app the
 next morning, it is not accessible. However, the same process I use
 to (automatically) restart it each evening, when I kick it off
 manually, I am then able to access the web app. There is nothing
 different in how I am manually kicking it off versus the automated
 process. I'm using the same .bat file (on Win2003 server) and the
 automated process is a simple Scheduled Task.

My immediate guess would be that when you run it manually, you are
logged-in as yourself, while the scheduled task runs as some other
user. Any file permission issues that might be in play?

*
Nothing has changed on this server between having Tomcat 7.0.23 installed and 
upgrading to 7.0.26. I typically don't log out of these servers (though it 
might be locked), so the same user is logged in regardless of whether it is 
starting up automatically or a manual start up. Tomcat is using a Local System 
account for login.
*

 The only difference I am seeing is that in the Catalina log, the
 automated process ends with:

 Mar 7, 2012 11:30:06 PM org.apache.coyote.AbstractProtocol stop
 INFO: Stopping ProtocolHandler [http-bio-8080] Mar 7, 2012
 11:30:06 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping
 ProtocolHandler [ajp-bio-8009]

That's Tomcat stopping. Is there more above that line? Perhaps some
kind of exception and/or stack trace?

*
There are errors shown here. This is everything logged from the point of the 
automated restart. I mentioned the warnings about the memory leaks to InetSoft 
and they indicated that these are only warnings and that I shouldn't be 
concerned about them, but I see there are other errors here now as well.

Mar 7, 2012 11:30:01 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [http-bio-8080]
Mar 7, 2012 11:30:01 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [ajp-bio-8009]
Mar 7, 2012 11:30:01 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Mar 7, 2012 11:30:06 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate 
destroy
INFO: WSSERVLET15: JAX-WS servlet destroyed
Mar 7, 2012 11:30:06 PM 
com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextDestroyed
INFO: WSSERVLET13: JAX-WS context listener destroyed
Mar 7, 2012 11:30:06 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesJdbc
SEVERE: The web application [/sree] registered the JDBC driver 
[com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when 
the web application was stopped. To prevent a memory leak, the JDBC Driver has 
been forcibly unregistered.
Mar 7, 2012 11:30:06 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/sree] appears to have started a thread named 
[AWT-Windows] but has failed to stop it. This is very likely to create a memory 
leak.
Mar 7, 2012 11:30:06 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/sree] appears to have started a thread named 
[Thread-3] but has failed to stop it. This is very likely to create a memory 
leak.
Mar 7, 2012 11:30:06 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/sree] appears to have started a thread named 
[Thread-8] but has failed to stop it. This is very likely to create a 

RE: Tomcat 7 Cluster Issue

2012-03-09 Thread Bruce Pease
I can try the rollback the jdk, and try that.  However, the issue doesn't
appear to be jdk related.  

The migration was performed by completely removing the old containers,
installing tomcat 7 instances, updating all configuration using the ones
released in tomcat 7 version, recompiling all applications with jdk 1.7 and
tomcat 7 dependencies, and redeploying the applications.

-Original Message-
From: Daniel Mikusa [mailto:dmik...@vmware.com] 
Sent: Friday, March 09, 2012 1:02 PM
To: Tomcat Users List
Subject: Re: Tomcat 7 Cluster Issue

On Fri, 2012-03-09 at 08:38 -0800, Bruce Pease wrote:
 Good Morning:



 I recently upgraded my tomcat containers from tomcat 6 to tomcat 
 7.0.26, and the jdk from 1.6 to 1.7.

This is a major jump for both Tomcat  the JVM.  Have you considered rolling
back one of them to the previous version?

For example, roll back the JDK to 1.6 and try just the upgrade to Tomcat
7.0.26.

Also, from a Tomcat standpoint, how did you perform the migration?  In
particular with your configuration files?

Dan


 I am now seeing a clustering issue when I start a second instance on 
 the same server.  I have tried a few variations of the config 
 (address=auto, address=the ip, no address entry, different ports,
 etc.) with no success.  I have included the configurations and error 
 messages below.  Thank you in advance for your assistance.



 Error:

 Mar 09, 2012 11:16:16 AM 
 org.apache.catalina.tribes.transport.nio.NioReceiver
 listen

 SEVERE: Unable to process request in NioReceiver

 java.net.SocketException: Invalid argument: no further information

 at sun.nio.ch.Net.setIntOption0(Native Method)

 at sun.nio.ch.Net.setSocketOption(Net.java:279)

 at
 sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175)

 at
 sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:296)

 at
 sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:396)

 at

org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:
 308)

 at
 org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.j
 ava:418
 )

 at java.lang.Thread.run(Thread.java:722)



 SEVERE: Unable to send message through cluster sender.

 org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 
 max:1; Faulty members:tcp://{10, 103, 4, 70}:4021;

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(Para
 llelNio
 Sender.java:187)

 at
 org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage
 (Parall
 elNioSender.java:89)

 at
 org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMess
 age(Poo
 ledParallelSender.java:54)

 at
 org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessag
 e(Repli
 cationTransmitter.java:79)

 at
 org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(Channe
 lCoordi
 nator.java:78)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.MessageDispatchIntercept
 or.send
 Message(MessageDispatchInterceptor.java:77)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendM
 essage(
 TcpFailureDetector.java:89)

 at
 org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Ch
 annelIn
 terceptorBase.java:79)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:2
 24)

 at
 org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:1
 82)

 at
 org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java
 :804)

 at
 org.apache.catalina.ha.session.DeltaManager.getAllClusterSessions(Delt
 aManage
 r.java:830)

 at
 org.apache.catalina.ha.session.DeltaManager.startInternal(DeltaManager
 .java:7
 98)

 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext
 .java:5
 282)

 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
 java:89
 5)

 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871
 )

 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)

 at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)

 at
 

Re: Documentation Question

2012-03-09 Thread David kerber

On 2/22/2012 3:50 PM, Jim Showalter wrote:

Hmm.  Am I to understand this is fixed now?  I tried it and it still seems
to have problems.  However, the other versions (  7.0) seem to be working
much better (I thought they too had problems when I tried in the past).
Also, I appreciate everyone jumping in quickly to fix this.

Jim

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: Wednesday, February 22, 2012 10:44 AM
To: Tomcat Users List
Subject: Re: Documentation Question


The worst offender (in my opinion) is
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html.


By the way, for the page in question, my HTML-checker lists 147
errors (not warnings), the few first of which being :

line 59 column 5 - Error: end tag for element P which is not open
line 78 column 11 - Error: end tag for element P which is not open
line 111 column 10 - Error: end tag for element P which is not open
line 137 column 5 - Error: end tag for element P which is not open
line 154 column 5 - Error: end tag for element P which is not open



Fixed.



If VirtualWebappLoader is updated to trim each value in
virtualClasspath, then that example could be wrapped into several
lines.


That seems like a very reasonable thing to do, as long as it's just
trimming-off leading and trailing whitespace.

I noticed while I was reading those two examples that we have two
separate path separators in the same example: virtualClasspath uses
semi-colons (aka win32-style path separators) and extraResourcePaths
uses commas. Maybe we should try for some consistency :)



VirtualWebappLoader already trims the spaces, so I fixed the docs.

extraResourcePaths does not trim, so it needs more work. I agree that
';' is better there.   My plan is to check if the path contains
semicolon ';' and if it does then go with ; as separator. Otherwise fall
back to the current comma ,.


I am trying to follow the docs for setting up new machine, and I'm 
seeing some messed-up line wraps (not wrapping at the width of my 
browser window (in fact, it won't fit on my 1920x1200 monitor), in:


http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

This is in firefox 10.0.2, just installed yesterday on Windows 7 pro 
x64.  So the issue still exists.


Dave





Best regards,
Konstantin Kolinko

-
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: Web service not starting up as expected

2012-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Debbie,

On 3/9/12 1:09 PM, Debbie Shapiro wrote:
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 
 So, your load-on-startup servlet somehow restarts your services?
 When you say services, do you mean it restarts Tomcat? How does
 it do that?
 
 No, it forces (or is supposed to) InetSoft's application to load 
 when the service starts up.

Right: that's what's supposed to happen. I just wanted to make sure
you understood the difference between starting the Windows service and
starting your InetSoft servlet (which could be thought of as a service).

 My immediate guess would be that when you run it manually, you
 are logged-in as yourself, while the scheduled task runs as some
 other user. Any file permission issues that might be in play?
 
 Nothing has changed on this server between having Tomcat 7.0.23 
 installed and upgrading to 7.0.26.

Famous last words :)

 I typically don't log out of these servers (though it might be 
 locked), so the same user is logged in regardless of whether it is 
 starting up automatically or a manual start up. Tomcat is using a 
 Local System account for login.

How do you start Tomcat when you start it manually? How about when
you schedule a restart?

 The only difference I am seeing is that in the Catalina log,
 the automated process ends with:
 
 Mar 7, 2012 11:30:06 PM org.apache.coyote.AbstractProtocol
 stop INFO: Stopping ProtocolHandler [http-bio-8080] Mar 7,
 2012 11:30:06 PM org.apache.coyote.AbstractProtocol stop INFO:
 Stopping ProtocolHandler [ajp-bio-8009]
 
 That's Tomcat stopping. Is there more above that line? Perhaps
 some kind of exception and/or stack trace?
 
 There are errors shown here. This is everything logged from the
 point of the automated restart. I mentioned the warnings about the
 memory leaks to InetSoft and they indicated that these are only
 warnings and that I shouldn't be concerned about them, but I see
 there are other errors here now as well.
 
 Mar 7, 2012 11:30:01 PM org.apache.coyote.AbstractProtocol pause 
 INFO: Pausing ProtocolHandler [http-bio-8080] Mar 7, 2012
 11:30:01 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing
 ProtocolHandler [ajp-bio-8009] Mar 7, 2012 11:30:01 PM
 org.apache.catalina.core.StandardService stopInternal INFO:
 Stopping service Catalina Mar 7, 2012 11:30:06 PM
 com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy 
 INFO: WSSERVLET15: JAX-WS servlet destroyed Mar 7, 2012 11:30:06 PM
 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
 contextDestroyed INFO: WSSERVLET13: JAX-WS context listener
 destroyed Mar 7, 2012 11:30:06 PM
 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 
 SEVERE: The web application [/sree] registered the JDBC driver
 [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to
 unregister it when the web application was stopped. To prevent a
 memory leak, the JDBC Driver has been forcibly unregistered. Mar 7,
 2012 11:30:06 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads SEVERE: The web application [/sree] appears
 to have started a thread named [AWT-Windows] but has failed to stop
 it. This is very likely to create a memory leak. Mar 7, 2012
 11:30:06 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads SEVERE: The web application [/sree] appears
 to have started a thread named [Thread-3] but has failed to stop
 it. This is very likely to create a memory leak. Mar 7, 2012
 11:30:06 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads SEVERE: The web application [/sree] appears
 to have started a thread named [Thread-8] but has failed to stop
 it. This is very likely to create a memory leak. Mar 7, 2012
 11:30:06 PM org.apache.catalina.loader.WebappClassLoader
 checkThreadLocalMapForLeaks SEVERE: The web application [/sree]
 created a ThreadLocal with key of type [java.lang.ThreadLocal]
 (value [java.lang.ThreadLocal@400a3bdc]) and a value of type
 [inetsoft.util.CurrentException.Infomation] (value
 [inetsoft.util.CurrentException$Infomation@5fe0095c]) but failed to
 remove it when the web application was stopped. Threads are going
 to be renewed over time to try and avoid a probable memory leak. 
 Mar 7, 2012 11:30:06 PM
 org.apache.catalina.loader.WebappClassLoader
 checkThreadLocalMapForLeaks SEVERE: The web application [/sree]
 created a ThreadLocal with key of type [java.lang.ThreadLocal]
 (value [java.lang.ThreadLocal@400a3bdc]) and a value of type
 [inetsoft.util.CurrentException.Infomation] (value
 [inetsoft.util.CurrentException$Infomation@6d86a830]) but failed to
 remove it when the web application was stopped. Threads are going
 to be renewed over time to try and avoid a probable memory leak. 
 Mar 7, 2012 11:30:06 PM
 org.apache.catalina.loader.WebappClassLoader
 checkThreadLocalMapForLeaks SEVERE: The web application [/sree]
 created a ThreadLocal with key of type [java.lang.ThreadLocal]
 (value 

RE: Web service not starting up as expected

2012-03-09 Thread Caldarale, Charles R
 From: Debbie Shapiro [mailto:dshap...@cardiacscience.com] 
 Subject: RE: Web service not starting up as expected

 3. Schedule a restart 2 minutes into the future.

Exactly what does your restart procedure consist of?  From the symptoms, it 
could be that the restart mechanism is simply not waiting for Tomcat to 
terminate before kicking off a new one.

 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader 
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [AWT-Windows] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [Thread-3] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [Thread-5] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [Thread-7] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 checkThreadLocalMapForLeaks
 SEVERE: The web application [/sree] created a ThreadLocal with key of
 type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1809b1ac])
 and a value of type [inetsoft.util.CurrentException.Infomation] (value
 [inetsoft.util.CurrentException$Infomation@246f9f88]) but failed to
 remove it when the web application was stopped. Threads are going to
 be renewed over time to try and avoid a probable memory leak.

Obviously, your webapp indulges in some rather anti-social behavior; that will 
slow down Tomcat termination, but not prevent it.

 - 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: Documentation Question

2012-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/9/12 1:38 PM, David kerber wrote:
 I am trying to follow the docs for setting up new machine, and I'm 
 seeing some messed-up line wraps (not wrapping at the width of my 
 browser window (in fact, it won't fit on my 1920x1200 monitor),
 in:
 
 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
 
 This is in firefox 10.0.2, just installed yesterday on Windows 7
 pro x64.  So the issue still exists.

The only thing that Konstantin fixed was the non-well-formed XHTML
document. You still have to scroll horizontally to see some of those
examples.

I'm looking for a CSS-only way to do line-wrapping while also
indicating that the lines have been wrapped.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9aUuUACgkQ9CaO5/Lv0PDvHQCfU4twqcEnldiV9q3ExgRjIqOg
YXIAoKI/6R7VM/ngClpsrSYw9NmZCNYU
=jSCp
-END PGP SIGNATURE-

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



Re: Documentation Question

2012-03-09 Thread Konstantin Kolinko
2012/3/9 Christopher Schultz ch...@christopherschultz.net:
 On 3/9/12 1:38 PM, David kerber wrote:
 I am trying to follow the docs for setting up new machine, and I'm
 seeing some messed-up line wraps (not wrapping at the width of my
 browser window (in fact, it won't fit on my 1920x1200 monitor),
 in:

 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

 This is in firefox 10.0.2, just installed yesterday on Windows 7
 pro x64.  So the issue still exists.

 The only thing that Konstantin fixed was the non-well-formed XHTML
 document. You still have to scroll horizontally to see some of those
 examples.

 I'm looking for a CSS-only way to do line-wrapping while also
 indicating that the lines have been wrapped.

1. I also wrapped data in examples where component allows spaces in
its configuration
and lessened indent where it does not jet allow them.

2. The published documentation is updated only with a new Tomcat release.
You have to look at the one published by nightly build to see the
changes. See links on the Buildbot page.

Best regards,
Konstantin Kolinko

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



Re: Non page pool issue will not go away, please help.

2012-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Doron,

On 3/9/12 12:19 PM, Doron Tsur wrote:
 Tomcat: 7  latest Java: 1.6.25 OS: Windows Server 2003 R2 SP2

1. What specific version of Tomcat 7?
2. 1.6.25 is not a version of Java that I know of. Real version number
   and vendor, please?

 This is a production server that uses high bandwidth. Poking
 around Poolmon.exe I was able to find that
 
 1. the AfdP tag is consuming a lot of NP (Non Paged) pool.

What is the AdfP tag?

 2. This is a tag concerning the windows socket driver (afd.sys).

Googling for afd non-paged pool exhaustion comes up with lots of
hits. Have you read them?

Many seem to suggest that certain connections are left open for a very
long time. Are you using long-lasting connections with KEEPALIVE
enabled? If so, it's possible that it could be causing this problem.

 We have many production servers running our tomcat. We have only 
 encountered this issue in two of them, those servers have the same 
 OS/Java/Tomcat installed. One server uses high bandwidth and the
 other uses much less.

Obviously, the question is: what is different about these two servers?
If this was a problem with Tomcat itself, the JVM, or even the seevice
configuration, I would expect it to happen everywhere. Given that it
doesn't happen everywhere, I would suspect something at a lower-level.
Do all servers have identical OS images on them, and are they all at
the same patch-level?

 I say tomcat because this is the process that consumes all NP pool
 (about 170MB).
 
 1. Have you ever encountered this issue? 2. Do you know of any
 application level/Tomcat configuration work around to solve this
 issue?

None that I know of. Perhaps you could adjust some of the fine-grained
socket-configuration bits, but I wouldn't start fiddling without a
very good idea about what you are doing. It's even possible that
Tomcat does not support configuration of whatever specific socket bits
you need to fiddle. If that turns out to be the problem, it's fairly
easy to add configuration options.

 3. Do you think that there is something wrong in the way Tomcat 
 interfaces with winsock?

Tomcat does not interface at all with winsock unless you are using
APR. Are you using APR? That would seem like a good thing to tell us.

 4. Do you believe that Tomcat APR might resolve this issue?

If anything, I would say that APR might even make the problem worse.
On the other hand, it's fairly easy to try it: just drop the .dlls in
the right place and restart. As long as you haven't changed Tomcat
from the default configuration, it will use APR for your HTTP connectors.

 5. I can't seem to download this hotfix to further investigate
 these files, they might contain a suitable version. Do you know how
 can I get them?

What hotfix are you talking about?

 When Tomcat is killed the Non Paged Pool doesn't return to the OS.

How do you kill Tomcat? Does the JVM process shut down entirely? If
it does, then your problem should lie elsewhere: once the process is
dead, all memory should be released. If that's not happening, there is
either a horrible bug in the OS or you are misinterpreting your
observations.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9aVxcACgkQ9CaO5/Lv0PCFhwCgmgy9A1mrFg4Me1lHp674i5pf
jjMAnipMogXefj0ezYhJNs1WSJb13V3F
=XtAE
-END PGP SIGNATURE-

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



Re: Non page pool issue will not go away, please help.

2012-03-09 Thread Konstantin Kolinko
2012/3/9 Doron Tsur qbal...@gmail.com:
 Hi Guys,

 A while back I've addressed you guys with the non paged pool issue. Most
 people advised upgrading the java/tomcat. We did just that and the issue is
 still happening. We are investigating a lot of directions of memory leaks
 in the environment with Microsoft. I wanted to address you guys, to see if
 you can give me a second feedback. The server isn't using direct memory or
 JNI for tomcat. I've been perusing a lot of directions here, yet still at a
 lost on why this is happening. Here is a recap of the information with the
 updates:

 I've been having an issue in one of our production servers. The Non Paged
 Pool creeps up slowly until the system hangs and than crash.

 Tomcat: 7  latest Java: 1.6.25 OS: Windows Server 2003 R2 SP2


Which version of 7.0.x, exactly?


 This is a production server that uses high bandwidth. Poking around
 Poolmon.exe I was able to find that

   1. the AfdP tag is consuming a lot of NP (Non Paged) pool.
   2. This is a tag concerning the windows socket driver (afd.sys).

 We have many production servers running our tomcat. We have only
 encountered this issue in two of them, those servers have the same
 OS/Java/Tomcat installed. One server uses high bandwidth and the other uses
 much less.

 I say tomcat because this is the process that consumes all NP pool (about
 170MB).

   1. Have you ever encountered this issue?
   2. Do you know of any application level/Tomcat configuration work around
   to solve this issue?
   3. Do you think that there is something wrong in the way Tomcat
   interfaces with winsock?

There can be different components that interact with networking.

1. There are 2 different connection protocols in Tomcat with 3
different implementations each (bio, apr, nio). Which one you are
using? See what is logged when Tomcat starts.

2. There are database drivers. What database drivers are you using?


   4. Do you believe that Tomcat APR might resolve this issue?
   5. I can't seem to download this hotfix to further investigate these
   files, they might contain a suitable version. Do you know how can I get
   them?

 When Tomcat is killed the Non Paged Pool doesn't return to the OS.

How do you observe it?

I think you run Tomcat as a service. I am not sure whether service can
be killed as well as a standalone program.

 Please share your wisdom and Tomcat greatness,


Best regards,
Konstantin Kolinko

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



Re: Non page pool issue will not go away, please help.

2012-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

On 3/9/12 2:21 PM, Konstantin Kolinko wrote:
 2. There are database drivers. What database drivers are you
 using?

Good thought: there's no reason to assume that the connectors are
leaking this stuff.

Doron, if you are using a JDBC driver, can you be very specific about
what type you are using? Not just the vendor and/or product, but also
the JDBC type of driver you are using? For instance, I would bet
that Type 1 and Type 2 drivers are more prone to leakage of any kind,
while Type 3 and Type 4 drivers would be a bit safer.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9aWdoACgkQ9CaO5/Lv0PAOlwCeOyMP8jYbZCjH6wZ80FONdx8B
gAcAnRyEBrN4OqLrDK5TbOGboJUg54Yp
=H2VJ
-END PGP SIGNATURE-

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



Re: Non page pool issue will not go away, please help.

2012-03-09 Thread Doron Tsur
On Fri, Mar 9, 2012 at 9:16 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Doron,

 On 3/9/12 12:19 PM, Doron Tsur wrote:
  Tomcat: 7  latest Java: 1.6.25 OS: Windows Server 2003 R2 SP2



 qballer:  sorry. Java 1.6.0_25 tomcat 7.0.23



 1. What specific version of Tomcat 7?
 2. 1.6.25 is not a version of Java that I know of. Real version number
   and vendor, please?

  This is a production server that uses high bandwidth. Poking
  around Poolmon.exe I was able to find that
 
  1. the AfdP tag is consuming a lot of NP (Non Paged) pool.

 What is the AdfP tag?



 qballer: ancillary function driver  it's a Win Socket driver



  2. This is a tag concerning the windows socket driver (afd.sys).

 Googling for afd non-paged pool exhaustion comes up with lots of
 hits. Have you read them?



 qballer:  Yes I have.



 Many seem to suggest that certain connections are left open for a very
 long time. Are you using long-lasting connections with KEEPALIVE
 enabled? If so, it's possible that it could be causing this problem.

  We have many production servers running our tomcat. We have only
  encountered this issue in two of them, those servers have the same
  OS/Java/Tomcat installed. One server uses high bandwidth and the
  other uses much less.

 Obviously, the question is: what is different about these two servers?
 If this was a problem with Tomcat itself, the JVM, or even the seevice
 configuration, I would expect it to happen everywhere. Given that it
 doesn't happen everywhere, I would suspect something at a lower-level.
 Do all servers have identical OS images on them, and are they all at
 the same patch-level?

 Not the same images, that is why i suspect it's outside of tomcat.

  I say tomcat because this is the process that consumes all NP pool
  (about 170MB).
 
  1. Have you ever encountered this issue? 2. Do you know of any
  application level/Tomcat configuration work around to solve this
  issue?

 None that I know of. Perhaps you could adjust some of the fine-grained
 socket-configuration bits, but I wouldn't start fiddling without a
 very good idea about what you are doing. It's even possible that
 Tomcat does not support configuration of whatever specific socket bits
 you need to fiddle. If that turns out to be the problem, it's fairly
 easy to add configuration options.

  3. Do you think that there is something wrong in the way Tomcat
  interfaces with winsock?

 Tomcat does not interface at all with winsock unless you are using
 APR. Are you using APR? That would seem like a good thing to tell us.

 qballer: Nope not using APR.

  4. Do you believe that Tomcat APR might resolve this issue?

 If anything, I would say that APR might even make the problem worse.
 On the other hand, it's fairly easy to try it: just drop the .dlls in
 the right place and restart. As long as you haven't changed Tomcat
 from the default configuration, it will use APR for your HTTP connectors.

  5. I can't seem to download this hotfix to further investigate
  these files, they might contain a suitable version. Do you know how
  can I get them?

 What hotfix are you talking about?

 Sorry ignore the hotfix part, I've checked that direction and it's a dead
end.


  When Tomcat is killed the Non Paged Pool doesn't return to the OS.

 How do you kill Tomcat? Does the JVM process shut down entirely? If
 it does, then your problem should lie elsewhere: once the process is
 dead, all memory should be released. If that's not happening, there is
 either a horrible bug in the OS or you are misinterpreting your
 observations.

 Yes it does shut down, NPP doesn't get returned to the OS.
That is why i think there is a driver code in the way.


 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk9aVxcACgkQ9CaO5/Lv0PCFhwCgmgy9A1mrFg4Me1lHp674i5pf
 jjMAnipMogXefj0ezYhJNs1WSJb13V3F
 =XtAE
 -END PGP SIGNATURE-

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




Re: Non page pool issue will not go away, please help.

2012-03-09 Thread Doron Tsur
NO JDBC driver

On Fri, Mar 9, 2012 at 9:28 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Konstantin,

 On 3/9/12 2:21 PM, Konstantin Kolinko wrote:
  2. There are database drivers. What database drivers are you
  using?

 Good thought: there's no reason to assume that the connectors are
 leaking this stuff.

 Doron, if you are using a JDBC driver, can you be very specific about
 what type you are using? Not just the vendor and/or product, but also
 the JDBC type of driver you are using? For instance, I would bet
 that Type 1 and Type 2 drivers are more prone to leakage of any kind,
 while Type 3 and Type 4 drivers would be a bit safer.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk9aWdoACgkQ9CaO5/Lv0PAOlwCeOyMP8jYbZCjH6wZ80FONdx8B
 gAcAnRyEBrN4OqLrDK5TbOGboJUg54Yp
 =H2VJ
 -END PGP SIGNATURE-

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




RE: Web service not starting up as expected

2012-03-09 Thread Debbie Shapiro


-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Friday, March 09, 2012 10:56 AM
To: Tomcat Users List
Subject: Re: Web service not starting up as expected


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Debbie,

On 3/9/12 1:09 PM, Debbie Shapiro wrote:
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]

 So, your load-on-startup servlet somehow restarts your services?
 When you say services, do you mean it restarts Tomcat? How does
 it do that?

 No, it forces (or is supposed to) InetSoft's application to load
 when the service starts up.

Right: that's what's supposed to happen. I just wanted to make sure
you understood the difference between starting the Windows service and
starting your InetSoft servlet (which could be thought of as a service).

 My immediate guess would be that when you run it manually, you
 are logged-in as yourself, while the scheduled task runs as some
 other user. Any file permission issues that might be in play?

 Nothing has changed on this server between having Tomcat 7.0.23
 installed and upgrading to 7.0.26.

Famous last words :)

I'm pretty sure that's accurate in this case, however. I had 7.0.23 installed 
as of last week and then this week did the upgrade to 7.0.26. I'm wondering 
about your question regarding timing though. It's possible that Tomcat is doing 
more cleanup than it has in the past and it's taking longer to shut down? Maybe 
I do just need some kind of pause in between stopping and restarting.

 I typically don't log out of these servers (though it might be
 locked), so the same user is logged in regardless of whether it is
 starting up automatically or a manual start up. Tomcat is using a
 Local System account for login.

How do you start Tomcat when you start it manually? How about when
you schedule a restart?

I either directly run the .bat command or launch the scheduled task that 
normally runs the same .bat command.

The contents of the .bat file is as follows:


sc \\bidev2 stop Tomcat7

taskkill /F /FI IMAGENAME eq java.exe /FI USERNAME eq NT AUTHORITY\SYSTEM

REM delay batch job to wait for services to stop

for /F tokens=1-4 delims=/-  %%A in ('date/T') do set DATE=%%B%%C%%D
for /F tokens=1-4 delims=:.,  %%a in ('time/T') do set TIME=%%a%%b%%c

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
rename sree.log %DATE%_%TIME%_sree.log
rename schedule.log %DATE%_%TIME%_schedule.log

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
compact %DATE%_%TIME%_sree.log /c
compact %DATE%_%TIME%_schedule.log /c


sc \\bidev2 start Tomcat7

cd c:\Scheduled Jobs




 The only difference I am seeing is that in the Catalina log,
 the automated process ends with:

 Mar 7, 2012 11:30:06 PM org.apache.coyote.AbstractProtocol
 stop INFO: Stopping ProtocolHandler [http-bio-8080] Mar 7,
 2012 11:30:06 PM org.apache.coyote.AbstractProtocol stop INFO:
 Stopping ProtocolHandler [ajp-bio-8009]

 That's Tomcat stopping. Is there more above that line? Perhaps
 some kind of exception and/or stack trace?

 There are errors shown here. This is everything logged from the
 point of the automated restart. I mentioned the warnings about the
 memory leaks to InetSoft and they indicated that these are only
 warnings and that I shouldn't be concerned about them, but I see
 there are other errors here now as well.

 Mar 7, 2012 11:30:01 PM org.apache.coyote.AbstractProtocol pause
 INFO: Pausing ProtocolHandler [http-bio-8080] Mar 7, 2012
 11:30:01 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing
 ProtocolHandler [ajp-bio-8009] Mar 7, 2012 11:30:01 PM
 org.apache.catalina.core.StandardService stopInternal INFO:
 Stopping service Catalina Mar 7, 2012 11:30:06 PM
 com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy
 INFO: WSSERVLET15: JAX-WS servlet destroyed Mar 7, 2012 11:30:06 PM
 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
 contextDestroyed INFO: WSSERVLET13: JAX-WS context listener
 destroyed Mar 7, 2012 11:30:06 PM
 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
 SEVERE: The web application [/sree] registered the JDBC driver
 [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to
 unregister it when the web application was stopped. To prevent a
 memory leak, the JDBC Driver has been forcibly unregistered. Mar 7,
 2012 11:30:06 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads SEVERE: The web application [/sree] appears
 to have started a thread named [AWT-Windows] but has failed to stop
 it. This is very likely to create a memory leak. Mar 7, 2012
 11:30:06 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads SEVERE: The web application [/sree] appears
 to have started a thread named [Thread-3] but has failed to stop
 it. This is very likely to create a memory leak. Mar 7, 2012
 11:30:06 PM org.apache.catalina.loader.WebappClassLoader
 

RE: Web service not starting up as expected

2012-03-09 Thread Debbie Shapiro
Hi Chuck -

 
 
Please create a HelpStar ticket for any requests for assistance. This will help 
us better track your request.
http://helpstar
 
 
Debbie Shapiro 
Data Warehouse Manager
Cardiac Science
Office: 425.402.2233
 
Visit us at www.cardiacscience.com
Suppliers of Cardiac Science, Criticare, Unetixs, Powerheart, Burdick, and 
Quinton products Part of the Opto Circuits Family
 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, March 09, 2012 10:55 AM
To: Tomcat Users List
Subject: RE: Web service not starting up as expected


 From: Debbie Shapiro [mailto:dshap...@cardiacscience.com] 
 Subject: RE: Web service not starting up as expected

 3. Schedule a restart 2 minutes into the future.

Exactly what does your restart procedure consist of?  From the symptoms, it 
could be that the restart mechanism is simply not waiting for Tomcat to 
terminate before kicking off a new one.

I use a bat file that contains the following. I'm going to see about adding in 
a wait.


sc \\bidev2 stop Tomcat7

taskkill /F /FI IMAGENAME eq java.exe /FI USERNAME eq NT AUTHORITY\SYSTEM 

REM delay batch job to wait for services to stop

for /F tokens=1-4 delims=/-  %%A in ('date/T') do set DATE=%%B%%C%%D
for /F tokens=1-4 delims=:.,  %%a in ('time/T') do set TIME=%%a%%b%%c

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
rename sree.log %DATE%_%TIME%_sree.log
rename schedule.log %DATE%_%TIME%_schedule.log

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
compact %DATE%_%TIME%_sree.log /c 
compact %DATE%_%TIME%_schedule.log /c


sc \\bidev2 start Tomcat7

cd c:\Scheduled Jobs

 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader 
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [AWT-Windows] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [Thread-3] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [Thread-5] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application [/sree] appears to have started a thread
 named [Thread-7] but has failed to stop it. This is very likely to
 create a memory leak.
 Mar 8, 2012 4:37:04 PM org.apache.catalina.loader.WebappClassLoader
 checkThreadLocalMapForLeaks
 SEVERE: The web application [/sree] created a ThreadLocal with key of
 type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1809b1ac])
 and a value of type [inetsoft.util.CurrentException.Infomation] (value
 [inetsoft.util.CurrentException$Infomation@246f9f88]) but failed to
 remove it when the web application was stopped. Threads are going to
 be renewed over time to try and avoid a probable memory leak.

Obviously, your webapp indulges in some rather anti-social behavior; that will 
slow down Tomcat termination, but not prevent it.

Well, technically it's not MY webapp. It's a third party vendor. They ship with 
a different web server bundled with their app, but you can easily swap that out 
for tomcat, which has better performance. So, I don't really have any control 
for how they developed this.

 - 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: Web service not starting up as expected

2012-03-09 Thread André Warnier

Debbie Shapiro wrote:
...


How do you start Tomcat when you start it manually? How about when
you schedule a restart?

I either directly run the .bat command or launch the scheduled task that 
normally runs the same .bat command.

The contents of the .bat file is as follows:


sc \\bidev2 stop Tomcat7

taskkill /F /FI IMAGENAME eq java.exe /FI USERNAME eq NT AUTHORITY\SYSTEM



Now wait..
I am not so familiar with these Windows commands, but do I see above
a) a command to stop the Tomcat service
b) a command killing java.exe ?



REM delay batch job to wait for services to stop

for /F tokens=1-4 delims=/-  %%A in ('date/T') do set DATE=%%B%%C%%D
for /F tokens=1-4 delims=:.,  %%a in ('time/T') do set TIME=%%a%%b%%c

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
rename sree.log %DATE%_%TIME%_sree.log
rename schedule.log %DATE%_%TIME%_schedule.log

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
compact %DATE%_%TIME%_sree.log /c
compact %DATE%_%TIME%_schedule.log /c



and c) a series of command tending to indicate that this application puts its logfiles 
inside the classes directory ?  (not fatal, but at least bizarre)




sc \\bidev2 start Tomcat7

cd c:\Scheduled Jobs


...

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



RE: Web service not starting up as expected

2012-03-09 Thread Debbie Shapiro
I was able to add a sleep command (I had to do it for at least 30 seconds, any 
less and starting up was still overlapping with the previous stop command). 
After adding this in, it seems to be starting up without a problem. Glad it was 
something simple. Unfortunately, it forces me to install an additional 
Microsoft windows resource kit app on the server, but no biggie.



Please create a HelpStar ticket for any requests for assistance. This will help 
us better track your request.
http://helpstar


Debbie Shapiro
Data Warehouse Manager
Cardiac Science
Office: 425.402.2233

Visit us at www.cardiacscience.com
Suppliers of Cardiac Science, Criticare, Unetixs, Powerheart, Burdick, and 
Quinton products Part of the Opto Circuits Family


-Original Message-
From: Debbie Shapiro
Sent: Friday, March 09, 2012 12:58 PM
To: Tomcat Users List
Subject: RE: Web service not starting up as expected



-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Friday, March 09, 2012 10:56 AM
To: Tomcat Users List
Subject: Re: Web service not starting up as expected


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Debbie,

On 3/9/12 1:09 PM, Debbie Shapiro wrote:
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]

 So, your load-on-startup servlet somehow restarts your services?
 When you say services, do you mean it restarts Tomcat? How does
 it do that?

 No, it forces (or is supposed to) InetSoft's application to load
 when the service starts up.

Right: that's what's supposed to happen. I just wanted to make sure
you understood the difference between starting the Windows service and
starting your InetSoft servlet (which could be thought of as a service).

 My immediate guess would be that when you run it manually, you
 are logged-in as yourself, while the scheduled task runs as some
 other user. Any file permission issues that might be in play?

 Nothing has changed on this server between having Tomcat 7.0.23
 installed and upgrading to 7.0.26.

Famous last words :)

I'm pretty sure that's accurate in this case, however. I had 7.0.23 installed 
as of last week and then this week did the upgrade to 7.0.26. I'm wondering 
about your question regarding timing though. It's possible that Tomcat is doing 
more cleanup than it has in the past and it's taking longer to shut down? Maybe 
I do just need some kind of pause in between stopping and restarting.

 I typically don't log out of these servers (though it might be
 locked), so the same user is logged in regardless of whether it is
 starting up automatically or a manual start up. Tomcat is using a
 Local System account for login.

How do you start Tomcat when you start it manually? How about when
you schedule a restart?

I either directly run the .bat command or launch the scheduled task that 
normally runs the same .bat command.

The contents of the .bat file is as follows:


sc \\bidev2 stop Tomcat7

taskkill /F /FI IMAGENAME eq java.exe /FI USERNAME eq NT AUTHORITY\SYSTEM

REM delay batch job to wait for services to stop

for /F tokens=1-4 delims=/-  %%A in ('date/T') do set DATE=%%B%%C%%D
for /F tokens=1-4 delims=:.,  %%a in ('time/T') do set TIME=%%a%%b%%c

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
rename sree.log %DATE%_%TIME%_sree.log
rename schedule.log %DATE%_%TIME%_schedule.log

cd c:\Program Files\Apache Software Foundation\Tomcat 
7.0\webapps\sree\WEB-INF\classes
compact %DATE%_%TIME%_sree.log /c
compact %DATE%_%TIME%_schedule.log /c


sc \\bidev2 start Tomcat7

cd c:\Scheduled Jobs




 The only difference I am seeing is that in the Catalina log,
 the automated process ends with:

 Mar 7, 2012 11:30:06 PM org.apache.coyote.AbstractProtocol
 stop INFO: Stopping ProtocolHandler [http-bio-8080] Mar 7,
 2012 11:30:06 PM org.apache.coyote.AbstractProtocol stop INFO:
 Stopping ProtocolHandler [ajp-bio-8009]

 That's Tomcat stopping. Is there more above that line? Perhaps
 some kind of exception and/or stack trace?

 There are errors shown here. This is everything logged from the
 point of the automated restart. I mentioned the warnings about the
 memory leaks to InetSoft and they indicated that these are only
 warnings and that I shouldn't be concerned about them, but I see
 there are other errors here now as well.

 Mar 7, 2012 11:30:01 PM org.apache.coyote.AbstractProtocol pause
 INFO: Pausing ProtocolHandler [http-bio-8080] Mar 7, 2012
 11:30:01 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing
 ProtocolHandler [ajp-bio-8009] Mar 7, 2012 11:30:01 PM
 org.apache.catalina.core.StandardService stopInternal INFO:
 Stopping service Catalina Mar 7, 2012 11:30:06 PM
 com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy
 INFO: WSSERVLET15: JAX-WS servlet destroyed Mar 7, 2012 11:30:06 PM
 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
 contextDestroyed INFO: WSSERVLET13: JAX-WS context listener
 destroyed Mar 7, 2012 11:30:06 PM
 

Dynamic Security Constraints?

2012-03-09 Thread Leo Donahue - PLANDEVX
I'm not sure this is the right subject line, but if I wanted to use Tomcat to 
publish large files (several GB) for different customers to download, and each 
customer wanted their own secure URL (form based login over HTTPS) from which 
to download their data, how would I add a new security constraint url-pattern 
for authentication for new customers without restarting the server?  Is that 
even the correct approach?

Or would it just be easier to deploy a new pre-configured webapp for each 
customer?

Tomcat 6.0.35

Leo



Re: Dynamic Security Constraints?

2012-03-09 Thread André Warnier

Leo Donahue - PLANDEVX wrote:

I'm not sure this is the right subject line, but if I wanted to use Tomcat to 
publish large files (several GB) for different customers to download, and each 
customer wanted their own secure URL (form based login over HTTPS) from which 
to download their data, how would I add a new security constraint url-pattern 
for authentication for new customers without restarting the server?  Is that 
even the correct approach?

Or would it just be easier to deploy a new pre-configured webapp for each 
customer?

Your own choice of phrasing above is a bit ambiguous, but indeed your last solution seems 
to be the easiest to implement.


Among other reasons, since you do not know who they are before they login, it would be 
difficult to present each one of them with their own specific login page.

(That's the ambiguous part, so I'm not sure that I understand your requirement 
correctly).

You could use per-customer virtual hosts, but that would be more difficult to set up than 
just dropping a war-file in ../webapps/, in particular on-the-fly.


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



Re: Non page pool issue will not go away, please help.

2012-03-09 Thread Rainer Jung

On 09.03.2012 18:19, Doron Tsur wrote:

Hi Guys,

A while back I've addressed you guys with the non paged pool issue. Most
people advised upgrading the java/tomcat. We did just that and the issue is
still happening. We are investigating a lot of directions of memory leaks
in the environment with Microsoft. I wanted to address you guys, to see if
you can give me a second feedback. The server isn't using direct memory or
JNI for tomcat. I've been perusing a lot of directions here, yet still at a
lost on why this is happening. Here is a recap of the information with the
updates:

I've been having an issue in one of our production servers. The Non Paged
Pool creeps up slowly until the system hangs and than crash.

Tomcat: 7  latest Java: 1.6.25 OS: Windows Server 2003 R2 SP2

This is a production server that uses high bandwidth. Poking around
Poolmon.exe I was able to find that

1. the AfdP tag is consuming a lot of NP (Non Paged) pool.
2. This is a tag concerning the windows socket driver (afd.sys).

We have many production servers running our tomcat. We have only
encountered this issue in two of them, those servers have the same
OS/Java/Tomcat installed. One server uses high bandwidth and the other uses
much less.

I say tomcat because this is the process that consumes all NP pool (about
170MB).

1. Have you ever encountered this issue?
2. Do you know of any application level/Tomcat configuration work around
to solve this issue?
3. Do you think that there is something wrong in the way Tomcat
interfaces with winsock?
4. Do you believe that Tomcat APR might resolve this issue?
5. I can't seem to download this hotfix to further investigate these
files, they might contain a suitable version. Do you know how can I get
them?

When Tomcat is killed the Non Paged Pool doesn't return to the OS.

Please share your wisdom and Tomcat greatness,


Anything strange in the output of netstat -an?
To many connections of some kind? Unusual TCP connection states?

Regards,

Rainer

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



RE: Dynamic Security Constraints?

2012-03-09 Thread Leo Donahue - PLANDEVX
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Dynamic Security Constraints?

Leo Donahue - PLANDEVX wrote:
 I'm not sure this is the right subject line, but if I wanted to use
Tomcat to publish large files (several GB) for different customers to
download, and each customer wanted their own secure URL (form based
login over HTTPS) from which to download their data, how would I add a
new security constraint url-pattern for authentication for new customers
without restarting the server?  Is that even the correct approach?

 Or would it just be easier to deploy a new pre-configured webapp for
each customer?

Your own choice of phrasing above is a bit ambiguous, but indeed your
last solution seems to be the easiest to implement.

Among other reasons, since you do not know who they are before they
login, it would be difficult to present each one of them with their own
specific login page.
(That's the ambiguous part, so I'm not sure that I understand your
requirement correctly).

Occasionally I get requests for GIS data in the tens of gigabytes.  Our ftp 
won't let us upload that amount of data, so I thought why not zip it and place 
it on Tomcat for them to download.  This data was sensitive in nature and they 
wanted a secure login to whatever URL I provided for them to download that data.

Example:  http://planning.maricopa.gov/customerx  when they access this URL, 
they are presented with a form based login over HTTPS, and once authenticated, 
Tomcat serves up a directory with their zip file.  Essentially, I would already 
have a preconfigured SQL database with users/roles and just whip up a webapp 
and send the customer a url/username/password with which to login.  I was 
thinking I would just have webapp template that I modify when I get a request 
like that, deploy and then undeploy it after they get their data.  Is there a 
better way?  

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



Re: Web service not starting up as expected

2012-03-09 Thread André Warnier

Christopher Schultz wrote:
...



I wonder if this is a timing issue. I've never used Tomcat on Windows,
but I used to use an old Java-based TiVo media server that came with a
Windows Service. I seem to remember that clicking the restart widget
in the service snap-in would seem to take *forever* and then it would
finally say sorry, this service isn't responding. For whatever
reason, the service interface wasn't getting the feedback it needed to
declare the service stopped.

or, the service is just taking longer to respond, than what the service manager expects 
(there is some kind of built-in delay there, within which the service must respond 
something to the start service message). As I remember, this can be changed.  Must be in 
the Registry somewhere.


When the service takes too long to respond, the service manager pops up an error like you 
indicate above, but the service itself is not interrupted, and continues to start and 
eventually run.  Of course, if you think it hasn't started, and do a start service 
again, then things may get somewhat out-of-sync and confusing.



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



Want to confirm fix of a security vulnerability

2012-03-09 Thread Jayant Sane


Pardon the re-post but I just wanted some kind of ack from the Tomcat dev team 
on the following. 
Has the Tomcat WAR deployment directory traversal... issue as detailed 
in http://securitytracker.com/id/1023504 been fixed in version 7.0.023? 
As I mentioned, the Apache security team wont comment on known security issues. 

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



Re: Dynamic Security Constraints?

2012-03-09 Thread André Warnier

Leo Donahue - PLANDEVX wrote:

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: Dynamic Security Constraints?

Leo Donahue - PLANDEVX wrote:

I'm not sure this is the right subject line, but if I wanted to use

Tomcat to publish large files (several GB) for different customers to
download, and each customer wanted their own secure URL (form based
login over HTTPS) from which to download their data, how would I add a
new security constraint url-pattern for authentication for new customers
without restarting the server?  Is that even the correct approach?

Or would it just be easier to deploy a new pre-configured webapp for

each customer?
Your own choice of phrasing above is a bit ambiguous, but indeed your
last solution seems to be the easiest to implement.

Among other reasons, since you do not know who they are before they
login, it would be difficult to present each one of them with their own
specific login page.
(That's the ambiguous part, so I'm not sure that I understand your
requirement correctly).


Occasionally I get requests for GIS data in the tens of gigabytes.  Our ftp 
won't let us upload that amount of data, so I thought why not zip it and place 
it on Tomcat for them to download.  This data was sensitive in nature and they 
wanted a secure login to whatever URL I provided for them to download that data.

Example:  http://planning.maricopa.gov/customerx  when they access this URL, they are presented with a form based login over HTTPS, and once authenticated, Tomcat serves up a directory with their zip file.  Essentially, I would already have a preconfigured SQL database with users/roles and just whip up a webapp and send the customer a url/username/password with which to login.  I was thinking I would just have webapp template that I modify when I get a request like that, deploy and then undeploy it after they get their data.  Is there a better way?  



Well, if they can all use the same login page, then after they login you know who they 
are.  And if you anyway have a database back-end, then whatever webapp they are logged-in 
to, can do a database lookup and retrieve /their/ download link from the database, and 
display it on the response page.  Then you need only one webapp, and all you need to do is 
add or modify or delete a record in the database.


Just don't make the download link too obvious, not to encourage one of them to change it a 
little bit just to try..

For example, I would not make it like :
https://planning.maricopa.gov/customer001/secret_download_file.gis
;-)

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



RE: Web service not starting up as expected

2012-03-09 Thread Debbie Shapiro


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Friday, March 09, 2012 1:35 PM
To: Tomcat Users List
Subject: Re: Web service not starting up as expected


Debbie Shapiro wrote:
...
 
 How do you start Tomcat when you start it manually? How about when
 you schedule a restart?
 
 I either directly run the .bat command or launch the scheduled task that 
 normally runs the same .bat command.
 
 The contents of the .bat file is as follows:
 
 
 sc \\bidev2 stop Tomcat7
 
 taskkill /F /FI IMAGENAME eq java.exe /FI USERNAME eq NT AUTHORITY\SYSTEM
 

Now wait..
I am not so familiar with these Windows commands, but do I see above
a) a command to stop the Tomcat service
b) a command killing java.exe ?

Yes. This code is sort of a holdover from another application that I could only 
kill the service by also killing the java.exe processes that it was tied to, 
otherwise it couldn't obtain the port because it was already in use. Probably 
not necessary for this application, but I figured it couldn't hurt.


 REM delay batch job to wait for services to stop
 
 for /F tokens=1-4 delims=/-  %%A in ('date/T') do set DATE=%%B%%C%%D
 for /F tokens=1-4 delims=:.,  %%a in ('time/T') do set TIME=%%a%%b%%c
 
 cd c:\Program Files\Apache Software Foundation\Tomcat 
 7.0\webapps\sree\WEB-INF\classes
 rename sree.log %DATE%_%TIME%_sree.log
 rename schedule.log %DATE%_%TIME%_schedule.log
 
 cd c:\Program Files\Apache Software Foundation\Tomcat 
 7.0\webapps\sree\WEB-INF\classes
 compact %DATE%_%TIME%_sree.log /c
 compact %DATE%_%TIME%_schedule.log /c
 

and c) a series of command tending to indicate that this application puts its 
logfiles 
inside the classes directory ?  (not fatal, but at least bizarre)

Yes, it does. This is the way the vendor coded it. I have brought it to their 
attention but they don't seem to see a problem with it.

 
 sc \\bidev2 start Tomcat7
 
 cd c:\Scheduled Jobs
 
...


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



Re: Want to confirm fix of a security vulnerability

2012-03-09 Thread Au, Leon
On 3/9/12 2:19 PM, Jayant Sane jayant_s...@hotmail.com wrote:



Pardon the re-post but I just wanted some kind of ack from the Tomcat dev
team on the following.
Has the Tomcat WAR deployment directory traversal... issue as detailed
in http://securitytracker.com/id/1023504 been fixed in version 7.0.023?
As I mentioned, the Apache security team wont comment on known security
issues. 

According to your link, only Tomcat major version 5 and 6 were affected.
Also, the issue was report Jan 25, 2010.  Tomcat 7.0.23 was released Nov
25, 2011.  I imagine that any issue would have been patched well before
that.

http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Leon


many thanks,Jayant 
-
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: Non page pool issue will not go away, please help.

2012-03-09 Thread Doron Tsur
This customer has two cluster nodes. This helps the server to be more
available. They are identical in any way and both have this issue.  The
server is a simple HTTP put get server. It uses some SSL and zipping but
nothing fancy. Since the configuration are always the same nothing is
special in the TCP layer. regarding TCP connection state I wouldn't know, I
let tomcat do most of the job. I kick in to action when objects are formed,
way after TCP.

No direct memory either.
No native code.
It's java, tomcat and HTTP mostly.

Anything strange in the output of netstat -an?
 To many connections of some kind? Unusual TCP connection states?

 Regards,

 Rainer