Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
  On April 15, 2014 at 6:50:05 PM, Tim Watts (t...@cliftonfarm.org(mailto:t...@cliftonfarm.org)) wrote: > On Tue, 2014-04-15 at 17:12 -0400, Ian Long wrote: > > > > > > Ian Long wrote: > > I have tomcat configured to log via log4j, and then there is my > > applic

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
reading > sequence, and > avoids having to scroll down to guess what you are responding to. > > Ian Long wrote: > > Yes, I checked both the tomcat log (I’ve configured tomcat to use log4j) as > > well as my application logs. > > > > Yes, 20 httpd prefork pr

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
On April 15, 2014 at 3:57:04 PM, Christopher Schultz (ch...@christopherschultz.net) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ian, On 4/15/14, 3:33 PM, Ian Long wrote: > Thanks for the reply. > > It looks to me like tomcat just gave up partway through generatin

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Ian, > > On 4/15/14, 3:33 PM, Ian Long wrote: >> Thanks for the reply. >> >> It looks to me like tomcat just gave up partway through generating >> the request, I’m trying to figure out

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Ian, On 4/15/14, 2:52 PM, Ian Long wrote: > I need some help from all the tomcat experts out there! I am using > tomcat behind apache httpd using mod_jk (1.2.39). About 50-100 > times per day (out of many requests), I’m getting an internal > server error from Tomca

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Schultz (ch...@christopherschultz.net) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ian, On 4/15/14, 2:52 PM, Ian Long wrote: > I need some help from all the tomcat experts out there! I am using > tomcat behind apache httpd using mod_jk (1.2.39). About 50-100 >

Tomcat logging for Internal Server Errors (500)

2014-04-12 Thread Ian Long
Hi All, I need some help tracking down a random infrequent Internal Server Error that isn’t getting logged anywhere.  I’m using Tomcat 7.0.53 behind apache httpd with mod_jk 1.2.39. I use new relic application monitoring, and I see in their application error reports that a 500 error from tomca

Re: Tomcat 500 internal server error

2014-04-11 Thread Ian Long
Warnier (a...@ice-sa.com) wrote: Ian Long wrote: > This is a followup to my previous email, about Tomcat 500 errors. For every > error, I see this in the mod_jk (1.2.39) debug logs: > > > [Fri Apr 11 13:06:33.956 2014] [25409:140068250126304] [debug] > ajp_connecti

Tomcat 500 internal server error

