RE: tomcat 6 refuses mod_jk connections after server runs for a couple of days

2014-02-27 Thread Isaac Gonzalez
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Thursday, February 27, 2014 2:40 PM To: Tomcat Users List Subject: Re: tomcat 6 refuses mod_jk connections after server runs for a couple of days 2014-02-28 2:06 GMT+04:00 Isaac Gonzalez : > Hi Christopher

Re: tomcat 6 refuses mod_jk connections after server runs for a couple of days

2014-02-27 Thread Konstantin Kolinko
2014-02-28 2:06 GMT+04:00 Isaac Gonzalez : > Hi Christopher(and Konstantin), attached is a couple of thread dumps of when > we experienced the issue again today. I also noticed we get this message > right before the problem occurs: > Feb 27, 2014 12:47:15 PM > org.apache.tomcat.util.threads.Thre

Re: Tomcat 7.0.52 issue on our Sun Sparc with SunOS 5.10

2014-02-27 Thread Konstantin Kolinko
2014-02-28 1:56 GMT+04:00 Jay : > Hello, > > We newly installed Solaris 10 with all default settings on our Sun Sparc > machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules). > The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc > SUNW,UltraAX-i2. > > We downloaded and i

Tomcat 7.0.52 issue on our Sun Sparc with SunOS 5.10

2014-02-27 Thread Jay
Hello, We newly installed Solaris 10 with all default settings on our Sun Sparc machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules). The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc SUNW,UltraAX-i2. We downloaded and installed JDK packages as follows: jdk-7u51-sol

Re: java: src/network.c:441: Java_org_apache_tomcat_jni_Socket_send: Assertion failed

2014-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dmitry, On 2/27/14, 3:27 PM, Dmitry Batiyevskiy wrote: > This didn't helped, java process died with same error in about 5 > hours Okay. The assert() call will in fact kill the process -- I had to check. It seems that for the time being, your only

Re: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

2014-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eric, On 2/26/14, 3:39 AM, HU E wrote: > Chris, Mark, thanks for your suggestion. After setting the system > property org.apache.catalina.connector.RECYCLE_FACADES to true, > this issue disappeared. That suggests that your application is making a

Re: java: src/network.c:441: Java_org_apache_tomcat_jni_Socket_send: Assertion failed

2014-02-27 Thread Dmitry Batiyevskiy
This didn't helped, java process died with same error in about 5 hours Regards, Dmitry Batiyevskiy Ardas Group Inc. www.ardas.dp.ua 2014-02-21 19:50 GMT+02:00 Dmitry Batiyevskiy < dmitry.batiyevs...@ardas.dp.ua>: > Ok thanks I will try setting org.apache.catalina.connector.RECYCLE_FACADES >

Re: Error using same server.xml from a RedHat box on a Windows 2008 R2 box

2014-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 2/27/14, 9:58 AM, Daniel Mikusa wrote: > By default Tomcat will look for the APR libraries and if it finds > them, it will use them. In this case, it seems like it’s not > finding them on your Linux environment and it is finding them on

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 2/27/14, 3:22 PM, Christopher Schultz wrote: > Jose, > > On 2/27/14, 1:29 PM, Jose María Zaragoza wrote: >> 2014-02-27 17:24 GMT+01:00 Konstantin Kolinko >> : >>> 2014-02-27 18:31 GMT+04:00 Jose María Zaragoza >>> : And what d

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 2/27/14, 1:29 PM, Jose María Zaragoza wrote: > 2014-02-27 17:24 GMT+01:00 Konstantin Kolinko > : >> 2014-02-27 18:31 GMT+04:00 Jose María Zaragoza >> : >>> >>> And what do you recommend to me for forcing to return a >>> Content-Type ? Som

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Jose María Zaragoza
2014-02-27 17:24 GMT+01:00 Konstantin Kolinko : > 2014-02-27 18:31 GMT+04:00 Jose María Zaragoza : >> >> And what do you recommend to me for forcing to return a Content-Type ? >> Some weird clients require it >> >> If I cannot do it with a Filter , where can I do it ? >> > > You can do it in a Fil

