Re: Here
Your file is attached. --- Trend GateLock [EMAIL PROTECTED] (higp6.gatelock.com.tw) ** yours.pif Trend GateLock [EMAIL PROTECTED] (higp6.gatelock.com.tw) ** yours.pif WORM_NETSKY.D - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 - Win32 Alias problems
Greetings. I assume from the lack of response my post (below) that no one else has encountered these problems? Should I report both as bugs on Bugzilla? Regards, Carl -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: 03 May 2004 05:47 PM To: '[EMAIL PROTECTED]' Subject: mod_jk2 - Win32 Alias problems Greetings. Having a (couple of) problem(s) with the latest mod_jk2 build (which I am compiling myself with VisualC++ 6 - as well as trying the precompiled binary - same behaviour). I tried to see if there were any other posts regarding this issue - could not find any! The first problem is thus: I have multiple virtual hosts configured in Apache2 and Tomcat5. Some of the hosts have multiple aliases. The confiugration option I am using specifies the ServerAlias entries in the Apache2 VirtualHost blocks where applicable. I have the matching Alias/ entries in the TC5 Host/ blocks. Then for each VirtualHost I have the following JK directive set to ensure that JSP requests are passed to TC from Apache: Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location This is the last thing before /VirtualHost When using the latest mod_jk (which is now a .so even on Windows it seems - instead of a DLL) the ServerName (main server URL) works perfectly. All JSP posts happily get processed by TC as expected. Problem arises when you access the site using one of the ServerAliases - the index.jsp is processed fine by TC5 - however ALL OTHER JSP requests are being processed by Apache (i.e. shows the source as text or asks you to download the .jsp file when the JSP is a HREF link!). This definitely did not happen with earlier version of JK2! Another problem is that sometimes - when there is a highly processor intensive JSP page being processed by TC - or a JSP page that has a LOT of HTML commin back - JK seems to lose it. The HTML is all messed up - or it does not finish loading - or it includes HTML from JSPs beikng hosted on the same server - but completely different Hosts!! This definitely seems to be a JK2/CoyoteConnector issue (although I did also experience it with JK1.2 on older versions of TC (3 and 4)) as when you go through Tomcat's HTTP1.1 connector on a different port the problems never crop up. Has anyone else experienced this? Any feedback/assistance would be greatly appreciated! Best regards, Carl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
I am having this strange message when starting my tomcat : Apache Tomcat/4.1.30 [Fatal Error] :2:1: Content is not allowed in prolog. Everything else works fine. I read that it was related to a SAXParseException, and it seems to be related to tomcat itself, and not any of my webapps (I removed them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Tomcat cannot unpack war files
Lars, Turn up debug and check the logs. If Tomcat runs into an error during the deploy, it can prevent it from being expanded. Are you using the HTML Manager to deploy? I had a jar conflict that stopped one of my jars from deploying. So I know it can happen. Doug - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 2:48 AM Subject: Re: Re: Tomcat cannot unpack war files Hi Jep, no folder exists. Lars, Does the folder name matching the war file name exist? If it has been created and not removed then Tomcat will not Deploy the war. Doug www.parsonstechnical.com - Original Message - From: Lars Ole Ruben Christoffersen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:35 AM Subject: Tomcat cannot unpack war files Hi Version Tomcat 4.1.18 OS: SUSE Linux kernel 4.2 Java: 1.4.2 unpackWars and autodeploy is set to true in server.xml BUT: Tomcat will not auto deploy or unpack the war files. Regards Lars Christoffersen - 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: Document
Please have a look at the attached file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
Raymond, I don't know the meaning, sorry. But: If I were in your shoes I would replace the server.xml and web.xml with default. And I would do it one at a time. If it fixes it then add your changes a section at a time and continue until you find it. Also a trick is to use a xml viewer like Internet Explorer to colorize the file and help you pick up on any format errors. Doug www.parsonstechnical.com - Original Message - From: STOCKHOLM, Raymond [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:03 AM Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. I am having this strange message when starting my tomcat : Apache Tomcat/4.1.30 [Fatal Error] :2:1: Content is not allowed in prolog. Everything else works fine. I read that it was related to a SAXParseException, and it seems to be related to tomcat itself, and not any of my webapps (I removed them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - 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: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
Thanks for the tip Doug, I will try to do like this, and I guess I will eventually find out what's wrong. Raymond -Message d'origine- De : Parsons Technical Services [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 mai 2004 09:19 À : Tomcat Users List Objet : Re: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. Raymond, I don't know the meaning, sorry. But: If I were in your shoes I would replace the server.xml and web.xml with default. And I would do it one at a time. If it fixes it then add your changes a section at a time and continue until you find it. Also a trick is to use a xml viewer like Internet Explorer to colorize the file and help you pick up on any format errors. Doug www.parsonstechnical.com - Original Message - From: STOCKHOLM, Raymond [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:03 AM Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. I am having this strange message when starting my tomcat : Apache Tomcat/4.1.30 [Fatal Error] :2:1: Content is not allowed in prolog. Everything else works fine. I read that it was related to a SAXParseException, and it seems to be related to tomcat itself, and not any of my webapps (I removed them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - 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: Jikes: -encoding is unsupported
Thanks Michael, Please! Either you can upload it to a server or you can send me the zip file. Really thanks a lot! My email address is [EMAIL PROTECTED] steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:40 PM Subject: Re: Jikes: -encoding is unsupported Hi As far as i can remember you have to compile jikes with encoding support yourself. I got a jikes.exe with encoding support here - i can upload it to a server if you would like. Note: It has 10 MB as .exe ( don?t know why it is that big :-)) ~ 3MB zipped greets, mike Steve Cheng wrote: Dear all, I get the follow error message when I am trying to use jikes to replace javac in tomcat 5.1. [javac] use: jikes [options] [EMAIL PROTECTED] file.java... [javac] For more help, try -help or -version. [javac] Error: The option -encoding is unsupported in this build. Could anyone give me some hints about it? OS: MS Windown 2000 server Tomcat version: 5.1.18 Jikes Version: 1.20 JDKVersion : 1.4.1 web.xml segment: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet CATALINA_OPS: -Dbuild.compiler.emacs=true steve - 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]
Event Listener not initialising
Hi all, I'm using Tomcat 5.0.19 and I'm trying to implement an application listener class but I'm getting the following error when I restart Tomcat: 2004-05-04 17:21:49 StandardContext[/servlets-examples]ContextListener: contextInitialized() 2004-05-04 17:21:49 StandardContext[/servlets-examples]SessionListener: contextInitialized() 2004-05-04 17:21:51 StandardContext[/webscats]Error configuring application listener of class CorbaConnections.ApplicationEventListener java.lang.ClassNotFoundException: CorbaConnections.ApplicationEventListener My web.xml defines the listener class: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 !-- Define event listeners -- listener listener-classCorbaConnections.ApplicationEventListener/listener-class /listener !-- Define servlets -- etc Can anyone explain why my event listener is failing to initialise? Thanks Stuart. IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. Views expressed in this message are those of the individual sender, and are not necessarily the views of the RTA. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jikes: -encoding is unsupported
Hi As far as i can remember you have to compile jikes with encoding support yourself. I got a jikes.exe with encoding support here - i can upload it to a server if you would like. Note: It has 10 MB as .exe ( don?t know why it is that big :-)) ~ 3MB zipped greets, mike Steve Cheng wrote: Dear all, I get the follow error message when I am trying to use jikes to replace javac in tomcat 5.1. [javac] use: jikes [options] [EMAIL PROTECTED] file.java... [javac] For more help, try -help or -version. [javac] Error: The option -encoding is unsupported in this build. Could anyone give me some hints about it? OS: MS Windown 2000 server Tomcat version: 5.1.18 Jikes Version: 1.20 JDKVersion : 1.4.1 web.xml segment: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet CATALINA_OPS: -Dbuild.compiler.emacs=true steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jikes: -encoding is unsupported
Hi Here it is: http://vis.at/jikes.zip I packed it with javas 'jar' so there is a Manifest file in the zip - simply ignore it :-) greets, mike Steve Cheng wrote: Thanks Michael, Please! Either you can upload it to a server or you can send me the zip file. Really thanks a lot! My email address is [EMAIL PROTECTED] steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:40 PM Subject: Re: Jikes: -encoding is unsupported Hi As far as i can remember you have to compile jikes with encoding support yourself. I got a jikes.exe with encoding support here - i can upload it to a server if you would like. Note: It has 10 MB as .exe ( don?t know why it is that big :-)) ~ 3MB zipped greets, mike Steve Cheng wrote: Dear all, I get the follow error message when I am trying to use jikes to replace javac in tomcat 5.1. [javac] use: jikes [options] [EMAIL PROTECTED] file.java... [javac] For more help, try -help or -version. [javac] Error: The option -encoding is unsupported in this build. Could anyone give me some hints about it? OS: MS Windown 2000 server Tomcat version: 5.1.18 Jikes Version: 1.20 JDKVersion : 1.4.1 web.xml segment: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet CATALINA_OPS: -Dbuild.compiler.emacs=true steve - 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: Jikes: -encoding is unsupported
File received! Thanks steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:55 PM Subject: Re: Jikes: -encoding is unsupported Hi Here it is: http://vis.at/jikes.zip I packed it with javas 'jar' so there is a Manifest file in the zip - simply ignore it :-) greets, mike Steve Cheng wrote: Thanks Michael, Please! Either you can upload it to a server or you can send me the zip file. Really thanks a lot! My email address is [EMAIL PROTECTED] steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:40 PM Subject: Re: Jikes: -encoding is unsupported Hi As far as i can remember you have to compile jikes with encoding support yourself. I got a jikes.exe with encoding support here - i can upload it to a server if you would like. Note: It has 10 MB as .exe ( don?t know why it is that big :-)) ~ 3MB zipped greets, mike Steve Cheng wrote: Dear all, I get the follow error message when I am trying to use jikes to replace javac in tomcat 5.1. [javac] use: jikes [options] [EMAIL PROTECTED] file.java... [javac] For more help, try -help or -version. [javac] Error: The option -encoding is unsupported in this build. Could anyone give me some hints about it? OS: MS Windown 2000 server Tomcat version: 5.1.18 Jikes Version: 1.20 JDKVersion : 1.4.1 web.xml segment: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet CATALINA_OPS: -Dbuild.compiler.emacs=true steve - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jikes: -encoding is unsupported
No Problem, i hope it contains the encoding you need... I can´ t remember if you can specify which encodings you want when compiling and wether we choose all or only a few encodings. greets, mike Steve Cheng wrote: File received! Thanks steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:55 PM Subject: Re: Jikes: -encoding is unsupported Hi Here it is: http://vis.at/jikes.zip I packed it with javas 'jar' so there is a Manifest file in the zip - simply ignore it :-) greets, mike Steve Cheng wrote: Thanks Michael, Please! Either you can upload it to a server or you can send me the zip file. Really thanks a lot! My email address is [EMAIL PROTECTED] steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:40 PM Subject: Re: Jikes: -encoding is unsupported Hi As far as i can remember you have to compile jikes with encoding support yourself. I got a jikes.exe with encoding support here - i can upload it to a server if you would like. Note: It has 10 MB as .exe ( don?t know why it is that big :-)) ~ 3MB zipped greets, mike Steve Cheng wrote: Dear all, I get the follow error message when I am trying to use jikes to replace javac in tomcat 5.1. [javac] use: jikes [options] [EMAIL PROTECTED] file.java... [javac] For more help, try -help or -version. [javac] Error: The option -encoding is unsupported in this build. Could anyone give me some hints about it? OS: MS Windown 2000 server Tomcat version: 5.1.18 Jikes Version: 1.20 JDKVersion : 1.4.1 web.xml segment: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet CATALINA_OPS: -Dbuild.compiler.emacs=true steve - 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] - 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]
ping
Anyone getting these? Carl
RE: Jikes: -encoding is unsupported
File received -Original Message- From: Michael Mangeng [mailto:[EMAIL PROTECTED] Sent: 04 May 2004 10:12 To: Tomcat Users List Subject: Re: Jikes: -encoding is unsupported No Problem, i hope it contains the encoding you need... I can´ t remember if you can specify which encodings you want when compiling and wether we choose all or only a few encodings. greets, mike Steve Cheng wrote: File received! Thanks steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:55 PM Subject: Re: Jikes: -encoding is unsupported Hi Here it is: http://vis.at/jikes.zip I packed it with javas 'jar' so there is a Manifest file in the zip - simply ignore it :-) greets, mike Steve Cheng wrote: Thanks Michael, Please! Either you can upload it to a server or you can send me the zip file. Really thanks a lot! My email address is [EMAIL PROTECTED] steve - Original Message - From: Michael Mangeng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:40 PM Subject: Re: Jikes: -encoding is unsupported Hi As far as i can remember you have to compile jikes with encoding support yourself. I got a jikes.exe with encoding support here - i can upload it to a server if you would like. Note: It has 10 MB as .exe ( don?t know why it is that big :-)) ~ 3MB zipped greets, mike Steve Cheng wrote: Dear all, I get the follow error message when I am trying to use jikes to replace javac in tomcat 5.1. [javac] use: jikes [options] [EMAIL PROTECTED] file.java... [javac] For more help, try -help or -version. [javac] Error: The option -encoding is unsupported in this build. Could anyone give me some hints about it? OS: MS Windown 2000 server Tomcat version: 5.1.18 Jikes Version: 1.20 JDKVersion : 1.4.1 web.xml segment: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet CATALINA_OPS: -Dbuild.compiler.emacs=true steve - 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] - 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]
useBean action from JSP 1.2 to 2.0
Hi, In upgrading my webapp from using Tomcat 4 (JSP 1.2) to Tomcat 5 (JSP 2.0) I'm seeing some errors in some of the JSP pages. I have jsp actions like: jsp:useBean id=locale class=java.util.Locale scope=request/ where in the Java code prior to invoking the JSP I put the locale Locale object in the request e.g. request.setAttribute(locale, myLocale); This works fine under Tomcat 4 but now in Tomcat 5 it complains with some class instantiation exception. Is there something special I need to do? Also will it be backward compatible with JSP 1.2? It seems using the following scriplet does work: % Locale locale = request.getAttribute(locale) % but I would rather use the useBean syntax. Thanks, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
libtool problems when building mod_jk on Debian Sarge
I am trying to compile mod_jk on Debian Sarge but I am having trouble if I try to enable jni support. I am using the following to configure: ./configure --enable-EAPI --enable-jni --with-apxs=/usr/local/apache/bin/apxs Configure goes well...but when I run 'make' it fails with: libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [jk_jnicb.lo] Error 1 make[1]: Leaving directory `/root/new-cat/source/jakarta-tomcat-connectors-jk-1.2.5-src/jk/native/jni' make: *** [all-recursive] Error 1 Any ideas on how I can work around this problem? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.19 deploying war through manager give Unable to compile class for JSP exception
Hi, Tomcat is running on Redhat Linux and i start it manually also I'm using jdk 1.4.2. Has anyone else got any ideas why this might be happening? It also runs very slowly after the redeploy of the war? Are there any problems with commons-loggins versions and classloading in Tomcat 5.0.19, do need to use a particular version. Thanks for any help, Owen On Fri, 30 Apr 2004 09:28:15 -0500, Jacob Kjome [EMAIL PROTECTED] wrote: I bet you are running this on Windows as a service. I'm not sure what settings are provided for the service upon install of Tomcat using the .exe file because I never use it. I always just unzip the package and run the service.bat to install the service. Of course, the service.bat that comes with Tomcat doesn't add tools.jar to the classpath. Here's a modified service.bat that does (renamed to service.txt to avoid being removed by email servers). Jake Quoting Owen Fellows [EMAIL PROTECTED]: Hi, In the Manager I - I undeploy and existing war. - Then redeploy a new war but in the same context path. I use a xml file contaning the context and the war location. The war is extracted and the manager interface tells me that it is deployed and running (the logs seem to indicated it gets deployed twice as i see the debug information from my application scrolls past twice). In the host all the following are set to true - Auto Deploy: - Deploy On Startup: - Deploy XML: - Unpack WARs: In the web app itself the following are true (others false). - Cookies: - Cross Context: - Reloadable: - Use Naming: When i got to the app sometimes it compiles the jsps and runs really slow and some time i get this error. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415) org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) com.pokemonkiller.hibernate.HibernateFilter.doFilter(HibernateFilter.java:77) note The full stack trace of the root cause is available in the Tomcat logs. Apache Tomcat/5.0.19 Can anyone help or give me some clues to why this happens. After a restart the app is fine, (but that kind of defeats the point of hot deploying). Thanks, Owen - 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]
How to monitor hits on static web pages?
I built a website for selling maple syrup (http://www.diotte.ca) and now I would like to track how many users are coming on the site. When people goes to my dynamic pages it is easy to store all the information about the visitors but how can I do it from the first page that is static (index.html)? Does Tomcat have a configuration flag for this? Why I want to do that? I want to know the ratio (people who visit the products page / people who visit the first page). I don't use Apache as front end, I only use Tomcat 5.1.30. Thanks, Matrix - Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.
Re: How to monitor hits on static web pages?
I think this is probably slightly off topic, but I suggest getting some kind of webalizer software. You could do worse than do a google search for Analog which is flexible and well-used. Failing that google for words such as webalizer freeware logs website usage analysis GIYF! On Tue, 2004-05-04 at 13:17, Matrix wrote: I built a website for selling maple syrup (http://www.diotte.ca) and now I would like to track how many users are coming on the site. When people goes to my dynamic pages it is easy to store all the information about the visitors but how can I do it Thanks, Matrix - Lche-vitrine ou lche-cran ? Yahoo! Magasinage. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange Tomcat/JK2 load balancer issue???
Yesterday I put a new a context consisting of a few JSP, Beans and servlets into production on my TC5.019 being integrated with IIS using JK2.04 all of it running on a Windows 2000 machine. The result was that Tomcat refused display JSP located in another context letting the browser hang forever when requesting the pages. After Googling a bit around I tried to remove any reference to the load balander in my workers2.properties file at which point the pages would display again. Hitting the above mentioned pages using port 8080 worked just fine for what reason it seems to be the IIS integration being mucked up. I know this may sound kinda weird and would therefore like to ask whether anyone have had a similar experience? After removing the load balancer reference these have started to appear in my jk2.log file: [jk_channel_apr_socket.c (488)] channelApr.receive(): Error receiving message body -1 0 [jk_workerEnv.c (492)] workerEnv.processCallbacks() Error reading reply [jk_worker_ajp13.c (546)] ajp13.service() ajpGetReply recoverable error 12 They dont seem do to any harm but nevertheless I would like to get rid of them as well as understand why they appear? Best regard Thomas FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT
RE: Event Listener not initialising
Howdy, The compiled class files for your event listener should be under WEB-INF/lib (if jarred) or WEB-INF/classes (if unpacked). This is a simple ClassNotFoundException. Yoav Shapira Millennium Research Informatics -Original Message- From: BARBEY Stuart R [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:32 AM To: '[EMAIL PROTECTED]' Subject: Event Listener not initialising Hi all, I'm using Tomcat 5.0.19 and I'm trying to implement an application listener class but I'm getting the following error when I restart Tomcat: 2004-05-04 17:21:49 StandardContext[/servlets-examples]ContextListener: contextInitialized() 2004-05-04 17:21:49 StandardContext[/servlets-examples]SessionListener: contextInitialized() 2004-05-04 17:21:51 StandardContext[/webscats]Error configuring application listener of class CorbaConnections.ApplicationEventListener java.lang.ClassNotFoundException: CorbaConnections.ApplicationEventListener My web.xml defines the listener class: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 !-- Define event listeners -- listener listener-classCorbaConnections.ApplicationEventListener/listener-cla ss /listener !-- Define servlets -- etc Can anyone explain why my event listener is failing to initialise? Thanks Stuart. IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. Views expressed in this message are those of the individual sender, and are not necessarily the views of the RTA. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Filter Apache Axis ?
Hi, Why don't you ask on the Axis mailing list? Since you said your filter works fine in other webapps, it's clearly an Axis issue. Yoav Shapira Millennium Research Informatics -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 7:32 PM To: Tomcat Users List Subject: Re: Tomcat Filter Apache Axis ? Sorry, Axis' web.xml now recognised the filter\fliter pattern, but Axis still did not work properly. Rui On Tue, 4 May 2004, Rui Zhang wrote: Thanks. I did change it to 2.3 DTD, but it still doesn't work. Cheers, Rui Oxford Univ Computing Lab What's the XML doctype declaration for the Axis web.xml? Servlet filters were introduced in servlet spec 2.3. If your doctype declaration specifies 2.2 or earlier, the DTD won't recognize the filter (and related) tags. (Solution: specify the 2.3 DTD or 2.4 schema.) -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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Solution to authenticated webpages and forms
Actually I did some research and found that in authenticated pages tomcat sets something to not allow cache of forms. The other pages that aren't protected don't have this problem. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 6:31 PM To: Tomcat Users List Subject: Re: Need Solution to authenticated webpages and forms On Mon, May 03, 2004 at 05:43:03PM -0400, Pleasant, Tracy wrote: : The form that I am using has a lot of drop down boxes (basic numbers : which I created functions with javascript). However, if the user hits : submit and comes to a confirmation page then they will have to go back : to the form and they wont' be able to, all the data will be lost... : unless I create some kind of back button but not sure how to handle : that with the javascript population of the drop down since javascript : and jsp runs on client/server two different places. Essentially, you're looking for a (browser-neutral) way to maintain form input values between page clicks, especially for users clicking the back button. Is that correct? If so: 1/ Use session variables to hold the data. 2/ The Struts framework does a lot of this for you, at the expense of the learning curve. It's a toss-up between that, and designing your own framework for this purpose. 3/ This question isn't really a Tomcat issue. A general Java (servlets, JSP) forum may have more answers for you. -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: Need Solution to authenticated webpages and forms
I think I may have found a solution to the problem. If I works I'll post here. -Original Message- From: Jonathan Wright [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 8:58 PM To: Tomcat Users List Subject: Re: Need Solution to authenticated webpages and forms I'm not 100% sure this is going to help you much but it may be worthy of consideration if you're going to be implementing this kind of thing often. Have you looked at the Jakarta STRUTS framework? There's a whole lot of time-saving functionality built in, especially with regard to forms: validation, repopulation of form fields etc. In your case you could store the values the client enters in a bean. Store the bean in the client's session and have the JSP page with your form check for the existence of the bean attribute when its invoked. As a work around to the client clicking the browsers back button add some meta tags to prevent the page from being cached. Jonathan. - Original Message - From: Pleasant, Tracy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 9:43 AM Subject: Need Solution to authenticated webpages and forms I was able to set up basic authentication through tomcat for a directory my webapps/myapp directory contains file that are open for everyone my webapps/myapp/admin directory contrains protected pages When I use forms in the webapps/myapp directory, hitting the back button on the browser(internet explorer) after submit saves the users data. However, when I use a form in the webapps/myapp/admin directory, hitting back button does not save anything. I tried it with a very simple form form method=post action=test2.jsp input type=text input type=submit value=Go /form and it didn't work. The form that I am using has a lot of drop down boxes (basic numbers which I created functions with javascript). However, if the user hits submit and comes to a confirmation page then they will have to go back to the form and they wont' be able to, all the data will be lost... unless I create some kind of back button but not sure how to handle that with the javascript population of the drop down since javascript and jsp runs on client/server two different places. Any solutions for this type of thing? I opened a bug, but was pointed to another bug and asked to ask this on the group emails The other bug said to do this but I don't know where this stuff is suppose to go. Should it be in the webapps/myapp/admin section??? Should I call it admin.xml ? I tried: Context path=/admin docBase=admin Valve className=org.apache.catalina.authenticator.FormAuthenticator disableProxyCaching=false / /Context but that didn't seem to work at all.. Please help because.. I'm also a newbie so please don't speak to complicated.. - 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: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
This usually means that there's character content before the root element in a document SAX is trying to parse. Make sure you haven't accidentally deleted any comment delimiting characters as you modified files. Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 2:03 AM To: Tomcat Users List Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. I am having this strange message when starting my tomcat : Apache Tomcat/4.1.30 [Fatal Error] :2:1: Content is not allowed in prolog. Everything else works fine. I read that it was related to a SAXParseException, and it seems to be related to tomcat itself, and not any of my webapps (I removed them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - 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: How to monitor hits on static web pages?
Use access logs and any host of log files parsers. There are free ones and $$$. Some have had luck using Webtrends for this type of thing. Others prefer embedding javascript into their pages and using an ASP model. This allows real times stats from a third party provider. Such services that do this are Omniture and Hitbox. -Tim Matrix wrote: I built a website for selling maple syrup (http://www.diotte.ca) and now I would like to track how many users are coming on the site. When people goes to my dynamic pages it is easy to store all the information about the visitors but how can I do it from the first page that is static (index.html)? Does Tomcat have a configuration flag for this? Why I want to do that? I want to know the ratio (people who visit the products page / people who visit the first page). I don't use Apache as front end, I only use Tomcat 5.1.30. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ¿how configure tomcat to auto startup in linux?
See http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links It has some links for setting up tomcat on Linux. Some of those links discuss starting tomcat on boot. -Tim Ing. Enrique de la Barrera Perez wrote: Hello Tomcat users ¡¡¡ ¿could somebody tell when to find documentation to configure tomcat to auto startup in linux? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: useBean action from JSP 1.2 to 2.0
The class attribute passed into jsp:useBean *must* have a public no-arg constructor. -Tim Jason Novotny wrote: Hi, In upgrading my webapp from using Tomcat 4 (JSP 1.2) to Tomcat 5 (JSP 2.0) I'm seeing some errors in some of the JSP pages. I have jsp actions like: jsp:useBean id=locale class=java.util.Locale scope=request/ where in the Java code prior to invoking the JSP I put the locale Locale object in the request e.g. request.setAttribute(locale, myLocale); This works fine under Tomcat 4 but now in Tomcat 5 it complains with some class instantiation exception. Is there something special I need to do? Also will it be backward compatible with JSP 1.2? It seems using the following scriplet does work: % Locale locale = request.getAttribute(locale) % but I would rather use the useBean syntax. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: useBean action from JSP 1.2 to 2.0
Hmm... so is that new in JSP 2.0? I thought the expected behavior was to first pull it out of the request and fail only if it can't find it and it has no-arg constructor or is interface or abstract. Thanks, Jason Tim Funk wrote: The class attribute passed into jsp:useBean *must* have a public no-arg constructor. -Tim Jason Novotny wrote: Hi, In upgrading my webapp from using Tomcat 4 (JSP 1.2) to Tomcat 5 (JSP 2.0) I'm seeing some errors in some of the JSP pages. I have jsp actions like: jsp:useBean id=locale class=java.util.Locale scope=request/ where in the Java code prior to invoking the JSP I put the locale Locale object in the request e.g. request.setAttribute(locale, myLocale); This works fine under Tomcat 4 but now in Tomcat 5 it complains with some class instantiation exception. Is there something special I need to do? Also will it be backward compatible with JSP 1.2? It seems using the following scriplet does work: % Locale locale = request.getAttribute(locale) % but I would rather use the useBean syntax. - 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]
Problem closing connection w/pagination
I have a fairly simple tomcat 5.19 app, that queries a db, stores the results in a bean, and forwards the request to a result jsp. I use pagination with a pooled connection. I get my my datasource connection in the bean. If I try to close my connection after the first query and try to page back or forward I lose my connection. If I dont close the connection, everything works fine until I run out of pooled connections! ANY IDEAS? TIA Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
Re: useBean action from JSP 1.2 to 2.0
http://issues.apache.org/bugzilla/show_bug.cgi?id=26444 -Tim Jason Novotny wrote: Hmm... so is that new in JSP 2.0? I thought the expected behavior was to first pull it out of the request and fail only if it can't find it and it has no-arg constructor or is interface or abstract. Thanks, Jason Tim Funk wrote: The class attribute passed into jsp:useBean *must* have a public no-arg constructor. -Tim Jason Novotny wrote: Hi, In upgrading my webapp from using Tomcat 4 (JSP 1.2) to Tomcat 5 (JSP 2.0) I'm seeing some errors in some of the JSP pages. I have jsp actions like: jsp:useBean id=locale class=java.util.Locale scope=request/ where in the Java code prior to invoking the JSP I put the locale Locale object in the request e.g. request.setAttribute(locale, myLocale); This works fine under Tomcat 4 but now in Tomcat 5 it complains with some class instantiation exception. Is there something special I need to do? Also will it be backward compatible with JSP 1.2? It seems using the following scriplet does work: % Locale locale = request.getAttribute(locale) % but I would rather use the useBean syntax. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
Thanks for your reply. I am examining thoroughly the different xml files used by tomcat, but haven't found anything wrong yet. I'll keep searching... -Message d'origine- De : Benjamin Armintor [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 mai 2004 15:20 À : Tomcat Users List Objet : RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. This usually means that there's character content before the root element in a document SAX is trying to parse. Make sure you haven't accidentally deleted any comment delimiting characters as you modified files. Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 2:03 AM To: Tomcat Users List Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. I am having this strange message when starting my tomcat : Apache Tomcat/4.1.30 [Fatal Error] :2:1: Content is not allowed in prolog. Everything else works fine. I read that it was related to a SAXParseException, and it seems to be related to tomcat itself, and not any of my webapps (I removed them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - 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: How to monitor hits on static web pages?
Hello, If I understood, I believe a Servlet Filter would do the job... You'd just have to make sure the pattern doesn't leave out anything you'd want to monitor / include anything you don't want to monitor. HTH. Freddy. -Mensaje original- De: Matrix [mailto:[EMAIL PROTECTED] Enviado el: martes, 04 de mayo de 2004 14:18 Para: [EMAIL PROTECTED] Asunto: How to monitor hits on static web pages? I built a website for selling maple syrup (http://www.diotte.ca) and now I would like to track how many users are coming on the site. When people goes to my dynamic pages it is easy to store all the information about the visitors but how can I do it from the first page that is static (index.html)? Does Tomcat have a configuration flag for this? Why I want to do that? I want to know the ratio (people who visit the products page / people who visit the first page). I don't use Apache as front end, I only use Tomcat 5.1.30. Thanks, Matrix - Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Solution to authenticated webpages and forms
Found solution: In the $CATALINA_HOME/conf/Catalina/LOCALHOST Directory put XML file containing Context path=/myapp docBase=myapp Valve className=org.apache.catalina.authenticator.BasicAuthenticator disableProxyCaching=false / /Context -Original Message- From: Jonathan Wright [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 8:58 PM To: Tomcat Users List Subject: Re: Need Solution to authenticated webpages and forms I'm not 100% sure this is going to help you much but it may be worthy of consideration if you're going to be implementing this kind of thing often. Have you looked at the Jakarta STRUTS framework? There's a whole lot of time-saving functionality built in, especially with regard to forms: validation, repopulation of form fields etc. In your case you could store the values the client enters in a bean. Store the bean in the client's session and have the JSP page with your form check for the existence of the bean attribute when its invoked. As a work around to the client clicking the browsers back button add some meta tags to prevent the page from being cached. Jonathan. - Original Message - From: Pleasant, Tracy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 9:43 AM Subject: Need Solution to authenticated webpages and forms I was able to set up basic authentication through tomcat for a directory my webapps/myapp directory contains file that are open for everyone my webapps/myapp/admin directory contrains protected pages When I use forms in the webapps/myapp directory, hitting the back button on the browser(internet explorer) after submit saves the users data. However, when I use a form in the webapps/myapp/admin directory, hitting back button does not save anything. I tried it with a very simple form form method=post action=test2.jsp input type=text input type=submit value=Go /form and it didn't work. The form that I am using has a lot of drop down boxes (basic numbers which I created functions with javascript). However, if the user hits submit and comes to a confirmation page then they will have to go back to the form and they wont' be able to, all the data will be lost... unless I create some kind of back button but not sure how to handle that with the javascript population of the drop down since javascript and jsp runs on client/server two different places. Any solutions for this type of thing? I opened a bug, but was pointed to another bug and asked to ask this on the group emails The other bug said to do this but I don't know where this stuff is suppose to go. Should it be in the webapps/myapp/admin section??? Should I call it admin.xml ? I tried: Context path=/admin docBase=admin Valve className=org.apache.catalina.authenticator.FormAuthenticator disableProxyCaching=false / /Context but that didn't seem to work at all.. Please help because.. I'm also a newbie so please don't speak to complicated.. - 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]
FileReader- file not found
Hi., I'm using FileReader class to access by file as follows, protected static Properties getPTProperties() throws Exception ... fr = new FileReader(CustomProp.ini); In Tomcat I'm getting error like, java.lang.Exception::(The system cannot find the file specified) actually in Jrun this same code is working well. I dont know where should i keep my properties file in tomcat. I have tried in Tomcat bin,common/lib ,web-inf/lib and classes folders. any suggestion? Thanks., MALAI
RE: FileReader- file not found
Hi, Don't use a FileReader. Get the URL to the file via getServletContext().getResource(), or an InputStream via getServletContext().getResourceAsStream(). Then you can wrap the InputStream in whatever reader you want. Your FileReader approach is failing because it depends on the definition of the current working directory, which is different from server to server and invocation to invocation potentially. Yoav Shapira Millennium Research Informatics -Original Message- From: Malai [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 10:01 AM To: Tomcat Users List Subject: FileReader- file not found Hi., I'm using FileReader class to access by file as follows, protected static Properties getPTProperties() throws Exception ... fr = new FileReader(CustomProp.ini); In Tomcat I'm getting error like, java.lang.Exception::(The system cannot find the file specified) actually in Jrun this same code is working well. I dont know where should i keep my properties file in tomcat. I have tried in Tomcat bin,common/lib ,web-inf/lib and classes folders. any suggestion? Thanks., MALAI This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with manager app
Shane, In this application, Tomcat is the sole server running on the machine. I have Apache running on another machine to serve basic web pages, but the two are not connected at all. The Apache/web/server listens on port 80, while the Tomcat/servlet/server listens on 443 (https). That separation keeps things clean and simple. I went this route about 2 years ago after load testing showed the Apache server was using significant CPU cycles (when both were on the same machine). So, whether for good or bad, Tomcat is solely responsible for it's fate. Cheers, -Richard I am by no means a network configuration specialist, so take what I say with a grain of salt :) You havn't mentioned how Tomcat is accessed from the internet, such as do you have a Apache or IIS, server acting as a proxy/redirector to tomcat, or whether tomcat itself is internet facing. If you have a separate web server infront of tomcat, then the web server only needs to be configured with the URI's to pass through to tomcat for your web application AND NOT specify those URIs for the manager app. That way you can access the manager app from the internal network by directly going to tomcat, but the external internet users will never be able to access it, because no path exists to it for them. If however you tomcat is internet facing (not an option I would recommend) then I wouldn't know how you should properly deal with that. At least have a good password :) Regards, Shane -Orig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
useBean and jspc problems under Tomcat 5.0.21
Hello, I have problem with jspc and useBean under Tomcat 5.0.21 I code jspc target into my build.xml which works good under Tomcat 4 but not under Tomcat 5. There is my ant target : target name=compile_with_jspc depends=prepare_with_jspc description=Compile Java sources antcall target=compile_javabeans/ !-- JSP precompilation -- taskdef classname=org.apache.jasper.JspC name=jasper2 classpath refid=compile.classpath/ /taskdef jasper2 validateXml=false verbose=99 package=com.lc.jspc uriroot=${web.home} webXmlFragment=${build.home}/WEB-INF/generated_web.xml outputDir=${build.home}/WEB-INF/src/com/lc/jspc / javac srcdir=${build.home}/WEB-INF/src destdir=${build.home}/WEB-INF/classes/ debug=${compile.debug} deprecation=${compile.deprecation} optimize=${compile.optimize} include name=**/*.java/ classpath refid=compile.classpath/ /javac delete dir=${build.home}/WEB-INF/src/ loadfile property=webinc.xml srcFile=${build.home}/WEB-INF/generated_web.xml/ copy file=${build.home}/WEB-INF/webtoken.xml tofile=${build.home}/WEB-INF/web-full.xml filterset filter token=WEB_JSP_XML value=${webinc.xml}/ /filterset /copy delete file=${build.home}/WEB-INF/generated_web.xml/ delete file=${build.home}/WEB-INF/webtoken.xml/ move file=${build.home}/WEB-INF/web-full.xml tofile=${build.home}/WEB-INF/web.xml/ /target There is the source : ... jsp:useBean id=barreNav scope=request class=com.lc.beans.basic.BarreNavigation / ... the BarreNavigation have of course a no-arg constructor as you said. There is the exception : org.apache.jasper.JasperException org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141) org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1229) etc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with manager app
Doug, I checked both the admin web.xml and the manager web.xml, and I do have a valve in them, restricting access to localhost plus the internal web. It is entirely possible that I am mistaken - what I thought was external access was in fact a router being intelligent. I will have to test more to see if there is a real external connection. Thanks, -Richard Richard, Use a remote address valve. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html Set it up for allow and the IP ranges you want to get in. Doug www.parsonstechnical.com - Original Message - From: Richard S. Huntrods [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:41 AM Subject: Help with manager app I have a rather urgent problem. I have been using tomcat for several years now, and normally weather the upgrades with some few problems, but nothing serious - until now. My problem - in the old Tomcat, I used the manager application to monitor the number of users accessing the system. In the old version, I had it set up so that external requests could NOT see the manager, ever. Now, under the new Tomcat, the manager app has changed. Today I also noticed that it is also available to the internet. How do I restrict access to the manager application to the local network - i.e. how do I turn off internet access to the manager app? Thanks in advance, -Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4x, configuring for XSLT or XSQL
i am trying to run some Oracle .xsql pages. I have the xslt jar files, but am not sure how to add them to the servlet engine so that Tomcat can find them when it processes an .xsql file. Any help would be much appreciated. software system is as follows: windows 2000 java jdk 1.4 jakarta-tomcat-4.1.27-LE-jdk14.exe apache_2.0.48-win32-x86-no_ssl.msi jk2 connector oracle jdbc driver 9.x class path for Java set in workers2.properties file as follows: [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=C:/Tomcat41/bin/tomcat-jni.jar;C:/Tomcat41/server/lib/commons-logging.jar;E:/oracle/ora92/lib/xsu12.jar;E:/oracle/ora92/lib/xmlparserv2.jar;E:/oracle/ora92/lib/oraclexsql.jar;E:/oracle/ora92/xdk/admin OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xms64M OPT=-Xmx64M OPT=-Duser.language=en OPT=-Duser.region=US #OPT=-Djava.compiler=NONE disabled=0 however, xsql pages are still not processed, but rather, when run, the source code is merely echoed to the screen. also, i do not know where or how to map the file extension .xsql to the jar file or class -paul.
Re: ¿how configure tomcat to auto startup in =?iso-8859-1?q?linux??=
To make it automatically startup on boot in linux, setup a link in /etc/init.d/rc3.d. To do this, make your tomcat startup script live at /etc/init.d/tomcat. Then run insserv tomcat or ln -s /etc/init.d/tomcat /etc/init.d/rc3.d/tomcat as the root user. There are several other methods, but that should work for you. Joey - Original Message - From: Tim Funk [EMAIL PROTECTED] Date: Tue, 04 May 2004 09:25:03 -0400 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: ¿how configure tomcat to auto startup in linux? See http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links It has some links for setting up tomcat on Linux. Some of those links discuss starting tomcat on boot. -Tim Ing. Enrique de la Barrera Perez wrote: Hello Tomcat users ¡¡¡ ¿could somebody tell when to find documentation to configure tomcat to auto startup in linux? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Get your free Verizonmail at www.verizonmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK AJP Connectors
Greetings all. I would appreciate some advise on an issue I am experiencing. The problem is as follows: Firstly, lets set the stage: Server: Windows 2000 Server 1GB RAM Tomcat 5.0.19 Apache 2.0.46 mod_jk2 My configurations are: 40 VirtualHosts in Apache with the matching 40 Tomcat Hosts with 1 Context per Tomcat host. Each Apache VirtualHost uses the JkUriSet to map JSP and relevant servlets through to an AJP1.3 worker in Tomcat. Now, the problem is that periodically the sites stop responding due to the AJP Threadpool reaching its maximum limit. Now I could put the maxThread attribute up and still use one AJP connector accross all sites - but as additional sites (Hosts) get added to the server I would need to increase this (periodically). Now - the other option I have is to add a new AJP connector/worker for EACH site (host). This however could cause too many concurrent connections to be allowed and thus increase the memory requirement for the server (which is not a major problem). I am unsure (hence this post). Essentially I am trying to figure out a good balance for this problem. Can anyone tell me how JK2 works from a connection level. I know that it uses a pool - but how does this actually function. If I have 40 virtual hosts that use the same worker/connector when are the connections established, and how long do they stay open for? I did a netstat on my server and found over 167 established connections to port 8009 (the AJP Connector port). Do they close? Well, this does not seem to happening as they server does fall over when the maximum connection limit is reached. My AJP/1.3 connector looks as follows in my server.xml: Connector port=8009 protocol=AJP/1.3 maxPostSize=0 maxThreads=500 minSpareThreads=20 acceptCount=30 / Do the maxThreads and minSpareThreads and acceptCount work for the AJP/1.3 Connector? In the TC docs they are not included there? Maybe I am just confused. Any assistance here would be greatly appreciated! Best regards, Carl
Re: useBean and jspc problems under Tomcat 5.0.21
From Tim's mail, it looks like it's vendor specific, and for optimization reasons you can no longer do this-- which I think stinks, but oh well. Frankly, I wish Jakarta projetcs could be more consistent. In Pluto for example they focus on correctness and not on optimzations, but now in Tomcat I see it's the other way around :-( Jason hicham abassi wrote: Hello, I have problem with jspc and useBean under Tomcat 5.0.21 I code jspc target into my build.xml which works good under Tomcat 4 but not under Tomcat 5. There is my ant target : target name=compile_with_jspc depends=prepare_with_jspc description=Compile Java sources antcall target=compile_javabeans/ !-- JSP precompilation -- taskdef classname=org.apache.jasper.JspC name=jasper2 classpath refid=compile.classpath/ /taskdef jasper2 validateXml=false verbose=99 package=com.lc.jspc uriroot=${web.home} webXmlFragment=${build.home}/WEB-INF/generated_web.xml outputDir=${build.home}/WEB-INF/src/com/lc/jspc / javac srcdir=${build.home}/WEB-INF/src destdir=${build.home}/WEB-INF/classes/ debug=${compile.debug} deprecation=${compile.deprecation} optimize=${compile.optimize} include name=**/*.java/ classpath refid=compile.classpath/ /javac delete dir=${build.home}/WEB-INF/src/ loadfile property=webinc.xml srcFile=${build.home}/WEB-INF/generated_web.xml/ copy file=${build.home}/WEB-INF/webtoken.xml tofile=${build.home}/WEB-INF/web-full.xml filterset filter token=WEB_JSP_XML value=${webinc.xml}/ /filterset /copy delete file=${build.home}/WEB-INF/generated_web.xml/ delete file=${build.home}/WEB-INF/webtoken.xml/ move file=${build.home}/WEB-INF/web-full.xml tofile=${build.home}/WEB-INF/web.xml/ /target There is the source : ... jsp:useBean id=barreNav scope=request class=com.lc.beans.basic.BarreNavigation / ... the BarreNavigation have of course a no-arg constructor as you said. There is the exception : org.apache.jasper.JasperException org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141) org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1229) etc - 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 4x, configuring for XSLT or XSQL
i have made some changes, with a positive result, namely, i am getting an error message instead of the mere echoeing of source code. It looks like there is still an issue of Tomcat finding the xsql jar files. how do i add the oracle xsql jar files to tomcat such that tomcat knows where to find them??? i have specified these xsql jar files in 3 places so far, 1-o/s classpath 2-workers2.properties file where java instance parameters defined 3-have physically copied them into [tomcat_home]\common\lib , which is also where the jdbc driver jar files are what i have done is as follows, and the error message is provided as well: 1) adding following to workers2.properties Apache configuration file: [uri:/*.xsql] this suppose to forward .xsql files received by Apache, to Tomcat 2) adding following to web.xml file for ROOT web app application, servlet servlet-nameoracle-xsql-servlet/servlet-name servlet-classoracle.xml.xsql.XSQLServlet/servlet-class /servlet servlet-mapping servlet-nameoracle-xsql-servlet/servlet-name url-pattern *.xsql /url-pattern /servlet-mapping this looks to me like it is associating the .xsql file type with the .jar class 3)---Tomcat error page: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance ... root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet - Original Message - From: Paul [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 10:46 AM Subject: Tomcat 4x, configuring for XSLT or XSQL i am trying to run some Oracle .xsql pages. I have the xslt jar files, but am not sure how to add them to the servlet engine so that Tomcat can find them when it processes an .xsql file. Any help would be much appreciated. software system is as follows: windows 2000 java jdk 1.4 jakarta-tomcat-4.1.27-LE-jdk14.exe apache_2.0.48-win32-x86-no_ssl.msi jk2 connector oracle jdbc driver 9.x class path for Java set in workers2.properties file as follows: [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=C:/Tomcat41/bin/tomcat-jni.jar;C:/Tomcat41/server/lib/ commons-logging.jar;E:/oracle/ora92/lib/xsu12.jar;E:/oracle/ora92/lib/xmlpar serv2.jar;E:/oracle/ora92/lib/oraclexsql.jar;E:/oracle/ora92/xdk/admin OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xms64M OPT=-Xmx64M OPT=-Duser.language=en OPT=-Duser.region=US #OPT=-Djava.compiler=NONE disabled=0 however, xsql pages are still not processed, but rather, when run, the source code is merely echoed to the screen. also, i do not know where or how to map the file extension .xsql to the jar file or class -paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
STOCKHOLM, Raymond wrote: Thanks for the tip Doug, I will try to do like this, and I guess I will eventually find out what's wrong. Raymond -Message d'origine- De : Parsons Technical Services [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 mai 2004 09:19 À : Tomcat Users List Objet : Re: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. Raymond, I don't know the meaning, sorry. But: If I were in your shoes I would replace the server.xml and web.xml with default. And I would do it one at a time. If it fixes it then add your changes a section at a time and continue until you find it. Also a trick is to use a xml viewer like Internet Explorer to colorize the file and help you pick up on any format errors. Doug www.parsonstechnical.com - Original Message - From: STOCKHOLM, Raymond [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:03 AM Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. I am having this strange message when starting my tomcat : Apache Tomcat/4.1.30 [Fatal Error] :2:1: Content is not allowed in prolog. Everything else works fine. I read that it was related to a SAXParseException, and it seems to be related to tomcat itself, and not any of my webapps (I removed them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - 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] This is an error in your xml file. Sometimes I get the error when I accidentally hit a key in the top of my file and put a character outside of my xml. Just go to the top of the file and start looking for characters outside of the tags. Hope that helps. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ping
Carl Olivier wrote: Anyone getting these? Carl PONG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_JK2 not sure if correctly setup!
Is it normal to have alot of errors in the Apache error log such as below. Everything seems to work fine but not sure why I am getting so many errors: //Apache Error Log Output [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in scoreboard [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving message body -1 11 [Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error reading reply [Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable error 12 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod_JK2 not sure if correctly setup!
The actual content of your workers2.properties and jk2.properties file would be helpful to us, don't you think? -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:01 PM To: [EMAIL PROTECTED] Subject: Mod_JK2 not sure if correctly setup! Is it normal to have alot of errors in the Apache error log such as below. Everything seems to work fine but not sure why I am getting so many errors: //Apache Error Log Output [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in scoreboard [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving message body -1 11 [Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error reading reply [Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable error 12 - 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]
How to logout using container managed security
Hi, I am using Tomcat managed security where I am using JAASRealm. I have implemented a LoginModule ... using which I can login easily. But how to logout ... doing session.invalidate() was what I thought would do the trick. It did ... BUT ... after having logged out it is impossible to login the way I want to login. Actually, I set up some attributes in the session after a successfull login. Everything goes fine upto authentication. But the moment I try to setup the attributes in the session I get a LoginException because I try to add attributes into a session already invalidated What is the way to logout ? How can I tell Tomcat to perform the logout procedure from the LoginModule I implemented rather than doing a session.invalidate() ??? Thanks regards, -- Gagan
¿how to use tomcat.sh for starting Tomcat automatically at boot time?
Hello Tomcat users. I have tried different ways to configure my linux to startup tomcat at boot time automatically without results. In the Tomcat setup documentation thats ships with the installation i can see this: (The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d) I am using redhat 9, tomcat 5, jdk 1.4.2. and my tomcat runns very well, just that i need to start/stop mannually ¿anybody there have been in a similar situation than mine? ¿could somebody help me on what should a do to achieve this? Regards ebarrera
How to wrap request/response in Tomcat valve?
Hi there, How can I wrap request/response captured in a Tomcat valve before passing it on? In tomcat 4.1, the wrapper classes (including RequestWrapper, HttpRequestWrapper, etc...) are all deprecated... Or is it impossible? Many thanks, Rui Oxford Univ Computing Lab - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_JK2 not sure if correctly setup!
Yes of course: //WORKERS2.PROPERTIES # Use only for debugging [logger] level=WARN # Shared memory handling. Needs to be set. [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 tomcatId=localhost:8009 # Define the ajp13 worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Define the status worker [status:status] info=Status worker for displaying runtime information # Map the status page url [uri:/jk2-status/*] group=status:status //JK2.PROPERTIES # Set the desired handler list handler.list=request,container,channelSocket # Override the default port for the socketChannel channelSocket.port=8009 channelSocket.address=127.0.0.1 - Original Message - From: Yang Xiao [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:07 PM Subject: RE: Mod_JK2 not sure if correctly setup! The actual content of your workers2.properties and jk2.properties file would be helpful to us, don't you think? -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:01 PM To: [EMAIL PROTECTED] Subject: Mod_JK2 not sure if correctly setup! Is it normal to have alot of errors in the Apache error log such as below. Everything seems to work fine but not sure why I am getting so many errors: //Apache Error Log Output [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in scoreboard [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving message body -1 11 [Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error reading reply [Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable error 12 - 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]
secureCookie parameter for Tomcat 5.0.19?
Hello configuration gurus, I recently upgraded to Tomcat 5.0.19, and I wonder if there is a solution to this problem yet. The problem is that in the Tomcat 4 (and apparently Tomcat 5) series, tomcat forces it so that if a session starts under https, then the session cookie is FORCED to be secure. I understand that this is to protect people from having hijacked sessions as a general case. However, there are some of us that manage this on our own (sending our own secure cookie that we use to make sure https pages aren't hijacked), and we would like our session cookie to be available to http AND https, as we move back and forth through those pages depending on the sensitivity of the content. If the session is created under http, then it is available to http and https. The problem only happens when the session is created under https. And, unfortunately, my app has quite a few places where the session NEEDS to be created under https, but needs to be available to http and https pages. If this secureCookie option is not in Tomcat 5, does anyone else have a solution? In the past, I've had to recompile the AJP mod_jk code after commenting out the following lines where it creates the session cookie: if (hreq.isSecure()) cookie.setSecure(true); I know that others have also asked about this, and I'm hoping there's a better solution than having to comment out those lines and recompile the code every time there is a Tomcat update. Any help is appreciated. Thank you, -Raiden Johnson -- Forwarded message -- Date: Mon, 25 Nov 2002 17:23:27 -0800 (PST) Subject: Is there a secureCookie type of paramater for Tomcat 4.1.12? Hello, Tomcat 3.3.2 has a secureCookie paramater that restores the old behavior of not making the sessionId cookie a secure cookie if it was created under https. Is there such a parameter in 4.1.12? I know there has been a thread debating the reasons as to why a session that is created under https is not available to http pages. However, I have an application that was designed for the old spec, in which a session was available to both http and https pages, regardless of which protocol the session was created under. I have avoided the security problem of hijacked sessions by making sure that sensitive pages are ALWAYS require https, and I drop a secure cookie of my own when someone logs in (the login page is under https of course), so that even if someone hijacks the http pages, they cannot hijack the https pages without passing back that cookie (whose contents I store in the session for verification). However, since upgrading to 4.1.12, I have realized that my application can no longer function, because I rely on people creating a session under https... and then accessing non-sensitive pages under http. But, in 4.1.12, the session is not available to subsequently accessed http pages... and I really don't want to start encrypting these non-sensitive pages. (But, I do want the user logged in before they can access these pages.) Does something like the secureCookie parameter exist in 4.1.12? Thanks, Raiden - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time?
Ing. Enrique de la Barrera Perez wrote: Hello Tomcat users. I have tried different ways to configure my linux to startup tomcat at boot time automatically without results. In the Tomcat setup documentation thats ships with the installation i can see this: (The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d) I am using redhat 9, tomcat 5, jdk 1.4.2. and my tomcat runns very well, just that i need to start/stop mannually ¿anybody there have been in a similar situation than mine? ¿could somebody help me on what should a do to achieve this? Regards ebarrera I'm not using RH Linux now but off the top of my head I seem to remember there is a tool that allows you to register services and control startup/shutdown options. If you're familiar with Windows OS it looks pretty much like the Services manager. Sorry if it's not much of a help but at least gives you a hint. --JM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ¿how to use tomcat.sh for starting Tomcat automatically at boot time?
Maybe this will help: http://www.raibledesigns.com/tomcat/boot-howto.html Matt -Original Message- From: Joao Medeiros [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 12:15 PM To: Tomcat Users List Subject: Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time? Ing. Enrique de la Barrera Perez wrote: Hello Tomcat users. I have tried different ways to configure my linux to startup tomcat at boot time automatically without results. In the Tomcat setup documentation thats ships with the installation i can see this: (The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d) I am using redhat 9, tomcat 5, jdk 1.4.2. and my tomcat runns very well, just that i need to start/stop mannually ¿anybody there have been in a similar situation than mine? ¿could somebody help me on what should a do to achieve this? Regards ebarrera I'm not using RH Linux now but off the top of my head I seem to remember there is a tool that allows you to register services and control startup/shutdown options. If you're familiar with Windows OS it looks pretty much like the Services manager. Sorry if it's not much of a help but at least gives you a hint. --JM - 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]
how to make Java Class use db pool
I have a db connection pool. If I put java code in JSP, the java code can use the pool. But when I write a seperate java class in tomcat/webapps/ROOT/web-inf/class/devTrack, jsp uses this class: devTrack.useDB.useDB dbWorker = new devTrack.useDB.useDB(); retdata = dbWorker.getRow(select * from myTable where id=2, 3, true); the getRow should return a row. But it gets null. No any exception in Tomcat monitor, log, and browser. the JSP file is in tomcat/webapps/ROOT/zuo. My system windows 2000, Apache 2.0.49, Tomcat 5.0.19 Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time?
Hi, I have this script : #!/bin/bash start() { /usr/local/tomcat/bin/startup.sh } stop() { /usr/local/tomcat/bin/shutdown.sh } It is called tomcat. It is placed in /etc/rc.d/init.d It is chmod 755 it is chown root:root In /etc/rc.d/rc3.d I did : ln -s ../init.d/tomcat S50tomcat ln -s ../init.d/tomcat K50tomcat At my machine tomcat is installed at : /usr/local/tomcat It works for me. I have Redhat Fedora. Kind Regards Werner On May 4, 2004, at 8:32 PM, Matt Raible wrote: Maybe this will help: http://www.raibledesigns.com/tomcat/boot-howto.html Matt -Original Message- From: Joao Medeiros [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 12:15 PM To: Tomcat Users List Subject: Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time? Ing. Enrique de la Barrera Perez wrote: Hello Tomcat users. I have tried different ways to configure my linux to startup tomcat at boot time automatically without results. In the Tomcat setup documentation thats ships with the installation i can see this: (The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d) I am using redhat 9, tomcat 5, jdk 1.4.2. and my tomcat runns very well, just that i need to start/stop mannually ¿anybody there have been in a similar situation than mine? ¿could somebody help me on what should a do to achieve this? Regards ebarrera I'm not using RH Linux now but off the top of my head I seem to remember there is a tool that allows you to register services and control startup/shutdown options. If you're familiar with Windows OS it looks pretty much like the Services manager. Sorry if it's not much of a help but at least gives you a hint. --JM - 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] Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Crashes with this is catalina.out
We are using: jakarta-tomcat-connectors-jk2-2.0.2-src jakarta-tomcat-5.0.19 httpd-2.0.48 linux 2.4.20 jrockit-j2sdk1.4.2_03 Every once in a while our website will completely crash and the only thing I can find in the logs is in the catalina.out. It says: Fatal error: Could not suspend thread (pid = PID#) Where PID# is usually some process ID. This causes all Tomcat processes to die except 1 and then our website stops responding. This is totally seperate from the last problem I posted btw. __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time?
What command are you using to start and stop it manually? From your post it appears that you are running jsvc. Is this correct? Let me know and I will walk you through what to do. If you get it going in the mean time post to the list. From a prior post you said you are running on port 80. I had the same issues that you have. Sorry that I did not follow through earlier as I thought you had figured it out. The steps are lengthy but simple, so be patient as it will take a little time to write them up. Doug - Original Message - From: Ing. Enrique de la Barrera Perez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:09 PM Subject: ¿how to use tomcat.sh for starting Tomcat automatically at boot time? Hello Tomcat users. I have tried different ways to configure my linux to startup tomcat at boot time automatically without results. In the Tomcat setup documentation thats ships with the installation i can see this: (The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d) I am using redhat 9, tomcat 5, jdk 1.4.2. and my tomcat runns very well, just that i need to start/stop mannually ¿anybody there have been in a similar situation than mine? ¿could somebody help me on what should a do to achieve this? Regards ebarrera - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Crashes with this is catalina.out
Hi, Try the Sun JDK. Problems like these have been reported with JRockit on linux, though I don't have time to search the archives/google for them at the moment. Yoav Shapira Millennium Research Informatics -Original Message- From: John Farmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:37 PM To: [EMAIL PROTECTED] Subject: Tomcat Crashes with this is catalina.out We are using: jakarta-tomcat-connectors-jk2-2.0.2-src jakarta-tomcat-5.0.19 httpd-2.0.48 linux 2.4.20 jrockit-j2sdk1.4.2_03 Every once in a while our website will completely crash and the only thing I can find in the logs is in the catalina.out. It says: Fatal error: Could not suspend thread (pid = PID#) Where PID# is usually some process ID. This causes all Tomcat processes to die except 1 and then our website stops responding. This is totally seperate from the last problem I posted btw. __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB connection pool problem
Hi friends, Thanks for your previous feedback. After adding several logging statements in my code, I have found that connection object is null. But dataSource object is not null. What can be reason for it?? Here is how I use it in my code-- public LinkedList testFunction(){ LinkedList ll = null; Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); // return ll; } } try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); } else{ ll.add(Inside 1st try. Connection object is not nul); con = dataSource.getConnection(); stmt = con.createStatement(); } finally{ if(con == null){ ll.add(Connection object is null); // return ll; } --Here is the output that I can see on my jsp page, where I try to print out the linklist obtained from the function above. elements of link list read from database are -[dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside 1st try. Connection object found to be null, Connection object is null] Thanks. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:34 PM To: Tomcat Users List Subject: RE: DB connection pool problem I have just created a pool -- I hope it is really a pool. I used jtds jdbc driver to MS SQL Server on Windows. You may find some thing similar. Holp it helps. 1) bellow is the text in tomcat\conf\server.xml GlobalNamingResources Resource name=jdbc/DirectSQL auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/DirectSQL parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value255/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueuser1/value /parameter parameter namepassword/name valuepasswd1/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://serverName:1433/value /parameter /ResourceParams ... 2) bellow is the text in tomcat\conf\Catalina\localhost\ROOT.XML --I create this file by myself Context path= docBase=ROOT debug=0 privileged=true !-- Link to the user database using dbc:jtds:sqlserver -- ResourceLink name=jdbc/DirectSQL global=jdbc/DirectSQL type=javax.sql.DataSource/ /Context This name is used in Java code. global is the name in xml file. they can be different. 3) my test jsp file is in \tomcat\webapps\ROOT\zuo\ Context ctx = new InitialContext(); if (ctx == null) { throw new Exception(Boom - No Context); } DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/DirectSQL); if (ds != null) con = ds.getConnection(); if (con != null){ str = select * from myTable; pStateSearch = con.prepareStatement(str, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY ); rs = pStateSearch.executeQuery(); That's all. -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:10 PM To: Tomcat Users List Subject: DB connection pool problem Hi, I am also having the problem with the connection pools. Since I am writing an application first time by using connection pools, I created a test application DBTest. I edited my server.xml and web.xml (of my
RE: Tomcat 5 on port 80
Are you trying to start Tomcat as another user other than root (on port 80). To use port 80 Tomcat will be started as root...to get around this you can start Tomcat as root as have it switch over to another user. I did so by using the Commons Daemon (http://jakarta.apache.org/commons/daemon/) -Original Message- From: Mario Moroni [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 9:32 AM To: Tomcat Users List Subject: Tomcat 5 on port 80 Hi all, I'm trying to install tomcat 5 on a freeBSD box. I'd like to use it as a server, and I don't want to install apache (if it is possible). Now I've my tomcat running on port 8180 (Coyote), and no apache installed. I'd like to move coyote to port 80 so I can use tomcat as standalone web server but the log sys that port 80 is not allowed can anybody help me? Thanks. Mario -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=d=29-4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB connection pool problem
Ok, I'll bite. what's the code in ? by chance, do you have something like: con= null; ? You should also clean up that first try block. Remove the if/else block that esentially will *always* report the connection as being null (since you haven't assigned it up to that point). -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 2:52 PM To: Daxin Zuo; Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: DB connection pool problem Hi friends, Thanks for your previous feedback. After adding several logging statements in my code, I have found that connection object is null. But dataSource object is not null. What can be reason for it?? Here is how I use it in my code-- public LinkedList testFunction(){ LinkedList ll = null; Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); // return ll; } } try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); } else{ ll.add(Inside 1st try. Connection object is not nul); con = dataSource.getConnection(); stmt = con.createStatement(); } finally{ if(con == null){ ll.add(Connection object is null); // return ll; } --Here is the output that I can see on my jsp page, where I try to print out the linklist obtained from the function above. elements of link list read from database are -[dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside 1st try. Connection object found to be null, Connection object is null] Thanks. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:34 PM To: Tomcat Users List Subject: RE: DB connection pool problem I have just created a pool -- I hope it is really a pool. I used jtds jdbc driver to MS SQL Server on Windows. You may find some thing similar. Holp it helps. 1) bellow is the text in tomcat\conf\server.xml GlobalNamingResources Resource name=jdbc/DirectSQL auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/DirectSQL parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value255/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueuser1/value /parameter parameter namepassword/name valuepasswd1/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://serverName:1433/value /parameter /ResourceParams ... 2) bellow is the text in tomcat\conf\Catalina\localhost\ROOT.XML --I create this file by myself Context path= docBase=ROOT debug=0 privileged=true !-- Link to the user database using dbc:jtds:sqlserver -- ResourceLink name=jdbc/DirectSQL global=jdbc/DirectSQL type=javax.sql.DataSource/ /Context This name is used in Java code. global is the name in xml file. they can be different. 3) my test jsp file is in \tomcat\webapps\ROOT\zuo\ Context ctx = new InitialContext(); if (ctx == null) { throw new Exception(Boom - No Context); } DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/DirectSQL); if (ds != null) con = ds.getConnection(); if (con != null){ str =
running JAXP parser within JSP pages
how to set up JAXP to run with Tomcat? would it not be configured as a resource, the same way Java mail or a JDBC driver would be configured? -paul.
RE: Tomcat Crashes with this is catalina.out
Tried the sun JDK it is way too slow. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Try the Sun JDK. Problems like these have been reported with JRockit on linux, though I don't have time to search the archives/google for them at the moment. Yoav Shapira Millennium Research Informatics -Original Message- From: John Farmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:37 PM To: [EMAIL PROTECTED] Subject: Tomcat Crashes with this is catalina.out We are using: jakarta-tomcat-connectors-jk2-2.0.2-src jakarta-tomcat-5.0.19 httpd-2.0.48 linux 2.4.20 jrockit-j2sdk1.4.2_03 Every once in a while our website will completely crash and the only thing I can find in the logs is in the catalina.out. It says: Fatal error: Could not suspend thread (pid = PID#) Where PID# is usually some process ID. This causes all Tomcat processes to die except 1 and then our website stops responding. This is totally seperate from the last problem I posted btw. __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS and Tomcat Security
Can I get user role ( request.isUserInRole() ) from a user authenticated by IIS ( windows integrated authentication (NTLM) ). I already get user name, but I dont know how to configure the file 'tomcat-users.xml' to set the user's roles. Using only IIS, it's easy. I only need to configure the directory permissions, and then, IIS allow or deny access to my web pages. Any help? Thanks Maurício Kanada
virtual drive
what is a virtual drive, and how do you configure/create one of those? -paul.
RE: Mod_JK2 not sure if correctly setup!
Hi, Everything looks fine, do you have the AJP connector defined in the server.xml file? yang -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:46 PM To: Tomcat Users List Subject: Re: Mod_JK2 not sure if correctly setup! Yes of course: //WORKERS2.PROPERTIES # Use only for debugging [logger] level=WARN # Shared memory handling. Needs to be set. [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 tomcatId=localhost:8009 # Define the ajp13 worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Define the status worker [status:status] info=Status worker for displaying runtime information # Map the status page url [uri:/jk2-status/*] group=status:status //JK2.PROPERTIES # Set the desired handler list handler.list=request,container,channelSocket # Override the default port for the socketChannel channelSocket.port=8009 channelSocket.address=127.0.0.1 - Original Message - From: Yang Xiao [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:07 PM Subject: RE: Mod_JK2 not sure if correctly setup! The actual content of your workers2.properties and jk2.properties file would be helpful to us, don't you think? -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:01 PM To: [EMAIL PROTECTED] Subject: Mod_JK2 not sure if correctly setup! Is it normal to have alot of errors in the Apache error log such as below. Everything seems to work fine but not sure why I am getting so many errors: //Apache Error Log Output [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in scoreboard [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving message body -1 11 [Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error reading reply [Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable error 12 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DB connection pool problem
I'm a bit confused on your code: try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); Why are you doing a Class.forName call after getting a datasource object? I think you're mixing incompatible database access methods. Try doing dataSource.getConnection() after getting a valid datasource instead. You'll be happier with the result. Take a look at the javadocs for javax.sql.DataSource for more info. --David Arora, Avinash wrote: Hi friends, Thanks for your previous feedback. After adding several logging statements in my code, I have found that connection object is null. But dataSource object is not null. What can be reason for it?? Here is how I use it in my code-- public LinkedList testFunction(){ LinkedList ll = null; Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); // return ll; } } try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); } else{ ll.add(Inside 1st try. Connection object is not nul); con = dataSource.getConnection(); stmt = con.createStatement(); } finally{ if(con == null){ ll.add(Connection object is null); // return ll; } --Here is the output that I can see on my jsp page, where I try to print out the linklist obtained from the function above. elements of link list read from database are -[dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside 1st try. Connection object found to be null, Connection object is null] Thanks. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:34 PM To: Tomcat Users List Subject: RE: DB connection pool problem I have just created a pool -- I hope it is really a pool. I used jtds jdbc driver to MS SQL Server on Windows. You may find some thing similar. Holp it helps. 1) bellow is the text in tomcat\conf\server.xml GlobalNamingResources Resource name=jdbc/DirectSQL auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/DirectSQL parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value255/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueuser1/value /parameter parameter namepassword/name valuepasswd1/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://serverName:1433/value /parameter /ResourceParams ... 2) bellow is the text in tomcat\conf\Catalina\localhost\ROOT.XML --I create this file by myself Context path= docBase=ROOT debug=0 privileged=true !-- Link to the user database using dbc:jtds:sqlserver -- ResourceLink name=jdbc/DirectSQL global=jdbc/DirectSQL type=javax.sql.DataSource/ /Context This name is used in Java code. global is the name in xml file. they can be different. 3) my test jsp file is in \tomcat\webapps\ROOT\zuo\ Context ctx = new InitialContext(); if (ctx == null) { throw new Exception(Boom - No Context); } DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/DirectSQL); if (ds != null) con = ds.getConnection(); if (con != null){ str = select * from myTable; pStateSearch = con.prepareStatement(str,
Re: virtual drive
Paul wrote: what is a virtual drive, and how do you configure/create one of those? -paul. Only one I know is from Microsoft and allows you to mount ISO's. Not sure if it is available for download now. --JM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Long running JDBC session
Hello, I have a servlet that connects to an Oracle database (9i) using classes12.jar JDBC file. In it, there´s a loop that executes a quick query 3000 times, and that´s running for long 10 minutes !! Is there any way I can optimize this connection (JDBC parameters maybe) for such case ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange error
What could cause this error in Tomcat 5.0.19. 2004-05-04 14:21:02 StandardContext[/manager]HTMLManager: ManagerServlet.reload[/ReportViewer] java.lang.ThreadDeath at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1270) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1230) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145) at org.apache.log4j.Category.forcedLog(Category.java:372) at org.apache.log4j.Category.log(Category.java:864) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:192) at org.apache.catalina.session.StandardManager.start(StandardManager.java: 706) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4226) at org.apache.catalina.core.StandardContext.reload(StandardContext.java: 2990) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java: 1019) at org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet .java:524) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet. java:147) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi lter.java:131) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:233) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:587) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :184) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:732) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 619) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:688) at java.lang.Thread.run(Thread.java:552) It happens when I place an object in the session and then click reload from the webapp manager. Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtual hosting
I have tomcat 4.1 and apache 2 working together using jk2, but I want to be able to type in www.mycompany.com in the browser and have it run the jsp in ${tomcat home}/webapps/mycompany Do I need to enable virtual host in http.conf and server.xml? Do I need to add anything to workers2.properties? Any help would be appreciated. Am I missing something Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Long running JDBC session
This is really not a Tomcat question. Are you using connection pooling? If so which one? How many connections? Why are you not using the latest jar from oracle? You should download the 9i driver. What is your code for how you obtain connection and how you create statements. Are you using PreparedStatements? Nathan On May 4, 2004, at 2:31 PM, Carlos-Roberto Queiroz wrote: Hello, I have a servlet that connects to an Oracle database (9i) using classes12.jar JDBC file. In it, there´s a loop that executes a quick query 3000 times, and that´s running for long 10 minutes !! Is there any way I can optimize this connection (JDBC parameters maybe) for such case ? Thanks - 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: DB connection pool problem
Sorry about the last post. It's been a looonnng day and I didn't read it very well :-(. From what I see, you're comparing conn to null before even attempting to get a connection. Try comparing dataSource to null instead of conn in the second catch block. Then do dataSource.getConnection() if dataSource != null. --David David Smith wrote: I'm a bit confused on your code: try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); Why are you doing a Class.forName call after getting a datasource object? I think you're mixing incompatible database access methods. Try doing dataSource.getConnection() after getting a valid datasource instead. You'll be happier with the result. Take a look at the javadocs for javax.sql.DataSource for more info. --David Arora, Avinash wrote: Hi friends, Thanks for your previous feedback. After adding several logging statements in my code, I have found that connection object is null. But dataSource object is not null. What can be reason for it?? Here is how I use it in my code-- public LinkedList testFunction(){ LinkedList ll = null;Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); }finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); // return ll; } } try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); } else{ ll.add(Inside 1st try. Connection object is not nul); con = dataSource.getConnection(); stmt = con.createStatement(); } finally{ if(con == null){ ll.add(Connection object is null); // return ll; } --Here is the output that I can see on my jsp page, where I try to print out the linklist obtained from the function above. elements of link list read from database are -[dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside 1st try. Connection object found to be null, Connection object is null] Thanks. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:34 PM To: Tomcat Users List Subject: RE: DB connection pool problem I have just created a pool -- I hope it is really a pool. I used jtds jdbc driver to MS SQL Server on Windows. You may find some thing similar. Holp it helps. 1) bellow is the text in tomcat\conf\server.xml GlobalNamingResources Resource name=jdbc/DirectSQL auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/DirectSQL parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value255/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueuser1/value /parameter parameter namepassword/name valuepasswd1/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://serverName:1433/value /parameter /ResourceParams ... 2) bellow is the text in tomcat\conf\Catalina\localhost\ROOT.XML --I create this file by myself Context path= docBase=ROOT debug=0 privileged=true !-- Link to the user database using dbc:jtds:sqlserver -- ResourceLink name=jdbc/DirectSQL global=jdbc/DirectSQL type=javax.sql.DataSource/ /Context This name is used in Java code. global is the name in xml file. they can be different. 3) my test jsp file is in \tomcat\webapps\ROOT\zuo\ Context ctx = new InitialContext(); if (ctx == null) { throw new Exception(Boom - No Context); }
Re: virtual hosting
you should be able to do it just using virtual hosts in httpd.conf. play around with it, you may add one section for mod_jk for each virtual host FIlip - Original Message - From: Charles Jordan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:31 PM Subject: virtual hosting I have tomcat 4.1 and apache 2 working together using jk2, but I want to be able to type in www.mycompany.com in the browser and have it run the jsp in ${tomcat home}/webapps/mycompany Do I need to enable virtual host in http.conf and server.xml? Do I need to add anything to workers2.properties? Any help would be appreciated. Am I missing something Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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: Long running JDBC session
Sorry, I sent the message to the wrong group. :P Nathan Maves [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] .COMcc: Subject: Re: Long running JDBC session 04/05/2004 05:33 PM Please respond to Tomcat Users List This is really not a Tomcat question. Are you using connection pooling? If so which one? How many connections? Why are you not using the latest jar from oracle? You should download the 9i driver. What is your code for how you obtain connection and how you create statements. Are you using PreparedStatements? Nathan On May 4, 2004, at 2:31 PM, Carlos-Roberto Queiroz wrote: Hello, I have a servlet that connects to an Oracle database (9i) using classes12.jar JDBC file. In it, there´s a loop that executes a quick query 3000 times, and that´s running for long 10 minutes !! Is there any way I can optimize this connection (JDBC parameters maybe) for such case ? Thanks - 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: Long running JDBC session
You could try writing your queries so fewer are done. 3000 quick queries is 3000 command parses + 3000 actual query executions. That's a lot of work for the database engine. Fewer queries (1 if possible) would drastically increase performance. --David Carlos-Roberto Queiroz wrote: Hello, I have a servlet that connects to an Oracle database (9i) using classes12.jar JDBC file. In it, there´s a loop that executes a quick query 3000 times, and that´s running for long 10 minutes !! Is there any way I can optimize this connection (JDBC parameters maybe) for such case ? Thanks - 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: Long running JDBC session
the 9i jdbc .jar drivers are named as follows: you can find them in a sub-directory of your Oracle9i rdbms ojdbc14.jar ocrs12.jar -paul. - Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:33 PM Subject: Re: Long running JDBC session This is really not a Tomcat question. Are you using connection pooling? If so which one? How many connections? Why are you not using the latest jar from oracle? You should download the 9i driver. What is your code for how you obtain connection and how you create statements. Are you using PreparedStatements? Nathan On May 4, 2004, at 2:31 PM, Carlos-Roberto Queiroz wrote: Hello, I have a servlet that connects to an Oracle database (9i) using classes12.jar JDBC file. In it, there´s a loop that executes a quick query 3000 times, and that´s running for long 10 minutes !! Is there any way I can optimize this connection (JDBC parameters maybe) for such case ? Thanks - 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 Crashes with this is catalina.out
Hi, Tried the sun JDK it is way too slow. Wow, how clear and unequivocal. Surely we must be dumb f***s who don't care about performance at all if we use the Sun JDK. Thanks for sharing. If you ever care to substantiate your remarks with benchmarks specific to your app that'd be interesting, and subject for another thread. Otherwise, good luck. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time?
no, i start/stop tomcat manually by $CATALINA_HOME/bin/startup.sh $CATALINA_HOME/bin/shutdown.sh ¿? - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 12:38 PM Subject: Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time? What command are you using to start and stop it manually? From your post it appears that you are running jsvc. Is this correct? Let me know and I will walk you through what to do. If you get it going in the mean time post to the list. From a prior post you said you are running on port 80. I had the same issues that you have. Sorry that I did not follow through earlier as I thought you had figured it out. The steps are lengthy but simple, so be patient as it will take a little time to write them up. Doug - Original Message - From: Ing. Enrique de la Barrera Perez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:09 PM Subject: ¿how to use tomcat.sh for starting Tomcat automatically at boot time? Hello Tomcat users. I have tried different ways to configure my linux to startup tomcat at boot time automatically without results. In the Tomcat setup documentation thats ships with the installation i can see this: (The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d) I am using redhat 9, tomcat 5, jdk 1.4.2. and my tomcat runns very well, just that i need to start/stop mannually ¿anybody there have been in a similar situation than mine? ¿could somebody help me on what should a do to achieve this? Regards ebarrera - 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]
virtual directory in Tomcat
Is this a valid tag within server.xml for Tomcat 4x or Tomcat 5x? virtual-directory virtual-path=/BTSdata real-path=D:\BTSdata /
Re: Tomcat Crashes with this is catalina.out
Surely we must be dumb f***s who don't having a rough day, arent we? :) Filip - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:46 PM Subject: RE: Tomcat Crashes with this is catalina.out Hi, Tried the sun JDK it is way too slow. Wow, how clear and unequivocal. Surely we must be dumb f***s who don't care about performance at all if we use the Sun JDK. Thanks for sharing. If you ever care to substantiate your remarks with benchmarks specific to your app that'd be interesting, and subject for another thread. Otherwise, good luck. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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 Crashes with this is catalina.out
Hi, having a rough day, arent we? :) Yeah ;) Getting better by the minute though. There's nothing like some venting... Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Read of HTTP Request POST parameters failed
I've got an intermittent error that's giving me a real headache. It happens at the first line of my servlet's doPost method (request.getParameter) and returns a java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length I've seen this mentioned several times in the archive, but I haven't seen any solutions. I'm thinking that the content length is getting bashed somehow. I'd like to be able to diagnose the problem, but I'm not sure where to look. Any thoughts about how to diagnose or deal with this gracefully would be most appreciated! Cindy Here's the basic info about my system... Tomcat 4.1.24 Apache 1.3.29 mod_jk RedHat Linux All of the errors have occured with IE 6.0, but that may just be a coincidence. Here is the stacktrace... java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length at org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java:685) at org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestBase.java:718) at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:171) at com.ca.balcy01.mpi.servlets.AppControllerServlet.doPost(AppControllerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.ca.balcy01.mpi.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 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.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Read of HTTP Request POST parameters failed
Hi, Does it happen with the latest stable tomcat 4.1 (4.1.30)? Please try that first, as there have been bug fixes in the connector. Yoav Shapira Millennium Research Informatics -Original Message- From: Cindy Ballreich [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 5:09 PM To: Tomcat Users List Subject: Read of HTTP Request POST parameters failed I've got an intermittent error that's giving me a real headache. It happens at the first line of my servlet's doPost method (request.getParameter) and returns a java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length I've seen this mentioned several times in the archive, but I haven't seen any solutions. I'm thinking that the content length is getting bashed somehow. I'd like to be able to diagnose the problem, but I'm not sure where to look. Any thoughts about how to diagnose or deal with this gracefully would be most appreciated! Cindy Here's the basic info about my system... Tomcat 4.1.24 Apache 1.3.29 mod_jk RedHat Linux All of the errors have occured with IE 6.0, but that may just be a coincidence. Here is the stacktrace... java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length at org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpReque stBa se.java:685) at org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestB ase. java:718) at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade. java :171) at com.ca.balcy01.mpi.servlets.AppControllerServlet.doPost(AppControllerSe rvle t.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at com.ca.balcy01.mpi.filters.SetCharacterEncodingFilter.doFilter(SetChara cter EncodingFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:50 9) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24 15) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve .java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:50 9) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:534)
Re: virtual hosting
Do you have the URL (www.mycompany.com) defined by a DNS server? You need a DNS to translate the URL to an IP address. If you are already on the net then two DNS servers will be required. The primary DNS should be provided by your ISP and you can manage your own secondary if you like for your internal network (local intranet). Virtual Hosting is normally used when you are attempting to server multiple web sites from a single web server. If this is not what you are trying to do then don't concern yourself with virtual hosting. In either case a DNS setup is required. Osensei [EMAIL PROTECTED] - Original Message - From: Charles Jordan To: [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:31 PM Subject: virtual hosting I have tomcat 4.1 and apache 2 working together using jk2, but I want to be able to type in www.mycompany.com in the browser and have it run the jsp in ${tomcat home}/webapps/mycompany Do I need to enable virtual host in http.conf and server.xml? Do I need to add anything to workers2.properties? Any help would be appreciated. Am I missing something Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Crashes with this is catalina.out
Sorry man I didnt think it was the right time or place to go into some kind of rant about the sun jdk. But here was what I was seeing with the sun jdk. When connecting straight to tomcat not using mod_jk. I would open up 6 of any type of browser on my desktop, all of them opening the same jsp page. I would begin refreshing each 1, one by one. I would notice that the first 4 would refresh, but any page after that would just sit and wait for the first 4 to finish. NO MATTER what the JSP page did. It didnt matter if the jsp page did or did not connect to the database. We had pages that did nothing but a bubble sort, still the same problem. But we didnt have any problems like that at all with jrockit. And jrockit has the jmeter tool to help me do better benchmarks. So my opinion is sun jdk is slow. You havent notice this problem with the sun jdk on linux? --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, having a rough day, arent we? :) Yeah ;) Getting better by the minute though. There's nothing like some venting... Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_JK2 not sure if correctly setup!
Yes, here is the start of the server.xml file... Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define the top level container in our container hierarchy -- Engine name=Tomcat-Apache-JK2 defaultHost=www.somesite.com debug=0 jvmRoute=localhost:8009 - Original Message - From: Yang Xiao [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:20 PM Subject: RE: Mod_JK2 not sure if correctly setup! Hi, Everything looks fine, do you have the AJP connector defined in the server.xml file? yang -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:46 PM To: Tomcat Users List Subject: Re: Mod_JK2 not sure if correctly setup! Yes of course: //WORKERS2.PROPERTIES # Use only for debugging [logger] level=WARN # Shared memory handling. Needs to be set. [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 tomcatId=localhost:8009 # Define the ajp13 worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Define the status worker [status:status] info=Status worker for displaying runtime information # Map the status page url [uri:/jk2-status/*] group=status:status //JK2.PROPERTIES # Set the desired handler list handler.list=request,container,channelSocket # Override the default port for the socketChannel channelSocket.port=8009 channelSocket.address=127.0.0.1 - Original Message - From: Yang Xiao [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:07 PM Subject: RE: Mod_JK2 not sure if correctly setup! The actual content of your workers2.properties and jk2.properties file would be helpful to us, don't you think? -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:01 PM To: [EMAIL PROTECTED] Subject: Mod_JK2 not sure if correctly setup! Is it normal to have alot of errors in the Apache error log such as below. Everything seems to work fine but not sure why I am getting so many errors: //Apache Error Log Output [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in scoreboard [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in scoreboard [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2 [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving message body -1 11
RE: DB connection pool problem
Sorry for creating the confusion. Actually I was seeing the connection object to be null for long time. But at last moment I made those silly changes to present it in a better way. Sorry about it. But now I printing the connection object and finding it to be null. I cannot understand, the reason for connection object to be null, even when datasource object is not null. Is it because that I am not able to connect to database? If yes what could be the reason. If I specify the attributes, using Direct JDBC by using Class.forName() and DriverManager.getConnection(), I can connect to data base and read all the values. But the problem comes when I use Connection pooling. Where shuld I look for correction?? -- Part of my code and JSP o/p - public LinkedList selectCP(){ LinkedList ll = new LinkedList(); Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); } } try{ ll.add(Inside try.); ll.add(con is); ll.add(con); if(con == null){ ll.add(Inside try. Connection object found to be null); ll.add(con); return ll; } else{ ll.add(Connection object inside else is); ll.add(con);} } } catch(SQLException e) { System.err.println(SQL EXCEPTION+e.getMessage()); ll.add(SQL Exception ); ll.add(e.getMessage()); } catch(Exception e) { System.err.println( class not found exception+e.getMessage()); ll.add(Exception generated:); ll.add(e.getMessage()); } finally{ if(con == null) ll.add(Connection object is null); } try{ stmt.close(); } catch(Exception e){} try{ rs.close(); } catch(Exception e){} try{ con.close(); } catch(Exception e){} return ll; } ---O/P-- --- I am pasting the ll obtained on browser-- [dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside try., con is, null, Inside try. Connection object found to be null, null, Connection object is null] -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:35 PM To: Tomcat Users List Subject: Re: DB connection pool problem Sorry about the last post. It's been a looonnng day and I didn't read it very well :-(. From what I see, you're comparing conn to null before even attempting to get a connection. Try comparing dataSource to null instead of conn in the second catch block. Then do dataSource.getConnection() if dataSource != null. --David David Smith wrote: I'm a bit confused on your code: try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); Why are you doing a Class.forName call after getting a datasource object? I think you're mixing incompatible database access methods. Try doing dataSource.getConnection() after getting a valid datasource instead. You'll be happier with the result. Take a look at the javadocs for javax.sql.DataSource for more info. --David Arora, Avinash wrote: Hi friends, Thanks for your previous feedback. After adding several logging statements in my code, I have found that connection object is null. But dataSource object is not null. What can be reason for it?? Here is how I use it in my code-- public LinkedList testFunction(){ LinkedList ll = null;Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext();
Re: useBean action from JSP 1.2 to 2.0
On 5/4/2004 5:26 PM, Jason Novotny wrote: Hi, In upgrading my webapp from using Tomcat 4 (JSP 1.2) to Tomcat 5 (JSP 2.0) I'm seeing some errors in some of the JSP pages. I have jsp actions like: jsp:useBean id=locale class=java.util.Locale scope=request/ where in the Java code prior to invoking the JSP I put the locale Locale object in the request e.g. request.setAttribute(locale, myLocale); This works fine under Tomcat 4 but now in Tomcat 5 it complains with some class instantiation exception. Is there something special I need to do? Also will it be backward compatible with JSP 1.2? It seems using the following scriplet does work: % Locale locale = request.getAttribute(locale) % but I would rather use the useBean syntax. Thanks, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] me i use %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % fmt:setLocale value=${sessionScope.locale} scope=session/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB connection pool problem
You have to add con = dataSource.getConnection(); after dataSource = (DataSource)ctx.lookup(jdbc/conversion); -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:54 PM To: David Smith; Tomcat Users List Subject: RE: DB connection pool problem Sorry for creating the confusion. Actually I was seeing the connection object to be null for long time. But at last moment I made those silly changes to present it in a better way. Sorry about it. But now I printing the connection object and finding it to be null. I cannot understand, the reason for connection object to be null, even when datasource object is not null. Is it because that I am not able to connect to database? If yes what could be the reason. If I specify the attributes, using Direct JDBC by using Class.forName() and DriverManager.getConnection(), I can connect to data base and read all the values. But the problem comes when I use Connection pooling. Where shuld I look for correction?? -- Part of my code and JSP o/p - public LinkedList selectCP(){ LinkedList ll = new LinkedList(); Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); } } try{ ll.add(Inside try.); ll.add(con is); ll.add(con); if(con == null){ ll.add(Inside try. Connection object found to be null); ll.add(con); return ll; } else{ ll.add(Connection object inside else is); ll.add(con);} } } catch(SQLException e) { System.err.println(SQL EXCEPTION+e.getMessage()); ll.add(SQL Exception ); ll.add(e.getMessage()); } catch(Exception e) { System.err.println( class not found exception+e.getMessage()); ll.add(Exception generated:); ll.add(e.getMessage()); } finally{ if(con == null) ll.add(Connection object is null); } try{ stmt.close(); } catch(Exception e){} try{ rs.close(); } catch(Exception e){} try{ con.close(); } catch(Exception e){} return ll; } ---O/P-- --- I am pasting the ll obtained on browser-- [dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside try., con is, null, Inside try. Connection object found to be null, null, Connection object is null] -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 1:35 PM To: Tomcat Users List Subject: Re: DB connection pool problem Sorry about the last post. It's been a looonnng day and I didn't read it very well :-(. From what I see, you're comparing conn to null before even attempting to get a connection. Try comparing dataSource to null instead of conn in the second catch block. Then do dataSource.getConnection() if dataSource != null. --David David Smith wrote: I'm a bit confused on your code: try{ // load the driver class file //Class.forName(com.mysql.jdbc.Driver).newInstance(); //establishing the connection if(con == null){ ll.add(Inside 1st try. Connection object found to be null); Why are you doing a Class.forName call after getting a datasource object? I think you're mixing incompatible database access methods. Try doing dataSource.getConnection() after getting a valid datasource instead. You'll be happier with the result. Take a look at the javadocs for javax.sql.DataSource for more info. --David Arora, Avinash wrote: Hi friends, Thanks for your previous feedback. After adding several logging statements in my code, I have found that connection object is null. But dataSource object is not null. What can be reason for it??
error sset
hello, I have some questions about error customisation. I want to change the look of 500 Error. (that is org.apache.jasper.JasperException) so, I want to redirect all strings to the new page. so, for example the 404 error is simple becouse we know that is Page Not Found but, the 500 Error can report errors like According to the TLD or the tag file, attribute operation is mandatory for tag sql how can I send that string (exception string) in the new page? Thanks, r_a_v_e_n - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
GateLock Virus Notification.
Dear GateLock user, GateLock has detected the WORM_NETSKY.C in your email attachment portmoney.exe sent to [EMAIL PROTECTED] at 2004/05/05 10:42. Since you have set GateLock to pass infected files, no action has been taken on the file. We recommend that you delete the attached infected file(s) to prevent the virus from spreading. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form method always a get.
I hope this is just a simple lack of understanding but when I submit a html form using any tomcat version greater than 406, the servlet always recieves it as a get. Even when explicitly setting the form method as a POST. Am I making some sort of oversight or coding error? Thank you, Adam __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form method always a get.
You're probably missing the closing quote after the method name: form method=post Rgds, Budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 12:52 PM To: Tomcat Users List Subject: Form method always a get. I hope this is just a simple lack of understanding but when I submit a html form using any tomcat version greater than 406, the servlet always recieves it as a get. Even when explicitly setting the form method as a POST. Am I making some sort of oversight or coding error? Thank you, Adam __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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: Form method always a get.
Thanks for answering. The following is what I'm trying to execute: body link rel=stylesheet href=include/styles.css type=text/css script language=JavaScript function preSubmit(thePage) { document.welcomeform.actionelement.value=thePage; document.welcomeform.submit(); } /script script language=JavaScript function newStudy(theURL) { window.open(theURL,'Docs','scrollbars=yes,resizable=yes,width=830,height=780'); } /script form method=POST name=welcomeform action=/tsr input type=hidden name=actionelement value=/ input type=hidden name=currpage value=empty/ table border=0 cellpadding=0 cellspacing=0 width=100% tr tdimg src=images/tsr_logo.gif width=170 height=61/td td align=left class=font18bTITLE/font/td /tr tr td colspan=2 background=images/gradient.gifimg src=images/gradient.gif width=100% height=4/td /tr tr td valign=top colspan=2 table align=center cellpadding=0 cellspacing=0 border=0 trtdbr/td /tr /table /td /tr /table table trtd class=font16b align=center colspan=2Welcome to TITLE application site./td/tr trtdbr/td/tr tr td class=element a href=javascript:newStudy('/tsr?actionelement=new')Submit a new study./a /td td class=elementPresents the form to submit a NEW study./td /tr trtd colspan=2br/td/tr tr td class=element colspan=2The following applications require you to login: /td /tr trtd colspan=2br/td/tr tr td class=elementa href=javascript:preSubmit('summary')Edit an existing study./a /td td class=elementEnter the TSR management application./td /tr /form /body Any sugestions welcome. A. --- Budi Kurniawan [EMAIL PROTECTED] wrote: You're probably missing the closing quote after the method name: form method=post Rgds, Budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 12:52 PM To: Tomcat Users List Subject: Form method always a get. I hope this is just a simple lack of understanding but when I submit a html form using any tomcat version greater than 406, the servlet always recieves it as a get. Even when explicitly setting the form method as a POST. Am I making some sort of oversight or coding error? Thank you, Adam __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form method always a get.
Try adding a Submit button to click to submit. If the method is post by submitting this way then there's something wrong with your JavaScript. Good luck. budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:03 PM To: Tomcat Users List Subject: RE: Form method always a get. Thanks for answering. The following is what I'm trying to execute: body link rel=stylesheet href=include/styles.css type=text/css script language=JavaScript function preSubmit(thePage) { document.welcomeform.actionelement.value=thePage; document.welcomeform.submit(); } /script script language=JavaScript function newStudy(theURL) { window.open(theURL,'Docs','scrollbars=yes,resizable=yes,width=830,height=780 '); } /script form method=POST name=welcomeform action=/tsr input type=hidden name=actionelement value=/ input type=hidden name=currpage value=empty/ table border=0 cellpadding=0 cellspacing=0 width=100% tr tdimg src=images/tsr_logo.gif width=170 height=61/td td align=left class=font18bTITLE/font/td /tr tr td colspan=2 background=images/gradient.gifimg src=images/gradient.gif width=100% height=4/td /tr tr td valign=top colspan=2 table align=center cellpadding=0 cellspacing=0 border=0 trtdbr/td /tr /table /td /tr /table table trtd class=font16b align=center colspan=2Welcome to TITLE application site./td/tr trtdbr/td/tr tr td class=element a href=javascript:newStudy('/tsr?actionelement=new')Submit a new study./a /td td class=elementPresents the form to submit a NEW study./td /tr trtd colspan=2br/td/tr tr td class=element colspan=2The following applications require you to login: /td /tr trtd colspan=2br/td/tr tr td class=elementa href=javascript:preSubmit('summary')Edit an existing study./a /td td class=elementEnter the TSR management application./td /tr /form /body Any sugestions welcome. A. --- Budi Kurniawan [EMAIL PROTECTED] wrote: You're probably missing the closing quote after the method name: form method=post Rgds, Budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 12:52 PM To: Tomcat Users List Subject: Form method always a get. I hope this is just a simple lack of understanding but when I submit a html form using any tomcat version greater than 406, the servlet always recieves it as a get. Even when explicitly setting the form method as a POST. Am I making some sort of oversight or coding error? Thank you, Adam __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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: Form method always a get.
Did that already with the same result. I do use netbeans... I don't know if that makes a difference. A. --- Budi Kurniawan [EMAIL PROTECTED] wrote: Try adding a Submit button to click to submit. If the method is post by submitting this way then there's something wrong with your JavaScript. Good luck. budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:03 PM To: Tomcat Users List Subject: RE: Form method always a get. Thanks for answering. The following is what I'm trying to execute: body link rel=stylesheet href=include/styles.css type=text/css script language=JavaScript function preSubmit(thePage) { document.welcomeform.actionelement.value=thePage; document.welcomeform.submit(); } /script script language=JavaScript function newStudy(theURL) { window.open(theURL,'Docs','scrollbars=yes,resizable=yes,width=830,height=780 '); } /script form method=POST name=welcomeform action=/tsr input type=hidden name=actionelement value=/ input type=hidden name=currpage value=empty/ table border=0 cellpadding=0 cellspacing=0 width=100% tr tdimg src=images/tsr_logo.gif width=170 height=61/td td align=left class=font18bTITLE/font/td /tr tr td colspan=2 background=images/gradient.gifimg src=images/gradient.gif width=100% height=4/td /tr tr td valign=top colspan=2 table align=center cellpadding=0 cellspacing=0 border=0 trtdbr/td /tr /table /td /tr /table table trtd class=font16b align=center colspan=2Welcome to TITLE application site./td/tr trtdbr/td/tr tr td class=element a href=javascript:newStudy('/tsr?actionelement=new')Submit a new study./a /td td class=elementPresents the form to submit a NEW study./td /tr trtd colspan=2br/td/tr tr td class=element colspan=2The following applications require you to login: /td /tr trtd colspan=2br/td/tr tr td class=elementa href=javascript:preSubmit('summary')Edit an existing study./a /td td class=elementEnter the TSR management application./td /tr /form /body Any sugestions welcome. A. --- Budi Kurniawan [EMAIL PROTECTED] wrote: You're probably missing the closing quote after the method name: form method=post Rgds, Budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 12:52 PM To: Tomcat Users List Subject: Form method always a get. I hope this is just a simple lack of understanding but when I submit a html form using any tomcat version greater than 406, the servlet always recieves it as a get. Even when explicitly setting the form method as a POST. Am I making some sort of oversight or coding error? Thank you, Adam __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]