2014-04-11 Thread Ian Long
This is a followup to my previous email, about Tomcat 500 errors.  For every error, I see this in the mod_jk (1.2.39) debug logs: [Fri Apr 11 13:06:33.956 2014] [25409:140068250126304] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1403): received from ajp13 pos=0 len=114 max=16384 [

Random Tomcat 500 errors

2014-04-11 Thread Ian Long
Hi,  I’m running into a problem with my production tomcats (7.0.52)  that I can’t track down. Occasionally (10 times an hour maybe) I’m getting a HttpServerError 500 error that isn’t appearing in tomcat or my application logs. I see it from my NewRelic monitoring agent though, which is how I re

CATALINA_BASE/conf/Catalina/localhost/.xml is different from application's context.xml

2012-11-19 Thread Long Thai
I've been running a web application on Tomcat, when I make some changes in the application, including context.xml, and redeploy it, I start receiving an exception: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(

Re: Tomcat 6 configuration using unpackWARS no longer works in Tomcat 7

2012-08-10 Thread Ian Long (Opterus)
Hi Mark, Thanks for the info. I would rather not rename the WAR file or add the context.xml to it, because it is deployed in multiple ways on different severs and in development environments etc. Why must it be called ROOT.war, the Tomcat 6 way seems more flexible? Cheers, Ian Long Chief

Re: authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread long hong
untName" property. I changed this to "CN={0}" and "userPrincipalName={0}" and also failed to pass the authentication. On Nov 30, 2010, at 12:29 PM, Caldarale, Charles R wrote: >> From: long hong [mailto:longhong1...@gmail.com] >> Subject: Re: authentication

Re: authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread long hong
r Examples Username: Password: I confused that this code worked well with the example but failed in my case... On Nov 30, 2010, at 12:04 PM, Caldarale, Charles R wrote: >> From: long hong [mailto:longhong1...@gmail.com] >> S

authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread long hong
Hi, all! I am new to Tomcat. I am recently doing a sample app of authentication using tomcat + JNDI + Light Weight ActiveDirectory. I wanted to log into the web app with "admin" but failed several times with no error messages in my eclipse console... I had a user named "admin" with the dn= "c

Re: Setting up Multiple Servlet's to handle 1 file type

2010-09-07 Thread David Long
On Tue, Sep 7, 2010 at 12:56 PM, Pid wrote: > On 07/09/2010 13:37, David Long wrote: > > I have an Apache Tomcat 7.0.2 development environment setup on my Ubuntu > > 10.04 laptop. I currently have some servlet's setup in the global > web.xml > > file to handle .cfm

Setting up Multiple Servlet's to handle 1 file type

2010-09-07 Thread David Long
10 CfmServlet *.cfm CFCServlet *.cfc CfmServlet *.cfml -- >From a brother in Christ, David Long 203.427.1016 david.lon...@gmail.com

Re: Persistent Storage for Webapps

2009-10-12 Thread Jesse Long
Tobias Crefeld wrote: Am Mon, 12 Oct 2009 13:01:44 +0200 schrieb Jesse Long : In my webapp I need persistent storage. I am building my webapp as a .war file, and copying it into $CATALINE_HOME/webapps/ Tomcat extracts $CATALINA_HOME/webapps/app.war to $CATALINA_HOME/webapps/app/ The war

Re: Persistent Storage for Webapps

2009-10-12 Thread Jesse Long
Mikolaj Rydzewski wrote: Jesse Long wrote: Question: id /WEB-INF/ in the extracted directory the correct place for persistent data storage? If not, where is? No, WEB-INF is not a correct place app generated files. You can use any directory outside of context root. My goal is to find a

Persistent Storage for Webapps

2009-10-12 Thread Jesse Long
Hi, In my webapp I need persistent storage. I am building my webapp as a .war file, and copying it into $CATALINE_HOME/webapps/ Tomcat extracts $CATALINA_HOME/webapps/app.war to $CATALINA_HOME/webapps/app/ The war file contains an empty directory /WEB-INF/data . During operations, data files ar

Re: Garbage collection problem and Tomcat

2009-03-12 Thread Ian Long
stOnBorrow=true jdbc.validationQuery=select 1 + 1 jdbc.maxActive=100 jdbc.maxIdle=10 jdbc.minIdle=0 jdbc.timeBetweenEvictionRunsMillis=-1 jdbc.minEvictableIdleTimeMillis=90 jdbc.maxWait=15000 These map directly to the dbcp settings. Cheers, Ian Long Chief Software Architect, Opterus Inc. Em

Garbage collection problem and Tomcat

2009-03-12 Thread Ian Long
ace. My memory parameters for tomcat are: wrapper.java.additional.5=-XX:MaxPermSize=384m wrapper.java.initmemory=2048 wrapper.java.maxmemory=2048 Do you think this could be causing my problem? I am using cacti to graph tomcat heap, but it doesn't show any problems. Cheers, Ian Long Chie

Re: Tomcat and Apache with mod_jk

2009-03-06 Thread Ian Long
equest, based on the definition in server.xml. To me, VHost should only ever show the name of the configured elements. I will try the thread dump on the weekend when the site is less busy. Cheers, Ian Long Chief Software Architect, Opterus Inc. Email: ian.l...@opterus.com Phone: 416-840-8495 x666

Re: Tomcat and Apache with mod_jk

2009-03-06 Thread Ian Long
suffix=".txt" timestamp="true"/> My JkMount is straigtforward: JkMount /* ajp13 jKMount / ajp13 Since the defaultHost is ops-center.opterus.net, I would assume they should all go to that host, and not /. From all that I have read this looks like it is setup correctl

Re: Tomcat and Apache with mod_jk

2009-03-05 Thread Ian Long
Jung wrote: On 06.03.2009 00:44, Ian Long wrote: Here is some sample output from the system-status: Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request 0-0 2096 0/50/50 _ 0.01 23 2 0.0 0.09 0.09 X web1.opterus.com GET /lbcheck.faces HTTP/1.0 1-0 2097 0/12/12 W 0.01 513 0 0.0 0.05 0

Re: Tomcat and Apache with mod_jk

2009-03-05 Thread Ian Long
x27;t seem to realize the connection is gone, as you can see some of the SS times are over 10 minutes, which is longer than all my timeout settings... Is there any way to make apache realize the connections are gone? I will talk to the provider about what they see on their end Cheers

Re: Tomcat and Apache with mod_jk

2009-03-05 Thread Ian Long
27610 27568 27567 27560 27559 27523 27522 27521 27477 27476 27475 27474 27473 27467 27466 27465 27464 27457 27456 27455 27454 26439 26222 26045 26003 25855 25854 25853 25852 25851 25850 25849 25848 25846) is running... the number of processes is always increasing Thanks, Ian Long

Re: Tomcat and Apache with mod_jk

2009-03-05 Thread Ian Long
Ok thanks. Based on monitoring, I don't think it's the server taking a long time to respond, it's probably the users doing as you suggested - I just wanted to make sure the log file entries weren't serious. I want to make sure the rising established connection count

Tomcat and Apache with mod_jk

2009-03-05 Thread Ian Long
jk_handler::mod_jk.c (2357): Aborting connection for worker=ajp13 Can anyone see anything wrong with the configuration? Cheers, Ian Long Chief Software Architect, Opterus Inc. Email: ian.l...@opterus.com Phone: 416-840-8495 x666 Mobile: 416-817-9206 Web: http://www.opterus.com

Re: Can Tomcat accomplish this?

2009-02-06 Thread Christopher Long
l then forward it to the original sender." Thanks, Chris Long On Fri, Feb 6, 2009 at 3:21 PM, Jorge Medina wrote: > Maybe an ESB ? (like "Mule") > > -----Original Message- > From: Christopher Long [mailto:kord...@gmail.com] > Sent: Friday, February 06, 2009 2:

Can Tomcat accomplish this?

2009-02-06 Thread Christopher Long
sponse and will then forward it to the original sender. So does anyone know if Tomcat is able to handle this, or of any other web server (open source) that can? Thanks, Chris Long

Re: How to check my current JVM settings

2007-12-06 Thread Phi-Long LE
use the CATALINA_OPTS variable to set your JVM parameters... You can also define CATALINA_OPTS="-Xoptionsfile=toto.conf" and within toto.conf explicit JVM parameter P. Le 06/12/2007 17:02, Stefano Martines a écrit : Hi, it is Windows 2000, tomcat 5.0.28 tomcat runs as service (tomcat5.exe)

Re: Precompile JSPs

2007-10-11 Thread Phi-Long LE
You can precompile jsp using wget and jsp_precompile=true for example I use this: #!/usr/bin/posix/sh for aJSP in $(find $HELIOS -name "*.jsp" | sed -e "s:$HELIOS::g") ; do wget http://vhpuw51:$aJSP?jsp_precompile=true done Le 11/10/2007 15:26, Pid a écrit : Arun wrote: jspc:

Re: any limitation with Tomcat4 on AIX 6.1

2007-09-17 Thread Phi-Long LE
hi, more informations would be welcomed.. Le 17/09/2007 09:04, Hitesh Raghav a écrit : Hi, Is there any limitation for Tomcat4 on IBM AIX 6.1 platform? I'm trying to deploy Tomcat4 on AIX 6.1 using IBM JDK 1.4.2 (SR7). It's giving core dump. Thanks, -Hitesh ---

Re: I still cannot run a basic struts2 app on tomcat55

2007-07-23 Thread Phi-Long LE
try to comment this within catalina.policy: grant codeBase "file:${catalina.home}/webapps/-" { permission java.security.AllPermission; }; ** Le 21/07/2007 16:23, Michelle Baert a écrit : Hi all, I'm trying to start learning struts2. I have a tomcat 5.5 server running fine with simple jsp a

[TOMCAT 5.0.28 / mod_jk 1.2.23 / Apache 2.2.4] weird behaviour

2007-07-19 Thread Phi-Long LE
. The question is : why isn't it possible to define my servlet and its mapping in the same web.xml e.g. $CATALINA_BASE/conf/web.xml ?? is it an bug ?? or if not can someone explain me why ? Regards, Phi-Long LE - To st

[TOMCAT 5.0.28 / mod_jk 1.2.23 / Apache 2.2.4] weird behaviour

2007-07-18 Thread Phi-Long LE
tion to my webapp web.xml. The question is : why isn't it possible to define my servlet and its mapping in the same web.xml e.g. $CATALINA_BASE/conf/web.xml ?? is it an bug ?? or if not can someone explain me why ? Regards, Phi-Long LE --

Re: Mod_JK 1.2.23 error 200

2007-07-11 Thread Phi-Long LE
sorry for that stupid question... just find out the solution... if i want to increase MaxClients value, I have first to increase ServerLimit value Le 11/07/2007 12:22, Phi-Long LE a écrit : i probably find out the reason why connections failed... trying to load, my app with up to 1000

Re: Mod_JK 1.2.23 error 200

2007-07-11 Thread Phi-Long LE
of client abort messages might mean, that the system is to slow. Regards, Rainer Phi-Long LE schrieb: folks, I currently try to load my application using OpenSTA by simulating 1000 virtual users. having a quick look within mod_jk.log, it seems that I have a problem with my load balancer... c

Mod_JK 1.2.23 error 200

2007-07-10 Thread Phi-Long LE
ution ? thanks in advance for your help... Phi-Long - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JSP precompilation

2007-07-09 Thread Phi-Long LE
(eg using specific tomcat ant target) and include the precompiled files in your .war, add with it the mappings in web.xml for each jsp. (Long and not so easy) Or, you can install in tomcat something like lambda-probe, that has an interface to compile JSP, interface you could use after deployement

JSP precompilation

2007-07-09 Thread Phi-Long LE
best practise using tomcat ? should we create a war file including precompiled jsp or should we deploy the Webapp using Tomcat and then precompile JSP ? what is the most efficient way ? any help or advice would be really appreciated, Phi

Re: [AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Phi-Long LE
I initially said that i did amend the code... however after thinking about the error I did prefer to amend the @INC to reflect the real path using perl -I path1:path2:path3... Le 05/07/2007 15:18, Phi-Long LE a écrit : yes indeed, an error occurs when tryng the a) command... vhqun02# /opt

Re: [AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Phi-Long LE
/apxs line 19. I do then edit the apxs amend the 19th line "use strict" and try again... looks like working fine now Thx a lot for your help. Regards, Phi-Long LE Le 05/07/2007 14:56, Rainer Jung a écrit : No experience with AIX compilation, but 2 infos: a) usually this measage me

[AIX 5.3] mod_jk 1.2.23

2007-07-05 Thread Phi-Long LE
folks, has someone already experienced compiling mod_jk 1.2.23 on AIX 5.3 platform ??? when executing the command ./configure --with-apxs=/opt/apache_2.2/bin/apxs, an error occurs telling that it is a wrong path but am sure about that. any help would be appreciated, regards, Phi-Long LE

Re: Two IIS web servers

2007-06-21 Thread Phi-Long LE
Ian, reading optional directives you should probably use the worker.xxx.method, its value is Request, session, traffic or busyness Le 21/06/2007 16:00, Ian Buzer a écrit : Thanks for that Rainer. How about when a new session comes in? Does mod_jk obtain information from each Tomcat about its

Re: how to generate java heap dump from tomcat 5.0.27

2007-06-20 Thread Phi-Long LE
I use the same method as you except the fact that all java options are within a file and I set the JAVA_OPTS to -Xoptionsfile= Le 21/06/2007 05:48, Guan Yu a écrit : > i need to generate java heap dump to trace memory leak in our web > application. We are using tomcat 5.0.27. > I added "-agen

Re: Session replication in tomcat5.5

2007-06-20 Thread Phi-Long LE
one crashes... well am not sure you can transfer a sessionID... never heard before about such possibilities(anyway am still young in IT ;-)) the session should be binded to one tomcat instance (default: sticky_session is set to true) Le 20/06/2007 12:32, Phi-Long LE a écrit : did you try

Re: Session replication in tomcat5.5

2007-06-20 Thread Phi-Long LE
did you try to add the address attribute within tag ? something looks strange in your worker.properties i.e. worker.tomcat1.lbfactor=1 worker.tomcat2.lbfactor=100 this two directive mean something like you will use 100 times tomcat2 for 1 time tomcat1... if you want to use the two tomcat at the

Tomcat and MySQL sync problems

2007-01-29 Thread Chris Long
oint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** Thanks, Christopher Long

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Long
feel reasonably secure if requests for a session are indeed coming from the same IP. Long - Original Message - From: "Tomas Hulek" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, August 10, 2006 2:53 PM Subject: Re: Session hijacking with Tomcat/Myfaces

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Long
I wonder if associating (and checking) the request IP with the session would reduce the problem to some acceptable level. What is the chance of a session being hijacked from the same network (face-ip)? Another question is can the original request IP be spoofed? Long - Original Message

Re: How to have mod_jk NOT forward certain jsp's?

2006-03-28 Thread Long
tp://www.site.com/cgi-bin/cvsweb.cgi/source/jsp/backoffice.jsp > > Since it ends in .jsp, JkMount is forwarding it: > JkMount /*.jsp app01 > > However, we want anything that is in /cgi-bin to not > go to Tomcat. > How abou

Re: overheads on multiple connectors

2006-03-22 Thread Long
g on 20 different ports), will the performance be affected by a lot. < Well 3000 / 60 is 50 requests per second. If you know how long < it takes to service a request then you are in a better position to < tackle the performance issue. < < Let's assume, conservatively, your server can do

Re: overheads on multiple connectors

2006-03-21 Thread Long
rs, each listening on a different port. It typically is used with JK2 workers and/or a load balancer. To the Chris, I personally don't think it is the norm since your average site usually don't get that kind of load. I would start with

Re: keeping same session via apache2 mod_jk2 and tomcat5

2006-03-21 Thread Long
xml I have different AJP 1.3 Connector entries, one for each worker (1, 2, 3) port. # ... In httpd.conf, I map all (most) context paths to worker0. # /context1/* worker0 /context2/* worker0 My advice is to keep things as simple as possible. HTH, Long www.edgesoft.ca - Original Message - Fro

Re: keeping same session via apache2 mod_jk2 and tomcat5

2006-03-21 Thread Long
orth a try. Long www.edgesoft.ca - Original Message - From: "Vahid Hedayati" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, March 21, 2006 9:13 AM Subject: Re: keeping same session via apache2 mod_jk2 and tomcat5 Hi Yep i know these was all for

Re: tomcat and websphere compatibility

2006-03-06 Thread Long
ase, I wonder if war file can be deployed the same way in Websphere... Long - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How can I set tomcat NOT Case Sensitive

2006-03-06 Thread Long
ight, url is case-insensitive under Windows because the file system can't tell a difference between test.html and TEST.html. The difference is there under Linux/UNIX. Long - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: tomcat and websphere compatibility

2006-03-06 Thread Long
. might consist of struts, Tomcat 5.5 and MySql 4.x. An immediate issue might be data type mismatch between the databases. I am trying to assess the amount of work involved and see if it is worth the effort. Regards, Long > Hello, > > Long wrote: > > Has anyone develop in Tomca

tomcat and websphere compatibility

2006-03-06 Thread Long
Has anyone develop in Tomcat and deploy to Websphere? It should be possible but how practical is it? Are there any available resources I can use as a reference? Thanks for any info, Long - To unsubscribe, e-mail: [EMAIL