Re: can i have programatically access to the ServerContainer (websocket) in tomcat 7?

2014-02-27 Thread Mark Thomas
On 27/02/2014 17:12, Johan Compagner wrote: > thx, > > On 27 February 2014 15:25, Mark Thomas wrote: > >> >> You haven't started the Context so the attributes won't have been >> populated. >> >> Try adding a ContextListener to the context and use that to set up the >> endpoints using the program

Re: can i have programatically access to the ServerContainer (websocket) in tomcat 7?

2014-02-27 Thread Johan Compagner
thx, On 27 February 2014 15:25, Mark Thomas wrote: > > You haven't started the Context so the attributes won't have been > populated. > > Try adding a ContextListener to the context and use that to set up the > endpoints using the programmatic API. > > Mark I have it working for WebSocket end

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Konstantin Kolinko
2014-02-27 18:31 GMT+04:00 Jose María Zaragoza : > > And what do you recommend to me for forcing to return a Content-Type ? > Some weird clients require it > > If I cannot do it with a Filter , where can I do it ? > You can do it in a Filter. As I said, 1. The header must be set before writing a

Re: Error using same server.xml from a RedHat box on a Windows 2008 R2 box

2014-02-27 Thread Mike Johnson
Thank you all for your very thorough responses. I have learned a ton from 2 emails. I appreciate your time in responding to educate me. Mike. On Thu, Feb 27, 2014 at 10:09 AM, Mark Thomas wrote: > On 27/02/2014 14:40, Mike Johnson wrote: > > Here's the issue that I'm looking for insight on(I

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Lorenzo Fini
Hi, as I told you I'm not a wizard in configuring log4j. using this configuration for log4j: log4j.logger.org.apache=FINE, logApache log4j.additivity.org.apache.catalina.util.LifecycleBase=false log4j.appender.logApache=org.apache.log4j.DailyRollingFileAppender log4j.appender.logApache.File=../lo

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Mark Thomas
On 27/02/2014 15:01, Lorenzo Fini wrote: > Hi Mark, > > if I am just doing request.getSession() on the request that I receive, how > can it be an application error? That would depend on where the object named "request" was obtained from. > I do no store any request or session.. In which case, I

Re: Error using same server.xml from a RedHat box on a Windows 2008 R2 box

2014-02-27 Thread Mark Thomas
On 27/02/2014 14:40, Mike Johnson wrote: > Here's the issue that I'm looking for insight on(I did a workaround that > seems to work fine, just doesn't make sense why it works differently on OS > if Tomcat is portable across OS). If you use different configurations - on the same OS or across differ

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Lorenzo Fini
Hi Mark, if I am just doing request.getSession() on the request that I receive, how can it be an application error? I do no store any request or session.. 2014-02-27 15:55 GMT+01:00 Mark Thomas : > On 27/02/2014 14:35, Lorenzo Fini wrote: > > Hi, > > I get this error: > > > > java.lang.NullPoi

Re: Error using same server.xml from a RedHat box on a Windows 2008 R2 box

2014-02-27 Thread Daniel Mikusa
On Feb 27, 2014, at 9:40 AM, Mike Johnson wrote: > Hi all, > > New to this listserv. I had jumped the gun and submitted a bug, as I really > do think it is a bug, but I was told to come here first. So I am here :D Best to always start here. > > Anyway, > > Here's the issue that I'm looking f

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Mark Thomas
On 27/02/2014 14:35, Lorenzo Fini wrote: > Hi, > I get this error: > > java.lang.NullPointerException > > org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:807) > > org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:653) > org.apache

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Lorenzo Fini
Did you try in the servlet? 2014-02-27 15:31 GMT+01:00 Jose María Zaragoza : > Thanks > > > And what do you recommend to me for forcing to return a Content-Type ? > Some weird clients require it > > If I cannot do it with a Filter , where can I do it ? > > 2014-02-27 12:41 GMT+01:00 Konstantin

Re: the latest tomcat 7.0.50 has a problem when used through osgi (like eclipse)

