Classloading Mysteries: WHATSUP?
I have created a daemon which I want to startup when Tomcat is started up. If I configure the daemon to be started with a servlet in web.xml or by using a PlugIn interface and struts-config.xml, I get two daemons running. How I don't know. If I don't start the daemon at startup but by tweaking a servlet after startup, where the servlet calls the daemon, then I don't get two daemons. Does anyone have any idea how this is happening? I am getting two classloaders of the same type, i.e. same type but different hashcodes. Anyone know what is going on. I am running Struts 1.1 and Tomcat 1.1.18. I have asked this question in a few ways with no responses. I can find nothing relevant in the archives. They are both coming from the WebappClassLoader which has as a parent [EMAIL PROTECTED] Hopefully someone has some assistance, because I am somewhat at a loss. This must have something to do with the launcher, but I don't know what. I have tried to get some information for a week out of this list. Not sure if no one is doing PlugIns, or why there is so little interest in this. The hashcodes I get for the classloaders are as follows: LOOP: ClassLoader.hashCode(): 728272 Class.hashCode(): 15612583 Check No.: 657) Fri Mar 28 22:47:17 PST 2003 END LOOP: ClassLoader.hashCode(): 20632381 Class.hashCode(): 10973446 Check No.: 659) Fri Mar 28 22:47:19 PST 2003 END The details on the classloaders are: LOOP: ClassLoader.toString(): WebappClassLoader available: Extension[org.apache.commons.beanutils, implementationVendor=Apache Software Foundation, implementationVersion=1.4-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.collections, implementationVendor=Apache Software Foundation, implementationVersion=2.0, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.dbcp, implementationVendor=Apache Software Foundation, implementationVersion=1.0-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.digester, implementationVendor=Apache Software Foundation, implementationVersion=1.3-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[commons-lang, implementationVendor=Apache Software Foundation, implementationVersion=1.0-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.logging, implementationVendor=Apache Software Foundation, implementationVersion=1.0.1-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.pool, implementationVendor=Apache Software Foundation, implementationVersion=1.0, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.resources, implementationVendor=Apache Software Foundation, implementationVersion=0.1-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.services, implementationVendor=Apache Software Foundation, implementationVersion=1.0-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[Struts Framework, implementationVendor=Apache Software Foundation, implementationVendorId=org.apache, implementationVersion=1.0, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[Components Framework, implementationVendor=Apache Software Foundation, implementationVendorId=org.apache, implementationVersion=0.7, specificationVendor=Apache Software Foundation, specificationVersion=1.0] delegate: false repositories: /WEB-INF/classes/ required: -- Parent Classloader: StandardClassLoader available: delegate: true repositories: required: -- Parent Classloader: StandardClassLoader available: Extension[org.apache.tools.ant, implementationVendor=Apache Software Foundation, implementationVersion=1.5.1, specificationVendor=Apache Software Foundation, specificationVersion=1.5.1] Extension[org.apache.commons.collections, implementationVendor=Apache Software Foundation, implementationVersion=1.1-dev, specificationVendor=Apache Software Foundation, specificationVersion=1.0] Extension[org.apache.commons.logging, implementationVendor=Apache Software Foundation, implementationVersion=1.0.2, specificationVendor=Apache Software Foundation, specificationVersion=1.0] delegate: true repositories: file:C:\michaelmcgrady\tomcat\common\lib\ant.jar file:C:\michaelmcgrady\tomcat\common\lib\commons-collections.jar file:C:\michaelmcgrady\tomcat\common\lib\commons-logging-api.jar file:C:\michaelmcgrady\tomcat\common\lib\jasper-compiler.jar file:C:\michaelmcgrady\tomcat\common\lib\jasper-runtime.jar file:C:\michaelmcgrady\tomcat\common\lib\jdbc2_0-stdext.jar
Tomcat without DOS Window on Win XP, i.e. like an NT Service?
Anyone know how to start Tomcat without the DOS window on Win XP? Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [VOTE] minimal JSR 154 only distribution
I am not a committer, and I am not against JSP at all, but I cannot see how having options and alternatives (without insane proliferation, of course) could be a bad thing. Micael At 05:56 PM 12/7/2002 -0600, you wrote: Jon Scott Stevens wrote: Create a separate minimal JSR 154 only distribution of Tomcat 4.x: +1 [X] 0 [] -1 [] -jon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANNOUNCEMENT] JK2-2.0.2 released
Read the release info on the 4.1.12 version. The invoker servlet has been turned off for security reasons. You have to hand authorize the servlets through your web.xml. At 12:44 PM 11/27/2002 -0700, you wrote: Hi, im having problems with the 4.1.12 version of tomcat, with this version i cant run servlets, only jsps. the only way that i can make a servlet run is under the context of examples, if i put in another place ( even if a context if defined in the server.xml) doesnt work, Do you have an clue of whats wrong?? Thks in advance Ing. Carlos Ventura Molina Servicios Administrativos Computacionales ITESM Campus Chihuahua Tel. (52 14) 4395000 ext. 4018 Web Site: http://www.chi.itesm.mx -Original Message- From: Henri Gomez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 10:35 AM To: Tomcat Developers List Subject: Re: [ANNOUNCEMENT] JK2-2.0.2 released Mladen Turk wrote: Hi to all, JK2 2.0.2 has been released and is available at : http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release /v 2.0.2/ For now binaries are available for WIN32 only: linux binaries and rpms to be released tomorrow ;) -- 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] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 5.0: Source Code
Okay, taking a chance on public humiliation here. Why are the javadocs for Tomcat 5.0 available but the source code seems not to be? Are you all hiding the read stuff from me? Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 5.0: Source Code
Great, thanks! That wasn't as hard as I feared. Micael At 05:01 PM 11/26/2002 -0800, you wrote: On Tue, 26 Nov 2002, micael wrote: Date: Tue, 26 Nov 2002 16:30:50 -0800 From: micael [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat 5.0: Source Code Okay, taking a chance on public humiliation here. Nah, that'd be mean :-). Why are the javadocs for Tomcat 5.0 available but the source code seems not to be? Are you all hiding the read stuff from me? Tomcat 5 sources are spread across a number of CVS repositories: jakarta-tomcat-5 jakarta-tomcat-catalina jakarta-tomcat-connectors jakarta-tomcat-jasper The simplest way to grab them is to start following the instructions in: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/BUILDING.txt which will download everything for you. Micael Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] Servlet Performance Benchmark Released
Very interesting. Doesn't this indicate a pretty clear improvement for Tomcat from the past? At 07:20 PM 11/22/2002 -0500, you wrote: Interesting...I'm sure we can learn something from this article http://webperformanceinc.com/library/ServletReport/ -- Jeanfrancois -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
readable bugzilla? tomcat-dev
Is there some readable list on tasks needed to be performed and bugs needed to be fixed on Tomcat? I would love to work on some stuff but I don't have time to open all the bugzilla urls to see what the problems are for hours before beginning on a task. Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] Digester Not In Tomcat SRC
What is the philosophy behind Digester (commons stuff required by Tomcat) not being in the source release for Tomcat? For people trying to understand how this all works and needing to know the details, this is a bit of a runaround. I am sure there is a good reason, but cannot see it. Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Why No Digester in SRC Release?
What is the philosophy behind Digester (commons stuff required by Tomcat) not being in the source release for Tomcat? For people trying to understand how this all works and needing to know the details, this is a bit of a runaround. I am sure there is a good reason, but cannot see it. Micael Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Tomcat Architecture: XML
I am interested in a particular part of the Tomcat architecture, and NOT the relations between the containers, and the normal development stuff. The use of xml is what interests me, and I cannot find any stuff on how this works IN TOMCAT/CATALINA. I know how xml works. What I would like to know is how the xml works in relation to the applications IN TOMCAT/CATALINA. Is the xml in server.xml used as part of a design pattern using Java reflection? What about the web.xml? Is the way various xml files are used pretty standard, or are there great variations in Tomcat, struts, etc. across the jakarta platforms. I keep trying to find this stuff out, and have had little luck. I need to know the details before I understand something. I hope this is not too dumb of a question. Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: Tomcat Architecture: XML
Merci monsieur aimable. Mes mercis! Micael At 04:26 PM 11/5/2002 -0500, you wrote: Micael, all the magic reside under the Digester component used by Tomcat to parse xml file. http://jakarta.apache.org/commons/digester.html Enjoys! -- Jeanfrancois micael wrote: I am interested in a particular part of the Tomcat architecture, and NOT the relations between the containers, and the normal development stuff. The use of xml is what interests me, and I cannot find any stuff on how this works IN TOMCAT/CATALINA. I know how xml works. What I would like to know is how the xml works in relation to the applications IN TOMCAT/CATALINA. Is the xml in server.xml used as part of a design pattern using Java reflection? What about the web.xml? Is the way various xml files are used pretty standard, or are there great variations in Tomcat, struts, etc. across the jakarta platforms. I keep trying to find this stuff out, and have had little luck. I need to know the details before I understand something. I hope this is not too dumb of a question. Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
[OT]Re: TOMCAT memory usage : how to manage and benchmark ?
What operating system do you prefer, Pier? At 01:31 PM 10/28/2002 +, you wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So, My first question is : why tomcat use all the memory while there is no users connected (or just one) ? The JVM allocates chunks of memory (see the -Xmx and -Xms flags by invoking java -X) and manages them... So, one user, 100 users, same thing... My second question is : how much memory is needed if I want to use tomcat with many users (500, 1000,...) ? On a 5 millions hits/day server (not running Tomcat, another servlet container since Tomcat doesn't work for us), we have the VM starting with 1 Gigs of RAM (java -server -Xmx 1024m -Xms 1024m ...) but we use half of it (roughly) to cache data from the DB... I already read in the forum Tomcat don't manage the memory, it is the JVM... so why the jvm use so many processes ? Those are _not_ processes, they are threads... Use a decent operating system that supports them nicely (not Linux) and you'll see the difference (how many times do I have to repeat this?)... Linux sucks :-( Pier -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: JSP Compile Errors
Write a simple Java program: 1. Drill down and get files. 2. Check for package statement, check for import statements. 3. If blah, blah, blah, then add import blah, blah. I wrote a generic one that could be used whenever I needed to so something like that to lots of files, e.g. change the package name on all of them. It is proprietary to the company I worked for, so I cannot put it in here. But, they are really not hard to write. At 05:24 PM 10/25/2002 -0400, you wrote: I need to make sure that these Java libraries are included when my JSP's are compiled: java.io.* java.util.* I am migrating from another application server that added these to my JSP's and now will have the daunting task of manually importing these on every JSP that we have. 1) What kind of app server would import those for you? You need to file a big, loud bug report, cuz that violates the spec! Only java.lang is imported for free in Java. 2) Write a Shell or Perl script, or a Java program, or use vi. How many JSPs are you talking about anyway? -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
RE: Vote results + Security Audit redirection
At 10:46 PM 10/16/2002 -0700, you wrote: There was also some comment about other special issues, which has not been clear to me yet. It's not clear to me either :-) Maybe short notices like I want to propose X as a commiter, does anyone has any objection ? - to avoid some of the unpleasant things we had in the past. That's the only example I can think of. So, essentially, this is a vote for an open ended, closed, decision on what the committers decide is covered by the vote? Seems to me that, if people are going to put in time to become a committer, and I am spending a lot of time right now familiarizing myself in order to begin to help, they ought to be in on these unpleasant things that may affect them. I appreciate that sometimes things are unpleasant. But, open source and closed discussions are not exactly in tune. That is especiallys so when the closed discussions are open-ended. Just my two sense. I would suggest that you have the vote only on the issues that are articulated, and not on issues that will be articulated in private. Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.12 and Servlet Access 404 Errors: BUG? One Last Assurance
So I can understand, where is the difference in the code between Tomcat 4.1.10 and 4.1.12? And, do you mean that servlet mappings rather than being generic to some servlet/* path be individualized? At 12:26 PM 10/2/2002 +1000, you wrote: micael wrote: I cannot access a webapp with the normal http://localhost:8080/myapp/servlet/mydirectory.MyServlet with Tomcat 4.1.12. (Also, the embedded Tomcat 4.1.12 in JBoss 3.0.3 runs fine except that it won't access the examples servlets.) The error shown is a 404 The requested resource (/myapp/servlet/mydirectory.MyServlet) is not available.. The same thing runs fine with Tomcat 4.1.0., both with and without JBoss. Is this a BUG in Tomcat 4.1.12, or are there new constraints on reaching servlets from outside the container in 4.1.12? For security reasons (see the release notes for details), the invoker servlet is disabled by default now. This servlet is what makes /webapp/servlet/... paths invoke the given servlet. It's recommended that you give explicit servlet definitions and mappings in the webapps's web.xml instead. Michael -- 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 4.1.12 and Servlet Access 404 Errors: BUG?
I cannot see any difference relative to the invoker filter, ExampleFilter, in the web.xml for Tomcat 4.1.10 versus 4.1.12. Nothing seems to be commented out. I must be missing some point here. What is it? At 12:26 PM 10/2/2002 +1000, you wrote: For security reasons (see the release notes for details), the invoker servlet is disabled by default now. This servlet is what makes /webapp/servlet/... paths invoke the given servlet. It's recommended that you give explicit servlet definitions and mappings in the webapps's web.xml instead. Michael -- 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 4.1.12 and Servlet Access 404 Errors: BUG?
Okay, I got it. It is in the conf/web.xml file. My searches for InvokerServlet were returning nothing. XP sucks. TextPad is not doing that well on this either. At 12:26 PM 10/2/2002 +1000, you wrote: For security reasons (see the release notes for details), the invoker servlet is disabled by default now. This servlet is what makes /webapp/servlet/... paths invoke the given servlet. It's recommended that you give explicit servlet definitions and mappings in the webapps's web.xml instead. Michael -- 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: THE SOURCE, LUKE: JBoss/Tomcat Mystery
Okay. I did not know what the problem was until I got the answer, is the reason. (What a mouthful.) I now see it was an integration problem and not a tomcat problem. mea culpa, sorry ladies and gents. At 01:09 AM 10/1/2002 -0700, you wrote: On Mon, 30 Sep 2002, micael wrote: Date: Mon, 30 Sep 2002 23:07:58 -0700 From: micael [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: THE SOURCE, LUKE: JBoss/Tomcat Mystery Below is the source index.html I am getting when I access tomcat in the embedded JBoss/Tomcat server. This index.html, so far as I can tell is nowhere in the application. It is not the ROOT index.html. I can take the ROOT index.html and every other index.html I can find on the site out and it still runs. Where in holy hannah is this? That is crazy, but I have done a lot of internet coding and this is a real puzzler to me. Where is the following coming from: Since this problem only seens to appear with the JBoss integration, I'd suggest asking about problems like this on the JBoss mailing lists. Nobody here is going to know anything about how JBoss chose to integrate Tomcat (unless they also happen to be JBoss users), so we have no clue how the JBoss folks have configured the embedded Tomcat installation they are using.. 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]
Tomcat 4.1.12 and Servlet Access 404 Errors: BUG?
I cannot access a webapp with the normal http://localhost:8080/myapp/servlet/mydirectory.MyServlet with Tomcat 4.1.12. (Also, the embedded Tomcat 4.1.12 in JBoss 3.0.3 runs fine except that it won't access the examples servlets.) The error shown is a 404 The requested resource (/myapp/servlet/mydirectory.MyServlet) is not available.. The same thing runs fine with Tomcat 4.1.0., both with and without JBoss. Is this a BUG in Tomcat 4.1.12, or are there new constraints on reaching servlets from outside the container in 4.1.12? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.12 and Servlet Access 404 Errors: BUG?
Thanks, Michael. Actually, I think this is a good thing. Micael At 12:26 PM 10/2/2002 +1000, you wrote: micael wrote: I cannot access a webapp with the normal http://localhost:8080/myapp/servlet/mydirectory.MyServlet with Tomcat 4.1.12. (Also, the embedded Tomcat 4.1.12 in JBoss 3.0.3 runs fine except that it won't access the examples servlets.) The error shown is a 404 The requested resource (/myapp/servlet/mydirectory.MyServlet) is not available.. The same thing runs fine with Tomcat 4.1.0., both with and without JBoss. Is this a BUG in Tomcat 4.1.12, or are there new constraints on reaching servlets from outside the container in 4.1.12? For security reasons (see the release notes for details), the invoker servlet is disabled by default now. This servlet is what makes /webapp/servlet/... paths invoke the given servlet. It's recommended that you give explicit servlet definitions and mappings in the webapps's web.xml instead. Michael -- 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]
Catalina/JBoss Integration -- mysterious index.html
I assumed that the index.html that would show up in the standard webtest.ear from the RC3 for JBoss would be the index.html for ROOT in [CATALINA_HOME]/webapps/ROOT/index.html. Not so, however. I cannot find the index.html and feel like a damn fool. Anyone know what is going on here? Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any dislosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
THE SOURCE, LUKE: JBoss/Tomcat Mystery
Below is the source index.html I am getting when I access tomcat in the embedded JBoss/Tomcat server. This index.html, so far as I can tell is nowhere in the application. It is not the ROOT index.html. I can take the ROOT index.html and every other index.html I can find on the site out and it still runs. Where in holy hannah is this? That is crazy, but I have done a lot of internet coding and this is a real puzzler to me. Where is the following coming from: 127.0.0.1 - - [30/Sep/2002:21:50:00 -0800] GET /index.html HTTP/1.1 200 3999 127.0.0.1 - - [30/Sep/2002:21:50:00 -0800] GET /tomcat.gif HTTP/1.1 200 1934 127.0.0.1 - - [30/Sep/2002:21:50:00 -0800] GET /jakarta-banner.gif HTTP/1.1 200 8006 This is nuts. There is clearly something I don't know about going on. I thought I was a smarty pants. I am a dummy pants. Micael And the UNKNOWN SOURCE is: !doctype html public -//w3c//dtd html 4.0 transitional//en http://www.w3.org/TR/REC-html40/strict.dtd; html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 titleJakarta Project - Tomcat Examples/title style type=text/css !-- body { color: #00; background-color: #FF; font-family: Arial, Times New Roman, Times; font-size: 16px; } A:link { color: blue } A:visited { color: blue } td { color: #00; font-family: Arial, Times New Roman, Times; font-size: 16px; } .code { color: #00; font-family: Courier New, Courier; font-size: 16px; } -- /style /head body !-- Header -- table width=100% tr td align=left width=130a href=http://jakarta.apache.org/tomcat/index.html;img src=tomcat.gif height=92 width=130 border=0 alt=The Mighty Tomcat - MEOW!/td td align=left valign=top table trtd align=left valign=topbTomcat Examples/b/td/tr trtd align=left valign=topbVersion 4.0.3/b/td/tr /table /td td align=righta href=http://jakarta.apache.org/;img src=jakarta-banner.gif height=100 width=350 border=0 alt=The Jakarta Project/a/td /tr /table br table tr !-- Table of Contents -- td valign=top table width=100% border=1 cellspacing=0 cellpadding=3 bordercolor=#00 tr td bgcolor=#D2A41C bordercolor=#00 align=left nowrap font face=Verdana size=+1iWeb Applications/inbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/font /td /tr tr td bgcolor=#FFDC75 bordercolor=#00 nowrap a href=examples/jsp/JSP Examples/abr a href=examples/servlets/Servlet Examples/abr nbsp; /td /tr /table br table width=100% border=1 cellspacing=0 cellpadding=3 bordercolor=#00 tr td bgcolor=#D2A41C bordercolor=#00 align=left nowrap font face=Verdana size=+1iMiscellaneous/inbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/font /td /tr tr td bgcolor=#FFDC75 bordercolor=#00 nowrap a href=http://java.sun.com/products/jsp;Sun's Java Server Pages Site/abr a href=http://java.sun.com/products/servlet;Sun's Servlet Site/abr nbsp; /td /tr /table /td tdnbsp;nbsp;nbsp;nbsp;nbsp;/td !-- Body -- td align=left valign=top pcenterbIf you're seeing this page via a web browser, it means the integrated web container is configured correctly. Congratulations! /b/center/p pThis ear includes the Tomcat-4.0.3 JSP and servlet examples. Deploy something useful by removing the deploy/webtest.ear file and adding your own ear or war./p font size=-1Copyright copy; 1999-2001 Apache Software Foundation/fontbr font size=-1All Rights Reserved/font br nbsp;/p p align=rightnbsp;/p /td /tr /table /body /html --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any
cvs and 4.1
If I cvs to tomcat-4.0, am I going to get the latest of 4.1? If not, how do I pick the branches off tomcat-4.0? Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any dislosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cvs and 4.1
Thanks. Much appreciated. At 01:52 PM 9/26/2002 -0700, you wrote: micael wrote: If I cvs to tomcat-4.0, am I going to get the latest of 4.1? Yes. If you checkout jakarta-tomcat-4.0 with no tag specified, you'll get the latest HEAD of 4.1. If not, how do I pick the branches off tomcat-4.0? You can use different tags to get certain releases of tomcat from cvs. For example, you'd use TOMCAT_4_1_12 tag to get the recent 4.1.12 release. Amy Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any dislosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- 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: cvs and 4.1
Amy, I am using jCVS. When I export and want to specify a tag, how is that done? I am asking for later. Do I do something in the arguments text box? At 01:52 PM 9/26/2002 -0700, you wrote: micael wrote: If I cvs to tomcat-4.0, am I going to get the latest of 4.1? Yes. If you checkout jakarta-tomcat-4.0 with no tag specified, you'll get the latest HEAD of 4.1. If not, how do I pick the branches off tomcat-4.0? You can use different tags to get certain releases of tomcat from cvs. For example, you'd use TOMCAT_4_1_12 tag to get the recent 4.1.12 release. Amy Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any dislosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- 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: [5][PATCH]catalina-tester assumes that ServletExceptions are NOT unwrapped
That would be appreciated, John. At 02:01 PM 9/23/2002 -0400, you wrote: Per Servlet 2.3, if a servlet throws a wrapped exception, the error handler that receives it gets the underlying root cause as the exception. That is, if ServletException(new TesterException()) is thrown, the exception in the request under attribute javax.servlet.error.exception will be TesterException, not ServletException. The test in catalina/tester assumes that the root cause will still be wrapped in a ServletException. With this patch, plus the others I've posted, the tomcat-5 passes all of the catalina tester tests. If anyone is interested, I can post a rolled up set of patches. -- 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]
JMX - Catalina/Tomcat builds
When a JMX application like Jboss builds an EmbeddedCatalina object and deploys it, how does the reference, e.g., to the org.apache classes such as: import org.apache.catalina.Connector; import org.apache.catalina.Engine; import org.apache.catalina.Host; import org.apache.catalina.Lifecycle; import org.apache.catalina.LifecycleException; import org.apache.catalina.Realm; import org.apache.catalina.Service; import org.apache.catalina.startup.Embedded; work? Where are these classes, and how are they referenced? Thanks for any assistance. Micael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [linux CP COMMAND options]
Because of the samba in the tool you recommended, I made some faulty assumptions. Sorry. I will investigate this and do thank you. At 04:18 PM 9/9/2002 +1000, you wrote: Quoting micael [EMAIL PROTECTED]: I want to move particular files out of a group, so the sort of graphic tool you are talking about is useless to me. Which one was the graphic tool? Not following... Bojan - This mail sent through IMP: http://horde.org/imp/ -- 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]
[linux CP COMMAND options]
I need to copy all the files (drilled down in directories recursively) that end in .jsp to another location and write over the files in that location. Anyone have the command for a Red Hat 7.2 Linux environment? It is irrelevant, but connected to this list, that I am running Tomcat 4 and Struts with JBoss. Not much knowledge about the admin languages in my head. Any assistance would be appreciated. Sorry if this is a bit off topic. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [linux CP COMMAND options]
Thanks, Bojan, but I use a command line with Secure CTR. What I need to know is what is the right command with cp on the linux machine. Is there one? cp -fr ? /usr/local/java/tomcat/webapps/[app]/WEB-INF/classes/com/wahoo/place/ which will force the .jsp pages to overwrite the ones in place/ is what I need. Micael At 09:45 AM 9/9/2002 +1000, you wrote: http://rsync.samba.org/ Bojan On Mon, 2002-09-09 at 08:37, micael wrote: I need to copy all the files (drilled down in directories recursively) that end in .jsp to another location and write over the files in that location. Anyone have the command for a Red Hat 7.2 Linux environment? It is irrelevant, but connected to this list, that I am running Tomcat 4 and Struts with JBoss. Not much knowledge about the admin languages in my head. Any assistance would be appreciated. Sorry if this is a bit off topic. -- 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: [linux CP COMMAND options]
Thanks again. I use cp and -fr all the time. I have a particular thing I want to do as described that I don't know how to do. I want to move particular files out of a group, so the sort of graphic tool you are talking about is useless to me. I now use WinSCP, which is okay for that. At 01:31 PM 9/9/2002 +1000, you wrote: I'm not sure I know what a 'Secure CTR' is, so I'll leave that one alone :-) Yes there is 'cp -fr' on Linux, see 'man cp' for details. Manual pages for RedHat Linux are available from here: http://linux.ctyme.com/. rsync will make sure copying is atomic (i.e. it'll create a temp file, sync into it and then move the temp file into the destination file ), cp won't (it'll overwrite the target file, starting at the beginning of the file, so if something grabs the file while this is being done, there's going to be trouble), which makes rsync a better choice for this kind of work, especially if you're doing it while Tomcat is running. Also, rsync has sophisticated pattern matching, which makes it, well, suitable for (remote) syncing :-) Bojan Quoting micael [EMAIL PROTECTED]: Thanks, Bojan, but I use a command line with Secure CTR. What I need to know is what is the right command with cp on the linux machine. Is there one? cp -fr ? /usr/local/java/tomcat/webapps/[app]/WEB-INF/classes/com/wahoo/place/ which will force the .jsp pages to overwrite the ones in place/ is what I need. Micael At 09:45 AM 9/9/2002 +1000, you wrote: http://rsync.samba.org/ Bojan On Mon, 2002-09-09 at 08:37, micael wrote: I need to copy all the files (drilled down in directories recursively) that end in .jsp to another location and write over the files in that location. Anyone have the command for a Red Hat 7.2 Linux environment? It is irrelevant, but connected to this list, that I am running Tomcat 4 and Struts with JBoss. Not much knowledge about the admin languages in my head. Any assistance would be appreciated. Sorry if this is a bit off topic. -- 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] - This mail sent through IMP: http://horde.org/imp/ -- 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]
Errata: Rebo instead of Rebi
Sorry, Joe, Typo on Teresa's name fixed here. Micael business_card.doc Description: MS-Word document -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Adding Jasper 2 to Tomcat 4.0
Can we do this? If so, how? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet Compilation Takes Way Too Long
That is very helpful, Glenn. Thanks for your response. Can I pretty much slip Tomcat 4.1 into my setup and expect reasonable results, or will I go through a serious recoding period? Also, can I Jasper 2 be added to Tomcat 4.0? Micael At 03:57 PM 8/12/2002 -0500, you wrote: Tomcat 4.1.x uses Jasper 2. Jasper 2 can do JSP compilations in the background. If a JSP page had already been compiled it's class is used to serve pages until the new JSP has finished compilation. Result, no requests are delayed due to recompilation of a JSP page. It can also detect changs in JSP pages which were included at compile time and force a recompile of the page which included them. Regards, Glenn micael wrote: Whenever I change a jsp page, it takes forever for the program to compile. (Forever = five to fifteen minutes.) During that time my site is essentially shut down. I am current running aTomcat 4.0 with Struts 1.2. I have an application set for www.myapp.com with the following code in server.xml, where the code for /anniversaries is reapeated for 24 different sites. Context path= docBase=myapp debug=0 reloadbale=true/ Context path=/manager docBase=manager debug=0 privileged=true/ Context path=/mysubapp-0NE docBase=mysubapp-0NE debug=0 reloadable=true/ Context path=/mysubapp-TWO docBase=mysubapp-TWO debug=0 reloadable=true/ ... Context path=/mysubapp-TWENTY-FIVE docBase=mysubapp-TWENTY-FIVE debug=0 reloadable=true/ Am I doing something dumb, or am I misusing one of the applications? Or, what? Thanks. Micael -- 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]
Servlet Compilation Takes Way Too Long
Whenever I change a jsp page, it takes forever for the program to compile. (Forever = five to fifteen minutes.) During that time my site is essentially shut down. I am current running aTomcat 4.0 with Struts 1.2. I have an application set for www.myapp.com with the following code in server.xml, where the code for /anniversaries is reapeated for 24 different sites. Context path= docBase=myapp debug=0 reloadbale=true/ Context path=/manager docBase=manager debug=0 privileged=true/ Context path=/mysubapp-0NE docBase=mysubapp-0NE debug=0 reloadable=true/ Context path=/mysubapp-TWO docBase=mysubapp-TWO debug=0 reloadable=true/ ... Context path=/mysubapp-TWENTY-FIVE docBase=mysubapp-TWENTY-FIVE debug=0 reloadable=true/ Am I doing something dumb, or am I misusing one of the applications? Or, what? Thanks. Micael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
X11 Windows System and Tomcat
This is maybe not a pure Tomcat question, but I am running a servlet on Tomcat which uses javax.swing, to resize jpeg images, but which does not, of course, want to display those images. This throws an exception, due to a bug in the JDK 1.4. The exception is: Exception in thread main java.lang.InternalError: Can't connect to X11 window server using ':0,0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(11GraphicsEnvironment.java:126) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at java.awt.Toolkit#2.run(Toolket.java:712) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703) at javax.swing.ImageIcon.(init(ImageIcon.java:81) at javax.swing.ImageIcon.init(ImageIcon.java:107) ps aux reveals: /etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv Anyone know the command I need to use to solve this, if any? I would prefer not to use a virtual X11 system, or to build a substitute Toolkit for the JDK. Thanks, Micael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
VIRUS: sent by issa@infotel.opt.mr = W32Klez.gen@mm
Heads up on this virus. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
More W32Klez.gen@mm Viruses: mnavarro@bdoc.com
This will be my last post of these viruses, since they seem to be proliferating here. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ResultSet
If you want to compare String objects as literals, use the intern() method. Micael At 03:58 PM 3/11/02 +0700, you wrote: Hi, For the brave, can anyone guess why with this rather unsociable code: if ((res.getString(3) == null) || (res.getString(3) == )) { out.println(tda href=takeDetails.jsp?timeSlot= + res.getString(2) + myDate= + myDate + + res.getString(2) + /a/td); } if ((res.getString(3) != null) || (res.getString(3) != )) { out.println(td + res.getString(3)+ + res.getString(2) + /td); } the first condition is NEVER satisfied, even though out.println of res.getString(3) does not display anything! Ie res.getString(3) IS null, empty or whatever, but the condition is never satisifed. Quickly again, this is executed: if ((res.getString(3) != null) || (res.getString(3) != )) { out.println(td + res.getString(3)+ + res.getString(2) + /td); } even though - out.println(td + res.getString(3)+ - shows it is empty (no output)! Thanks Paul. -- 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: [4.0.2] Binaries online
The site is purring away with this new cat. At 11:13 AM 2/11/02 -0800, you wrote: on 2/10/02 12:46 PM, Remy Maucherat [EMAIL PROTECTED] wrote: Hi, The binaries for 4.0.2 are now online. This includes the new LE for JDK 1.4. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/ Please check them if you can. The release announcement and website updates will be made tomorrow. Thanks, Remy Congrats! Scarab's distribution of Tomcat has been updated as well. :-) -jon -- 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: Development Documents
Hi, Gunnar. I think that this is what JSP itself does already, i.e. return HTML content. So, I am not sure what you are asking. If you don't want to use JSP pages, then don't. I am sure that is not what you wanted to say, so, again, I misunderstood what you are saying. Could you be more specific about what you want? You don' t have to use JSP pages with Tomcat, but then there would be no point in having Tomcat really. At 08:50 PM 2/5/02 +0100, you wrote: Hi! I'm thinking of a web application that processes JSP itself and returns only the HTML content of JSP pages back to the Client. I don't want to point the Client to Java Server Pages. Where can I find usefull documentation to evaluate such a functionality for Tomcat? Have you any suggestions for me? Thanks, Gunnar -- 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: Multiple URLs/Single IP
Thank you, Bojan. I am going to try that, and will try to figure out a favor for you if it works. My father told me to always pay back ten times: ten times more for a good turn, and ten times more for a bad. Micael At 08:06 AM 2/5/02 +1100, you wrote: Now you have me totally confused :-( I'll tell you what I know, and if that helps you, good. If not, please disregard. The fact that www.aa.com and www.bb.com have the same IP address makes them name based virtual hosts. So, you're telling your TC 3.3.x to be ready to handle things for both www.aa.com and www.bb.com by creating virtual hosts withing it. If you have Tomcat running on the same box, it would usually be connected to Apache via mod_jk and listen to address 127.0.0.1 only. So, I'm not certain how the 'one IP' address plays here at all... Inside each virtual host, you define applications (contexts). So, you can have webapps/aa for www.aa.com and webapps/bb for www.bb.com. That's at least how I run my machines. Bojan On Mon, 2002-02-04 at 18:50, Micael Padraig Og mac Grene wrote: I am not trying to make www.aa.com into xx.aa.com and yy.aa.com but rather trying to get www.aa.com and ww.bb.com which have the same IP address to be webapps/aa and webapps/bb. Isn't the virtual hosts the first solution? I think I am beginning to see how to do this, but I don't see how virtual hosts are the answer. I must be missing something here. I have figured out how to get the different URLs into different Host tags, but so far they all encompass the same webapps or none. I have some further ideas on how to avoid that. We'll see tomorrow. But, I still do not see how this solves my problem, Apache notwithstanding. Miacel -- 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: Multiple URLs/Single IP
Well, I assumed it was good, and even if not, that you were meaning good. So, no problem, my friend! ;-) At 09:14 AM 2/5/02 +1100, you wrote: On Tue, 2002-02-05 at 08:38, Micael Padraig Og mac Grene wrote: Thank you, Bojan. I am going to try that, and will try to figure out a favor for you if it works. My father told me to always pay back ten times: ten times more for a good turn, and ten times more for a bad. Micael Hope I didn't give you bad advice. The 'ten times' thingy sounds really scary ;-) Bojan -- 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]
Do different virtual hosts have to have different appBase values?
[ ] They do. Reason: [ ] They don't. Reason: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple URLs/Single IP
How can I map multiple URLs, e.g. www.aa.com and www.bb.com, which are pointed to a single IP address, e.g. 210.34.247.21, to multiple web applications, e.g. webapps/aa and webapps/bb? Many thanks for any help. I have had a solution offered with a Layer-7 Switch and a squid proxy, but I would prefer either Apache or Tomcat solutions by far. I see nothing in the documentation or in the lists. I know how to do this with a context manager for JBoss and Tomcat 3.2.4, but I am moving to SOAP as my solution of choice with the Struts package. Any help would be greatly appreciated. Thanks, gents and ladies. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple URLs/Single IP
Thanks, Bill. However, I looked at the documentation. What makes you think that solves this problem? I am not saying you are wrong, but I don't see how that does it. Micael At 03:44 PM 2/3/02 -0800, you wrote: This is largely what NameVitualHost(s) are for in Apache. See: http://httpd.apache.org/docs/mod/core.html#namevirtualhost - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 03, 2002 8:25 AM Subject: Multiple URLs/Single IP How can I map multiple URLs, e.g. www.aa.com and www.bb.com, which are pointed to a single IP address, e.g. 210.34.247.21, to multiple web applications, e.g. webapps/aa and webapps/bb? Many thanks for any help. I have had a solution offered with a Layer-7 Switch and a squid proxy, but I would prefer either Apache or Tomcat solutions by far. I see nothing in the documentation or in the lists. I know how to do this with a context manager for JBoss and Tomcat 3.2.4, but I am moving to SOAP as my solution of choice with the Struts package. Any help would be greatly appreciated. Thanks, gents and ladies. -- 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 1.3.22 and 1.3.23 LoadModule Error with Tomcat 4.0.1
I am getting an error I cannot find in the lists. The error, on trying to run Apache, after adding LoadModule and AddModule to conf, I get the error: Invalid Command 'LoadModule', perhaps this is mis-spelled or defined by a module not included in the server configuration. I downloaded the appropriate mod_webapp.so and copied it to libexec. Then I added LoadModule and AddModule to the httpd.conf file as directed. Still, it get this error. Any ideas? Micael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0 Beginner's Guide
Marty Hall you are a good guy. Thanks! At 03:00 PM 1/21/02 -0500, you wrote: Hi- Daniel Savarese suggested I contact [EMAIL PROTECTED] with this info. I've discovered that a surprising number of readers of my servlet and JSP books (Core Servlets and JSP, More Servlets JSP) need a lot of handholding to get Tomcat running even in the simple standalone mode. So, I grudgingly put together a very step-by-step guide, and to my surprise readers really went for it. It is http://www.moreservlets.com/Using-Tomcat-4.html; please feel free to link to it from the Tomcat docs page if you think it would be useful. Cheers- - Marty -- 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: Minimalistic Docs
At 09:56 AM 1/17/02 +0200, you wrote: well, minimal meaning 1c and minimalist meaning 2 (below) look pretty similar to me, but as Tom says, the latter suggests intent. Then again, the fact that it is in the title also does a fair job suggesting intent. Let's just steer away from anything pretentious. I vote for minimalist. http://www.dictionary.com - great resource! enough of this :) ant -Original Message- From: Tomas Rokicki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 10:17 PM To: Tomcat Developers List Subject: RE: Minimalistic Docs Well, if you believe dictionaries: minimal: adj. 1a Smallest in amount or degree. 1b Small in amount or degree. 1c Only barely adequate. 2 often Minimal Of, relating to, or being minimalism minimalist: n. 1 One who advocates a moderate or conservative approach, action, or policy, as in a political or governmental organization. 2 A practitioner of minimalism. minimalist: adj. 1 Of, relating to, characteristic of, or in the style of minimalism. 2 Being or providing a bare minimum of what is necessary. So minimal is clearly not what we mean, but the second adjective definition is clearly what we mean. So minimalist seems to work. Minimalistic is clearly not a word. Minimal means, and further, connotes, the wrong thing. Don't techies ever use dictionaries? -tom -Original Message- From: Arnold Shore [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 11:15 AM To: Tomcat Developers List Subject: RE: Minimalistic Docs And a minimalistic use of Minimalistic would be Minimal. as -Original Message- From: Christopher K. St. John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 12:47 PM To: Tomcat Developers List Subject: Re: Minimalistic Docs Anthony Holland wrote: Tomcat - A Minimalistic User's Guide There is no such word as 'minimalistic'. In the style of a member of the art movement Minimalism. In the style of a minimalist. Minimalistic. Works for me. Minimalist User's Guide would imply that the user's guide has to do with the art movement (or communism), while Minimalistic implies that the guide is in the style of, but not actually about, Minimalism. A Minimalist's Guide might work. What are you two talking about? The connotation, as well as the denotation, of something, by the way, IS its meaning. If you are using A Minimalist's Guide as the name of a publication, your English is wrong. In that case, Minimalist's is a nominative-adjective and it should be A Minimalists Guide. This is a standard mistake, usually not made by good sign companies, however. Also, the conclusions you draw about Minimalist User's Guide (should be Minimalist Users Guide) and A Minimalist's Guide (should be A Minimalists Guide) are backward. The latter could be a use of the noun, although that would be unlikely, while the former could not be such a use. You guys have too much time on your hands, like me. ;-) How about, if you want not to be pedantic, An Austere Guide? Of course, I don't know what the hell you are talking about. Micael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: shell connector
At 06:55 PM 1/10/02 +0100, Armijn Hemel wrote: hi, I'm working on a webapp, for which I want to build (eventually) some shell access for administration purposes. I want administrators to be able to log into the application and perform maintenance through a UNIX like shell. I was thinking about writing this in Jython, but I wonder how I can do this best. Does this involve writing a new connector and if so, is it the best thing to do (and do others need it as well)? armijn -- Writing a UNIX like shell is pretty straight-forward, armijn. Use a command design pattern and have your class names and constructor parameters equal the commands, options and targets you want. Do something like what is done with JNDI by Flanagan, Farley, Crawford and Magnusson in Java Enterprise in a Nutshell (O'Reilly), Ch. 6, The Naming Shell Application, and convert it for the web. -- micael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
CS143
Hi, Greg, I am working late tonight, cannot sleep. So, I thought I would put together a little grading tool for CS143. If you like it, feel free to change it, use it, sell it, whatever. ;-) The way it works is you put the unzipped files in c:\jdk1.3\jre\classes\ and go there on the command line or any IDE tool that runs the java command and run "java cs143.test.Test". A screen will come up and, if you were a student, you would enter "cs143 harry harry" (course, name, password). This will tell the student, if their class implements the tag interface Testable whether or not they pass the test set for their class. You can give the test the class must test prior to them building the classes. The student can keep changing their classes until they get a pass. Each attempt is recording it a log file. I sent a copy to Erika, in case Mark Vanbeek might find it helpful. Hope he can join us Tuesday. Micael cs143.zip Description: Zip compressed data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat4, taglibs, and pageContext.include
This will ruin the project I have been building. I cannot believe that is possible. -Original Message- From: Rickard Öberg [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Date: Sunday, October 28, 2001 12:15 AM Subject: Re: Tomcat4, taglibs, and pageContext.include Micael Padraig Og mac Grene wrote: Would you please expand on the ramifications? Surely this does not mean that we won't be able to use jsp: include [etc] tags? Does this mean that we won't be able to use code like: try { pageContext.include(content.toString()); } catch(Exception e) { throw new JspException(e.getMessage()); } In our tag classes? That is precisely what it means. :-( /Rickard -- 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: Tomcat4, taglibs, and pageContext.include
I have to say that I personally think whomever made this decision made a poor decision. I do not, of course, have all the facts and the reasons why such a decision was made, but it would seem to be too drastic to be justfied. The use of templating in tag libraries centers around this sort of code. I don't have a vote or anything, of course, but, if I did, I certainly would vote against this. Doesn't this break Struts templating? I don't use Struts, but do follow that sort of architectural premise. -Original Message- From: Rickard Öberg [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Date: Sunday, October 28, 2001 12:15 AM Subject: Re: Tomcat4, taglibs, and pageContext.include Micael Padraig Og mac Grene wrote: Would you please expand on the ramifications? Surely this does not mean that we won't be able to use jsp: include [etc] tags? Does this mean that we won't be able to use code like: try { pageContext.include(content.toString()); } catch(Exception e) { throw new JspException(e.getMessage()); } In our tag classes? That is precisely what it means. :-( /Rickard -- 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: Tomcat4, taglibs, and pageContext.include
Would you please expand on the ramifications? Surely this does not mean that we won't be able to use jsp: include [etc] tags? Does this mean that we won't be able to use code like: try { pageContext.include(content.toString()); } catch(Exception e) { throw new JspException(e.getMessage()); } In our tag classes? -Original Message- From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Developers Mailing List [EMAIL PROTECTED] Date: Saturday, October 27, 2001 1:56 PM Subject: Re: Tomcat4, taglibs, and pageContext.include On Sat, 27 Oct 2001, Rickard Öberg wrote: Date: Sat, 27 Oct 2001 16:16:15 +0200 From: Rickard Öberg [EMAIL PROTECTED] Reply-To: Tomcat Developers Mailing List [EMAIL PROTECTED] To: Tomcat Developers Mailing List [EMAIL PROTECTED] Subject: Re: Tomcat4, taglibs, and pageContext.include Rickard Öberg wrote: Due to some recent subtle changes in Tomcat (Jasper and servlet API to be precise) it is no longer possible to implement jsp:include tags. (clarification).. using pageContext.include. /Rickard The reason for this change is a statement in the Javadocs for PageContext.include() that Tomcat 4 was not previously enforcing: The current JspWriter out for this JSP is flushed as a side effect of this call, prior to processing the include. Ideally, that statement would have been removed from the Javadocs for JSP 1.2, but it wasn't ... and now we are stuck enforcing it. If you look at the code that Jasper generates for jsp:include, you will see that it indeed no longer uses the PageContext.include() method in its implementation. 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]