SOLVED: Re: Jasper Compilation - Vol. 2 (continued from WebappPrecompilation using Ant and Jasper howto)
hi all, I've now found the solutions using some threads in this forum, but want to share the complete solution here: *) jspc-task: all *.jsp files in /jsp will be compiled into the /src directory *) merge-descriptors-task: /jsp/web-template.xml will be used for merging the temporary webinc.xml into the real web.xml place a @WEBINC@ into the web-template.xml between the end of the servlet and the start of the servlet-mapping section. *) now both will get compiled and put into the build-directory correctly. This means using the build.xml below you can do a compile, install and run scenario. ant compile ant install is all you have to do at the commandline. johannes !-- General purpose build script for web applications and web services, including enhanced support for deploying directly to a Tomcat 4 based server. This build script assumes that the source code of your web application is organized into the following subdirectories underneath the source code directory from which you execute the build script: docs Static documentation files to be copied to the docs subdirectory of your distribution. src Java source code (and associated resource files) to be compiled to the WEB-INF/classes subdirectory of your web applicaiton. web Static HTML, JSP, and other content (such as image files), including the WEB-INF subdirectory and its configuration file contents. $Id: build.xml.txt,v 1.7 2002/12/28 09:08:58 jfclere Exp $ -- !-- A project describes a set of targets that may be requested when Ant is executed. The default attribute defines the target which is executed if no specific target is requested, and the basedir attribute defines the current working directory from which Ant executes the requested task. This is normally set to the current working directory. -- project name=My Project default=compile basedir=. !-- = Property Definitions === -- !-- Each of the following properties are used in the build script. Values for these properties are set by the first place they are defined, from the following list: * Definitions on the ant command line (ant -Dfoo=bar compile). * Definitions from a build.properties file in the top level source directory of this application. * Definitions from a build.properties file in the developer's home directory. * Default definitions in this build.xml file. You will note below that property values can be composed based on the contents of previously defined properties. This is a powerful technique that helps you minimize the number of changes required when your development environment is modified. Note that property composition is allowed within build.properties files as well as in the build.xml script. -- property file=build.properties/ property file=${user.home}/build.properties/ !-- File and Directory Names -- !-- These properties generally define file and directory names (or paths) that affect where the build process stores its outputs. app.name Base name of this application, used to construct filenames and directories. Defaults to myapp. app.path Context path to which this application should be deployed (defaults to / plus the value of the app.name property). app.version Version number of this iteration of the application. build.home The directory into which the prepare and compile targets will generate their output. Defaults to build. catalina.homeThe directory in which you have installed a binary distribution of Tomcat 4. This will be used by the deploy target. dist.homeThe name of the base directory in which distribution files are created. Defaults to dist. manager.password The login password of a user that is assigned the manager role (so that he or she can execute commands via the /manager web application) manager.url The URL of the /manager web application on the Tomcat installation to which we will deploy web applications and web services. manager.username The login username of a user that is assigned the manager role (so that he or she can execute commands via the /manager web application) -- property name=app.version value=1.0.0.0/ property
Jasper Compilation with Ant including custom taglibs
hi there, I've used a taglib from the jstl/core-package and would like to compile it. If I try so using ant and a jspc-task, I get the following error: 2003-03-23 05:54:11 - ERROR-the file '\nodigsig.jsp' generated the following gen eral exception: org.apache.jasper.JasperException: This absolute uri (http://jav a.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC BUILD FAILED == I already tried to include the libraries as properties (external dependencies), but no success. Has anybody else tried to compile JSPs using custom taglibs? === nodigsig.jsp === %@ page language=java contentType=text/html % %@ taglib prefix=c uri = http://java.sun.com/jstl/core; % % System.out.println(executing scriptlet code); % html body Ihre Anfrage wurde gespeichert und wird in den nauml;chsten Tagen bearbeitet. /body /html build.xml (excerpt) target name=jspc taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${catalina.home}/server/lib include name=*.jar/ /fileset fileset dir=${catalina.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false uriroot=${basedir}/jsp webXmlFragment=${basedir}/webinc.xml outputDir=${basedir}/src / /target thx alot johannes
Fw: Jasper Compilation with Ant including custom taglibs
To make the picture more complete: it seems that the trouble the Jasper compiler doesn't find the /WEB-INF/web.xml file. But how can I tell it where to find it (simply creating it directly under my project directory didn't work)? If I include other custom taglibs with reference to e.g. /WEB-INF/forms.tld it doesn't find them as well. So the question is: How can I tell the Jasper Compiler where to find the /WEB-INF/web.xml or /WEB-INF/forms.tld. === My directory tree structure: === /web/WEB-INF/web.xml /web/WEB-INF/forms.tld === and here it the commandline of the ant-task === ant jspc Buildfile: build.xml jspc: 2003-03-23 06:11:23 - Internal Error: File /WEB-INF/web.xml not found 2003-03-23 06:11:23 - ERROR-the file '\digsig.jsp' generated the following gener al exception: org.apache.jasper.JasperException: This absolute uri (http://java. sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deploye d with this application [jasper2] Error in class org.apache.jasper.JspC BUILD FAILED file:F:/soap/esv/forms/build.xml:296: org.apache.jasper.JasperException: This ab solute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application - Forwarded by Johannes Fiala/Johannes Fiala on 23.03.2003 18:11 - Johannes Fiala/Johannes Fiala 23.03.2003 17:59 To Tomcat Users List [EMAIL PROTECTED] cc Subject Jasper Compilation with Ant including custom taglibs hi there, I've used a taglib from the jstl/core-package and would like to compile it. If I try so using ant and a jspc-task, I get the following error: 2003-03-23 05:54:11 - ERROR-the file '\nodigsig.jsp' generated the following gen eral exception: org.apache.jasper.JasperException: This absolute uri (http://jav a.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC BUILD FAILED == I already tried to include the libraries as properties (external dependencies), but no success. Has anybody else tried to compile JSPs using custom taglibs? === nodigsig.jsp === %@ page language=java contentType=text/html % %@ taglib prefix=c uri = http://java.sun.com/jstl/core; % % System.out.println(executing scriptlet code); % html body Ihre Anfrage wurde gespeichert und wird in den nauml;chsten Tagen bearbeitet. /body /html build.xml (excerpt) target name=jspc taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${catalina.home}/server/lib include name=*.jar/ /fileset fileset dir=${catalina.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false uriroot=${basedir}/jsp webXmlFragment=${basedir}/webinc.xml outputDir=${basedir}/src / /target thx alot johannes
RE: How much $$ to get Tomcat/J2SE installed?
Anything for Apache 1.3? I'm using WHM/CPanel, and they don't allow us to upgrade to Apache 2. Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 12:08 PM To: Tomcat Users List Subject: Re: How much $$ to get Tomcat/J2SE installed? You can do it for free. Complete HOWTO, step by step: http://www.johnturner.com/howto John On Fri, 21 Mar 2003 11:42:32 -0500, Chris Hale [EMAIL PROTECTED] wrote: All, Looking for some quick help here. Need to get this installed on my RH7.3 system with Apache and mod_ssl. My developer is doing some stuff with .jsp files and needs this support on the server. Anyone willing to do this for some quick cash? I tried to get it installed and got stumped pretty fast. Send me your credentials and a fixed price for doing this. The server is a hosted virtual private server. Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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]
Tomcat JMXServer
Hi, How do I get the reference of the JMXServer of the Tomcat 4.x series. I would like to register one of my MBeans to this server. Also I would like to know which class acts as the parser for the server.xml file and polpulates all the configuration details into memory.? TIA Bala At 07:19 AM 3/20/2003 +0100, Nikola Milutinovic wrote: B A L A J I wrote: Hi, I'm trying to extend Tomcat to get notified whenever a session is created or cleared. How is this possible in 4.1.18 version.? Any help will be appreciated as I'm new to Tomcat. Take a look at Listeners in Servlet 2.3 specification and in Tomcat, more specifically, SessionListener class. - 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 4.1.18, apache 2.0.43, mod_jk 2.0.43
It's interesting that you've tried Tomcat 4.1.24, I was going to try that this week. I've tried Sun's JDK 1.4.1_01 and 1.4.1_02, and it made no difference. Where do we go from here? -Original Message- From: Ivan F. Martinez [mailto:[EMAIL PROTECTED] Sent: 22 March 2003 03:03 To: Tomcat Users List Subject: Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43 On Fri, 21 Mar 2003 13:50:41 - Marion McKelvie [EMAIL PROTECTED] wrote: MM Ivan, MM MM Thanks for your reply. When you restart Apache, do the threads just build MM up again? Yes, tomcat gives a lot of messages like this : 512488 [Thread-73] INFO common.ChannelSocket - server has been restarted or reset this connection And it returns to work for some time again. Apparently tomcat or mod_jk does not close the connection after serving the request. MM If you can't see any difference between the two configurations, do you think MM there may be a difference between the libraries being used? I'm checked better, and the difference is : Case when works (USING 2 MACHINES): RedHat 8, Apache 2.0.40 RedHat 7.3 Tomcat 4.1.18 Case when I have problems RedHat 8, Apache 2.0.40 Tomcat 4.1.18 (SAME MACHINE) The 2 use the same SUN SDK 1.4.1-01 But I have tried today many combinations in the single machine : SUNSDK 1.4.1, IBM SDK 1.3, 1.3.1, 1.4. Apache 2.0.40 and 2.0.43 Tomcat 4.1.18 and 4.1.24 All configurations have the same problem. All machines have up to date , kernels from redhat. And all other updates. Last week I have made some tests with mod_jk2 with same problem. MM Marion MM MM -Original Message- MM From: Ivan F. Martinez [mailto:[EMAIL PROTECTED] MM Sent: 21 March 2003 12:59 MM To: Tomcat Users List MM Subject: Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43 MM MM MM MM On Thu, 20 Mar 2003 09:40:14 - MM Marion McKelvie [EMAIL PROTECTED] wrote: MM MM MM Hello again, MM MM MM MM Is anyone running with the combination of Tomcat 4.1.18, Apache 2.0.43 MM and MM MM mod_jk 2.0.43 on Redhat 8? MM MM MM MM I have one machine that works fine, and other with same problem as you. MM When you restart apache everything works again. MM MM I have tested with mod_jk and mod_jk2. MM MM I didn't find the difference between the two machines. MM MM MM Marion MM MM MM MM -Original Message- MM MM From: Marion McKelvie [mailto:[EMAIL PROTECTED] MM MM Sent: 19 March 2003 10:38 MM MM To: [EMAIL PROTECTED] MM MM Subject: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43 MM MM MM MM MM MM Hi, MM MM MM MM I have an installation using Tomcat 4.1.18, Apache 2.0.43 and mod_jk MM 2.0.43 MM MM running on Redhat 8, all installed from rpms as executables (no building MM MM from source). MM MM MM MM Everything works fine for a while until I get the following error in MM MM catalina.out MM MM MM MM 19-Mar-2003 10:00:20 org.apache.tomcat.util.log.CommonLogHandler log MM MM INFO: All threads are busy, waiting. Please increase maxThreads or check MM the MM MM servlet sttus75 75 MM MM MM MM I can get this error just by playing with the Tomcat examples for long MM MM enough (presumably after 75 activities). It's a bit like each thread is MM not MM MM being released after it's used. I have a comparable installation which MM runs MM MM without problems but it's using Tomcat 4.1.12 with Apache 1.3.22. MM MM MM MM Server.xml is pretty much as installed by default (I've commented out MM the MM MM 8080 connector) so it's using the Coyote connector: MM MM MM MM Connector className=org.apache.coyote.tomcat4.CoyoteConnector MM MMport=8009 minProcessors=5 maxProcessors=75 MM MMenableLookups=true redirectPort=8443 MM MMacceptCount=10 debug=0 connectionTimeout=0 MM MMuseURIValidationHack=false MM MM MM MM protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ MM MM MM MM If I change the timeout to 2, catalina.out reports that the timeout MM has MM MM been reached. MM MM MM MM workers.properties is as installed by default except that I've corrected MM the MM MM java_home path. MM MM MM MM mod_jk.conf is as follows MM MM MM MM JkWorkersFile /etc/httpd/conf/workers.properties MM MM JkLogFile /var/log/httpd/mod_jk.log MM MM JkLogLevel error MM MM MM MM MM MM # MM MM # Root context mounts for Tomcat MM MM # MM MM JkMount /*.jsp ajp13 MM MM JkMount /servlet/* ajp13 MM MM MM MM # MM MM # Auto configuration for the /examples context starts. MM MM # MM MM MM MM # MM MM # The following line makes apache aware of the location of the /examples MM MM context MM MM # MM MM Alias /examples /var/tomcat4/webapps/examples MM MM Directory /var/tomcat4/webapps/examples MM MM Options Indexes FollowSymLinks MM MM /Directory MM MM MM MM # MM MM # The following line mounts all JSP files and the /servlet/ uri to MM tomcat MM MM # MM MM JkMount /examples/servlet/* ajp13 MM MM JkMount
RE: What to set docBase attribute to in an individual Context.xml fil e
Thanks Jake, That has cleared it up for me. Jim. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 21 March 2003 18:15 To: Tomcat Users List Subject: Re: What to set docBase attribute to in an individual Context.xml fil e Note that context.xml is only applicable when you are using the deploy task for the manager app (and note that this can only be invoked via the Ant catalina manager tasks because browsers don't support HTTP PUT). If you are putting a context configuration file in the webapps directory for deploying a .war file or a directory relative to (or inside) the webapps directory, then name the file anything you want. I would recommend, however, that you name the file the same as you named the .war file or directory you are deploying. This makes it easier to know, at a glance, which context configuration file is for which app. Actually, as part of the deploy process, Tomcat looks for the META-INF/context.xml file inside your .war file and extracts that to a file named the same as the .war file, less the .war extension. So, if you have... myapp.war Then META-INF/context.xml gets extracted (in the same directory where the .war file exists) to... myapp.xml Hope that clears things up. Jake At 04:51 PM 3/21/2003 +, you wrote: * Collins, Jim [EMAIL PROTECTED] [0340 16:40]: Hi Jake, Thanks for getting back so quick. So the context file in META-INF should be context.xml and not myapp.xml? That is maybe where I have been going wrong, I read some previous posts on this from Craig and I thought he said you name the context file with the name of your app and a .xml extension. I've done that before now, when I've needed to add contexts without editing server.xml - BUT those files have gone into the webapps directory (where a warfile would normally go) - see manager.xml which I think is in webapps/ by default. This context.xml method sounds like a safer solution though... -- He's the kind of man for the times that need the kind of man he is ... Rasputin :: Jack of All Trades - Master of Nuns - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat log error ?
Hi, On a production application (Tomcat 4.1.18/JDK-1.4.1_01) we have an intermittant error which leaves Tomcat in a state where it does not serve our homepage (bouncing Tomcat fixes the problem). The Tomcat log contains the following error below. It looks to me like there is a problem accessing a Tomcat log file but I am just guessing. The error appears in the 4teus_log.txt - as defined: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=4teus_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=4teus_log. suffix=.txt timestamp=true/ !-- Tomcat Root Context -- Context path= docBase= debug=0/ /Host Has anybody seen this before or can point me in the right direction to solve this. many thanks Dan ERROR: 2003-03-23 12:10:52 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.lang.NullPointerException at java.io.File.init(File.java:263) at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:880) at org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java :487) at org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java :797) at org.apache.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1 473) at org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java :1394) at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:300) at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.set(DefaultServlet. java:2267) at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.init(DefaultServl et.java:2219) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav a:921) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Problem with taglib declarations in Tomcat 4.1.18
Hi, we've just upgraded the version of JBoss that we're running our J2EE application on, and this has meant an upgrade to the servlet and JSP engines. We've started having problems with our JSPs not validating due to the same taglib being declared multiple times. The exception is: org.apache.jasper.JasperException: h3jsp.error.tlv.invalid.page/h3pnull: org.xml.sax.SAXParseException: Attribute xmlns:c was already specified for element jsp:root./p at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:112) at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:661) at org.apache.jasper.compiler.Validator.validate(Validator.java:613) In the application the core JSTL taglib is being declared in a template JSP which is statically including other JSP fragments that also declare the taglib (because they may or may not be included by something that uses the JSTL taglib). It's also possible to recreate the error with a trivial JSP like: %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % html headtitleTest/title/head body Test /body /html where the WAR only contains the test jsp, a basic web.xml and standard.jar (the JSTL tags) in WEB-INF/lib. The error occurs both in JBoss with the bundled servlet engine, or with a standalone version of Tomcat. As far as we're aware there's nothing in the spec that says the same taglib can't be declared twice, and this page worked in earlier versions. Is this a bug in Jasper (should it be ignorning duplicate declarations where both the prefix and uri are the same), or is our use of the taglib invalid? Any help would be greatly appreciated. Thanks, Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POST method not allowed
Hello! I'm using Apache 1.3.27, Tomcat 3.2, mod_ssl 2.8.11 When i'm trying to use HTTPS, i get error, The requested method POST is not allowed for the URL : mod_ssl: SSL Re-negotiation in conjunction with POST method not supported! If i use GET method then everything is fine. Also if i do'nt use SSLRequire in .htaccess then POST method works too. Can anyone say, is there something important missing in server.xml/web.xml/httpd.conf to allow POST method (while using SSL authentication)? Big thanx! Erki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Frequent hanging
Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS
Re: Frequent hanging
If you use some Windows server (NT, 2000, XP), you can add a new service to Services, or to StartUp list (Win95/Win98) :-) Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: POST method not allowed
can you tell me the name of the file you are trying to post to -Original Message- From: Erki Kriks [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:02 To: Tomcat Users List Subject: POST method not allowed Hello! I'm using Apache 1.3.27, Tomcat 3.2, mod_ssl 2.8.11 When i'm trying to use HTTPS, i get error, The requested method POST is not allowed for the URL : mod_ssl: SSL Re-negotiation in conjunction with POST method not supported! If i use GET method then everything is fine. Also if i do'nt use SSLRequire in .htaccess then POST method works too. Can anyone say, is there something important missing in server.xml/web.xml/httpd.conf to allow POST method (while using SSL authentication)? Big thanx! Erki - 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: Frequent hanging
Adding to service wont solve the problem, check up server.xml file Erki Kriks [EMAIL PROTECTED] wrote:If you use some Windows server (NT, 2000, XP), you can add a new service to Services, or to StartUp list (Win95/Win98) :-) Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
Re: POST method not allowed
i'm trying to post whatever - files (docs, html, a.s.o.) or data, the result is same. can you tell me the name of the file you are trying to post to -Original Message- From: Erki Kriks [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:02 To: Tomcat Users List Subject: POST method not allowed Hello! I'm using Apache 1.3.27, Tomcat 3.2, mod_ssl 2.8.11 When i'm trying to use HTTPS, i get error, The requested method POST is not allowed for the URL : mod_ssl: SSL Re-negotiation in conjunction with POST method not supported! If i use GET method then everything is fine. Also if i do'nt use SSLRequire in .htaccess then POST method works too. Can anyone say, is there something important missing in server.xml/web.xml/httpd.conf to allow POST method (while using SSL authentication)? Big thanx! Erki - 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: Frequent hanging
Sounds like a memory leak. You may need to profile your application to see where the problem is. Donie -Original Message- From: Manohar Kamath [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:21 To: Tomcat Users List Subject: Re: Frequent hanging Adding to service wont solve the problem, check up server.xml file Erki Kriks [EMAIL PROTECTED] wrote:If you use some Windows server (NT, 2000, XP), you can add a new service to Services, or to StartUp list (Win95/Win98) :-) Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: POST method not allowed
basically you cannot post to .html files and document files you can only post to file that are server side scripts :) Thanks Guru -Original Message- From: Erki Kriks [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:25 To: Tomcat Users List Subject: Re: POST method not allowed i'm trying to post whatever - files (docs, html, a.s.o.) or data, the result is same. can you tell me the name of the file you are trying to post to -Original Message- From: Erki Kriks [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:02 To: Tomcat Users List Subject: POST method not allowed Hello! I'm using Apache 1.3.27, Tomcat 3.2, mod_ssl 2.8.11 When i'm trying to use HTTPS, i get error, The requested method POST is not allowed for the URL : mod_ssl: SSL Re-negotiation in conjunction with POST method not supported! If i use GET method then everything is fine. Also if i do'nt use SSLRequire in .htaccess then POST method works too. Can anyone say, is there something important missing in server.xml/web.xml/httpd.conf to allow POST method (while using SSL authentication)? Big thanx! Erki - 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: POST method not allowed
for posting, i'm using java servlet file. basically you cannot post to .html files and document files you can only post to file that are server side scripts :) Thanks Guru i'm trying to post whatever - files (docs, html, a.s.o.) or data, the result is same. can you tell me the name of the file you are trying to post to -Original Message- From: Erki Kriks [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:02 To: Tomcat Users List Subject: POST method not allowed Hello! I'm using Apache 1.3.27, Tomcat 3.2, mod_ssl 2.8.11 When i'm trying to use HTTPS, i get error, The requested method POST is not allowed for the URL : mod_ssl: SSL Re-negotiation in conjunction with POST method not supported! If i use GET method then everything is fine. Also if i do'nt use SSLRequire in .htaccess then POST method works too. Can anyone say, is there something important missing in server.xml/web.xml/httpd.conf to allow POST method (while using SSL authentication)? Big thanx! Erki - 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]
wrong mapping? (mod_jk2)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry for reposting this matter (was:htaccess/virtual hosts doesn't work), but in the meantime I could find out some things by myself. I have a combination of Apache httpd/mod_jk2/Tomcat (2.0.44/2.0.2/4.1.24) on Sol8. Apache is set up to serve a number of name-based virtual hosts. Some of the hosts should serve dynamic content with Tomcat, others not. When I set up 'workers2.properties' with the directive: [uri:/*.jsp] everything works right as long as I don't want to use 'index.jsp' as Directory index file in httpd.conf. Including 'index.jsp' in the Apache 'DirectoryIndex' directive results in the following behaviour: Even if there is no file in a directory, which is specified by 'DirectoryIndex', Apache maps this request to Tomcat, no matter what I have in the 'workers2.properties'. Maybe I am completely wrong about the mapping configuration directives in 'workers2.properties', but I just can't see what's wrong. Any help appreciated, Carsten -BEGIN PGP SIGNATURE- Version: 6.5.8ckt iQA/AwUBPn7tvLjxzYr/SJ6uEQIjJgCgs1ZiLTQiLa0l/DaZTYeEn7W5EBsAoOaE 8kRsqHDQgDIPYmp+zazkaRoy =t37E -END PGP SIGNATURE- Dipl. Geogr. Carsten Heidmann Bundesanstalt fuer Wasserbau Tel.: 040.81908.345 - Aussenstelle Kueste - Fax: 040.81908.373 Wedeler Landstrasse 157 [EMAIL PROTECTED] DE - 22559 Hamburg http://nokis.baw.de/http://www.hamburg.baw.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Windows 2000 Authentication Integration
Hi, I have searched the archives and have not managed to find a decent answer for this. The users of an intranet are already logged into the windows domain. I need to retrieve the currently logged in user name from my java web application. 1) I am integrating IIS and tomcat using the isapi redirector. 2) using IIS 5.0 and Windows 2000 Server 3) I have set the IIS security to NT Authentication. The response variable that gets set is authenticate with a value of TlRMTVNTUAADGAAYAFgYABgAcAgACABACAAIAEgIAAgAUACI BYKAoFMATwBMAE8ASABhAG4AcwBTAE8ATABPAOgkx0G8QbgJhRZRc0xo40R8cUWsA6X0SQ9M cj7FIOa2dRLjARCYlxSI3eGrqD12jW I assume this is some kind of base 64 encoded token which i need to use to get the user details from the windows 2000 active directory??? Has anyone got any idea how I retrieve the logged in username. Thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Frequent hanging
Hi, we have the same problem and i got some hints from this mailing list. Even if i can't know if you have memory leaks, i can tell, that we don't have any ... we profiled a lot of time! Another fact for this is, that memory usage doesn't change. The problem occurs at out servers only in services which uses jsp-pages...servlets work fine over serveral weeks. Another hint was to use jdk1.3 instead of 1.4, but it only changes the online-time from a day to three. Nearly same for using http-listener istead of AJP13 in connection to Apache mod_jk. What wonders me too is, that really no message is writen to any log-file. The second is, that we are unable to reproduce the problem with heavy-usage tests or so on. We're not sure what it can be, but i think it depends either on jsp-engine, or in abstract request-handler or container-communication and what we can say is, that its plattform-independent and in all 4.x -versions of tomcat. So far ... may be there are some new hints ... otherwise we have to change the container. I hope that somebody takes the problem serious! Regards, Björn Clemens -Ursprüngliche Nachricht- Von: karthikeyan vks [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 12:19 An: [EMAIL PROTECTED] Betreff: Frequent hanging Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POST method not allowed
I found interesting solution. If to use these lines: #SSLVerifyClient require #SSLVerifyDepth 3 in httpd.conf then there is no problem, but if to use these lines in .htaccess then there is problem ?! basically you cannot post to .html files and document files you can only post to file that are server side scripts :) Thanks Guru -Original Message- From: Erki Kriks [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:25 To: Tomcat Users List Subject: Re: POST method not allowed i'm trying to post whatever - files (docs, html, a.s.o.) or data, the result is same. can you tell me the name of the file you are trying to post to -Original Message- From: Erki Kriks [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:02 To: Tomcat Users List Subject: POST method not allowed Hello! I'm using Apache 1.3.27, Tomcat 3.2, mod_ssl 2.8.11 When i'm trying to use HTTPS, i get error, The requested method POST is not allowed for the URL : mod_ssl: SSL Re-negotiation in conjunction with POST method not supported! If i use GET method then everything is fine. Also if i do'nt use SSLRequire in .htaccess then POST method works too. Can anyone say, is there something important missing in server.xml/web.xml/httpd.conf to allow POST method (while using SSL authentication)? Big thanx! Erki - 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]
RE: JSP won't work unless have package in taglib .java file
Whenever you use a class without a package name and without an import it is not a class without a package but a class that is in the same package as the class that contains the usage. Since the generated code has a package statement it would search TemplateDesc in that package. (Where it doesn't exist) Prior to jdk 1.4 you could use a packageless class by importing the class direct. AFAIK it's forbidden to use package less classes at all since jdk 1.4. -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 6:49 AM To: Tomcat Users Subject: JSP won't work unless have package in taglib .java file If I have a tld object (ie TemplateDesc.java) with no project and place it in WEB-INF/classes - it won't work. But if I give it a package name and place it in WEB-INF/classes/package - then it works. The problem seems to be that with no package it generates the code: TemplateDesc _jspx_th_tl_TP_0 = (TemplateDesc) _jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class); which makes sense. But why can it find it as part of a package but not with no package? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Frequent hanging
Does Tomcat itself hang or just your application? -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:48 To: Tomcat Users List Subject: AW: Frequent hanging Hi, we have the same problem and i got some hints from this mailing list. Even if i can't know if you have memory leaks, i can tell, that we don't have any ... we profiled a lot of time! Another fact for this is, that memory usage doesn't change. The problem occurs at out servers only in services which uses jsp-pages...servlets work fine over serveral weeks. Another hint was to use jdk1.3 instead of 1.4, but it only changes the online-time from a day to three. Nearly same for using http-listener istead of AJP13 in connection to Apache mod_jk. What wonders me too is, that really no message is writen to any log-file. The second is, that we are unable to reproduce the problem with heavy-usage tests or so on. We're not sure what it can be, but i think it depends either on jsp-engine, or in abstract request-handler or container-communication and what we can say is, that its plattform-independent and in all 4.x -versions of tomcat. So far ... may be there are some new hints ... otherwise we have to change the container. I hope that somebody takes the problem serious! Regards, Björn Clemens -Ursprüngliche Nachricht- Von: karthikeyan vks [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 12:19 An: [EMAIL PROTECTED] Betreff: Frequent hanging Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Frequent hanging
I tried to use two different listeners and only one hangs ... the other one, which was nearly unused was still up. So I think that only the listener or connector hangs at any level Regards, Björn Clemens -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 13:53 An: 'Tomcat Users List' Betreff: RE: Frequent hanging Does Tomcat itself hang or just your application? -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:48 To: Tomcat Users List Subject: AW: Frequent hanging Hi, we have the same problem and i got some hints from this mailing list. Even if i can't know if you have memory leaks, i can tell, that we don't have any ... we profiled a lot of time! Another fact for this is, that memory usage doesn't change. The problem occurs at out servers only in services which uses jsp-pages...servlets work fine over serveral weeks. Another hint was to use jdk1.3 instead of 1.4, but it only changes the online-time from a day to three. Nearly same for using http-listener istead of AJP13 in connection to Apache mod_jk. What wonders me too is, that really no message is writen to any log-file. The second is, that we are unable to reproduce the problem with heavy-usage tests or so on. We're not sure what it can be, but i think it depends either on jsp-engine, or in abstract request-handler or container-communication and what we can say is, that its plattform-independent and in all 4.x -versions of tomcat. So far ... may be there are some new hints ... otherwise we have to change the container. I hope that somebody takes the problem serious! Regards, Björn Clemens -Ursprüngliche Nachricht- Von: karthikeyan vks [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 12:19 An: [EMAIL PROTECTED] Betreff: Frequent hanging Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - 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: Frequent hanging
I only mention this because the problem could be with your application or any of the classes that it uses and not Tomcat at all. -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 13:02 To: Tomcat Users List Subject: AW: Frequent hanging I tried to use two different listeners and only one hangs ... the other one, which was nearly unused was still up. So I think that only the listener or connector hangs at any level Regards, Björn Clemens -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 13:53 An: 'Tomcat Users List' Betreff: RE: Frequent hanging Does Tomcat itself hang or just your application? -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:48 To: Tomcat Users List Subject: AW: Frequent hanging Hi, we have the same problem and i got some hints from this mailing list. Even if i can't know if you have memory leaks, i can tell, that we don't have any ... we profiled a lot of time! Another fact for this is, that memory usage doesn't change. The problem occurs at out servers only in services which uses jsp-pages...servlets work fine over serveral weeks. Another hint was to use jdk1.3 instead of 1.4, but it only changes the online-time from a day to three. Nearly same for using http-listener istead of AJP13 in connection to Apache mod_jk. What wonders me too is, that really no message is writen to any log-file. The second is, that we are unable to reproduce the problem with heavy-usage tests or so on. We're not sure what it can be, but i think it depends either on jsp-engine, or in abstract request-handler or container-communication and what we can say is, that its plattform-independent and in all 4.x -versions of tomcat. So far ... may be there are some new hints ... otherwise we have to change the container. I hope that somebody takes the problem serious! Regards, Björn Clemens -Ursprüngliche Nachricht- Von: karthikeyan vks [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 12:19 An: [EMAIL PROTECTED] Betreff: Frequent hanging Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - 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] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the
AW: Frequent hanging
I know that it could be, but we have some different applications, some really easy, some more heavy and the problem occurs all over if jsp is used, even if we only use it to insert a date in a page(this was a testCase). Only-Servlet-Services working fine. Regards, Björn -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 14:08 An: 'Tomcat Users List' Betreff: RE: Frequent hanging I only mention this because the problem could be with your application or any of the classes that it uses and not Tomcat at all. -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 13:02 To: Tomcat Users List Subject: AW: Frequent hanging I tried to use two different listeners and only one hangs ... the other one, which was nearly unused was still up. So I think that only the listener or connector hangs at any level Regards, Björn Clemens -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 13:53 An: 'Tomcat Users List' Betreff: RE: Frequent hanging Does Tomcat itself hang or just your application? -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:48 To: Tomcat Users List Subject: AW: Frequent hanging Hi, we have the same problem and i got some hints from this mailing list. Even if i can't know if you have memory leaks, i can tell, that we don't have any ... we profiled a lot of time! Another fact for this is, that memory usage doesn't change. The problem occurs at out servers only in services which uses jsp-pages...servlets work fine over serveral weeks. Another hint was to use jdk1.3 instead of 1.4, but it only changes the online-time from a day to three. Nearly same for using http-listener istead of AJP13 in connection to Apache mod_jk. What wonders me too is, that really no message is writen to any log-file. The second is, that we are unable to reproduce the problem with heavy-usage tests or so on. We're not sure what it can be, but i think it depends either on jsp-engine, or in abstract request-handler or container-communication and what we can say is, that its plattform-independent and in all 4.x -versions of tomcat. So far ... may be there are some new hints ... otherwise we have to change the container. I hope that somebody takes the problem serious! Regards, Björn Clemens -Ursprüngliche Nachricht- Von: karthikeyan vks [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 12:19 An: [EMAIL PROTECTED] Betreff: Frequent hanging Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
It sounds as if the tomcat part of the connector is not listening on port 8009. Which connector do you use (AjpConnector, or CoyoteConnector with JkCoyoteHandler) ? -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 6:32 PM To: Tomcat Users List Subject: JK2 - FreeBSD - Apache 2 on FreeBSD Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 I'm at a loss :-( If anybody has any clear explanations/examples of the jk2 configuration I would appreciate it (a lot!) Thanks in advance, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install tomat on winZP pro
Complete HOWTO, step by step: http://www.johnturner.com/howto You can ignore the sections covering Apache and mod_jk if you are not using them. The Tomcat installation portion of the HOWTO should be all you need. I would second the other suggestions in this thread: don't put anything Java or Tomcat related in directories with spaces in their names. John On 23 Mar 2003 13:15:57 -0500, Antoine [EMAIL PROTECTED] wrote: Please forgive me about the winZP i meant winXP at the time I was extremely tired when posting my problem. I will try it with no spaces On Sun, 2003-03-23 at 11:39, Dhruva B. Reddy wrote: I think the original poster meant Windows XP Professional. Java in general does not deal with spaces in file and directory names very well. Try installing tomcat into a directory with no spaces in the names, such as: C:\tomcat and, of course, set CATALINA_HOME to the same. -d Jacob Kjome wrote: What do you mean? What are you trying to do with Winzip? Jake At 12:28 AM 3/23/2003 -0500, you wrote: I need to get tomcat4.1.24 working on windows ZP but for some reason it won't work right. Here is my CATALINA_HOME = C:\Program Files\Apache Group\Tomcat4.1 I have also added my servlet.jar file to my classpath here that it is C:\Program Files\Apache Group\Tomcat4.1\common\lib\servlet.jar I really need this for a couple of school project I have to get done So thanks if anyone can help -- Antoine [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat)
What version of Tomcat? For 4.1.x, you need to add Listener elements to server.xml. See steps 1, 2, and 3 in the Final Configuration section of my RH HOWTO: http://www.johnturner.com/howto John On Sun, 23 Mar 2003 15:30:21 -0800, Richie Chauhan [EMAIL PROTECTED] wrote: Hello, I can't seem to figure out what needs to be done on the tomcat side to get the Apache Auto configuration file TOMCAT_HOME/conf/jk/mod_jk.conf-auto The mod_jk documentation says This file is created by enabling the Apache auto-configuration as described in the Tomcat documentation - but I can't find any reference to this in the tomcat documentation. When I try to to Include this file in httpd.conf I get the following error: httpd: could not open document config file /usr/local/jakarta-tomcat/conf/jk/mod_jk.conf-auto Which makes sense as the file is not there. Please Help! Richie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Ralph Einfeldt is rumoured to have said It sounds as if the tomcat part of the connector is not listening on port 8009. Which connector do you use (AjpConnector, or CoyoteConnector with JkCoyoteHandler) ? We managed to overcome that part of the problem :-) We can now view the examples at: http://lancelot.blacknightsolutions.com/examples Part of the problem was more related to logfiles and other weird stuff not being in their default locations under FreeBSD. We are still a little confused with regards to mapping *.jsp files to Tomcat, as: http://lancelot.blacknightsolutions.com/test2.jsp?me simply spits the output to the screen without processing it. In workers2.properties we are using the following lines: [uri:/examples/*] worker=ajp13:lancelot.blacknightsolutions.com:8009 [uri:/*.jsp] worker=ajp13:lancelot.blacknightsolutions.com:8009 The examples work fine, it's the other ones that seem to bork. Any ideas or clear examples would be greatly appreciated. Thanks, Michele -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 6:32 PM To: Tomcat Users List Subject: JK2 - FreeBSD - Apache 2 on FreeBSD Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 I'm at a loss :-( If anybody has any clear explanations/examples of the jk2 configuration I would appreciate it (a lot!) Thanks in advance, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How much $$ to get Tomcat/J2SE installed?
Unless you have access to your Apache's httpd.conf file from the command line, it isn't going to happen. That's the only way you are going to get the two of them to work together. If you do have access to the command line, email me off list at john AT johnturner DOT com and we can probably work something out. Shouldn't take long. If you'd rather do it yourself, and you do have access to the command line, the setup is the same as the HOWTO, you'll just need a different mod_jk.so file. John On Sun, 23 Mar 2003 20:34:25 -0500, Chris Hale [EMAIL PROTECTED] wrote: Anything for Apache 1.3? I'm using WHM/CPanel, and they don't allow us to upgrade to Apache 2. Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 12:08 PM To: Tomcat Users List Subject: Re: How much $$ to get Tomcat/J2SE installed? You can do it for free. Complete HOWTO, step by step: http://www.johnturner.com/howto John On Fri, 21 Mar 2003 11:42:32 -0500, Chris Hale [EMAIL PROTECTED] wrote: All, Looking for some quick help here. Need to get this installed on my RH7.3 system with Apache and mod_ssl. My developer is doing some stuff with .jsp files and needs this support on the server. Anyone willing to do this for some quick cash? I tried to get it installed and got stumped pretty fast. Send me your credentials and a fixed price for doing this. The server is a hosted virtual private server. Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a servlet for tomcat 5
Hi I'm new to tomcat and would very much appreciate a little help getting started with it. Is there a complete tutorial on howto make you'r first servlet for tomcat 5. Preferably using ant also. I have read the documentation for tomcat 5 and tried the examples there, without much success. Regards Mattias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 - FreeBSD - Apache 2 on FreeBSD
There's no AJP connector listening on port 8009 (the default) or else you have an AJP connector configured and listening, but it is on the wrong port: [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:15:04 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.service() Error forwarding ajp13:xxx..com:8009 1 1 [Sun Mar 23 17:15:04 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 Check your server.xml for a connector (called CoyoteConnector) listening on port 8009. There should be one enabled by default, but I am not sure how you installed Tomcat. If you used the FreeBSD ports manager, the default configuration found in a Tomcat binary release may have been changed. John On Sun, 23 Mar 2003 18:31:57 +0100, Michele Neylon :: Blacknight Solutions [EMAIL PROTECTED] wrote: Hi all, Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:13:00 2003] [notice] mod_jk.post_config() first invocation [Sun Mar 23 17:13:01 2003] [notice] mod_jk.post_config() second invocation [Sun Mar 23 17:13:02 2003] [notice] Apache configured -- resuming normal operations [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26498 in scoreboard slot 2 [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26499 in scoreboard slot 3 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26500 in scoreboard slot 4 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26496 in scoreboard slot 0 [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26497 in scoreboard slot 1 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [error] mod_jk child init 1 0 [Sun Mar 23 17:13:14 2003] [notice] jk2_init() Found child 26505 in scoreboard slot 5 [Sun Mar 23 17:13:14 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:49 2003] [notice] shm.createSlot() Create 1 0x2834e000 0x2835 [Sun Mar 23 17:13:49 2003] [notice] workerEnv.init() create slot epStat.4 [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:15:04 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.service() Error forwarding ajp13:xxx..com:8009 1 1 [Sun Mar 23 17:15:04 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 [Sun Mar 23 17:15:04 2003] [error] lb.service() worker failed 12 for ajp13:xxx..com:8009 [Sun Mar 23 17:15:04 2003] [notice] lb.getWorker() All workers in error state, use the one with oldest error [Sun Mar 23 17:16:19 2003] [error] channelSocket.open() connect failed xxx..com:8009 60 Operation timed out [Sun Mar 23 17:16:19 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:16:19 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:16:19 2003] [error] ajp13.service() Error forwarding ajp13:xxx.xxx.com:8009 1 1 [Sun Mar 23 17:16:19 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 [Sun Mar 23 17:16:19 2003] [error] lb.service() worker failed 12 for ajp13:.xxx.com:8009 [Sun Mar 23 17:16:19 2003] [notice] lb.getWorker() All workers in error state, use the one with oldest error [Sun Mar 23 17:16:19 2003] [notice] lb.getWorker() We tried all possible workers 2 [Sun Mar 23 17:16:19 2003] [error] lb_worker.service() all workers in error or disabled state [Sun Mar 23 17:16:19 2003] [error] mod_jk.handler() Error connecting to tomcat 12 I'm at a loss :-( If anybody has any clear explanations/examples of the jk2 configuration I would appreciate it (a lot!) Thanks in advance, Michele Mr. Michele Neylon Blacknight Solutions - affordable linux hosting http://www.blacknightsolutions.com/ This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info
Re: JK2 - FreeBSD - Apache 2 on FreeBSD
John Thanks for your input on this. John Turner is rumoured to have said There's no AJP connector listening on port 8009 (the default) or else you have an AJP connector configured and listening, but it is on the wrong port: The strange thing was that it was listening all the time :-( I ran a netstat -an and it showed 8009 as listening. Your HOWTO was very helpful too - thank you. By combining part of your configuration with that from thinlizard.com I finally managed to get it to work (almost!), but am still rather confused about the workers2.properties Check your server.xml for a connector (called CoyoteConnector) listening on port 8009. There should be one enabled by default, but I am not sure how you installed Tomcat. I followed instructions on the FreeBSD site to get a standard install running - which was the easiest part of the process. The server.xml seems to be okay and using your configuration Tomcat seems quite happy now :-) Michele -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a servlet for tomcat 5
You'd be much better off learning with a stable, non-alpha version of Tomcat like 4.1.24. Tomcat 5 is still in active development. For a tutorial, check Sun (remember, Google is always your friend): http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html Also the Tomcat application developer's guide might help. John On Mon, 24 Mar 2003 14:32:31 +0100, Mattias Carlehäll [EMAIL PROTECTED] wrote: Hi I'm new to tomcat and would very much appreciate a little help getting started with it. Is there a complete tutorial on howto make you'r first servlet for tomcat 5. Preferably using ant also. I have read the documentation for tomcat 5 and tried the examples there, without much success. Regards Mattias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Frequent hanging
I can't see what difference a JSP would make because after all they get compiled to servlets. -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 13:12 To: Tomcat Users List Subject: AW: Frequent hanging I know that it could be, but we have some different applications, some really easy, some more heavy and the problem occurs all over if jsp is used, even if we only use it to insert a date in a page(this was a testCase). Only-Servlet-Services working fine. Regards, Björn -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 14:08 An: 'Tomcat Users List' Betreff: RE: Frequent hanging I only mention this because the problem could be with your application or any of the classes that it uses and not Tomcat at all. -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 13:02 To: Tomcat Users List Subject: AW: Frequent hanging I tried to use two different listeners and only one hangs ... the other one, which was nearly unused was still up. So I think that only the listener or connector hangs at any level Regards, Björn Clemens -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 13:53 An: 'Tomcat Users List' Betreff: RE: Frequent hanging Does Tomcat itself hang or just your application? -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:48 To: Tomcat Users List Subject: AW: Frequent hanging Hi, we have the same problem and i got some hints from this mailing list. Even if i can't know if you have memory leaks, i can tell, that we don't have any ... we profiled a lot of time! Another fact for this is, that memory usage doesn't change. The problem occurs at out servers only in services which uses jsp-pages...servlets work fine over serveral weeks. Another hint was to use jdk1.3 instead of 1.4, but it only changes the online-time from a day to three. Nearly same for using http-listener istead of AJP13 in connection to Apache mod_jk. What wonders me too is, that really no message is writen to any log-file. The second is, that we are unable to reproduce the problem with heavy-usage tests or so on. We're not sure what it can be, but i think it depends either on jsp-engine, or in abstract request-handler or container-communication and what we can say is, that its plattform-independent and in all 4.x -versions of tomcat. So far ... may be there are some new hints ... otherwise we have to change the container. I hope that somebody takes the problem serious! Regards, Björn Clemens -Ursprüngliche Nachricht- Von: karthikeyan vks [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 12:19 An: [EMAIL PROTECTED] Betreff: Frequent hanging Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Do you have a context with path= ? Otherwise you will not be able to access Domain/test.jsp (You would have to insert the context path: Domain/ContextPath/test.jsp) test.jsp must be in the top level directory that is given in the docBase attribute of the context. -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: JK2 - FreeBSD - Apache 2 on FreeBSD We can now view the examples at: http://lancelot.blacknightsolutions.com/examples We are still a little confused with regards to mapping *.jsp files to Tomcat, as: http://lancelot.blacknightsolutions.com/test2.jsp?me simply spits the output to the screen without processing it. In workers2.properties we are using the following lines: [uri:/examples/*] worker=ajp13:lancelot.blacknightsolutions.com:8009 [uri:/*.jsp] worker=ajp13:lancelot.blacknightsolutions.com:8009 The examples work fine, it's the other ones that seem to bork. Any ideas or clear examples would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Ralph Einfeldt is rumoured to have said Do you have a context with path= ? Otherwise you will not be able to access Domain/test.jsp (You would have to insert the context path: Domain/ContextPath/test.jsp) test.jsp must be in the top level directory that is given in the docBase attribute of the context. OK. I am complete moron, so please don't go easy on me. Should the context be set in server.xml or am I still looking at workers2.properties ? Is the syntax used in workers2.properties correct? ie. [uri:/*.jsp] Thanks again for all your patience :-) -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: JK2 - FreeBSD - Apache 2 on FreeBSD We can now view the examples at: http://lancelot.blacknightsolutions.com/examples We are still a little confused with regards to mapping *.jsp files to Tomcat, as: http://lancelot.blacknightsolutions.com/test2.jsp?me simply spits the output to the screen without processing it. In workers2.properties we are using the following lines: [uri:/examples/*] worker=ajp13:lancelot.blacknightsolutions.com:8009 [uri:/*.jsp] worker=ajp13:lancelot.blacknightsolutions.com:8009 The examples work fine, it's the other ones that seem to bork. Any ideas or clear examples would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Frequent hanging
They use many classes that are quite uncommon in 'pure' servlets. -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:44 PM To: 'Tomcat Users List' Subject: RE: Frequent hanging I can't see what difference a JSP would make because after all they get compiled to servlets. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with tomcat 4.0.1 and 4.1.18
I can't find where is the problem ... :( I've installed tomcat 4.0.6 and now all is runnig without problems. Today I've seen the new stable version notice and it seems like this problem was solved, but i'll take a time before upgrading again. Jonathan Eric Miller wrote: I think I may be having the same problem as well. I'm running Tomcat in standalone mode and I have it configured only for HTTPS. The error message that I'm receiving is. INFO: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 This is the second time I've seen this. I don't think I've seen the problem before upgrading to 4.1.18. Jon - Original Message - From: Daniel Rubio [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 21, 2003 4:19 AM Subject: Re: Problems with tomcat 4.0.1 and 4.1.18 Is running standalone, we have apache in port 80 but we have a link to the secure area (tomcat, that runs in 8443). Marion McKelvie wrote: Daniel Are you running in standalone mode or with a web server? I have seen a similar problem when using 4.1.18, but I think I've traced it to Apache 4.0.43 and mod_jk : Apache seems to keep producing child processes each of which uses up a mod_jk thread until I get the same error in catalina.out Marion -Original Message- From: Daniel Rubio [mailto:[EMAIL PROTECTED] Sent: 21 March 2003 08:49 To: [EMAIL PROTECTED] Subject: Problems with tomcat 4.0.1 and 4.1.18 Hi to all Recently, we updated our Tomcat server from 4.0.1 to 4.1.18. All was perfect on the first day, but then the new server crashed and I can't found the cause. Doing a ps -ef i see lots of tomcat processes that are'nt finalizing, and when this number arrives to the value we have in acceptCount variable it stops serving pages. Here is the error on catalina.out Mar 20, 2003 9:34:30 PM org.apache.tomcat.util.log.CommonLogHandler log INFO: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 maxThreads is set to 75 but we haven't more from 2-3 concurrent users so I think this is not th problem. We tried to run again the old server, but now we have a very strange error, we can execute servlets but not jsp pages. Here is the error received by the browser: Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet jsp is currently unavailable this happens too to the examples directory, I think it's not caused by the application... I'm going crazy, somebody could help? Thanks in advance -- Daniel Rubio Rodríguez OASI (Organisme Autònom Per la Societat de la Informació) c/ Assalt, 12 43003 - Tarragona Tef.: 977.244.007 - Fax: 977.224.517 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] -- Daniel Rubio Rodríguez OASI (Organisme Autònom Per la Societat de la Informació) c/ Assalt, 12 43003 - Tarragona Tef.: 977.244.007 - Fax: 977.224.517 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] -- Daniel Rubio Rodríguez OASI (Organisme Autònom Per la Societat de la Informació) c/ Assalt, 12 43003 - Tarragona Tef.: 977.244.007 - Fax: 977.224.517 e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Frequent hanging
may be the compilation mechanism ? may be that the loss of connection may cause a internal hanging one ... may be its a exception or so ... i really don't know -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 14:44 An: 'Tomcat Users List' Betreff: RE: Frequent hanging I can't see what difference a JSP would make because after all they get compiled to servlets. -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 13:12 To: Tomcat Users List Subject: AW: Frequent hanging I know that it could be, but we have some different applications, some really easy, some more heavy and the problem occurs all over if jsp is used, even if we only use it to insert a date in a page(this was a testCase). Only-Servlet-Services working fine. Regards, Björn -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 14:08 An: 'Tomcat Users List' Betreff: RE: Frequent hanging I only mention this because the problem could be with your application or any of the classes that it uses and not Tomcat at all. -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 13:02 To: Tomcat Users List Subject: AW: Frequent hanging I tried to use two different listeners and only one hangs ... the other one, which was nearly unused was still up. So I think that only the listener or connector hangs at any level Regards, Björn Clemens -Ursprüngliche Nachricht- Von: Collins, Jim [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 13:53 An: 'Tomcat Users List' Betreff: RE: Frequent hanging Does Tomcat itself hang or just your application? -Original Message- From: Björn Clemens [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 12:48 To: Tomcat Users List Subject: AW: Frequent hanging Hi, we have the same problem and i got some hints from this mailing list. Even if i can't know if you have memory leaks, i can tell, that we don't have any ... we profiled a lot of time! Another fact for this is, that memory usage doesn't change. The problem occurs at out servers only in services which uses jsp-pages...servlets work fine over serveral weeks. Another hint was to use jdk1.3 instead of 1.4, but it only changes the online-time from a day to three. Nearly same for using http-listener istead of AJP13 in connection to Apache mod_jk. What wonders me too is, that really no message is writen to any log-file. The second is, that we are unable to reproduce the problem with heavy-usage tests or so on. We're not sure what it can be, but i think it depends either on jsp-engine, or in abstract request-handler or container-communication and what we can say is, that its plattform-independent and in all 4.x -versions of tomcat. So far ... may be there are some new hints ... otherwise we have to change the container. I hope that somebody takes the problem serious! Regards, Björn Clemens -Ursprüngliche Nachricht- Von: karthikeyan vks [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. März 2003 12:19 An: [EMAIL PROTECTED] Betreff: Frequent hanging Dear Sir, We installed a web application using Tomcat 4.0. It is a SQL 2000/ Tomcat 4.0. We observed a problem. The application is getting hanging on every 4 days. Once we restarted the Tomcat, it is ok. I need a clarification that why should i restart tomcat everytime? If it has to be done, can it be automated (at present, we are physically go to the server room and do restart) (Or) Is there any installation parameters to be initialized? Regards, Karthikeyan VKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
The context is defined in server.xml. Have a look for context in this file. (Has nothing to do with mod_jk* at all) For specific questions on mod_jk2 I'm the wrong guy, as I've not used it by now. -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:50 PM To: [EMAIL PROTECTED] Subject: RE: JK2 - FreeBSD - Apache 2 on FreeBSD Should the context be set in server.xml or am I still looking at workers2.properties ? Is the syntax used in workers2.properties correct? ie. [uri:/*.jsp] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Ralph Einfeldt is rumoured to have said The context is defined in server.xml. Have a look for context in this file. (Has nothing to do with mod_jk* at all) For specific questions on mod_jk2 I'm the wrong guy, as I've not used it by now. Thanks for the clarification :-) I'll play around with server.xml this evening and see how I get on -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a servlet for tomcat 5
I'm guessing that it isn't the alpha state of tomcat5 that is the problem here, but the fact that Mattias hasn't uncommented the servlet mapping for the invoker servlet in CATALINA_HOME/conf/web.xml. This would be an issue whether he were using a release version of Tomcat like 4.1.24 or 5.0. Jake At 08:41 AM 3/24/2003 -0500, you wrote: You'd be much better off learning with a stable, non-alpha version of Tomcat like 4.1.24. Tomcat 5 is still in active development. For a tutorial, check Sun (remember, Google is always your friend): http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html Also the Tomcat application developer's guide might help. John On Mon, 24 Mar 2003 14:32:31 +0100, Mattias Carlehäll [EMAIL PROTECTED] wrote: Hi I'm new to tomcat and would very much appreciate a little help getting started with it. Is there a complete tutorial on howto make you'r first servlet for tomcat 5. Preferably using ant also. I have read the documentation for tomcat 5 and tried the examples there, without much success. Regards Mattias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
determining which jdk tomcat is using
hi all, i have multiple jdks installed on my machine(win2k). i have my JAVA_HOME environment variable set to the JDK want to use, and this is reflected in my Path environment variable as well. how can i be sure tomcat is using the jdk i want it to? is there a way to get tomcat to output this information? thanks, ~jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a servlet for tomcat 5
Understood...my point was that learning something new can be a daunting task, and there is no reason to make it more difficult than it has to be by using an environment that may not be stable. John On Mon, 24 Mar 2003 08:16:59 -0600, Jacob Kjome [EMAIL PROTECTED] wrote: I'm guessing that it isn't the alpha state of tomcat5 that is the problem here, but the fact that Mattias hasn't uncommented the servlet mapping for the invoker servlet in CATALINA_HOME/conf/web.xml. This would be an issue whether he were using a release version of Tomcat like 4.1.24 or 5.0. Jake At 08:41 AM 3/24/2003 -0500, you wrote: You'd be much better off learning with a stable, non-alpha version of Tomcat like 4.1.24. Tomcat 5 is still in active development. For a tutorial, check Sun (remember, Google is always your friend): http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html Also the Tomcat application developer's guide might help. John Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JK2] JK2 Properties for Coyote Connector
Please check attachment out. Tim Jian 3833 Farragut Ave. Kensington, MD 20895 Email: [EMAIL PROTECTED] (See attached file: jk2.properties) Jerry Jalenak [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] BONE.comcc: Subject: [JK2] JK2 Properties for Coyote Connector 03/21/2003 10:26 AM Please respond to Tomcat Users List Hi, I'm trying to get the Coyote Connector working with Apache 2.x and Tomcat 3.3.1. I've been through the Coyote 1.0rc2 doc and have updated all of the .jar files in Tomcat. What I'm missing is the JK2.properties file. Does anyone have an example of what this file should look like? TIA! Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [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: MemoryRoles Roles and Users
It's such a great pity that we can not use directly it useful methods. I don't understand why nobody seem to use the MemoryRealm mode, more exactly only write in each source file the full text of each roles. For example, I have defined and used an admin and user roles to separate any parts of my web projects. Each part of my web project, have in a database table a reference name and a corresponding list of role name to make links from roles to parts. Is every body who are using MemoryRelam, only use from the HttpServletRequest Class like this : - request.isUserInRole(admin) or request.isUserInRole(user) That seems not practical. If we decide to rename in the MemoryRealm, the admin role, we will have to update in all the java class, servlet, jsp of the project!? My idea, would be that we can init on the current user session, a String[] Roles variable to contain all its corresponding roles if several. Any suggestions ? François -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: samedi 22 mars 2003 09:45 To: [EMAIL PROTECTED] Subject:Re: MemoryRoles Roles and Users Well, by default, the GenericPrincipal class shouldn't be accessible from your Servlet/Filter (ClassLoader magic :). The best way is a do-it-yourself parsing of tomcat-users.xml. Francois Paris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to list the current user roles, but I don't know very well how I can do it. I am using Tomcat/4.1.18. I have found in the servlet api doc and Catalina api doc, two interesting methods : API Servlet : HttpServletRequest.getUserPrincipal() API Catalina : GenericPrincipal.getRoles() Any ideas ? Thanks in advance. François. - 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]
Browser got incomplete html
Hello, (B (BI met this problem. My html page showed incompletely. (BSometimes html tag like "TD" is showed, and sometimes only (Bhalf of the whole result showed. I read the source of the html, (Bit seems browser got imcomplete html. (B (BI'm using Tomcat4.1.18, Apache1.3.12 and mod_Jk2 (BOS is solaris8. (B (BThanks for any help (B (BRegards, (BXiaoling
Help regarding Tomcat
Hi, I have installed Tomcat 4.1.24. I am trying to login to Administration Tool using tomcat as the user name and tomcat as the password. I am getting the following error. HTTP Status 404 - /admin/j_security_check type Status report message /admin/j_security_check description The requested resource (/admin/j_security_check) is not available. Can u please help me. Don't know why this error is coming. Thanks, Yugandhar Reddy SysArris Software Pvt. Ltd. Bangalore, India. +91-80-6655165, +91-80-6655052 [EMAIL PROTECTED]
building a domino connector
i have a problem with compiling a connector for domino server on Solaris 8 i made some changes in Makefile as it is described in documentation (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/domhowto.html) and when a use 'make' i'll get this mess: -- bash-2.05# make gcc -fPIC -O3 -DUNIX -I -I/usr/local/j2sdk/include -I../common -o ../common/jk_ajp12_worker.o -c ../common/jk_ajp12_worker.c gcc -fPIC -O3 -DUNIX -I -I/usr/local/j2sdk/include -I../common -o ../common/jk_ajp13.o -c ../common/jk_ajp13.c gcc -fPIC -O3 -DUNIX -I -I/usr/local/j2sdk/include -I../common -o ../common/jk_ajp13_worker.o -c ../common/jk_ajp13_worker.c gcc -fPIC -O3 -DUNIX -I -I/usr/local/j2sdk/include -I../common -o ../common/jk_connect.o -c ../common/jk_connect.c gcc -fPIC -O3 -DUNIX -I -I/usr/local/j2sdk/include -I../common -o ../common/jk_jni_worker.o -c ../common/jk_jni_worker.c ../common/jk_jni_worker.c: In function `open_jvm1': ../common/jk_jni_worker.c:852: `JDK1_1InitArgs' undeclared (first use in this function) ../common/jk_jni_worker.c:852: (Each undeclared identifier is reported only once ../common/jk_jni_worker.c:852: for each function it appears in.) ../common/jk_jni_worker.c:852: parse error before vm_args ../common/jk_jni_worker.c:860: `vm_args' undeclared (first use in this function) ../common/jk_jni_worker.c: In function `detect_jvm_version': ../common/jk_jni_worker.c:921: `JDK1_1InitArgs' undeclared (first use in this function) ../common/jk_jni_worker.c:921: parse error before vm_args ../common/jk_jni_worker.c:928: `vm_args' undeclared (first use in this function) ../common/jk_jni_worker.c: In function `open_jvm2': ../common/jk_jni_worker.c:1057: `JNI_EEXIST' undeclared (first use in this function) make: *** [../common/jk_jni_worker.o] Error 1 bash-2.05# - for information, i have Tomcat 4.1.18, j2sdk 1.3.1-07 can someone help? thanks, .martin. http://www.webpark.sk/novy-web.htm - Profesionlny webhosting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: determining which jdk tomcat is using
Run the manager application - it lists the JVM version. -Original Message- From: KIESEL,JEFF (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 15:15 To: '[EMAIL PROTECTED]' Subject: determining which jdk tomcat is using hi all, i have multiple jdks installed on my machine(win2k). i have my JAVA_HOME environment variable set to the JDK want to use, and this is reflected in my Path environment variable as well. how can i be sure tomcat is using the jdk i want it to? is there a way to get tomcat to output this information? thanks, ~jeff - 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: Windows 2000 Authentication Integration
You should be able to get it via request.getRemoteUser(). However, note that when using the JK connectors, you will have to tell Tomcat whether it should get the remote user from the JK environment or from within Tomcat. When using Tomcat with Apache, that is done via adding the following to the jk2.properties file... request.tomcatAuthentication=false I believe this will also work for the IIS connector. See this resolved bug for details...http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12196 Jake At 02:50 PM 3/24/2003 -0800, you wrote: Hi, I have searched the archives and have not managed to find a decent answer for this. The users of an intranet are already logged into the windows domain. I need to retrieve the currently logged in user name from my java web application. 1) I am integrating IIS and tomcat using the isapi redirector. 2) using IIS 5.0 and Windows 2000 Server 3) I have set the IIS security to NT Authentication. The response variable that gets set is authenticate with a value of TlRMTVNTUAADGAAYAFgYABgAcAgACABACAAIAEgIAAgAUACI BYKAoFMATwBMAE8ASABhAG4AcwBTAE8ATABPAOgkx0G8QbgJhRZRc0xo40R8cUWsA6X0SQ9M cj7FIOa2dRLjARCYlxSI3eGrqD12jW I assume this is some kind of base 64 encoded token which i need to use to get the user details from the windows 2000 active directory??? Has anyone got any idea how I retrieve the logged in username. Thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: determining which jdk tomcat is using
strange, tomcat still doesnt use use the jdk i specified in JAVA_HOME. i have 1.4 and 1.3 installed on my machine. i need tomcat to use 1.3, as defined in my environment variables. anyone have any ideas as to why it would still be using 1.4? -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:25 AM To: Tomcat Users List Subject: RE: determining which jdk tomcat is using Run the manager application - it lists the JVM version. -Original Message- From: KIESEL,JEFF (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 15:15 To: '[EMAIL PROTECTED]' Subject: determining which jdk tomcat is using hi all, i have multiple jdks installed on my machine(win2k). i have my JAVA_HOME environment variable set to the JDK want to use, and this is reflected in my Path environment variable as well. how can i be sure tomcat is using the jdk i want it to? is there a way to get tomcat to output this information? thanks, ~jeff - 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: determining which jdk tomcat is using
How are you starting Tomcat? Are you on a windows machine? The environment settings set in the System properties on NT/2000/XP don't affect already running cmd.exe windows. If you REALLY want control over a specific Tomcat instance, modify your catalina.bat/catalina.sh file to define a specific JAVA_HOME variable (right under the header comment block). The environment settings may impact other applications, so I always shy away from that. Good luck. - Original Message - From: KIESEL,JEFF (HP-NewJersey,ex2) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:37 AM Subject: RE: determining which jdk tomcat is using strange, tomcat still doesnt use use the jdk i specified in JAVA_HOME. i have 1.4 and 1.3 installed on my machine. i need tomcat to use 1.3, as defined in my environment variables. anyone have any ideas as to why it would still be using 1.4? -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:25 AM To: Tomcat Users List Subject: RE: determining which jdk tomcat is using Run the manager application - it lists the JVM version. -Original Message- From: KIESEL,JEFF (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 15:15 To: '[EMAIL PROTECTED]' Subject: determining which jdk tomcat is using hi all, i have multiple jdks installed on my machine(win2k). i have my JAVA_HOME environment variable set to the JDK want to use, and this is reflected in my Path environment variable as well. how can i be sure tomcat is using the jdk i want it to? is there a way to get tomcat to output this information? thanks, ~jeff - 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: determining which jdk tomcat is using
i've been running tomcat as an nt service, on a win 2k machine. i'll try modifying the cataline.bat script. i comtemplated doing this before, but it just seems there was something i was missing, a better way to do this. -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:48 AM To: Tomcat Users List Subject: Re: determining which jdk tomcat is using How are you starting Tomcat? Are you on a windows machine? The environment settings set in the System properties on NT/2000/XP don't affect already running cmd.exe windows. If you REALLY want control over a specific Tomcat instance, modify your catalina.bat/catalina.sh file to define a specific JAVA_HOME variable (right under the header comment block). The environment settings may impact other applications, so I always shy away from that. Good luck. - Original Message - From: KIESEL,JEFF (HP-NewJersey,ex2) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:37 AM Subject: RE: determining which jdk tomcat is using strange, tomcat still doesnt use use the jdk i specified in JAVA_HOME. i have 1.4 and 1.3 installed on my machine. i need tomcat to use 1.3, as defined in my environment variables. anyone have any ideas as to why it would still be using 1.4? -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:25 AM To: Tomcat Users List Subject: RE: determining which jdk tomcat is using Run the manager application - it lists the JVM version. -Original Message- From: KIESEL,JEFF (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 15:15 To: '[EMAIL PROTECTED]' Subject: determining which jdk tomcat is using hi all, i have multiple jdks installed on my machine(win2k). i have my JAVA_HOME environment variable set to the JDK want to use, and this is reflected in my Path environment variable as well. how can i be sure tomcat is using the jdk i want it to? is there a way to get tomcat to output this information? thanks, ~jeff - 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]
Re: determining which jdk tomcat is using
Are you setting user environment variables or system environment variables when you change JAVA_HOME? I think the NT service will use the system environment, since it's not necessarily associated with a user. Anyway, I would recommend against using the service actually. The batch files used to start/stop tomcat are simple to run and I have to restart A LOT. Good luck! - Original Message - From: KIESEL,JEFF (HP-NewJersey,ex2) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM Subject: RE: determining which jdk tomcat is using i've been running tomcat as an nt service, on a win 2k machine. i'll try modifying the cataline.bat script. i comtemplated doing this before, but it just seems there was something i was missing, a better way to do this. -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:48 AM To: Tomcat Users List Subject: Re: determining which jdk tomcat is using How are you starting Tomcat? Are you on a windows machine? The environment settings set in the System properties on NT/2000/XP don't affect already running cmd.exe windows. If you REALLY want control over a specific Tomcat instance, modify your catalina.bat/catalina.sh file to define a specific JAVA_HOME variable (right under the header comment block). The environment settings may impact other applications, so I always shy away from that. Good luck. - Original Message - From: KIESEL,JEFF (HP-NewJersey,ex2) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:37 AM Subject: RE: determining which jdk tomcat is using strange, tomcat still doesnt use use the jdk i specified in JAVA_HOME. i have 1.4 and 1.3 installed on my machine. i need tomcat to use 1.3, as defined in my environment variables. anyone have any ideas as to why it would still be using 1.4? -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:25 AM To: Tomcat Users List Subject: RE: determining which jdk tomcat is using Run the manager application - it lists the JVM version. -Original Message- From: KIESEL,JEFF (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 15:15 To: '[EMAIL PROTECTED]' Subject: determining which jdk tomcat is using hi all, i have multiple jdks installed on my machine(win2k). i have my JAVA_HOME environment variable set to the JDK want to use, and this is reflected in my Path environment variable as well. how can i be sure tomcat is using the jdk i want it to? is there a way to get tomcat to output this information? thanks, ~jeff - 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]
RE-POST: tomcat log error ?
Hi, On a production application (Tomcat 4.1.18/JDK-1.4.1_01) we have an intermittant error which leaves Tomcat in a state where it does not serve our homepage or anything else (bouncing Tomcat fixes the problem). The Tomcat log contains the following error below. It looks to me like there is a problem accessing a Tomcat log file but I am just guessing. The error appears in the 4teus_log.txt - as defined: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=4teus_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=4teus_log. suffix=.txt timestamp=true/ !-- Tomcat Root Context -- Context path= docBase= debug=0/ /Host Has anybody seen this before or can point me in the right direction to solve this. many thanks Dan ERROR: 2003-03-23 12:10:52 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.lang.NullPointerException at java.io.File.init(File.java:263) at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:880) at org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java :487) at org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java :797) at org.apache.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1 473) at org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java :1394) at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:300) at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.set(DefaultServlet. java:2267) at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.init(DefaultServl et.java:2219) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav a:921) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Re: [OT] Servlet process issue
Tam, Michael wrote: However, my concern was under the same request, if a client make a request to (A), which passes to(B) and (B) passes to (C) and so on, then a client could terminate the process by quitting the browser or stop the browser am I correct? If so, my question would be how to avoid the client to interfere the process after (A) is completed [If (A) is terminate before it is complete, then the entire process should terminate and it is ok]? If (A) is completed, then you should be fine since the request is complete and the client has no more input on the matter of what happens to the data sent in the request. If (A) is not completed, you may be left with a servlet in an invalid state (i.e. it has some information needed to perform its processing but not other information). You may need to write some code into your servlet to assure yourself that it does not try to call other Java code using incomplete information, such as some kind of validation. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Loadbuild Problem
Hi, Still doesn't work. In step 4, I don't see a servlet-api-2.4 subdirectory. Am I missing something? K. --- Filip Hanik [EMAIL PROTECTED] wrote: Subject: RE: Loadbuild Problem Date: Fri, 14 Mar 2003 13:38:46 -0800 From: Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] CC: [EMAIL PROTECTED] ok, I think I got it working I did four things: 1. and then in jakarta-tomcat-5 build.properties.default I set the property base.path=c:/development/tomcat-base this can be set to anything, as long as it is a absolute directory, 2. in jakarta-servletapi-5/jsr152 build.xml I changed the property to property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ 3. I built jsr154 cd \jakarta-servletapi-5\jsr154 ant 4. I copied one library \jakarta-servletapi-5\jsr154\servlet-api-2.4\lib\servlet-api.jar to \jakarta-servletapi-5\jsr152\servlet-api-2.4\lib\servlet-api.jar based on this, I think you can figure out what went wrong, I no longer have the full build error, just check out jakarta-tomcat-5 clean and you will reproduce it. Remy, setting it to /usr/local will not work :(, I'm working on windows, I'm sure I get flamed for that alone LOL Filip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:24 PM To: Tomcat Users List Subject: RE: Loadbuild Problem and there are more problems, I will let you know if I get it working FIlip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:21 PM To: Tomcat Users List Subject: RE: Loadbuild Problem the error is in jsr152/build.xml and the correct value is property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ Filip -Original Message- From: kevin carey [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:10 PM To: [EMAIL PROTECTED] Subject: Loadbuild Problem Hi, I'm building Tomcat from scratch using directions from http://jakarta.apache.org/tomcat/building.html I'm running JDK 1.4 on Linux. After about 3 hours, build fails with message: BUILD FAILED file:/home/kevin/apps/tomcat/src/jakarta-tomcat-5/build.xml:465: Basedir /home/kevin/apps/tomcat/src/jakarta-commons/el does not exist Any thoughts? newbie. __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
trouble configuring a web app outside Tomcat install directory
Hello, all, I'm having trouble with a web app I've located outside the Tomcat install directory: that is, under a webapps/ROOT/ directory that is not under /usr/local/tomcat/. I have my JSPs working fine, but I can't call servlets through the web browser: I get 404's. Quick background: Apache 2.0.44 and Tomcat 4.1.18 on Linux, mod_jk.so. I'll call my application site 'appsite.com' to protect the innocent: it's set up under /home/web/appsite.com/webapps/ROOT/. In my mod_jk.conf file, I have the servlet-specific JkMount directives JkMount /servlet ajp13 and JkMount /servlet/* ajp13. In server.xml, I have the following containers defined: Engine name=Tomcat-Apache-mod_jk defaultHost=www.appsite.com debug=0 Host name=www.appsite.com debug=1 appBase=/home/web/www.appsite.com/webapps Context path= docBase=ROOT debug=0/ The servlets are located in /home/web/appsite.com/webapps/ROOT/WEB-INF/classes/mypackage/. I'm trying to call them as http://www.appsite.com/servlet/mypackage.ServletX, and that's when I get the 404. Is there something else I need to do to map servlet to the webapps/ROOT/WEB-INF/classes directory of my site? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC Driver disappears when using Mod_WEBAPP
Soefara, I do not have your same setup, but I have seen that error when all was set up correctly and as per the JNDI How-To. Something else you will notice is if you completely remove (or comment out) your entire JNDI section (I think just in server.xml), you will get the exact same error. It is as if there are some combination of settings or circumstances under which Tomcat loses the setting. I dug around a lot with this and the differences between the 4.0 and 4.1 methods of setting up a JNDI datasource and when I thought I had the thing figured out, the error mysteriously stopped occuring. Please post if you fix this problem or it happens to stop being a problem as I am still leary of using JNDI due to this odd behavior. I know this doesn't make sense, but when I was getting this error (even though my server.xml settings and web.xml settings exactly matched the examples in the HOW-TO and I had no problems with 4.0) I noticed that there was one parameter name changed between the 4.0 and 4.1 docs. driverName became url. So I added (to my 4.1 configuration) driverName with the same value as url and I stopped getting the error and the JNDI datasource was working. I thought I had found the problem, but when I commented out driverName to make sure that was the problem, it still worked and has worked since. I'm still not sure what happened. ?? Good luck and I'd appreciate any reports on your findings. Colin -Original Message- From: Soefara Redzuan [SMTP:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 8:22 PM To: [EMAIL PROTECTED] Subject: Re: JDBC Driver disappears when using Mod_WEBAPP Sorry, just realized the title should have read JDBC driver disappears when using mod_webapp. From: Soefara Redzuan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JDBC Driver disappears when using Mod_jk ! Dear Sirs, This is truly bizarre. I've been runing Apache+mod_webapp in front of one of our websites for quite a time now and it has worked fine for serving up JSP pages. So, the Apache-mod_webapp-Tomcat communication seems to be working OK. I recently added a JNDI datasource to the Tomcat web application. The datasource is configured perfectly, as proven with the useful servlet (below) which we always use to test JNDI datasource connections. ie. http://www.oursite.com:8080/ourapp/TestDb?jndi=jdbc/dbname reports that we successfully created a database connection from the JNDI datasource. However, when we now try to access via mod_webapp ie. http://www.oursite.com/ourapp/TestDb?jndi=jdbc/dbname it reports an error message Cannot load JDBC driver class 'null' How can this be ??? Apache+mod_webapp has been proven to be configured properly since we've been serving up JSP from this webapp for months. When connecting directly to Tomcat on port 8080, the JNDI resource does indeed exist and we can create the connection so the JDBC driver must exist too (and it does) ! Why does the JDBC driver seem to disappear when using mod_webapp??? I hope somebody can shed some light on this. Thank you in advance, Soefara. ps. here's the servlet we use for testing JNDI datasource connections, maybe some of you will find it useful. -- import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import java.sql.*; import javax.sql.*; import javax.naming.*; public class DbHandlerDebug extends HttpServlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Connection conn = null; String jndiName = request.getParameter(jndi); response.setContentType(text/html); PrintWriter out = new PrintWriter(response.getOutputStream() ); out.println(htmlbodyh3Test JNDI/h3); Context ctx = null; DataSource ds = null; if (jndiName == null) { out.println(font color=#ffpUsage : send argument 'jndi'. br eg. /servlet/TestDB?jndi=jdbc/ourdb); } try { ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup(java:/comp/env/); out.println(liRetrieved Context); ds = (DataSource) envCtx.lookup(jndiName); out.println(liObtained Datasource); conn = ds.getConnection(); out.println(liGot Connection); out.println(h3OK :-)/h3); } catch (NamingException e) { out.println(Failed to get datasource from context : + e.getMessage()); } catch (SQLException e) { out.println(Failed to get DB connection : + e.getMessage()); } catch (Exception e) { out.println(Unexpected error : + e.getMessage()); } out.flush(); } }
correction: trouble configuring a web app outside Tomcat install directory
I put a typo in my last message: the host element I listed is actually Host name=www.appsite.com debug=1 appBase=/home/web/appsite.com/webapps Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 Problem
Good day, Just wondering if anyone at all has successfully gotten mod_jk2 to work between Apache and Tomcat on W2K. I have installed Apache 2.0.43 right out of the box and Tomcat 4.1.24 here at the office. jk2.properties is as it comes in the installation. worker2.properties is as follows # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp I get the following in the apache error logs [Wed Feb 05 10:31:23 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Feb 05 10:31:23 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Feb 05 10:31:23 2003] [error] lb.service() unrecoverable error... [Wed Feb 05 10:31:23 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Feb 05 10:38:19 2003] [error] lb.getWorker() reenable ajp13:localhost:8009 [Wed Feb 05 10:38:19 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Feb 05 10:38:19 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Feb 05 10:38:19 2003] [error] lb.service() unrecoverable error... [Wed Feb 05 10:38:19 2003] [error] mod_jk.handler() Error connecting to tomcat 12 What is wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: trouble configuring a web app outside Tomcat install directory
hi did you add the servlets to your web.xml (using the servlet and servlet-mapping elements)? -Original Message- From: Michael Harrison [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 10:59 AM To: tomcat-user Subject: trouble configuring a web app outside Tomcat install directory Hello, all, I'm having trouble with a web app I've located outside the Tomcat install directory: that is, under a webapps/ROOT/ directory that is not under /usr/local/tomcat/. I have my JSPs working fine, but I can't call servlets through the web browser: I get 404's. Quick background: Apache 2.0.44 and Tomcat 4.1.18 on Linux, mod_jk.so. I'll call my application site 'appsite.com' to protect the innocent: it's set up under /home/web/appsite.com/webapps/ROOT/. In my mod_jk.conf file, I have the servlet-specific JkMount directives JkMount /servlet ajp13 and JkMount /servlet/* ajp13. In server.xml, I have the following containers defined: Engine name=Tomcat-Apache-mod_jk defaultHost=www.appsite.com debug=0 Host name=www.appsite.com debug=1 appBase=/home/web/www.appsite.com/webapps Context path= docBase=ROOT debug=0/ The servlets are located in /home/web/appsite.com/webapps/ROOT/WEB-INF/classes/mypackage/. I'm trying to call them as http://www.appsite.com/servlet/mypackage.ServletX, and that's when I get the 404. Is there something else I need to do to map servlet to the webapps/ROOT/WEB-INF/classes directory of my site? - 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]
JDBCRealm w/ Apache, How to???
Hi, I am perplexed at this interesting problem. We want to use JDBCRealm to authenticate users in Tomcat, but yet we want to serve static stuff via Apache to improve performance (we have a lot of static material behind authentication). If we set up Tomcat as a worker for Apache using the JK2 connector, I don't see how requests for static files are going to be authenticated via JDBCRealm, since Tomcat doesn't even know about these static requests in the first place due to the fact that Apache handles them right away without dispatching them to Tomcat. I'm thinking that if we could somehow set up Apache to be a worker for Tomcat, and Tomcat received all requests and dispatched those that are static to Apache, then all requests would be authenticated via JDBCRealm. But I don't know how to do that neither if this is possible at all. Do you have any ideas on how to authenticate every request with JDBCRealm yet serve only static stuff with Apache. Thanks, Mete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBCRealm w/ Apache, How to???
The real question is how big of a performance problem is the DefaultServlet in Tomcat compared to Apache. Are you REALLY losing THAT much performance by letting the DefaultServlet serve those static files? Is it necessary? - Original Message - From: Mete Kural [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:20 AM Subject: JDBCRealm w/ Apache, How to??? Hi, I am perplexed at this interesting problem. We want to use JDBCRealm to authenticate users in Tomcat, but yet we want to serve static stuff via Apache to improve performance (we have a lot of static material behind authentication). If we set up Tomcat as a worker for Apache using the JK2 connector, I don't see how requests for static files are going to be authenticated via JDBCRealm, since Tomcat doesn't even know about these static requests in the first place due to the fact that Apache handles them right away without dispatching them to Tomcat. I'm thinking that if we could somehow set up Apache to be a worker for Tomcat, and Tomcat received all requests and dispatched those that are static to Apache, then all requests would be authenticated via JDBCRealm. But I don't know how to do that neither if this is possible at all. Do you have any ideas on how to authenticate every request with JDBCRealm yet serve only static stuff with Apache. Thanks, Mete - 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 4.1.18, apache 2.0.43, mod_jk 2.0.43
I've just gone back to using tomcat 4.1.12 and I still get the same problem. It must be something to do with the apache or mod_jk versions rather than tomcat itself. I run tomcat 4.1.12 with apache 1.3.22 on a different server with no problems. I'm tempted to go back to Apache 1.3.x but it seems a great pity! -Original Message- From: Ivan F. Martinez [mailto:[EMAIL PROTECTED] Sent: 22 March 2003 03:03 To: Tomcat Users List Subject: Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43 On Fri, 21 Mar 2003 13:50:41 - Marion McKelvie [EMAIL PROTECTED] wrote: MM Ivan, MM MM Thanks for your reply. When you restart Apache, do the threads just build MM up again? Yes, tomcat gives a lot of messages like this : 512488 [Thread-73] INFO common.ChannelSocket - server has been restarted or reset this connection And it returns to work for some time again. Apparently tomcat or mod_jk does not close the connection after serving the request. MM If you can't see any difference between the two configurations, do you think MM there may be a difference between the libraries being used? I'm checked better, and the difference is : Case when works (USING 2 MACHINES): RedHat 8, Apache 2.0.40 RedHat 7.3 Tomcat 4.1.18 Case when I have problems RedHat 8, Apache 2.0.40 Tomcat 4.1.18 (SAME MACHINE) The 2 use the same SUN SDK 1.4.1-01 But I have tried today many combinations in the single machine : SUNSDK 1.4.1, IBM SDK 1.3, 1.3.1, 1.4. Apache 2.0.40 and 2.0.43 Tomcat 4.1.18 and 4.1.24 All configurations have the same problem. All machines have up to date , kernels from redhat. And all other updates. Last week I have made some tests with mod_jk2 with same problem. MM Marion MM MM -Original Message- MM From: Ivan F. Martinez [mailto:[EMAIL PROTECTED] MM Sent: 21 March 2003 12:59 MM To: Tomcat Users List MM Subject: Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43 MM MM MM MM On Thu, 20 Mar 2003 09:40:14 - MM Marion McKelvie [EMAIL PROTECTED] wrote: MM MM MM Hello again, MM MM MM MM Is anyone running with the combination of Tomcat 4.1.18, Apache 2.0.43 MM and MM MM mod_jk 2.0.43 on Redhat 8? MM MM MM MM I have one machine that works fine, and other with same problem as you. MM When you restart apache everything works again. MM MM I have tested with mod_jk and mod_jk2. MM MM I didn't find the difference between the two machines. MM MM MM Marion MM MM MM MM -Original Message- MM MM From: Marion McKelvie [mailto:[EMAIL PROTECTED] MM MM Sent: 19 March 2003 10:38 MM MM To: [EMAIL PROTECTED] MM MM Subject: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43 MM MM MM MM MM MM Hi, MM MM MM MM I have an installation using Tomcat 4.1.18, Apache 2.0.43 and mod_jk MM 2.0.43 MM MM running on Redhat 8, all installed from rpms as executables (no building MM MM from source). MM MM MM MM Everything works fine for a while until I get the following error in MM MM catalina.out MM MM MM MM 19-Mar-2003 10:00:20 org.apache.tomcat.util.log.CommonLogHandler log MM MM INFO: All threads are busy, waiting. Please increase maxThreads or check MM the MM MM servlet sttus75 75 MM MM MM MM I can get this error just by playing with the Tomcat examples for long MM MM enough (presumably after 75 activities). It's a bit like each thread is MM not MM MM being released after it's used. I have a comparable installation which MM runs MM MM without problems but it's using Tomcat 4.1.12 with Apache 1.3.22. MM MM MM MM Server.xml is pretty much as installed by default (I've commented out MM the MM MM 8080 connector) so it's using the Coyote connector: MM MM MM MM Connector className=org.apache.coyote.tomcat4.CoyoteConnector MM MMport=8009 minProcessors=5 maxProcessors=75 MM MMenableLookups=true redirectPort=8443 MM MMacceptCount=10 debug=0 connectionTimeout=0 MM MMuseURIValidationHack=false MM MM MM MM protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ MM MM MM MM If I change the timeout to 2, catalina.out reports that the timeout MM has MM MM been reached. MM MM MM MM workers.properties is as installed by default except that I've corrected MM the MM MM java_home path. MM MM MM MM mod_jk.conf is as follows MM MM MM MM JkWorkersFile /etc/httpd/conf/workers.properties MM MM JkLogFile /var/log/httpd/mod_jk.log MM MM JkLogLevel error MM MM MM MM MM MM # MM MM # Root context mounts for Tomcat MM MM # MM MM JkMount /*.jsp ajp13 MM MM JkMount /servlet/* ajp13 MM MM MM MM # MM MM # Auto configuration for the /examples context starts. MM MM # MM MM MM MM # MM MM # The following line makes apache aware of the location of the /examples MM MM context MM MM # MM MM Alias /examples /var/tomcat4/webapps/examples MM MM Directory /var/tomcat4/webapps/examples MM MM Options Indexes FollowSymLinks MM MM /Directory MM MM MM MM # MM MM # The
RE: JDBCRealm w/ Apache, How to???
I'm with you on this request. I'm currently just serving static content with Tomcat, but luckily the traffic for this content is low. It seems this would require an Apache mod that integrated with the Tomcat Realm system, at least requiring Apache authentication and module building knowledge as well as some method of integrating with Tomcat through that mod. I, unfortunately, do not have the time to research and build such a module :( -Original Message- From: Mete Kural [SMTP:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:21 AM To: Tomcat Users List Subject: JDBCRealm w/ Apache, How to??? Hi, I am perplexed at this interesting problem. We want to use JDBCRealm to authenticate users in Tomcat, but yet we want to serve static stuff via Apache to improve performance (we have a lot of static material behind authentication). If we set up Tomcat as a worker for Apache using the JK2 connector, I don't see how requests for static files are going to be authenticated via JDBCRealm, since Tomcat doesn't even know about these static requests in the first place due to the fact that Apache handles them right away without dispatching them to Tomcat. I'm thinking that if we could somehow set up Apache to be a worker for Tomcat, and Tomcat received all requests and dispatched those that are static to Apache, then all requests would be authenticated via JDBCRealm. But I don't know how to do that neither if this is possible at all. Do you have any ideas on how to authenticate every request with JDBCRealm yet serve only static stuff with Apache. Thanks, Mete - 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: Connection drops with tomcat-based game server (very shortversion)
One other suggestion: You might try putting Apache in front of the Tomcat to see if it still drops the connections. If the behavior stops, it might be something in the httpd connector. If the behavior persists, then I would look at the app or, more likely, the other network access (is there firewalls? VPN? some weird network setup?). Ben On Fri, 2003-03-21 at 13:51, Wouter Bijlsma wrote: There's nothing in the logfiles (we are only using catalina.out) that would suggest that Tomcat even knows about a connection problem. The server just goes on as if nothing happened, but the messages it sends to the 'dead client' are never delivered. This might indeed be a load/config issue, although some users experienced the problem even when only 3 users were logged in. The confusing part is that we just cannot reproduce the bug on a fast network (not even with 15 users logged in), while neither the client nor the server use time-sensitive code for sending or receiving messages. We are using tomcat 4.0.6 on a Debian/testing linux machine, kernel version 2.4.20 Wouter Bijlsma On 21 Mar 2003 13:16:19 -0600 Ben Ricker [EMAIL PROTECTED] wrote: Sounds like a load issue coupled with a config issue. How about some logs entries? DO you see anything in the logs you setup? Catalina.out? Context log? Also, some idea what OS and version would also be helpful. It is nearly impossible to tell (at least for me). Ben Ricker On Fri, 2003-03-21 at 13:01, Wouter Bijlsma wrote: Is it possible that tomcat sometimes randomly kills a request, does not process a request or queues a request indefinitely, thereby blocking a client that tries to read back the response to its request? Could this be possible when a servlet communicates with the clients using only raw data and InputStreams/OutputStreams? And: is it a good idea to develop a game server for playing games like chess, chequers or draughts with tomcat, considering the fact that tomcats main purpose is to act as web application server using a strict request-response paradigm. Is it safe to assume that every request made by a client always yields a proper response, also when using raw data transfers? Also when there's a really high volume of requests to a single servlet? Don't get me wrong: I do *not* think there's something wrong with tomcat! As a matter of fact I have really good experiences with it using it for web applications!! Kind Regards, Wouter Bijlsma, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.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] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual hosts mod_jk2 and workers2 mount points
After some trying I got the virtual host configuration to work in mod_jk2. However, it seems that I'm not allowed to map two virtual hosts to the same context. Is that correct and is there a work around? Below is the the snippet from my workers2.properties file: (bat02.foo.edu works, but bat01.foo.edu doesn't) --workers2.properties file-- [uri:bat01.foo.edu/vex1/*] info=vex examples will be used context=/vex [uri:bat02.foo.edu/vex/*] info=vex examples will be used context=/vex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Windows 2000 Authentication Integration
Hi , Thanks for the help. Correct if i am wrong ,but getRemoteUser() simply returns the REMOTE_USER cgi header. In windows 2000 which uses kerberos authentication that value is set to null when IIS is set to use NT authentication? I was under the impression that I would need to somehow decode the token Negotiate TlRMTVNTUAADGAAYAFgYABgAcAgACABACAAIAEgIAAgAUACI BYKAoFMATwBMAE8ASABhAG4AcwBTAE8ATABPAJ2pRGfJ0YtxkZH3SSUlrorf0IhAO24Dnzc7 ioGGMJ8o7bSHEZ9M28GKpQosqYHjnA And then access the active directory...?? Thanks -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 06:30 To: Tomcat Users List Subject: Re: Windows 2000 Authentication Integration You should be able to get it via request.getRemoteUser(). However, note that when using the JK connectors, you will have to tell Tomcat whether it should get the remote user from the JK environment or from within Tomcat. When using Tomcat with Apache, that is done via adding the following to the jk2.properties file... request.tomcatAuthentication=false I believe this will also work for the IIS connector. See this resolved bug for details...http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12196 Jake At 02:50 PM 3/24/2003 -0800, you wrote: Hi, I have searched the archives and have not managed to find a decent answer for this. The users of an intranet are already logged into the windows domain. I need to retrieve the currently logged in user name from my java web application. 1) I am integrating IIS and tomcat using the isapi redirector. 2) using IIS 5.0 and Windows 2000 Server 3) I have set the IIS security to NT Authentication. The response variable that gets set is authenticate with a value of TlRMTVNTUAADGAAYAFgYABgAcAgACABACAAIAEgIAAgAUAC I BYKAoFMATwBMAE8ASABhAG4AcwBTAE8ATABPAOgkx0G8QbgJhRZRc0xo40R8cUWsA6X0SQ9 M cj7FIOa2dRLjARCYlxSI3eGrqD12jW I assume this is some kind of base 64 encoded token which i need to use to get the user details from the windows 2000 active directory??? Has anyone got any idea how I retrieve the logged in username. Thanks Hans - 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: trouble configuring a web app outside Tomcat install directory
I think the docBase tag in your Context might be Tomcat-home-relative. Try an absolute path (that's how I have it set up and working with apps outside Tomcat home). -Original Message- From: Michael Harrison [SMTP:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: tomcat-user Subject: trouble configuring a web app outside Tomcat install directory Hello, all, I'm having trouble with a web app I've located outside the Tomcat install directory: that is, under a webapps/ROOT/ directory that is not under /usr/local/tomcat/. I have my JSPs working fine, but I can't call servlets through the web browser: I get 404's. Quick background: Apache 2.0.44 and Tomcat 4.1.18 on Linux, mod_jk.so. I'll call my application site 'appsite.com' to protect the innocent: it's set up under /home/web/appsite.com/webapps/ROOT/. In my mod_jk.conf file, I have the servlet-specific JkMount directives JkMount /servlet ajp13 and JkMount /servlet/* ajp13. In server.xml, I have the following containers defined: Engine name=Tomcat-Apache-mod_jk defaultHost=www.appsite.com debug=0 Host name=www.appsite.com debug=1 appBase=/home/web/www.appsite.com/webapps Context path= docBase=ROOT debug=0/ The servlets are located in /home/web/appsite.com/webapps/ROOT/WEB-INF/classes/mypackage/. I'm trying to call them as http://www.appsite.com/servlet/mypackage.ServletX, and that's when I get the 404. Is there something else I need to do to map servlet to the webapps/ROOT/WEB-INF/classes directory of my site? - 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: trouble configuring a web app outside Tomcat install director y
AFAIK, the Context docBase is relative to the Host's appBase unless declared explicitly. John On Mon, 24 Mar 2003 10:43:19 -0600, Madere, Colin [EMAIL PROTECTED] wrote: I think the docBase tag in your Context might be Tomcat-home-relative. Try an absolute path (that's how I have it set up and working with apps outside Tomcat home). -Original Message- From: Michael Harrison [SMTP:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: tomcat-user Subject:trouble configuring a web app outside Tomcat install directory Hello, all, I'm having trouble with a web app I've located outside the Tomcat install directory: that is, under a webapps/ROOT/ directory that is not under /usr/local/tomcat/. I have my JSPs working fine, but I can't call servlets through the web browser: I get 404's. Quick background: Apache 2.0.44 and Tomcat 4.1.18 on Linux, mod_jk.so. I'll call my application site 'appsite.com' to protect the innocent: it's set up under /home/web/appsite.com/webapps/ROOT/. In my mod_jk.conf file, I have the servlet-specific JkMount directives JkMount /servlet ajp13 and JkMount /servlet/* ajp13. In server.xml, I have the following containers defined: Engine name=Tomcat-Apache-mod_jk defaultHost=www.appsite.com debug=0 Host name=www.appsite.com debug=1 appBase=/home/web/www.appsite.com/webapps Context path= docBase=ROOT debug=0/ The servlets are located in /home/web/appsite.com/webapps/ROOT/WEB-INF/classes/mypackage/. I'm trying to call them as http://www.appsite.com/servlet/mypackage.ServletX, and that's when I get the 404. Is there something else I need to do to map servlet to the webapps/ROOT/WEB-INF/classes directory of my site? - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk fail-over setup w/ apache 1.3, tomcat 4.0.x, debian linux
FYI.. There is a doc on how to setup: Apache 1.3, Tomcat 4.0.x, mod_jk, fail-over/back setup on Linux (Debian3.0-woody) at http://www.yorku.ca/dkha/tomcat/docs/apache-tomcat-modjk.htm Hopefully it will be useful to someone. Regards, Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBCRealm w/ Apache, How to???
Thanks for your email. The answer to the question as to how much of a performance gain we would get by integrating Apache is something that I don't fully understand. I always hear people saying that if you have a lot of static requests, Apache will give you a performance boost compared to HTTP connector in Tomcat. I personally like simplicity and would like it better not having to connect Tomcat to Apache, even if it may be at the cost of a little bit of performance. We're building this web application for a client and right now the client is using Apache in conjunction with Tomcat. The static stuff I'm talking about are being served by Apache right now. If I could convince them that it wouldn't cause a performance problem if we ported all that static material into Tomcat, then I'd rather go that way. Do you have any ideas on how I could make that case? And also are there ways to improve Tomcat's performance of serving static files? Thanks, Mete -- Original Message -- From: James Carman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Mon, 24 Mar 2003 11:21:15 -0500 The real question is how big of a performance problem is the DefaultServlet in Tomcat compared to Apache. Are you REALLY losing THAT much performance by letting the DefaultServlet serve those static files? Is it necessary? - Original Message - From: Mete Kural [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:20 AM Subject: JDBCRealm w/ Apache, How to??? Hi, I am perplexed at this interesting problem. We want to use JDBCRealm to authenticate users in Tomcat, but yet we want to serve static stuff via Apache to improve performance (we have a lot of static material behind authentication). If we set up Tomcat as a worker for Apache using the JK2 connector, I don't see how requests for static files are going to be authenticated via JDBCRealm, since Tomcat doesn't even know about these static requests in the first place due to the fact that Apache handles them right away without dispatching them to Tomcat. I'm thinking that if we could somehow set up Apache to be a worker for Tomcat, and Tomcat received all requests and dispatched those that are static to Apache, then all requests would be authenticated via JDBCRealm. But I don't know how to do that neither if this is possible at all. Do you have any ideas on how to authenticate every request with JDBCRealm yet serve only static stuff with Apache. Thanks, Mete - 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: Loadbuild Problem
I had a problem similar to this a few days ago. Recent changes to the tomcat-5 build.xml fixed things for me. I did a full clean rebuild and it all worked fine. BTW, setting /usr/local/ as a path under window is no problem. Ant is smart enough to take this to mean [whatever drive you are on]:/usr/local. So, for instance, since my build is being done on drive D, the following directory was created... D:\usr\local Works just fine. Note I am using Win2k (sp3). BTW, when I did the clean build, I manually deleted all directories that were previously generated under usr/local and all the other directories that were created by doing CVS checkout. Maybe clean should clean up everything? Jake At 07:28 AM 3/24/2003 -0800, you wrote: Hi, Still doesn't work. In step 4, I don't see a servlet-api-2.4 subdirectory. Am I missing something? K. --- Filip Hanik [EMAIL PROTECTED] wrote: Subject: RE: Loadbuild Problem Date: Fri, 14 Mar 2003 13:38:46 -0800 From: Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] CC: [EMAIL PROTECTED] ok, I think I got it working I did four things: 1. and then in jakarta-tomcat-5 build.properties.default I set the property base.path=c:/development/tomcat-base this can be set to anything, as long as it is a absolute directory, 2. in jakarta-servletapi-5/jsr152 build.xml I changed the property to property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ 3. I built jsr154 cd \jakarta-servletapi-5\jsr154 ant 4. I copied one library \jakarta-servletapi-5\jsr154\servlet-api-2.4\lib\servlet-api.jar to \jakarta-servletapi-5\jsr152\servlet-api-2.4\lib\servlet-api.jar based on this, I think you can figure out what went wrong, I no longer have the full build error, just check out jakarta-tomcat-5 clean and you will reproduce it. Remy, setting it to /usr/local will not work :(, I'm working on windows, I'm sure I get flamed for that alone LOL Filip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:24 PM To: Tomcat Users List Subject: RE: Loadbuild Problem and there are more problems, I will let you know if I get it working FIlip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:21 PM To: Tomcat Users List Subject: RE: Loadbuild Problem the error is in jsr152/build.xml and the correct value is property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ Filip -Original Message- From: kevin carey [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:10 PM To: [EMAIL PROTECTED] Subject: Loadbuild Problem Hi, I'm building Tomcat from scratch using directions from http://jakarta.apache.org/tomcat/building.html I'm running JDK 1.4 on Linux. After about 3 hours, build fails with message: BUILD FAILED file:/home/kevin/apps/tomcat/src/jakarta-tomcat-5/build.xml:465: Basedir /home/kevin/apps/tomcat/src/jakarta-commons/el does not exist Any thoughts? newbie. __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.24 and Coyote JK2 Connector
I've upgraded this morning to Tomcat 4.1.24 from 4.1.18. On 4.1.18, I was connecting to Apache using the following configuration in server.xml: Connector className=org.apache.ajp.tomcat4.Ajp13Connector acceptCount=10 bufferSize=2048 connectionLinger=-1 connectionTimeout=-1 debug=0 enableLookups=false maxProcessors=75 minProcessors=5 port=11009 redirectPort=-1 scheme=http secure=false tomcatAuthentication=true I tried moving to the newer connector for Tomcat 4.1.24: !-- 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/ But I get the following message in my log file. If this is not an issue (which I don't think it is b/c it's an INFO), how do I turn this log message off? Mar 24, 2003 10:42:40 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Do I just set the connectionTimeout to -1? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBCRealm w/ Apache, How to???
Hi Colin, Did you figure out ways to make Tomcat's static file serving capabilities more performant? Any suggestions? -Mete -- Original Message -- From: Madere, Colin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Mon, 24 Mar 2003 10:25:23 -0600 I'm with you on this request. I'm currently just serving static content with Tomcat, but luckily the traffic for this content is low. It seems this would require an Apache mod that integrated with the Tomcat Realm system, at least requiring Apache authentication and module building knowledge as well as some method of integrating with Tomcat through that mod. I, unfortunately, do not have the time to research and build such a module :( -Original Message- From:Mete Kural [SMTP:[EMAIL PROTECTED] Sent:Monday, March 24, 2003 2:21 AM To: Tomcat Users List Subject: JDBCRealm w/ Apache, How to??? Hi, I am perplexed at this interesting problem. We want to use JDBCRealm to authenticate users in Tomcat, but yet we want to serve static stuff via Apache to improve performance (we have a lot of static material behind authentication). If we set up Tomcat as a worker for Apache using the JK2 connector, I don't see how requests for static files are going to be authenticated via JDBCRealm, since Tomcat doesn't even know about these static requests in the first place due to the fact that Apache handles them right away without dispatching them to Tomcat. I'm thinking that if we could somehow set up Apache to be a worker for Tomcat, and Tomcat received all requests and dispatched those that are static to Apache, then all requests would be authenticated via JDBCRealm. But I don't know how to do that neither if this is possible at all. Do you have any ideas on how to authenticate every request with JDBCRealm yet serve only static stuff with Apache. Thanks, Mete - 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]
Too many processes
I'm running tomcat in a Red Hat 7.2. It works well when it is started, but it starts too many concurrent processes and it starts using more and more memory until it reaches 31% of my computer's memory. How can I configure Tomcat to run less concurrent processes and without using so much memory? This is the output of ps -aux root 21983 27.2 15.6 243620 39724 pts/0 S14:39 0:19 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21984 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21985 4.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21986 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21987 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21988 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21989 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21990 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21991 5.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21993 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21994 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21995 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21996 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22002 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22003 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22004 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22005 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22006 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22007 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22008 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22009 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22010 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22011 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22012 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22013 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22014 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22015 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22016 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22017 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22018 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22019 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22020 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22021 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22022 0.5 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22023 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22024 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22025 0.3 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java
RE: Too many processes
I believe on Linux, each process is a thread. So tomcat only starts one process, but the PS command will list all the threads as separate processes. So there is nothing to worry about. If you want tomcat to use less memory, you can always configure the -ms -mx parameters in catalina.sh Filip -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: Too many processes I'm running tomcat in a Red Hat 7.2. It works well when it is started, but it starts too many concurrent processes and it starts using more and more memory until it reaches 31% of my computer's memory. How can I configure Tomcat to run less concurrent processes and without using so much memory? This is the output of ps -aux root 21983 27.2 15.6 243620 39724 pts/0 S14:39 0:19 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21984 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21985 4.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21986 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21987 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21988 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21989 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21990 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21991 5.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21993 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21994 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21995 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21996 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22002 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22003 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22004 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22005 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22006 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22007 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22008 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22009 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22010 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22011 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22012 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22013 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22014 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22015 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22016 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22017 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22018 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22019 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22020 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22021 0.0 15.6 243620 39724 pts/0 S14:40
Re: Tomcat 4.1.24 and Coyote JK2 Connector
Not sure about your specific problem, but I noticed you had tomcatAuthentication=true on your old AJP13Connector config. That config has been moved to the jk2.properties file for both mod_jk and jk2. Just add the following to your jk2.properties request.tomcatAuthentication=true actually, since it is currently set to true, you don't even need to specify it, but if you did want to get the remote user from the connectors rather than Tomcat, then do... request.tomcatAuthentication=false Just thought you might want to know that. Jake At 10:45 AM 3/24/2003 -0700, you wrote: I've upgraded this morning to Tomcat 4.1.24 from 4.1.18. On 4.1.18, I was connecting to Apache using the following configuration in server.xml: Connector className=org.apache.ajp.tomcat4.Ajp13Connector acceptCount=10 bufferSize=2048 connectionLinger=-1 connectionTimeout=-1 debug=0 enableLookups=false maxProcessors=75 minProcessors=5 port=11009 redirectPort=-1 scheme=http secure=false tomcatAuthentication=true I tried moving to the newer connector for Tomcat 4.1.24: !-- 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/ But I get the following message in my log file. If this is not an issue (which I don't think it is b/c it's an INFO), how do I turn this log message off? Mar 24, 2003 10:42:40 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Do I just set the connectionTimeout to -1? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat)
Tomcat 4.1.18 LE Apache 1.3.26 Solaris 9 JDK 1.4.1_01 Richie -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 5:28 AM To: Tomcat Users List Subject: Re: tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat) What version of Tomcat? For 4.1.x, you need to add Listener elements to server.xml. See steps 1, 2, and 3 in the Final Configuration section of my RH HOWTO: http://www.johnturner.com/howto John On Sun, 23 Mar 2003 15:30:21 -0800, Richie Chauhan [EMAIL PROTECTED] wrote: Hello, I can't seem to figure out what needs to be done on the tomcat side to get the Apache Auto configuration file TOMCAT_HOME/conf/jk/mod_jk.conf-auto The mod_jk documentation says This file is created by enabling the Apache auto-configuration as described in the Tomcat documentation - but I can't find any reference to this in the tomcat documentation. When I try to to Include this file in httpd.conf I get the following error: httpd: could not open document config file /usr/local/jakarta-tomcat/conf/jk/mod_jk.conf-auto Which makes sense as the file is not there. Please Help! Richie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: Loadbuild Problem
Has anyone one gotten a 'from scratch' build to work on Linux? Kevin. --- Jacob Kjome [EMAIL PROTECTED] wrote: I had a problem similar to this a few days ago. Recent changes to the tomcat-5 build.xml fixed things for me. I did a full clean rebuild and it all worked fine. BTW, setting /usr/local/ as a path under window is no problem. Ant is smart enough to take this to mean [whatever drive you are on]:/usr/local. So, for instance, since my build is being done on drive D, the following directory was created... D:\usr\local Works just fine. Note I am using Win2k (sp3). BTW, when I did the clean build, I manually deleted all directories that were previously generated under usr/local and all the other directories that were created by doing CVS checkout. Maybe clean should clean up everything? Jake At 07:28 AM 3/24/2003 -0800, you wrote: Hi, Still doesn't work. In step 4, I don't see a servlet-api-2.4 subdirectory. Am I missing something? K. --- Filip Hanik [EMAIL PROTECTED] wrote: Subject: RE: Loadbuild Problem Date: Fri, 14 Mar 2003 13:38:46 -0800 From: Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] CC: [EMAIL PROTECTED] ok, I think I got it working I did four things: 1. and then in jakarta-tomcat-5 build.properties.default I set the property base.path=c:/development/tomcat-base this can be set to anything, as long as it is a absolute directory, 2. in jakarta-servletapi-5/jsr152 build.xml I changed the property to property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ 3. I built jsr154 cd \jakarta-servletapi-5\jsr154 ant 4. I copied one library \jakarta-servletapi-5\jsr154\servlet-api-2.4\lib\servlet-api.jar to \jakarta-servletapi-5\jsr152\servlet-api-2.4\lib\servlet-api.jar based on this, I think you can figure out what went wrong, I no longer have the full build error, just check out jakarta-tomcat-5 clean and you will reproduce it. Remy, setting it to /usr/local will not work :(, I'm working on windows, I'm sure I get flamed for that alone LOL Filip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:24 PM To: Tomcat Users List Subject: RE: Loadbuild Problem and there are more problems, I will let you know if I get it working FIlip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:21 PM To: Tomcat Users List Subject: RE: Loadbuild Problem the error is in jsr152/build.xml and the correct value is property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ Filip -Original Message- From: kevin carey [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:10 PM To: [EMAIL PROTECTED] Subject: Loadbuild Problem Hi, I'm building Tomcat from scratch using directions from http://jakarta.apache.org/tomcat/building.html I'm running JDK 1.4 on Linux. After about 3 hours, build fails with message: BUILD FAILED file:/home/kevin/apps/tomcat/src/jakarta-tomcat-5/build.xml:465: Basedir /home/kevin/apps/tomcat/src/jakarta-commons/el does not exist Any thoughts? newbie. __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.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: === message truncated === __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Loadbuild Problem
search the archives, I posted the steps in there before Filip -Original Message- From: kevin carey [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 10:10 AM To: Tomcat Users List Subject: RE: Loadbuild Problem Has anyone one gotten a 'from scratch' build to work on Linux? Kevin. --- Jacob Kjome [EMAIL PROTECTED] wrote: I had a problem similar to this a few days ago. Recent changes to the tomcat-5 build.xml fixed things for me. I did a full clean rebuild and it all worked fine. BTW, setting /usr/local/ as a path under window is no problem. Ant is smart enough to take this to mean [whatever drive you are on]:/usr/local. So, for instance, since my build is being done on drive D, the following directory was created... D:\usr\local Works just fine. Note I am using Win2k (sp3). BTW, when I did the clean build, I manually deleted all directories that were previously generated under usr/local and all the other directories that were created by doing CVS checkout. Maybe clean should clean up everything? Jake At 07:28 AM 3/24/2003 -0800, you wrote: Hi, Still doesn't work. In step 4, I don't see a servlet-api-2.4 subdirectory. Am I missing something? K. --- Filip Hanik [EMAIL PROTECTED] wrote: Subject: RE: Loadbuild Problem Date: Fri, 14 Mar 2003 13:38:46 -0800 From: Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] CC: [EMAIL PROTECTED] ok, I think I got it working I did four things: 1. and then in jakarta-tomcat-5 build.properties.default I set the property base.path=c:/development/tomcat-base this can be set to anything, as long as it is a absolute directory, 2. in jakarta-servletapi-5/jsr152 build.xml I changed the property to property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ 3. I built jsr154 cd \jakarta-servletapi-5\jsr154 ant 4. I copied one library \jakarta-servletapi-5\jsr154\servlet-api-2.4\lib\servlet-api.jar to \jakarta-servletapi-5\jsr152\servlet-api-2.4\lib\servlet-api.jar based on this, I think you can figure out what went wrong, I no longer have the full build error, just check out jakarta-tomcat-5 clean and you will reproduce it. Remy, setting it to /usr/local will not work :(, I'm working on windows, I'm sure I get flamed for that alone LOL Filip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:24 PM To: Tomcat Users List Subject: RE: Loadbuild Problem and there are more problems, I will let you know if I get it working FIlip -Original Message- From: Filip Hanik Sent: Friday, March 14, 2003 1:21 PM To: Tomcat Users List Subject: RE: Loadbuild Problem the error is in jsr152/build.xml and the correct value is property name=servlet-api.jar value=../jsr154/servlet-api-2.4/lib/servlet-api.jar/ Filip -Original Message- From: kevin carey [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 1:10 PM To: [EMAIL PROTECTED] Subject: Loadbuild Problem Hi, I'm building Tomcat from scratch using directions from http://jakarta.apache.org/tomcat/building.html I'm running JDK 1.4 on Linux. After about 3 hours, build fails with message: BUILD FAILED file:/home/kevin/apps/tomcat/src/jakarta-tomcat-5/build.xml:465: Basedir /home/kevin/apps/tomcat/src/jakarta-commons/el does not exist Any thoughts? newbie. __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.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: === message truncated === __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
RE: Too many processes
I couldn't find those parameters. Can you be a little bit more specific with what you mean? Thanks a lot -Mensaje original- De: Filip Hanik [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 24 de Marzo de 2003 03:04 p.m. Para: Tomcat Users List Asunto: RE: Too many processes I believe on Linux, each process is a thread. So tomcat only starts one process, but the PS command will list all the threads as separate processes. So there is nothing to worry about. If you want tomcat to use less memory, you can always configure the -ms -mx parameters in catalina.sh Filip -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: Too many processes I'm running tomcat in a Red Hat 7.2. It works well when it is started, but it starts too many concurrent processes and it starts using more and more memory until it reaches 31% of my computer's memory. How can I configure Tomcat to run less concurrent processes and without using so much memory? This is the output of ps -aux root 21983 27.2 15.6 243620 39724 pts/0 S14:39 0:19 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21984 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21985 4.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21986 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21987 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21988 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21989 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21990 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21991 5.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21993 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21994 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21995 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21996 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22002 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22003 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22004 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22005 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22006 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22007 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22008 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22009 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22010 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22011 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22012 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22013 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22014 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22015 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22016 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22017 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22018 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22019 0.0 15.6 243620 39724 pts/0
RE: Too many processes
they are actually parameters to the java VM, make a search at google http://216.239.57.100/search?q=cache:xdWnq6mvoWcC:www.ibm.com/developerworks/library/tip-heap-size.html+java+%22-mx%22+parameterhl=enie=UTF-8 for java -mx parameter Filip -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 10:20 AM To: Tomcat Users List Subject: RE: Too many processes I couldn't find those parameters. Can you be a little bit more specific with what you mean? Thanks a lot -Mensaje original- De: Filip Hanik [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 24 de Marzo de 2003 03:04 p.m. Para: Tomcat Users List Asunto: RE: Too many processes I believe on Linux, each process is a thread. So tomcat only starts one process, but the PS command will list all the threads as separate processes. So there is nothing to worry about. If you want tomcat to use less memory, you can always configure the -ms -mx parameters in catalina.sh Filip -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: Too many processes I'm running tomcat in a Red Hat 7.2. It works well when it is started, but it starts too many concurrent processes and it starts using more and more memory until it reaches 31% of my computer's memory. How can I configure Tomcat to run less concurrent processes and without using so much memory? This is the output of ps -aux root 21983 27.2 15.6 243620 39724 pts/0 S14:39 0:19 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21984 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21985 4.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21986 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21987 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21988 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21989 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21990 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21991 5.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21993 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21994 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21995 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21996 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22002 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22003 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22004 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22005 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22006 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22007 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22008 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22009 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22010 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22011 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22012 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22013 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22014 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22015 0.0 15.6 243620 39724
Database setup in tomcat
Hi, I am trying to set up a database connection pool using JDBC and MS Access. I initially just wrote a small servlet to do a login lookup to my database which worked fine and then proceeded onto the connection pool program (which I obtained from James Goodwill, Developing Java Servlets book). My Servlets compile fine, but for some reason when I run my app in the browser window, I get a java.lang.nullPointerException. Am I missing something in my tomcat setup. Everything seemed to work fine before trying the pooling. Many thanks JS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Too many processes
He is referring to the JVM parameters to limit the amount of memory the JVM is allotted. They are java command line parameters. That will atleast give you the direction for documentation. java.sun.com search should result in more detail for you. Jeremy Davis Senior Support Analyst BPI Marketplace Integration 614.760.8941 1.800.436.8726 - Support Line -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:20 PM To: Tomcat Users List Subject: RE: Too many processes I couldn't find those parameters. Can you be a little bit more specific with what you mean? Thanks a lot -Mensaje original- De: Filip Hanik [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 24 de Marzo de 2003 03:04 p.m. Para: Tomcat Users List Asunto: RE: Too many processes I believe on Linux, each process is a thread. So tomcat only starts one process, but the PS command will list all the threads as separate processes. So there is nothing to worry about. If you want tomcat to use less memory, you can always configure the -ms -mx parameters in catalina.sh Filip -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: Too many processes I'm running tomcat in a Red Hat 7.2. It works well when it is started, but it starts too many concurrent processes and it starts using more and more memory until it reaches 31% of my computer's memory. How can I configure Tomcat to run less concurrent processes and without using so much memory? This is the output of ps -aux root 21983 27.2 15.6 243620 39724 pts/0 S14:39 0:19 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21984 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21985 4.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21986 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21987 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21988 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21989 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21990 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21991 5.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21993 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21994 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21995 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21996 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22002 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22003 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22004 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22005 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22006 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22007 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22008 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22009 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22010 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22011 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22012 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22013 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22014 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22015 0.0 15.6 243620
jrun taglib
does anyone know where i can get the jrun taglib? does the taglibs work with tomcat? Peter Choe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database setup in tomcat
Hi: Trying to roll your own DBCP is quite fun, but to get it working properly it does involve a lot of design, foresight, testing, and more testing. I would recommend rather use the DBCP that comes standard with Tomcat: It works, is stable, and is quite mature. Look at the Tomcat docs, or do a google. hth, Paul On Mon, 2003-03-24 at 19:00, Jason Smartt wrote: Hi, I am trying to set up a database connection pool using JDBC and MS Access. I initially just wrote a small servlet to do a login lookup to my database which worked fine and then proceeded onto the connection pool program (which I obtained from James Goodwill, Developing Java Servlets book). My Servlets compile fine, but for some reason when I run my app in the browser window, I get a java.lang.nullPointerException. Am I missing something in my tomcat setup. Everything seemed to work fine before trying the pooling. Many thanks JS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Too many processes
Has anybody noticed that as you increase the -mx while running tomcat on linux, the maximum number of threads decreases? We have run tomcat on Debian linux with 2GB of real memory and we set a run-time flag of -mx1024m. In this configuration, once the java process reaches a certain number of threads (it's always the same number, I think it's around 468), then it can't create any new threads. When this happens it doesn't respond to any requests and requires a re-start. Reducing the mx value increases the number of threads allowed before the java process craps out, but then we get OutOfMemory exceptions, so we need that extra memory. Does anybody know how to explain this? This problem isn't limited to just tomcat, it affects any java process on linux, I've checked. Ryan -Original Message- From: Davis, Jeremy [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 11:01 AM To: 'Tomcat Users List' Subject: RE: Too many processes He is referring to the JVM parameters to limit the amount of memory the JVM is allotted. They are java command line parameters. That will atleast give you the direction for documentation. java.sun.com search should result in more detail for you. Jeremy Davis Senior Support Analyst BPI Marketplace Integration 614.760.8941 1.800.436.8726 - Support Line -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:20 PM To: Tomcat Users List Subject: RE: Too many processes I couldn't find those parameters. Can you be a little bit more specific with what you mean? Thanks a lot -Mensaje original- De: Filip Hanik [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 24 de Marzo de 2003 03:04 p.m. Para: Tomcat Users List Asunto: RE: Too many processes I believe on Linux, each process is a thread. So tomcat only starts one process, but the PS command will list all the threads as separate processes. So there is nothing to worry about. If you want tomcat to use less memory, you can always configure the -ms -mx parameters in catalina.sh Filip -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: Too many processes I'm running tomcat in a Red Hat 7.2. It works well when it is started, but it starts too many concurrent processes and it starts using more and more memory until it reaches 31% of my computer's memory. How can I configure Tomcat to run less concurrent processes and without using so much memory? This is the output of ps -aux root 21983 27.2 15.6 243620 39724 pts/0 S14:39 0:19 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21984 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21985 4.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21986 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21987 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21988 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21989 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21990 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21991 5.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21993 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21994 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21995 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21996 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22002 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22003 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22004 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22005 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22006 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 22007 0.0 15.6 243620 39724 pts/0 S14:40 0:00 /usr/java/j2sdk1.4.1_01/bin/java
Re: tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat)
As I said, see steps 1, 2, and 3 in the Final Configuration section of my RH HOWTO: http://www.johnturner.com/howto John On Mon, 24 Mar 2003 10:07:28 -0800, Richie Chauhan [EMAIL PROTECTED] wrote: Tomcat 4.1.18 LE Apache 1.3.26 Solaris 9 JDK 1.4.1_01 Richie -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 5:28 AM To: Tomcat Users List Subject: Re: tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat) What version of Tomcat? For 4.1.x, you need to add Listener elements to server.xml. See steps 1, 2, and 3 in the Final Configuration section of my RH HOWTO: http://www.johnturner.com/howto John On Sun, 23 Mar 2003 15:30:21 -0800, Richie Chauhan [EMAIL PROTECTED] wrote: Hello, I can't seem to figure out what needs to be done on the tomcat side to get the Apache Auto configuration file TOMCAT_HOME/conf/jk/mod_jk.conf-auto The mod_jk documentation says This file is created by enabling the Apache auto-configuration as described in the Tomcat documentation - but I can't find any reference to this in the tomcat documentation. When I try to to Include this file in httpd.conf I get the following error: httpd: could not open document config file /usr/local/jakarta-tomcat/conf/jk/mod_jk.conf-auto Which makes sense as the file is not there. Please Help! Richie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_jk and tomcat 4.1.18 communication issues
I have plenty of processors for ajp13 running under tomcat, but tomcat and mod_jk seem to lose communication and when that happens the tomcat process gets stuck running at 99% cpu utilization. This occurs when I am just bouncing around the site for a while. When the page gets stuck(does not load all the way) within that session and I refresh, I get another stuck process. It's very strange. when I run the site through port 8080, it works fine. No problems. Mod_jk2 does not cause problems, but does not load index file automatically, which is why I am using mod_jk in the first place. Any help is greatly appreciated. Thanks in advance, David excerpt from server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=20 maxProcessors=200 enableLookups=false connectionTimeout=6 useURIValidationHack=false acceptCount=10 debug=1/ excerpt from web.xml servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param init-param param-namedevelopment/param-name param-valuefalse/param-value /init-param init-param param-namereloading/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 excerpt from workers.properties worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp13.lbfactor=1 # # Specify the size of the open connection cache. worker.ajp13.cachesize=100 worker.ajp13.socket_keepalive=1 except from mod_jk.conf JkMount /*.jsp ajp13 /var/log/httpd/mod_jk.log [Mon Mar 24 11:57:17 2003] [jk_ajp_common.c (970)]: ERROR sending data to client. Connection aborted or network problems [Mon Mar 24 11:57:17 2003] [jk_ajp_common.c (970)]: ERROR sending data to client. Connection aborted or network problems [Mon Mar 24 11:57:17 2003] [jk_ajp_common.c (970)]: ERROR sending data to client. Connection aborted or network problems [Mon Mar 24 11:57:17 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Mon Mar 24 11:57:17 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Mon Mar 24 11:57:17 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Mon Mar 24 11:57:18 2003] [jk_ajp_common.c (970)]: ERROR sending data to client. Connection aborted or network problems [Mon Mar 24 11:57:18 2003] [jk_ajp_common.c (970)]: ERROR sending data to client. Connection aborted or network problems [Mon Mar 24 11:57:18 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Mon Mar 24 11:57:18 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Mon Mar 24 11:57:18 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Mon Mar 24 11:57:18 2003] [jk_ajp_common.c (970)]: ERROR sending data to client. Connection aborted or network problems catalina.out Ajp13Connector active threads=21 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][5],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][6],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][7],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][8],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][9],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][10],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][11],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][12],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][13],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][14],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][15],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][16],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][17],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][18],5,Ajp13Connector[8009]]
Re: Database setup in tomcat
On Monday 24 March 2003 14:00, Jason Smartt professed: Hi, I am trying to set up a database connection pool using JDBC and MS Access. I initially just wrote a small servlet to do a login lookup to my database which worked fine and then proceeded onto the connection pool program (which I obtained from James Goodwill, Developing Java Servlets book). My Servlets compile fine, but for some reason when I run my app in the browser window, I get a java.lang.nullPointerException. Am I missing something in my tomcat setup. Everything seemed to work fine before trying the pooling. Many thanks JS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Safe yourself the agony. Dump MS Access and go with MySQL at least. Get a real DBMS. Configure Tomcat to do connection pooling with MySQL and you're off to a good start. -- Dwight Hugget http://www.dmhEnterprise.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Too many processes
Supposedly, to the best of my knowledge, the JVM is suppose to begin garbage collection once it nears the max memory allotted. Though if there is not enough memory to recover..yet, I guess it would be possible that this would occur, or maybe it is taking so long to run the garbage collection, that in the meantime, your hanging up the box? You could try the -Xincgc to increment garbage collection, so that it does not wait till the near end of the heap size before doing GC, and it does it in small increments reducing pauses. Another suggestion is to do something like -Xms1024m -Xmx1024m -XX:NewSize=512m -XX:MaxNewSize=512m Supposedly, this will set the short lived objects to be cleaned up a bit more efficiently? Would need to do more research to really explain that any further... Jeremy Davis Senior Support Analyst BPI Marketplace Integration 614.760.8941 1.800.436.8726 - Support Line -Original Message- From: Ryan Chambers [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:11 PM To: Tomcat Users List Subject: RE: Too many processes Has anybody noticed that as you increase the -mx while running tomcat on linux, the maximum number of threads decreases? We have run tomcat on Debian linux with 2GB of real memory and we set a run-time flag of -mx1024m. In this configuration, once the java process reaches a certain number of threads (it's always the same number, I think it's around 468), then it can't create any new threads. When this happens it doesn't respond to any requests and requires a re-start. Reducing the mx value increases the number of threads allowed before the java process craps out, but then we get OutOfMemory exceptions, so we need that extra memory. Does anybody know how to explain this? This problem isn't limited to just tomcat, it affects any java process on linux, I've checked. Ryan -Original Message- From: Davis, Jeremy [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 11:01 AM To: 'Tomcat Users List' Subject: RE: Too many processes He is referring to the JVM parameters to limit the amount of memory the JVM is allotted. They are java command line parameters. That will atleast give you the direction for documentation. java.sun.com search should result in more detail for you. Jeremy Davis Senior Support Analyst BPI Marketplace Integration 614.760.8941 1.800.436.8726 - Support Line -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:20 PM To: Tomcat Users List Subject: RE: Too many processes I couldn't find those parameters. Can you be a little bit more specific with what you mean? Thanks a lot -Mensaje original- De: Filip Hanik [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 24 de Marzo de 2003 03:04 p.m. Para: Tomcat Users List Asunto: RE: Too many processes I believe on Linux, each process is a thread. So tomcat only starts one process, but the PS command will list all the threads as separate processes. So there is nothing to worry about. If you want tomcat to use less memory, you can always configure the -ms -mx parameters in catalina.sh Filip -Original Message- From: Gaston Escobar [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: Too many processes I'm running tomcat in a Red Hat 7.2. It works well when it is started, but it starts too many concurrent processes and it starts using more and more memory until it reaches 31% of my computer's memory. How can I configure Tomcat to run less concurrent processes and without using so much memory? This is the output of ps -aux root 21983 27.2 15.6 243620 39724 pts/0 S14:39 0:19 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21984 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21985 4.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21986 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21987 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21988 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21989 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21990 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21991 5.6 15.6 243620 39724 pts/0 S14:39 0:03 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21993 0.0 15.6 243620 39724 pts/0 S14:39 0:00 /usr/java/j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/usr/Tomc root 21994 0.0 15.6 243620 39724 pts/0 S14:39 0:00
Re: tomcat-user Digest 24 Mar 2003 14:25:20 -0000 Issue 2463
This could be caused by your servlet setting an incorrect content length. If you set the content length to be less than the actual size of the page this is what happens, Cheers, Cam. I met this problem. My html page showed incompletely. Sometimes html tag like TD is showed, and sometimes only half of the whole result showed. I read the source of the html, it seems browser got imcomplete html. I'm using Tomcat4.1.18, Apache1.3.12 and mod_Jk2 OS is solaris8. Thanks for any help Regards, Xiaoling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat4.1.18 can not restart after Mysql DataSource configuration.
environment: win200 server(sp3)+jdk1.4.1_02+mysql4.0.12+Connector/J4.0 It's running well after JNDI DataSource configuration, but crashs when restarting. can anybody help? thanks in advance.
Please help me
I`m using Apache 1.3 and Tomcat 4.1.18. I need help, how configuration..?? Thanks JC