2014-02-27 Thread Mark Thomas
On 27/02/2014 14:29, Johan Compagner wrote: > On 27 February 2014 15:16, Mark Thomas wrote: > >> Sorry, I got confused about what changed between which 7.0.x and 8.0.x >> versions. There was a lot of rapid changes over a short period of time >> as folks reported different issues. >> >> The soluti

Error using same server.xml from a RedHat box on a Windows 2008 R2 box

2014-02-27 Thread Mike Johnson
Hi all, New to this listserv. I had jumped the gun and submitted a bug, as I really do think it is a bug, but I was told to come here first. So I am here :D Anyway, Here's the issue that I'm looking for insight on(I did a workaround that seems to work fine, just doesn't make sense why it works d

ManagerBase.generateSessionId() gives me a NullPointerException

2014-02-27 Thread Lorenzo Fini
Hi, I get this error: java.lang.NullPointerException org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:807) org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:653) org.apache.catalina.connector.Request.doGetSession(Request.java

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Jose María Zaragoza
Thanks And what do you recommend to me for forcing to return a Content-Type ? Some weird clients require it If I cannot do it with a Filter , where can I do it ? 2014-02-27 12:41 GMT+01:00 Konstantin Kolinko : > 2014-02-27 12:18 GMT+04:00 Jose María Zaragoza : >> Hello: >> >> I'm using Tomcat

Re: the latest tomcat 7.0.50 has a problem when used through osgi (like eclipse)

2014-02-27 Thread Johan Compagner
On 27 February 2014 15:16, Mark Thomas wrote: > Sorry, I got confused about what changed between which 7.0.x and 8.0.x > versions. There was a lot of rapid changes over a short period of time > as folks reported different issues. > > The solution you propose is not acceptable as it causes other p

Re: can i have programatically access to the ServerContainer (websocket) in tomcat 7?

2014-02-27 Thread Mark Thomas
On 27/02/2014 14:03, Johan Compagner wrote: > Like what is described here? > > http://dev.eclipse.org/mhonarc/lists/jetty-dev/msg01999.html > > > ServerContainer container = > (ServerContainer)context.getAttribute("javax.websocket.server.ServerContainer" > ); > try > { >

Re: the latest tomcat 7.0.50 has a problem when used through osgi (like eclipse)

2014-02-27 Thread Mark Thomas
On 27/02/2014 13:58, Johan Compagner wrote: > i download here: > > http://archive.apache.org/dist/tomcat/tomcat-7/ > > .50 and .52 > > i look into org.apache.tomcat.util.descriptor.DigesterFactory > > those 2 files are for the piece that is wrong exactly the same for me: > > private static

can i have programatically access to the ServerContainer (websocket) in tomcat 7?

2014-02-27 Thread Johan Compagner
Like what is described here? http://dev.eclipse.org/mhonarc/lists/jetty-dev/msg01999.html ServerContainer container = (ServerContainer)context.getAttribute("javax.websocket.server.ServerContainer" ); try { container.addEndpoint(EchoSocket.class); i need a way to ad

Re: the latest tomcat 7.0.50 has a problem when used through osgi (like eclipse)

2014-02-27 Thread Johan Compagner
i download here: http://archive.apache.org/dist/tomcat/tomcat-7/ .50 and .52 i look into org.apache.tomcat.util.descriptor.DigesterFactory those 2 files are for the piece that is wrong exactly the same for me: private static String idFor(String url) { URL id = ServletContext.class.

RE: Are these CVEs fixed in tomcat 7 ?

2014-02-27 Thread Christian Rustøen
Ok, thanks for your quick reply. -- BR, chris From: Mark Thomas Sent: Thursday, February 27, 2014 1:53 PM To: Tomcat Users List Subject: Re: Are these CVEs fixed in tomcat 7 ? On 27/02/2014 12:49, Christian Rustøen wrote: > Hi > > Based on the apache se

Re: Are these CVEs fixed in tomcat 7 ?

2014-02-27 Thread Mark Thomas
On 27/02/2014 12:49, Christian Rustøen wrote: > Hi > > Based on the apache security reports i dont see any mention of these CVEs b= > eing fixed in tomcat, and as they have a very high score i would like to kn= > ow if they have been fixed. > These are almost 3-4 years old but as i dont see any me

Are these CVEs fixed in tomcat 7 ?

2014-02-27 Thread Christian Rustøen
Hi Based on the apache security reports i dont see any mention of these CVEs b= eing fixed in tomcat, and as they have a very high score i would like to kn= ow if they have been fixed. These are almost 3-4 years old but as i dont see any mention on them in the= security reports i would still like

Re: Issue while deploying a war file using Tomcat 7.0.52

2014-02-27 Thread Neha Munjal
Hi Konstanti, In my opinion, The Bootstrap classloader should be effective and since the jar is present there, it should consider it and not throw this exception. Thanks Neha On Thu, Feb 27, 2014 at 5:26 PM, Konstantin Kolinko wrote: > 2014-02-27 15:36 GMT+04:00 Neha Munjal : > > Hi All, > > >

Re: Issue while deploying a war file using Tomcat 7.0.52

2014-02-27 Thread Konstantin Kolinko
2014-02-27 15:36 GMT+04:00 Neha Munjal : > Hi All, > > I am using Tomcat7.0.52 on Windows 7 64 Bit. > > The issue I am facing is that when I try to deploy a war file, I receive > the following exception: > *Caused by: java.lang.ClassCastException: > org.hornetq.jms.client.HornetQJMSConnectionFactor

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Konstantin Kolinko
2014-02-27 12:18 GMT+04:00 Jose María Zaragoza : > Hello: > > I'm using Tomcat 6.0.24 and I'm testing how to return Content-Length header > So I've defined a Filter and declared in web.xml of my web application > > If I do this: > > HttpServletResponse httpResponse = (HttpServletResponse) response;

Issue while deploying a war file using Tomcat 7.0.52

2014-02-27 Thread Neha Munjal
Hi All, I am using Tomcat7.0.52 on Windows 7 64 Bit. The issue I am facing is that when I try to deploy a war file, I receive the following exception: *Caused by: java.lang.ClassCastException: org.hornetq.jms.client.HornetQJMSConnectionFactory cannot be cast to javax.jms.ConnectionFactory* The s

Re: the latest tomcat 7.0.50 has a problem when used through osgi (like eclipse)

2014-02-27 Thread Mark Thomas
On 27/02/2014 10:58, Johan Compagner wrote: > i just tested this under 7.0.52 that should have the fix (from 51 on > according to the change log) > > but its still this: (if i look into apache-tomcat-7.0.52-src.zip) Still what? The code you quote below is the code from 7.0.52 which is not the sam

Re: the latest tomcat 7.0.50 has a problem when used through osgi (like eclipse)

2014-02-27 Thread Johan Compagner
i just tested this under 7.0.52 that should have the fix (from 51 on according to the change log) but its still this: (if i look into apache-tomcat-7.0.52-src.zip) private static String idFor(String url) { URL id = ServletContext.class.getResource("resources/" + url); if (id == n

[Ticket #603] Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Innoviti IT Support
This is a notification from the Help Desk. Ticket closed by Sudhindra Rao. On Feb 27, 2014 @ 02:16 pm, Sudhindra Rao wrote: Ticket closed. ==Ticket History== On Feb 27, 2014 @ 02:10 pm, it Support wrote: Assigned to Sudhindra Rao. -- On Feb 27, 2014 @ 01:43 pm, demablo...@gmail.com wrote

[Ticket #603] Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Innoviti IT Support
This is a notification from the Help Desk. Ticket was assigned to Sudhindra Rao. On Feb 27, 2014 @ 02:10 pm, it Support wrote: Assigned to Sudhindra Rao. ==Ticket History== On Feb 27, 2014 @ 01:43 pm, demablo...@gmail.com wrote: Hello: I'm using Tomcat 6.0.24 and I'm testing how to return Co

Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.24 and I'm testing how to return Content-Length header So I've defined a Filter and declared in web.xml of my web application If I do this: HttpServletResponse httpResponse = (HttpServletResponse) response; chain.doFilter(request, response); httpResponse.setHeader("Co