RE: Tomcat as a service on NT
I also had that error when I was mistakenly pointing to the wrong version of the JDK. Although I had JDK1.3 installed and the correct JAVA_HOME and CLASSPATH, my PATH environment pointed at an older JDK1.2.2 installation first. IIRC, you need the latest SAX parser. Russ -Original Message-From: Liming Xie [mailto:[EMAIL PROTECTED]]Sent: 03 November 2000 02:58To: [EMAIL PROTECTED]Subject: RE: Tomcat as a service on NT Hi, When I mistakely setenv TOMCAT_HOME to a wrong path, it gave the same error message. That meansjavax can not find the main program to run. I suggest you tocheck your environment variable. Hope it help. Liming Xie [EMAIL PROTECTED] -Original Message-From: Jos?Luis Gómez Bocanegra [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 02, 2000 7:09 PMTo: [EMAIL PROTECTED]Subject: Tomcat as a service on NT Hi Tomcat team, I'm trying to use Tomcat as a service on NT, but I can see an error in stderr.log file, this error is: java.lang.NoClassDefFoundError: javax/xml/parsers/SAXParserFactory Where can I find this class? My CLASSPATHcontains: jaxp.jar, jasper.jar, webserver.jar and parser.jar, the jar files that contains Tomcat version 3.2 beta 6. Could you tell me what jar file/s I need?? Thanks.
RE: Shutting down Tomcat on HP-UX
Hi, This is one I'm having problems with too. When using HPUX11.00 and java 1.2.2_04: * With tomcat3.1, I needed 2 shutdown commands. * With tomcat3.2b6, I now need 3 shutdown commands. This difference is without changing the JVM, so it's clearly something to do with tomcat code. It's very consistent (consistently annoying). Exactly the same webapp shuts down correctly (on first shutdown command) when run on Solaris, (java 1.2.2_06) so it's *also* something to do with the JVM or platform. I have no workaround to suggest Regards, Simon -Original Message- From: Kurt R. Hoehn [SMTP:[EMAIL PROTECTED]] Sent: Friday, November 03, 2000 4:33 AM To: [EMAIL PROTECTED] Subject: Shutting down Tomcat on HP-UX I'm having a hard time shutting down tomcat 3.2b6 on HP-UX. It takes 3 to 4 shutdowns before the jvm is released from tomcats grasp, I have to manually kill the PID. Is there a know bug on this, a work around or is there a configuration problem. Thank You Kurt R. Hoehn Etech Studios, Inc.
getting tomcat run..
hi, i have installed: apache-1.3.12 JSDK2.0 ApacheJserv-1.1.1 JDK1.2 servlets are running fine. and i want to run .jsp so i decided to install tomcat. i have downloaded jakarta-tomcat and jakarta-ant from release/v3.1/src i do not know what to do now. should i install jakarta-ant first? how can i do it? and how about apache configuration. thanks in advance, any suggestion will be appreciated marcos -- m a r c o s @ i v a l . e s
RE: Apache-Tomcat
Hi all, i would like to try to use mod_jk, but in the source i have downloaded (tomcat 3.1) i can't find it. Can any one help me ? Thanks Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: giovedì 2 novembre 2000 17.32 To: [EMAIL PROTECTED] Subject: Apache-Tomcat Hi, Can any one help me , how to configure apache1.3.12 and tomcat3.1 with mod_jk under win2000. thanks, nell ___ CoolEmail -- Now you're talking. Get Free Email-By-Phone Today. http://www.CoolEmail.com
RE: talking to MS SQL server from Tomcat?
From my own use, JDBC-ODBC Bridge from jdk 1.3, works well, not like the one in JDK 1.2 ( or any ealy version i think ), it's near production quality, do a try it will surprise you, sure !!. Saludos , Ignacio J. Ortega -Mensaje original- De: Rick Castello [mailto:[EMAIL PROTECTED]] Enviado el: jueves 2 de noviembre de 2000 20:59 Para: [EMAIL PROTECTED] Asunto: talking to MS SQL server from Tomcat? Is anyone talking to a MS SQL server database with Tomcat? I'm looking for a JDBC-OBDC bridge, and EasySoft's offering has been problematic. Does anyone have any other suggestions? -Rick [EMAIL PROTECTED]
Trouble with taglib
Hi all. I hope there are someone that can help mem because i'm becoming crazy I'm trying to use a taglib that i have developed with Tomcat 3.1, but the only answer i have from the container is this: Error: 500 Location: /servizi/prova.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to open taglibrary http://www.comuneweb.it/taglibs/infrastruttura-1.0 : Parse Error in the tag library descriptor: com.sun.xml.parser/V-037 web-app I have inserted on "web.xml" file this line: taglib taglib-urihttp://www.comuneweb.it/taglibs/infrastruttura-1.0/taglib-uri taglib-location/WEB-INF/tlds/comuneweb.tld/taglib-location /taglib And the "comuneweb.tld" file look like this: taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnameprova/shortname urihttp://www.comuneweb.it/taglibs/infrastruttura-1.0/uri info Libreria di tag usati da ComuneWeb /info tag nameprova/name tagclassInfrastruttura.Tag.Prova/tagclass bodycontentempty/bodycontent info Tag di prova /info /tag /taglib Can any one help me ? please :) Thanks.bye
RE: Trouble with taglib
The web.xml dtd says: The taglib-uri element describes a URI, relative to the location of the web.xml document, identifying a Tag Library used in the Web Application So check your web.xml Wellington -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 03 November 2000 11:48 To: [EMAIL PROTECTED] Subject: Trouble with taglib Hi all. I hope there are someone that can help mem because i'm becoming crazy I'm trying to use a taglib that i have developed with Tomcat 3.1, but the only answer i have from the container is this: Error: 500 Location: /servizi/prova.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to open taglibrary http://www.comuneweb.it/taglibs/infrastruttura-1.0 : Parse Error in the tag library descriptor: com.sun.xml.parser/V-037 web-app I have inserted on "web.xml" file this line: taglib taglib-urihttp://www.comuneweb.it/taglibs/infrastruttura-1.0/taglib-uri taglib-location/WEB-INF/tlds/comuneweb.tld/taglib-location /taglib And the "comuneweb.tld" file look like this: taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnameprova/shortname urihttp://www.comuneweb.it/taglibs/infrastruttura-1.0/uri info Libreria di tag usati da ComuneWeb /info tag nameprova/name tagclassInfrastruttura.Tag.Prova/tagclass bodycontentempty/bodycontent info Tag di prova /info /tag /taglib Can any one help me ? please :) Thanks.bye
AW: Internal servlet error
If you look closer at the traceback you can see what happened and where. You have to look at com.se.error.ErrConstants.SETRACE Thats obvious not part of tomcat Root cause: java.lang.NullPointerException at com.se.error.ErrConstants.SETRACE(ErrConstants.java:101) at com.sefgcr.helper.jsp.gen.TfgWelcome.processRequest(TfgWelcome.java:43) at productareas.secustapp._0002fproductareas_0002fsecustapp_0002fwelcomepag e_0002ejspwelcomepage_jsp_0._jspService(_0002fprod -Ursprüngliche Nachricht- Von: ramanarayanan raman [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 3. November 2000 11:31 An: [EMAIL PROTECTED] Betreff: Internal servlet error
RE: [jBoss-User] Naming exception in standalone Tomcat
FWIW I run EJB's from an Oracle Application server and Tomcat in the middle. I have encountered exactly the same exceptions and they have always turned out to be because Tomcat has failed to load various jar files such as jndi.jar or whatever. Try putting these in TOMCAT_HOME/lib or on a global classpath. You could even try extracting it! Chris. -Original Message- From: Aaron Mulder [mailto:[EMAIL PROTECTED]] Sent: 02 November 2000 21:35 To: jBoss Cc: [EMAIL PROTECTED] Subject: Re: [jBoss-User] Naming exception in standalone Tomcat This is something that used to work and seems to have stopped working. It's not clear whether it was a Tomcat change or a jBoss change that caused the problem, but we are aware of it. As a workaround, you can manually load the jndi.properties file into a properties object or the system properties. Also, the new embedded tomcat service should solve that problem if you're running the two products in the same VM, but the directions for that are not yet in the manual. For the benefit of the Tomcat folks, I think the JNDI code uses getResources to look for jndi.properties, which is not implemented in AdaptiveClassLoader, but I'm pretty sketchy on that, and I don't know why it would have worked before (unless this was caused by one of the Linux JDK 1.3 updates?). Unfortunately the JNDI code is pretty grim. Aaron On Thu, 2 Nov 2000, Alexander Kogan wrote: Hello, Sorry for raising this topic again, but I just want to clear up this. I'm running jboss BETA-PROD-03 and Tomcat 3.2 beta6 completely separately (no integration at all!) under JDK 1.3 The following problem appears when I following the recommendation from jboss "Manual": M jBoss Libraries M The following jBoss libraries should be copied to web app/WEB-INF/lib: M jboss-client.jar, jnp-client.jar, ejb.jar, jta-spec1_0_1.jar M M JNDI Configuration M The jndi.properties files should be copied to web app/WEB-INF/classes M M EJB Client Code M The EJB client code should go in web app/WEB-INF/classes In such configuration I always get the NoInitialContextException javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java, Compiled Code) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java, Compiled Code) at javax.naming.InitialContext.init(InitialContext.java, Compiled Code) at javax.naming.InitialContext.init(InitialContext.java, Compiled Code) at engas.client.EngasClient.setInitialContext(EngasClient.java, Compiled Code) at engas.web.Engas.init(Engas.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java, Compiled Code) [...] This problem does NOT occurs when I add all jboss jars and jndi.properties into Tomcat CLASSPATH. Is it Tomcat's problem or mine (wrong DNA or something)? My deployment descriptor looks like that: ~/Engas/demo0: jar -tf build/engas.war WEB-INF/ WEB-INF/web.xml WEB-INF/lib/jboss-client.jar WEB-INF/lib/jnp-client.jar WEB-INF/lib/ejb.jar WEB-INF/lib/jta-spec1_0_1.jar WEB-INF/lib/JettyUtil.jar WEB-INF/lib/xerces.jar WEB-INF/lib/jdom.jar WEB-INF/classes/engas/ WEB-INF/classes/engas/core/ WEB-INF/classes/engas/core/EngasException.class WEB-INF/classes/engas/core/XmlDescriptor.class WEB-INF/classes/engas/client/ WEB-INF/classes/engas/client/EngasCSClient.class WEB-INF/classes/engas/client/GenericClient.class WEB-INF/classes/engas/client/EngasClient.class WEB-INF/classes/engas/web/ WEB-INF/classes/engas/web/EngasServlet.class WEB-INF/classes/engas/web/Engas.class WEB-INF/classes/jndi.properties META-INF/ META-INF/MANIFEST.MF portal.jsp portalErrorPage.jsp engasTitle.jsp toolbar.jsp softcomp.jsp software.jsp portal1.jsp images/ [...] Thanks in advance.
jk_nt_service.exe
I get this error when trying to start tomcat as a service using jk_nt_service.exe: Cloud you please respond to asap. Error 2140:An internal Windows NT error occurred
RE: [tomcat-user] Re: Request for clarification - I.E. Tomcat mod_jkinstalled in Apache
Hi I seem to be having a problem with the documents. I've read the mod_jk HOW TO, Tomcat UG and the workers.properties Document. I seem to be under the understanding that I DO have Tomcat configured to talk to apache, it just may not be doing it very well. :) I've added the following lines in httpd.conf # Tomcat module LoadModule jk_modulemodules/mod_jk.so # Tomcat module AddModule mod_jk.c and finally Include /usr/local/tomcat/conf/mod_jk.conf-aut I've checked the configuraton file (mod_jk.conf-auto) # # The following line instructs Apache to load the jk module # LoadModule jk_module libexec/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /var/log/httpd/apache-tomcat.log # # Log level to be used by mod_jk # JkLogLevel error Plus, I've got the /Servlets context installed in the above file also. # # Auto configuration for the /Servlets context starts. # # # The following line makes apache aware of the location of the /Servlets context # Alias /Servlets "/home/john/public_html/Servlets" Directory "/home/john/public_html/Servlets" Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /Servlets/servlet/* ajp12 JkMount /Servlets/*.jsp ajp12 # # The following line prohibits users from directly accessing WEB-INF # Location "/Servlets/WEB-INF/" AllowOverride None deny from all /Location # # The following line prohibits users from directly accessing META-INF # Location "/Servlets/META-INF/" AllowOverride None deny from all /Location ### # Auto configuration for the /Servlets context ends. ### Am I potentially missing something here? Oh yeah, I restarted BOTH apache and tomcat after the install/configuration with Tomcat starting up first as instructed. After all this I I get the aforementioned problems. I also have support/references in the server.xml file for both the Apache apjv12 (on port 8007) and apjv13 (on port 8009) protocols. I also was hoping that the 'talking' between Apache and Tomcat would be seamless maybe this is just not possible with it's current implementation? Thank you very much for your response. -Original Message- From: kenneth topp [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 6:01 PM To: John Bateman Cc: Tomcat-User (E-mail) Subject: [tomcat-user] Re: Request for clarification - I.E. Tomcat mod_jkinstalled in Apache You haven't configured apache to talk to tomcat.
Apjv13 garbling headers
I noticed a strange problem with a Apache/Tomcat configuration communicating via mod_jk/apjv13. The HTTP "Authorization:"-Header, which my servlet desperately needs, doesn't show up on the Tomcat side. If I dump all headers that reach my servlet, I instead have "accept-language: Basic ...". So apjv13 seems to translate "Authorization:" into "accept-language:" ??? I changed the configuration from apjv13 to apjv12 without doing anything else, and it's working fine now. Thought I'd just mention the fact, maybe someone else has noticed something like this? Is this a mod_jk or Apache bug? John Bodenstein contecto GmbH + Adenauerallee 18-22 + 53113 Bonn Tel 0 22 8 / 9 21 28 62 + Fax 0 22 8 / 9 21 28 65
Tomcat-apache.conf contains backslashes, not forward slashes ?
Folks, Could anyone confirm that the tomcat-apache.conf file, as generated by Tomcat, contains backslashes for directory names ? The 3.2 development tree seems to suggest this is being worked on. For now, I'm afraid I'll have to manually change this on each Tomcat startup. True ? I was just happy I understood the configuration issues for 3.1, so I hoped I could stick with 3.1 for a while. But when I have to edit the Apache configuration on each startup during testing, well ... ;) Cheers, Sandor -- ir A.G.L. Spruit, Utrecht University, the Netherlands Institute of information and computing sciences "There is a bit of magic in everything, and then some loss to even things out" (from: Lou Reed, "Magic and Loss")
RE: SessionContext.log(...) Where does the path in the output come fr om?
This is the name of the context your app is running in. As defined in server.xml As I can tell from the output your are currently using the root context. Regards, Andreas -Original Message- From: Kurt, Oliver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 8:01 AM To: '[EMAIL PROTECTED]' Subject: SessionContext.log(...) Where does the path in the output come fr om? Hi all, when using the log method from SessionContext(), the written output looks like the follwing: Context log path="" : here goes the log message string What is that "Context log path" thing? When I'm using log("...") the context log path is always empty. What is the meaning of the path and how can I set it? Regards Oliver Kurt
AW: Request for clarification - I.E. Tomcat mod_jk installed in Apache
If you would serve your static content by apache and call your dynamic pages directly from tomcat you have to think about the following: An uncomplete braindump of mine: - You loose the common access.log for all requests - You would rely on tomcat as a HTTP server and the HTTP implementation is possibly not as stable as apaches. - Some clients of your server may not even get your dynamic content, because some sysadmins block HTTP Request from non standard ports in their firewalls - apache has some features that are not available for tomcat standalone (mod_rewrite, virtual hosting) - I think it is not a good policy to put the port number in the pages. So you have to implement something to deal with this. - You have two dedicated servers with their own administration. -Ursprüngliche Nachricht- Von: John Bateman [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 2. November 2000 20:34 An: Tomcat-User (E-mail) Betreff: Request for clarification - I.E. Tomcat mod_jk installed in Apache snip/ Why would I need to put the module 'inside' apache, if I'm required to run Tomcat as a process AND access my servlets on another port? Can I not just run it all off Tomcat standalone? I understand that Apache is more 'configurable' and handles static content better, but, I don't understand why I would add Tomcat into apache if I just access the same URL as I would if it was stand alone. Could I not get the same results leaving NOTHING extra inside Apache and referencing my Servlet files on the 8080 port (as tomcat stand alone)? snip/
Why run multiple tomcats?
The documentation for Tomcat seems to recommend that for a multi developer environment everyone run their own tomcat instance and each developer having their own server.xml file. Isn't there an easier and cleaner way of doing this? I'm using mod_jk to hook Tomcat into Apache. Shouldn't it be possible to set each developer as a worker in worker.properties file? Thanks for your time, --Rick Anderson __ Rick Anderson | [EMAIL PROTECTED] |_ Continuous Education Outreach Manager of Computer Systems, (732)932-5071 __
Re: jk_nt_service.exe
An error in tomcat.conf or tomcat-apache.conf or server.xml - Original Message - From: "Jaco Roux" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 03, 2000 2:33 PM Subject: jk_nt_service.exe I get this error when trying to start tomcat as a service using jk_nt_service.exe: Cloud you please respond to asap. Error 2140:An internal Windows NT error occurred
Re: Why run multiple tomcats?
Yes, I'd like to second that emotion. I've been lurking again trying to figure out how to deploy JSP/servlets in a teaching environment, alongside our webpages and cgi scripts. From the docs, it looks like you need to specify _each_ application in the config files to get it to run. Have I got the wrong end of the stick? --- Boyd Duffee Keele University Computer Science (01782) 583437 Computing Officer The museum is closing in 5 minutes.http://www.nhm.ac.uk/ Please stop learning and place your brain in neutral.
Re: Trouble with taglib
If you are running on a win32 platform with Tomcat 3.2b6 you might be suffering from the same problem I found yesterday when I grabbed 3.2b6. The problem is caused by the goofy way win32 handles upper/lower case in file names. To fix the problem edit src\share\org\apache\tomcat\util\FileUtil.java starting at line 197: if (!realPath.equalsIgnoreCase(canPath)){ int ls=realPath.lastIndexOf('\\'); if ( (ls 0) !realPath.substring(0,ls).equals(canPath) ) return null; } Change the realPath.equals(canPath) to realPath.equalsIgnoreCase(canPath). There was even a comment on line 196 which mentions checking ignore case on windows. Once I made this mod, everything worked great. I'm not at all sure this is the "right" way to fix the problem but it does seem to work. Kurt [EMAIL PROTECTED] wrote: Hi all. I hope there are someone that can help mem because i'm becoming crazy I'm trying to use a taglib that i have developed with Tomcat 3.1, but the only answer i have from the container is this: Error: 500 Location: /servizi/prova.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to open taglibrary http://www.comuneweb.it/taglibs/infrastruttura-1.0 : Parse Error in the tag library descriptor: com.sun.xml.parser/V-037 web-app I have inserted on "web.xml" file this line: taglib taglib-urihttp://www.comuneweb.it/taglibs/infrastruttura-1.0/taglib-uri taglib-location/WEB-INF/tlds/comuneweb.tld/taglib-location /taglib And the "comuneweb.tld" file look like this: taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnameprova/shortname urihttp://www.comuneweb.it/taglibs/infrastruttura-1.0/uri info Libreria di tag usati da ComuneWeb /info tag nameprova/name tagclassInfrastruttura.Tag.Prova/tagclass bodycontentempty/bodycontent info Tag di prova /info /tag /taglib Can any one help me ? please :) Thanks.bye
Sticky sessions (again)
Hi, I'd like to know if somebody has succeeded in having Tomcat running with sticky sessions in standalone mode or with an external web server (other than Apache)?! Searches on some mailing lists make me think that some code must be changed or added. My application already uses cookies and it seems to be a problem, am I wrong? Is there a patch somewhere? Or summed up information about sticky sessions? Last nightly builds don't fix the problem and my sessions are still unsticky :o( Please help!!! Thanks for answers... Alain Origlia CALENDRA135, rue du DirigeableZI Les Paluds13783 AUBAGNE CedexTel: +33 (0)4 42 18 69 90http://www.calendra.com
redistributing Tomcat
Hello, we intend to give give out Tomcat 3.1 along with a Servlet to make a complete package that people can try out instantly. The Servlet is Open Source. Are there any guidelines to be followed for this procedure? Specific ways in which we should mention Tomcat? General things to be displayed? Thanks for any hints/documentation! Regards -- Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014 its easy to stop using Perl: I do it after every project
Re: Why run multiple tomcats?
From: "Rick Anderson" [EMAIL PROTECTED] The documentation for Tomcat seems to recommend that for a multi developer environment everyone run their own tomcat instance and each developer having their own server.xml file. Isn't there an easier and cleaner way of doing this? I'm currently running each of my sites with separate tomcats with their own separate server.xml files, and I thought it was actually a pretty clean way of doing it, particularly for development, as everybody essentially has their own server that they can use/crash/misconfigure without bothering anyone elses work. DK
Tomcat ISAPI
I have installed the Tomcat ISAPI and can successfully route jsp and servlet requests to Tomcat. The problem I am experiencing is that the response back to the browser never completes. All the page content is received (and is in fact rendered) but the browser remains in a downloading state until it eventually times out. This happens with Netscape and IE. The same servlet or JSP returns without problems when I navigate directly to Tomcat on port 8080. thanks in advance for any help
Bug in mod_jk using AJP13 when passing Auth header to JDBCRealm ?
code snip: SecurityTools.java start public static void basicCredentials( Request req, Hashtable credentials ) { Context ctx=req.getContext(); String authMethod=ctx.getAuthMethod(); if( authMethod==null || "BASIC".equals(authMethod) ) { String authorization = req.getHeader("Authorization"); if (authorization == null ) return; // no credentials if( ! authorization.startsWith("Basic ")) return; // wrong syntax end String authorization = req.geHeader("Authorization") returns null. System Apache 1.3.14 using mod_jk and AJP13 Tomcat 3.1b6 WinNT 4.0 When I change the worker to AJP12 all works fine. Is there a fix available for this?
RE: including files from JSPs (Better Way To Handle Errors?)
Juan, If you are trying to include an error page everytime that there is an error there are much better ways to do it. The way I handle error is to create a jsp something like this... "/ehandling/index.jsp" %@ page import="com.netstat.util.*" isErrorPage="true" % !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" html head titleStallion Leather - World class quality exceeding customer expectations./title %@ include file="../includes/pagetop.jsp" % % /* Print the data to the users screen. */ % div align="center" There was an error:brbr %= exception % /div % /* Print the bottom of the page. */ % %@ include file="../includes/pagebot.jsp" % /html That is just a very simple error page. Then I have all other jsps in the project declare there page attribute like this... %@ page import="com.netstat.util.*" errorPage="/ehandling/index.jsp" % This setup uses jsps built in error handling. This way if a page throws an error you did not expect or code for the user still gets a nice looking error page with a message they can report. Also, now instead of including an error file everytime I look for error I can just do something like this. try { do some code } catch (Exception e) { throw new Exception("There was an error of some kind.br" + "bAdditional Information:/b " + e.getMessage()); } This has worked very well for me and it allows me to changed the look of my error messages in one place and also reduces the amount of code in each individual jsp by a significant amount. Craig Anderson Director of Internet Services Netstat Resources, LLC. http://www.netstatresources.com -Original Message- From: Juan Esteban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 10:01 AM To: [EMAIL PROTECTED] Subject: including files from JSPs There all, I'm train to include same kind of error message in some place from JSP pages. This message is placed into another file named errormessage.jsp. I do not have any problem when I include this file once, using: %@ include file="errormessage.jsp" % but since this message is a generic error message, some times I have to include it more than one time in the same JSP page, and here is when I get an compiling error from tomcat that say: org.apache.jasper.compiler.ParseException: Seen file \errormessage.jsp already, maybe this is a recursive include?! It is possible to include the same file more than one time in the same page? Thank! Juan
Tomcat ISAP
I have installed the Tomcat ISAPI and can successfully route jsp and servlet requests to Tomcat. The problem I am experiencing is that the response back to the browser never completes. All the page content is received (and is in fact rendered) but the browser remains in a downloading state until it eventually times out. This happens with Netscape and IE. The same servlet or JSP returns without problems when I navigate directly to Tomcat on port 8080. thanks in advance for any help
where is xml.jar
I am trying to insatl jakarta-tomcat, jakarta-ant is already installed, as instructed in the same directory where jakarta-tomcat . When calling build.sh this is the result: Searching for build.xml ... Buildfile: /home/memami/local/jakarta-tomcat/build.xml init: prepare: [copydir] DEPRECATED - The copydir task is deprecated. Use copy instead. [copydir] DEPRECATED - The copydir task is deprecated. Use copy instead. [copydir] DEPRECATED - The copydir task is deprecated. Use copy instead. [copyfile] DEPRECATED - The copyfile task is deprecated. Use copy instead. [copydir] DEPRECATED - The copydir task is deprecated. Use copy instead. [copydir] DEPRECATED - The copydir task is deprecated. Use copy instead. [copyfile] DEPRECATED - The copyfile task is deprecated. Use copy instead. BUILD FAILED /home/memami/local/jakarta-tomcat/build.xml:39: src /home/memami/local/jakarta-ant/lib/xml.jar does not exist. appriciate your help __ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/
Maximum Memory Issues
A few days ago, I posted an e-mail about the Java maximum memory heap size. (We have a client in the happy situation of having 4 Gigs on their servers, and they were frustrated about not being able to specify more than 2 Gigs in the -Xmx option. I got some good advice from the mailing list about how to set up multiple instances of Tomcat.) Now the client has further informed me that when they provide a maximum heap value of more than 700 Megs, Tomcat is unstable, and invariably crashes after a while. They are running Tomcat 3.2b2 on a Sun Sparc machine using Solaris 7 (I don't remember the machine model number but they've only had it for a month, and it's one of the biggest machines you can get). They actually have more than one machine of this type (4, I believe), all of which are exactly the same. The client is in another city, and therefore the communication is sometimes a bit spotty, so I don't have more detailed info on the nature of the crashes, but it seems to vary. Unfortunately, our test machines here only have 512 Megs of memory, so I can't duplicate the situation either. My question is: Has anyone else experienced this? Does anyone have an idea why this should be an issue? Also, does anyone know of any stability/performance issues that were resolved between 3.2b2 and 3.2b6? If need be, I suppose that we could just have more Tomcat instances, but it seems to me that this shouldn't be necessary. This site only has one servlet at the moment, but we have to have a servlet to facilitate our applet/server communication, and we anticipate very heavy site usage. We're already getting thousands of hits a day, and the client hasn't even started advertising. We are keeping the memory below 700 Megs, but we have had the servers go down a couple of times already (I'm waiting to receive a Tomcat log file while I'm writing this note). I feel that in terms of performance tuning, we haven't even scratched the surface, but I nevertheless get a bit nervous when I hear about servers going down. Despite the heavy traffic, the servlet usage is relatively light. A user may stay on the site for 10-15 minutes, but they only need to access one servlet, at the end of their session. This is done in order to transmit data from an applet to the server, which can take about 20 seconds, but may take longer because if the servers are occupied, they will be queued up behind other users. Due to this setup, we figured that we could get away with using Tomcat as opposed to some other, more industrial strength, servlet engine. (Also, I'm a fan of open source, and I personally like the idea of using something like Tomcat.) This is probably all a bit vague, but if anyone has any suggestions or opinions on what I should be looking at to resolve this, I'd appreciate them. Thanks in advance. Ed -- Ed Gomolka ([EMAIL PROTECTED])
Re: Why run multiple tomcats?
From: "Rick Anderson" [EMAIL PROTECTED] The documentation for Tomcat seems to recommend that for a multi developer environment everyone run their own tomcat instance and each developer having their own server.xml file. Isn't there an easier and cleaner way of doing this? I'm currently running each of my sites with separate tomcats with their own separate server.xml files, and I thought it was actually a pretty clean way of doing it, particularly for development, as everybody essentially has their own server that they can use/crash/misconfigure without bothering anyone elses work. Well, with each webapp getting it's own "/lib" and "/classes" directories and such (although this is part of the servlet 2.2 spec, so not unique to tomcat), tomcat has already gone a long way toward giving each development its own sandbox. About the only thing that I can think of off the top of my head that's still server-wide is the users/passwords. If tomcat could make that localizable, it seems that you'd only need to run one server. As far as users being able to crash the server without affecting anybody. tomcat itself should crash when a webapp misbehaves. - Joe
Re: servlet mappings???
Matt Goss wrote: servlet-mapping servlet-namerouter/servlet-name url-pattern/*/urlpattern /servlet-mapping the idea is that I should be able to request the file test.jsp and have the router servlet pick up the request (to test for a login)...but the servlet never gets the request... the test.jsp page just comes right up gr... I had a similar problem - you might want to try the following: servlet-mapping servlet-namerouter/servlet-name url-pattern//urlpattern /servlet-mapping AFAIK that's how you do it according to the servlet spec... IIRC using the postfix "/*" only works on paths below root, i.e. "/somedir/*"... -- Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS: http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh [EMAIL PROTECTED] ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Burnt Friedman The Nu Dub Players - I Shot The Fashion Victim (Just Landed)
RE: servlet mappings???
I've done the same thing my self. What you have below looks okay. Are you sure the servlet class name is right? Including package name and capitalization? Can you directly access the servlet? Do you have other mappings to /* or for the servlet? Even just: servlet-mapping servlet-namerouter/servlet-name url-pattern/router/url-pattern /servlet-mapping If you have conflicting mappings, I believe only the first is followed. In your case, you can't have any other mappings for the servlet. I tested my mappings using the example app that came with tomcat. I used the mappping of the SnoopServlet: servlet servlet-name snoop /servlet-name servlet-class SnoopServlet /servlet-class /servlet to map http://myhost:8080/snoop/reports/ to the snoop servlet servlet-mapping servlet-name snoop /servlet-name url-pattern /reports/* /url-pattern /servlet-mapping Also mapped the snoop servlet to *.xxx servlet-mapping servlet-name snoop /servlet-name url-pattern *.xxx /url-pattern /servlet-mapping -Original Message- From: Matt Goss [mailto:[EMAIL PROTECTED]] Sent: Friday, November 03, 2000 12:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: servlet mappings??? Hi all, I'm attempting to map a controller servlet so that any requests go through it... (the MVC method). I have a context/application called test that is accessable via the URL "http://myhost.com/test/". In the web.xml file (in the "webapps/test/WEB-INF" directory) I put the following mapping: servlet servlet-namerouter/servlet-name servlet-classrouter/servlet-class /servlet servlet-mapping servlet-namerouter/servlet-name url-pattern/*/urlpattern /servlet-mapping the idea is that I should be able to request the file test.jsp and have the router servlet pick up the request (to test for a login)...but the servlet never gets the request... the test.jsp page just comes right up gr... I'm requesting it with the URL "http://myhost.com/test/test.jsp". Any ideas/suggestions??? Matt Goss
Tomcat3.1 Solaris2.7 - shutdown.sh does NOT work?
Hello, I just installed Tomcat 3.1 on my solaris 2.7 machine. I have set my TOMCAT_HOME and JAVA_HOME. It started up fine but when I went to run shutdown.sh it did not shutdown the listener. Everything seemed fine; it displayed the 'Using classpath...' message from tomcat.sh and then the typical 'Stop tomcat'. There were no errors or any other sign that would indicate the listener (port 8080) did not shut down, but it was still running. I had to kill the process manually. This has never happened on my Win98, NT, or solaris 2.6 platforms. Has anyone seen this behavior?? Thanks, Peter Len
Re: Tomcat ISAPI
Some other people have reported the same problem in this list, and a couple of solutions have been posted. To save you time searching the archives: - Be sure the first line of your page is an HTML tag (put HTML ...) NOT a JSP tag. The point is that lines with JSP tags appear in the output as empty lines (CR LF) and it seems that there is a bug in IIS when serving pages in Chunk mode.. -If the first fails, be sure you are closing all JDBC objects, especially connections, if you are not using a connection pool. Julio - Original Message - From: Nosonowitz, Phil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 03, 2000 3:07 PM Subject: Tomcat ISAPI I have installed the Tomcat ISAPI and can successfully route jsp and servlet requests to Tomcat. The problem I am experiencing is that the response back to the browser never completes. All the page content is received (and is in fact rendered) but the browser remains in a downloading state until it eventually times out. This happens with Netscape and IE. The same servlet or JSP returns without problems when I navigate directly to Tomcat on port 8080. thanks in advance for any help
Re: redistributing Tomcat
You can freely distribute Apache Software Foundation software as long as you follow the guidelines of the license... see: http://www.apache.org/LICENSE.txt Julio - Original Message - From: Ingo Luetkebohle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 03, 2000 12:37 PM Subject: redistributing Tomcat Hello, we intend to give give out Tomcat 3.1 along with a Servlet to make a complete package that people can try out instantly. The Servlet is Open Source. Are there any guidelines to be followed for this procedure? Specific ways in which we should mention Tomcat? General things to be displayed? Thanks for any hints/documentation! Regards -- Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014 its easy to stop using Perl: I do it after every project
Re: Why run multiple tomcats?
Tomcat should never crash when a webapp misbehaves, it should just stop the webapp from doing any harm in the first place, it should just report an error and then move on. Tomcat documentation shows how to configure to serve virtuals, although its a little vague. What I don't understand is why can't you map an app directly to a directory instead of having it mapped to a base directory and then putting everything within the proper place i.e.: /mapped_dir/WEB-INF /mapped_dir/WEB-INF/classes etc. etc. The docs never realy explain as to why this setup was chosen instead of the old JServ way of just telling where the servlet is or should be. Jamie On Fri, 3 Nov 2000, Joe Emenaker wrote: From: "Rick Anderson" [EMAIL PROTECTED] The documentation for Tomcat seems to recommend that for a multi developer environment everyone run their own tomcat instance and each developer having their own server.xml file. Isn't there an easier and cleaner way of doing this? I'm currently running each of my sites with separate tomcats with their own separate server.xml files, and I thought it was actually a pretty clean way of doing it, particularly for development, as everybody essentially has their own server that they can use/crash/misconfigure without bothering anyone elses work. Well, with each webapp getting it's own "/lib" and "/classes" directories and such (although this is part of the servlet 2.2 spec, so not unique to tomcat), tomcat has already gone a long way toward giving each development its own sandbox. About the only thing that I can think of off the top of my head that's still server-wide is the users/passwords. If tomcat could make that localizable, it seems that you'd only need to run one server. As far as users being able to crash the server without affecting anybody. tomcat itself should crash when a webapp misbehaves. - Joe
Re: where is xml.jar
On Fri, 03 Nov 2000, you wrote: does any body no where I can get the xml.jar that jakarta-tomcat needs for installation __ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/ DON' T BE FOCKING!
ISAPI filters
We are redistributing tomcat on Win NT and IIS and want to install the ISAPI filter programmatically. Has anyone done this and do you have some code you could share? Thanks in advance, Toby
At last, Herbal V, the all natural alternative to V----A!
Herbal V: An Incredible All-Natural Healthy Alternative Herbal V is the All Natural Approach to Male Virility, Vitality and Pleasure. Available N o w ! Welcome to the New Sexual Revolution. It's the all natural male potency and pleasure pill that men everywhere are buzzing about. Herbal V is safe, natural and specifically formulated to help support male sexual function and pleasure. You just take two easy-to-swallow tablets one hour before sex. And there's more great news - you can get Herbal V for less than $1 a pill. Amazing word of mouth praise on Herbal V has been spreading like wildfire-already over 1,500,000 men have chosen Herbal V. Since it is 100% natural you will never have to worry about safety. Try doctor-recommended Herbal V today and have the greatest night of your life! Herbal V... Bringing Back the Magic! 1,585,000 men can't be wrong. To date over 1 million men have tried the super supplement Herbal V. Here is why: No Doctor Visit Required Available Over the Counter Not a Drug 100% Natural Safe, No Worries Highest Quality Pharmaceutical-Grade Pure Nutriceuticals Guaranteed Potency Purity Be a Real Man Again! Questions and Answers What is Herbal V? Herbal V is a proprietary blend that was specifically developed as a safe alternative for men who prefer an all-natural approach to address impotence and boost sexual performance. This amazing formula first became popular with Hollywood insiders and the wealthy elite. They were maximizing their sex lives, long before it was available to the general public. How does Herbal V work? Developed by a team whose goal was to create the perfect all-natural aphrodisiac. Herbal V is the result of that remarkable effort. The Herbal V formula contains a precise blend of cutting edge pro-sexual nutrients from around the world that provide nutritional support, making it possible for a man to have a pleasurable sexual experience. What can Herbal V do for me? Herbal V helps support male sexual function and pleasure in a safe and natural manner. Simply put, it can make your sex life incredible. Is Herbal V Safe? One of the great things about Herbal V is that it is not a drug. It is an incredible herbal dietary supplement that provides nutritional support for male sexual function and pleasure. One of the most comforting features of Herbal V is that you never have to worry about safety. Herbal V: Safe - Natural - Exciting Many have speculated that because Herbal V is so popular with men, it must contain prescription drugs or chemical components. Herbal V does not contain any elements or traces of any prescription drug. Herbal V is made using the world's most technologically advanced state-of-the-art cold processing equipment to ensure maximum purity. Herbal V has been independently analyzed by the nation's premier testing facility to ensure purity, quality and to end the rumors that, because it is so popular, it must somehow be chemical. It is not. Herbal V is natural - just as it says on the label. Herbal V is simply fantastic! Herbal V: Ingredients Yohimbe, saw palmetto, avena sativa, androstenedione, guarana, taurine, siberian ginseng, tribulus terrestris. Tribulus Terrestis is certified to enhanced testosterone levels by increasing Luteinzing hormone (LH) levels. Androstenedione which is a precursor to testosterone unlocks bound testosterone and makes it biologically active again quickly. This means a dramatic surge in desire. Avena Sativa Stimulates the neurotransmitter pleasure centers to maximum capacity. This greatly intensifies pleasure. Just listen to what Herbal V has done for the sex lives of people like you! On a scale of 1 to 10, it's a 15. Electrifying. It's like a wonder pill! Justin Q B., New Haven, Texas I haven't had sexual relations in 11 years. Then with Herbal V it was... wow! It works again! Sid R., Lakeland, Florida I had sex four times in one night. It made me feel like a 19-year-old again. Chip S, Beech Mountain, North Carolina Herbal V has turned my husband into a Sexual Superman! I like the fact that it's all natural and has no side effects. It's bringing back the good old days. Jennifer B, Beverly Hills, California The above testimonials are from product literature, and we have not independently verified them. However, the following testimonial is from a "senior" gentleman who has purchased his second bottle of Herbal V. When we heard his words with our own ears, we asked his permission to print them here. Man! I'm wild as I can be! I feel like I'm 25 years old again! I'm not believing this! Mr. Murphy, age 64, Lampart, IL. Risk Free: Double Your Money Back Guarantee If Herbal V does not give the desired results as stated above, simply return the unused portion for a double-your money back refund. No questions asked ! Order Now: Safe, Fast, Secure, Private Herbal V with its DOUBLE YOUR MONEY BACK
Re: shutdown.sh did NOT work - Tomcat3.1 solaris 2.7
I'm not sure if it is related, but I have seen this bahavior when the AJP connector is commented out. In other words, I had this same problem when I was testing it in stand alone mode without the connector code enabled in the server.xml file. I hope this helps. Duane Gran spinweb.net On Fri, 3 Nov 2000, Len, Peter wrote: Hello, I just installed Tomcat 3.1 on my solaris 2.7 machine. I have set my TOMCAT_HOME and JAVA_HOME. It started up fine but when I went to run shutdown.sh it did not shutdown the listener. Everything seemed fine; it displayed the 'Using classpath...' message from tomcat.sh and then the typical 'Stop tomcat'. There were no errors or any other sign that would indicate the listener (port 8080) did not shut down, but it was still running. I had to kill the process manually. This has never happened on my Win98, NT, or solaris 2.6 platforms. Has anyone seen this behavior?? Thanks, Peter Len
RE: servlet mappings???
If you have everything correct, the re-direction should work when you use port 8080, but fail on port 80 because Apache doesn't know about the change. You can tell Apache in either or two ways as described below: Take a look at: http://www.jguru.com/jguru/faq/view.jsp?EID=140877 for a solution using the Apache directive LocationMatch. Another solution is to use the mount directive. E.g., ApJServMount /intranet/servlet /intranet ApJServMount /intranet/jsp-bin /intranet The equivalent Jk directive is JkMount /intranet/servlet/* ajp12 JkMount /intranet/jsp-bin/* ajp12 In the archives, search for the subject "Servlet configuration" and read Jacob Kjome's informative postings. Whether you use LocationMatch or the appropriate Mount directive in your tomcat-apache.conf file, you *MUST* also modify your context's web.xml file and add an URL-PATTERN (E.g., url-pattern /jsp-bin/*/url-pattern ). Ken. On Fri, 03 Nov 2000, you wrote: I've done the same thing my self. What you have below looks okay. Are you sure the servlet class name is right? Including package name and capitalization? Can you directly access the servlet? Do you have other mappings to /* or for the servlet? Even just: servlet-mapping servlet-namerouter/servlet-name url-pattern/router/url-pattern /servlet-mapping If you have conflicting mappings, I believe only the first is followed. In your case, you can't have any other mappings for the servlet. I tested my mappings using the example app that came with tomcat. I used the mappping of the SnoopServlet: servlet servlet-name snoop /servlet-name servlet-class SnoopServlet /servlet-class /servlet to map http://myhost:8080/snoop/reports/ to the snoop servlet servlet-mapping servlet-name snoop /servlet-name url-pattern /reports/* /url-pattern /servlet-mapping Also mapped the snoop servlet to *.xxx servlet-mapping servlet-name snoop /servlet-name url-pattern *.xxx /url-pattern /servlet-mapping -Original Message- From: Matt Goss [mailto:[EMAIL PROTECTED]] Sent: Friday, November 03, 2000 12:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: servlet mappings??? Hi all, I'm attempting to map a controller servlet so that any requests go through it... (the MVC method). I have a context/application called test that is accessable via the URL "http://myhost.com/test/". In the web.xml file (in the "webapps/test/WEB-INF" directory) I put the following mapping: servlet servlet-namerouter/servlet-name servlet-classrouter/servlet-class /servlet servlet-mapping servlet-namerouter/servlet-name url-pattern/*/urlpattern /servlet-mapping the idea is that I should be able to request the file test.jsp and have the router servlet pick up the request (to test for a login)...but the servlet never gets the request... the test.jsp page just comes right up gr... I'm requesting it with the URL "http://myhost.com/test/test.jsp". Any ideas/suggestions??? Matt Goss -- Kenneth R. Kress[EMAIL PROTECTED]
Urgent Help Required on TomCat Installation
Hello... I am using Linux Redhat 7.0 already intalled Jdk1.3. I somehow managed to override the Jdk1.1.7 which comes along with Redhat 7.0. I wanted Java Servlet Support so tried to install Apache JServ 1.1, but it was looking for Jdk1.1.7. So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML Parser), Jakarta-Ant, I installed both of them successfully. After that I have been trying to execute the build.sh file of Tomcat, but it is giving me a warning that I need to use the deprecate option to compile the files. On observing closely the build.sh file, I found that it is referring to the build.xml file. I know deprecate is used to compile java files when some of the old methods of java are used. Since the class files are not created on compiling, the jar files are also not getting created. These jar files are probably used by Tomcat... Please let me know how to handle this case... Regards, Tony Get free email and a permanent address at http://www.netaddress.com/?N=1
Help Required Urgently
I am using Linux Redhat 7.0 already intalled Jdk1.3. I somehow managed to override the Jdk1.1.7 which comes along with Redhat 7.0. I wanted Java Servlet Support so tried to install Apache JServ 1.1, but it was looking for Jdk1.1.7. So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML Parser), Jakarta-Ant, I installed both of them successfully. After that I have been trying to execute the build.sh file of Tomcat, but it is giving me a warning that I need to use the deprecate option to compile the files. On observing closely the build.sh file, I found that it is referring to the build.xml file. I know deprecate is used to compile java files when some of the old methods of java are used. Since the class files are not created on compiling, the jar files are also not getting created. These jar files are probably used by Tomcat... Please let me know how to handle this case... Regards, Tony
Tomcat Ready for Prime Time?
How robust is Tomcat? Can it really be used in a high stress production environment? I know that Apache is very robust? Is Tomcat on the same level? Have there been any stress tests done on Tomcat? Is there any independent performance data on Tomcat? We are considering the WebLogic enterprise application server. Can Tomcat be considered a true competitor of WebLogic? Thank you for your time and consideration.
Re: Why run multiple tomcats?
In my case I have two developers who are building applications. I can understand that they would want to have their own tomcat instance. However, I have four other users that are developing XML server pages. They don't really need their own version of tomcat. It would be better if Apache passed *.xml and *.xsl over to cocoon and tomcat from that users public_html directory. --Rick __ Rick Anderson | [EMAIL PROTECTED] |_ Continuous Education Outreach Manager of Computer Systems, (732)932-5071 __ On Fri, 3 Nov 2000, David Knaack wrote: From: "Rick Anderson" [EMAIL PROTECTED] The documentation for Tomcat seems to recommend that for a multi developer environment everyone run their own tomcat instance and each developer having their own server.xml file. Isn't there an easier and cleaner way of doing this? I'm currently running each of my sites with separate tomcats with their own separate server.xml files, and I thought it was actually a pretty clean way of doing it, particularly for development, as everybody essentially has their own server that they can use/crash/misconfigure without bothering anyone elses work. DK