Re: Customizing BASIC authentication
You can use request.getRemoteUser() to obtain the username. The password is not really accessible except by examining the http headers. Jake At 11:21 PM 8/13/2004 -0400, you wrote: Hi all, I've been spending the last few hours reading about realms, valves, authenticators and the like, and I'm totally confused. I'm hoping if I describe my situation, someone can help me cut through the fog. I'm working on a simple web app that will feed custom RSS XML to clients that must use basic authentication. In my application, I need to do more than just look up users somewhere. Instead, the login/password values returned via basic authentication headers will be used in some fairly complex ways to both authenticate and then construct the custom response. What is the simplest way to customize basic authentication in Tomcat 4? It seems that realms are not the way to go, since they just handle authentication and have nothing to do with the request/response. Valves/authenticators seem like overkill. Form based authentication is not an option. Can I have Tomcat manage basic authentication headers but pass the login/password values to my code? And can I then have access to that information in the servlet that creates the response? Many thanks, Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - JVM Max Heap Size on Linux
I've used Sun's 1.5 Beta on AMD64 and verified that heap allocation maxes out at 12GB (I'm on a 32GB machine running RHAS 3.0 x86-64). On Fri, 2004-08-13 at 10:01, Peter Lin wrote: > I thought the only way to run a 64bit VM was on solaris, which means > you have to use the Sun JVM. Does IBM offer a 64bit JVM now? > > peter > > > On Fri, 13 Aug 2004 11:55:44 -0500, Caldarale, Charles R > <[EMAIL PROTECTED]> wrote: > > > From: Dale, Matt [mailto:[EMAIL PROTECTED] > > > Subject: [OT] - JVM Max Heap Size on Linux > > > > > > Has anyone got around the maximum heap size of 2G on linux? > > > We've got a new server with 12G of ram which was going to be > > > used for an uber tomcat but this plan may have to be changed > > > if we can't get more than 2G of memory used for the JVM. > > > > What kind of hardware? A single process on a regular x86 machine can only access > > 4GB of virtual space, regardless of the amount of real memory you have, unless you > > use some of the OS-specific address extension mechanisms (which the JVM doesn't). > > If you have an AMD64 and the appropriate version of Linux, you could try the Sun > > 64-bit JVM (see the 5.0 Beta 3 download list). > > > > - 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with mod_jk2 and security on Win 2003
Hi to all! First of all - thank you for this list! It helps to individuals like I am to keep their job:) I am newbie, so maybe my questions too silly for you, but anyway I must to ask. I am running Apache 2.0.50+Tomcat 5.0.27-mod_jk 1.2 on Win 2003, JDK 1.4.2_05. 1) I dont have a problems to deploy and run it with mod_jk 1.2, but when I am trying to configure mod_jk 2 it fails. It returns "java.io.FileNotFoundException" when I am trying to start app. my app is in the WEB-INF/classes/MyApp.class (as always:)) BTW, Tomcat starts and runs perfectly - stderr is clear, I am trying to test it with standard jsp-examples - all works, but when I am trying to open the same page which works with mod_jk 1.2 with applet tag - it returns error with mod_jk 2. The error log of Apache sais the same thing - applet not found. What am I doing wrong??? Help me please to figure it out. My apps directory located in the same folder that jsp-examples folder, in web.xml servlet mapping looks has the same locations like for example, plugin servlet from examples: MyApp /MyApp 2) The second question is about security - I am running my server under the second administrator account with reassigned rights (so its not administrator anymore but it has more power then advanced user which is not enough for me). So the question is - does anybody can give tips/instructions/links to documentaton HowTo exactly I must configure my Windows to run with Apache and Tomcat without give to user so much power like I have now??? I have experienced attacks on my server so I dont have so much money to repair it again. Please help me with this if you know how - ASAP. These are my conofiguration key moments:) I am mounting my app directory in httpd.conf (in Virtual Host section) like this: ==Start JkUriSet group ajp13:site.com:8009 JkUriSet group ajp13:site.com:8009 JkUriSet group ajp13:site.com:8009 ===End= My in server.xml mounts apps base like this: ==Start appBase="C:\apache_home\apache-2\htdocs" ===End= my wokers2.properties contains this: ==Start [uri:/*.jsp] group=ajp13:site.com:8009 [uri:/*.jspx] group=ajp13:site.com:8009 [uri:/*.do] group=ajp13:site.com:8009 [uri:/jsp-examples/*] group=ajp13:site.com:8009 [uri:/myapp-folder/*] group=ajp13:site.com:8009 ===End= Thank you very much in advance!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Customizing BASIC authentication
Hi all, I've been spending the last few hours reading about realms, valves, authenticators and the like, and I'm totally confused. I'm hoping if I describe my situation, someone can help me cut through the fog. I'm working on a simple web app that will feed custom RSS XML to clients that must use basic authentication. In my application, I need to do more than just look up users somewhere. Instead, the login/password values returned via basic authentication headers will be used in some fairly complex ways to both authenticate and then construct the custom response. What is the simplest way to customize basic authentication in Tomcat 4? It seems that realms are not the way to go, since they just handle authentication and have nothing to do with the request/response. Valves/authenticators seem like overkill. Form based authentication is not an option. Can I have Tomcat manage basic authentication headers but pass the login/password values to my code? And can I then have access to that information in the servlet that creates the response? Many thanks, Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGI for tomcat on linux
Havens, Peter wrote: Hello all, I am trying to get CGI working on tomcat 4.1.29 in a RedHat Linux environment. I have all ready got it working on my Windows environment and it is working great. It seems to be quite easy and I followed the instructions exactly as they are found here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html I did these same steps on both my Windows and my LINUX box but I keep getting an error 500 on my LINUX box. I have included the exception that I am seeing on the browser when I try to access my cgi executable. I have tried many different executables and scripts but I always get the same response. There error seems to imply that the cgi file that I am trying to run does not exist. I have validated its location and the permissions to the file are wide open. Has anyone run in to this before or do you know why I am getting this? Thanks in advance, -Peter Below is the exception report HTTP Status 500 type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.io.IOException: java.io.IOException: "/opt/hpwebadmin/webapps/mxhelp/WEB-INF/cgi/namazucgi": not found at java.lang.UNIXProcess.(Unknown Source) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:15 92) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFi lterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC hain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java: 376) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Re: CGI for tomcat on linux
On Fri, Aug 13, 2004 at 05:25:01PM -0700, Havens, Peter wrote: : I did these same steps on both my Windows and my LINUX box but I keep : getting an error 500 on my LINUX box. : [snip] : There error seems to imply that the cgi file that I am trying to run : does not exist. I have validated its location and the permissions to : the file are wide open. : : java.io.IOException: java.io.IOException: : "/opt/hpwebadmin/webapps/mxhelp/WEB-INF/cgi/namazucgi": not found You say the perms are "wide open" on the file -- specifically, what are they? Is the file executable? What's the first line of the script? Is it #!/path/to/your/perl (where the path is "/usr/bin/perl" under most default Linux installs) Windows and Linux execute scripts in different ways; the former associates a file extension with an executable, whereas the latter sets the interpreter in the script itself. Try to run the script from the commandline. If the executable referenced by the magic number (aka shebang, aka "#!") isn't there, you'll get the "file not found" error. I haven't run CGI under Tomcat 4 but I recall in Tomcat 5 you can expressly state which interpreter to use in the element. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CGI for tomcat on linux
Hello all, I am trying to get CGI working on tomcat 4.1.29 in a RedHat Linux environment. I have all ready got it working on my Windows environment and it is working great. It seems to be quite easy and I followed the instructions exactly as they are found here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html I did these same steps on both my Windows and my LINUX box but I keep getting an error 500 on my LINUX box. I have included the exception that I am seeing on the browser when I try to access my cgi executable. I have tried many different executables and scripts but I always get the same response. There error seems to imply that the cgi file that I am trying to run does not exist. I have validated its location and the permissions to the file are wide open. Has anyone run in to this before or do you know why I am getting this? Thanks in advance, -Peter Below is the exception report HTTP Status 500 type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.io.IOException: java.io.IOException: "/opt/hpwebadmin/webapps/mxhelp/WEB-INF/cgi/namazucgi": not found at java.lang.UNIXProcess.(Unknown Source) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:15 92) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFi lterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC hain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java: 376) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apach
RE: WebDAV using Tomcat 5 and Dreamweaver 7.0.1
Looking at the headers the nc value in the header from dreamweaver is quoted. My reading of RFC2617 is that the nc value should not be quoted. Tomcat removes quotes from those parameters that are allowed to be quoted. Quoting selectively from RFC2617: nonce-count = "nc" "=" nc-value nc-value = 8LHEX LHEX = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" Mark > -Original Message- > From: Robert Hunt [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 5:51 AM > To: [EMAIL PROTECTED] > Subject: WebDAV using Tomcat 5 and Dreamweaver 7.0.1 > > I'm having problems with using Dreamweaver to access a Tomcat WebDAV > environment. The web.xml file uses and a > (DIGEST) to produce the authentication > challenge (sc 401). > Every time, DW continues to receive a 401 status. > > I rolled my own digest authentication (according to RFC2069 & > 2617) and > found that DW returns an authorization header that does NOT > contain spaces > between the parameters, where NS (7) and IE(6) do. > Accounting for this, my > webdav servlet (extension of Catalina's > WebdavServlet > > ) can match DW's digest response and not trip a 401. > > Dreamweaver response: > > authorization=Digest > username="userX",realm="/webdav1",nonce="f776f4450e9673ad73b0f > 1b3f7ec2d55",u > ri="/webdav1/",qop="auth",nc="0001",cnonce="411c41d4",resp > onse="24bc402d > 885b5b12f895a850e5efed1a",opaque="" > > > Netscape response: > > header=authorization=Digest username="userX", realm="/webdav1", > nonce="669d20f8bf4fe0af6433bc8c2c295581", uri="/webdav1/", > response="c44573ae2284658d1de62f2d5154acc0", qop=auth, nc=0001, > cnonce="082c875dcb2ca740" > > > > A quick look at the RFC's and I can't find whether > param-comma-space-param > is required or param-comma-param, but it's late and RFCs are > notorious for > giving one heavy eyelids. Can anyone tell me which is > correct? (So I can > go submit a bug?) > > Not this should be such a picky issue; whitespace between the > parameters > (from none to lots) should not be what trips up the authentication. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
Yes, I think this is what we will have to do, although multiple IP addresses arent even required. All we have to do is run the tomcats on different ports on the same box. As I mentioned in another post I am awaiting a bug fix in the clustering code with large session sizes before I can use this though. In the meantime we may have to configure groups of users onto each seperate tomcat, a pain but we may have to live with it. -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 19:23 To: Tomcat Users List Subject: Re: [OT] - JVM Max Heap Size on Linux On Friday 13 August 2004 01:13 pm, Dale, Matt wrote: > Hi, > > We are a call centre and the application is a scripting tool for outbound > calling. I've seen over 300G an hour of memory allocated with 100 users and > we need to support well over 200. With that much memory being consumed it > obviously garbage collects pretty much constantly. A very low percentage of > the objects make it to the old generation so the young generation garbage > collection is crippling the box, particularly if it has a busy spell. Have you thought of using multiple invocations of Tomcat on the same box with multiple IP addresses assigned? Each invocation could handle a certain number of users (round robin, etc.). I haven't looked, but TC 5 seems to have some nice stuff to handle multiple TC's running as one site. Just a thought. Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with Jasper and ojspc
Hi, Tomcat 4.x implements the Servlet Specification v2.3 and the JSP Specification v1.1. It's not guaranteed that code produced on Jasper on Tomcat 4.x will run on a servlet container that doesn't support those specification versions. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 3:44 PM >To: Tomcat-User List (E-mail) >Subject: Problems with Jasper and ojspc > > Hello folks, i´ve just compiled all my jsp pages in a jar file, in >tomcat-4.1.29 its fine as usual, but if i try to deploy my webappication in >Oracle Application Server-10g, it doesn´t execute my pages properly. I >don´t >know what is going wrong, the JDK is the same ( j2sdk1.4.2-05b ), OS ( >linux >), the specification Servlets 2.2, but OAS cannot run a Jasper pre-compiled >page ( even a very simple Hello World ). Doe anyone here know why? > > Regards, > Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with Jasper and ojspc
Hello folks, i´ve just compiled all my jsp pages in a jar file, in tomcat-4.1.29 its fine as usual, but if i try to deploy my webappication in Oracle Application Server-10g, it doesn´t execute my pages properly. I don´t know what is going wrong, the JDK is the same ( j2sdk1.4.2-05b ), OS ( linux ), the specification Servlets 2.2, but OAS cannot run a Jasper pre-compiled page ( even a very simple Hello World ). Doe anyone here know why? Regards, Edson
RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException
Thanks! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 12:02 PM To: Tomcat Users List Subject: RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException Hi, 5.0.16 was released in November 2003, and 5.0.19 which I think has the fix was released in February 2004. Use 5.0.27 if you can, which is the latest stable release. Yoav Shapira Millennium Research Informatics >-Original Message- >From: alan sparago [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 2:58 PM >To: 'Tomcat Users List' >Subject: RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException > >How long ago? Im using Tomcat 5.0.16!!! > >-Original Message- >From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 11:46 AM >To: Tomcat Users List >Subject: RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException > >Hi, >Fixed long ago, update to a more modern release. > >Yoav Shapira >Millennium Research Informatics > > >>-Original Message- >>From: alan sparago [mailto:[EMAIL PROTECTED] >>Sent: Friday, August 13, 2004 2:39 PM >>To: [EMAIL PROTECTED] >>Subject: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException >> >>I am running Tomcat 5.0.16 standalone, front-ended by a load balancer. >It >>runs on a Debian Linux 2.4.26 SMP i686 server. It threw the following >error >>to the catalina.log file. After throwing this exception, Tomcat still >>appears to be working and servicing requests but it stopped writing to >the >>catalina.log file. In researching this issue all I could find were >>references to this problem being fixed in an earlier version of Tomcat >(I >>believe 4.1.16). This was on a production box so I have no idea what >>request >>or user caused this exception. >> >> >> >>java.lang.ArrayIndexOutOfBoundsException: 49152 >>at >>org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff e >r.ja >>v >>a:731) >>at >>org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff e >r.ja >>v >>a:659) >>at >>org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutpu t >Buff >>e >>r.java:539) >>at >>org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Process o >r.ja >>v >>a:1515) >>at >>org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:8 9 >8) >>at org.apache.coyote.Response.action(Response.java:226) >>at org.apache.coyote.Response.sendHeaders(Response.java:418) >>at >>org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:364) >>at >>org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325) >>at >>org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse . >java >>: >>497) >>at >>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:213 ) >>at >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 8 >05) >>at >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces s >Conn >>e >>ction(Http11Protocol.java:696) >>at >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 6 >05) >>at >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo o >l.ja >>v >>a:677) >>at java.lang.Thread.run(Thread.java:534) >>Aug 12, 2004 7:09:48 PM org.apache.coyote.http11.Http11Processor >process >>SEVERE: Error finishing response >>java.lang.ArrayIndexOutOfBoundsException: 49153 >>at >>org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff e >r.ja >>v >>a:731) >>at >>org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutpu t >Buff >>e >>r.java:471) >>at >>org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Process o >r.ja >>v >>a:1511) >>at >>org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:8 9 >8) >>at org.apache.coyote.Response.action(Response.java:224) >>at >>org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutpu t >Buff >>e >>r.java:431) >>at >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 8 >42) >>at >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces s >Conn >>e >>ction(Http11Protocol.java:696) >>at >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 6 >05) >>at >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo o >l.ja >>v >>a:677) >>at java.lang.Thread.run(Thread.java:534) > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] ---
RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException
Hi, 5.0.16 was released in November 2003, and 5.0.19 which I think has the fix was released in February 2004. Use 5.0.27 if you can, which is the latest stable release. Yoav Shapira Millennium Research Informatics >-Original Message- >From: alan sparago [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 2:58 PM >To: 'Tomcat Users List' >Subject: RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException > >How long ago? Im using Tomcat 5.0.16!!! > >-Original Message- >From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 11:46 AM >To: Tomcat Users List >Subject: RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException > >Hi, >Fixed long ago, update to a more modern release. > >Yoav Shapira >Millennium Research Informatics > > >>-Original Message- >>From: alan sparago [mailto:[EMAIL PROTECTED] >>Sent: Friday, August 13, 2004 2:39 PM >>To: [EMAIL PROTECTED] >>Subject: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException >> >>I am running Tomcat 5.0.16 standalone, front-ended by a load balancer. >It >>runs on a Debian Linux 2.4.26 SMP i686 server. It threw the following >error >>to the catalina.log file. After throwing this exception, Tomcat still >>appears to be working and servicing requests but it stopped writing to >the >>catalina.log file. In researching this issue all I could find were >>references to this problem being fixed in an earlier version of Tomcat >(I >>believe 4.1.16). This was on a production box so I have no idea what >>request >>or user caused this exception. >> >> >> >>java.lang.ArrayIndexOutOfBoundsException: 49152 >>at >>org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff e >r.ja >>v >>a:731) >>at >>org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff e >r.ja >>v >>a:659) >>at >>org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutpu t >Buff >>e >>r.java:539) >>at >>org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Process o >r.ja >>v >>a:1515) >>at >>org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:8 9 >8) >>at org.apache.coyote.Response.action(Response.java:226) >>at org.apache.coyote.Response.sendHeaders(Response.java:418) >>at >>org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:364) >>at >>org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325) >>at >>org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse . >java >>: >>497) >>at >>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:213 ) >>at >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 8 >05) >>at >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces s >Conn >>e >>ction(Http11Protocol.java:696) >>at >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 6 >05) >>at >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo o >l.ja >>v >>a:677) >>at java.lang.Thread.run(Thread.java:534) >>Aug 12, 2004 7:09:48 PM org.apache.coyote.http11.Http11Processor >process >>SEVERE: Error finishing response >>java.lang.ArrayIndexOutOfBoundsException: 49153 >>at >>org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff e >r.ja >>v >>a:731) >>at >>org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutpu t >Buff >>e >>r.java:471) >>at >>org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Process o >r.ja >>v >>a:1511) >>at >>org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:8 9 >8) >>at org.apache.coyote.Response.action(Response.java:224) >>at >>org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutpu t >Buff >>e >>r.java:431) >>at >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 8 >42) >>at >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces s >Conn >>e >>ction(Http11Protocol.java:696) >>at >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 6 >05) >>at >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo o >l.ja >>v >>a:677) >>at java.lang.Thread.run(Thread.java:534) > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException
How long ago? Im using Tomcat 5.0.16!!! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 11:46 AM To: Tomcat Users List Subject: RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException Hi, Fixed long ago, update to a more modern release. Yoav Shapira Millennium Research Informatics >-Original Message- >From: alan sparago [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 2:39 PM >To: [EMAIL PROTECTED] >Subject: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException > >I am running Tomcat 5.0.16 standalone, front-ended by a load balancer. It >runs on a Debian Linux 2.4.26 SMP i686 server. It threw the following error >to the catalina.log file. After throwing this exception, Tomcat still >appears to be working and servicing requests but it stopped writing to the >catalina.log file. In researching this issue all I could find were >references to this problem being fixed in an earlier version of Tomcat (I >believe 4.1.16). This was on a production box so I have no idea what >request >or user caused this exception. > > > >java.lang.ArrayIndexOutOfBoundsException: 49152 >at >org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja >v >a:731) >at >org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja >v >a:659) >at >org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutput Buff >e >r.java:539) >at >org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processo r.ja >v >a:1515) >at >org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:89 8) >at org.apache.coyote.Response.action(Response.java:226) >at org.apache.coyote.Response.sendHeaders(Response.java:418) >at >org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:364) >at >org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325) >at >org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse. java >: >497) >at >org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:213) >at >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 05) >at >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn >e >ction(Http11Protocol.java:696) >at >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6 05) >at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja >v >a:677) >at java.lang.Thread.run(Thread.java:534) >Aug 12, 2004 7:09:48 PM org.apache.coyote.http11.Http11Processor process >SEVERE: Error finishing response >java.lang.ArrayIndexOutOfBoundsException: 49153 >at >org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja >v >a:731) >at >org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutput Buff >e >r.java:471) >at >org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processo r.ja >v >a:1511) >at >org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:89 8) >at org.apache.coyote.Response.action(Response.java:224) >at >org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutput Buff >e >r.java:431) >at >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 42) >at >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn >e >ction(Http11Protocol.java:696) >at >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6 05) >at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja >v >a:677) >at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException
Hi, Fixed long ago, update to a more modern release. Yoav Shapira Millennium Research Informatics >-Original Message- >From: alan sparago [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 2:39 PM >To: [EMAIL PROTECTED] >Subject: Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException > >I am running Tomcat 5.0.16 standalone, front-ended by a load balancer. It >runs on a Debian Linux 2.4.26 SMP i686 server. It threw the following error >to the catalina.log file. After throwing this exception, Tomcat still >appears to be working and servicing requests but it stopped writing to the >catalina.log file. In researching this issue all I could find were >references to this problem being fixed in an earlier version of Tomcat (I >believe 4.1.16). This was on a production box so I have no idea what >request >or user caused this exception. > > > >java.lang.ArrayIndexOutOfBoundsException: 49152 >at >org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja >v >a:731) >at >org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja >v >a:659) >at >org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutput Buff >e >r.java:539) >at >org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processo r.ja >v >a:1515) >at >org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:89 8) >at org.apache.coyote.Response.action(Response.java:226) >at org.apache.coyote.Response.sendHeaders(Response.java:418) >at >org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:364) >at >org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325) >at >org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse. java >: >497) >at >org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:213) >at >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 05) >at >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn >e >ction(Http11Protocol.java:696) >at >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6 05) >at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja >v >a:677) >at java.lang.Thread.run(Thread.java:534) >Aug 12, 2004 7:09:48 PM org.apache.coyote.http11.Http11Processor process >SEVERE: Error finishing response >java.lang.ArrayIndexOutOfBoundsException: 49153 >at >org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe r.ja >v >a:731) >at >org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutput Buff >e >r.java:471) >at >org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processo r.ja >v >a:1511) >at >org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:89 8) >at org.apache.coyote.Response.action(Response.java:224) >at >org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutput Buff >e >r.java:431) >at >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8 42) >at >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn >e >ction(Http11Protocol.java:696) >at >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6 05) >at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja >v >a:677) >at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Another doubt about taglibs
Thats one way to do it. My prefence is to stuff most of the data that is in scriptlets into a single java object, then into the HttpServletRequest (or pageContext). Then the custom tag can query the HttpServletRequest or PageContext. To get the dynamic data. It avoids the <%%> hell that you see below. Another alternative is to use EL with custom tags in tomcat 5. Then "<%= (request.getParameter( "hdnTypeCTRL" ) != null ) ? request.getParameter( "hdnTypeCTRL" ) :"texto" %>" becomes the slightly less ugly: "${param.hdnTypeCTRL?param.hdnTypeCTRL:'texto'}" -Tim Edson Alves Pereira wrote: Hey dudes, is this the correct way to mixe taglibs with JSP code? <%= stTitle %> " type="<%= ( request.getParameter( "hdnTypeCTRL" ) != null ) ? request.getParameter( "hdnTypeCTRL" ) : "texto" %>" size="<%= ( request.getParameter( "hdnSizeCTRL" ) != null ) ? Integer.parseInt( request.getParameter( "hdnSizeCTRL" )) : 10 %>"/> " onClick ="onClick_efetuarPesquisa( this );">Pesquisar Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.16 causes; java.lang.ArrayIndexOutOfBoundsException
I am running Tomcat 5.0.16 standalone, front-ended by a load balancer. It runs on a Debian Linux 2.4.26 SMP i686 server. It threw the following error to the catalina.log file. After throwing this exception, Tomcat still appears to be working and servicing requests but it stopped writing to the catalina.log file. In researching this issue all I could find were references to this problem being fixed in an earlier version of Tomcat (I believe 4.1.16). This was on a production box so I have no idea what request or user caused this exception. java.lang.ArrayIndexOutOfBoundsException: 49152 at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav a:731) at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav a:659) at org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffe r.java:539) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.jav a:1515) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:898) at org.apache.coyote.Response.action(Response.java:226) at org.apache.coyote.Response.sendHeaders(Response.java:418) at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:364) at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325) at org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java: 497) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:213) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:696) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:677) at java.lang.Thread.run(Thread.java:534) Aug 12, 2004 7:09:48 PM org.apache.coyote.http11.Http11Processor process SEVERE: Error finishing response java.lang.ArrayIndexOutOfBoundsException: 49153 at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav a:731) at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffe r.java:471) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.jav a:1511) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:898) at org.apache.coyote.Response.action(Response.java:224) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffe r.java:431) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:842) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:696) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:677) at java.lang.Thread.run(Thread.java:534)
RE: regarding link to download jakarta-tomcat 4.1.24
http://jakarta.apache.org/site/binindex.cgi http://jakarta.apache.org/site/sourceindex.cgi > -Original Message- > From: Singh, Manish [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:10 PM > To: [EMAIL PROTECTED] > Subject: regarding link to download jakarta-tomcat 4.1.24 > > Hi there > > > > Could anyone give me the link from where I could download > "jakarta-tomcat 4.1.27" source code or binary code. > > > > > > Thanks in advance > > > > regards > > Manish Kumar Singh > > FirstDoc, FCG India > > 080-5691,ext:-2416 > > As ur GOD,so ur world > > as ur worship,.so ur LIFE > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - JVM Max Heap Size on Linux
On Friday 13 August 2004 01:13 pm, Dale, Matt wrote: > Hi, > > We are a call centre and the application is a scripting tool for outbound > calling. I've seen over 300G an hour of memory allocated with 100 users and > we need to support well over 200. With that much memory being consumed it > obviously garbage collects pretty much constantly. A very low percentage of > the objects make it to the old generation so the young generation garbage > collection is crippling the box, particularly if it has a busy spell. Have you thought of using multiple invocations of Tomcat on the same box with multiple IP addresses assigned? Each invocation could handle a certain number of users (round robin, etc.). I haven't looked, but TC 5 seems to have some nice stuff to handle multiple TC's running as one site. Just a thought. Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Another doubt about taglibs
Hey dudes, is this the correct way to mixe taglibs with JSP code? <%= stTitle %> " type="<%= ( request.getParameter( "hdnTypeCTRL" ) != null ) ? request.getParameter( "hdnTypeCTRL" ) : "texto" %>" size="<%= ( request.getParameter( "hdnSizeCTRL" ) != null ) ? Integer.parseInt( request.getParameter( "hdnSizeCTRL" )) : 10 %>"/> " onClick ="onClick_efetuarPesquisa( this );">Pesquisar Regards, Edson
RE: [OT] - JVM Max Heap Size on Linux
Yeah its 2 gig by default although some kernel hacking can get that up to 3 or 4. -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 18:06 To: Tomcat Users List Subject: Re: [OT] - JVM Max Heap Size on Linux On Friday 13 August 2004 12:40 pm, Dale, Matt wrote: > Hi, > > Has anyone got around the maximum heap size of 2G on linux? We've got a new > server with 12G of ram which was going to be used for an uber tomcat but > this plan may have to be changed if we can't get more than 2G of memory > used for the JVM. Isn't there an OS limit to the amount of memory a process can get in Linux? Something like 4 gigs? That would limit the amount of memory if true. In fact, I remember this being discussed about a month ago on the list - not sure what date though. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: better error message a web.xml has errors
Hi, An error in web.xml only stops startup for that webapp, not all webapps. I just retested that on 5.0.27 to confirm. If you posted the entire error message, than that's weird. But then again, I haven't played with 4.1.24 in a while so maybe what we said wasn't applicable to your Tomcat release. The web.xml external validation is of course applicable and easy. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Emerson Cargnin [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 1:01 PM >To: Tomcat Users List >Subject: Re: better error message a web.xml has errors > >As you can see, there's no context reference in the error message. >I think that a error with a web.xml's context shoudn't invalidate all >tomcat startup. > >Thanks for the help >Emerson > >Starting service Tomcat-Standalone >Apache Tomcat/4.1.24-LE-jdk14 >log4j:WARN No appenders could be found for logger >(org.apache.struts.util.PropertyMessageResources). >log4j:WARN Please initialize the log4j system properly. >5896 [main] ERROR digester.Digester - Parse Error at line 188 column >-1: Element "web-app" does not allow "servlet" here. >org.xml.sax.SAXParseException: Element "web-app" does not allow >"servlet" here. > at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) > at >org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Valida >tingParser.java:349) > at >org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317) > at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) > at >org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) > at >org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at >org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > at org.apache.commons.digester.Digester.parse(Digester.java:1543) > > >Schalk Neethling wrote: >> I may be in error here but, the client/team from which app the web.xml >> is causing the error should see that their site is not working. Where >> the other sites where the web.xml was parsed correctly should see their >> sites working. If I am correct in this it would be a matter of >> contacting all clients, or testing yourself if possible, and ask them to >> see whether their site/app is running. >> >> The one that is not, is probably the one with the error in their web.xml >> and then they can fix the problem and place the tag in the >> right place. >> >> Emerson Cargnin wrote: >> >>> I have a server that has more than 30 apps from different teams. >>> When starting tomcat i got the erro below >>> >>> >>> 6310 [main] ERROR digester.Digester - Parse Error at line 188 column >>> -1: Element "web-app" does not allow "servlet" here. >>> org.xml.sax.SAXParseException: Element "web-app" does not allow >>> "servlet" here. >>> at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) >>> >>> >>> The problem is that I can not identify what app yhas the error. >>> That's just a suggestion for the dev team. >>> Or I missed something? >>> >>> >> > > >-- >Emerson Cargnin >Analista de Sistemas - Gerente Regional Auxiliar - Tubarão >Setor de Desenvolvimento de Sistemas - TRE-SC >tel : (048) - 251-3700 - Ramal 3181 > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - JVM Max Heap Size on Linux
now if only I had a system to load test 32 vs 64bit JVM, I'd post some numbers. peter On Fri, 13 Aug 2004 12:11:13 -0500, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Peter Lin [mailto:[EMAIL PROTECTED] > > Subject: Re: [OT] - JVM Max Heap Size on Linux > > > > I thought the only way to run a 64bit VM was on solaris, which means > > you have to use the Sun JVM. Does IBM offer a 64bit JVM now? > > Sun offers Sparc64 (Solaris) and IA64 (Linux, Windows) versions of 1.4.2, and > Sparc64 (Solaris) and AMD64 (Linux, Windows) versions of 5.0 beta. Check > http://java.sun.com/j2se/1.5.0/snapshots/ for the AMD64 stuff. (Seems to run o.k. > on my AMD64 laptop, but I haven't done anything serious with it yet.) > > > > - 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
Not as far as I know, we currently use the Sun JVM and intend to going forwards. But to run a 64bit JVM you unfortunately need 64 bit processors -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 18:02 To: Tomcat Users List Subject: Re: [OT] - JVM Max Heap Size on Linux I thought the only way to run a 64bit VM was on solaris, which means you have to use the Sun JVM. Does IBM offer a 64bit JVM now? peter On Fri, 13 Aug 2004 11:55:44 -0500, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Dale, Matt [mailto:[EMAIL PROTECTED] > > Subject: [OT] - JVM Max Heap Size on Linux > > > > Has anyone got around the maximum heap size of 2G on linux? > > We've got a new server with 12G of ram which was going to be > > used for an uber tomcat but this plan may have to be changed > > if we can't get more than 2G of memory used for the JVM. > > What kind of hardware? A single process on a regular x86 machine can only access > 4GB of virtual space, regardless of the amount of real memory you have, unless you > use some of the OS-specific address extension mechanisms (which the JVM doesn't). > If you have an AMD64 and the appropriate version of Linux, you could try the Sun > 64-bit JVM (see the 5.0 Beta 3 download list). > > - 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
Hi, We are a call centre and the application is a scripting tool for outbound calling. I've seen over 300G an hour of memory allocated with 100 users and we need to support well over 200. With that much memory being consumed it obviously garbage collects pretty much constantly. A very low percentage of the objects make it to the old generation so the young generation garbage collection is crippling the box, particularly if it has a busy spell. I believe a lot of the memory is in the sessions which seem to be a fairly substancial size. The app also does a lot of XML parsing and I'm sure there is a little too much String concatenation in there as well. I'm not sure of the load in terms of requests per second but i'd imagine up to 50 but more likely an average of 10-20 (this is purely guesswork though). Currently supporting about 100 users we've had the most success by fixing the eden space at 384M and not using the survivor spaces. Using the ParNewGC with 4 threads and the CMS collector in the old generation. Anything else i've missed? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 17:58 To: Tomcat Users List Subject: RE: [OT] - JVM Max Heap Size on Linux Hi, Just out of curiosity, what app(s) are you running that need a heap greater than 2GB? Or what load on those apps? You obviously don't need to give confidential details, I'm just curious about the type of app and its architecture. Yoav Shapira Millennium Research Informatics -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 12:41 PM To: Tomcat Users List (E-mail) Subject: [OT] - JVM Max Heap Size on Linux Hi, Has anyone got around the maximum heap size of 2G on linux? We've got a new server with 12G of ram which was going to be used for an uber tomcat but this plan may have to be changed if we can't get more than 2G of memory used for the JVM. Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
> From: Peter Lin [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] - JVM Max Heap Size on Linux > > I thought the only way to run a 64bit VM was on solaris, which means > you have to use the Sun JVM. Does IBM offer a 64bit JVM now? Sun offers Sparc64 (Solaris) and IA64 (Linux, Windows) versions of 1.4.2, and Sparc64 (Solaris) and AMD64 (Linux, Windows) versions of 5.0 beta. Check http://java.sun.com/j2se/1.5.0/snapshots/ for the AMD64 stuff. (Seems to run o.k. on my AMD64 laptop, but I haven't done anything serious with it yet.) - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - JVM Max Heap Size on Linux
sweet! man that is a nice toy. I'd check with IBM to see if they have a beta JVM you can try out. They must be working on one. peter On Fri, 13 Aug 2004 18:00:19 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote: > > Good point, its an IBM machine with 16 P4's and 12gig of ram. So its looking like > we'll not be able to run it as 1 tomcat process. So it might have to be a cluster of > them on the same box. I'm awaiting a bug fix in clustering with big sessions before > I can cluster though. Might have to come up with something else to keep us going in > the mean time. > > Ta > Matt > > > > -Original Message- > From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Sent: 13 August 2004 17:56 > To: Tomcat Users List > Subject: RE: [OT] - JVM Max Heap Size on Linux > > > From: Dale, Matt [mailto:[EMAIL PROTECTED] > > Subject: [OT] - JVM Max Heap Size on Linux > > > > Has anyone got around the maximum heap size of 2G on linux? > > We've got a new server with 12G of ram which was going to be > > used for an uber tomcat but this plan may have to be changed > > if we can't get more than 2G of memory used for the JVM. > > What kind of hardware? A single process on a regular x86 machine can only access > 4GB of virtual space, regardless of the amount of real memory you have, unless you > use some of the OS-specific address extension mechanisms (which the JVM doesn't). > If you have an AMD64 and the appropriate version of Linux, you could try the Sun > 64-bit JVM (see the 5.0 Beta 3 download list). > > - 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - JVM Max Heap Size on Linux
On Friday 13 August 2004 12:40 pm, Dale, Matt wrote: > Hi, > > Has anyone got around the maximum heap size of 2G on linux? We've got a new > server with 12G of ram which was going to be used for an uber tomcat but > this plan may have to be changed if we can't get more than 2G of memory > used for the JVM. Isn't there an OS limit to the amount of memory a process can get in Linux? Something like 4 gigs? That would limit the amount of memory if true. In fact, I remember this being discussed about a month ago on the list - not sure what date though. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: better error message a web.xml has errors
As you can see, there's no context reference in the error message. I think that a error with a web.xml's context shoudn't invalidate all tomcat startup. Thanks for the help Emerson Starting service Tomcat-Standalone Apache Tomcat/4.1.24-LE-jdk14 log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. 5896 [main] ERROR digester.Digester - Parse Error at line 188 column -1: Element "web-app" does not allow "servlet" here. org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1543) Schalk Neethling wrote: I may be in error here but, the client/team from which app the web.xml is causing the error should see that their site is not working. Where the other sites where the web.xml was parsed correctly should see their sites working. If I am correct in this it would be a matter of contacting all clients, or testing yourself if possible, and ask them to see whether their site/app is running. The one that is not, is probably the one with the error in their web.xml and then they can fix the problem and place the tag in the right place. Emerson Cargnin wrote: I have a server that has more than 30 apps from different teams. When starting tomcat i got the erro below 6310 [main] ERROR digester.Digester - Parse Error at line 188 column -1: Element "web-app" does not allow "servlet" here. org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) The problem is that I can not identify what app yhas the error. That's just a suggestion for the dev team. Or I missed something? -- Emerson Cargnin Analista de Sistemas - Gerente Regional Auxiliar - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] - JVM Max Heap Size on Linux
I thought the only way to run a 64bit VM was on solaris, which means you have to use the Sun JVM. Does IBM offer a 64bit JVM now? peter On Fri, 13 Aug 2004 11:55:44 -0500, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Dale, Matt [mailto:[EMAIL PROTECTED] > > Subject: [OT] - JVM Max Heap Size on Linux > > > > Has anyone got around the maximum heap size of 2G on linux? > > We've got a new server with 12G of ram which was going to be > > used for an uber tomcat but this plan may have to be changed > > if we can't get more than 2G of memory used for the JVM. > > What kind of hardware? A single process on a regular x86 machine can only access > 4GB of virtual space, regardless of the amount of real memory you have, unless you > use some of the OS-specific address extension mechanisms (which the JVM doesn't). > If you have an AMD64 and the appropriate version of Linux, you could try the Sun > 64-bit JVM (see the 5.0 Beta 3 download list). > > - 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: better error message a web.xml has errors
Hi, As one poster said, which context is causing the error is a line or two above the error message itself in web.xml. As another poster said, you can (and I would add that you should) validate your web.xml outside of Tomcat using a variety of XML validation tools like XMLSpy. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Emerson Cargnin [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 12:56 PM >To: Tomcat Users List >Subject: Re: better error message a web.xml has errors > >The problem is that tomcat don't start... > > >Schalk Neethling wrote: >> I may be in error here but, the client/team from which app the web.xml >> is causing the error should see that their site is not working. Where >> the other sites where the web.xml was parsed correctly should see their >> sites working. If I am correct in this it would be a matter of >> contacting all clients, or testing yourself if possible, and ask them to >> see whether their site/app is running. >> >> The one that is not, is probably the one with the error in their web.xml >> and then they can fix the problem and place the tag in the >> right place. >> >> Emerson Cargnin wrote: >> >>> I have a server that has more than 30 apps from different teams. >>> When starting tomcat i got the erro below >>> >>> >>> 6310 [main] ERROR digester.Digester - Parse Error at line 188 column >>> -1: Element "web-app" does not allow "servlet" here. >>> org.xml.sax.SAXParseException: Element "web-app" does not allow >>> "servlet" here. >>> at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) >>> >>> >>> The problem is that I can not identify what app yhas the error. >>> That's just a suggestion for the dev team. >>> Or I missed something? >>> >>> >> > > >-- >Emerson Cargnin >Analista de Sistemas - Gerente Regional Auxiliar - Tubarão >Setor de Desenvolvimento de Sistemas - TRE-SC >tel : (048) - 251-3700 - Ramal 3181 > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
Good point, its an IBM machine with 16 P4's and 12gig of ram. So its looking like we'll not be able to run it as 1 tomcat process. So it might have to be a cluster of them on the same box. I'm awaiting a bug fix in clustering with big sessions before I can cluster though. Might have to come up with something else to keep us going in the mean time. Ta Matt -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 17:56 To: Tomcat Users List Subject: RE: [OT] - JVM Max Heap Size on Linux > From: Dale, Matt [mailto:[EMAIL PROTECTED] > Subject: [OT] - JVM Max Heap Size on Linux > > Has anyone got around the maximum heap size of 2G on linux? > We've got a new server with 12G of ram which was going to be > used for an uber tomcat but this plan may have to be changed > if we can't get more than 2G of memory used for the JVM. What kind of hardware? A single process on a regular x86 machine can only access 4GB of virtual space, regardless of the amount of real memory you have, unless you use some of the OS-specific address extension mechanisms (which the JVM doesn't). If you have an AMD64 and the appropriate version of Linux, you could try the Sun 64-bit JVM (see the 5.0 Beta 3 download list). - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
Hi, Just out of curiosity, what app(s) are you running that need a heap greater than 2GB? Or what load on those apps? You obviously don't need to give confidential details, I'm just curious about the type of app and its architecture. Yoav Shapira Millennium Research Informatics -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 12:41 PM To: Tomcat Users List (E-mail) Subject: [OT] - JVM Max Heap Size on Linux Hi, Has anyone got around the maximum heap size of 2G on linux? We've got a new server with 12G of ram which was going to be used for an uber tomcat but this plan may have to be changed if we can't get more than 2G of memory used for the JVM. Ta Matt
Re: better error message a web.xml has errors
as I said before, tomcat don't start Mark Thomas wrote: Look in the manager app. It will show which app isn’t running. Mark -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 12:01 AM To: Tomcat Users List Subject: better error message a web.xml has errors I have a server that has more than 30 apps from different teams. When starting tomcat i got the erro below 6310 [main] ERROR digester.Digester - Parse Error at line 188 column -1: Element "web-app" does not allow "servlet" here. org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) The problem is that I can not identify what app yhas the error. That's just a suggestion for the dev team. Or I missed something? -- Emerson Cargnin Analista de Sistemas - Gerente Regional Auxiliar - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas - Gerente Regional Auxiliar - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: better error message a web.xml has errors
The problem is that tomcat don't start... Schalk Neethling wrote: I may be in error here but, the client/team from which app the web.xml is causing the error should see that their site is not working. Where the other sites where the web.xml was parsed correctly should see their sites working. If I am correct in this it would be a matter of contacting all clients, or testing yourself if possible, and ask them to see whether their site/app is running. The one that is not, is probably the one with the error in their web.xml and then they can fix the problem and place the tag in the right place. Emerson Cargnin wrote: I have a server that has more than 30 apps from different teams. When starting tomcat i got the erro below 6310 [main] ERROR digester.Digester - Parse Error at line 188 column -1: Element "web-app" does not allow "servlet" here. org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) The problem is that I can not identify what app yhas the error. That's just a suggestion for the dev team. Or I missed something? -- Emerson Cargnin Analista de Sistemas - Gerente Regional Auxiliar - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] - JVM Max Heap Size on Linux
> From: Dale, Matt [mailto:[EMAIL PROTECTED] > Subject: [OT] - JVM Max Heap Size on Linux > > Has anyone got around the maximum heap size of 2G on linux? > We've got a new server with 12G of ram which was going to be > used for an uber tomcat but this plan may have to be changed > if we can't get more than 2G of memory used for the JVM. What kind of hardware? A single process on a regular x86 machine can only access 4GB of virtual space, regardless of the amount of real memory you have, unless you use some of the OS-specific address extension mechanisms (which the JVM doesn't). If you have an AMD64 and the appropriate version of Linux, you could try the Sun 64-bit JVM (see the 5.0 Beta 3 download list). - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED: How to get the context path for a web application?
Quoting David Wall <[EMAIL PROTECTED]>: > >contextPath = path.substring(0, path.lastIndexOf("/")); > >contextPath = contextPath.substring(contextPath.lastIndexOf("/") + > 1); > > This looks like a reasonable hack, but isn't it true that the filesystem > path and the context path don't have to match? For example, I can map "" to > /webapps/ROOT can't I? Or map "/myapp" to "/webapps/somethingelse"? > > David The path returned by context.getResource("/") has nothing whatsoever to do with the file system. By your logic, my app located at "C:\apps\myappbuld\target\war", using said method above, would end up with the value "war". Yet, it ends up with whatever I set the "path" to in my context configuration file. If you want to continue to challenge this, do the test yourself. If you find something different than what I describe, let me know. Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] - JVM Max Heap Size on Linux
Title: [OT] - JVM Max Heap Size on Linux Hi, Has anyone got around the maximum heap size of 2G on linux? We've got a new server with 12G of ram which was going to be used for an uber tomcat but this plan may have to be changed if we can't get more than 2G of memory used for the JVM. Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED: How to get the context path for a web application?
>contextPath = path.substring(0, path.lastIndexOf("/")); >contextPath = contextPath.substring(contextPath.lastIndexOf("/") + 1); This looks like a reasonable hack, but isn't it true that the filesystem path and the context path don't have to match? For example, I can map "" to /webapps/ROOT can't I? Or map "/myapp" to "/webapps/somethingelse"? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOLVED: How to get the context path for a web application?
I'm never sure why smart people get this confused. ContextPath... has nothing whatsoever to do with running in a WAR, from a database, or exploded from a file system. For simple little things that an application might want to do like, oh, I don't know... reminder emails that might contain a link to the webapp in question. At that point, there is no request, since this is probably a scheduled occurrence. I suppose rather than use a scheduler, I could use cron and wget to hit a URL, in which case, voila, I'd have a HttpServletRequest. But wouldn't it be great if you could do application.getContextPath()? But alas, the expert group feels the answer is 'no'. Fine, whatever. It seems ridiculous that the application should not know anything about "who it is", or "under what URL/I I'm running" or "however you want to think of it", until an HttpRequest arrives on the scene. I just couldn't let it pass without pointing out that the one (contextPath) has nothing to do with the reasons that are normally cited for its exclusion from anything but HttpServletRequest. > -Original Message- > From: Ben Souther [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 9:12 AM > To: Tomcat Users List > Subject: Re: SOLVED: How to get the context path for a web > application? > > > Per the servlet spec, a j2ee app isn't required to have an > app path. The entire war file can be deployed remotely and > run without ever being > unpacked. In a case like that, there would be no path to the > application. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClientAbortException - can't catch?
I'm seeing a lot of ClientAbortExceptions being thrown in my catalina log and I've tried catching them in my Filters, since it would appear that's the logical place to catch 'em (its in the stack trace) - but for some reason, it isn't working ... they're still getting thrown. Any ideas? -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOLVED: How to get the context path for a web application?
Hi, Don't even bother continuing this thread, it's pointless. Please address all Spec-related questions and comments to the Expert Group. That's why they exist. Some people just want to debate things forever and feel like their own use-cases have to be global just because... Yoav Shapira Millennium Research Informatics >-Original Message- >From: Ben Souther [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 10:12 AM >To: Tomcat Users List >Subject: Re: SOLVED: How to get the context path for a web application? > >Per the servlet spec, a j2ee app isn't required to have an app path. >The entire war file can be deployed remotely and run without ever being >unpacked. In a case like that, there would be no path to the application. > > > >On Friday 13 August 2004 10:01 am, Endre Stølsvik wrote: >> But, why wouldn't all be happy? And why isn't it simple? > >-- >Ben Souther >F.W. Davison & Company, Inc. > > >This e-mail message, and any accompanying documents, is for the sole use of >the intended recipient(s) and may contain confidential and privileged >information. Any unauthorized review, use, disclosure, distribution or >copying is prohibited. If you are not the intended recipient, please >contact our office by email or by telephone at (508) 747-7261 and >immediately destroy all copies of the original message. > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED: How to get the context path for a web application?
Per the servlet spec, a j2ee app isn't required to have an app path. The entire war file can be deployed remotely and run without ever being unpacked. In a case like that, there would be no path to the application. On Friday 13 August 2004 10:01 am, Endre Stølsvik wrote: > But, why wouldn't all be happy? And why isn't it simple? -- Ben Souther F.W. Davison & Company, Inc. This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOLVED: How to get the context path for a web application?
On Fri, 13 Aug 2004, Shapira, Yoav wrote: | Hi, | And of course, since you can get the source for JSR154, there's nothing | preventing you from adding this method and running with a custom servlet | jar in your container. (It's at | http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/, complete | with a build file). Hehe! "Forking" the JSR, that'd be a little hefty, don't you think? ;) Ask customers to dig up the servlet.jar from their chosen Servlet Container, replace it with this special one, binary-patch the potentially obfuscated class-files to implement this method, and -then- deploy the application. Yeah, why not..! I think I'd rather use one of the hacks suggested here, or simply configure it in web.xml or similar, as you already suggested. But, why wouldn't all be happy? And why isn't it simple? Endre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REG: session
On Sun, Jun 13, 2004 at 08:59:19PM +0800, Venu wrote: : Hello Jignesh , : Thankx for ur reply : can u explain a bit elobrate.. 1/ http://www.google.com/search?hl=en&ie=ISO-8859-1&q=session+listener+sessionDestroy&btnG=Google+Search 2/ you do realize, the date on your computer is about 8 weeks behind, right ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat performance/GC with JVMStat's visualgc
you can always try JFluid, which is an experimental VM from sun that has some cool profiling features. peter On Fri, 13 Aug 2004 09:05:51 -0400, Nandish Rudra <[EMAIL PROTECTED]> wrote: > JProbe is also a nice tool for tracking JVM behaviour. You may want to look > into it. > > Nandish Rudra > ECI Conference Call Services, LLC > > > > -Original Message- > From: Rajesh [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 1:08 AM > To: [EMAIL PROTECTED] > Subject: tomcat performance/GC with JVMStat's visualgc > > Hai all > > how to check Tomcat's garbage collectioin with JVMStat's visualgc > > Rajesh > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REG: session
Hello Jignesh , Thankx for ur reply can u explain a bit elobrate.. - Original Message - From: "Jignesh Patel" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, August 14, 2004 6:15 AM Subject: Re: REG: session > Very simple, > User session listener, and put your database access code in > sessionDestroy method(). > > -Jignesh > On Sun, 2004-06-13 at 06:52, Venu wrote: > > Hello EveryOne, > > > > I have stucked at a point well i am using mysql as database where i am buidling a web application. > > > > For locking the multiusers i am using edit_status in each and every table.. > > > > Let say a user logged in the edit_status value for the logged in user is "per_id" and when the user log's out the edit_Status value is going to be "0". > > > > But the problem comes when the user logged in but doesnt log's out in sense if his system hangs or powershutdown's then his record is going to be locked and he wont able to login once again... > > > > is there any way which i can create a session with session time when the user is not responding at the server (Tomcat) a bean executes release the tables...while doing these i need to carry out the excat per_id of that person. or else how to call another jsp inside web.xml when the session expires > > > > > > I will be very thank ful if i get any suggestions from the forum... > > > > Best Regard's > > Venu > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOLVED: How to get the context path for a web application?
Hi, And of course, since you can get the source for JSR154, there's nothing preventing you from adding this method and running with a custom servlet jar in your container. (It's at http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/, complete with a build file). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Endre Stølsvik [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 5:27 AM >To: Tomcat Users List >Subject: Re: SOLVED: How to get the context path for a web application? > >On Thu, 12 Aug 2004, Jacob Kjome wrote: > >| To get the context path at init time, try this > >Thanks..! Good to see that others (log4j!!) have this problem! > However, I have been thinking along these lines (the second idea >presented) already, but it then again boils down to that you really cannot >assume anything about what environment you're within. See, typically in >the development environements we use, the dirname of the webapp have >nothing in common with the "mount name" (you specify that in the tomcat >server config file, or these other "xml-snippets" outside of the file) - >thus I'm back to the starting point: no knowledge! > >If only the SerlvetContext object would be so nice as to have a simple >method getContextPath(), we'd all be happy! > >Endre > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat startup error
Hola, Also make sure you installed Tomcat properly, specifically using gtar (the GNU tar) instead of the normal tar if unpacking a .tar.gz distribution. Yoav Shapira Millennium Research Informatics >-Original Message- >From: QM [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 12, 2004 6:28 PM >To: Tomcat Users List >Subject: Re: Tomcat startup error > >On Thu, Aug 12, 2004 at 02:30:37PM -0700, Techs wrote: >: We're running tomcat 4.1 on redhat linux 9, when I try to start the >service >: it it fails. The following is located in the catalina.out file: >: >: java.util.zip.ZipException: No such file or directory >: at java.util.zip.ZipFile.open(Native Method) >: at java.util.zip.ZipFile.(ZipFile.java:112) >: at java.util.jar.JarFile.(JarFile.java:127) >: at java.util.jar.JarFile.(JarFile.java:65) >: at >: >org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Un know >n >: Source) > >Likely a permissions problem in one of the directories mentioned below. >This has bitten me before... > > >: Anybody have a clue? I haven't really working with tomcat before, don't >know >: where to start to look? If it gave the name of a conf file error or the >: actual file that was missing that would be a help... > >Given the class, likely it's one of the Tomcat standard repositories >(common/lib or shared/lib) or your webapp's WEB-INF/lib. > >(This is based on a hunch; I have *not* read the code ;) > >-QM > > >-- > >software -- http://www.brandxdev.net >tech news -- http://www.RoarNetworX.com > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat performance/GC with JVMStat's visualgc
JProbe is also a nice tool for tracking JVM behaviour. You may want to look into it. Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Rajesh [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 1:08 AM To: [EMAIL PROTECTED] Subject: tomcat performance/GC with JVMStat's visualgc Hai all how to check Tomcat's garbage collectioin with JVMStat's visualgc Rajesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOLVED: How to get the context path for a web application?
Hi, No, not all of us will be happy. And it's not simple. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Endre Stølsvik [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 5:27 AM >To: Tomcat Users List >Subject: Re: SOLVED: How to get the context path for a web application? > >On Thu, 12 Aug 2004, Jacob Kjome wrote: > >| To get the context path at init time, try this > >Thanks..! Good to see that others (log4j!!) have this problem! > However, I have been thinking along these lines (the second idea >presented) already, but it then again boils down to that you really cannot >assume anything about what environment you're within. See, typically in >the development environements we use, the dirname of the webapp have >nothing in common with the "mount name" (you specify that in the tomcat >server config file, or these other "xml-snippets" outside of the file) - >thus I'm back to the starting point: no knowledge! > >If only the SerlvetContext object would be so nice as to have a simple >method getContextPath(), we'd all be happy! > >Endre > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
regarding link to download jakarta-tomcat 4.1.24
Hi there Could anyone give me the link from where I could download "jakarta-tomcat 4.1.27" source code or binary code. Thanks in advance regards Manish Kumar Singh FirstDoc, FCG India 080-5691,ext:-2416 As ur GOD,so ur world as ur worship,.so ur LIFE
RE: installing tomcat 4.1.27 on linux
Hi, You can find RPM distros for Tomcat on JPackage.com -- they do a good job. They use a standard Linux layout. Or you can download the Tomcat .zip or .tar.gz distributions and unpack them yourself. Obviously the .exe distro is for Windows only. These distributions use a standard Tomcat structure. This will result in your getting more support on the mailing list and in general. So both approaches have advantages. As others have said, Tomcat is a Java product. The only native parts, which are therefore different on Linux from Windows, are some of the web server connectors e.g. mod_jk, and the daemon invocation mechanism (jsvc on unix, procrun on windows). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 12, 2004 6:14 PM >To: Tomcat User >Subject: installing tomcat 4.1.27 on linux > >We're moving Tomcat over to a Linux box, and we're under pressure to get >it done as quickly as possible and put it into production right away >even though none of us knows Linux all that well beyond me using Solaris >back in my school days! So, I'm looking for Tomcat 4.1.27 for Linux, >and I don't see that available here: > >http://jakarta.apache.org/site/binindex.cgi > >However, in searching around, I found this, and I'm wondering if this is >the right thing for me to be using: > >http://rpmfind.net/linux/RPM/suse/9.0/i386/suse/i586/jakarta-tomcat-4.1 .27- >63.i586.html > >I've heard about RPM only in the last day or so when looking around for >utilities for Linux. I'll probably want the RPM version for Tomcat, >right? This page talks about RPM: > >http://www.rpm.org/ > >But I'm wondering if it comes with Red Hat 8 (I can't tell yet--my boss >is installing Red Hat across town and I'm just doing my homework so I'm >ready to roll when he's done with all the things he has to do on his >end). > >Thanks, >Stephen > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bug in deploying .war with Tomcat Manager.
Hi, Turn off autoDeploy and stick to manual Manager deploys only to avoid duplicate deployments (one automatic, one manual that you did with the Manager). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Ronald Klop [mailto:[EMAIL PROTECTED] >Sent: Friday, August 13, 2004 5:19 AM >To: [EMAIL PROTECTED] >Subject: Bug in deploying .war with Tomcat Manager. > > >Hello, > >I've tried this on FreeBSD 5 with Tomcat 5.0.27 and on Windows XP with >Tomcat 5.0.24. >Both using JDK 1.4.2. > >I made a war file of my webapp with the name crm.war. >The war file contains this context.xml in the META-INF directory. > > > > > >When I upload/deploy this via Tomcat Manager, Tomcat tries to start the >context twice. >Once with path "" and once with path "/crm". >This results in the following stacktrace. >Tomcat Manager does show two deployed contexts after clicking 'List >Applications' again. >So the stacktrace/exception doesn't prevent it from starting the contexts. > Begin stacktrace > >13-aug-2004 10:59:21 org.apache.catalina.core.StandardHostDeployer install >INFO: Processing Context configuration file URL >file:/C:/Tomcat5/conf/Catalina/localhost/crm.xml >13-aug-2004 10:59:21 org.apache.catalina.core.StandardHostDeployer install >INFO: Installing web application from URL >jar:file:/C:/Tomcat5/webapps/crm.war!/ > >13-aug-2004 11:00:54 org.apache.catalina.core.StandardHostDeployer install >INFO: Processing Context configuration file URL >file:C:\Tomcat5\conf\Catalina\localhost\crm.xml >13-aug-2004 11:00:54 org.apache.commons.digester.Digester endElement >SEVERE: End event threw exception >java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 >9) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >l.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at >org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) > at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) > at org.apache.commons.digester.Rule.end(Rule.java:276) > at >org.apache.commons.digester.Digester.endElement(Digester.java:1058) > at >org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java: >76) > at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown >Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknow >n Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispat >cher.dispatch(Unknown Source) > at >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown >Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.commons.digester.Digester.parse(Digester.java:1567) > at >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer. >java:488) > at >org.apache.catalina.core.StandardHost.install(StandardHost.java:863) > at >org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:48 >2) > at >org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) > at >org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064) > at >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) > at >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo >rt.java:119) > at >org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:8 >00) > at >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.process >Children(ContainerBase.java:1619) > at >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.process >Children(ContainerBase.java:1628) > at >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Con >tainerBase.java:1608) > at java.lang.Thread.run(Thread.java:534) >Caused by: java.lang.IllegalStateException: Context path is already in use > at >org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer >.java:896) > ... 30 more >13-aug-2004 11:00:54 org.apache.catalina.startup.HostConfig >deployDescriptors >SEVERE: Error deploying configuration descriptor crm.xml >java.io.IOException: java.lang.IllegalStateException: Context path is >already in use > at >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer. >java:494) > at >org.apache.catalina.core.StandardHost.install(StandardHost.java:863) > at >org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:48 >2) >
RE: $CATALINA_HOME\shared configuration question
Hi, >We're in the process of adopting the use of the >$CATALINA_HOME\shared\classes >and $CATALINA_HOME\shared\lib directories (windows platform) to encourage >greater code sharing and integration, and I'm having trouble getting Tomcat >to >watch these folders for changes and refresh it's cache if such changes are >present. > >As near as I can tell, for a typical context, it seems the way to do this >is to >hop into the server.xml file and set the "reloadable" value to true. > >However, I'm not seeing a context within that file that pertains to the >$CATALINA_HOME\shared directory. > >So, the question: where does one go to configure the $CATALINA_HOME\shared >context to be reloadable? Shared is not a context, it's not a webapp, it's not reloadable. That's the end of that story. And in general I'd say be careful with your approach to "encourage greater code sharing and integration" because webapps are supposed to be self-contained. The common and shared classloader repositories are to be used only in special circumstances, such as making JDBC drivers visible to the server. You should consider alternative designs, such as remote beans or facilities like JMS as opposed to using shared/common code. Of course there are exceptions to all cases, but I wanted to raise this caution flag. Yoav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REG: session
Very simple, User session listener, and put your database access code in sessionDestroy method(). -Jignesh On Sun, 2004-06-13 at 06:52, Venu wrote: > Hello EveryOne, > > I have stucked at a point well i am using mysql as database where i am buidling a > web application. > > For locking the multiusers i am using edit_status in each and every table.. > > Let say a user logged in the edit_status value for the logged in user is "per_id" > and when the user log's out the edit_Status value is going to be "0". > > But the problem comes when the user logged in but doesnt log's out in sense if his > system hangs or powershutdown's then his record is going to be locked and he wont > able to login once again... > > is there any way which i can create a session with session time when the user is not > responding at the server (Tomcat) a bean executes release the tables...while doing > these i need to carry out the excat per_id of that person. or else how to call > another jsp inside web.xml when the session expires > > > I will be very thank ful if i get any suggestions from the forum... > > Best Regard's > Venu > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing tomcat 4.1.27 on linux
I've written a kind of quick start guide that hopefully will be useful to you. You can find it here : http://cymulacrum.net. Just scroll down and look for the Tomcat 4 on Linux link. I'm currently updating my Tomcat 5 write-up with help from some volunteers. I've stopped updating my Tomcat 4 write-up, so if you find anything there that doesn't work, please post to this mailing list. Regards, pascal chong Stephen Charles Huey wrote: Sounds good to me! Usually when we move Tomcat to a new Windows machine, we just use that same executable zip (jakarta-tomcat-4.1.27.exe) to install Tomcat on the new machine, and then copy over our directories from the original machine to replace the Tomcat directory that got created. I know this might be a really dumb question, but will that .exe file run and install everything on the Linux box, or will I have to use jakarta-tomcat-4.1.27.zip and extract everything? It's all slowly and hazily making sense...I hope...on Red Hat I won't have to "install" it quite as "much" as Windows which needs to put things into the registries, etc, right? So I just extract it and put some kind of symbolic link to the Tomcat executable in usr/local/bin or something like that, huh? But will that be enough to mimic the functionality we usually have, since typically on Windows we run it as a service? Sorry for my rambling... - Original message - From: "Robert F. Hall" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Date: Thu, 12 Aug 2004 15:21:24 -0700 Subject: Re: installing tomcat 4.1.27 on linux Howdy, Tomcat is written in Java and is OS independent, you don't need a linux specific install. We have the same Tomcat install running on Solaris, Linux, and Windoze. -Robert Stephen Charles Huey wrote: We're moving Tomcat over to a Linux box, and we're under pressure to get it done as quickly as possible and put it into production right away even though none of us knows Linux all that well beyond me using Solaris back in my school days! So, I'm looking for Tomcat 4.1.27 for Linux, and I don't see that available here: http://jakarta.apache.org/site/binindex.cgi However, in searching around, I found this, and I'm wondering if this is the right thing for me to be using: http://rpmfind.net/linux/RPM/suse/9.0/i386/suse/i586/jakarta-tomcat-4.1.27-63.i586.html I've heard about RPM only in the last day or so when looking around for utilities for Linux. I'll probably want the RPM version for Tomcat, right? This page talks about RPM: http://www.rpm.org/ But I'm wondering if it comes with Red Hat 8 (I can't tell yet--my boss is installing Red Hat across town and I'm just doing my homework so I'm ready to roll when he's done with all the things he has to do on his end). Thanks, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Pascal Chong email: [EMAIL PROTECTED] web: http://cymulacrum.net /"\ \ / ASCII ribbon campaign X against HTML mail / \ and postings === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
REG: session
Hello EveryOne, I have stucked at a point well i am using mysql as database where i am buidling a web application. For locking the multiusers i am using edit_status in each and every table.. Let say a user logged in the edit_status value for the logged in user is "per_id" and when the user log's out the edit_Status value is going to be "0". But the problem comes when the user logged in but doesnt log's out in sense if his system hangs or powershutdown's then his record is going to be locked and he wont able to login once again... is there any way which i can create a session with session time when the user is not responding at the server (Tomcat) a bean executes release the tables...while doing these i need to carry out the excat per_id of that person. or else how to call another jsp inside web.xml when the session expires I will be very thank ful if i get any suggestions from the forum... Best Regard's Venu
Re: No access logs!
Is there any information in the other logs about this not starting? -Tim James H wrote: There are no tags. Are we getting warmer? - Original Message - From: "QM" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, August 12, 2004 11:25 PM Subject: Re: No access logs! On Thu, Aug 12, 2004 at 10:19:55PM +0100, James H wrote: : I have installed Tomcat 5 recently, and it's not producing access logs. I have the : : suffix=".txt" : pattern="common" resolveHosts="false"/> : : but in my server.xml file, but there are no access logs produced anywhere (only localhost logs). : : I don't know much about Tomcat, so maybe I'm missing something obvious. Does anyone have any ideas? Check tags for the "override" attr, and confirm that is in the right part of server.xml. (IIRC it can be in a few places, but not all ;) For the archives: if your Valve is defined in context.xml inside a WAR file, be sure to check the deployed XML file in {tomcat}/conf/{engine}/{host}/{context}.xml (or remove it, to force Tomcat to reload the WAR files context.xml. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ruth R Wu-Wong/SANTACLARA/ADD/ABBOTT is out of the office.
I will be out of the office starting 08/13/2004 and will not return until 08/16/2004. During my absence, please contact Masaki Nakane at x88508 or Doug Dixon at x60449 if you have a question regarding the VDRA project. Ruth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED: How to get the context path for a web application?
On Thu, 12 Aug 2004, Jacob Kjome wrote: | To get the context path at init time, try this Thanks..! Good to see that others (log4j!!) have this problem! However, I have been thinking along these lines (the second idea presented) already, but it then again boils down to that you really cannot assume anything about what environment you're within. See, typically in the development environements we use, the dirname of the webapp have nothing in common with the "mount name" (you specify that in the tomcat server config file, or these other "xml-snippets" outside of the file) - thus I'm back to the starting point: no knowledge! If only the SerlvetContext object would be so nice as to have a simple method getContextPath(), we'd all be happy! Endre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug in deploying .war with Tomcat Manager.
Hello, I've tried this on FreeBSD 5 with Tomcat 5.0.27 and on Windows XP with Tomcat 5.0.24. Both using JDK 1.4.2. I made a war file of my webapp with the name crm.war. The war file contains this context.xml in the META-INF directory. When I upload/deploy this via Tomcat Manager, Tomcat tries to start the context twice. Once with path "" and once with path "/crm". This results in the following stacktrace. Tomcat Manager does show two deployed contexts after clicking 'List Applications' again. So the stacktrace/exception doesn't prevent it from starting the contexts. Begin stacktrace 13-aug-2004 10:59:21 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/C:/Tomcat5/conf/Catalina/localhost/crm.xml 13-aug-2004 10:59:21 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application from URL jar:file:/C:/Tomcat5/webapps/crm.war!/ 13-aug-2004 11:00:54 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Tomcat5\conf\Catalina\localhost\crm.xml 13-aug-2004 11:00:54 org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.IllegalStateException: Context path is already in use at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:896) ... 30 more 13-aug-2004 11:00:54 org.apache.catalina.startup.HostConfig deployDescriptors SEVERE: Error deploying configuration descriptor crm.xml java.io.IOException: java.lang.IllegalStateException: Context path is already in use at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:494) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1064) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildre
RE: jvmps not displaying id of tomcat running
Firstly I would put double quotes around your environment variable setting. Secondly, it may be that the user that you are running jvmps as is not the user that is running the tomcat process. They must be the same user. Ah, just thought you will need to start the perf agent as well. Its in the same folder as jvmps. Ta Matt -Original Message- From: Rajesh [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 09:58 To: [EMAIL PROTECTED] Subject: jvmps not displaying id of tomcat running hai all am trying to check tomcat GC from JVMStat so i tryed to way in catalena.bat first line first time SET CATALINA_OPTS = -XX:+PerfBypassFileSystemCheck -verbose:gc set JAVA_OPTS = -XX:+UsePerfData second time SET CATALINA_OPTS = -verbose:gc set JAVA_OPTS = -XX:+PerfBypassFileSystemCheck -XX:+UsePerfData but am not getting the id of the jvm process can anybody help me rajesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jvmps not displaying id of tomcat running
hai all am trying to check tomcat GC from JVMStat so i tryed to way in catalena.bat first line first time SET CATALINA_OPTS = -XX:+PerfBypassFileSystemCheck -verbose:gc set JAVA_OPTS = -XX:+UsePerfData second time SET CATALINA_OPTS = -verbose:gc set JAVA_OPTS = -XX:+PerfBypassFileSystemCheck -XX:+UsePerfData but am not getting the id of the jvm process can anybody help me rajesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.30 adding no-cache to http headers
I'm sure I said use a Filter mapped to your download urls ;) The filter gets executed before tomcat's default servlet serves the content. The Filter itself would be pretty trivial, just place the code I posted in its doFilter(...) method and map it to *.doc in your members context. Maybe it's more work than you were hoping for but considerably less than rewriting Tomcat's default servlet or tinkering with the code of the SingleSignOn feature. Good luck, Jon Brad Hafichuk wrote: I agree that that would work, but I'm not using any servlets to download the files, and thus have no where to place the code. I've basically just set up a folder, threw the word documents into it, and put a WEB-INF/web.xml (with security) in it as well. I was using apache's .htaccess before, but needed to move things to tomcat to use the single-signon. Any other solutions out there? Cheers, Brad - Original Message - From: "Jon Wingfield" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, August 12, 2004 6:09 AM Subject: Re: Tomcat 4.1.30 adding no-cache to http headers Yep. Tomcat (reasonably) adds these headers when the requested url is within a security constraint defined within the web.xml. In all places on our site where pdf, excel, word docs etc can be downloaded we have the following code: final String userAgent = request.getHeader("user-agent"); if (response.containsHeader("Pragma") && userAgent!=null && userAgent.toUpperCase().indexOf("MSIE")>-1) { response.setHeader("Pragma", "public"); } This seems to have solved the issue for us. You could put the above code in a Filter mapped to your download urls in the members context. HTH, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need to start Tomcat 4.1 twice
After removing lot of NotSerializableException which were generated at the startup, I am getting following error(I can see it in log file at startup) .Any ideas why it will come? java.io.InvalidClassException: com.cisco.cse.prt.db.HomeSearchDAO; local class incompatible: stream classdesc serialVersionUID = 7413867846870442998, local class serialVersionUID = -4255287938880447586 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java: 1357) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j ava:852) at org.apache.catalina.session.StandardManager.load(StandardManager.java:411) at org.apache.catalina.session.StandardManager.start(StandardManager.java:626) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3570) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 12:25 PM To: Tomcat Users List Subject: RE: Need to start Tomcat 4.1 twice Today I tried to see the logs and it contains following error : 2004-08-13 12:21:03 StandardContext[/cse/myapp]: Resources start failed: 2004-08-13 12:21:03 StandardContext[/cse/myapp]: Context startup failed due to previous errors 2004-08-13 12:21:03 StandardContext[/cse/myapp]: Exception during cleanup after start failed LifecycleException: Container StandardContext[/cse/myapp] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3621) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) These are the first lines and I cannot understand what previous errors mean. Any pointers? Thanks, -Jitesh -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 2:48 PM To: Tomcat Users List Subject: RE: Need to start Tomcat 4.1 twice Any pointers for this? -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent
Ruth R Wu-Wong/SANTACLARA/ADD/ABBOTT is out of the office.
I will be out of the office starting 08/13/2004 and will not return until 08/16/2004. During my absence, please contact Masaki Nakane at x88508 or Doug Dixon at x60449 if you have a question regarding the VDRA project. Ruth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassNotFoundException: OracleDriver
It could be possible that you are catching the Exception in you code but doing nothing with it. -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: 12 August 2004 23:08 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: ClassNotFoundException: OracleDriver David, Thanks. Actually i had classes102.zip and nls_charset10.zip. i renamed them to classes12.jar and nls_charset12.zip and the error was gone.[is this ok..] but the values are still not inserted in the DB.[no error].. how is this possible.. do i need to have the actual classes12 and the charset.. plz advice.. --- David Short <[EMAIL PROTECTED]> wrote: > Do you have the Oracle classes .jar (classes12.jar) > loaded in your > Tomcat\common\lib directory. Actually the file, as > it comes from Oracle, is > a .zip file (classes12.zip). Just rename it. It > should reside in your > C:\OraHome\jdbc\lib directory. Move the > nls_charset12.zip file over as > well. > > -Original Message- > From: Java Techie [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 12, 2004 2:13 PM > To: [EMAIL PROTECTED] > Subject: ClassNotFoundException: OracleDriver > > > Hi, > in my struts-config: > im using > > > type="org.apache.commons.dbcp.BasicDataSource" > key="UserDB"> > > value="oracle.jdbc.driver.OracleDriver"/> > value="jdbc:oracle:thin:@myPC:1521:newDB"/> > > > > > > > -- > > The following error occurs: > 27:57[ERROR] > 27:57org.apache.commons.dbcp.SQLNestedException: > Cannot load JDBC > driver class 'oracle.jdbc.driver.OracleDriver', > cause: > java.lang.ClassNotFoundException: > oracle.jdbc.driver.OracleDriver > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa > der.java:1340) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa > der.java:1189) > at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:140) > -- > > I have added the zip > file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the > classpath; what else do i need to give. > > Thanks. > > > > __ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat performance/GC with JVMStat's visualgc
Its quite easy. Download jvmstat and add the bin directory (bat on windows) to your path. Run jvmps in a command window to find out the process id of your tomcat, it is the one with Bootstrap in it. Then run visualgc with the process id. You can also do this remotely by supplying a machine name to jvmps and visualgc. Read the instructions for jvmstat and all will become clear. -Original Message- From: Rajesh [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 06:08 To: [EMAIL PROTECTED] Subject: tomcat performance/GC with JVMStat's visualgc Hai all how to check Tomcat's garbage collectioin with JVMStat's visualgc Rajesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]