Re: mod_jk and EAPI
If I had to guess, I'd say that you have incorrectly inserted a Valve/Realm into your server.xml that is not really a Valve/Realm. This error is way too far down the pipeline to have anything to do with mod_jk. My guess is that if you enable the stand-alone Connector and attempt to connect on port 8080, you will get the same error. Jill Veronda [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]. .. I am getting the mod_jk EAPI warning message on apache start. What might be the results of running with this version of mod_jk? I realize I can try to rebuild mod_jk but would like to know if the error I am seeing is due to this problem or not. The error is that jsp pages do not run and in the log file I get: 2002-08-28 11:51:50 Ajp13Processor[8009][4] process: invoke java.lang.NoSuchMethodError at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:436) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) -Jill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DBCP: optimum settings
Im wondering what the maximum active conn objects is in a DBCP pool. On my production server I'm running Tomcat 4.0.4 on Linux, using Connector/J 2 and MySQL 3.23. I'm running a 733 PII, with 256 MB RAM. I've got resourceParams maxWait set to 100 and maxIdle set to 3000. Does anyone know what would be optimum with this config, off hand? Just trying to get a basic idea. Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OT - Jdk1.4 XML support
Cool. That answers that question, I suppose. ;-) Neal -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 10:11 PM To: Tomcat Users List Subject: Re: OT - Jdk1.4 XML support On Thu, 29 Aug 2002, neal wrote: Date: Thu, 29 Aug 2002 20:51:42 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: OT - Jdk1.4 XML support Hope you don't mind a slightly off-topic question Anyone here working with the JDK1.4+ and XML (and possibly XSLT)? I see that the JDK now provides basic XML support and per my understanding it even included the latest Xalan libs for XSLT. Is this sufficient for production-quality XML work, or are you guys still subbing out with Xerces or something else (and is Xalan sufficient or are you overriding it for XsLT)? Well, the parsing and XSLT processing code in Sun's JDK 1.4 *is* Xerces and Xalan (or at least a version of them as of when 1.4 was released) ... Thanks. Neal Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet Instances
I'm guessing that you have either 2 unused Hosts or Connectors (or some combination thereof) in your server.xml. This will cause the servlet to get initialized multiple times. Rui Fernandes [EMAIL PROTECTED] wrote in message 009b01c24f48$9ab9c260$4600a8c0@server">news:009b01c24f48$9ab9c260$4600a8c0@server... No, Is just like that. But I change things with static variables to control that servlets don't instantiate what others instantiated before, and share access to the necessary classes through static references. But I find that this doesn't solve the problem... My conclusion, somehow there are 3 Tomcats running!?!? But only one seems to be responsible for remote calls. Strange, very strange indeed just can't get it. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 12:29 PM Subject: Re: Servlet Instances No, I am saying I have three instances of the same servlet. Only one appears to be receiving the requests, but if things are like you say then what's going on with Tomcat? Are you saying I have three Tomcats running, even thought I called startup only once? Are you sure? Could it be that your mixing instances of a class with threads running in the engine? Otherwise it is very strange. Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to setup CRL in Tomcat
I'm using Tomcat with SSL but I can't figure out how I can setup a Certificate Revocation List (CRL) in tomcat? Thanx in advance, Regards, Mario Mario Klaver Senior Consultant Cap Gemini Ernst Young Telecom Media Networks Mobile: +31 (0) 6 185 134 01 Office: +32 (0) 2708 1723 Email: [EMAIL PROTECTED] -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how to disable http when using https
I've made a website (on tomcat 4.1) which makes use of SSL https. When I try to connect to it by not using the https but http prefix, the browser asks me do you want to display non-secure items If I click yes, it shows me the secure webpage in non-secure mode! How do I turn off http mode alltogether? This is a printout of my server.xml !-- Define an SSL connector. -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8444 minProcessors=3 maxProcessors=150 enableLookups=true acceptCount=10 debug=2 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=/opt/tomcat/appconf/crdc_n3i.jks keystorePass=tomcat / /Connector Thanks heaps! Filip Lou -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Context element and .war files
Hi, I would like to know if it is obligatory to define a Context elements for each web application in conf/server.xml. If we use a .war file and we place it in the $CATALINA_HOME\webapps directory, this context is automatically added, isn't it ? What is the best solution ? Thanks, -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how to disable http when using https
Most probably you did not comment out the http connector. check your server.xml more in detail, and find whether the simple http connector is configured! Br, Peter I've made a website (on tomcat 4.1) which makes use of SSL https. When I try to connect to it by not using the https but http prefix, the browser asks me do you want to display non-secure items If I click yes, it shows me the secure webpage in non-secure mode! How do I turn off http mode alltogether? This is a printout of my server.xml !-- Define an SSL connector. -- Connector className=org.apache.catalina.connector.http.HttpConnector gt;port=8444 minProcessors=3 maxProcessors=150 gt;enableLookups=true gt;acceptCount=10 debug=2 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory gt;clientAuth=false protocol=TLS gt;keystoreFile=/opt/tomcat/appconf/crdc_n3i.jks gt;keystorePass=tomcat gt; / /Connector Thanks heaps! Filip Lou -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you want a free e-mail for life ? Get it at http://www.email.ro/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Compile error , again
I've already posted my issue a few days later, but there were no answers, so, please if you can tell me, if anybody had such a trouble with a JSP page, that the page did not compile once in every 10 attempts with dozens of variable might not ahve been initialised errors. Normally the page compiles !!! Thanks in advance PEter __ Do you want a free e-mail for life ? Get it at http://www.email.ro/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Compile error , again
Yes, we also experience that problem, but only during development, when we are updating/changing pages. In a stable environment this didn't happen so far... Unfortunately I don't have a solution for the problem. Mario At 11:34 30-8-02 +0300, you wrote: I've already posted my issue a few days later, but there were no answers, so, please if you can tell me, if anybody had such a trouble with a JSP page, that the page did not compile once in every 10 attempts with dozens of variable might not ahve been initialised errors. Normally the page compiles !!! Thanks in advance PEter __ Do you want a free e-mail for life ? Get it at http://www.email.ro/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Mario Klaver Senior Consultant Cap Gemini Ernst Young Telecom Media Networks Mobile: +31 (0) 6 185 134 01 Office: +32 (0) 2708 1723 Email: [EMAIL PROTECTED] -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how to disable http when using https
Thanks for your reply, I did check my server.xml again and there is no entry of a http connector. --- server.xml !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- Server port=8006 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define an SSL connector. This is the main entry point! -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=3 maxProcessors=150 enableLookups=true acceptCount=10 debug=2 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=/opt/tomcat/appconf/crdc_n3i.jks keystorePass=tomcat / /Connector !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). -- !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- !-- Not interesting... Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ -- !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=false !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relativ e (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=access. suffix=.log pattern=common/ !-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify eith er a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- !-- N3I application is secured by username/password logon -- Context path=/n3i docBase=n3i debug=0 reloadable=true privilege d=true Logger className=org.apache.catalina.logger.FileLogger prefix=n3i _access. suffix=.log timestamp=true/ /Context /Host /Engine /Service /Server -- Filip Lou -- This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is only intended for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Character Encodings
Hi, I have the following Problem: when I insert some german umlauts or the euro-sign in a form like this: üöäÜÖÄßEUR this is what the servlet gives me: üöäÃ?Ã?Ã?Ã?â?¬ the other way (out.println(üöäÜÖÄßEUR)) works fine since I changed page directive to %@page contentType=text/html;charset=UTF-8% I have also a similar problem with my postgresql database. But fixed it with setting charset=ISO_8859_1 in the URL I think anything is working in ASCII so maybe its the easiest way to say tomcat/the VM to use ASCII instead of UNICODE please give me a hint! Sven -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OT - Jdk1.4 XML support
Thanks. One last question about this ... do you know if XSLTC (translets) were bundled? I'm not seeing it in the 1.4 API, but apparently its part of Xalan2, which I believe was the version that would have been bundled with JDK1.4 Thanks. Neal -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 10:11 PM To: Tomcat Users List Subject: Re: OT - Jdk1.4 XML support On Thu, 29 Aug 2002, neal wrote: Date: Thu, 29 Aug 2002 20:51:42 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: OT - Jdk1.4 XML support Hope you don't mind a slightly off-topic question Anyone here working with the JDK1.4+ and XML (and possibly XSLT)? I see that the JDK now provides basic XML support and per my understanding it even included the latest Xalan libs for XSLT. Is this sufficient for production-quality XML work, or are you guys still subbing out with Xerces or something else (and is Xalan sufficient or are you overriding it for XsLT)? Well, the parsing and XSLT processing code in Sun's JDK 1.4 *is* Xerces and Xalan (or at least a version of them as of when 1.4 was released) ... Thanks. Neal Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Config servlet parameters in Tomcat at run time
Hi, Is it possible to change parameters of a servlet running in Tomcat at runtime? For example, I have a static variable counter in my servlet. In the doGet() method of servlet, I increment the counter. If counter is less than MAX_COUNT, I return ACCEPT, otherwise, I return REJECT. Is there a way to config the variable MAX_COUNT thru the JMX admin interface of Tomcat 4.1.x? Thank you. Sam __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jsp file in new directory under webapps not found.
Hi Eventually I got tomcat to work with apache on my Irix server. The example jsp files in the tomcat examples directory work fine, but when I try to run some other jsp examples files in a new directory called projects (which I made under the webapps directory), I get the following error: Not Found (404) Original request: /projects/jsp/date_and_request.jsp I have added the projects directory in my tomcat-apache.conf file and in the servers.xml file with the same options included as for the examples directory. After that, I restarted my apache webserver. I can see the projects directory, but when I try to execute a jsp file, I get the above error. What am I doing wrong? Any help will be greatly appreciated. Thanks Hugo -- Dr Hugo Bouckaert Systems and Programming Engineer GeoInformatics Exploration Australia P/L 57 Havelock St West Perth, WA 6005 PO Box 1675, West Perth 6872 Ph: 61 08 9420 7400 Fax: 61 08 9226 1299 www.geoinformex.com This email and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jsp files not executing in new directory under webapps
Hi I got tomcat to work with apache on my Irix server. The example jsp files in the tomcat examples directory work fine, but when I try to run some other jsp examples files in a new directory called projects (which I made under the webapps directory), I get the following error: Not Found (404) Original request: /projects/jsp/date_and_request.jsp Not found request: /projects/jsp/date_and_request.jsp I have added the projects directory in my tomcat-apache.conf file and in the servers.xml file with the same options included as for the examples directory. After that, I restarted my apache webserver. I can see the projects directory, but when I try to execute a jsp file, I get the above error. If I put any of these jsp files in the examples directory, they work fine. What am I doing wrong? Any help will be greatly appreciated. Thanks -- Dr Hugo Bouckaert Systems and Programming Engineer GeoInformatics Exploration Australia P/L 57 Havelock St West Perth, WA 6005 PO Box 1675, West Perth 6872 Ph: 61 08 9420 7400 Fax: 61 08 9226 1299 www.geoinformex.com This email and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
admin page - username and password?
Hi Perhaps the problem that I cannot execute any jsp files from a projects directory (see previous email) I made under webapps in tomcat stems from the fact that I have to add a new context for the projects directory? But when I go to webapps/admin, I am asked for a administrator username and password. This is rather frustrating as I was never asked to supply one in the first place! Does anyone know the default username and password for the administrator at the /webapps/admin pages? Help Thanks Hugo -- Dr Hugo Bouckaert Systems and Programming Engineer GeoInformatics Exploration Australia P/L 57 Havelock St West Perth, WA 6005 PO Box 1675, West Perth 6872 Ph: 61 08 9420 7400 Fax: 61 08 9226 1299 www.geoinformex.com This email and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Servlet
I have downloaded the Tomcat 4.0.4. I am running it as a standalone. I have made a folder jaicey/jsp in webapps. I have even made jaicey/servlets in webapps. I have set the context path in server.xml. So when I place any jsp file inside jaicey/jsp it works fine. But when I place the servlet inside jaicey/servlet then it does not seem to work. If I set the classpath in setclasspath.bat then, it only works if I start tomcat without using bootstrap. But how do I set the classpath if I am using bootstarp to start the tomcat. Please Reply.. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: OT - Jdk1.4 XML support
Hi, as you now get with the JDK 1.4 JAXP, and defaults DOM, SAX parser, XSL-T processor, you can do quite good job with XML. Be sure to understand that JAXP is just a way to access to underlying DOM , SAX and XSL-T implementation. The default ones in JDK 1.4 seems to be (looking at the classes) Crimson for DOM/SAX parser and Xalan for XSL-T processor. If you want to use other implementation of DOM/SAX or XSL-T, you can add some jar, and change the parser configuration. So you always uses JAXP, but the underlying librairies are the one you want. Hope this help , Cédric - Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 5:51 AM Subject: OT - Jdk1.4 XML support Hope you don't mind a slightly off-topic question Anyone here working with the JDK1.4+ and XML (and possibly XSLT)? I see that the JDK now provides basic XML support and per my understanding it even included the latest Xalan libs for XSLT. Is this sufficient for production-quality XML work, or are you guys still subbing out with Xerces or something else (and is Xalan sufficient or are you overriding it for XsLT)? Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Running Tomcat 4.0.3 as a service on NT 2000 Server SVP2
Folks, i run Tomcat version 4.0.3 on Windows 2000 Server as a service. tomcat.exe will be executed. Now I want to change the settings for the java virtual machine, i. e. the memory settings -Xms -Xmx. Where do I have to do it that Tomcat will use them? Regards, Harald Harald Kirschner Value Risk Engineering AG Sopienstr. 3 80333 München Telefon 089-599894-62 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Trouble configuring Tomcat 4.0.4 JNDI connection to MySQL
[EMAIL PROTECTED] wrote: Vance, Good eye. It use to be driverName but got changed along the way to URL. Probably when I started following the 4.1 how-to. In any case, I changed back to driverName and, alas, same problem. Vance, do you get the same error? javax.naming.NamingException: Exception creating DataSource: org.hsql.jdbcDriver at org.apache.naming.NamingContext.lookup(NamingContext.java:842) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at foo.DBTest1.init(DBTest1.java:20) at org.apache.jsp.DbTest1$jsp._jspService(DbTest1$jsp.java:60) Hi, I had this problem for ages, and resolved it by retrofitting the DataSource factory ( connection pool) from tc4.1. The basic problem is that Tyrex is broken; it happened to work for some people, but not for me and many others :-( At this point, Craig will probably come in and say to move to tc 4.1, and I'd say, 'fine, as long as you don't use SSL with a standalone tomcat, because the Coyote connector is broken in this respect.' What you can do is download 4.1.9, remove tyrex...jar from common/lib in 4.0.4, and drop in the commons-*.jar files from 4.1. Here is what I have in /usr/local/tomcat/common/lib activation.jar commons-collections.jar commons-dbcp.jar commons-pool.jar jdbc2_0-stdext.jar jndi.jar jta-spec1_0_1.jar mail.jar mm.mysql-2.0.14-bin.jar naming-common.jar naming-factory.jar naming-resources.jar servlet.jar xerces.jar HTH Martin PS: dont forget that the user parameter is username with DBCP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to integrate Apache and Tomcat on Window
Hello All, I want to integrate Apache 2.0 with Tomcat 4.0.3 on Windows platform. I do not know how to go for it. I want to publish my web application on the Apache Web Server and I want the Tomcat to be used as a Servlet engine. Please do help me. Thank you. with regards, Pratim Chaudhuri
RE: admin page - username and password?
Hugo, There are nog default user/pass for the admin pages because of security reasons. You'll have to adjust your conf/tomcat-users.xml file and add a line for the admin pages: tomcat-users user name=manager password= roles=manager / ... /tomcat-users Steven. -Original Message- From: hugo [mailto:[EMAIL PROTECTED]] Sent: vrijdag 30 augustus 2002 10:09 To: [EMAIL PROTECTED] Subject: admin page - username and password? Hi Perhaps the problem that I cannot execute any jsp files from a projects directory (see previous email) I made under webapps in tomcat stems from the fact that I have to add a new context for the projects directory? But when I go to webapps/admin, I am asked for a administrator username and password. This is rather frustrating as I was never asked to supply one in the first place! Does anyone know the default username and password for the administrator at the /webapps/admin pages? Help Thanks Hugo -- Dr Hugo Bouckaert Systems and Programming Engineer GeoInformatics Exploration Australia P/L 57 Havelock St West Perth, WA 6005 PO Box 1675, West Perth 6872 Ph: 61 08 9420 7400 Fax: 61 08 9226 1299 www.geoinformex.com This email and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Trouble configuring Tomcat 4.0.4 JNDI connection to MySQL
Martin, You are using mm.mysql-2.0.14-bin.jar. I am using mysql-connector-java-2.0.14-bin.jar from the MySQL Connector/J2 download. Do know if there is any difference or was the name just changed when it became the official driver of MySQL? . Where did your driver come from? Martin Jacobson [EMAIL PROTECTED] t To Tomcat Users List 08/30/2002 06:01 [EMAIL PROTECTED] AM cc Subject Please respond to Re: Trouble configuring Tomcat 4.0.4 Tomcat Users JNDI connection to MySQL List tomcat-user@jakar ta.apache.org [EMAIL PROTECTED] wrote: Vance, Good eye. It use to be driverName but got changed along the way to URL. Probably when I started following the 4.1 how-to. In any case, I changed back to driverName and, alas, same problem. Vance, do you get the same error? javax.naming.NamingException: Exception creating DataSource: org.hsql.jdbcDriver at org.apache.naming.NamingContext.lookup(NamingContext.java:842) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at foo.DBTest1.init(DBTest1.java:20) at org.apache.jsp.DbTest1$jsp._jspService(DbTest1$jsp.java:60) Hi, I had this problem for ages, and resolved it by retrofitting the DataSource factory ( connection pool) from tc4.1. The basic problem is that Tyrex is broken; it happened to work for some people, but not for me and many others :-( At this point, Craig will probably come in and say to move to tc 4.1, and I'd say, 'fine, as long as you don't use SSL with a standalone tomcat, because the Coyote connector is broken in this respect.' What you can do is download 4.1.9, remove tyrex...jar from common/lib in 4.0.4, and drop in the commons-*.jar files from 4.1. Here is what I have in /usr/local/tomcat/common/lib activation.jar commons-collections.jar commons-dbcp.jar commons-pool.jar jdbc2_0-stdext.jar jndi.jar jta-spec1_0_1.jar mail.jar mm.mysql-2.0.14-bin.jar naming-common.jar naming-factory.jar naming-resources.jar servlet.jar xerces.jar HTH Martin PS: dont forget that the user parameter is username with DBCP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where should i put dynamically generated graphics
How can I return an image from a servlet?? On Thu, 2002-08-29 at 20:05, Sexton, George wrote: It depends. One way I have done it is to have the generator servlet save it on the session, and have the page the generator servlet writes make a request to a simple servlet that returns the graphic, and then deletes it from the session. Another way would be to write it to the temp dir. From the Servlet API Spec: SRV.3.7.1 Temporary Working Directories A temporary storage directory is required for each servlet context. Servlet containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. Then, using a servlet mapping request the generated image and have the servlet retrieve the temporary image. I guess that you could make another dir writable to the server, and store the image in their natively. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Andy Wagg [mailto:[EMAIL PROTECTED]] Sent: 29 August, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: Where should i put dynamically generated graphics Hello I have a web application that generates a gif file that is then subsequently displayed. It expects to find the gif file in the context of the web application. The web app is deployed as a war so obviously the generated files cant be put there. Any suggestions as to where these files could be copied that would be accesible by the browser. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to integrate Apache and Tomcat on Window
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: Pratim Chaudhuri [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 7:14 AM To: Tomcat Users List Subject: How to integrate Apache and Tomcat on Window Hello All, I want to integrate Apache 2.0 with Tomcat 4.0.3 on Windows platform. I do not know how to go for it. I want to publish my web application on the Apache Web Server and I want the Tomcat to be used as a Servlet engine. Please do help me. Thank you. with regards, Pratim Chaudhuri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Processor Availability
Sending a QUIT signal works in Unix (Linux and Solaris), but Ctrl-D doesn't do anything in Windows 2000. Anybody knows something about it? Jeff, what kind of processing are you doing in your JSP/servlets? You could be experiencing deadlock problems. It's just an idea :-) Best regards, Rodrigo Ruiz - Original Message - From: Glenn Nielsen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 2:20 AM Subject: Re: Processor Availability A good way to debug these types of problems is to tell the JVM to do a Thread stack dump. By reviewing the stack for each processor you can get an idea of what may be causing a problem. On unix you send the JMV a -QUIT signal. On Windows I think you use CTRL-D in the console for Tomcat. Another thing to check is whether long JVM garbage collection (GC) times are causing requests to stack up. While the JVM is doing GC handling of requests by Tomcat freezes. To get GC data add the arg -verbose:gc to your JVM startup options. Regards, Glenn Marinko, Jeff wrote: Thanks for the reply, Craig. I pretty much figured that was how it worked, but I was hoping for some kind of time out mechanism. Somehow, someway, I am able to lock up all 200 processors I defined for my Connector in TC (4.0.4, Java 1.4, Win2K). I'm guessing it is the machine that is at fault (very low powered), and that since each request potentially opens a connection to another machine, that may be the cause of the locking. Thanks! -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 4:19 PM To: Tomcat Users List Subject: Re: Processor Availability On Tue, 27 Aug 2002, Marinko, Jeff wrote: Date: Tue, 27 Aug 2002 13:45:05 -0700 From: Marinko, Jeff [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Processor Availability Greetings! Tomcat uses processors to service requests, as processors free up, they then move on and process other requests. Each processor also possesses a thread, so you can think of the set of available processors as a thread pool. My question is this: Is there any way to lock up all the processors? Sure ... if you send n+1 simultaneous requests when you've only got n available processors, you're going to run out (assuming that each request takes enough time for all of them to get submitted before the first ones start completing. Such things happen occasionally when you get spkies of request activity, but it's usually a transient condition. The analog in plain old web sites is when a site gets Slashdotted :-). Is there a maximum time before a processor becomes available again, assuming it is taking to long to process a request? The amount of time your app takes to process a request is totally up to your app. There's nothing Tomcat can do if you decide to execute a database query that takes 5 minutes because you're selecting through a million rows without using an index. The time it takes Tomcat to return the processor to the pool when a request is completed is as small as we can make it (a few milliseconds on a typical configuration). There's no motivation (or code in Tomcat) for keeping a processor unavailable any longer than it has to be. Besides processors, there might be contention for available threads and/or TCP/IP socket resources in your operating system. There are also VERY wide variations in the maximum number of threads a particular OS+JVM combination can support -- the Volano Report http://www.volano.com makes interesting reading in this regard. Any way to check how many processors are active/in use? There's nothing built in, but it would be straightforward to create a Valve that was stuck on the Engine (so it could see all requests to all webapps). Because this Valve will be executed by multiple threads at the same time, maintaining a simple counter that is incremented at the start of a request and decremented at the end would give you an active count. For the requests being processed by a particular webapp, you could do the same thing (and portably to boot) using a Filter mapped to /*. Jeff Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Best Connector for Apache 2x and Tomcat 4x
Can anyone comment on which is the best (in this case, best means easiest not fastest or most flexible) connector to use for Apache2 and Tomcat4x? I've used mod_jserv a couple years ago. Also, if someone could point me to a well written HOWTO for integrating the two, I would be most grateful. Thanks -Ben -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Best Connector for Apache 2x and Tomcat 4x
Best is relative. This question comes up *a lot*. If you are familiar with mod_jserv, mod_jk would be the logical choice. Mod_webapp has some issues. Most people seem to be using mod_jk in production environments. Note that tomcat does an OK job as a stand-alone server without apache, so unless you have a need for apache's features (virtual hosting, directory restrictions, rewriting, whatever) or a high-traffic site with lots of static content, you might save yourself some time and effort by just using tomcat. That said, for the HOWTO, what platform are you on? I have a HOWTO for apache 1.3 and tomcat 4 on RH 7.2 here: http://www.johnturner.com/howto/apache-tomcat-howto.html Apache2 is very similar, and I will be updating the HOWTO today with additional build instructions for mod_jk and apache2. John Turner [EMAIL PROTECTED] -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:34 AM To: [EMAIL PROTECTED] Subject: Best Connector for Apache 2x and Tomcat 4x Can anyone comment on which is the best (in this case, best means easiest not fastest or most flexible) connector to use for Apache2 and Tomcat4x? I've used mod_jserv a couple years ago. Also, if someone could point me to a well written HOWTO for integrating the two, I would be most grateful. Thanks -Ben -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Best Connector for Apache 2x and Tomcat 4x
Thank you, Best IS relative. That's why I explicitly stated my needs in parenthesis. :-) I'm running on RH Linux 7.1 The reason I wanted to integrate the two is that I don't want to run tomcat as the root user but I do want to use port 80 instead of port 8080. I know that Apache gets started by the root user but then forks off all other processes to the user nobody. If you know of a way to configure Tomcat to bind to port 80 without having its processes run by the root user, this would eliminate the need for me to integrate. It isn't a site with a lot of traffic or static content. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 8:39 AM Subject: RE: Best Connector for Apache 2x and Tomcat 4x Best is relative. This question comes up *a lot*. If you are familiar with mod_jserv, mod_jk would be the logical choice. Mod_webapp has some issues. Most people seem to be using mod_jk in production environments. Note that tomcat does an OK job as a stand-alone server without apache, so unless you have a need for apache's features (virtual hosting, directory restrictions, rewriting, whatever) or a high-traffic site with lots of static content, you might save yourself some time and effort by just using tomcat. That said, for the HOWTO, what platform are you on? I have a HOWTO for apache 1.3 and tomcat 4 on RH 7.2 here: http://www.johnturner.com/howto/apache-tomcat-howto.html Apache2 is very similar, and I will be updating the HOWTO today with additional build instructions for mod_jk and apache2. John Turner [EMAIL PROTECTED] -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:34 AM To: [EMAIL PROTECTED] Subject: Best Connector for Apache 2x and Tomcat 4x Can anyone comment on which is the best (in this case, best means easiest not fastest or most flexible) connector to use for Apache2 and Tomcat4x? I've used mod_jserv a couple years ago. Also, if someone could point me to a well written HOWTO for integrating the two, I would be most grateful. Thanks -Ben -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: single sign on and time outs
Thanks for sharing the details. It's very helpful. I guess I have to catchup with TC4. :) -Sri At 07:08 PM 8/29/2002, Craig R. McClanahan wrote: On Thu, 29 Aug 2002, Srinadh Karumuri wrote: Date: Thu, 29 Aug 2002 16:29:40 -0400 From: Srinadh Karumuri [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: single sign on and time outs More precisely, both sessions will be invalidated. I didn't get this. Lets say I have two webapps sharing one Tomcat3.0. If timeout for webapp1 = 5 min. and timeout for webapp2 = 10 min. Does it mean both will get timed out after 5 min. I don't think so. Tomcat 3.x doesn't have any notion of single sign on support, so of course you won't see both logged out there. Tomcat 4.x has single sign on support if you are using form-based login for all the apps -- and it will indeed time out all sessions if any one of them times out. However, there is no way (in Servlet 2.3) to programmatically force a logout from all of the sessions. Of course, you have to explicitly enable the single sign on valve to get this behavior. Tomcat 5 will have the same timeout once times out all behavior, and adds the ability to programmatically request a logout. Craig -Sri At 04:00 PM 8/29/2002, you wrote: On Thu, 29 Aug 2002, HAVENS,PETER (HP-Cupertino,ex3) wrote: Date: Thu, 29 Aug 2002 15:25:20 -0400 From: HAVENS,PETER (HP-Cupertino,ex3) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: single sign on and time outs I have a question regarding SingleSignOn. It seems that if any web app is accessed and then not visited for a period of time equal to the time out value of the global web.xml then the user will be de-authenticated for all webapps. To clarify, if I have two webapps, demo1 and demo2, and I log onto my server which is configured for SingleSignOn; then if I visit a resource in the demo1 webapp and then start viewing resources on the demo2 web app, the timeout will occur for the demo1 session and thus timeout my entire session. More precisely, both sessions will be invalidated. Is there a way to configure single sign on so that it does not do timeouts based on each web app? Isn't it easier to just make your sessions not time out? -Peter Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where should i put dynamically generated graphics
I can think of a couple of ways offhand: -process the request -generate your image -store your image somewhere (optional) - either - write the image directly out to the servlet's underlying outputstream as a buffered byte output stream (I don't think PrintWriter would be appropriate. This would probably also in involve a response.setContentType(image/gif); ... but i've never done this, so I'm probably wrong.) -or- -store your image somewhere -return html that has a bunch of img src= tags or hyperlinks to the images eg: /* get my images! */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { /* optionally clean out the temp image directory */ /* genrt imgs, store in gen_images/username/ under the current context */ response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println( htmlbody ); out.println( img src=\gen_images/username/foo.gif\ ); out.println( img src=\gen_images/username/foo1.gif\ ); out.println( img src=\gen_images/username/foo2.gif\ ); out.println( /body/html ); } of course, feel free to spruce that html up ;) hope that helps, Michael - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 8:06 AM Subject: RE: Where should i put dynamically generated graphics How can I return an image from a servlet?? On Thu, 2002-08-29 at 20:05, Sexton, George wrote: It depends. One way I have done it is to have the generator servlet save it on the session, and have the page the generator servlet writes make a request to a simple servlet that returns the graphic, and then deletes it from the session. Another way would be to write it to the temp dir. From the Servlet API Spec: SRV.3.7.1 Temporary Working Directories A temporary storage directory is required for each servlet context. Servlet containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. Then, using a servlet mapping request the generated image and have the servlet retrieve the temporary image. I guess that you could make another dir writable to the server, and store the image in their natively. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Andy Wagg [mailto:[EMAIL PROTECTED]] Sent: 29 August, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: Where should i put dynamically generated graphics Hello I have a web application that generates a gif file that is then subsequently displayed. It expects to find the gif file in the context of the web application. The web app is deployed as a war so obviously the generated files cant be put there. Any suggestions as to where these files could be copied that would be accesible by the browser. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Best Connector for Apache 2x and Tomcat 4x
I hear you on the root user issue. I don't know of a way to bind tomcat to port 80 and have tomcat run as a non-root user. I run my tomcats under a non-root user account, but the bound ports are all 8000+ since I use the connector. My HOWTO should help you out...I will be updating it today (actually, I am working on it right now). I've gotten email from people who have used it not only for RH, but also FreeBSD and NetBSD, as well as SuSE and Mandrake, so it should get you started. The only difference between apache 1.3 and apache 2.0 as far as tomcat integration goes is needing a different mod_jk.so binary, but if you download the connector source package and run through the build process, you will get connectors for both 1.3 and 2.0, then you can pick which one you copy to apache's modules or libexec directory. SIDE NOTE: The build process in my HOWTO uses ANT. Based on suggestions from others, I'm changing that to use the standard ./configure and apxs, it's easier and less error-prone. The changes to the HOWTO will be live ASAP. John -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:50 AM To: Tomcat Users List Subject: Re: Best Connector for Apache 2x and Tomcat 4x Thank you, Best IS relative. That's why I explicitly stated my needs in parenthesis. :-) I'm running on RH Linux 7.1 The reason I wanted to integrate the two is that I don't want to run tomcat as the root user but I do want to use port 80 instead of port 8080. I know that Apache gets started by the root user but then forks off all other processes to the user nobody. If you know of a way to configure Tomcat to bind to port 80 without having its processes run by the root user, this would eliminate the need for me to integrate. It isn't a site with a lot of traffic or static content. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Best Connector for Apache 2x and Tomcat 4x
Comments below. At 08:49 AM 8/30/2002, Ben Souther wrote: Thank you, Best IS relative. That's why I explicitly stated my needs in parenthesis. :-) I'm running on RH Linux 7.1 The reason I wanted to integrate the two is that I don't want to run tomcat as the root user but I do want to use port 80 instead of port 8080. I know that Apache gets started by the root user but then forks off all other processes to the user nobody. If you know of a way to configure Tomcat to bind to port 80 without having its processes run by the root user, this would eliminate the need for me to integrate. It isn't a site with a lot of traffic or static content. If you want to use port 1024, per OS security, you will have to start as root. Another alternative is to use 'sudo' package, which will enable system admin to set you up to start tomcat as yourself but 'sudo' will make sure the process starts as root. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 8:39 AM Subject: RE: Best Connector for Apache 2x and Tomcat 4x Best is relative. This question comes up *a lot*. If you are familiar with mod_jserv, mod_jk would be the logical choice. Mod_webapp has some issues. Most people seem to be using mod_jk in production environments. Note that tomcat does an OK job as a stand-alone server without apache, so unless you have a need for apache's features (virtual hosting, directory restrictions, rewriting, whatever) or a high-traffic site with lots of static content, you might save yourself some time and effort by just using tomcat. That said, for the HOWTO, what platform are you on? I have a HOWTO for apache 1.3 and tomcat 4 on RH 7.2 here: http://www.johnturner.com/howto/apache-tomcat-howto.html Apache2 is very similar, and I will be updating the HOWTO today with additional build instructions for mod_jk and apache2. John Turner [EMAIL PROTECTED] -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:34 AM To: [EMAIL PROTECTED] Subject: Best Connector for Apache 2x and Tomcat 4x Can anyone comment on which is the best (in this case, best means easiest not fastest or most flexible) connector to use for Apache2 and Tomcat4x? I've used mod_jserv a couple years ago. Also, if someone could point me to a well written HOWTO for integrating the two, I would be most grateful. Thanks -Ben -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Best connector
I was wondering what people believe is the best Apache Tomcat connector: mod_jk, mod_webap (warp), or coyote? And to those using coyote - is the configuration entries in Tomcat and Apache different from the warp connector? If so, is there any documentation or write-ups available? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet Instances
any webapp whose physical location is a subdirecty of the 'appBase' setting in your server.xml(default is 'webapps') will be loaded as a context automatically by tomcat. take this example: you have a context defined in /tomcat/webapps/aaa the default 'appbase' is webapps. So aaa would automatically be loaded by tomcat even if you didn't define a context for it in server.xml. this way you can access it as www.myhost.com/aaa now if you defined a context such that www.myhost.com/bbb is using the context aaa, then you now have two ways to access your context, each loaded separately. to disable the automatic loading, change your appbase to an empty directory(i.e. /tomcat/webapps/dummy) Charlie -Original Message- From: Rui Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 11:30 AM To: Tomcat Users List Subject: RE: Servlet Instances I don't understand what you say. Would you be able to explain it again in more detail. your context may also be autoloaded in addition to your definition in server.xml. This would cause it to load your context again,therefore your servlet. Disable this bey setting appBase to some other directory. This is the most likely explanation. HTH Charlie - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 5:33 PM Subject: RE: Servlet Instances On Thu, 29 Aug 2002, Cox, Charlie wrote: Date: Thu, 29 Aug 2002 08:47:39 -0400 From: Cox, Charlie [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Servlet Instances well, a new class instance is created for each mapping that you have in web.xml. If you only call your servlet with the first mapping, then this is why only one is called. Actually, a new instance is created per servlet definition, not per servlet-mapping. It's legal to have more than one mapping to the same instance. your context may also be autoloaded in addition to your definition in server.xml. This would cause it to load your context again,therefore your servlet. Disable this bey setting appBase to some other directory. This is the most likely explanation. HTH Charlie Craig -Original Message- From: Rui Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 8:13 AM To: Tomcat Users List Subject: RE: Servlet Instances My servlet does something on init and on destroy and each time doget is called. Specifically do some log to a file which it creates. The file is created twice at very close times, the same with the logged messages at startup. With the shutdown the same thing. Shutdown calls destroy for the 3 instances. But the log messages for doGet cases only are written in one of the files. So the same servlet is handling all remote requests. But for some reason 3 servlet instances are running. I do not have my webapp duplicated on configuration files. This thing doesn't happen in my local development machine (Windows), only on the production remote one (Linux). Help?... - Original Message - From: Cox, Charlie [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 1:48 PM Subject: RE: Servlet Instances keep in mind that static is only static within the current classloader(your webapp). your servlets will have many threads that share your servlet member fields, but each request is on its own thread, so the doGet() instance is unique to that request. how do you know that you have 3 instances of the servlet? have you defined multiple times in web.xml or have you defined 3 contexts that share the same servlet? -Original Message- From: Rui Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 6:41 AM To: Tomcat Users List Subject: RE: Servlet Instances No, Is just like that. But I change things with static variables to control that servlets don't instantiate what others instantiated before, and share access to the necessary classes through static references. But I find that this doesn't solve the problem... My conclusion, somehow there are 3 Tomcats running!?!? But only one seems to be responsible for remote calls. Strange, very strange indeed just can't get it. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 12:29 PM Subject: Re: Servlet Instances No, I am
Re: Best Connector for Apache 2x and Tomcat 4x
I see what you mean about this issue showing up a lot. This wouldn't be the case if there was some documentation for this on the apache site. I've just started going through your HOWTO and it looks well written. You might want to consider contributing it when you've got it updated. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 9:06 AM Subject: RE: Best Connector for Apache 2x and Tomcat 4x I hear you on the root user issue. I don't know of a way to bind tomcat to port 80 and have tomcat run as a non-root user. I run my tomcats under a non-root user account, but the bound ports are all 8000+ since I use the connector. My HOWTO should help you out...I will be updating it today (actually, I am working on it right now). I've gotten email from people who have used it not only for RH, but also FreeBSD and NetBSD, as well as SuSE and Mandrake, so it should get you started. The only difference between apache 1.3 and apache 2.0 as far as tomcat integration goes is needing a different mod_jk.so binary, but if you download the connector source package and run through the build process, you will get connectors for both 1.3 and 2.0, then you can pick which one you copy to apache's modules or libexec directory. SIDE NOTE: The build process in my HOWTO uses ANT. Based on suggestions from others, I'm changing that to use the standard ./configure and apxs, it's easier and less error-prone. The changes to the HOWTO will be live ASAP. John -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:50 AM To: Tomcat Users List Subject: Re: Best Connector for Apache 2x and Tomcat 4x Thank you, Best IS relative. That's why I explicitly stated my needs in parenthesis. :-) I'm running on RH Linux 7.1 The reason I wanted to integrate the two is that I don't want to run tomcat as the root user but I do want to use port 80 instead of port 8080. I know that Apache gets started by the root user but then forks off all other processes to the user nobody. If you know of a way to configure Tomcat to bind to port 80 without having its processes run by the root user, this would eliminate the need for me to integrate. It isn't a site with a lot of traffic or static content. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
REPOST:Connection refused problem
Hi Everybody, We are trying to connect with our 'X' database with the help of servlets. We are using the socket connection to the server and try to match the sequence we paste in our User Interface and correspondingly generate the graph of the matched sequence. But somehow we not able to connect with the database. It flashes the following error message: Error in JCS:: java.net.ConnectionException: Connection refused: connect Besides we have an IOEXCEPTION generated: cannot close the LOG/BAN files java.io.IOEXCEPTION stream closed. Where JCS is the server we have generated ourselves to connect to the 'X' database.I am pretty certain that the EXCEPTION in the servlet code is causing the ERROR. We are not able to DEBUG this EXCEPTION. Can anyone DEBUG this. Since we are serving our application using TOMCAT I would like to know what we need to do to start a new instance of our application. When we LIST after RELOADING(using the MANAGER tool) we get: /proj_GR:running:0 is the NUMBER on the right side to do anything with the instance. To resolve we have tried importing packages like java.net.* and java.io.*. Can someone DEBUG this EXCEPTION. Thanks in advance Vikas. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: REPOST:Connection refused problem
Well, it sounds like you have several problems but it is hard to diagnose with the information supplied. What is an 'X' database? Are you using a JDBC driver to connect to it? The IOException about the LOG/BAN files is not a Tomcat message. Is your servlet trying to do some sort of logging? The message /proj_GR:running:0 in the manager app tells you that the servlet is loaded. The 0 means there are no active sessions. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 9:21 AM To: '[EMAIL PROTECTED]' Subject: REPOST:Connection refused problem Hi Everybody, We are trying to connect with our 'X' database with the help of servlets. We are using the socket connection to the server and try to match the sequence we paste in our User Interface and correspondingly generate the graph of the matched sequence. But somehow we not able to connect with the database. It flashes the following error message: Error in JCS:: java.net.ConnectionException: Connection refused: connect Besides we have an IOEXCEPTION generated: cannot close the LOG/BAN files java.io.IOEXCEPTION stream closed. Where JCS is the server we have generated ourselves to connect to the 'X' database.I am pretty certain that the EXCEPTION in the servlet code is causing the ERROR. We are not able to DEBUG this EXCEPTION. Can anyone DEBUG this. Since we are serving our application using TOMCAT I would like to know what we need to do to start a new instance of our application. When we LIST after RELOADING(using the MANAGER tool) we get: /proj_GR:running:0 is the NUMBER on the right side to do anything with the instance. To resolve we have tried importing packages like java.net.* and java.io.*. Can someone DEBUG this EXCEPTION. Thanks in advance Vikas. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.x, JNDI, and Junit
Hello, Has anyone managed to use a JUnit test framework to connect to a JNDI resource provided by Tomcat? I'd like to be able to test my Java Database code using JUnit. When I used to use Weblogic, we could leave Weblogic running and then execute JUnit test cases external of the web app while connecting to Weblogic's JNDI resources. I'd like to perform the same task with TOMCAT. I've got the JNDI services running and working, but I'd like to execute JUnit tests outside of Tomcat and still use the Tomcat JNDI services that I've set up. I have managed to configure a Tomcat JNDI resource to my Postgres Developer Integration database. The resource is named, oddly enough, db/pgDevInt. I've created a successful demo Java Server Page to check the connectivity. Here is a code snippet from the page: %@page import = java.util.*% %@page import = java.io.*% %@page import = java.sql.*% %@page import = javax.sql.*% %@page import = javax.naming.Context% %@page import = javax.naming.InitialContext% [...] % Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; try { conn = null; ps = null; rs = null; InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/db/pgDevInt); conn = ds.getConnection(); ps = conn.prepareStatement(select username from login); rs = ps.executeQuery(); String userName = null; while (rs.next()) { [...] } [...] } % This works without a hitch. I would like to use a very similar snippet in a Junta test harness. I assume you need to set some system properties before attempting to get the InitialContext, but I'm not sure how to proceed. Here is a snippet from my (currently not working JUnit test case): import junit.framework.TestCase; import junit.framework.TestSuite; import junit.framework.Test; import java.io.*; import java.lang.*; import java.util.*; import java.sql.*; import javax.sql.*; import javax.naming.*; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; [...] public static void testDBConnectForRetrieve() { System.setProperty(java.naming.provider.url, 127.0.0.1); Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; try { conn = null; ps = null; rs = null; InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/db/pgDevInt); conn = ds.getConnection(); ps = conn.prepareStatement(select username from login); rs = ps.executeQuery(); } } When Junit attempts to get an InitialContext, the following exception is raised: [junit] NamingException: e= javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial I've attached the entire JUnit test case in the event that someone would like to examine it (or use it) If anybody has successfully managed to do this, I'd love to hear from you. If others have suggestions, I'm all ears (figuratively speaking) ...Paul package ca.passport.ContentManager.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.framework.Test; import java.io.*; import java.lang.*; import java.util.*; import java.sql.*; import javax.sql.*; import javax.naming.*; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; /** * This is the DBConnect Testing Class. It uses JUnit3.7 to test * out the DB connections through a JNDI resource * * @author J. Paul Landolt * @company Passport New Media * @version $Id:$ */ public class TestDBConnect extends TestCase { // private final static boolean DEBUG = false; // output debug messages to System.err? private final static boolean DEBUG = true; // output debug messages to System.err? static String dsTest = null; public TestDBConnect(String s) { super(s); } public void setUp() { } public void tearDown() { } /** * Starts the application. * * @param args 'text' will optionally use a text-based test rather than graphical * */ public static void main(java.lang.String[] args) { // Graphic or text UI if ((args.length 0) (args[0].equals(gui))) { System.out.println(Testing with GUI); junit.awtui.TestRunner.main(new String[] { TestDBConnect.class.getName() ,-noloading}); } else { System.out.println(Testing with Text UI); junit.textui.TestRunner.main(new String[] { TestDBConnect.class.getName() }); } } public static
Why should I move from Tomcat 3.x to Tomcat 4.x
I am a happy Apache 1.3 and Tomcat 3.x user for the past 1 1/2 yr. Q1. Is this a major upgrade for my servlet/jsp code? Q2. Can I continue using Apache 1.3 or do I need to upgrade that as well? Q3. I was wondering if there is any link with need to upgrade, advantages and disadvantages. I need this info. to get proper funding for the project. Your help is really appreciated -Sri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Why should I move from Tomcat 3.x to Tomcat 4.x
A1: Probably not. tomcat 4 is backwards compatible with previous versions of the specs. There might be minor changes, but without knowing your code, there's no way to tell for sure. A2: You can use Apache 1.3 with tomcat 4. Many people do. A3: I don't know of a resource like that, perhaps someone else on the list does. John Turner [EMAIL PROTECTED] -Original Message- From: Srinadh Karumuri [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 9:39 AM To: Tomcat Users List Subject: Why should I move from Tomcat 3.x to Tomcat 4.x I am a happy Apache 1.3 and Tomcat 3.x user for the past 1 1/2 yr. Q1. Is this a major upgrade for my servlet/jsp code? Q2. Can I continue using Apache 1.3 or do I need to upgrade that as well? Q3. I was wondering if there is any link with need to upgrade, advantages and disadvantages. I need this info. to get proper funding for the project. Your help is really appreciated -Sri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
error compiling jakarta-tomcat-connectors
Hi there ! I'm trying to compile the tomcat connector package from the source, but I have a problem, here is what I did. I downloaded http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/bin/jakarta-tomcat-4.0.4.tar.gz and http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/jakarta-tomcat-connectors-4.0.4-src.tar.gz and extracted them into a fresh directory. Then I followed exactly the instructions at http://www.pubbitch.org/jboss/mod_jk2.html (this is mainly editing the build.properties files) When it comes to building with ant, I get the following error message: compile.tomcat4: [javac] Compiling 12 source files to /home/kannenbe/klinform/software/fresh/jakarta-tomcat-connectors-4.0.4-src/coyote/build/classes [javac] /home/kannenbe/klinform/software/fresh/jakarta-tomcat-connectors-4.0.4-src/coyote/src/java/org/apache/coyote/tomcat4/CoyoteServerSocketFactory.java:102: createSocket(int,int,java.net.InetAddress) in org.apache.coyote.tomcat4.CoyoteServerSocketFactory cannot implement createSocket(int,int,java.net.InetAddress) in org.apache.catalina.net.ServerSocketFactory; overridden method does not throw java.security.KeyManagementException [javac] public class CoyoteServerSocketFactory [javac]^ This happens with jdk-1.4 and jdk-1.3.1 (on linux, suse 8.0) Other people don't seem to have this problem, so what am I doing wrong? The problem comes from this line in CoyoteServerSocketFactory.java in the connectors-source-package: public class CoyoteServerSocketFactory implements org.apache.catalina.net.ServerSocketFactory { The Interface org.apache.catalina.net.ServerSocketFactory is located in catalina.jar in the binary distribution of jakarta-tomcat-4.0.4 So, this should fit... but it doesn't. any ideas? Thanks a lot. Ciao, Branko. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: REPOST:Connection refused problem
Hello Everybody, Well 'X' database is the place where we have got the already known sequences and then we try to match the sequence generated by us with these standard squences. Finally we generate the HISTOGRAM corresponding to the nearly matched sequence. No we are not using the JDBC at all. This exception is nothing to do with the Tomcat. Yes our servlet asks for the 'username' and 'password' and only lets you log into the application if your name is hard wired into our servlet code and for that you should be registered user of our database. This authenication is for security reasons only. Finally thanks for letting me know about the active session stuff. Thanks, Vikas. -Original Message- From: Wagoner, Mark To: 'Tomcat Users List' Sent: 8/30/2002 8:27 AM Subject: RE: REPOST:Connection refused problem Well, it sounds like you have several problems but it is hard to diagnose with the information supplied. What is an 'X' database? Are you using a JDBC driver to connect to it? The IOException about the LOG/BAN files is not a Tomcat message. Is your servlet trying to do some sort of logging? The message /proj_GR:running:0 in the manager app tells you that the servlet is loaded. The 0 means there are no active sessions. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 9:21 AM To: '[EMAIL PROTECTED]' Subject: REPOST:Connection refused problem Hi Everybody, We are trying to connect with our 'X' database with the help of servlets. We are using the socket connection to the server and try to match the sequence we paste in our User Interface and correspondingly generate the graph of the matched sequence. But somehow we not able to connect with the database. It flashes the following error message: Error in JCS:: java.net.ConnectionException: Connection refused: connect Besides we have an IOEXCEPTION generated: cannot close the LOG/BAN files java.io.IOEXCEPTION stream closed. Where JCS is the server we have generated ourselves to connect to the 'X' database.I am pretty certain that the EXCEPTION in the servlet code is causing the ERROR. We are not able to DEBUG this EXCEPTION. Can anyone DEBUG this. Since we are serving our application using TOMCAT I would like to know what we need to do to start a new instance of our application. When we LIST after RELOADING(using the MANAGER tool) we get: /proj_GR:running:0 is the NUMBER on the right side to do anything with the instance. To resolve we have tried importing packages like java.net.* and java.io.*. Can someone DEBUG this EXCEPTION. Thanks in advance Vikas. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat shutdown does not kill java process
- Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on 08/30/2002 10:18 AM - Jim Coble To: [EMAIL PROTECTED] 08/30/2002 08:17 cc: AM Subject: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute bin/shutdown.sh, the java process that has been running Tomcat does not terminate. I can restart Tomcat fine (via bin/startup.sh) but, if I then do a ps -ef, I see both the old and new java processes there. I have to kill the old java process to get rid of it. I do all shutdown.sh and startup.sh commands as root. Before I discovered that this was happening, I ended up with multiple (Tomcat) java processes spanning several days. I don't think the now-unused java processes are consuming CPU time (at least not much) but I worry that they are consuming memory. (ps -leaf still shows them as having memory allocated, if I'm understanding what I'm seeing properly.) Any ideas why the java process doesn't terminate when I shutdown Tomcat? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
4.0.2 Form Based Login Problem
Hi all, I'm having a very strange problem with Form Based login problem. If I deploy my .war file for the first time (before the .jsps have been compiled) and run it, the login form works fine and the specified welcome-file appears. However, with every new session (let's say kill the browser and start again), the login form works, but instead of the welcome-file appearing, just a blank page appears. However the URL says that it was my welcome-page. The blank page seems to have been generated by Tomcat. Any idea of what might be causing this? Thanks, Noah Noah Green Software Engineering Manager Palm, Inc. (212) 343-5032 [EMAIL PROTECTED] This message and any appended documentation is proprietary and confidential to Palm, Inc. and is intended only for the use of the intended recipient(s). These items may not be disclosed to third parties without the prior written permission of Palm, Inc. If you are not the intended recipient, please contact Palm, Inc. at 212-343-5000 and delete this message and its contents from your system. Copyright (c) 2002, Palm, Inc. All rights reserved. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat shutdown does not kill java process
How quickly are you restarting Tomcat? I've noticed the same behaviour if I rush and restart tomcat too quickly. Just waiting for solved the issue for me. Mike - Original Message - From: Jim Coble [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 10:18 AM Subject: Tomcat shutdown does not kill java process - Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on 08/30/2002 10:18 AM - Jim Coble To: [EMAIL PROTECTED] 08/30/2002 08:17 cc: AM Subject: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute bin/shutdown.sh, the java process that has been running Tomcat does not terminate. I can restart Tomcat fine (via bin/startup.sh) but, if I then do a ps -ef, I see both the old and new java processes there. I have to kill the old java process to get rid of it. I do all shutdown.sh and startup.sh commands as root. Before I discovered that this was happening, I ended up with multiple (Tomcat) java processes spanning several days. I don't think the now-unused java processes are consuming CPU time (at least not much) but I worry that they are consuming memory. (ps -leaf still shows them as having memory allocated, if I'm understanding what I'm seeing properly.) Any ideas why the java process doesn't terminate when I shutdown Tomcat? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A question about jni used in tomcat!
you can see help of tomcat,you can search what you want from the help of tomcat/ - Original Message - From: wq [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 11:00 AM Subject: A question about jni used in tomcat! hi,tomcat-user: I am a chinese tomcat-user.Now i meet some questions when i use tomcat.Under linux platform,I hava 3 files:mybean.class,myso.so,myjsp.jsp.I want myjsp.jsp envoke mybean,and mybean file envoke myso file(myjsp-mybean-myso).But I cannot do it successfully.By the way,I have set $LD_LIBRARY_PATH,$CLASSPATH.So i wonder if the tomcat container can support jni?If can,how should i do? Best wishes and thanks a lot! wq [EMAIL PROTECTED] 2002-08-29 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Tomcat shutdown does not kill java process
-Ursprungliche Nachricht- Von: Jim Coble [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 30. August 2002 16:18 An: [EMAIL PROTECTED] Betreff: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute bin/shutdown.sh, the java process that has been running Tomcat does not terminate. I can restart Tomcat fine (via bin/startup.sh) but, if I then do a ps -ef, I see both the old and new java processes there. I have to kill the old java process to get rid of it. I do all shutdown.sh and startup.sh commands as root. tomcat.sh stop -force will(should) kill all java processes while shutdown. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat shutdown does not kill java process
We have noticed this problem on HP-UX machines. The main connector thread was not exiting because it would not close its socket. This occurs for both Tomcat-standalone and mod_webapp. We include the option -XdoCloseWithReadPending enable non-blocking close operations in the java command. I do not know if there is a similar option for solaris. java -X should tell you Jeff -Original Message- From: Michael Nicholson [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:23 AM To: Tomcat Users List Subject: Re: Tomcat shutdown does not kill java process How quickly are you restarting Tomcat? I've noticed the same behaviour if I rush and restart tomcat too quickly. Just waiting for solved the issue for me. Mike - Original Message - From: Jim Coble [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 10:18 AM Subject: Tomcat shutdown does not kill java process - Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on 08/30/2002 10:18 AM - Jim Coble To: [EMAIL PROTECTED] 08/30/2002 08:17 cc: AM Subject: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute bin/shutdown.sh, the java process that has been running Tomcat does not terminate. I can restart Tomcat fine (via bin/startup.sh) but, if I then do a ps -ef, I see both the old and new java processes there. I have to kill the old java process to get rid of it. I do all shutdown.sh and startup.sh commands as root. Before I discovered that this was happening, I ended up with multiple (Tomcat) java processes spanning several days. I don't think the now-unused java processes are consuming CPU time (at least not much) but I worry that they are consuming memory. (ps -leaf still shows them as having memory allocated, if I'm understanding what I'm seeing properly.) Any ideas why the java process doesn't terminate when I shutdown Tomcat? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: need help
Error message: Line to long ? what's mean? you can see the information of error, if not about with you error. - Original Message - From: arakan arakan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 10:57 AM Subject: need help Hi, Tomcat started normally with no error. When I tried to open the starting page, nothing came up but a blank page. It worked well before. And I found this following message in the log file: 2002-08-08 09:22:36 HttpProcessor[8080][4] process.parse java.io.IOException: Line too long at org.apache.catalina.connector.http.SocketInputStream.readHeader(SocketInputStream.java:466) at org.apache.catalina.connector.http.HttpProcessor.parseHeaders(HttpProcessor.java:569) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:962) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:484) Please help me find out what happenned. Thanks, Jiab _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to set up a security constraint?
Hi, I have a web site with the following directory structure: root/admin/sysop. I only want certain people to have access to the admin section and only other people to have access to the sysop section. I have created two users in the tomcat-users.xml file: role rolename=sysop/ role rolename=admin/ user username=admin password=test1 roles=admin/ user username=sysop password=test2 roles=sysop/ In the server.xml file I have uncommented the: Realm className=org.apache.catalina.realm.MemoryRealm / line. Then in the web.xml file I have added the following: security-constraint web-resource-collection web-resource-nameAdmin Pages/web-resource-name url-pattern/admin/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameSysop Pages/web-resource-name url-pattern/admin/sysop/*/url-pattern /web-resource-collection auth-constraint role-namesysop/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmin Pages/realm-name /login-config login-config auth-methodBASIC/auth-method realm-nameSysop Pages/realm-name /login-config This is where my problem is. User admin and sysop can access both the admin and the sysop sections. I must have set the security constraint incorrect. Can someone please point out what is wrong. Thanks Alex -- This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. ==
Re: How to integrate Apache and Tomcat on Window
Thanks a lot John, It worked fine till Set (9) in the mentioned document you gave me. But the apache does not start. i.e. Step (10) is not working. Can you please tell me the possible reasons. Thank you. with regards, Pratim Chaudhuri - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 5:44 PM Subject: RE: How to integrate Apache and Tomcat on Window http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: Pratim Chaudhuri [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 7:14 AM To: Tomcat Users List Subject: How to integrate Apache and Tomcat on Window Hello All, I want to integrate Apache 2.0 with Tomcat 4.0.3 on Windows platform. I do not know how to go for it. I want to publish my web application on the Apache Web Server and I want the Tomcat to be used as a Servlet engine. Please do help me. Thank you. with regards, Pratim Chaudhuri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Why should I move from Tomcat 3.x to Tomcat 4.x
Srinadh Karumuri wrote: I am a happy Apache 1.3 and Tomcat 3.x user for the past 1 1/2 yr. Q1. Is this a major upgrade for my servlet/jsp code? Tomcat 4.0 supports Servlet 2.3 and JSP 1.2 specs. Tomcat 3 don't. (see http://jakarta.apache.org/tomcat/index.html) for more info Q2. Can I continue using Apache 1.3 or do I need to upgrade that as well? No, you don't need to upgrade. Q3. I was wondering if there is any link with need to upgrade, advantages and disadvantages. I need this info. to get proper funding for the project. The only info available is under the link listed above. -- Jeanfrancois Your help is really appreciated -Sri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat shutdown does not kill java process
Make sure you do not have any servlets or beans creating non-daemon threads. A java process will run while there exists at least 1 non-daemon thread. Perform a thread dump on your java process and see if this is the case. See previous threads (or google) on how to perform a thread dump. Jim Coble wrote: - Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on 08/30/2002 10:18 AM - Jim Coble To: [EMAIL PROTECTED] 08/30/2002 08:17 cc: AM Subject: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute bin/shutdown.sh, the java process that has been running Tomcat does not terminate. I can restart Tomcat fine (via bin/startup.sh) but, if I then do a ps -ef, I see both the old and new java processes there. I have to kill the old java process to get rid of it. I do all shutdown.sh and startup.sh commands as root. Before I discovered that this was happening, I ended up with multiple (Tomcat) java processes spanning several days. I don't think the now-unused java processes are consuming CPU time (at least not much) but I worry that they are consuming memory. (ps -leaf still shows them as having memory allocated, if I'm understanding what I'm seeing properly.) Any ideas why the java process doesn't terminate when I shutdown Tomcat? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to integrate Apache and Tomcat on Window
I or someone else on the list would be happy to try and help, but for that we would need to know what exactly is wrong. Are there any error messages? Anything in the log files? I don't use Windows for server level stuff, so I doubt I will be much help. John -Original Message- From: Pratim Chaudhuri [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:11 AM To: Tomcat Users List Subject: Re: How to integrate Apache and Tomcat on Window Thanks a lot John, It worked fine till Set (9) in the mentioned document you gave me. But the apache does not start. i.e. Step (10) is not working. Can you please tell me the possible reasons. Thank you. with regards, Pratim Chaudhuri - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 5:44 PM Subject: RE: How to integrate Apache and Tomcat on Window http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: Pratim Chaudhuri [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 7:14 AM To: Tomcat Users List Subject: How to integrate Apache and Tomcat on Window Hello All, I want to integrate Apache 2.0 with Tomcat 4.0.3 on Windows platform. I do not know how to go for it. I want to publish my web application on the Apache Web Server and I want the Tomcat to be used as a Servlet engine. Please do help me. Thank you. with regards, Pratim Chaudhuri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: optimum settings
I running Tomcat4.0.1 on Win2000,using sun.jdbc.odbc.drvier,but return value is null? can you tell me the error come from ? - Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 12:40 PM Subject: DBCP: optimum settings Im wondering what the maximum active conn objects is in a DBCP pool. On my production server I'm running Tomcat 4.0.4 on Linux, using Connector/J 2 and MySQL 3.23. I'm running a 733 PII, with 256 MB RAM. I've got resourceParams maxWait set to 100 and maxIdle set to 3000. Does anyone know what would be optimum with this config, off hand? Just trying to get a basic idea. Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to integrate Apache and Tomcat on Window
I had such problems because I wanted to use variables environment in the httpd.conf and workers.properties file but it seems to be impossible. If someone succeeded thanks to give me the syntax to use I tried JkWorkersFile $CATALINA_HOME/conf/jk/workers.properties in http.conf and workers.tomcat_home = $(CATALINA_HOME) in workers.properties with a windowsNT environment but it doesn't work. CATALINA_HOME = c:\tomcat4.0. When I don't use variables it works fine. I would like to know how test that the Apache-Tomcat communication works fine and be sure that Tomcat is called only for the dynamic contentrequests and Apache the static pages. When we enter the URL http://localhost:8080 we use the standalone service. What's the URL corresponding to the Apache-Tomcat service ? -Original Message- From: Pratim Chaudhuri [mailto:[EMAIL PROTECTED]] Sent: 30 August 2002 16:11 To: Tomcat Users List Subject: Re: How to integrate Apache and Tomcat on Window Thanks a lot John, It worked fine till Set (9) in the mentioned document you gave me. But the apache does not start. i.e. Step (10) is not working. Can you please tell me the possible reasons. Thank you. with regards, Pratim Chaudhuri - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 5:44 PM Subject: RE: How to integrate Apache and Tomcat on Window http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: Pratim Chaudhuri [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 7:14 AM To: Tomcat Users List Subject: How to integrate Apache and Tomcat on Window Hello All, I want to integrate Apache 2.0 with Tomcat 4.0.3 on Windows platform. I do not know how to go for it. I want to publish my web application on the Apache Web Server and I want the Tomcat to be used as a Servlet engine. Please do help me. Thank you. with regards, Pratim Chaudhuri -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to integrate Apache and Tomcat on Window
http://localhost If you can get the tomcat examples on http://localhost/examples, and they work, you have apache and tomcat communicating properly. As for testing that apache is serving static pages, the easiest test would be to shut down tomcat, then make your request and see if it is successful. John Turner [EMAIL PROTECTED] -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:54 AM To: 'Tomcat Users List' Subject: RE: How to integrate Apache and Tomcat on Window I had such problems because I wanted to use variables environment in the httpd.conf and workers.properties file but it seems to be impossible. If someone succeeded thanks to give me the syntax to use I tried JkWorkersFile $CATALINA_HOME/conf/jk/workers.properties in http.conf and workers.tomcat_home = $(CATALINA_HOME) in workers.properties with a windowsNT environment but it doesn't work. CATALINA_HOME = c:\tomcat4.0. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where should i put dynamically generated graphics
Yes, I would like the solution where we can write to the servlet outputstream, but I have no idea how to do it. On Fri, 2002-08-30 at 10:21, Michael E. Locasto wrote: I can think of a couple of ways offhand: -process the request -generate your image -store your image somewhere (optional) - either - write the image directly out to the servlet's underlying outputstream as a buffered byte output stream (I don't think PrintWriter would be appropriate. This would probably also in involve a response.setContentType(image/gif); ... but i've never done this, so I'm probably wrong.) -or- -store your image somewhere -return html that has a bunch of img src= tags or hyperlinks to the images eg: /* get my images! */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { /* optionally clean out the temp image directory */ /* genrt imgs, store in gen_images/username/ under the current context */ response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println( htmlbody ); out.println( img src=\gen_images/username/foo.gif\ ); out.println( img src=\gen_images/username/foo1.gif\ ); out.println( img src=\gen_images/username/foo2.gif\ ); out.println( /body/html ); } of course, feel free to spruce that html up ;) hope that helps, Michael - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 8:06 AM Subject: RE: Where should i put dynamically generated graphics How can I return an image from a servlet?? On Thu, 2002-08-29 at 20:05, Sexton, George wrote: It depends. One way I have done it is to have the generator servlet save it on the session, and have the page the generator servlet writes make a request to a simple servlet that returns the graphic, and then deletes it from the session. Another way would be to write it to the temp dir. From the Servlet API Spec: SRV.3.7.1 Temporary Working Directories A temporary storage directory is required for each servlet context. Servlet containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. Then, using a servlet mapping request the generated image and have the servlet retrieve the temporary image. I guess that you could make another dir writable to the server, and store the image in their natively. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Andy Wagg [mailto:[EMAIL PROTECTED]] Sent: 29 August, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: Where should i put dynamically generated graphics Hello I have a web application that generates a gif file that is then subsequently displayed. It expects to find the gif file in the context of the web application. The web app is deployed as a war so obviously the generated files cant be put there. Any suggestions as to where these files could be copied that would be accesible by the browser. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to integrate Apache and Tomcat on Window
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 10:58:43AM -0400, Turner, John wrote: http://localhost If you can get the tomcat examples on http://localhost/examples, and they work, you have apache and tomcat communicating properly. As for testing that apache is serving static pages, the easiest test would be to shut down tomcat, then make your request and see if it is successful. you could also just check the tomcat access log when you make a request for a static page. it should be silent. also, the apache log will tell you if it is forwarding requests to tomcat. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b4j0ggA8sH0iRXQRAkz6AJ0YzNC8FQ6swngdQIZItAML+ihNDQCeL/fz 1Rs9ywNCoxA9GQIPVFNwcUM= =cVCp -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to integrate Apache and Tomcat on Window
Right on. John -Original Message- From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:02 AM To: 'Tomcat Users List' Subject: Re: How to integrate Apache and Tomcat on Window -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 10:58:43AM -0400, Turner, John wrote: http://localhost If you can get the tomcat examples on http://localhost/examples, and they work, you have apache and tomcat communicating properly. As for testing that apache is serving static pages, the easiest test would be to shut down tomcat, then make your request and see if it is successful. you could also just check the tomcat access log when you make a request for a static page. it should be silent. also, the apache log will tell you if it is forwarding requests to tomcat. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b4j0ggA8sH0iRXQRAkz6AJ0YzNC8FQ6swngdQIZItAML+ihNDQCeL/fz 1Rs9ywNCoxA9GQIPVFNwcUM= =cVCp -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where should i put dynamically generated graphics
If you want a servlet to write out a GIF stream take a look at this: http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html Basically, you have a seperate servlet that generates the GIF. Then your real page has a IMG tag that references the image display servlet which sends back a GIF encoded stream. And of course Google is your friend: http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=java+servlet+write+gif -Joel Joel Sather email: [EMAIL PROTECTED] phone: 651-649-5789 [EMAIL PROTECTED] 08/30/02 09:53AM Yes, I would like the solution where we can write to the servlet outputstream, but I have no idea how to do it. On Fri, 2002-08-30 at 10:21, Michael E. Locasto wrote: I can think of a couple of ways offhand: -process the request -generate your image -store your image somewhere (optional) - either - write the image directly out to the servlet's underlying outputstream as a buffered byte output stream (I don't think PrintWriter would be appropriate. This would probably also in involve a response.setContentType(image/gif); ... but i've never done this, so I'm probably wrong.) -or- -store your image somewhere -return html that has a bunch of img src= tags or hyperlinks to the images eg: /* get my images! */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { /* optionally clean out the temp image directory */ /* genrt imgs, store in gen_images/username/ under the current context */ response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println( htmlbody ); out.println( img src=\gen_images/username/foo.gif\ ); out.println( img src=\gen_images/username/foo1.gif\ ); out.println( img src=\gen_images/username/foo2.gif\ ); out.println( /body/html ); } of course, feel free to spruce that html up ;) hope that helps, Michael - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 8:06 AM Subject: RE: Where should i put dynamically generated graphics How can I return an image from a servlet?? On Thu, 2002-08-29 at 20:05, Sexton, George wrote: It depends. One way I have done it is to have the generator servlet save it on the session, and have the page the generator servlet writes make a request to a simple servlet that returns the graphic, and then deletes it from the session. Another way would be to write it to the temp dir. From the Servlet API Spec: SRV.3.7.1 Temporary Working Directories A temporary storage directory is required for each servlet context. Servlet containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. Then, using a servlet mapping request the generated image and have the servlet retrieve the temporary image. I guess that you could make another dir writable to the server, and store the image in their natively. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Andy Wagg [mailto:[EMAIL PROTECTED]] Sent: 29 August, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: Where should i put dynamically generated graphics Hello I have a web application that generates a gif file that is then subsequently displayed. It expects to find the gif file in the context of the web application. The web app is deployed as a war so obviously the generated files cant be put there. Any suggestions as to where these files could be copied that would be accesible by the browser. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail:
CPU 100% usage in applet
Hi, I am running my applet on IE 5.5 not using any plugin, on a NT heavy duty machine. The applet takes up 100% CPU. The applet does not have any GUI component but launches JSP pages. The applet connects to backend resources using socket, uses threads etc. The bulk of the code is in Java classes- the classes themselves run fine outside of the applet. I can see the memory usage- that is not high. Any ideas or suggestions welcome. How can we measure CPU usage in Java? Thanks a lot, Sanjay __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Solved my problem (was RE: 4.0.2 Form Based Login Problem)
I upgraded to 4.0.4 and everything works. I think this was related to BUG 5422. Good luck everyone! -noah -Original Message- From: Noah Green Sent: Friday, August 30, 2002 10:22 AM To: '[EMAIL PROTECTED]' Subject: 4.0.2 Form Based Login Problem Hi all, I'm having a very strange problem with Form Based login problem. If I deploy my .war file for the first time (before the .jsps have been compiled) and run it, the login form works fine and the specified welcome-file appears. However, with every new session (let's say kill the browser and start again), the login form works, but instead of the welcome-file appearing, just a blank page appears. However the URL says that it was my welcome-page. The blank page seems to have been generated by Tomcat. Any idea of what might be causing this? Thanks, Noah Noah Green Software Engineering Manager Palm, Inc. (212) 343-5032 [EMAIL PROTECTED] This message and any appended documentation is proprietary and confidential to Palm, Inc. and is intended only for the use of the intended recipient(s). These items may not be disclosed to third parties without the prior written permission of Palm, Inc. If you are not the intended recipient, please contact Palm, Inc. at 212-343-5000 and delete this message and its contents from your system. Copyright (c) 2002, Palm, Inc. All rights reserved. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Compiling mod_jk, mod_jk2 on Solaris
For anyone who may be interested, i have managed to compile mod_jk and mod_jk2 of jakarta-tomcat-connectors-4.1.9 for apache 2.0.39 under Solaris 2.8, using both configure and ant methods. The tools used were: ant 1.5 gcc 2.95.2 libtool 1.4.2 Autoconf 2.53 automake 1.6 JDK 1.4.0_01 If you download libtool package from one of the sunfreeware sites, i don't know in what environment it was built, but it produces wrong flags for ld and the link phase will fail. Libtool to produce reliable results is highly sensitive to the environment so in any case i suggest to start with source and build it on your machine. Here's what i did. I'm assuming jakarta-tomcat-connectors-4.1.9-src/jk as base directory, so any reference will be relative to this. ** mod_jk, configure method ** This compiles right out of the box so within native dir i run buildconf.sh then ./configure \ --with-apxs=/usr/local/apache2/bin/apxs \ --with-java-home=${JAVA_HOME} \ --with-java-platform=2 \ --enable-jni then make and that's it. ** mod_jk2, configure method ** Here things start to complicate. native2/include/jk_global.h includes sys/ioctl.h that to expand correctly in solaris needs the BSD_COMP define to be set. So as the easy option you can buildconf.sh ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-tomcat41=/usr/local/jakarta-tomcat-4.1.9 \ --with-java-home=${JAVA_HOME} \ --with-java-platform=2 \ --with-jni make CPPFLAGS=-DBSD_COMP Otherwise if you are really brave you can modify support/jk_apxs.m4 changing the following two lines APXS$1_CFLAGS=`${APXS$1} -q CFLAGS` `${APXS$1} -q EXTRA_CFLAGS` APXS$1_CPPFLAGS=`${APXS$1} -q EXTRA_CPPFLAGS` into APXS$1_CFLAGS=`${APXS$1} -q CFLAGS` `${APXS$1} -q EXTRA_CFLAGS` ${CFLAGS} APXS$1_CPPFLAGS=`${APXS$1} -q EXTRA_CPPFLAGS` ${CPPFLAGS} This allow to pass additional CFLAGS and CPPFLAGS during the configure step that will be merged with those produced by configure and apxs. After this, again buildconf.sh ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-tomcat41=/usr/local/jakarta-tomcat-4.1.9 \ --with-java-home=${JAVA_HOME} \ --with-java-platform=2 \ --with-jni \ CPPFLAGS=-DBSD_COMP make I know that for this the first line of jk_apxs.m4 is not really needed to be modified, but i have included it as a nice to have suggestion for the developers. *** mod_jk, ant method *** WARNING: be aware that running ./configure into native or native2 dirs rewrites build.properties, so if you customize it remember to save it if you ever think to use ./configure. (i learned it the hard way) Here you need to customize build.properties as indicated in the README then add the following lines: build.native.cc=gcc the compiler defaults to cc so if you don't have installed Sun official compiler or have an alias or link from cc to gcc you need the previous line. solaris=true j2sdk1.4.0_01/include/jni.h includes the platform dependent jni_md.h that for solaris is in j2sdk1.4.0_01/include/solaris, so to allow the include to succeed you should modify native/build.xml adding to the apache20 and jni targets where the comment says !-- Platform specific includes -- the following line include name=${java.home}/../include/solaris if=solaris/ build.native.extra_cflags=-pthreads -DNO_DBM_REWRITEMAP -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DBSD_COMP (this is broken in the mail but it must be a single line) The values in this line are those used in my compilation but you should get yours as the merge of the output of these commands apache2-dir/bin/apxs -q CFLAGS apache2-dir/bin/apxs -q EXTRA_CFLAGS apache2-dir/bin/apxs -q EXTRA_CPPFLAGS plus the -DBSD_COMP define as previuosly explained. (in the output of those commands you will possibly find -g and -O flags if they were set when apache was compiled. You should not use them since they are controlled by so.debug and so.optimize properties) This is needed because apacheConfig, that will extract those options from apxs, is not yet working and if you want to compile with the same options as the configure method you need to extract them manually from apxs. After this from jk dir just run ant native *** mod_jk2, ant method *** Running ant native actually builds both mod_jk and mod_jk2. For jk2 there would be no need to add solaris=true line into build.properties nor to modify native2/build.xml because into it already are steps necessary to guess os and set the necessary includes, but since the native target is always executed before you need to add this line. Otherwise you can split the native target as follows target name=all-native depends=native,native2 target name=all-clean-native depends=clean-native,clean-native2 target name=native depends=jkant,detect,report ant dir=native
RE: Compiling mod_jk, mod_jk2 on Solaris
Saludos , Ignacio J. Ortega -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: 30 de agosto de 2002 16:59 Para: [EMAIL PROTECTED] Asunto: Compiling mod_jk, mod_jk2 on Solaris Sorry, the two lines target name=all-native depends=native,native2 target name=all-clean-native depends=clean-native,clean-native2 are missing the closing slash and should read target name=all-native depends=native,native2 / target name=all-clean-native depends=clean-native,clean-native2 / I apologize for that. Gabriele. [EMAIL PROTECTED] 055-420 2832 388-9473323 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
compiling webapp/APR
I have downloaded mod_webapp from cvs, did the ./buildconf thing as well as ./configure --enable-dso --enable-other-child --disable-ipv6 on my redhat 7.3 box. I get this error from make: Making all in dso/unix make[1]: Entering directory `/usr/local/jakarta/apr/dso/unix' make[2]: Entering directory `/usr/local/jakarta/apr/dso/unix' /bin/sh /usr/local/jakarta/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I../../include -I../../include/arch -I../../include/arch/unix -c dso.c touch dso.lo dso.c:62:2: #error No DSO implementation specified. make[2]: *** [dso.lo] Error 1 make[2]: Leaving directory `/usr/local/jakarta/apr/dso/unix' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/jakarta/apr/dso/unix' make: *** [all-recursive] Error 1 any idea what I am doing wrong? note This is the first apache mod_ I've seen without a --with-apxs option or a readme file. /note -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Tomcat shutdown does not kill java process
I saw similar problem when my DB process is locked due to lock on resources. This is not a fancy way but we gave work around to make sure we don't end up with two servers. This can be done easily by checking for 'javaoptions' process running for this user in the start/stop scripts (and show error message). -Sri At 10:35 AM 8/30/2002, Tim Funk wrote: Make sure you do not have any servlets or beans creating non-daemon threads. A java process will run while there exists at least 1 non-daemon thread. Perform a thread dump on your java process and see if this is the case. See previous threads (or google) on how to perform a thread dump. Jim Coble wrote: - Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on 08/30/2002 10:18 AM - Jim Coble To: [EMAIL PROTECTED] 08/30/2002 08:17 cc: AM Subject: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute bin/shutdown.sh, the java process that has been running Tomcat does not terminate. I can restart Tomcat fine (via bin/startup.sh) but, if I then do a ps -ef, I see both the old and new java processes there. I have to kill the old java process to get rid of it. I do all shutdown.sh and startup.sh commands as root. Before I discovered that this was happening, I ended up with multiple (Tomcat) java processes spanning several days. I don't think the now-unused java processes are consuming CPU time (at least not much) but I worry that they are consuming memory. (ps -leaf still shows them as having memory allocated, if I'm understanding what I'm seeing properly.) Any ideas why the java process doesn't terminate when I shutdown Tomcat? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache and Tomcat
Hi, I can't find any documentation on making Apache 2.0.40 work with Tomcat 4.0.4. I would like to be able to use my Apache web server as usual with CGI, mod_perl, PHP, etc, but also have it serve JSP pages and Servlets as well. Do I need to add anything to httpd.conf to make Tomcat take care of the JSPs and Servlets? What if the JSPs and Servlets are in Apache's document root and not Tomcat's? Thanks, James -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[4.1.10] New test milestone released
A new test milestone of Tomcat 4.1 has just been released. Downloads: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.10/ Significant changes over 4.1.9 Beta include: - Jasper 2 bugfixes - Catalina classloader bugfixes - Stable versions of components from Jakarta Commons, including DBCP 1.0 The list of changes is available in the release notes. Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2/Tomcat4
My platform is RH Linux 7.3 I am using Java 1.4 and mod_jk 1.2.0 built from the download site. I am attempting to connect Apache 2.0.40 with Tomcat 4.0.4 in httpd.conf I made the following changes LoadModule module_jk modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount/examples/* xrm13 in workers.properties I have workers.tomcat.home = /usr/local/tomcat workers.java.home = /usr/local/java worker.list=xrm13 worker.xrm13.port=8009 worker.xrm13.host=localhost worker.xrm13.type=ajp13 worker.inprocess.type=jni worker.inprocess.classpath=${workers.tomcat.home}/lib/server/catalina.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=${workers.java.home}/jre/lib/i386/server/libjvm.so worker.inprocess.stderr=${workers.tomcat.home)/logs/inprocess.stderr worker.inprocess.stdout=${workers.tomcat.home)/logs/inprocess.stdout In tomcat/server.xml i changed the Engine to Engine jvmRoute=xrm13 ... Everything else stays the same as shipped from the factory If I load Tomcat and then Apache everything seems to work fine. This means that Apache can connect to the out of process instance of Tomcat. If I load Apache as a daemon in /etc/rc.d/rc5.d then the Mod_jk.log gets a couple of errors jk_connect.c (162)jk_open_socket connect( ) failed errorno = 111 jk_ajp_common.c (613) ... jk_ajp_common.c (859) Error connecting to Tomcat process jk_ajp_common.c (1168)... So the inprocess doesn't work. Any help would be greatly appreciated as i am attmpting to create a turnkey type of installation. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 5:16 AM To: 'Tomcat Users List' Subject: RE: Apache2/Tomcat4 It would be helpful if you could tell us which platform you are using, and what the log files say. Also, which changes did you make to httpd.conf? Which connector are you using? John Turner [EMAIL PROTECTED] -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:57 PM To: Tomcat Users List Subject: Apache2/Tomcat4 I have the source for the connectors, and have built and installed them. I made changes to apache2/httpd.conf, copied workers.properties from the connector source tree and added the lines to point to the tomcat directory. I ran apache2 and am unable to handle any .jsp files. My question is: How does one debug the connectors to know where the problem is? And Is there a source of info for an out of the box - quick working source of info that is needed to get this working. Once I have a starting setup, I can figure out how to make the changes i need for my application. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: RE: Problems with class loader
I guess I wouldn't consider it a bug, but rather a consequence of how classes are loaded and which class loader holds the files in question. But I see your point in that you don't want Hashtable(and more) in all your webapps... you can open a bug for this and one of the developers(I'm not a developer) will look at it. Feel free to include my responses and I will help best I can. To restate, the classes stored in the Hashtable(and Vector,etc) would have to be in the same classloader as the Hashtable(and Vector,etc) when serializing a class containing a Hashtable. Classloaders can only delegate requests to one 'parent'. So the common classloader either delegates to the 'system' classloader(which it does) or to the 'webapp' classloader(then which one of those?) I guess you would need to provide more detail as to why this would still be a problem for you. Other than having the java classes(Hashtable,etc) in your webapp instead of in the JVM's Bootstrap and having to maintain this with each JVM upgrade, I don't see why this wouldn't work. You *may* be able to move classes that will be in the hashtable to the /jre/lib/ext directory for your JVM, but that's not ideal either as they won't be able to see your other classes loaded by tomcat, but those classes loaded by tomcat will see them. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: RE: RE: RE: Problems with class loader Hi Charlie, I gave it a try. And guess what: it worked! Now, in this very simple case one can argue that adding the collection classes to the application's lib directory is not a bad thing to do. But what would one do if the scenario wasn't that simple? (Actually, it isn't!) Anyway, I consider this still a bug in the classloader hierarchy! So, where do we go from here? --- Jürgen NB: As for your concerns with loading the classes more than once: I think that's what classloaders are for: I would always let it be their problem... ;-) NB(2): Actually, the problem already shows up when an application is serializing a hashtable that contains an object of a class that is defined in the application only. - Yet one reason why I think that's a bug in the classloader hierarchy. --- original post ok, StandardClassLoader means that the class is trying to be loaded from \tomcat\lib. If it were being loaded from \web-inf\lib, it would be WebappClassLoader throwing the error. From your stack trace, it looks as if it is loading the Hashtable ok(through reflection), but it is the contents of the hashtable that can't be loaded. This would make sense since you put the Hashtable in \tomcat\lib. How about if you try to put Hashtable in the \web-inf\lib so that the first reflection call will find it in the current(webapp) classloader, then the second reflection call(from hashtable) will occur in your webapp's classloader. Of course being a java class, I'm not sure if it will have problems being(or can be) loaded multiple times. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: RE: RE: Problems with class loader see intermixed, too From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri, 9 Aug 2002 08:42:05 -0400 Subject: RE: Problems with class loader see intermixed Hello, we have problems with the tomcat class loaders. scenario: Tomcat 4.0.4, jdk1.3 2 Applications App1:webapps/App1/WEB-INF/lib/x.jar App2:webapps/App2/WEB-INF/lib/x.jar (the same .jar-file) x.jar: a.class, b.class, c.class b.class has a Hashtable (com.sun.java.util.collections.Hashtable) as member-variable. (Hashtable is in the directory $CATALINA_HOME/lib/). why is hashtable defined in $CATALINA_HOME/lib ? Is there a reason why allowing the JVM to provide the java classes is a problem? This shouldn't really matter in this case, but could cause problems keeping in sync with the current JVM version. -- yes, this jar-file doesn't have to defined there but this is not the problem In the Hastable are Objects of the c.class. class a in App1 serialize class b and save it in persistence (poet-)classes in directory ($CATALINA_HOME/lib/). so, this poet(I'm not familiar with it) is located in $CATALINA_HOME/lib ? Is this the class that tries to create an instance of b.class? -- no, class a in x.jar tries to create an instance with the ObjectInputStream If so this is your problem. Classes in the /tomcat/lib or /common/lib can *NOT* see classes in the /web-inf/lib directories. Try moving x.jar to /tomcat/lib and see if it fixes your problem. -- I can`t do it because there are dependances to other classes in the
Simple WAR files
Hi, I have read the documentation for writing web applications and distributing them in WAR files, but now I am just more confused than ever. I'm looking for a simple step by step tutorial on making WAR archives and making them redistributable. I know this so far: - Directory structure; WEB-INF, WEB-INF/classes, etc and what they are used for - How to write servlets and JSPs, no worries there... So now I need to know, what are the basic steps to make a very simple, almost HelloWord.war type of application? How do I write an application descriptor, and what do I do with it to make an application WAR file? What are all the references to asking an administrator to assign a context path? (I have no administrator, only my home computer and myself!) Thanks, James -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache and Tomcat
There is quite a bit of documentation, especially in the list archives. First, which platform are you on? Second, what connector do you want to use? There are three: mod_jk, mod_webapp, and mod_jk2. Most people seem to be using mod_jk, it's the oldest and is, in my experience, the most stable. Yes, you need to change httpd.conf to integrate tomcat with Apache...what changes specifically can't be determined until you decide which connector you want. JSPs and Servlets need to be in Tomcat's workspace, not Apache's. The normal procedure is to map particular URLs, like /*.jsp in httpd.conf to a particular connector, which will send those requests to Tomcat for processing. John Turner [EMAIL PROTECTED] -Original Message- From: James [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: Apache and Tomcat Hi, I can't find any documentation on making Apache 2.0.40 work with Tomcat 4.0.4. I would like to be able to use my Apache web server as usual with CGI, mod_perl, PHP, etc, but also have it serve JSP pages and Servlets as well. Do I need to add anything to httpd.conf to make Tomcat take care of the JSPs and Servlets? What if the JSPs and Servlets are in Apache's document root and not Tomcat's? Thanks, James -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2/Tomcat4
Don't you need mod_jk2, not mod_jk, to enable in-process features? John -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:24 AM To: Tomcat Users List Subject: RE: Apache2/Tomcat4 My platform is RH Linux 7.3 I am using Java 1.4 and mod_jk 1.2.0 built from the download site. I am attempting to connect Apache 2.0.40 with Tomcat 4.0.4 in httpd.conf I made the following changes LoadModule module_jk modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount/examples/* xrm13 in workers.properties I have workers.tomcat.home = /usr/local/tomcat workers.java.home = /usr/local/java worker.list=xrm13 worker.xrm13.port=8009 worker.xrm13.host=localhost worker.xrm13.type=ajp13 worker.inprocess.type=jni worker.inprocess.classpath=${workers.tomcat.home}/lib/server/c atalina.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=${workers.java.home}/jre/lib/i386/ser ver/libjvm.so worker.inprocess.stderr=${workers.tomcat.home)/logs/inprocess.stderr worker.inprocess.stdout=${workers.tomcat.home)/logs/inprocess.stdout In tomcat/server.xml i changed the Engine to Engine jvmRoute=xrm13 ... Everything else stays the same as shipped from the factory If I load Tomcat and then Apache everything seems to work fine. This means that Apache can connect to the out of process instance of Tomcat. If I load Apache as a daemon in /etc/rc.d/rc5.d then the Mod_jk.log gets a couple of errors jk_connect.c (162)jk_open_socket connect( ) failed errorno = 111 jk_ajp_common.c (613) ... jk_ajp_common.c (859) Error connecting to Tomcat process jk_ajp_common.c (1168)... So the inprocess doesn't work. Any help would be greatly appreciated as i am attmpting to create a turnkey type of installation. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 5:16 AM To: 'Tomcat Users List' Subject: RE: Apache2/Tomcat4 It would be helpful if you could tell us which platform you are using, and what the log files say. Also, which changes did you make to httpd.conf? Which connector are you using? John Turner [EMAIL PROTECTED] -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:57 PM To: Tomcat Users List Subject: Apache2/Tomcat4 I have the source for the connectors, and have built and installed them. I made changes to apache2/httpd.conf, copied workers.properties from the connector source tree and added the lines to point to the tomcat directory. I ran apache2 and am unable to handle any .jsp files. My question is: How does one debug the connectors to know where the problem is? And Is there a source of info for an out of the box - quick working source of info that is needed to get this working. Once I have a starting setup, I can figure out how to make the changes i need for my application. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet
Um, have you actually read the documentation? If you had then you would have seen references to WEB-INF directories, web.xml files and suchlike. I strongly suggest that you go read the docs that came with tomcat before asking questions to the list. Cheers, Tom Jaicey Ouseph wrote: I have downloaded the Tomcat 4.0.4. I am running it as a standalone. I have made a folder jaicey/jsp in webapps. I have even made jaicey/servlets in webapps. I have set the context path in server.xml. So when I place any jsp file inside jaicey/jsp it works fine. But when I place the servlet inside jaicey/servlet then it does not seem to work. If I set the classpath in setclasspath.bat then, it only works if I start tomcat without using bootstrap. But how do I set the classpath if I am using bootstarp to start the tomcat. Please Reply.. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache and Tomcat
Thankyou John, I will get myself a mod_jk and install it. So it seems then that I will need to write some configuration lines such as: AddHandlermod_jk.jsp And directory configurations, like maybe: directory /servlet/* ... something with mod_jk... /directory I should install mod_jk now and read the docs to see if I can figure it out for myself. Thanks heaps for this, I had no idea I needed a connector :) - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, August 31, 2002 1:28 AM Subject: RE: Apache and Tomcat There is quite a bit of documentation, especially in the list archives. First, which platform are you on? Second, what connector do you want to use? There are three: mod_jk, mod_webapp, and mod_jk2. Most people seem to be using mod_jk, it's the oldest and is, in my experience, the most stable. Yes, you need to change httpd.conf to integrate tomcat with Apache...what changes specifically can't be determined until you decide which connector you want. JSPs and Servlets need to be in Tomcat's workspace, not Apache's. The normal procedure is to map particular URLs, like /*.jsp in httpd.conf to a particular connector, which will send those requests to Tomcat for processing. John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache and Tomcat
Well, hold on...which platform are you on? mod_jk doesn't use AddHandler, it has it's own directives, like JkMount. You can actually skip configuring httpd.conf except to add in a single Include directive, like this: Include /usr/local/tomcat/conf/auto/mod_jk.conf and, with a properly configured tomcat, tomcat will create all the mod_jk directives for you automatically on startup. That's how it is setup on my boxes, and it works beautifully. I never change httpd.conf, just my tomcat config. If you are on RH 7.2 or similar, you can check my HOWTO at http://www.johnturner.com/howto/apache-tomcat-howto.html I'm updating it right now, but it should get you started. You can also check here: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html John -Original Message- From: James [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:34 AM To: Tomcat Users List Subject: Re: Apache and Tomcat Thankyou John, I will get myself a mod_jk and install it. So it seems then that I will need to write some configuration lines such as: AddHandlermod_jk.jsp And directory configurations, like maybe: directory /servlet/* ... something with mod_jk... /directory I should install mod_jk now and read the docs to see if I can figure it out for myself. Thanks heaps for this, I had no idea I needed a connector :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache and Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 11:28:15AM -0400, Turner, John wrote: There is quite a bit of documentation, especially in the list archives. First, which platform are you on? Second, what connector do you want to use? There are three: mod_jk, mod_webapp, and mod_jk2. Most people seem to be using mod_jk, it's the oldest and is, in my experience, the most stable. Yes, you need to change httpd.conf to integrate tomcat with Apache...what changes specifically can't be determined until you decide which connector you want. JSPs and Servlets need to be in Tomcat's workspace, not Apache's. The normal procedure is to map particular URLs, like /*.jsp in httpd.conf to a particular connector, which will send those requests to Tomcat for processing. you are a saint, john. it seems you answer this question at least once a week and at most 3 times a day. do you have some sort of autoresponder? message or body contains mod_jk - send form email. :-) - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5IsggA8sH0iRXQRAkxPAKC0neaeMaifrbASYrH674bjgaDcDQCgrTBC ncjOBY2BBZ8MHwvL1/9a/LI= =TVos -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2/Tomcat4
I was reading a post by Luminous Heart who used mod_jk and his post indicates that it worked. The date of the post was July 25, 2002. I will try mod_jk2. Thanks -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:31 AM To: 'Tomcat Users List' Subject: RE: Apache2/Tomcat4 Don't you need mod_jk2, not mod_jk, to enable in-process features? John -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:24 AM To: Tomcat Users List Subject: RE: Apache2/Tomcat4 My platform is RH Linux 7.3 I am using Java 1.4 and mod_jk 1.2.0 built from the download site. I am attempting to connect Apache 2.0.40 with Tomcat 4.0.4 in httpd.conf I made the following changes LoadModule module_jk modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount/examples/* xrm13 in workers.properties I have workers.tomcat.home = /usr/local/tomcat workers.java.home = /usr/local/java worker.list=xrm13 worker.xrm13.port=8009 worker.xrm13.host=localhost worker.xrm13.type=ajp13 worker.inprocess.type=jni worker.inprocess.classpath=${workers.tomcat.home}/lib/server/c atalina.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=${workers.java.home}/jre/lib/i386/ser ver/libjvm.so worker.inprocess.stderr=${workers.tomcat.home)/logs/inprocess.stderr worker.inprocess.stdout=${workers.tomcat.home)/logs/inprocess.stdout In tomcat/server.xml i changed the Engine to Engine jvmRoute=xrm13 ... Everything else stays the same as shipped from the factory If I load Tomcat and then Apache everything seems to work fine. This means that Apache can connect to the out of process instance of Tomcat. If I load Apache as a daemon in /etc/rc.d/rc5.d then the Mod_jk.log gets a couple of errors jk_connect.c (162)jk_open_socket connect( ) failed errorno = 111 jk_ajp_common.c (613) ... jk_ajp_common.c (859) Error connecting to Tomcat process jk_ajp_common.c (1168)... So the inprocess doesn't work. Any help would be greatly appreciated as i am attmpting to create a turnkey type of installation. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 5:16 AM To: 'Tomcat Users List' Subject: RE: Apache2/Tomcat4 It would be helpful if you could tell us which platform you are using, and what the log files say. Also, which changes did you make to httpd.conf? Which connector are you using? John Turner [EMAIL PROTECTED] -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 4:57 PM To: Tomcat Users List Subject: Apache2/Tomcat4 I have the source for the connectors, and have built and installed them. I made changes to apache2/httpd.conf, copied workers.properties from the connector source tree and added the lines to point to the tomcat directory. I ran apache2 and am unable to handle any .jsp files. My question is: How does one debug the connectors to know where the problem is? And Is there a source of info for an out of the box - quick working source of info that is needed to get this working. Once I have a starting setup, I can figure out how to make the changes i need for my application. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Simple WAR files
I would use an IDE like Netbeans or Forte to get started. It will do most of this for you, including packaging the entire app into a WAR file. Once you go through the process within the IDE it starts to make much more sense. -Original Message- From: James [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:28 AM To: Tomcat List Subject: Simple WAR files Hi, I have read the documentation for writing web applications and distributing them in WAR files, but now I am just more confused than ever. I'm looking for a simple step by step tutorial on making WAR archives and making them redistributable. I know this so far: - Directory structure; WEB-INF, WEB-INF/classes, etc and what they are used for - How to write servlets and JSPs, no worries there... So now I need to know, what are the basic steps to make a very simple, almost HelloWord.war type of application? How do I write an application descriptor, and what do I do with it to make an application WAR file? What are all the references to asking an administrator to assign a context path? (I have no administrator, only my home computer and myself!) Thanks, James -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache and Tomcat
Nope, just trying to pay it forward. I've gotten countless amounts of help from mailing lists in the past, and have been using open source software since the earliest, but have never really been in a position to devote time and effort to contributing what I can. I'm in that position now, sort of, so I figure that I should help out as best I can while I can, keep the cycle going. Besides, Craig and the others answer all the hard questions...documentation, basic HOWTO and pre-sales type questions are easy. :) John -Original Message- From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:42 AM To: 'Tomcat Users List' Subject: Re: Apache and Tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 11:28:15AM -0400, Turner, John wrote: There is quite a bit of documentation, especially in the list archives. First, which platform are you on? Second, what connector do you want to use? There are three: mod_jk, mod_webapp, and mod_jk2. Most people seem to be using mod_jk, it's the oldest and is, in my experience, the most stable. Yes, you need to change httpd.conf to integrate tomcat with Apache...what changes specifically can't be determined until you decide which connector you want. JSPs and Servlets need to be in Tomcat's workspace, not Apache's. The normal procedure is to map particular URLs, like /*.jsp in httpd.conf to a particular connector, which will send those requests to Tomcat for processing. you are a saint, john. it seems you answer this question at least once a week and at most 3 times a day. do you have some sort of autoresponder? message or body contains mod_jk - send form email. :-) - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5IsggA8sH0iRXQRAkxPAKC0neaeMaifrbASYrH674bjgaDcDQCgrTBC ncjOBY2BBZ8MHwvL1/9a/LI= =TVos -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
need a clue brick: where is mod_jk
I am trying to find a copy of mod_jk. Anyone know the location, src, binary or cvs location of mod_jk? I've followed a wild goosechase in the http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ directory structure. Thanks in advance. -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Simple WAR files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Aug 31, 2002 at 01:28:16AM +1000, James wrote: Hi, I have read the documentation for writing web applications and distributing them in WAR files, but now I am just more confused than ever. I'm looking for a simple step by step tutorial on making WAR archives and making them redistributable. I know this so far: - Directory structure; WEB-INF, WEB-INF/classes, etc and what they are used for do you also know about the web.xml that is supposed to go into web-inf? So now I need to know, what are the basic steps to make a very simple, almost HelloWord.war type of application? How do I write an application descriptor, and what do I do with it to make an application WAR file? What are all the references to asking an administrator to assign a context path? (I have no administrator, only my home computer and myself!) let's say you are working in ~/src/myapp which contains the dir structure you describe above. all you need to do is execute the following command in ~/src/myapp: jar cvf myapp.war * then proceed to copy the war file to however many tomcats you want. that's it in its simplest form. if you then want to do some neater stuff, you need to look into how the web.xml file is structured. it basically defines your web app and what happens where. it is really beyond the scope of a single email. creating the war file is always the same. Thanks, welcome. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5NTggA8sH0iRXQRArVaAKCRlTJBYAidxf3fmHS4z95KQQBAIwCcDCGk n0vaUtmoJNZYWPPJjI76jbY= =oJfH -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2/Tomcat4
Sounds good, though don't take my word that you need mod_jk2. I've never tried it with mod_jk. Let us know how it goes. John -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:43 AM To: Tomcat Users List Subject: RE: Apache2/Tomcat4 I was reading a post by Luminous Heart who used mod_jk and his post indicates that it worked. The date of the post was July 25, 2002. I will try mod_jk2. Thanks -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:31 AM To: 'Tomcat Users List' Subject: RE: Apache2/Tomcat4 Don't you need mod_jk2, not mod_jk, to enable in-process features? John -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:24 AM To: Tomcat Users List Subject: RE: Apache2/Tomcat4 My platform is RH Linux 7.3 I am using Java 1.4 and mod_jk 1.2.0 built from the download site. I am attempting to connect Apache 2.0.40 with Tomcat 4.0.4 in httpd.conf I made the following changes LoadModule module_jk modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkMount/examples/* xrm13 in workers.properties I have workers.tomcat.home = /usr/local/tomcat workers.java.home = /usr/local/java worker.list=xrm13 worker.xrm13.port=8009 worker.xrm13.host=localhost worker.xrm13.type=ajp13 worker.inprocess.type=jni worker.inprocess.classpath=${workers.tomcat.home}/lib/server/c atalina.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=${workers.java.home}/jre/lib/i386/ser ver/libjvm.so worker.inprocess.stderr=${workers.tomcat.home)/logs/inprocess.stderr worker.inprocess.stdout=${workers.tomcat.home)/logs/inprocess.stdout -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet Instances
This was the problem! Thanx for the solution! - Original Message - From: Cox, Charlie [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 3:18 PM Subject: RE: Servlet Instances any webapp whose physical location is a subdirecty of the 'appBase' setting in your server.xml(default is 'webapps') will be loaded as a context automatically by tomcat. take this example: you have a context defined in /tomcat/webapps/aaa the default 'appbase' is webapps. So aaa would automatically be loaded by tomcat even if you didn't define a context for it in server.xml. this way you can access it as www.myhost.com/aaa now if you defined a context such that www.myhost.com/bbb is using the context aaa, then you now have two ways to access your context, each loaded separately. to disable the automatic loading, change your appbase to an empty directory(i.e. /tomcat/webapps/dummy) Charlie -Original Message- From: Rui Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 11:30 AM To: Tomcat Users List Subject: RE: Servlet Instances I don't understand what you say. Would you be able to explain it again in more detail. your context may also be autoloaded in addition to your definition in server.xml. This would cause it to load your context again,therefore your servlet. Disable this bey setting appBase to some other directory. This is the most likely explanation. HTH Charlie - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 5:33 PM Subject: RE: Servlet Instances On Thu, 29 Aug 2002, Cox, Charlie wrote: Date: Thu, 29 Aug 2002 08:47:39 -0400 From: Cox, Charlie [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Servlet Instances well, a new class instance is created for each mapping that you have in web.xml. If you only call your servlet with the first mapping, then this is why only one is called. Actually, a new instance is created per servlet definition, not per servlet-mapping. It's legal to have more than one mapping to the same instance. your context may also be autoloaded in addition to your definition in server.xml. This would cause it to load your context again,therefore your servlet. Disable this bey setting appBase to some other directory. This is the most likely explanation. HTH Charlie Craig -Original Message- From: Rui Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 8:13 AM To: Tomcat Users List Subject: RE: Servlet Instances My servlet does something on init and on destroy and each time doget is called. Specifically do some log to a file which it creates. The file is created twice at very close times, the same with the logged messages at startup. With the shutdown the same thing. Shutdown calls destroy for the 3 instances. But the log messages for doGet cases only are written in one of the files. So the same servlet is handling all remote requests. But for some reason 3 servlet instances are running. I do not have my webapp duplicated on configuration files. This thing doesn't happen in my local development machine (Windows), only on the production remote one (Linux). Help?... - Original Message - From: Cox, Charlie [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 1:48 PM Subject: RE: Servlet Instances keep in mind that static is only static within the current classloader(your webapp). your servlets will have many threads that share your servlet member fields, but each request is on its own thread, so the doGet() instance is unique to that request. how do you know that you have 3 instances of the servlet? have you defined multiple times in web.xml or have you defined 3 contexts that share the same servlet? -Original Message- From: Rui Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 6:41 AM To: Tomcat Users List Subject: RE: Servlet Instances No, Is just like that. But I change things with static variables to control that servlets don't instantiate what others instantiated before, and share access to the necessary classes through static references. But I find that this doesn't solve the problem... My conclusion, somehow there are 3 Tomcats running!?!? But only one seems to
Re: Simple WAR files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 11:41:19AM -0400, Wagoner, Mark wrote: I would use an IDE like Netbeans or Forte to get started. It will do most of this for you, including packaging the entire app into a WAR file. no offense but i recommend /not/ doing this. the ide's do a lot of stuff behind the scenes that you may not understand. if you really want to understand the process, do it manually. once you can do simple things manually, you can switch to an ide because you now know what the ide is doing under the covers. Once you go through the process within the IDE it starts to make much more sense. once you start creating large complicated applications, ide's make sense because they take some of the manual labor out of the process. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5QbggA8sH0iRXQRApgqAJ9ZZQX3XaRO7QJFEZ0GRnsidiOKBgCeJXZv MX2oP1nBGhQVcZC4oWi493Y= =MmIF -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: need a clue brick: where is mod_jk
Source is here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/ (the file that has connectors in the name) Linux binaries are here (tomcat 3 mod_jk binaries work with tomcat 4 and apache 1.3): http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i38 6/ John Turner [EMAIL PROTECTED] -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:46 AM To: Tomcat Users List Subject: need a clue brick: where is mod_jk I am trying to find a copy of mod_jk. Anyone know the location, src, binary or cvs location of mod_jk? I've followed a wild goosechase in the http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ directory structure. Thanks in advance. -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: need a clue brick: where is mod_jk
Ditto where are binaries for mod_jk for Windows?? -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:46 AM To: Tomcat Users List Subject: need a clue brick: where is mod_jk I am trying to find a copy of mod_jk. Anyone know the location, src, binary or cvs location of mod_jk? I've followed a wild goosechase in the http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ directory structure. Thanks in advance. -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Where to obtain mod_jk
Hi, I need a mod_jk binary for a SuSE Linux 7.3. All the folders in the download area of the jakarta project are empty (release, nightly, ...) Where can I download a stable version of mod_jk for use with Apache2. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: need a clue brick: where is mod_jk
Thanks to a kind soul I've never met: http://www.acg-gmbh.de/mod_jk/ John Turner [EMAIL PROTECTED] -Original Message- From: Wise, Bowden (Research) [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:50 AM To: 'Tomcat Users List' Subject: RE: need a clue brick: where is mod_jk Ditto where are binaries for mod_jk for Windows?? -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:46 AM To: Tomcat Users List Subject: need a clue brick: where is mod_jk I am trying to find a copy of mod_jk. Anyone know the location, src, binary or cvs location of mod_jk? I've followed a wild goosechase in the http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ directory structure. Thanks in advance. -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where to obtain mod_jk
There aren't any on the official site. You will have to build from source, or see if anyone else has it and wants to send it to you. Source is here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/ John Turner [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: Where to obtain mod_jk Hi, I need a mod_jk binary for a SuSE Linux 7.3. All the folders in the download area of the jakarta project are empty (release, nightly, ...) Where can I download a stable version of mod_jk for use with Apache2. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Simple WAR files
Personal preference I suppose. I, personally, almost gave up trying to teach myself Java using the notepad/javac/System.out.println routine. Once I was able to step through the code in the debugger (and get something to actually work) I started to appreciate Java. I guess I need that instant gratification. ;o) I would hate to guess how long it would have taken me to get my first servlet to work using the manual method. But different people learn in different ways. -Original Message- From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:50 AM To: 'Tomcat Users List' Subject: Re: Simple WAR files -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 11:41:19AM -0400, Wagoner, Mark wrote: I would use an IDE like Netbeans or Forte to get started. It will do most of this for you, including packaging the entire app into a WAR file. no offense but i recommend /not/ doing this. the ide's do a lot of stuff behind the scenes that you may not understand. if you really want to understand the process, do it manually. once you can do simple things manually, you can switch to an ide because you now know what the ide is doing under the covers. Once you go through the process within the IDE it starts to make much more sense. once you start creating large complicated applications, ide's make sense because they take some of the manual labor out of the process. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5QbggA8sH0iRXQRApgqAJ9ZZQX3XaRO7QJFEZ0GRnsidiOKBgCeJXZv MX2oP1nBGhQVcZC4oWi493Y= =MmIF -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache and Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 11:45:51AM -0400, Turner, John wrote: Nope, just trying to pay it forward. I've gotten countless amounts of help from mailing lists in the past, and have been using open source software since the earliest, but have never really been in a position to devote time and effort to contributing what I can. well, i have to say i was in your camp. i am also on the qmail list and that list is brutal on the newbies. they are big on rtfm over there and based on what i see here, i am begining to agree with them although i think they could be a little more friendly about it. basically, it boils down to the biblical principal of giving someone a fish or teach them to fish for themselves. perhaps we should be telling these people how to find solutions to their problems instead of spoon feeding them the answer every time. for example, if they were to search the archives for this topic, they would find your numerous responses to the posts and hopefully not add one more post to the archives. just a thought. :-) - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5YKggA8sH0iRXQRAkddAKCLfz/auJiEgIzFTbuDCmjAloPRXQCeOyFD ri5yag8ziFrdfyiq3D8T/MI= =MFQA -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache and Tomcat
Agreed. I am actually in the process of creating an FAQ, and hopefully others will contribute to it as time goes on. Hopefully we can all someday just point them there. John -Original Message- From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 11:58 AM To: 'Tomcat Users List' Subject: Re: Apache and Tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 11:45:51AM -0400, Turner, John wrote: Nope, just trying to pay it forward. I've gotten countless amounts of help from mailing lists in the past, and have been using open source software since the earliest, but have never really been in a position to devote time and effort to contributing what I can. well, i have to say i was in your camp. i am also on the qmail list and that list is brutal on the newbies. they are big on rtfm over there and based on what i see here, i am begining to agree with them although i think they could be a little more friendly about it. basically, it boils down to the biblical principal of giving someone a fish or teach them to fish for themselves. perhaps we should be telling these people how to find solutions to their problems instead of spoon feeding them the answer every time. for example, if they were to search the archives for this topic, they would find your numerous responses to the posts and hopefully not add one more post to the archives. just a thought. :-) - -- Peter Abplanalp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Processor Availability
Rodrigo, CTRL-D doesn't send a signal on any OS I've ever worked with, including Windows. Use CTRL-BREAK. You'll get a nice, verbose thread dump. Make sure you've configured your console window for at least a few hundred lines of scroll-back, because the dump comes very fast. On my system with a newly launched Tomcat 4.0.4-LE, there were almost 240 lines after the CTRL-BREAK. Randall Schulz Mountain View, CA USA At 05:20 2002-08-30, you wrote: Sending a QUIT signal works in Unix (Linux and Solaris), but Ctrl-D doesn't do anything in Windows 2000. Anybody knows something about it? Jeff, what kind of processing are you doing in your JSP/servlets? You could be experiencing deadlock problems. It's just an idea :-) Best regards, Rodrigo Ruiz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache and Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 12:01:17PM -0400, Turner, John wrote: Agreed. I am actually in the process of creating an FAQ, and hopefully others will contribute to it as time goes on. Hopefully we can all someday just point them there. very good. i'd be happy to contribute if you want some help. you'll have to give me some direction though. i have no idea what you may or may not have in there. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5d6ggA8sH0iRXQRAstZAJsEL1gU2PZG7r4s4JVvndiF1m9BGgCfYKJ1 GHKkbNEhuIdR3rG85tz1jzQ= =tuC7 -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Simple WAR files
Thanks Peter. Now that I know how to make WAR files, is there a tutorial on writing the bits and pieces of web.xml? Also... I see this is a popular question, (I was also going to ask) where is mod_jk in binary for Win32? Do you have one in a package with docs that you can send me? :-) Sorry! I can't see how to get it. James - Original Message - From: Peter T. Abplanalp [EMAIL PROTECTED] To: Tomcat List [EMAIL PROTECTED] Sent: Saturday, August 31, 2002 1:46 AM Subject: Re: Simple WAR files -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Aug 31, 2002 at 01:28:16AM +1000, James wrote: Hi, I have read the documentation for writing web applications and distributing them in WAR files, but now I am just more confused than ever. I'm looking for a simple step by step tutorial on making WAR archives and making them redistributable. I know this so far: - Directory structure; WEB-INF, WEB-INF/classes, etc and what they are used for do you also know about the web.xml that is supposed to go into web-inf? So now I need to know, what are the basic steps to make a very simple, almost HelloWord.war type of application? How do I write an application descriptor, and what do I do with it to make an application WAR file? What are all the references to asking an administrator to assign a context path? (I have no administrator, only my home computer and myself!) let's say you are working in ~/src/myapp which contains the dir structure you describe above. all you need to do is execute the following command in ~/src/myapp: jar cvf myapp.war * then proceed to copy the war file to however many tomcats you want. that's it in its simplest form. if you then want to do some neater stuff, you need to look into how the web.xml file is structured. it basically defines your web app and what happens where. it is really beyond the scope of a single email. creating the war file is always the same. Thanks, welcome. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5NTggA8sH0iRXQRArVaAKCRlTJBYAidxf3fmHS4z95KQQBAIwCcDCGk n0vaUtmoJNZYWPPJjI76jbY= =oJfH -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Processor Availability
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 30, 2002 at 09:02:30AM -0700, Randall R Schulz wrote: CTRL-D doesn't send a signal on any OS I've ever worked with, including Windows. you mean signal in the real sense, right? because in the general sense on any unix system, ctrl-d will send an eof to a process. while this isn't a true signal, something does happen. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9b5fsggA8sH0iRXQRAp+4AKCxk+u1YIviM3hbziP5Pl7RVqLT/QCfTDVy pG5v7UI4kRDMUfboHoIfDzo= =Z4MD -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]