Re: Starting Tomcat 4.0.2 with Apache 1.3.23 using J2SDK 1.3.1
More info on my problem. catalina.sh is loading org.apache.catalina.startup.Bootstrap Note: I did not edit startup.sh or catalina.sh in any way On February 20, 2002 03:48 pm, you wrote: I'd say there's your problem. usage: java org.apache.(etc.) indicates something isn't right in how catalina.sh is calling java. I would check your variables like CATALINA_OPTS, CATALINA_HOME, CATALINA_BASE for typo's or errors. Provided you didn't edit startup.sh or catalina.sh, things should work right. If all that's correct, try putting in an echo command on the line above where java... is called in catalina.sh to see what is trying to be executed. --David On Wednesday 20 February 2002 03:01 pm, you wrote: Answers in reply On February 20, 2002 01:14 pm, you wrote: I can offer a little help. What os are you running? If you are on a unix ( which it looks like) variation run ps -ef | grep java. If it reurns something your are running. If not there is something else wrong. Send in the output of the startup.sh I am running RedHat 7.1 Did k the logs? I think cataline.out will give you the errors. catalina.out contains: usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -debug ] [ -nonaming ] { start | stop } What does you httpd.conf look like?? Is apache running?? Apache runs and works with Tomcat using mod_webapp How are you calling your domain? domain is localhost Give a little info chad -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
I don't get no Satisfaction by Jagger
Dear Gurus, I've already installed Apache+Tomcat4.But in Task it they work separatly.When I saw system processes with #ps auxw Linux shows long list. So is there way to Optimize Tomcat to get full satisfaction? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.2, IIS 5.0 and NT-service
Hi, I've used Tomcat 3.2.1 for a while, and was thinking of upgrading to 4.0.2. However, I can't find anything in the documentation about integration with IIS 5.0 (as described in the Tomcat-IIS-howto document included in the 3.2.1 distribution). Is it (still) possible to integrate it with IIS? Also, the 4.0.2 win32 distribution has a Tomcat.exe in the bin folder, but no script to deploy the catalina engine as a service. Has anyone made such a script? Thanx! -- Thomas * Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. Confidential. No liability whatsoever is accepted for any loss or damage suffered as a result of accessing this message or any attachments. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_proxy and getRemoteAddr()
Does anyone know how I can get the remote address if I am using mod_proxy? I tried mod_webapp and had too many problems - has that matured since Tomcat-4.0? What about using AJP13? mod_jk is now fully support in TC 4.0.2, with ajp13 and load-balancing support :) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: I don't get no Satisfaction by Jagger
They are threads and not processes. -Original Message- From: Moi [mailto:[EMAIL PROTECTED]] Sent: den 21 februari 2002 07:47 To: Tomcat Users List Subject: I don't get no "Satisfaction" by Jagger Dear Gurus, I've already installed Apache+Tomcat4.But in Task it they work separatly.When I saw system processes with #ps auxw Linux shows long list. So is there way to Optimize Tomcat to get full satisfaction? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.2, IIS 5.0 and NT-service
We have Tomcat 4 running and are trying to make it work with IIS 5. The how to install it as a stand-alone you got it in www.moreservlets.com/Using-Tomcat-4.html, and some people have referred me to this other document for integration, but I've got stuck with it when trying to run it as an nt_service: http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html Hope this helps Alex - Do You Yahoo!? Yahoo! Messenger! Comunicación instantánea gratis con tu gente.
Re: Tomcat 4.0.2, IIS 5.0 and NT-service
Alejandor Alcalde, me gustaría poder hablar contigo acerca de este tema: Mi dirección es [EMAIL PROTECTED] yo tambien estoy intenado instalarlo pero me encuentro con un problemilla. Graicas Moisés -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: CA guidance
Hi, -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 2:08 PM To: Tomcat Users List Subject: CA guidance Hi, I'm using jdk1.4 final and I want to use SSL with Tomcat for CLIENT-CERT authentification. I've created self-signed certificate by keytool but how I can issue certificates for my company based on this(without third party CA)? Did you try to search archives? I read the following method in list and have already posted it here several times. keytool -genkey -alias tomcat -keyalg RSA keytool -certreq -alias tomcat -file my.csr paste this into the signing authority request, you get back a cert that you paste into a new file, i.e. mySigned.cer make sure the root CA cert in you keystore or cacerts file as a trusted certificate. e.g. keytool -import -alias RootCert -file RootCertificate.cer keytool -import -trustcacerts -alias tomcat -file mySigned.cer Thanks in advice. Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
catalina.policy
Hi list, I'm using -security option when I' starting my tomcat 4.0 server. I'd like to allow a web application to access files from another web application. So I have added those lines in my catalina.policy file : grant codeBase myApp1 { permission java.security.FilePermission file:${catalina.home}/webapps/myApp2/-,read,write; }; But I have a error when I'm starting my server. Can anyone help me? thanks Aline www.visiodrome.com www.oeilpouroeil.fr
RE: Tomcat 4.0.2, IIS 5.0 and NT-service
It didn't help. The document your'er referring to shows how to deploy Tomcat 4 as a standalond webserver (for development purposes). That's not what I'm interested in. I want IIS to forward requests to Tomcat 4, exactly the same way as done in Tomcat 3.0.1. Thanx anyway. -- Thomas | -Original Message- | From: Alejandro Alcalde [mailto:[EMAIL PROTECTED]] | Sent: 21 February 2002 09:03 | To: Tomcat Users List; [EMAIL PROTECTED] | Subject: Re: Tomcat 4.0.2, IIS 5.0 and NT-service | | | | We have Tomcat 4 running and are trying to make it work with IIS | 5. The how to install it as a stand-alone you got it in | www.moreservlets.com/Using-Tomcat-4.html, and some people have | referred me to this other document for integration, but I've got | stuck with it when trying to run it as an nt_service: | http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html | | Hope this helps | | Alex | | | - | Do You Yahoo!? | Yahoo! Messenger! | Comunicación instantánea gratis con tu gente. * Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. Confidential. No liability whatsoever is accepted for any loss or damage suffered as a result of accessing this message or any attachments. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_proxy and getRemoteAddr()
GOMEZ Henri a écrit : Does anyone know how I can get the remote address if I am using mod_proxy? I tried mod_webapp and had too many problems - has that matured since Tomcat-4.0? What about using AJP13? mod_jk is now fully support in TC 4.0.2, with ajp13 and load-balancing support :) so, what do I need to make work TC 4.0.2-2, apache 1.3.22.1-7 with ajp13 ? mod_jk-1.3-1.0-1.4.0.2.i386.rpm ??? seems to fail thanks in advance -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Configuring Tomcat/apache service with mod_jk
I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I'm using a RedHat 7.1 with these RPM's: apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-2 mod_jk-1.3-1.0-1.4.0.2 # I have in my httpd.conf LoadModule jk_modulemodules/mod_jk.so When I start, my error_log says: Starting httpd: [Thu Feb 21 09:33:37 2002] [warn] Loaded DSO modules/mod_jk.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) How to recompile a RPM as said ? ## AddModule mod_jk.c Adding this directive crashes apache, it seems not to find this file, like me ( `locate mod_jk.c` matches nothing) and if I don't add this one, I can't use appropriate directives like JkWorkersFile any ideas ? Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.2, IIS 5.0 and NT-service
Look in your Tomcat directory for: /jakarta-tomcat-4.0.2/webapps/tomcat-docs/config/ajp.html A little over halfway through, right below the Apache integration section is: IIS 4.x and 5.x Introduction This section explains how to set up IIS 4.0 or newer to cooperate with Tomcat 4. Thomas Tuft Muller wrote: It didn't help. The document your'er referring to shows how to deploy Tomcat 4 as a standalond webserver (for development purposes). That's not what I'm interested in. I want IIS to forward requests to Tomcat 4, exactly the same way as done in Tomcat 3.0.1. Thanx anyway. -- Thomas | -Original Message- | From: Alejandro Alcalde [mailto:[EMAIL PROTECTED]] | Sent: 21 February 2002 09:03 | To: Tomcat Users List; [EMAIL PROTECTED] | Subject: Re: Tomcat 4.0.2, IIS 5.0 and NT-service | | | | We have Tomcat 4 running and are trying to make it work with IIS | 5. The how to install it as a stand-alone you got it in | www.moreservlets.com/Using-Tomcat-4.html, and some people have | referred me to this other document for integration, but I've got | stuck with it when trying to run it as an nt_service: | http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html | | Hope this helps | | Alex | | | - | Do You Yahoo!? | Yahoo! Messenger! | Comunicación instantánea gratis con tu gente. * Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. Confidential. No liability whatsoever is accepted for any loss or damage suffered as a result of accessing this message or any attachments. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Folders/Files hidden in Linux but visible through Tomcat/Browser
I can't see folder and files that start with a certain word in Linux. There is no . (dot) in the name. Care to give us some examples, or shall we just guess? What are you using to list them and what is the output. However, when I run tomcat the folder/files are in the directory where it is supposed to be. The files are there but they are invisible. Again, what are you using in Java to list them, and what is the output? Is this a virus? Please someone. No it isn't a virus. Viruses are something completely different. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Mapping a servlet to respond to /??????????
Donie Kelly a Ýcrit : OK I got around the problem by using an /ID/* at the end instead of the ?. Slightly more awkward but functional... Wouldn't it be nice though to be able to use regular expressions :) Thanks Donie -Original Message- From: Luke Studley [mailto:[EMAIL PROTECTED]] Sent: February 20, 2002 18:56 To: 'Tomcat Users List' Subject: RE: Mapping a servlet to respond to /?? I think if you read the Spec you can only use 2 sorts of patterns: *.xxx xxx/x/xx* I.e prefix or postfix. These are not regular expressions. I might be wrong - look at the servlet spec. Luke -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 18:48 To: 'Tomcat Users List' Subject: Mapping a servlet to respond to /?? Hi I want you map a servlet to some URL that contains an ID which is 10 digits. If nothing is specified then I want index.jsp to load. eg: servlet-mapping servlet-namemyservlet/servlet-name url-pattern/??/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list This doesn't work at all but if I type http://server/mms/ the index page loads but if I type http://server/mms/1234567890 then my servlet DOES NOT execute. Question is, can I get the servlet to load if there are exactly 10 characters? Thanks in advance Donie -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: February 20, 2002 17:52 To: 'Tomcat Users List' Subject: RE: URGENT encodeURL() java.net.URLEncoder/java.net.URLDecoder -Original Message- From: Emerson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:44 PM To: Tomcat Users List Subject: URGENT encodeURL() Please, these is really urgent... How do I encode a URL without HttpServletResponse at hand??? I need to read a URL from a service, but i have to encode it, changing spaces to %20, how do i do it??? have anyone done that Please, I really have to end this by today Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Well, i'm sorry but i won't propose any answer... I just post a question: What does exactly means this mapping ? I don't understand the /* !-- Define the Manager Servlet Mapping -- servlet-mapping servlet-nameManager/servlet-name url-pattern/*/url-pattern /servlet-mapping Maybe yu can help. Regards. Jean-Luc B :0) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_proxy and getRemoteAddr()
so, what do I need to make work TC 4.0.2-2, apache 1.3.22.1-7 with ajp13 ? mod_jk-1.3-1.0-1.4.0.2.i386.rpm ??? seems to fail the RPM are built against apache + mod_ssl. I've got no problem to use Apache 1.3.23-2.8.6 + mod_jk-1.3-1.0-1.4.0.2 mod_jk-1.3-1.0-1.4.0.2 = mod_jk for Apache 1.3, JTC 1.0, From TC 4.0.2 snapshot ;) I'm using JkMount /examples/* ajp13 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Need root mapping for servlet but want to be able to retrieve images... pls help
Hi all I'm asking this question again because I still don't have a working solution. My servlet is mapped to / as shown below. However, when I use jsp pages the images in the page are invoking a request from this servlet instead of getting the image. Anybody got a solution for this? My images are in ../context/images Thanks Donie servlet servlet-namemyservlet/servlet-name display-namemyservlet/display-name servlet-classcom.company.mm.y.myservlet/servlet-class load-on-startup50/load-on-startup /servlet servlet-mapping servlet-namemyservlet/servlet-name url-pattern//url-pattern /servlet-mapping -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
HOW TO?
Hi all I'm busy this morning with no solutions :) Anyway, we have a rack of Tomcat servers and we need to make config changes to them all. A bit daunting as there's 13 servers in the rack. I need a way to propagate the config to each server in the rack. Has anybody done this or has tomcat got any nice features I don't know about to do this. We have files in the context root which the servlets read on startup and also if they are modified (like log4j reads it's config if changed). We would rather not write scripts but keep the functionality in the WAR (ie: a java class or whatever). We want to update one server and then this triggers the broadcast of the config to other machines. It's a novel idea but how easy is it to keep simple?? Ideas or solutions are welcome Thanks Donie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Placing of jar files times 3
I have a jar file that my webapp is dependent of. I have placed this file in the jakarta-tomcat/lib directory, and that works fine, but can I place it somewhere in my webapps root directory so that only my webapp can access this jar?? I think I may have a potential naming collision going.. Are jars placed in the jakarta-tomcat/lib directory distributed with a war file I make of my webapp?? Are jars that I place in the %JAVA-HOME%/jre/lib/ext directory distributed with a war file I make of my webapp?? Thanks in advance. Øyvind Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim Norway [EMAIL PROTECTED] (+47)41422911 Norwegian University of Science and Technology -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Placing of jar files times 3
place it under : yourwebapp/WEB-INF/lib/your.jar the files you put inthere are distributed within the war files. hope it helps [EMAIL PROTECTED] -Original Message- From: Øyvind Vestavik [mailto:[EMAIL PROTECTED]] Sent: 21. febrúar 2002 10:42 To: Tomcat Users List Subject: Placing of jar files times 3 I have a jar file that my webapp is dependent of. I have placed this file in the jakarta-tomcat/lib directory, and that works fine, but can I place it somewhere in my webapps root directory so that only my webapp can access this jar?? I think I may have a potential naming collision going.. Are jars placed in the jakarta-tomcat/lib directory distributed with a war file I make of my webapp?? Are jars that I place in the %JAVA-HOME%/jre/lib/ext directory distributed with a war file I make of my webapp?? Thanks in advance. Øyvind Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim Norway [EMAIL PROTECTED] (+47)41422911 Norwegian University of Science and Technology -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Does Tomcat4.0 create automatically an InitialContext ?
Hello, I try to access to my Oracle database thanks to the new services of Tomcat4.0. I read all the interesting documentation on the Jakarta-Tomcat web site : http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html Tomcat 4 provides a JNDI InitialContext implementation instance to web applications running under it, in a manner that is compatible with those provided by a Java2 Enterprise Edition application server. Entries in this InitialContext are configured in the $CATALINA_HOME/conf/server.xml file, and may be referenced by the following elements in the web application deployment descriptor (/WEB-INF/web.xml) of your web application: and I tried the following : server.xml (located in /usr/local/jakarta-tomcat-4.0.2/conf): - Context path=/Test docBase=/home/fmo/myWebProject/ debug=4 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_test. suffix=.txt timestamp=true/ Resource name=jdbc/SIR_DB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/SIR_DB parameter nameuser/name valuefred/value /parameter parameter namepassword/name valuefred/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namedriverName/name valuejdbc:oracle:thin:@ukki:1521:develdb/value /parameter /ResourceParams /Context my web.xml (located in /home/fred/myproject/WEB-INF/): -- resource-ref descriptionResource reference to a factory for java.sql.Connection/description res-ref-namejdbc/SIR_DB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref my jsp file (located in /home/fred/myproject/): --- ... % javax.naming.Context initCtx = null; javax.naming.Context envCtx= null; // Obtain our environment naming context initCtx = new javax.naming.InitialContext(); envCtx = (javax.naming.Context) initCtx.lookup(java:comp/env); // Look up our data source ds = (oracle.jdbc.pool.OracleDataSource) envCtx.lookup(jdbc/SIR_DB); ... % Where ds is always null. So, do we have to create an initialContext, or to had a subcontext or to install an LDAP directory to manage these resources ? Does anyone could help me ? Thanks in advance, Fred. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Multiple Tomcat-servers on a single machine
Charles N. Harvey III a écrit : I have a question relating to this... We run around 6 sites each of which has a www and a java directory. We will be moving everything to tomcat very soon. The web servers I will have seperately from the tomcat servers with the ajp (mod_jk) connector connecting the machines. Apache has virtual hosts. And within each virtual host I will have a connection to the apropriate directory on the tomcat server where that site's classes/applications are located. What I want to be able to do though is restart one instance without dropping the classloader of another. Can I do that with one tomcat install and simply having multiple connectors in the server.xml? Or do I have to install tomcat multiple times? It is not a big deal if I have to install many times, it is not very large. Thanks for the help. Charlie -Original Message- From: Ion Larranaga [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 12:24 PM To: Tomcat Users List Subject: RE: Multiple Tomcat-servers on a single machine I think that you have two possibilities to do what you want: - You could set up one instance of Tomcat with X different contexts, so that each user has his own. Servlets from different users would have different physical directories, so each user would have a different working directory. This way, users would access their specific servlets with URLs: http://server/user1/servlet/yourServlet http://server/user2/servlet/yourServlet ... - But if you want the course to be more complete, including configuration of Tomcat, of course you should set up different Tomcat instances for one. These instances should listen on a different port, so they will need different configuration files (server.xml), updating the port each HttpConnector listens to. This way, the URLs to access the servlets would be: http://server:8081/user1/servlet/yourServlet http://server:8082/user2/servlet/yourServlet ... Just as long as different instances do not try to listen to the same port there should be no problem. If you will connect to Tomcat through Apache, it is basically the same, but changing the port of ajp or warp connectors (depending on the Apache module you use) Hope it helps, Ion -Mensaje original- De: Anders Gunnare [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 20 de febrero de 2002 17:49 Para: [EMAIL PROTECTED] Asunto: Multiple Tomcat-servers on a single machine Hello World, How shall I do if I would like to have multiple Tomcat-servers on a single machine? I have tried to read the doc, but I can't understand how I practically shall do the work... For example, 5 different UNIX-users shall have 5 different Tomcat-servers, one user=one Tomcat-server. The reasons is that I shall have a Servlet-course and I have one UNIX-server where we shall do our work. Best regards Anders Gunnare Frontec Sweden -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Well, well, well... The stuff is not so hard after all. I have a single Apache runnin' and a single Tomcat runnin' too. I think the best way is to make instances of Tomcat. Yu will have one binary code runnin' and many instances, on different port each..., easyly usefull by their own. I mean every user will have the opportunity to start/stop his own instance without disturbin' all the other. If it is what yu want so lets's go. Tomcat can be instantiated easily: For each user let's say in their HOME dir call user_home, just create a WebApp folder like below: $user_home/WebApp containing ./conf ./logs ./webapps ./work Just set the rights correctly for that user. In the conf folder cp the $CATALINA_HOME/conf files yu need ( server.xml, web.xml, tomcat_users.xml ...) modify conf/server.xml to set different non-used ports for yur stuff for instance : Server port=8015 shutdown=SHUTDOWN debug=0 ../.. Connector className=org.apache.catalina.connector.warp.WarpConnector port=8018 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ In the bin folder create the files to start/stop the instance: #!/bin/sh -x # - # Start script for the CATALINA Server # # $Id: shutdown.sh,v 1.1.4.1 2002/01/30 18:10:40 patrickl Exp $ # # V1.0 021902 Adapted for user1 by Admin
Sending Environment Variables from Apache to Tomcat
Hi How do I send my Apache Environment Variables from my apache server, to the tomcat servlets? I had a look on the web and found a page that seemd to imply I had to rewrite the Jserv module and part of tomcat, but I think it was refering to quite an old version of apache/tomcat I am running apache 1.3.22 Tomcat 4.0 and i'm connecting Apache to Tomcat wtih the following commands WebAppConnection warpConnection warp localhost:8000 WebAppDeploy subdesign warpConnection /subdesign/ Laurie -- == Laurie Robert Young [EMAIL PROTECTED] | [EMAIL PROTECTED] www.wildfalcon.com | www.doc.ic.ac.uk/~laurie ICQ UIN #20194782 == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Does Tomcat4.0 create automatically an InitialContext ?
Hello, I try to access to my Oracle database thanks to the new services of Tomcat4.0. I read all the interesting documentation on the Jakarta-Tomcat web site : http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html Tomcat 4 provides a JNDI InitialContext implementation instance to web applications running under it, in a manner that is compatible with those provided by a Java2 Enterprise Edition application server. Entries in this InitialContext are configured in the $CATALINA_HOME/conf/server.xml file, and may be referenced by the following elements in the web application deployment descriptor (/WEB-INF/web.xml) of your web application: and I tried the following : server.xml (located in /usr/local/jakarta-tomcat-4.0.2/conf): - Context path=/Test docBase=/home/fmo/myWebProject/ debug=4 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_test. suffix=.txt timestamp=true/ Resource name=jdbc/SIR_DB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/SIR_DB parameter nameuser/name valuefred/value /parameter parameter namepassword/name valuefred/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namedriverName/name valuejdbc:oracle:thin:@ukki:1521:develdb/value /parameter /ResourceParams /Context my web.xml (located in /home/fred/myproject/WEB-INF/): -- resource-ref descriptionResource reference to a factory for java.sql.Connection/description res-ref-namejdbc/SIR_DB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref my jsp file (located in /home/fred/myproject/): --- ... % javax.naming.Context initCtx = null; javax.naming.Context envCtx= null; // Obtain our environment naming context initCtx = new javax.naming.InitialContext(); envCtx = (javax.naming.Context) initCtx.lookup(java:comp/env); // Look up our data source ds = (oracle.jdbc.pool.OracleDataSource) envCtx.lookup(jdbc/SIR_DB); ... % Where ds is always null. So, do we have to create an initialContext, or to had a subcontext or to install an LDAP directory to manage these resources ? Does anyone could help me ? Thanks in advance, Fred. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Are there big reference of tomcat usage in production
To convince our hierarchy of using tomcat for some sites, I need to have somme reference of usage in production for tomcat (catalina or at least tomcat3) -- Alain Coetmeur -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Libraries
Interesting...however, from what I can see..I don't see two log lines, I noticed that my piece of code is executed twice. My results are consistent with code being executed twice because I see two entry points into my bean that is running behind the scenesthat is not the desired behaviour that I want to happen. Couple things that is worth noting is the following: - when I run the same piece of code in Windows 2000, IIS 5.0 and Tomcat, I don't have this problem. - when the same JSP's are run on Windows NT 4.0 Server, IIS and Tomcat, I get this error. Windows NT 4.0 is still our system of deployment. Thoughts are greatly appreciated. Paul -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 1:21 AM To: Tomcat Users List Subject: Re: JSP Tag Libraries This was not tags, but I was getting log lines showing twice just now. Then I upgraded to 1.2 beta, and also moved tomcat. When I ran tomcat again, it re-compiled everything and the double logging disappeared. I'm not sure whether to blame it on the upgrade or the re-compile, or both. Joel Rees - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 3:10 PM Subject: JSP Tag Libraries I had to sign off for a couple of days since I didn't want to overload my Account provider, however, I was wondering if anybody has any possible explanation for tags being executed two times in a row. It seems like my JSP page (or something internal to the Servlet mechanism) is calling my JSP tag library twice. In what cases could this happen? I would appreciate any info. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0 crash
Are you using 1. The JDBC-ODBC Bridge 2. Native Code these are the most common source of crashes. The JDBC-ODBC bridge is not thread safe and concurrent access will crash the JVM. Native code can have similar problems (and other memory-related problems) that will also cause a crash. The last source of a crashing problem would be a JVM bug which would require an upgrade, downgrade, or side grade, depending upon which version you are currently using. Are you running any code that calls System.exit? This would be the only way that the JVM would exit Tomcat and it not be a crash. Randy -Original Message- From: Al Tingley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 5:02 PM To: 'Tomcat User List' Subject: Tomcat 4.0 crash Hello, Has anyone had an experience with Tomcat 4.0 simply going down with no trace? No log message, no exception, ... We've seen instances where our applications are running, then Tomcat just goes away and must be restarted manually. Thanks, Al Tingley -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jakarta Tomcat 3.2.3 Windows NT Service Problem
-Original Message- From: MARSHALL,John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 7:27 PM To: [EMAIL PROTECTED] Subject: Jakarta Tomcat 3.2.3 Windows NT Service Problem wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4 wrapper.java_home=c:\jdk1.3.1 It these are the exact lines then this is your problem - you don't need the and characters. They are in the sample file to show you where to place your paths. Randy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: application object size.
I don't know of a recommendation, but there is no maximum. The Application object is stored as a map in the JVM process so you are only limited by the memory available to the JVM. Randy -Original Message- From: rob [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 10:47 PM To: [EMAIL PROTECTED] Subject: application object size. Currently I'm writing a lot of applications that attempt to avoid utilizing space in the application object. Is there a recommended and or maximum size for the application object? If not I'd like to use it for things like caching to avoid having to read in application specific data for every request. (Which in some cases requires the opening of 10-30 files (in sequence of course) just to get information to fufil the request. Thanks Rob -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
could not get a worker for name ajp12
My isapi.log file says: Thu Feb 21 13:27:44 2002] [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could not get a worker for name ajp12 Why occur that? I'm Using IIS5+tomcat 4.0.2+w2k Thanks Moisés -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SSL problems with Jakarta tomcat 4.0.1
Hi, Windows NT jdk1.3.1_01 tomcat 4.0.1 !-- Define a non-SSL HTTP/1.1 Connector on port 80 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystorePass=invoice/ /Connector After startup.bat, I look at https://localhost and it works, but when I start tomcat like a service there is message: Could not start the Apache Tomcat service on \\NewTech140 Error 2140: An internal Windows NT error occurred Any Idea? Violeta Georgieva
RE: Mapping a servlet to respond to /??????????
Well, i'm sorry but i won't propose any answer... I just post a question: What does exactly means this mapping ? I don't understand the /* !-- Define the Manager Servlet Mapping -- servlet-mapping servlet-nameManager/servlet-name url-pattern/*/url-pattern /servlet-mapping Maybe yu can help. Regards. Jean-Luc B :0) This means that any request(*) to the root directory(/) should go to the manager servlet I usually try to assign servlets to subdirectories: /manager/* This way only requests to the manager directory get sent to the manager servlet. (i.e. http://localhost/manager/list is treated the same as http://manager/someothername.html) Charlie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: could not get a worker for name ajp12
I would guess that you are using a uriworkermap.properties file derived from a Tomcat 3.x version. The legacy Ajp12 protocol is only supported in Tomcat 3.x. You should be using the Ajp13 protocol which is supported in Tomcat 4.0.2. Change ajp12 to ajp13 in your uriworkermap.properties file and I believe it should work, or at least not encounter the error you are seeing now. Cheers, Larry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 7:31 AM To: [EMAIL PROTECTED] Subject: could not get a worker for name ajp12 My isapi.log file says: Thu Feb 21 13:27:44 2002] [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could not get a worker for name ajp12 Why occur that? I'm Using IIS5+tomcat 4.0.2+w2k Thanks Moisés -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: classes visibility in the WEB-INF dir
Hi, it gives the following error trace: java.lang.NoClassDefFoundError: kitabe/SearchUtilities at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:139) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:179) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484) I tried to do the same with other classes of the package kitabe.dal.bean and it works perfectly. It looks like it's not able to find only the classes in the package kitabe. Thank's again for your help Regards, - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 7:02 PM Subject: RE: classes visibility in the WEB-INF dir Do you know if any bean or servlet in the ketabe web application successfully loads kitabe.SearchUtilities. If you are not sure, you could try: % kitabe.SearchUtilities su = new kitabe.SearchUtilities() % on a test JSP page in ketabe and see if it compiles. Cheers, Larry -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:35 PM To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, Yes, all kitabe classes are in /ketabe/WEB-INF/classes directory. Line 60 in kitabe.dal.home.AuthorHome.findByName() contain only a call for the constructor of kitabe.SearchUtilities (SearchUtilities su = new SearchUtilities();) Regards, Amine - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 5:47 PM Subject: RE: classes visibility in the WEB-INF dir Are all kitabe classes located in your /ketabe/WEB-INF/classes directory? Also, to you know what the link is between what kitabe.dal.home.AuthorHome.findByName() is doing around line 60
RE: JSP Tag Libraries
someone had a similar problem a week ago where their jsp was being called twice(and thus the filter for it also). here is the link in the archives: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg45182.html Charlie -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 7:27 AM To: Tomcat Users List Subject: RE: JSP Tag Libraries Interesting...however, from what I can see..I don't see two log lines, I noticed that my piece of code is executed twice. My results are consistent with code being executed twice because I see two entry points into my bean that is running behind the scenesthat is not the desired behaviour that I want to happen. Couple things that is worth noting is the following: - when I run the same piece of code in Windows 2000, IIS 5.0 and Tomcat, I don't have this problem. - when the same JSP's are run on Windows NT 4.0 Server, IIS and Tomcat, I get this error. Windows NT 4.0 is still our system of deployment. Thoughts are greatly appreciated. Paul -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 1:21 AM To: Tomcat Users List Subject: Re: JSP Tag Libraries This was not tags, but I was getting log lines showing twice just now. Then I upgraded to 1.2 beta, and also moved tomcat. When I ran tomcat again, it re-compiled everything and the double logging disappeared. I'm not sure whether to blame it on the upgrade or the re-compile, or both. Joel Rees - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 3:10 PM Subject: JSP Tag Libraries I had to sign off for a couple of days since I didn't want to overload my Account provider, however, I was wondering if anybody has any possible explanation for tags being executed two times in a row. It seems like my JSP page (or something internal to the Servlet mechanism) is calling my JSP tag library twice. In what cases could this happen? I would appreciate any info. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: classes visibility in the WEB-INF dir
try jar-ing the classfiles up and put the jar file into WEB-INF/lib then it should be in the classpath (seems like that's the problem here). -hope it helps -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: 21. febrúar 2002 13:40 To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, it gives the following error trace: java.lang.NoClassDefFoundError: kitabe/SearchUtilities at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(Js pServlet.java:139) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspServlet.java:179) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1106) at java.lang.Thread.run(Thread.java:484) I tried to do the same with other classes of the package kitabe.dal.bean and it works perfectly. It looks like it's not able to find only the classes in the package kitabe. Thank's again for your help Regards, - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 7:02 PM Subject: RE: classes visibility in the WEB-INF dir Do you know if any bean or servlet in the ketabe web application successfully loads kitabe.SearchUtilities. If you are not sure, you could try: % kitabe.SearchUtilities su = new kitabe.SearchUtilities() % on a test JSP page in ketabe and see if it compiles. Cheers, Larry -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:35 PM To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, Yes, all kitabe classes are in /ketabe/WEB-INF/classes directory. Line 60 in kitabe.dal.home.AuthorHome.findByName() contain only a call for the constructor of kitabe.SearchUtilities (SearchUtilities su = new
server.xml
Hi everyone, I have a couple of questions about the server.xml file. I am (want to) running Virtual Hosts with apache 1.3 and Tomcat 4.0 with webApp. I have it running but I don't think it is running correctly. First question, If I do want to run Virtual Hosts does the Service component still need to be named Tomcat-Standalone? Since I am running webApp I am not sure if this should be changed. Second Question, This kinda relates to the above. Again, if I am running Virtual Hosts, should the Top Level Container Engine name still be StandAlone? I remeber reading there were 2 other engine name besides Standalone, but for the life of me I can't find where I read it. I remeber reading that production servers should not have the Engine container as standalone, but I am not sure. Thanks for the help. -chad -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 and VAJava 4?
Hello all, Holger sent me a mail a few days ago, and I decided to post my reply to the Tomcat-user mailing list, so that other may also make use of this information. Hi Holger, I can't access my code right away, please try the following: -- start catalina --- System.setProperty(catalina.home,f:/tc4.0.1/); System.setProperty(catalina.base,f:/tc4.0.1/); Class aClass = Class.forName(org.apache.catalina.startup.Bootstrap); java.lang.reflect.Method method = null; Class[] argsClass = new Class[] { String[].class }; method = aClass.getMethod(main, argsClass); Object object = null; Object[] arguments = new Object[] { new String[] {start}}; method.invoke(object, arguments); --- stop catalina System.setProperty(catalina.home,f:/tc4.0.1/); System.setProperty(catalina.base,f:/tc4.0.1/); Class aClass = Class.forName(org.apache.catalina.startup.Bootstrap); java.lang.reflect.Method method = null; Class[] argsClass = new Class[] { String[].class }; method = aClass.getMethod(main, argsClass); Object object = null; Object[] arguments = new Object[] { new String[] {stop}}; method.invoke(object, arguments); - You need to add Bootstrap.jar and jsp-runtime.jar to the workspace classpath. For debuggin, you need to first run the app at least once, so that the %TOMCAT_HOME%/work/localhost/myapp folder gets created. To debug servlets,add %TOMCAT_HOME%/work/localhost/myapp to the workspace classpath. This will let you debug servlets within VA. To debug JSPs, switch to the debugger, go to the breakpoints tab, rightclick, select external .class file breakpoints, and choose the same work folder as the location for File in Directory. I'm giving you this info from memory, since I don't have access to my computer right now.. So please contact me in case you have problems. I have typed another document on doing all the above step by step, but again, that's in my office and not with me right now. About using Visual Age for Java as an IDE The only IDE that I've ever used is Visual Age for Java. It let's me compare versions, editions, manage releases cleanly, version resources, drop to stack frames when debugging (like going back a few methods, and resuming form there), and so much much more. Sriram 2/18/02 10:12:50 PM, Holger Morgenstern [EMAIL PROTECTED] wrote: Hi, I've red your posting regarding Tomcat + VAJava4 somewhere and you're telling that you use VAJava yourself... So maybe you can help me - I'm looking for an IDE for JSP/servlet development for Tomcat. Can I use the latest Tomcat (4) with VAJava 4?? Are there any doc's stating what to set up? Thanx a lot for your help!! Holger _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4
Hello all, I am able to use the RequestDispatcher forward control from one JSP page to another. However I am unable to forward to HTML pages. From what I read in the Servlet API spec (there's an example for /garden/ etc) and the docs for RequestDispatcher(), one should indeed be able to forward to HTML pages Here's what I have in my JSP: %getServletContext().getRequestDispatcher(/html/authhome.html).forward(request,response);% And here's what I found in the generated JSP page: --- beginepartial quote - application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); // begin [file=/notauthorized.jsp;from=(0,2);to=(0,92)] getServletContext().getRequestDispatcher(/html/authhome.html).forward(request,response); // end // HTML // begin [file=/notauthorized.jsp;from=(0,94);to=(1,0)] out.write(\r\n); // end - end partial quote Could someone please point me to what it is that I'm doing wrong ? I have only the Servlet API spec with me, and not the JSP spec, which I have not been able to download yet (Internet connection problems) Thanks, Sriram _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TomCat 4.0.2 + JDBC MSSQL2000 drivers + BASE auth = exception ?
Hello ALL Configuration: Win2000, JDK 1.3.1_02, MS SQL Server 2000 Tomcat configured to use BASE authorization... All works properly with TC 4.0 (which comes with Borland IDE). TC 4.0.2 asks (three times) for password, but after that write into the log file this: - 2002-02-20 01:43:32 JDBCRealm[Standalone]: Username manager successfully authenticated 2002-02-20 01:43:32 JDBCRealm[Standalone]: Exception performing authentication java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Can't start a cloned connection while in manual transaction mode. at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getImplConnection(Unknown Source) - Then show the access is forbidden screen :-( P.S. For all TC versions I have used this connection string in realm definition: connectionURL=jdbc:microsoft:sqlserver://testserver:1433;DatabaseName=VMSDV ;SelectMethod=cursor I guess that TC4.0.2 doesn't understand last part : SelectMethod=cursor. But how it can be possible ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
converting traditional JSPs to XML conformant JSPs
Is there a tool to convert JSP pages with traditional syntax (%@, %, etc.) to the XML conforming syntax? -Felix -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SSL problems with Jakarta tomcat 4.0.1
Hi, Windows NT jdk1.3.1_01 tomcat 4.0.1 !-- Define a non-SSL HTTP/1.1 Connector on port 80 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystorePass=invoice/ /Connector After startup.bat, I look at https://localhost and it works, but when I start tomcat like a service there is message: Could not start the Apache Tomcat service on \\NewTech140 Error 2140: An internal Windows NT error occurred Any Idea? Violeta Georgieva
Tomcat 4 Log Analyzer
Hi guy's, I'm using Tomcat 4.0.1 and would like to use Webalizer to analyze the access log file. However, Webalizer not supported multiple log file and Tomcat output log file is daily based as in file localhost_access_log.date.txt My question here, is there any way to set the output of the Tomcat to combined all together into one log file like localhost_access_log.txt without rotating the log file into daily basic. Please cc me a copy of any solution since I'm not subcribing to the tomcat-user mailing list 'coz my mail box always full the last time I subcribed. Thank you in advance. Emanduel Chan
TC4.0 to EJB
Hi, I try to connect to an EJB container within TC4.0. I can do so from within an ordinary client. I can't within TC. I receive the following exception: javax.naming.NameNotFoundException: Name ejb is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:504) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3267) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:712) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) I've set the the specific ORB parameters within my startup procedure: -Dorg.omg.CORBA.ORBInitialHost=localhost -Dorg.omg.CORBA.ORBInitialPort=1050 What do I've to do ? Thanks Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Multiple Tomcat-servers on a single machine
It may not be big on disk, but it is on memory usage! One issue to be aware of: when you restart tomcat, but not the web server, the persistent ajp13 connections that are initiated are not reset, and the next N users (where N is the number of pre-setup connections, as per the worker.NAME.cachesize= mod_jk property. The number may be higher due to system activity.) will get 500 errors. A second issue is that even though you have virtual hosts, there is still one central mod_jk properties file where you define the workers. This prevents easy automation of adding and deleting virtual servers via scripts, compared to the old mod_jserv which allowed you to define everything inside the virtual server. But one apache server with multiple virtual servers connecting to multiple tomcats is no problem, as long as you have enough memory. - Kevin -Original Message- From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 9:30 AM To: Tomcat Users List Subject: RE: Multiple Tomcat-servers on a single machine I have a question relating to this... We run around 6 sites each of which has a www and a java directory. We will be moving everything to tomcat very soon. The web servers I will have seperately from the tomcat servers with the ajp (mod_jk) connector connecting the machines. Apache has virtual hosts. And within each virtual host I will have a connection to the apropriate directory on the tomcat server where that site's classes/applications are located. What I want to be able to do though is restart one instance without dropping the classloader of another. Can I do that with one tomcat install and simply having multiple connectors in the server.xml? Or do I have to install tomcat multiple times? It is not a big deal if I have to install many times, it is not very large. Thanks for the help. Charlie -Original Message- From: Ion Larranaga [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 12:24 PM To: Tomcat Users List Subject: RE: Multiple Tomcat-servers on a single machine I think that you have two possibilities to do what you want: - You could set up one instance of Tomcat with X different contexts, so that each user has his own. Servlets from different users would have different physical directories, so each user would have a different working directory. This way, users would access their specific servlets with URLs: http://server/user1/servlet/yourServlet http://server/user2/servlet/yourServlet ... - But if you want the course to be more complete, including configuration of Tomcat, of course you should set up different Tomcat instances for one. These instances should listen on a different port, so they will need different configuration files (server.xml), updating the port each HttpConnector listens to. This way, the URLs to access the servlets would be: http://server:8081/user1/servlet/yourServlet http://server:8082/user2/servlet/yourServlet ... Just as long as different instances do not try to listen to the same port there should be no problem. If you will connect to Tomcat through Apache, it is basically the same, but changing the port of ajp or warp connectors (depending on the Apache module you use) Hope it helps, Ion -Mensaje original- De: Anders Gunnare [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 20 de febrero de 2002 17:49 Para: [EMAIL PROTECTED] Asunto: Multiple Tomcat-servers on a single machine Hello World, How shall I do if I would like to have multiple Tomcat-servers on a single machine? I have tried to read the doc, but I can't understand how I practically shall do the work... For example, 5 different UNIX-users shall have 5 different Tomcat-servers, one user=one Tomcat-server. The reasons is that I shall have a Servlet-course and I have one UNIX-server where we shall do our work. Best regards Anders Gunnare Frontec Sweden -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Loosing identify when switching to non-protected webresource
I am using the combination of Tomcat/Jboss and am having problems when using webcontainer security (using j_security_check). I have some resource protected in my web.xml (using security-contraint tag). Now when I try to acces this resource Tomcat presents me my loginform and validates my identify. If this is correct I will gain access to the secured resource. So far so good. Now I have a custom tag that verifies the role in which I am to display some pages differently. My tag nicely detects the users identity (using getUserPrincipal() method). Now when I go to a non-secured jsp-page, my tag returns null on getUserPrincipal?!?! When I switch to a secured jsp-page it does work and I receive the correct identity. I have the same behaviour in servlets. I was not expecting this behaviour and I really need to be able to determine the identity on these non-secured resources (both servlets and jsp). It there a setting that makes Tomcat behave in this way and is there a way to change this behaviour. Thanks, Erwin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
web.xml in Tomcat 4.0
I've observed that Tomcat is reading conf/web.xml in version 4.0 unlike 3.2. I have a web-inf/web.xml in my web application folder. I have my servlet registered there and have a URL-pattern mapped for it. But when I try to run the application I am getting 404 File Not Found error. Error message: Apache Tomcat/4.0.2 - HTTP Status 404 - /main Can some body please help me. Thanks. -Surya __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
I WANT System.exit(0) ;)
Hi, So tomcat4.0.2 remove the System.exit(0) call at the end of the Bootstrap class, and there are good reasons to not have it there (for embedded invocations of tomcat, etc.). I'm also aware of the possible harm of System.exit(0) and the use of SecurityManager to prevent that. Here's my situation, though: I use 3rd party code that I trust but cannot modify, and I think this code creates threads and does not interrupt/kill them appropriately. Therefore, when I shutdown tomcat, the tomcat process never dies. It stays resident in memory etc. This is not acceptable for us, so we can't use tomcat4.0.2. I know relying on System.exit(0) is not a good idea. Does anyone have other ideas, suggestions, etc on this issue? All appreciated, and thanks in advance, Yoav -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Need root mapping for servlet but want to be able to retrieve ima ges... pls help
If you are using tomcat4, you can use a filter to help with this. you can map a directory to your servlet url-pattern/myservlet/*/urlPattern then you can create a filter that maps '/*' and checks the requested URL itself to see if it should be passed on(call doChain()) or forwarded to /servlet/ to process it within the servlet(forward() without calling doChain()). Another alternative is you can map file types to a servlet url-pattern*.html/urlPattern This allows you to leave images and jsp files alone. Charlie -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 5:23 AM To: 'Tomcat Users List' Subject: Need root mapping for servlet but want to be able to retrieve ima ges... pls help Hi all I'm asking this question again because I still don't have a working solution. My servlet is mapped to / as shown below. However, when I use jsp pages the images in the page are invoking a request from this servlet instead of getting the image. Anybody got a solution for this? My images are in ../context/images Thanks Donie servlet servlet-namemyservlet/servlet-name display-namemyservlet/display-name servlet-classcom.company.mm.y.myservlet/servlet-class load-on-startup50/load-on-startup /servlet servlet-mapping servlet-namemyservlet/servlet-name url-pattern//url-pattern /servlet-mapping -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: classes visibility in the WEB-INF dir
Hi, I created a new class in the kitabe package and it's visible (works with no problem). I tried also another class in the same packege and it works fine. The problem lies only with the kitabe.SearchUtilities class. Is this a reserved word in some techno/language/...??? Regards Amine - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 7:02 PM Subject: RE: classes visibility in the WEB-INF dir Do you know if any bean or servlet in the ketabe web application successfully loads kitabe.SearchUtilities. If you are not sure, you could try: % kitabe.SearchUtilities su = new kitabe.SearchUtilities() % on a test JSP page in ketabe and see if it compiles. Cheers, Larry -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:35 PM To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, Yes, all kitabe classes are in /ketabe/WEB-INF/classes directory. Line 60 in kitabe.dal.home.AuthorHome.findByName() contain only a call for the constructor of kitabe.SearchUtilities (SearchUtilities su = new SearchUtilities();) Regards, Amine - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 5:47 PM Subject: RE: classes visibility in the WEB-INF dir Are all kitabe classes located in your /ketabe/WEB-INF/classes directory? Also, to you know what the link is between what kitabe.dal.home.AuthorHome.findByName() is doing around line 60 and kitabe.SearchUtilities? Cheers, Larry -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 11:34 AM To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, Sorry for misleading you. my directories are kitabe and com. The pb comes from the kitabe directory. the 'dir' was just for the exemple. here after the whole log file - 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploying class repositories to work directory C:\jakarta-tomcat-4.0.1\work\localhost\ketabe 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/classes12.jar to c:\www\ketabe\WEB-INF\lib\classes12.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/crimson.jar to c:\www\ketabe\WEB-INF\lib\crimson.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/log4j.jar to c:\www\ketabe\WEB-INF\lib\log4j.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/poolman.jar to c:\www\ketabe\WEB-INF\lib\poolman.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/xalan.jar to c:\www\ketabe\WEB-INF\lib\xalan.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Reloading checks are enabled for this Context 2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding random number generator class java.security.SecureRandom 2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding of random number generator has been completed 2002-02-20 15:56:16 ContextConfig[/ketabe]: Added certificates - request attribute Valve 2002-02-20 15:56:16 StandardWrapper[/ketabe:default]: Loading container servlet default 2002-02-20 15:56:16 default: init 2002-02-20 15:56:16 StandardWrapper[/ketabe:invoker]: Loading container servlet invoker 2002-02-20 15:56:16 invoker: init 2002-02-20 15:56:16 jsp: init 2002-02-20 15:57:56 jsp: init 2002-02-20 16:32:49 jsp: init 2002-02-20 16:32:49 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: kitabe/SearchUtilities at org.apache.jasper.runtime.PageContextImpl.handlePageException( PageContextImpl.java:457) at org.apache.jsp.result$jsp._jspService(result$jsp.java:407) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
Something interesting for Tomcat 4.0 users
Hi all, Here's something interesting that I discovered today. And I was able to find teh answer simply because of the Tocmat 4 docs ! I am storing objects to MySQL. When I write objects to the database, there are no problems. When I read back my objects, using rs.getObject(), I get a ClassNotFoundException. My MSQL JDBC driver is in tomcat's common/lib folder. All that I did to solve this problem was to copy this jar to my webapp's lib folder. This is because the MySQL classes are loaded by a parent level classloader, and when reading back the object, the app specific class is not visible. Could someone verify my conclusion ? Sriram _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Forwarding requests to other Services?
All, I read in the API that the path to use as a parameter to ServletRequest.getRequestDispatcher(String path) cannot extend beyond the current context. This is a problem, because I need to forward a request to a servlet that listens on a different port, and hence is part of a different service and different context. Can someone recommend a solution? Thanks in advance, Scott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.2, IIS 5.0 and NT-service
What JDK are you using? I tried 1.2.2 and could not get the AJP13 connector to work. I kept getting the following exception: java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V not found at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Switching to JDK 1.3.1 fixed the problem. Does anyone know for sure if TC4.0.2 with IIS 5.0 supports JDK 1.2.2? I'd rather use 1.2.2 since my IDE (VA Java) only supports that right now. --- David Slater [EMAIL PROTECTED] wrote: Look in your Tomcat directory for: /jakarta-tomcat-4.0.2/webapps/tomcat-docs/config/ajp.html A little over halfway through, right below the Apache integration section is: IIS 4.x and 5.x Introduction This section explains how to set up IIS 4.0 or newer to cooperate with Tomcat 4. Thomas Tuft Muller wrote: It didn't help. The document your'er referring to shows how to deploy Tomcat 4 as a standalond webserver (for development purposes). That's not what I'm interested in. I want IIS to forward requests to Tomcat 4, exactly the same way as done in Tomcat 3.0.1. Thanx anyway. -- Thomas | -Original Message- | From: Alejandro Alcalde [mailto:[EMAIL PROTECTED]] | Sent: 21 February 2002 09:03 | To: Tomcat Users List; [EMAIL PROTECTED] | Subject: Re: Tomcat 4.0.2, IIS 5.0 and NT-service | | | | We have Tomcat 4 running and are trying to make it work with IIS | 5. The how to install it as a stand-alone you got it in | www.moreservlets.com/Using-Tomcat-4.html, and some people have | referred me to this other document for integration, but I've got | stuck with it when trying to run it as an nt_service: | http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html | | Hope this helps | | Alex | | | - | Do You Yahoo!? | Yahoo! Messenger! | Comunicación instantánea gratis con tu gente. * Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. Confidential. No liability whatsoever is accepted for any loss or damage suffered as a result of accessing this message or any attachments. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: classes visibility in the WEB-INF dir
I'm baffled as to why the JSP page can compile successfully yet get a NoClassDefFoundError when it is being loaded. This would be the expected behavior if you compiled the JSP, deleted kitabe/SearchUtilities.class, restarted Catalina and accessed the page again. I'm not aware what it would take to get the same kind of error with the class file present. However, my first assumption would be that this is due to something wrong or unique with SearchUtilities and not a bug in Catalina. In the absence of any better ideas, I would try creating a new kitabe/SearchUtilities2.java with the minimal class declaration and compile it. Update the test JSP page to reference SearchUtilities2 and try it out. My assumption it that this would not show a problem (a simple test case worked for me). Next, start copying the implementation in SearchUtilities over to SearchUtilities2 and compile and try again. Hopefully at some point you can isolate some code that causes the NoClassDefFoundError to appear. If the NoClassDefFoundError doesn't appear, it would imply that there is something wrong with how SearchUtilities was or is being built. Hope this helps. Cheers, Larry -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 8:40 AM To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, it gives the following error trace: java.lang.NoClassDefFoundError: kitabe/SearchUtilities at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(Js pServlet.java:139) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspServlet.java:179) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1106) at java.lang.Thread.run(Thread.java:484) I tried to do the same with other classes of the package kitabe.dal.bean and it works perfectly. It looks like it's not able to find
RE: Forwarding requests to other Services?
You could either use response.sendRedirect to the servlet or jva.net.URLConnection to call the other servlet and then stream the output from the servlet to your response.getOutputStream. Randy -Original Message- From: Scott Shorter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 10:09 AM To: 'Tomcat Users List' Subject: Forwarding requests to other Services? All, I read in the API that the path to use as a parameter to ServletRequest.getRequestDispatcher(String path) cannot extend beyond the current context. This is a problem, because I need to forward a request to a servlet that listens on a different port, and hence is part of a different service and different context. Can someone recommend a solution? Thanks in advance, Scott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
CA guidance
Hi, I'm using jdk1.4 final and I want to use SSL with Tomcat for CLIENT-CERT authentification. I've created self-signed certificate by keytool but how I can issue certificates for my company based on this(without third party CA)? Thanks in advice. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Forwarding requests to other Services?
I was afraid you would say that. Bleah. Of course the good news about that is I realized that the other servlet then tries to forward back to the first after it's done its thing. I'll try redirects instead and see how that works. Will the redirect maintain request attributes like forward will? Thanks, Scott -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 9:31 AM To: 'Tomcat Users List' Subject: RE: Forwarding requests to other Services? You could either use response.sendRedirect to the servlet or jva.net.URLConnection to call the other servlet and then stream the output from the servlet to your response.getOutputStream. Randy -Original Message- From: Scott Shorter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 10:09 AM To: 'Tomcat Users List' Subject: Forwarding requests to other Services? All, I read in the API that the path to use as a parameter to ServletRequest.getRequestDispatcher(String path) cannot extend beyond the current context. This is a problem, because I need to forward a request to a servlet that listens on a different port, and hence is part of a different service and different context. Can someone recommend a solution? Thanks in advance, Scott -- To unsubscribe: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Catalina Clustering
Hi I'm using Tomcat 4.0.1. I've written a basic servlet and got it running and logging to console. I would like to see it running in a cluster of Catalina engines. My hope is then that a sequence of client invokations would result in some load balanced servlet fun. Can anyone point me at some 4.0.1 documentation regarding setting up clusters with Tomcat please? I can only find out-of-date stuff ... thanks Paul This message contains confidential information and is intended only for the named individual and may not be disseminated without prior permission. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, delayed in transmission, incomplete, or may contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this Message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any software or services. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: classes visibility in the WEB-INF dir ---- SOLVED
Hi, I tried to jar the classes directory and reload TC, but I have the same behavior. I also tried creating a class kitabe.SearchUtilities2 with exacty the same code as SearchUtilities (using save as). SearchUtilities2 works fine, but not SearchUtilities. I then tried to rename my new SearchUtilities2 to SearchUtilities --- THEN IT DID WORK. This is very weard :?). I used to delete all .class files and recompile to be sure that the files get recompiled, and that there is no problem related to that. If anyone of you have seen this behavior, please let us know. Thank's all for your help Amine - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 7:02 PM Subject: RE: classes visibility in the WEB-INF dir Do you know if any bean or servlet in the ketabe web application successfully loads kitabe.SearchUtilities. If you are not sure, you could try: % kitabe.SearchUtilities su = new kitabe.SearchUtilities() % on a test JSP page in ketabe and see if it compiles. Cheers, Larry -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:35 PM To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, Yes, all kitabe classes are in /ketabe/WEB-INF/classes directory. Line 60 in kitabe.dal.home.AuthorHome.findByName() contain only a call for the constructor of kitabe.SearchUtilities (SearchUtilities su = new SearchUtilities();) Regards, Amine - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 5:47 PM Subject: RE: classes visibility in the WEB-INF dir Are all kitabe classes located in your /ketabe/WEB-INF/classes directory? Also, to you know what the link is between what kitabe.dal.home.AuthorHome.findByName() is doing around line 60 and kitabe.SearchUtilities? Cheers, Larry -Original Message- From: Amine AMAR [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 11:34 AM To: Tomcat Users List Subject: Re: classes visibility in the WEB-INF dir Hi, Sorry for misleading you. my directories are kitabe and com. The pb comes from the kitabe directory. the 'dir' was just for the exemple. here after the whole log file - 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploying class repositories to work directory C:\jakarta-tomcat-4.0.1\work\localhost\ketabe 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/classes12.jar to c:\www\ketabe\WEB-INF\lib\classes12.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/crimson.jar to c:\www\ketabe\WEB-INF\lib\crimson.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/log4j.jar to c:\www\ketabe\WEB-INF\lib\log4j.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/poolman.jar to c:\www\ketabe\WEB-INF\lib\poolman.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR /WEB-INF/lib/xalan.jar to c:\www\ketabe\WEB-INF\lib\xalan.jar 2002-02-20 15:56:15 WebappLoader[/ketabe]: Reloading checks are enabled for this Context 2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding random number generator class java.security.SecureRandom 2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding of random number generator has been completed 2002-02-20 15:56:16 ContextConfig[/ketabe]: Added certificates - request attribute Valve 2002-02-20 15:56:16 StandardWrapper[/ketabe:default]: Loading container servlet default 2002-02-20 15:56:16 default: init 2002-02-20 15:56:16 StandardWrapper[/ketabe:invoker]: Loading container servlet invoker 2002-02-20 15:56:16 invoker: init 2002-02-20 15:56:16 jsp: init 2002-02-20 15:57:56 jsp: init 2002-02-20 16:32:49 jsp: init 2002-02-20 16:32:49 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: kitabe/SearchUtilities at org.apache.jasper.runtime.PageContextImpl.handlePageException( PageContextImpl.java:457) at org.apache.jsp.result$jsp._jspService(result$jsp.java:407) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
CLASSPATH Tomcat3.2.1
Hi, following problem: I want to run a servlet on tomcat3.2.1 which transforms an xml-document via xslt into an html-document which should be sent to the browser. BUT the packages jaxp.jar and parser.jar are in the tomacat/lib directory. Whith these classe ma app doesn't run. So I put new classes in my WEB-APP/lib directory. But it won't work, tomcat still uses the 'old' parser classes. How could I configure tomcat to use the classes in WEB-INF/lib first? If there is another solution for this problem, please tell me. thx in advance Christian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Catalina Clustering
http://www.ubeans.com/tomcat -Ursprüngliche Nachricht- Von: Paul Brown [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 21. Februar 2002 15:27 An: Tomcat Users List Betreff: Catalina Clustering snip/ Can anyone point me at some 4.0.1 documentation regarding setting up clusters with Tomcat please? I can only find out-of-date stuff ... snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Multiple Tomcat-servers on a single machine
Thank you Kevin and Jean-Luc. These tips were very helpful and I am now quite confidant about my future setup. Thanks. Charlie -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 7:50 PM To: 'Tomcat Users List' Subject: RE: Multiple Tomcat-servers on a single machine It may not be big on disk, but it is on memory usage! One issue to be aware of: when you restart tomcat, but not the web server, the persistent ajp13 connections that are initiated are not reset, and the next N users (where N is the number of pre-setup connections, as per the worker.NAME.cachesize= mod_jk property. The number may be higher due to system activity.) will get 500 errors. A second issue is that even though you have virtual hosts, there is still one central mod_jk properties file where you define the workers. This prevents easy automation of adding and deleting virtual servers via scripts, compared to the old mod_jserv which allowed you to define everything inside the virtual server. But one apache server with multiple virtual servers connecting to multiple tomcats is no problem, as long as you have enough memory. - Kevin -Original Message- From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 9:30 AM To: Tomcat Users List Subject: RE: Multiple Tomcat-servers on a single machine I have a question relating to this... We run around 6 sites each of which has a www and a java directory. We will be moving everything to tomcat very soon. The web servers I will have seperately from the tomcat servers with the ajp (mod_jk) connector connecting the machines. Apache has virtual hosts. And within each virtual host I will have a connection to the apropriate directory on the tomcat server where that site's classes/applications are located. What I want to be able to do though is restart one instance without dropping the classloader of another. Can I do that with one tomcat install and simply having multiple connectors in the server.xml? Or do I have to install tomcat multiple times? It is not a big deal if I have to install many times, it is not very large. Thanks for the help. Charlie -Original Message- From: Ion Larranaga [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 12:24 PM To: Tomcat Users List Subject: RE: Multiple Tomcat-servers on a single machine I think that you have two possibilities to do what you want: - You could set up one instance of Tomcat with X different contexts, so that each user has his own. Servlets from different users would have different physical directories, so each user would have a different working directory. This way, users would access their specific servlets with URLs: http://server/user1/servlet/yourServlet http://server/user2/servlet/yourServlet ... - But if you want the course to be more complete, including configuration of Tomcat, of course you should set up different Tomcat instances for one. These instances should listen on a different port, so they will need different configuration files (server.xml), updating the port each HttpConnector listens to. This way, the URLs to access the servlets would be: http://server:8081/user1/servlet/yourServlet http://server:8082/user2/servlet/yourServlet ... Just as long as different instances do not try to listen to the same port there should be no problem. If you will connect to Tomcat through Apache, it is basically the same, but changing the port of ajp or warp connectors (depending on the Apache module you use) Hope it helps, Ion -Mensaje original- De: Anders Gunnare [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 20 de febrero de 2002 17:49 Para: [EMAIL PROTECTED] Asunto: Multiple Tomcat-servers on a single machine Hello World, How shall I do if I would like to have multiple Tomcat-servers on a single machine? I have tried to read the doc, but I can't understand how I practically shall do the work... For example, 5 different UNIX-users shall have 5 different Tomcat-servers, one user=one Tomcat-server. The reasons is that I shall have a Servlet-course and I have one UNIX-server where we shall do our work. Best regards Anders Gunnare Frontec Sweden -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For
RE: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4
Hi: From Page 56 of the Servlet 2.3 spec: quote The getRequestDispatcher method takes a String argument describing a path within the scope of the ServletContext. This path must be relative to the root of the ServletContext and begin with a '/' The method uses the path to look up a servlet, wraps it with a RequestDispatcher object, and returns the resulting object. myemphasisIf no servlet can be resolved based on the given path, a RequestDispatcher is provided that returns the content for that path. /myemphasis /quote That certainly seems to indicate that what you're trying should work. Here's a couple ideas: 1- Are you sure the path is right, considering your webapp context name? If your webapp context was /app, then the requestdispatcher for /html/authhome.html would actually resolve to http://yourhost.com/app/html/authhome.html;. Is that what you're expecting? 2- Could you try renaming your html file to authhome.jsp? Or is there a specific reason that it needs to remain .html. A JSP file that contains no scripting elements will behave exactly like an html file. One possible downside is that the file needs to be translated and compiled, which will cause a slight delay to the first user that hits it, but I would think an authorization page would be accessed pretty frequently, so it wouldn't be an issue. 3- Perhaps the response.sendRedirect(String URL) functionality would be appropriate in your situation. That would sidestep the whole issue by simply letting the browser handle it. Good luck. Greg Trasuk, President StratusCom Manufacturing Systems Inc. - We use information technology to solve business problems on your plant floor. http://stratuscom.ca -Original Message- From: Sriram Narayanan [mailto:[EMAIL PROTECTED]] Sent: February 21, 2002 09:37 To: Tomcat Users List Subject: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4 Hello all, I am able to use the RequestDispatcher forward control from one JSP page to another. However I am unable to forward to HTML pages. From what I read in the Servlet API spec (there's an example for /garden/ etc) and the docs for RequestDispatcher(), one should indeed be able to forward to HTML pages Here's what I have in my JSP: %getServletContext().getRequestDispatcher(/html/authhome.htm l).forward(request,response);% And here's what I found in the generated JSP page: --- beginepartial quote - application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); // begin [file=/notauthorized.jsp;from=(0,2);to=(0,92)] getServletContext().getRequestDispatcher(/html/authhome.html ).forward(request,response); // end // HTML // begin [file=/notauthorized.jsp;from=(0,94);to=(1,0)] out.write(\r\n); // end - end partial quote Could someone please point me to what it is that I'm doing wrong ? I have only the Servlet API spec with me, and not the JSP spec, which I have not been able to download yet (Internet connection problems) Thanks, Sriram _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: CLASSPATH Tomcat3.2.1
Because Tomcat 3.2.x uses the CLASSPATH to hold the web server classes (including the XML parser) and uses the JDK delagation model (CLASSPATH classes take priority over WEB-INF classes) web applications can't have a local XML parser. This is one of the reasons both Tomcat 3.3 and Tomcat 4.x make minimal use of the CLASSPATH. If you stick with Tomcat 3.2.x, you can try replacing jaxp.jar and parser.jar with your XML/XSLT jars. Upgrading Tomcat 3.2.x's XML parser shouldn't cause a problem. In fact, Tomcat 3.2.4 includes JAXP 1.1 (i.e. jaxp.jar and crimson.jar) instead of JAXP 1.0.1 which was included with Tomcat 3.2.1. With Tomcat 3.3, you should have no problem with having your XML/XSLT jars in the WEB-INF/lib. I'm not sure with the various versions of Tomcat 4.x. I think there are a couple of manual steps that are needed to have webapp local XML parsers, but I don't have the exact details in my head yet. Cheers, Larry -Original Message- From: Christian Kurze [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 10:40 AM To: Tomcat-User Subject: CLASSPATH Tomcat3.2.1 Hi, following problem: I want to run a servlet on tomcat3.2.1 which transforms an xml-document via xslt into an html-document which should be sent to the browser. BUT the packages jaxp.jar and parser.jar are in the tomacat/lib directory. Whith these classe ma app doesn't run. So I put new classes in my WEB-APP/lib directory. But it won't work, tomcat still uses the 'old' parser classes. How could I configure tomcat to use the classes in WEB-INF/lib first? If there is another solution for this problem, please tell me. thx in advance Christian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat Servlet Setup (NEWBIE)
I apologise in advance for asking this as it has probably been covered countless times before, but I'm afraid I am a newbie who needs an answer quickly and the List Archive is currently down! I have modified the JdbcCheckup.java program so that it connects to our Oracle server using the Oracle JDBC Driver. This works perfectly well, but ideally I want to prompt for the various parameters (username, password etc) via a webpage, so I'm trying to create a servlet version of my code. The problem is that for some reason, the servlet version cannot establish a connection to the DB, even though it is virtually identical to my previous Java program. The issue appears to be with the following line of code... Class.forName (oracle.jdbc.driver.OracleDriver); ...which I assume means the program cannot find the JDBC Driver. I realise this is almost certainly a classpath issue, and my classpath is defined under /root/.bash_profile as follows... PATH=/usr/java/jdk1.3.1_02/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH:$HOME/bin:/var/tomcat4/common/lib BASH_ENV=$HOME/.bashrc USERNAME=root CLASSPATH=/usr/java/jdk1.3.1_02/classes12.zip:/var/tomcat4/webapps/james/:/var/tomcat4/common/lib/servlet.jar:/var/tomca t4/common/lib/classes12.zip:/var/tomcat4/common/lib/zip/classes/:/usr/java/jdk1.3.1_02/lib/tools.jar export USERNAME BASH_ENV PATH CLASSPATH Can anyone see where I'm going wrong? Please reply to me off-list. Thanks in advance, James -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TomCat 4 and XML parsers
Just discovered (by chance) that the on-line docs are missing this bit from the class-loader howto... This is the sort of info I wanted a while ago - I thought that the on-line docs contained the latest info?? == TomCat 4 and XML parsers Tomcat 4 itself utilizes XML parsing for three processing activities: Parsing the server.xml configuration file Parsing web.xml deployment descriptors Parsing JSP pages in XML syntax By default, the Java API for XML Processing (Version 1.1) reference implementation is utilized for all of these purposes. However, this parser is not visible to web applications -- instead, the XML parser stored in $CATALINA_HOME/server/lib is used for parsing web.xml and server.xml files, while the parser stored in $CATALINA_HOME/jasper is used for parsing JSP pages in XML syntax. To make an XML parser available to your web applications, you have several options: To utilize an XML parser in a single web application, simply include the parser's JAR files in the /WEB-INF/web.xml directory of that web application. This will work, no matter what parser might be used by Tomcat 4 internally, or by other web applications running in the same instance of Tomcat 4. If you wish to make the JAXP/1.1 reference implementation parser available to all web applications, simply move the jaxp.jar and crimson.jar files from the $CATALINA_HOME/jasper directory into the $CATALINA_HOME/lib directory. Jasper will continue to use this parser for processing JSP pages in XML syntax. If you wish to make another XML parser that is JAXP/1.1 compatible (such as Xerces 1.3.1 or later), install that parser's JAR files into the $CATALINA_HOME/lib directory, and remove jaxp.jar and crimson.jar from the $CATALINA_HOME/jasper directory. Jasper will then utilize the new XML parser as well. WARNING - Do not attempt to use a JAXP/1.0 (rather than JAXP/1.1) compliant parser with Tomcat 4. Tomcat relies on the extra features that were added in JAXP/1.1 to perform its parsing activities. WARNING - The final release of the JAXP/1.1 reference implementation includes JAR files with the sealed attribute. This causes class loading problems (most commonly visible through package sealing violation exceptions) on JDK 1.3 and later platforms. To avoid these problems, modified versions of jaxp.jar and crimson.jar are shipped with Tomcat 4. You must NOT replace these files with standard JAXP/1.1 JAR files, until a subsequent JAXP release occurs that has the sealed attribute removed. = It: a) seems to conflict with user experiences b) doesn't really tell me if I can remove xerces.jar and replace it with: i) a more up-to-date version of xerces - i.e. 2 ii) a different parser such as Aelfred Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp, mod_jk - Whats the difference
Hi Can anyone tell me what the difference is between these two - as far as I can tell in Tomcat 3 we are suppose to use mod_jk, but in tomcat 4 this has been upgraded to mod_webapp which has no documentation, and as far as I can tell does nothing other than just send the request to tomcat Laurie -- == Laurie Robert Young [EMAIL PROTECTED] | [EMAIL PROTECTED] www.wildfalcon.com | www.doc.ic.ac.uk/~laurie ICQ UIN #20194782 == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat4.0.1 Problems -use both within Batch environment variable -
Set-up M$ 98, tomcat3.3a and 4.0.2 (problems with 4.0.1)Netbeans 3. IDE. Hi , i have running tomcat3.2.2 for a while and recently downloaded tomcat3.3a which i will use for now Anyway i have also tomcat4.01 that has caused me problems as i get a connection refused error alert. I ahve created the keystore amd a self signed cert.but nevetheless no joy thus i have decided to use tomcat4.0.2 instead and try again .What i want to know is it feasible to just change the ports for tomcat4.0.2 http and hhtps as i am aware that the default 8080 will be assigned to tomcat3.3a. So while i get on with creating my web services and can potch along with configuring tomcat.4.0.2 Any suggestions Cheers Chuck Amadi IT Systems Programmer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Forwarding requests to other Services?
Response.sendRedirect sends the client web browser a Resource Temporarily Moved header (I believe its header 302). The client then makes a second request to the referred resource. If you want any parameters passed, you must put them in the redirected resource URL yourself, and you are limited to GET parameters. Example - response.sendRedirect(http://otherserver:443/path/to/other/servlet?ID=value id2=value); Also you must return from the method that sends this because all its really doing is calling setHeader. Randy -Original Message- From: Scott Shorter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 10:20 AM To: 'Tomcat Users List' Subject: RE: Forwarding requests to other Services? I was afraid you would say that. Bleah. Of course the good news about that is I realized that the other servlet then tries to forward back to the first after it's done its thing. I'll try redirects instead and see how that works. Will the redirect maintain request attributes like forward will? Thanks, Scott -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 9:31 AM To: 'Tomcat Users List' Subject: RE: Forwarding requests to other Services? You could either use response.sendRedirect to the servlet or jva.net.URLConnection to call the other servlet and then stream the output from the servlet to your response.getOutputStream. Randy -Original Message- From: Scott Shorter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 10:09 AM To: 'Tomcat Users List' Subject: Forwarding requests to other Services? All, I read in the API that the path to use as a parameter to ServletRequest.getRequestDispatcher(String path) cannot extend beyond the current context. This is a problem, because I need to forward a request to a servlet that listens on a different port, and hence is part of a different service and different context. Can someone recommend a solution? Thanks in advance, Scott -- To unsubscribe: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
HELP PLEASE!!!: JSP/Tomcat/MySQL
Hello JSP developers! I have a problem trying to connect to MySQL database when I am doing a JSP or a servlet. I think the problem has to be with Tomcat, because when I do a java application with a database connection works perfectly, so there must be Tomcat. I am working with Java j2sdk1.4.0 and Netbean as my IDE. When I compile the JSP under the IDE does not give me any errors but when I try to see the result with Tomcat 4.0 does not seem to recognize the mm.mysql driver and gives me the following errors:Generated servlet error:D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class org.apache.jsp.Connection not found.Generated servlet error:D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class org.apache.jsp.ResultSet not found.ResultSet results;It gives me more errors, related to the connection. If you are willing to help me I can send you the exception report that Tomcat generates. I would really appreciate if you help me about this issue, because I am beginnig to get frustated. Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TomCat 4 and XML parsers
Er, none of the documentation on parsers make sense! The only parser I can find is in common/lib *not* server/lib. This means that (if the docs on class loading are correct) the XML parser xerces.jar is visible to TC and all Web Apps, which might cause problems if you where to use a parser in a Web App. I guess the solution would be to move xerces.jar (the parser) to server/lib and install my parser in either /lib or the lib directory of my webapp? Try it and see I guess :) The parser docs also refer to a jasper directory which also doesn't exist! Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: HELP PLEASE!!!: JSP/Tomcat/MySQL
Can we see the code where you allocate the driver handle and the connection? /Christopher -Original Message- From: fusterjj [mailto:[EMAIL PROTECTED]] Sent: den 21 februari 2002 17:23 To: Tomcat Users List Subject: HELP PLEASE!!!: JSP/Tomcat/MySQL Hello JSP developers! I have a problem trying to connect to MySQL database when I am doing a JSP or a servlet. I think the problem has to be with Tomcat, because when I do a java application with a database connection works perfectly, so there must be Tomcat. I am working with Java j2sdk1.4.0 and Netbean as my IDE. When I compile the JSP under the IDE does not give me any errors but when I try to see the result with Tomcat 4.0 does not seem to recognize the mm.mysql driver and gives me the following errors: Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class org.apache.jsp.Connection not found. Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class org.apache.jsp.ResultSet not found. ResultSet results; It gives me more errors, related to the connection. If you are willing to help me I can send you the exception report that Tomcat generates. I would really appreciate if you help me about this issue, because I am beginnig to get frustated. Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: HELP PLEASE!!!: JSP/Tomcat/MySQL
First, you probably want to send messages in plain text and not HTML - a number of the people who can answer your question have mail readers that make it difficult to view HTML messages. Second, you need to add import statements to the top of your JSP page for the java.sql package (i.e. %@ page import=java.sql.* % Randy -Original Message- From: fusterjj [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:23 AM To: Tomcat Users List Subject: HELP PLEASE!!!: JSP/Tomcat/MySQL Hello JSP developers! I have a problem trying to connect to MySQL database when I am doing a JSP or a servlet. I think the problem has to be with Tomcat, because when I do a java application with a database connection works perfectly, so there must be Tomcat. I am working with Java j2sdk1.4.0 and Netbean as my IDE. When I compile the JSP under the IDE does not give me any errors but when I try to see the result with Tomcat 4.0 does not seem to recognize the mm.mysql driver and gives me the following errors: Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class org.apache.jsp.Connection not found. Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class org.apache.jsp.ResultSet not found. ResultSet results; It gives me more errors, related to the connection. If you are willing to help me I can send you the exception report that Tomcat generates. I would really appreciate if you help me about this issue, because I am beginnig to get frustated. Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
code!!
This is the code where I have allocated the driver, when compiled does not give me any error the problem is when I open the file after put in it in the tomcat folder. %@page contentType=text/html% html head %@ page import = java.io.* import = java.lang.* import = java.sql.* % titleJSP Page/title /head body h1JSP Example 3/h1 %-- jsp:useBean id=beanInstanceName scope=session class=package.class / --% %-- jsp:getProperty name=beanInstanceName property=propertyName / --% % String place; Connection dbconn; ResultSet results; PreparedStatement sql; try { Class.forName(org.gjt.mm.mysql.Driver); try { int latitude,longitude,easting,northing; boolean doneheading = false; dbconn = DriverManager.getConnection(jdbc:mysql://localhost:3306/prueba?user=fusterjjpassword=juanjo); place = request.getParameter(place); sql = dbconn.prepareStatement(SELECT * FROM DB1 = ' + place + '); results = sql.executeQuery(); while(results.next()) { if(! doneheading) { out.println(table border=2); doneheading = true; } latitude = results.getInt(latitude); longitude = results.getInt(longitude); easting = results.getInt(easting); northing = results.getInt(northing); out.println(trtd + latitude); out.println(td + longitude); out.println(td + easting); out.println(td + northing); } if(doneheading) { out.println(/table); } else { out.println(No matches for + place); } } catch (SQLException s) { out.println(SQL Errorbr); } } catch (ClassNotFoundException err) { out.println(Class loading error); } % /body /html
Exception report:Errors
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class org.apache.jsp.Connection not found. Connection dbconn; ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class org.apache.jsp.ResultSet not found. ResultSet results; ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:77: Class org.apache.jsp.PreparedStatement not found. PreparedStatement sql; ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:85: Undefined variable or class name: DriverManager dbconn = DriverManager.getConnection(jdbc:mysql://localhost:3306/prueba?user=fusterjjpassword=juanjo); ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:114: Class org.apache.jsp.SQLException not found. catch (SQLException s) ^ 5 errors, 1 warning at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:536)
RE: code!!
I'm not sure if it matters, but have you tried rewriting the code with the following: %@ page import = java.io.*, java.sql.* % in place of the page element defined below? I've never seen anyone split up imports into different statements. Also, as a side note, you don't need to import java.lang. Bill Dimmick Hiddenmind Technology -Original Message- From: fusterjj [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:32 AM To: 'Tomcat Users List' Subject: code!! This is the code where I have allocated the driver, when compiled does not give me any error the problem is when I open the file after put in it in the tomcat folder. %@page contentType=text/html% html head %@ page import = java.io.* import = java.lang.* import = java.sql.* % titleJSP Page/title /head body h1JSP Example 3/h1 %-- jsp:useBean id=beanInstanceName scope=session class=package.class / --% %-- jsp:getProperty name=beanInstanceName property=propertyName / --% % String place; Connection dbconn; ResultSet results; PreparedStatement sql; try { Class.forName(org.gjt.mm.mysql.Driver); try { int latitude,longitude,easting,northing; boolean doneheading = false; dbconn = DriverManager.getConnection(jdbc:mysql://localhost:3306/prueba?user=fusterj jpassword=juanjo); place = request.getParameter(place); sql = dbconn.prepareStatement(SELECT * FROM DB1 = ' + place + '); results = sql.executeQuery(); while(results.next()) { if(! doneheading) { out.println(table border=2); doneheading = true; } latitude = results.getInt(latitude); longitude = results.getInt(longitude); easting = results.getInt(easting); northing = results.getInt(northing); out.println(trtd + latitude); out.println(td + longitude); out.println(td + easting); out.println(td + northing); } if(doneheading) { out.println(/table); } else { out.println(No matches for + place); } } catch (SQLException s) { out.println(SQL Errorbr); } } catch (ClassNotFoundException err) { out.println(Class loading error); } % /body /html -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Exception report:Errors
hello, you need to import the sql classes you are using. this is a user error, there is no problem with tomcat. matt fusterjj wrote: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class org.apache.jsp.Connection not found. Connection dbconn; ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class org.apache.jsp.ResultSet not found. ResultSet results; ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:77: Class org.apache.jsp.PreparedStatement not found. PreparedStatement sql; ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:85: Undefined variable or class name: DriverManager dbconn = DriverManager.getConnection(jdbc:mysql://localhost:3306/prueba?user=fusterjjpassword=juanjo); ^ An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp Generated servlet error: D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:114: Class org.apache.jsp.SQLException not found. catch (SQLException s) ^ 5 errors, 1 warning at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
RE: Tomcat 4.0.2, IIS 5.0 and NT-service
At Java API documentation, you can see that in class java.net.Socket, the method setKeepAlive is marked as since 1.3, so it's clear that it won't work in JDK1.2.2 Have you tried using JDK1.2.2 to compile the classes in your IDE but using JDK1.3.1 to run Tomcat? Maybe it's a bit more difficult to setup the complete environment, but I think it should work fine. Hope it helps, Ion -Mensaje original- De: Adrian Prezioso [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 21 de febrero de 2002 16:15 Para: Tomcat Users List Asunto: Re: Tomcat 4.0.2, IIS 5.0 and NT-service What JDK are you using? I tried 1.2.2 and could not get the AJP13 connector to work. I kept getting the following exception: java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V not found at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Switching to JDK 1.3.1 fixed the problem. Does anyone know for sure if TC4.0.2 with IIS 5.0 supports JDK 1.2.2? I'd rather use 1.2.2 since my IDE (VA Java) only supports that right now. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp, mod_jk - Whats the difference
Laurie It's not strictly true to say that mod_webapp has no documentation. I'm mailing you the zipfile called webapp-module-1.0-tc40-windows.zip that I obtained from the Jakarta site relating to Tomcat 4.0.1 - I hope this might offer you some guidance. Regards Tim Cooke At 16:00 21/02/02 +, you wrote: Hi Can anyone tell me what the difference is between these two - as far as I can tell in Tomcat 3 we are suppose to use mod_jk, but in tomcat 4 this has been upgraded to mod_webapp which has no documentation, and as far as I can tell does nothing other than just send the request to tomcat Laurie -- == Laurie Robert Young [EMAIL PROTECTED] | [EMAIL PROTECTED] www.wildfalcon.com | www.doc.ic.ac.uk/~laurie ICQ UIN #20194782 == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
dbxml with tomcat
This may not be the right forum, but... System prop: OS: Win2000pro ServletContainer: Tomcat4.0.1 (Standalone) db Server : dbxml 1.0b4 I have some servlets collection info from xml-files stored in dbxml/xindice via XML:DB api. To get these servlet running and accepting XMLDBException and other classes from the api implementation shipped with dbxml by Tomcat I have placed the 'dbXML.jar' and the 'xmldb.jar' in {JAVA-HOME}/jre/lib/ext. The problem is that as soon as the dbXML.jar is in this directory the bat files shipped with dbxml don't work anymore. (No problems with 'xmldb.jar', though, but I need them both..) I can't start or shutdown the db server and I don't have access to the command tools. But the db server itself seems to be running smoothly if it is already started before i add the 'dbxml.jar' to {JAVA-HOME}/jre/lib/ext. Has anyone had any experience with this, and does anyone have a workaround for it?? Or is this just a bug i have to live with? I have tried to place these files in the 'jakarta-tomcat/lib' directory and also in the 'jakarta-tomcat/common/lib'directory, but that didn't work at all. Tomcat still trew javax.ServletException when it didn't find them in the {JAVA-HOME}/jre/lib/ext... Hope someone can enlighten me.. Øyvind Vestavik Øvre M=F8llenberggt 44b 7014 Trondheim [EMAIL PROTECTED] 41422911 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Class loading error
I have changed the import statement, and now appears the HTML text which says: JSP Example3, but it also says: Class loading error. What does mean
RE: code!!
I'm not sure if it matters, but have you tried rewriting the code with the following: %@ page import = java.io.*, java.sql.* % in place of the page element defined below? I've never seen anyone split up imports into different statements. Those aren't different statements - they are just separated by a newline in the single page directive. I can't remember offhand if you are allowed more than one page directive, but I think so, so even if they were written as separate import statements I don't think it'd be a problem. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: code!!
From fusterjj's code!!: %@ page import = java.io.* import = java.lang.* import = java.sql.* % These are three distinct import directives, not one import delimited by three newlines. Such a statement would look like: %@ page import = java.io.*, java.sql.* % I checked the JSP syntax page for JSP1.2, and it does seem that only one import statement is supported per page tag. I don't know about multiple page tags... Bill -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:25 AM To: Tomcat Users List Subject: RE: code!! I'm not sure if it matters, but have you tried rewriting the code with the following: %@ page import = java.io.*, java.sql.* % in place of the page element defined below? I've never seen anyone split up imports into different statements. Those aren't different statements - they are just separated by a newline in the single page directive. I can't remember offhand if you are allowed more than one page directive, but I think so, so even if they were written as separate import statements I don't think it'd be a problem. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Tag Libraries
ThanksI am afraid that this didn't work for me. It seems like all my tag bodies are called twice. I have some logging enabled and I see that in one tag for example, I have: doStartTag() doAfterBody() doEndTag() doStartTag() doAfterBody() doEndTag() I want the tag to go through the sequence once, not twice. The page itself doesn't seem to be be called twice, but rather the tag itself. Why is this? Is there anybody who helped design any JSP tag libraries have any insight as to why this would happen? Thanks...any help would be appreciated. Paul -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 8:40 AM To: 'Tomcat Users List' Subject: RE: JSP Tag Libraries someone had a similar problem a week ago where their jsp was being called twice(and thus the filter for it also). here is the link in the archives: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg45182.html Charlie -Original Message- From: Pavel Brun [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 7:27 AM To: Tomcat Users List Subject: RE: JSP Tag Libraries Interesting...however, from what I can see..I don't see two log lines, I noticed that my piece of code is executed twice. My results are consistent with code being executed twice because I see two entry points into my bean that is running behind the scenesthat is not the desired behaviour that I want to happen. Couple things that is worth noting is the following: - when I run the same piece of code in Windows 2000, IIS 5.0 and Tomcat, I don't have this problem. - when the same JSP's are run on Windows NT 4.0 Server, IIS and Tomcat, I get this error. Windows NT 4.0 is still our system of deployment. Thoughts are greatly appreciated. Paul -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 1:21 AM To: Tomcat Users List Subject: Re: JSP Tag Libraries This was not tags, but I was getting log lines showing twice just now. Then I upgraded to 1.2 beta, and also moved tomcat. When I ran tomcat again, it re-compiled everything and the double logging disappeared. I'm not sure whether to blame it on the upgrade or the re-compile, or both. Joel Rees - Original Message - From: Pavel Brun [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 3:10 PM Subject: JSP Tag Libraries I had to sign off for a couple of days since I didn't want to overload my Account provider, however, I was wondering if anybody has any possible explanation for tags being executed two times in a row. It seems like my JSP page (or something internal to the Servlet mechanism) is calling my JSP tag library twice. In what cases could this happen? I would appreciate any info. Thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Class loading error
Whoa, there. Read your code: you're catching a ClassNotFoundException and printing out Class loading error. if it occurs. That message comes from your code, not Tomcat. Find the line that throws that exception, and I bet you'll find the class you don't have in the ClassLoader. From looking at your code, my guess would be that you don't have the MySQL jar in your WEB-INF/lib directory. Bill -Original Message- From: fusterjj [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:51 AM To: 'Tomcat Users List' Subject: Class loading error I have changed the import statement, and now appears the HTML text which says: JSP Example3, but it also says: Class loading error. What does mean -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2
I can get to the servlets on port 8080. How do I change it to use port 80, while still using IIS on port 80? The Redirector.dll is in place and functioning. AJP13 is functioning, I think. Please help! Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2
in the server.xml file : /tomcat/conf/ ** /francenet.fr/j-y ciccoli - Original Message - From: Bigelow, Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:44 PM Subject: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 I can get to the servlets on port 8080. How do I change it to use port 80, while still using IIS on port 80? The Redirector.dll is in place and functioning. AJP13 is functioning, I think. Please help! Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: code!!
I would change it to : %page import=java.io.* % %page import=java.lang.* % %page import=java.sql.* % and also check that your driver jar file is in the classpath or if you are using tomcat 4.0.X in the common/lib directory. Jeff -Original Message- From: Dimmick, Bill [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:38 AM To: 'Tomcat Users List' Subject: RE: code!! From fusterjj's code!!: %@ page import = java.io.* import = java.lang.* import = java.sql.* % These are three distinct import directives, not one import delimited by three newlines. Such a statement would look like: %@ page import = java.io.*, java.sql.* % I checked the JSP syntax page for JSP1.2, and it does seem that only one import statement is supported per page tag. I don't know about multiple page tags... Bill -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:25 AM To: Tomcat Users List Subject: RE: code!! I'm not sure if it matters, but have you tried rewriting the code with the following: %@ page import = java.io.*, java.sql.* % in place of the page element defined below? I've never seen anyone split up imports into different statements. Those aren't different statements - they are just separated by a newline in the single page directive. I can't remember offhand if you are allowed more than one page directive, but I think so, so even if they were written as separate import statements I don't think it'd be a problem. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: code!!
These are three distinct import directives, not one import delimited by three newlines. I apologise, I see what you mean - and said - three *imports* not three page directives. You are right about only import in a page directive, so I think your diagnosis was correct. I, on the other hand, will spend a day programming in Visual Basic in order to atone for my skim-reading. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2
I'm sorry. I didn't get all the message. Mark -Original Message- From: jean-yves ciccoli [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 8:48 AM To: Tomcat Users List Subject: Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 in the server.xml file : /tomcat/conf/ ** /francenet.fr/j-y ciccoli - Original Message - From: Bigelow, Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:44 PM Subject: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 I can get to the servlets on port 8080. How do I change it to use port 80, while still using IIS on port 80? The Redirector.dll is in place and functioning. AJP13 is functioning, I think. Please help! Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2
Yes the redirector.dll is in place and functioning and has been. My problem is that when I try to access the servlet without the port 8080 I get a 404 page not found error. Mark -Original Message- From: Frederic Calvo [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 9:09 AM To: Tomcat Users List Subject: Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 This file is for Tomcat 4.0.1. Anyway, i've tried it with Tomcat 4.0.2 and it works well. Just replace the isapi_redirect.dll by isapi_redirector.dll. Good luck. - Original Message - From: Bigelow, Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:44 PM Subject: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 I can get to the servlets on port 8080. How do I change it to use port 80, while still using IIS on port 80? The Redirector.dll is in place and functioning. AJP13 is functioning, I think. Please help! Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2
The url may be not correct. Try this : http://localhost/examples/jsp/index.html;. You can replace localhost by tour server name or your server IP adress. - Original Message - From: Bigelow, Mark [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 6:05 PM Subject: RE: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 Yes the redirector.dll is in place and functioning and has been. My problem is that when I try to access the servlet without the port 8080 I get a 404 page not found error. Mark -Original Message- From: Frederic Calvo [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 9:09 AM To: Tomcat Users List Subject: Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 This file is for Tomcat 4.0.1. Anyway, i've tried it with Tomcat 4.0.2 and it works well. Just replace the isapi_redirect.dll by isapi_redirector.dll. Good luck. - Original Message - From: Bigelow, Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:44 PM Subject: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 I can get to the servlets on port 8080. How do I change it to use port 80, while still using IIS on port 80? The Redirector.dll is in place and functioning. AJP13 is functioning, I think. Please help! Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: web.xml in Tomcat 4.0 -- HELP
No body replied to this yet .. I'd like to explain it again and see if some body can help me. I have a web application running perfectly fine with Tomcat 3.2.1. When I upgrade to 4.0.2 I couldn't run that. After installing 4.0.2, I've added a servlet context for my web application in CATALINA_HOME/conf/server.xml and registered my servlet (servlet name: MainController) in WEBAPP/Web-Inf/web.xml. I've also added a url-pattern for it. After all that and restarting tomcat, I've tried to access that servlet by localhost:8080/testwebapp/main - I'm getting a response 404 error. The error is some thing like this: -- Apache Tomcat/4.0.2 - HTTP Status 404 - /main type: Status report message: /main description: The requested resource (/main) is not available. --- What is that I'm missing? Can some body please help ... -Surya --- Surya Suravarapu [EMAIL PROTECTED] wrote: I've observed that Tomcat is reading conf/web.xml in version 4.0 unlike 3.2. I have a web-inf/web.xml in my web application folder. I have my servlet registered there and have a URL-pattern mapped for it. But when I try to run the application I am getting 404 File Not Found error. Error message: Apache Tomcat/4.0.2 - HTTP Status 404 - /main Can some body please help me. Thanks. -Surya __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2
Maybe I'm wrong and maybe I just misunderstood, but I think your os will prevent you from having 2 applications listening to the same port. Thats why you get the 404 http error. The request will go to the application that was first to bind to the port, i think. Øyvind Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim [EMAIL PROTECTED] 41422911 On Thu, 21 Feb 2002, Bigelow, Mark wrote: I can get to the servlets on port 8080. How do I change it to use port 80, while still using IIS on port 80? The Redirector.dll is in place and functioning. AJP13 is functioning, I think. Please help! Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2
It sounds like your problem is that the redirect dll doesn't know about your servlet. If you don't refer to the servlet as /myApp/servlet/myServlet but rather as /myApp/myServlet then you must include a mapping to that servlet in your uriworkermap.properties like: /myApp/myServlet=$(default.worker) -Original Message- From: Bigelow, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 6:05 PM To: 'Tomcat Users List' Subject: RE: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 Yes the redirector.dll is in place and functioning and has been. My problem is that when I try to access the servlet without the port 8080 I get a 404 page not found error. Mark -Original Message- From: Frederic Calvo [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 9:09 AM To: Tomcat Users List Subject: Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 This file is for Tomcat 4.0.1. Anyway, i've tried it with Tomcat 4.0.2 and it works well. Just replace the isapi_redirect.dll by isapi_redirector.dll. Good luck. - Original Message - From: Bigelow, Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:44 PM Subject: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2 I can get to the servlets on port 8080. How do I change it to use port 80, while still using IIS on port 80? The Redirector.dll is in place and functioning. AJP13 is functioning, I think. Please help! Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: web.xml in Tomcat 4.0 -- HELP
Your question is missing what the Tomcat logs are saying. If I had to make a blind guess, you have the parameters in web.xml out of order, which is causing Tomcat to not load the web.xml file (and thus causing the 404 error). Randy -Original Message- From: Surya Suravarapu [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 12:16 PM To: Tomcat Users List Subject: Re: web.xml in Tomcat 4.0 -- HELP No body replied to this yet .. I'd like to explain it again and see if some body can help me. I have a web application running perfectly fine with Tomcat 3.2.1. When I upgrade to 4.0.2 I couldn't run that. After installing 4.0.2, I've added a servlet context for my web application in CATALINA_HOME/conf/server.xml and registered my servlet (servlet name: MainController) in WEBAPP/Web-Inf/web.xml. I've also added a url-pattern for it. After all that and restarting tomcat, I've tried to access that servlet by localhost:8080/testwebapp/main - I'm getting a response 404 error. The error is some thing like this: -- Apache Tomcat/4.0.2 - HTTP Status 404 - /main type: Status report message: /main description: The requested resource (/main) is not available. --- What is that I'm missing? Can some body please help ... -Surya --- Surya Suravarapu [EMAIL PROTECTED] wrote: I've observed that Tomcat is reading conf/web.xml in version 4.0 unlike 3.2. I have a web-inf/web.xml in my web application folder. I have my servlet registered there and have a URL-pattern mapped for it. But when I try to run the application I am getting 404 File Not Found error. Error message: Apache Tomcat/4.0.2 - HTTP Status 404 - /main Can some body please help me. Thanks. -Surya __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Error page servlet and Filter invocation
On Wed, 20 Feb 2002, Claude Montpetit wrote: Date: Wed, 20 Feb 2002 22:01:39 -0500 From: Claude Montpetit [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Error page servlet and Filter invocation I created a servlet that handles errors. This servlet gets executed when specific errors occur, as defined in my web.xml file. The problem: I mapped a filter to this servlet and the filter NEVER execute when the servlet is invoked by an error (following a sendError call). But if I call the error servlet directly (no error, no sendError), the filter executes normally. Has anyone come across this behavior? Yes ... it's what the servlet spec requires. Filters are only invoked on the *original* request, before the service() method of your servlet is called. They are *not* executed in front of error servlets, or (for that matter) servlets that are invoked via a request dispatcher. Claude Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
error running filter in tomcat4.0.2
Hi, I am running tomcat4.0.2 on winnt. I tried to run xmlfilter(http://www.servletsuite.com/) and got an error during startup. The author suggested to get a patch for tomcat. Any ideas? 2002-02-21 11:13:21 StandardContext[/xmlfilter]: Exception starting filter XMLFilter java.lang.NoClassDefFoundError: javax/servlet/Config at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:314) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3064) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3382) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) 2002-02-21 11:13:21 StandardContext[/xmlfilter]: Context startup failed due to previous errors ct __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: web.xml in Tomcat 4.0 -- HELP
Randy, You are right, Tomcat could not find my application's web.xml file. Is there any sample web.xml available that I can look at, in case I'm missing or misplacing any parameters in it? Please look in to the error logs: 2002-02-21 07:36:25 WebappLoader[/testwebapp]: Deploying class repositories to work directory E:\Tomcat4\work\localhost\testwebapp 2002-02-21 07:36:25 StandardManager[/testwebapp]: Seeding random number generator class java.security.SecureRandom 2002-02-21 07:36:25 StandardManager[/testwebapp]: Seeding of random number generator has been completed 2002-02-21 07:36:25 ContextConfig[/testwebapp]: Missing application web.xml, using defaults only 2002-02-21 07:36:25 StandardWrapper[/testwebapp:default]: Loading container servlet default 2002-02-21 07:36:25 default: init 2002-02-21 07:36:25 StandardWrapper[/testwebapp:invoker]: Loading container servlet invoker 2002-02-21 07:36:25 invoker: init 2002-02-21 07:36:25 jsp: init 2002-02-21 07:36:25 Internal Error: File /WEB-INF/web.xml not found 2002-02-21 07:36:25 StandardWrapper[/testwebapp:MainController]: Marking servlet MainController as unavailable 2002-02-21 07:36:26 StandardContext[/testwebapp]: Servlet /testwebapp threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class com.testwebapp.servlets.maincontroller.MainController or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.lang.ClassNotFoundException: com.testwebapp.servlets.maincontroller.MainController at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Thanks. -Surya --- Randy Layman [EMAIL PROTECTED] wrote: Your question is missing what the Tomcat logs are saying. If I had to make a blind guess, you have the parameters in web.xml out of order, which is causing Tomcat to not load the web.xml file (and thus causing the 404 error). Randy -Original Message- From: Surya Suravarapu [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 12:16 PM To: Tomcat Users List Subject: Re: web.xml in Tomcat 4.0 -- HELP No body replied to this yet .. I'd like to explain it again and see if some body can help me. I have a web application running perfectly fine with Tomcat 3.2.1. When I upgrade to 4.0.2 I couldn't run that. After installing 4.0.2, I've added a servlet context for my web application in CATALINA_HOME/conf/server.xml and registered my servlet (servlet name: MainController)
still suffering character-encoding woes
Hi all, I've read with interest the recent threads about how to get posted form data to be handled properly containing special alphabetic characters used in many european languages. I've tried every suggestion that I saw in the threads to no avail, and am starting to tear my hair out. A quick summary: My development environment is Apache1.3.20, Tomcat 4.0.1, DB/2 on Windows2000, locale = Norwegian My production environment switches the database to Postgres and OS to Linux, environment has LANG=C and LC_CTYPE=iso-8859-1 Basically, on my development environment, everything works perfectly- i can post data containing norwegian characters and they are stored properly in the database and logged properly in the log files. On the production server, its '?' everywhere. Now to fix the problem, I've tried the following steps, in sequence: 1) I cut apache out of the loop and accessed tomcat directly to see if it interfered at all- no change 2) I added META HTTP-EQUIV=Content-Type CONTENT=text/html;charset=UTF-8 to inside my html-head tags 3) I added %@ page contentType=text/html; charset=UTF-8 to my JSP pages 4) Finally, I tried doing request.setCharacterEncoding(UTF-8) at the top of my doGet and doPut methods None of the first 3 steps helped- still that '?'- I should point out that if I did %=request.getParameter(someparam)% in my JSP page I saw my special characters echoed back; somehow the corruption of my post data happens only when I write the data to a log file or into a database. And when I tried step 4, suddenly all of my strings got terminated whenever a special character occured- in other words, instead of a '?' it was as if the string was terminated by a '\0'. Can anyone help?!?! Thanks! Best regards, Richard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]