Re: Apache restart
rf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have configured tomcat behind apache web server using mod_jk. Why is it that every time I restart tomcat I have to restart Apache too? You shouldn't (I never do :). AFAIK, every mod_jk after 1.0-M2 handles this fine. If you want a real answer, I'd suggest offering more info (starting with version #s). Thanks rf __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache restart
... I have configured tomcat behind apache web server using mod_jk. Why is it that every time I restart tomcat I have to restart Apache too? You shouldn't (I never do :). AFAIK, every mod_jk after 1.0-M2 handles this fine. If you want a real answer, I'd suggest offering more info (starting with version #s). Apache Web server - 1.3.22 Tomcat - 4.0.6 mod_jk - mod_jk-1.3-eapi.so any clues? Thanks rf __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
UnsupportedDataTypeException
Hi... I've a Java application that send mails through mail.jar library. With Apache, my application works fine but with Tomcat 4.1.18 I obtain the following exception: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/x-pkcs7-signature: name=smime.p7s Can somebody help me?? I've reviewed the code a lot of time but I don't find the error. Regards for all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with posting form data
In a HTML form which is sent by post method I have hidden item with some value set and I can't to process it with Tomcat, the value of request.getParameter (xxx) is null. From some computers with same browser (IE 5) it works, from some not. Thanks for advise, Pet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restricting servlet access
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm running tomcat 4.1.18 under SUN j2sdk1.4.1 on linux. I'm looking for an easy way to restrict access to servlets based on connectors. For example, I have a servlet X. I only want X to be accessed through connector Y. Is there a way to only deploy that servlet on connector Y? A solution using web.xml/server.xml is fine, but if anyone knows how to do this programatically (I embed tomcat) then that too would be cool. Thanks, Will - -- William Wilson Applied Generics Ltd Pentlands Science Park Bush Loan, Penicuik Scotland, EH26 OPZ [EMAIL PROTECTED] Tel: +44 870 240 3694 Fax: +44 870 706 5818 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+ZHdrNAhBZq2mRiYRAme/AJ97UQaC8MPshpuG2qLWgxnOS61QFACfXa1h Tz0Dtxr7LJClanc+R2Lh2no= =JE/0 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restricting servlet access
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm running tomcat 4.1.18 under SUN j2sdk1.4.1 on linux. I'm looking for an easy way to restrict access to servlets based on connectors. For example, I have a servlet X. I only want X to be accessed through connector Y. Is there a way to only deploy that servlet on connector Y? A solution using web.xml/server.xml is fine, but if anyone knows how to do this programatically (I embed tomcat) then that too would be cool. Thanks, Will - - -- William Wilson Applied Generics Ltd Pentlands Science Park Bush Loan, Penicuik Scotland, EH26 OPZ [EMAIL PROTECTED] Tel: +44 870 240 3694 Fax: +44 870 706 5818 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+ZIE8NAhBZq2mRiYRApp+AKCQvJM8q/+JCjxx6HE4ei8dLpwo1wCgmcwE FNEvSj+Fv1xRhduhY1DOIEA= =RS+Z -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bypassing security-constraint in 4.0.2
Hi, If I have the following configuration: security-constraint web-resource-collection web-resource-namesite/web-resource-name url-pattern/secret/*/url-pattern /web-resource-collection auth-constraint role-nameadministrator/role-name /auth-constraint /security-constraint I get prompted for a username and password for this url: www.testing.com/secret/ but not for this: www.testing.com//secret was this a known bug, I couldn't find much about it and thought it may be quicker to ask you guys? Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: forward request to static html page loses path for included images?
At 11:57 PM 3/3/03 -0800, you wrote: Ray Tayek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 01:04 PM 3/3/03 -0500, you wrote: Ray Tayek wrote: hi, i am forwarding a request to a static html page that has some pictures included using IMG SRC=images/help1.jpeg ... and using request.getRequestDispatcher(/help.html).forward(request,response);. the static html file file comes back sans images. ... According to SRV.8.4 of the Servlet 2.3 spec, The Forward Method: The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher. The only exception to this is if the RequestDispatcher ... Are you using getNamedDispatcher? ... i was using getRequestDispatcher(). but i have changed that to use redirect (which works, but may cause me some problems later with session - ... Another way to go is to use absolute paths to your image files (e.g. img src=/feb/images/help1.jpeg) and continue to use rd.forward. At the risk of breaking some very old browsers, you could also use the base href=/feb/ html tag and keep your relative image paths. i could do that and may if i need to go back to using forward. i found some sort of answer in jason hunters book (2nd edition) on page 375. something about tomcat and relative links being broken ... The problem is that the browser issues a seperate request for the image files as it is parsing the html. Since the browser has no way of knowing that the request is the result of a 'forward', it resolves the relative URL (i.e. images/help1.jpeg) against the URL that it made the request for. ... got it! thanks for the info. --- ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Bypassing security-constraint in 4.0.2
Don't know probably it's bug of 4.0.2 it's a very old release... I've 4.0.4, I tried bypassing the security to test if I'm affected too but it always ask me authentication I suggest that u upgrade to a newer release of the server Simone -Messaggio originale- Da: Paul Downs [mailto:[EMAIL PROTECTED] Inviato: martedi 4 marzo 2003 12.03 A: Tomcat Users List Oggetto: Bypassing security-constraint in 4.0.2 Hi, If I have the following configuration: security-constraint web-resource-collection web-resource-namesite/web-resource-name url-pattern/secret/*/url-pattern /web-resource-collection auth-constraint role-nameadministrator/role-name /auth-constraint /security-constraint I get prompted for a username and password for this url: www.testing.com/secret/ but not for this: www.testing.com//secret was this a known bug, I couldn't find much about it and thought it may be quicker to ask you guys? Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: Bypassing security-constraint in 4.0.2
* Simone Chiaretta ([EMAIL PROTECTED]) wrote : Don't know probably it's bug of 4.0.2 it's a very old release... I've 4.0.4, I tried bypassing the security to test if I'm affected too but it always ask me authentication I suggest that u upgrade to a newer release of the server Hi, Sadly that has severe implications for me in this instance. Oh well I have replaced all the sites affected with .htaccess authentication for now. Does anyone know what jar file controls this? Perhaps I can use a really kludgy fix for now by just upgrading the one aspect? Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Persistent Cookies
I did what you said, and it still doesnt work.. I don't think it's about setting a domain, because setDomain() method is just to tell the cookie to which sites he will return, but my cookie is not even being created... -Mensagem original- De: Filip Hanik [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 4 de Março de 2003 2:13 Para: Tomcat Users List Assunto: RE: Persistent Cookies you have to set the cookie domain, so that the domain matches the URL your outside users access it with http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.Cookie.h tml#setDomain(javax.servlet.http.String) Filip -Original Message- From: Bruno Cardoso [mailto:[EMAIL PROTECTED] Sent: Sunday, March 03, 2002 6:07 PM To: [EMAIL PROTECTED] Subject: Persistent Cookies Hi, I made a simple login/logout system with persistent cookies, the problem is that it only works with me (localhost), every time someone try to access my website and login, the cookie is not created for them. I have made a test with an example I saw in the book Core Servlets and JSP with persistent and session cookies, and it also works for me, but for outsiders it will only work for the session cookies. My question is how can i make tomcat to allow everyone to create persistant cookies that are saved in their discs? Thank you guys Peace! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Scalability
Haytham Samad wrote: Anything on can do to set Tomcat up to scale? I am running Tomcat as a service on Win 2K. You could start by running it on Linux instead to save all that memory and processor power that Windows consumes :) But seriously, I'm interested in hearing how Tomcat can scale, too. It seems like there is an awful lot loaded into memory when it's launched, and all my stack traces produce an impressively long chain of method calls: can this be mitigated? Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Scalability
it's going to be hard to summarize tuning in a paragraph or even a few pages. If there aren't any existing weblogs to tell you the amount of traffic it will get, you're only good solution is to implement logging and monitoring. then everyday look at how the site is performing, graph the results for each day, week, and month. look at usage patterns and then modify the number of processors or heap settings appropriately. peter --- Haytham Samad [EMAIL PROTECTED] wrote: I have searched in the mail archive and did not find a comprehansive answer to the settings one needs to look for to make sure Tomcat scales with an increasing number of users. I have read about the tweaks that can be made to the JVM to make the GC work more efficiently and allocating enough memory for the JVM. Anything on can do to set Tomcat up to scale? If someone can provide a comprehensive list on this here, that would be great. I am currently working on stress testing an application I have deployed on Tomcat and did some tweaks to the JVM and to Tomcat but could not find a good reference to tell me if what I am doing is right or wrong. Settings for min/max Processors and Accept count? I am running Tomcat as a service on Win 2K. Any performance considerations or work I can do to it when running as a service? Thanks for taking the time, Haytham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Scalability
There are a lot of companies using Tomcat in production and some of them are large sites that get 1 million+ page views a day. Just because there are a lot of calls, it doesn't necessarily mean it's a problem. scaling a website to handle millions of hits a day takes time and thorough testing. If you don't test your webapp under varying loads and settings, you're not going to know how it will scale. hopefully when the book comes out, it will answer most of these questions. peter --- Jon Roberts [EMAIL PROTECTED] wrote: Haytham Samad wrote: Anything on can do to set Tomcat up to scale? I am running Tomcat as a service on Win 2K. You could start by running it on Linux instead to save all that memory and processor power that Windows consumes :) But seriously, I'm interested in hearing how Tomcat can scale, too. It seems like there is an awful lot loaded into memory when it's launched, and all my stack traces produce an impressively long chain of method calls: can this be mitigated? Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Scalability
Scability/Perfomance/Memory was talked about many times in the past. I am still digging up good threads/sites with respect to the FAQ, but here is what I have so far, each page has links to the appropriate discussion thread in the tomcat-user lists. Performace: http://tomcatfaq.sourceforge.net/performance.html Memory: http://tomcatfaq.sourceforge.net/memory.html Monitoring: http://tomcatfaq.sourceforge.net/monitoring.html -Tim Jon Roberts wrote: But seriously, I'm interested in hearing how Tomcat can scale, too. It seems like there is an awful lot loaded into memory when it's launched, and all my stack traces produce an impressively long chain of method calls: can this be mitigated? Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
find out tag name by classname
Hi, I wrote a taglib that is used by completly stupid users ;) For this reason I made a IllegalTagNestingException, which is thrown allways, when a jsp contains a nesting of tags, that is not allowed, e.g.: aTag/ Tag_That_Has_To_Be_Inside_Of_An_aTag... would throw such an Exception. By this way the taglib-user knows a bit more about what he did wrong. Well, the problem is, I dont find a way of determining the tagname by the classname. Inside the taglib-implementation any tag knows his class-name but has no idea of the assoziated tagname. How can I access the mapping between tagnames and classnames or how can I at least determine the filname of the used tld from inside the taglib-implementation (for jrun, there is a way over the pageContext, but in tomcat?) thanx for any help Gerald Kleser Gerald Kleser neofonie GmbHTel: +49.30.24627-212 Softwareentwicklung Robert-Koch-Platz 4 FAX: +49.30.24627-120 [EMAIL PROTECTED]D-10115 Berlin Web: www.neofonie.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can pass URL parameters to Tomcat
All, I have what I hope to be a simple problem but can't for the life of me figure it out. I've search all the net and haven't found anyone else with quite this problem. I have a context named /tools under the webapps directory and everything seems to be working ok. If I punch in https://my.host.name.com:8443/tools/GemPing/GemPing.jsp?numpings=5, everything fine and works great! If I punch in https://my.host.name.com/tools/GemPing/GemPing.jsp, (note, no url parameters), everything works fine (mod_jk log attached) If I punch in https://my.host.name.com/tools/GemPing/GemPing.jsp?numpings=5, I believe that ajp13 segmentation faults. Just the act of putting a parameter in the URL causes things to go haywire. I've turned on the debug log for mod_jk and everything from mod_jk looks identical from the two tests above except the second case never enters into the jk_ajp_common.c section This is a working call to the jsp via apache (mod_jk.log) i.e. https://my.host.name.com/tools/GemPing/GemPing.jsp [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tools/GemPing/GemPing.jsp' [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/ [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/GemPing/ [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tools/GemPing/GemPing.jsp' [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/ [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/GemPing/ [Tue Mar 04 08:38:57 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1 [Tue Mar 04 08:38:57 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Tue Mar 04 08:38:57 2003] [jk_connect.c (132)]: Into jk_open_socket [Tue Mar 04 08:38:57 2003] [jk_connect.c (139)]: jk_open_socket, try to connect socket = 11 [Tue Mar 04 08:38:57 2003] [jk_connect.c (148)]: jk_open_socket, after connect ret = 0 [Tue Mar 04 08:38:57 2003] [jk_connect.c (157)]: jk_open_socket, set TCP_NODELAY to on [Tue Mar 04 08:38:57 2003] [jk_connect.c (166)]: jk_open_socket, set SO_KEEPALIVE to on [Tue Mar 04 08:38:57 2003] [jk_connect.c (174)]: jk_open_socket, return, sd = 11 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (614)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 11 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (642)]: sending to ajp13 #1961 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (729)]: received from ajp13 #157 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response This is a failed call to the jsp via apache (mod_jk.log) i.e. https://my.host.name.com/tools/GemPing/GemPing.jsp?numpings=4 [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tools/GemPing/GemPing.jsp' [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/ [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/GemPing/ [Tue Mar 04 08:41:52 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1 [Tue Mar 04 08:41:52 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker This is the error that shows up in the apache error_log under case 2: [Tue Mar 4 08:41:52 2003] [notice] child pid 17703 exit signal Segmentation Fault (11) My environment is Solaris 8 Apache 1.3.27 Tomcat 4.1.18 jakarta-tomcat-connectors-4.1.18 php-4.3.1 mod_perl-1.27 mod_ssl-2.8.12-1.3.27 openssl-0.9.7 There are quite a few config files, for brevity I'll include the ones that are asked for. httpd.conf calls in tomcat/conf/auto/mod_jk.conf-local and tomcat/conf/auto/mod_jk.conf-tools server.xml web.xml I don't want to include all of these here
RE: Tomcat Scalability
Hi, I would really like to back up Peter's point that you can't just pick up a book or web site with magic settings. At best, you will find general guidelines that may or may not work for your system. The importance of establishing performance requirement and constantly testing to ensure the requirements are meant cannot be overstated. Document your requirement, your stress tests, and the results of every test run you do. Document what parameters you change between runs, and the effect of the change. If you want to do this right, it's a long, laborious process that can be very application-specific. If you'd like, at the end you can publish a paper or a web site with your findings, and I'm sure it'll get a lot of traffic ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:15 AM To: Tomcat Users List Subject: Re: Tomcat Scalability Scability/Perfomance/Memory was talked about many times in the past. I am still digging up good threads/sites with respect to the FAQ, but here is what I have so far, each page has links to the appropriate discussion thread in the tomcat-user lists. Performace: http://tomcatfaq.sourceforge.net/performance.html Memory: http://tomcatfaq.sourceforge.net/memory.html Monitoring: http://tomcatfaq.sourceforge.net/monitoring.html -Tim Jon Roberts wrote: But seriously, I'm interested in hearing how Tomcat can scale, too. It seems like there is an awful lot loaded into memory when it's launched, and all my stack traces produce an impressively long chain of method calls: can this be mitigated? Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stop logging from isapi_redirector2.dll
Hello Jay. Thanks for Your help but it doesn't work still. If You will be know how can I resolve my problem, please contact me. My best regards, Konrad Rusz - Original Message - From: Jay Lee [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 03, 2003 7:14 PM Subject: RE: Stop logging from isapi_redirector2.dll emerg should work and it worked on isapi_redirector.dll. Could you try to take out logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log? If that doen't work, you need to download isapi_redirector2.dll source codes and fix it yourself. -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:52 AM To: Tomcat Users List Subject: Stop logging from isapi_redirector2.dll Hi everyone. I have a problem. I have connected IIS 5.0 and Tomcat 4.1.18. I use JK2 and I cannot stop logging events in Windows Application Log from isapi_redirector2.dll. I have added reg key as follow (in Windows 2000 Server SP3): [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jakarta-tomcat extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jakarta-tomcat\\conf\\workers2.properties authComplete=0 threadPool=20 logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log logLevel=ERROR I tied typed different parameters in logLevel, such as: ERROR, DEBUG, INFO, emerg. Unfortunatelly it does not work. Can You have any ideas how can I resolve my problem? Best regards, Konrad Rusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Scalability
one more note. Persistence is the only effective tool for high performance! No amount of money or talent can beat persistence when it comes to making sure your website works reliably and responds within a set time. peter --- Tim Funk [EMAIL PROTECTED] wrote: Scability/Perfomance/Memory was talked about many times in the past. I am still digging up good threads/sites with respect to the FAQ, but here is what I have so far, each page has links to the appropriate discussion thread in the tomcat-user lists. Performace: http://tomcatfaq.sourceforge.net/performance.html Memory: http://tomcatfaq.sourceforge.net/memory.html Monitoring: http://tomcatfaq.sourceforge.net/monitoring.html -Tim Jon Roberts wrote: But seriously, I'm interested in hearing how Tomcat can scale, too. It seems like there is an awful lot loaded into memory when it's launched, and all my stack traces produce an impressively long chain of method calls: can this be mitigated? Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Default Page Apache/Tomcat/SSL
What I can think of is 1. call your index.jsp in index.html; or 2. put index.jsp in webapps/yourapp -Original Message- From: Maya Gadde [mailto:[EMAIL PROTECTED] Sent: March 3, 2003 6:47 PM To: [EMAIL PROTECTED] Subject: Default Page Apache/Tomcat/SSL Hi, We have Tomcat 4.1.12 configured with Apache 2.x + SSL. My webapps are installed in the webapp directory for tomcat. I want the default page loaded on one of my apps to be index.jsp instead of index.html. I have tried everything so far and have failed. My httpd.conf has the following listing: # # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # IfModule mod_dir.c DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi index.jsp /IfModule web.xml has the following: welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list It still doesn't load index.jsp. This is what I get when I try: Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL I am using https://.../xyz Help!! -- Regards, Maya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
obj.conf -- auto generated file
When, where, and how would I set shlib to /lib:/usr/lib would this be the format shlib=/lib:/usr/lib and where would I set it? Where is the regular obj.conf file? This is the value of shlib that is currently generated in conf/auto/obj.conf: ### 2 # Auto generated configuration. Dated: Fri Feb 28 16:09:12 EST 2003 3 ### 4 5 # 6 # You will need to merge the content of this file with your 7 # regular obj.conf and then restart (=stop + start) your Netscape server . 8 # 9 10 # 11 # Loading the redirector into your server 12 # 13 14 Init fn=load-modules funcs=jk_init,jk_service shlib=put full path to the redirector here Sincerely, David Vann Martha Jefferson Hospital 459 Locust Avenue Charlottesville, VA 22902 [EMAIL PROTECTED] Phone (434) 244-5911 Fax (434) 982-7351
Configuring Tomcat with IIS Web Server
I'm working on Configuring Tomcat with IIS Web Server http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.htmlfrom O'Reilly Net. I think that I have followed everything exactly. I get a 404. tomcat is the first and only ISAPI redirector in my list, it has a green arrow. I've triple-checked my conf files. Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
no startup.sh
Hello, I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. I also have tomcat3.3 installed on this system. I didn't take the time to uninstall, since rpm -e claimed it couldn't find the installation, and I wanted a demo ready by tomorrow. Any help would be appreciated. Paul Warner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stop logging from isapi_redirector2.dll
-Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 14:22 To: Tomcat Users List Subject: Re: Stop logging from isapi_redirector2.dll Hello Jay. Thanks for Your help but it doesn't work still. If You will be know how can I resolve my problem, please contact me. At the risk of asking the obvious, did you shut down the IIS (World Wide Publishing Service) service via the control panel after changing the registry and then restarting it? Regards Roger. - Original Message - From: Jay Lee [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 03, 2003 7:14 PM Subject: RE: Stop logging from isapi_redirector2.dll emerg should work and it worked on isapi_redirector.dll. Could you try to take out logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log? If that doen't work, you need to download isapi_redirector2.dll source codes and fix it yourself. -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:52 AM To: Tomcat Users List Subject: Stop logging from isapi_redirector2.dll Hi everyone. I have a problem. I have connected IIS 5.0 and Tomcat 4.1.18. I use JK2 and I cannot stop logging events in Windows Application Log from isapi_redirector2.dll. I have added reg key as follow (in Windows 2000 Server SP3): [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jakarta-tomcat extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jakarta-tomcat\\conf\\workers2.properties authComplete=0 threadPool=20 logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log logLevel=ERROR I tied typed different parameters in logLevel, such as: ERROR, DEBUG, INFO, emerg. Unfortunatelly it does not work. Can You have any ideas how can I resolve my problem? Best regards, Konrad Rusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: no startup.sh
Howdy, I don't have any experience with the rpm, so I'd suggest using another distribution (the .gz or .zip one) in a clean directory, not overwriting any existing installation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Paul Warner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:04 AM To: [EMAIL PROTECTED] Subject: no startup.sh Hello, I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. I also have tomcat3.3 installed on this system. I didn't take the time to uninstall, since rpm -e claimed it couldn't find the installation, and I wanted a demo ready by tomorrow. Any help would be appreciated. Paul Warner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stop logging from isapi_redirector2.dll
I do it many times. It doesn't work. Konrad Rusz - Original Message - From: Varley, Roger [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 4:05 PM Subject: RE: Stop logging from isapi_redirector2.dll -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 14:22 To: Tomcat Users List Subject: Re: Stop logging from isapi_redirector2.dll Hello Jay. Thanks for Your help but it doesn't work still. If You will be know how can I resolve my problem, please contact me. At the risk of asking the obvious, did you shut down the IIS (World Wide Publishing Service) service via the control panel after changing the registry and then restarting it? Regards Roger. - Original Message - From: Jay Lee [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 03, 2003 7:14 PM Subject: RE: Stop logging from isapi_redirector2.dll emerg should work and it worked on isapi_redirector.dll. Could you try to take out logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log? If that doen't work, you need to download isapi_redirector2.dll source codes and fix it yourself. -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:52 AM To: Tomcat Users List Subject: Stop logging from isapi_redirector2.dll Hi everyone. I have a problem. I have connected IIS 5.0 and Tomcat 4.1.18. I use JK2 and I cannot stop logging events in Windows Application Log from isapi_redirector2.dll. I have added reg key as follow (in Windows 2000 Server SP3): [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jakarta-tomcat extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jakarta-tomcat\\conf\\workers2.properties authComplete=0 threadPool=20 logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log logLevel=ERROR I tied typed different parameters in logLevel, such as: ERROR, DEBUG, INFO, emerg. Unfortunatelly it does not work. Can You have any ideas how can I resolve my problem? Best regards, Konrad Rusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: no startup.sh
The rpm is very different, and mysteriously only has .jar files in the /bin directory. I believe you'll find tomcat startup commands in /usr/bin, but you can check the initialization script in /etc/init.d to find the commands for sure. I wrestled with the rpm for a while, but switched to the binary distribution based on many suggestions from this list. Exactly nobody was able to help me with the rpm. I recommend using the binary version. Jon Roberts www.mentata.com Paul Warner wrote: I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. Any help would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: no startup.sh
Thanks, Yoav! Yes, the tar.gz install worked just fine. Must be a problem with the rpm version. Thanks for the help. Paul --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, I don't have any experience with the rpm, so I'd suggest using another distribution (the .gz or .zip one) in a clean directory, not overwriting any existing installation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Paul Warner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:04 AM To: [EMAIL PROTECTED] Subject: no startup.sh Hello, I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. I also have tomcat3.3 installed on this system. I didn't take the time to uninstall, since rpm -e claimed it couldn't find the installation, and I wanted a demo ready by tomorrow. Any help would be appreciated. Paul Warner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: no startup.sh
You are correct - the tomcat4 executable is in /usr/bin, and tomcat4 start does initiate the startup process (although it aborts with some errors - needs configuring). I am going to use the tar.gz binary distribution as you (and Yoav) recommend - but I see that the rpm version may work with some loving care. Thanks for the info, Paul --- Jon Roberts [EMAIL PROTECTED] wrote: The rpm is very different, and mysteriously only has .jar files in the /bin directory. I believe you'll find tomcat startup commands in /usr/bin, but you can check the initialization script in /etc/init.d to find the commands for sure. I wrestled with the rpm for a while, but switched to the binary distribution based on many suggestions from this list. Exactly nobody was able to help me with the rpm. I recommend using the binary version. Jon Roberts www.mentata.com Paul Warner wrote: I installed Tomcat 4.1.18 (the rpm, with the command rpm -i) on Redhat 8. I cannot locate a startup script in /var/tomcat4/bin/ or anywhere else. No shutdown script either. I checked the tomcat documentation and the archives - everything indicates the startup script should be there. I couldn't find anything on this problem. Any help would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please: How do I get application redeploy to work with Apache front-end to Tomcat?
- Original Message - From: Jim Cobban [EMAIL PROTECTED] To: Tomcat User Maillist [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:23 PM Subject: Please: How do I get application redeploy to work with Apache front-end to Tomcat? I am really sorry to have to keep raising this point, but I honestly cannot get this to work. The problem is that after using the manager application to redeploy when I access my application on the Tomcat server directly by HTTP I see the functionality of the updated classes, but if I access the same application on the same server through a front-end Apache server I continue to see the behavior of the old classes. I have to ask the ISP to shut down and restart the Tomcat server to see the new functionality through Apache. To be clear on this, it is the classes, not the web pages, which are not being seen from the Apache point of view. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat application redeploy behind Apache server
I am sorry to keep harping on this, but I still am no closer to solving my problem. I don't even know where to look for a solution. - Original Message - From: Jim Cobban [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 22, 2003 1:29 PM Subject: Re: [EMAIL PROTECTED] Tomcat application redeploy behind Apache server I have a problem that when I redeploy my JSP/servlet application on a Tomcat server, the new behavior is not visible to users who access the applications through an Apache HTTP server which is the front-end. The new behavior is seen if I go into the backdoor directly into the Tomcat server, but that access is not available to my customers. As a result I have to shutdown the connector and the Tomcat server and restart in order for my customers to see the new behavior. How do I configure Apache and Tomcat so that redeploying the application using the manager interface on Tomcat causes the new functionality to be visible through Apache. The Apache httpd.conf file contains the following: LoadModule webapp_module modules/mod_webapp.so IfModule mod_webapp.c WebAppConnection warpConnection warp 127.0.0.1:8008 WebAppDeploy examples warpConnection /examples/ WebAppInfo /webapp-info /IfModule WebAppDeploy cocoon warpConnection /cocoon/ WebAppDeploy Census warpConnection /Census/ WebAppDeploy Ocfa warpConnection /Ocfa/ WebAppDeploy manager warpConnection /manager/ The Tomcat server.xml contains the following: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I'm new to this and could use a hand
Or simply: %= new java.util.Date().toString() % -Original Message- From: Fines, Steven [mailto:[EMAIL PROTECTED] If the body of your JSP is solely %= java.util.Date % you haven't given it anything to display. You will need to do something like this: html body % java.util.Date today = new java.util.Date(); % %= today.toString() % /body /html SF -Original Message- From: Barry Jones [mailto:[EMAIL PROTECTED] I just downloaded and installed the most recent release of Tomcat and I'm running it on Windows XP. I'm trying to learn JSP on my local machine (8080), but I have a few questions. When attempting a helloworld.jsp page that was to include the date, the code %= java.util.Date() % is not displaying anything at all. I'm trying to figure out what could be setup incorrectly to keep this from running. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat application redeploy behind Apache server
On Tue, 2003-03-04 at 09:43, Jim Cobban wrote: I am sorry to keep harping on this, but I still am no closer to solving my problem. I don't even know where to look for a solution. Are you sure you are not caching the web pages? Do you have caching on in the httpd.conf? Do you send the pragma-nocache in your HTML? Try changing the browser settings to always go back to the server and if you still get the old page, then look to see if Apache has caching on. I noticed that you are using mod_webapp. you might want to try to switch to mod_jk instead. It works with one Tomcat only; I have heard that it is a good idea to remobe the load-balancing weight when only using one tomcat. The, you should be able to use the manager app. HTH, Ben Ricker - Original Message - From: Jim Cobban [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 22, 2003 1:29 PM Subject: Re: [EMAIL PROTECTED] Tomcat application redeploy behind Apache server I have a problem that when I redeploy my JSP/servlet application on a Tomcat server, the new behavior is not visible to users who access the applications through an Apache HTTP server which is the front-end. The new behavior is seen if I go into the backdoor directly into the Tomcat server, but that access is not available to my customers. As a result I have to shutdown the connector and the Tomcat server and restart in order for my customers to see the new behavior. How do I configure Apache and Tomcat so that redeploying the application using the manager interface on Tomcat causes the new functionality to be visible through Apache. The Apache httpd.conf file contains the following: LoadModule webapp_module modules/mod_webapp.so IfModule mod_webapp.c WebAppConnection warpConnection warp 127.0.0.1:8008 WebAppDeploy examples warpConnection /examples/ WebAppInfo /webapp-info /IfModule WebAppDeploy cocoon warpConnection /cocoon/ WebAppDeploy Census warpConnection /Census/ WebAppDeploy Ocfa warpConnection /Ocfa/ WebAppDeploy manager warpConnection /manager/ The Tomcat server.xml contains the following: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Manager
Thanks, Samad. I guess I was expecting going to /manager/ to redirect me to /manager/html/list since it didn't receive any parameters. -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:32 AM To: Tomcat Users List Subject: RE: Tomcat Manager When you call the admin application using http://127.0.0.1:8080/manager/ it gives you the error message because you did not send it any parameters to tell it what command you want it to execute. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Objects in JSP PLEASE HELP.
Given the way your page is currently set up, this should work: snip EditorContent content = (EditorContent)pageContext.getAttribute(content); /snip I can't remember exactly how the TagExtraInfo stuff works but have a look at the compiled jsp (the .java src file) in tomcat's work directory. It may have created a variable EditorContent of type boa.EditorContent for you to reference. The pageContext variable in the above code is an implicit object available in the jsp and is the same object you used in the tag. See section 2.8.3 of the JSP 1.2 spec for details: http://java.sun.com/products/jsp/download.html#specs Jason Johnston wrote: [EMAIL PROTECTED] 02/27/03 02:56PM Can you show us the errors that were reported when the JSP failed to compile? Full stacktraces are best. -Jake Yes, here they are. I guess my real problem is that I'm not sure how to reference the object from the page. All the errors and source code are below. Thanks. * *** tomcat log * 2003-02-28 09:37:58 ApplicationDispatcher[/boastuff] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 87 in the jsp file: /editor.jsp Generated servlet error: C:\tomcat\work\localhost\boastuff\editor$jsp.java:97: Undefined variable or class name: content out.print(content.getAction()); ^ 1 error 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355) at boa.iadmin.callEditor(iadmin.java:337) at boa.iadmin.submit(iadmin.java:173) at boa.iadmin.processRequest(iadmin.java:397) at boa.iadmin.doGet(iadmin.java:428) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(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.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
Streaming files from Tomcat thru JK and IIS: No Headers (?) [round2]
Hi all, I'm having a problem with my IIS/Tomcat integration using the JK connector. Regular pages and servlet mapped extensions work fine, but when I try to send files using the ServletOutputStream, it does not work properly when going thru IIS-JK-Tomcat. I wind up getting the content returned to the browser with absolutely no headers (at least from the perspective of doing a View Source on the returned page). I am setting headers including content type, length, and disposition. Also, if I go directly to Tomcat using its port #, the files come down the wire with the headers and all and the appropriate plug-ins get called by the browser, etc. Anyone seen this problem before and maybe know a solution for this? Thanks, JC __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Important - Apache-Tomcat Module Choice
Hello all, I would like to know, which of the following modules do you recommend as Apache-Tomcat connector, w.r.to the criteria that I have mentioned below: 1. mod_webapp (It seems that this module is not active with in Tomcat community and not actively developed by the dev team for various reasons, please confirm the same). stability support performance suitability for production environment load balancing scalability 2. mod_jk2 (I am already using mod_jk and am fine with it. But, to leverage some of the mod_jk2 features, I am planning to go for mod_jk2 also). stability support performance suitability for production environment load balancing scalability Please advise me asap in this regard. Thanks in advance, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat with IIS Web Server
I'm working on Configuring Tomcat with IIS Web Server http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.htmlfro m O'Reilly Net. I think that I have followed everything exactly. I get a 404. tomcat is the first and only ISAPI redirector in my list, it has a green arrow. I've triple-checked my conf files. Who/What is issuing the 404? IIS or Tomcat? Check the IIS logs. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems configuring Tomcat with Apache using mod_jk2
Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
Can you search archive? My bet is you didn't define [uri] in your workers2.properties. -Original Message- From: David Godfrey [mailto:[EMAIL PROTECTED] Sent: March 4, 2003 11:36 AM To: '[EMAIL PROTECTED]' Subject: Problems configuring Tomcat with Apache using mod_jk2 Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems configuring Tomcat with Apache using mod_jk2
You need to JkMount the /examples in httpd.conf. Something like JkMount */examples blah where blah is the name of your loadbalancer setup in workers.properties. It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. Ben Ricker On Tue, 2003-03-04 at 10:36, David Godfrey wrote: Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restoring (recycling?) sessions
Hello, I have the following scenario: - The user can see a static page with a login form. - The form action points to a web application. In order to allow the user to log on, I have to use a request filter and check the parameter values (username/password). The typical Tomcat-Logins are no option for me as I want the user to be able to log in from several static login forms. However Tomcat requires the user to access the web application _first_ and sends the login form back _after_ that request. Therefore, I use a authentication filter (from javax.servlet.Filter) in order to allow users to log in. The filter wraps the request in a wrapper (from javax.servlet.ServletRequestWrapper) and overrides the following methods to fake a tomcat-form-login: - getAuthType - getRemoteUser - getUserPrincipal - isUserInRole So far, so good. Now, it would be nice if the user could close his browser and get his session back after logging in again (within the session timeout). My current approach is... - to let the filter save the relation user-session in an internal object (e.g. hashmap) - to let the filter implement HttpSessionListener in order to remove unneeded relations from that object - to override the method getSession() in the request wrapper and return the old session if a user comes back and has an session assossiated with his user name Now the missing part of the jigsaw: How can I tell the session (or tomcat) that the old session is still in use and not idle? An API that does something like the Unix command touch for tomcat sessions would be great. Can all this be achieved easier than described here? Thanks in advance, Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
David, I am confused. You said you use jk2. But in your log, I can only see mod_jk resuming normal operations while it should be mod_jk2/2.0.3-dev configured -- resume.. if you use jk2. -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: March 4, 2003 11:37 AM To: '[EMAIL PROTECTED]' Subject: Re: Problems configuring Tomcat with Apache using mod_jk2 You need to JkMount the /examples in httpd.conf. Something like JkMount */examples blah where blah is the name of your loadbalancer setup in workers.properties. It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. Ben Ricker On Tue, 2003-03-04 at 10:36, David Godfrey wrote: Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Scalability
The guideline I use is... Prioritize Use-Cases based on R/W, Frequency Try to optimize the the most frequent Use-Cases Test/Profile you app; often this leads to the following, Optimize database queries since I often find this to be the bottleneck. - Cache objects if you can in memory to avoid DB Queries - Add proper indexes to queries - Do more work within the database if you can - Batch TXNs Use less Java objects,right collection types, algorithms. I wonder how much of a performance boost tweaking Tomcat will achieve. I rather not spend time trying to boost Tomcat, unless I absolutely have to. -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:28 AM To: Tomcat Users List Subject: Re: Tomcat Scalability one more note. Persistence is the only effective tool for high performance! No amount of money or talent can beat persistence when it comes to making sure your website works reliably and responds within a set time. peter --- Tim Funk [EMAIL PROTECTED] wrote: Scability/Perfomance/Memory was talked about many times in the past. I am still digging up good threads/sites with respect to the FAQ, but here is what I have so far, each page has links to the appropriate discussion thread in the tomcat-user lists. Performace: http://tomcatfaq.sourceforge.net/performance.html Memory: http://tomcatfaq.sourceforge.net/memory.html Monitoring: http://tomcatfaq.sourceforge.net/monitoring.html -Tim Jon Roberts wrote: But seriously, I'm interested in hearing how Tomcat can scale, too. It seems like there is an awful lot loaded into memory when it's launched, and all my stack traces produce an impressively long chain of method calls: can this be mitigated? Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems configuring Tomcat with Apache using mod_jk2
On Tue, 2003-03-04 at 10:36, Ben Ricker wrote: You need to JkMount the /examples in httpd.conf. Something like JkMount */examples blah where blah is the name of your loadbalancer setup in workers.properties. Let me correct that: it should be '/examples/* blah'. I was looking at two different entries in my own httpd.conf. Ben Ricker It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. Ben Ricker On Tue, 2003-03-04 at 10:36, David Godfrey wrote: Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Retrieve private key from keystore
Hi. How can I obtain the private key to server certificate from $CATALINA_HOME/conf/keystore (on PKCS#1 format)?? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. I have modified httpd.conf as follows: JKWorkersFile /opt/tomcat/conf/jk/workers.properties JKLogFile /opt/tomcat/logs/mod)jk.log Include /opt/tomcat/conf/auto/mod_jk.conf Server.xml is as follows (standard apart from the references to mod_jk) Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/opt/apache/modules/mod_jk-2.0.43.so / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Tomcat-Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/opt/apache/modules/mod_jk-2.0.43.so / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternameurl/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams ResourceLink name=linkToGlobalResource global=simpleValue type=java.lang.Integer/ /Context /Host /Engine /Service /Server Many thanks, David -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 16:37 To: '[EMAIL PROTECTED]' Subject: Re: Problems configuring Tomcat with Apache using mod_jk2 You need to JkMount the /examples in httpd.conf. Something like JkMount */examples blah where blah is the name of your loadbalancer setup in workers.properties. It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. Ben Ricker On Tue, 2003-03-04 at 10:36, David Godfrey wrote: Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine error_log in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist:
Mysql connector/j
Anyone have instructions for installing and configuring the mysql connector/j jar file on tomcat 4.1.18 unix machine? I have the jar but not sure how to configure tomcat to use the jar file.. Do I need to rename the jar file to something specific? thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems configuring Tomcat with Apache using mod_jk2
Actually, mod_jk2 does not use JKMount . . . . In workers2.properties you might have a configuration that reads: # Uri mapping [uri:/examples/*.jsp] worker=ajp13:localhost:8009 Now this is really pointing to: $TOMCAT_HOME/webapps/examples Most of the time, the absolute directory is outside of your document home for the Apache web server. You can handle this with a directory alias in the httpd.conf file. Something like: Alias /examples/ /opt/tomcat/webapps/examples/ will work. Just substitute your directory location for the one in the above line. These two snippets (from workers2.properties and httpd.conf) will let Apache serve everything except the files ending in .jsp. That will be handed off to Tomcat. To include the servlets under the examples directory, add the following to your workers2.properties file. [uri:/examples/servlet/*] worker=ajp13:localhost:8009 This will get all of the servlets in the examples webapp, while still allowing Apache to serve static content. There are some more configuration changes that you should do, like denying access to the WEB-INF directory, and configuring the properties of the actual application directory. Most of that is detailed in the Apache web server documentation. I'm just a user/sysadmin/developer and not a member of any Apache group, so this is just based on my experience and the reading of the documentation. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
On Tue, 2003-03-04 at 11:01, David Godfrey wrote: It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. I have modified httpd.conf as follows: JKWorkersFile /opt/tomcat/conf/jk/workers.properties JKLogFile /opt/tomcat/logs/mod)jk.log Include /opt/tomcat/conf/auto/mod_jk.conf Just to be sure, tack on the mod_jk.conf. It still looks like you have an issue with telling Apache where to go for /examples and any other webapps (like /manager or /admin). You need to add the JkMount directives in httpd.conf; they are sort of like redirects in that they tell Apache to send requests for, say, /examples/* to the available worker(s). My entry in httpd.conf for /examples: JkMount /examples/* loadbalancer loadbalancer is defined in my workers.properties file. For example, I have the follwoing in my workers.properties: worker.list=tomcat1,tomcat2,loadbalancer # # First tomcat server # worker.tomcat1.port=11009 worker.tomcat1.host=127.0.0.1 worker.tomcat1.type=ajp13 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2 Ben Ricker Server.xml is as follows (standard apart from the references to mod_jk) Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/opt/apache/modules/mod_jk-2.0.43.so / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Tomcat-Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/opt/apache/modules/mod_jk-2.0.43.so / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternameurl/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams ResourceLink name=linkToGlobalResource global=simpleValue type=java.lang.Integer/ /Context /Host /Engine /Service /Server Many thanks, David -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 16:37 To: '[EMAIL PROTECTED]' Subject: Re: Problems configuring Tomcat with Apache using mod_jk2 You need to JkMount the /examples in httpd.conf. Something like JkMount */examples blah where blah is
AliasMatch to remove ~ in URL
Hello Everyone: I am using Apache 1.3 on UNIX. I have User named HARI on UNIX System. My UserDir is public_html I can access www.hostname.com/~hari/index.html - which I think it accesses /home/hari/public_html/index.html page. BUT how do I access www.hostname.com/hari/index.html such that it still access /home/hari/public_html/index.html page? I used AliasMatch but in vain! AliasMatch ^/([^/]*)/?(.*) /home/$1/public_html/$2 I also tried AliasMatch /(.*)/(.*) /home/$1/public_html/$2 but in vain... Can any XPERT help me on this? THANKS! _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat error
Has anyone seen this error before and know what it means? thanks Adam INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleLis tener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:1 66) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
David, This looks like jk config to me, not jk2. If it helps, here are my working config files for apache 2 and mod_jk2 on solaris. (The workers.properties file is called workers2.properties on my system, which is the default name). My Httpd mapping looks like: VirtualHost * ServerName 192.168.0.102 ServerAlias www ServerAlias localhost ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/apache2/htdocs ErrorLog logs/home.net-errorlog CustomLog logs/home.net-access.log common Location /control/ JkUriSet worker ajp13:localhost:8009 /Location Location /wwwsadmin/ JkUriSet worker ajp13:localhost:8009 /Location /VirtualHost workers2.properties looks like: [logger.apache2] level=DEBUG [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:192.168.0.102/control/*] worker=ajp13:localhost:8009 [uri:localhost/control/*] worker=ajp13:localhost:8009 [uri:wwws/control/] worker=ajp13:localhost:8009 [uri:127.0.0.1/control/*] worker=ajp13:localhost:8009 [uri:192.168.0.102/wwwsadmin/*] worker=ajp13:localhost:8009 [uri:localhost/wwwsadmin/*] worker=ajp13:localhost:8009 [uri:wwws/wwwsadmin/] worker=ajp13:localhost:8009 [uri:127.0.0.1/wwwsadmin/*] worker=ajp13:localhost:8009 Here's /usr/local/tomcat/conf/jk2.properties (note only 2 uncommented lines) ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list handler.listchannelSocket,request # # Override the default port for the socketChannel channelSocket.port=8009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 #apr.jniModeSo=inprocess Finally, server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=192.168.0.102 debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=192.168.0.102 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswwws/Alias Alias127.0.0.1/Alias Context path=control docBase= debug=1/ Context path=wwwsadmin docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=home_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service I've found the key is to follow and check the path for each mapping in httpd.conf through workers2.properties and then through server.xml. Make sure there's a match for each alias, and make sure you get all the IP addresses right. You don't get much help from any error messages if you get this wrong. Hope this helps - it took me a while to get it all working, but now it works a treat and is very reliable. Andy -Original Message- From: David Godfrey [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 17:02 To: 'Tomcat Users List' Subject: RE: Problems configuring Tomcat with Apache using mod_jk2 It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. I have modified httpd.conf as follows: JKWorkersFile /opt/tomcat/conf/jk/workers.properties JKLogFile /opt/tomcat/logs/mod)jk.log Include /opt/tomcat/conf/auto/mod_jk.conf Server.xml is as follows (standard apart from the references
Re: forward request to static html page loses path for included images?
Ray Tayek wrote: i was using getRequestDispatcher(). but i have changed that to use redirect (which works, but may cause me some problems later with session - not sure, but i want to have the guy stay in that same sessiosn even if goes off and looks at a static page - i am worried about people who don't allow cookies and if i don't do some kind of url encoding on the static file i may get hosed - maube i should just copy it througt the servlet?). There is a method of HttpServletResponse called encodeRedirectURL for this, so that when you redirect to another page, the session is maintained: (in the doGet method of a Servlet:) // redirect to somepage.jsp but // preserve the session in the URL: String targetPage = somepage.jsp; response.sendRedirect( response.encodeRedirectURL(targetPage)); But your suspicions are correct: if you redirect to a static page (non-JSP) at any point in your application and the user has cookies disabled, there is no way to encode the URLs on the static page to keep the user in the session. Instead of redirecting to a static HTML page, make it a JSP and encode the URLs on it. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat error
Since you're using the legacy apj13 code you need to comment out the jmx stuff from the server.xml file. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Adam Denenberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:32 AM To: Tomcat Users List Subject: Tomcat error Has anyone seen this error before and know what it means? thanks Adam INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Se rverLifecy cleListe ner.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Se rverLifecy cleListe ner.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Se rverLifecy cleListe ner.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Se rverLifecy cleListe ner.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent( ServerLife cycleLis tener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec ycleSuppor t.java:1 66) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm pl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc cessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
forwarding from Tomcat to Apache
Background: I am using Apache 2.0.43, Tomcat 4.1.18 with mod_jk as the connector. I am using a servlet to check a users response to a retry/cancel operation. If it is a retry I want to go back to a static page being served by Apache, if it is cancel I want to access another page being served by Tomcat. The second part works fine, but when I try to redirect back to Apache (using response.sendRedirect(paridon.homedns.org/login.html) ) the url it uses is : http://paridon.homedns.org/ParidonWeb/servlet/paridon.homedns.org/login.html When I use response.sendRedirect(login.html) it responds: http://paridon.homedns.org/ParidonWeb/servlet/ParidonWeb/servlet/LoginFailed?OK=Retry Neither of which is there... It should be just: http://paridon.homedns.org/login.html Is this a setup problem? Does anyone know what the proper way to do this or a workaround? Thanks in advance. Todd Paridon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: forwarding from Tomcat to Apache
Drop the paridon.homedns.org, assuming login.html is the base htdocs directory you ought to be fine. The second solution would be to add http://; in front of the paridon.homedns.org. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Todd Paridon [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:36 AM To: [EMAIL PROTECTED] Subject: forwarding from Tomcat to Apache Background: I am using Apache 2.0.43, Tomcat 4.1.18 with mod_jk as the connector. I am using a servlet to check a users response to a retry/cancel operation. If it is a retry I want to go back to a static page being served by Apache, if it is cancel I want to access another page being served by Tomcat. The second part works fine, but when I try to redirect back to Apache (using response.sendRedirect(paridon.homedns.org/login.html) ) the url it uses is : http://paridon.homedns.org/ParidonWeb/servlet/paridon.homedns.org/ login.html When I use response.sendRedirect(login.html) it responds: http://paridon.homedns.org/ParidonWeb/servlet/ParidonWeb/servlet/L oginFailed?OK=Retry Neither of which is there... It should be just: http://paridon.homedns.org/login.html Is this a setup problem? Does anyone know what the proper way to do this or a workaround? Thanks in advance. Todd Paridon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Linux CLASSPATH
Tomcat List, What files/directories should be in my CLASSPATH? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com
RE: Mysql connector/j
Actually you have to put mysql-connector-java-2.0.14-bin.jar (or whatever version you have) into /common/lib of Tomcat. Renaming is not necessary. There's more information in the Tomcat Documenation for JDBC Realms, JNDI Datasources etc. If you unpack the driver's jar file, you'll also find a useful readme file for more information. Michael -Original Message- From: Adam Denenberg [mailto:[EMAIL PROTECTED] Sent: Dienstag, 4. Mrz 2003 18:15 To: Tomcat Users List Subject: Mysql connector/j Anyone have instructions for installing and configuring the mysql connector/j jar file on tomcat 4.1.18 unix machine? I have the jar but not sure how to configure tomcat to use the jar file.. Do I need to rename the jar file to something specific? thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Important - Apache-Tomcat Module Choice
webapp is definitely easier to implement, but i think it only supports non windows based sever for current releases. So i think mod_jk is the way to go since mod_jk2 is so hard to set it up..Anyone got it running? - Original Message - From: Selvaraj N [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:36 AM Subject: Important - Apache-Tomcat Module Choice Hello all, I would like to know, which of the following modules do you recommend as Apache-Tomcat connector, w.r.to the criteria that I have mentioned below: 1. mod_webapp (It seems that this module is not active with in Tomcat community and not actively developed by the dev team for various reasons, please confirm the same). stability support performance suitability for production environment load balancing scalability 2. mod_jk2 (I am already using mod_jk and am fine with it. But, to leverage some of the mod_jk2 features, I am planning to go for mod_jk2 also). stability support performance suitability for production environment load balancing scalability Please advise me asap in this regard. Thanks in advance, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Important - Apache-Tomcat Module Choice
We're now fully operational with JK2 on both Apache Web Server 2.0.44 and IIS, using the JK2 2.0.2 connector, Tomcat 4.1, and J2SDK 1.4.1_02. The magic was figuring out (by trial, error, and input from participants in this newsgroup) semi-documented entries into the jk2.properties and workers2.properties files that MUST be present for it to work properly...the major offender was the [shm:] entry which defines the shared memory file name and size. Without it, nada. Rick Bullotta CTO Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Henry Tang [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:56 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Important - Apache-Tomcat Module Choice webapp is definitely easier to implement, but i think it only supports non windows based sever for current releases. So i think mod_jk is the way to go since mod_jk2 is so hard to set it up..Anyone got it running? - Original Message - From: Selvaraj N [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:36 AM Subject: Important - Apache-Tomcat Module Choice Hello all, I would like to know, which of the following modules do you recommend as Apache-Tomcat connector, w.r.to the criteria that I have mentioned below: 1. mod_webapp (It seems that this module is not active with in Tomcat community and not actively developed by the dev team for various reasons, please confirm the same). stability support performance suitability for production environment load balancing scalability 2. mod_jk2 (I am already using mod_jk and am fine with it. But, to leverage some of the mod_jk2 features, I am planning to go for mod_jk2 also). stability support performance suitability for production environment load balancing scalability Please advise me asap in this regard. Thanks in advance, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
The mystery to me is why there is a shm.file entry in jk2.properties...when the actual entry seems to need to be in workers2.properties. The documentation is very sparse in this area. Rick Bullotta CTO Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:32 PM To: Tomcat Users List Subject: RE: Problems configuring Tomcat with Apache using mod_jk2 David, This looks like jk config to me, not jk2. If it helps, here are my working config files for apache 2 and mod_jk2 on solaris. (The workers.properties file is called workers2.properties on my system, which is the default name). My Httpd mapping looks like: VirtualHost * ServerName 192.168.0.102 ServerAlias www ServerAlias localhost ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/apache2/htdocs ErrorLog logs/home.net-errorlog CustomLog logs/home.net-access.log common Location /control/ JkUriSet worker ajp13:localhost:8009 /Location Location /wwwsadmin/ JkUriSet worker ajp13:localhost:8009 /Location /VirtualHost workers2.properties looks like: [logger.apache2] level=DEBUG [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:192.168.0.102/control/*] worker=ajp13:localhost:8009 [uri:localhost/control/*] worker=ajp13:localhost:8009 [uri:wwws/control/] worker=ajp13:localhost:8009 [uri:127.0.0.1/control/*] worker=ajp13:localhost:8009 [uri:192.168.0.102/wwwsadmin/*] worker=ajp13:localhost:8009 [uri:localhost/wwwsadmin/*] worker=ajp13:localhost:8009 [uri:wwws/wwwsadmin/] worker=ajp13:localhost:8009 [uri:127.0.0.1/wwwsadmin/*] worker=ajp13:localhost:8009 Here's /usr/local/tomcat/conf/jk2.properties (note only 2 uncommented lines) ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list handler.listchannelSocket,request # # Override the default port for the socketChannel channelSocket.port=8009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 #apr.jniModeSo=inprocess Finally, server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=192.168.0.102 debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=192.168.0.102 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswwws/Alias Alias127.0.0.1/Alias Context path=control docBase= debug=1/ Context path=wwwsadmin docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=home_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service I've found the key is to follow and check the path for each mapping in httpd.conf through workers2.properties and then through server.xml. Make sure there's a match for each alias, and make sure you get all the IP addresses right. You don't get much help from any error messages if you get this wrong. Hope this helps - it took me a while to get it all working, but now it works a treat and is very reliable. Andy -Original Message- From: David Godfrey [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 17:02 To:
RE: can't pass URL parameters to Tomcat
Well, nobody has answered me yet, but have some more information. the mod_jk that was being used was mod_jk-1.3-eapi.so (some schmuck before me doesn't remember where he got it from :) ). I recompiled the mod_jk.so using the commands... cd $TOMCAT_SRC/jakarta-tomcat-connectors-4.1.18/jk/native/apache-1.3 $APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS \ -I${JAVA_HOME}/include/solaris \ -I../common/ \ -I${JAVA_HOME}/include \ -l posix4 -c *.c -c ../common/*.c cp mod_jk.so $APACHE_HOME/libexec/. It seems to work ok now, does anyone know why this would work? Thanks! -Original Message- From: Pries, John E. Sent: Tuesday, March 04, 2003 8:50 AM To: '[EMAIL PROTECTED]' Subject: can pass URL parameters to Tomcat All, I have what I hope to be a simple problem but can't for the life of me figure it out. I've search all the net and haven't found anyone else with quite this problem. I have a context named /tools under the webapps directory and everything seems to be working ok. If I punch in https://my.host.name.com:8443/tools/GemPing/GemPing.jsp?numpings=5, everything fine and works great! If I punch in https://my.host.name.com/tools/GemPing/GemPing.jsp, (note, no url parameters), everything works fine (mod_jk log attached) If I punch in https://my.host.name.com/tools/GemPing/GemPing.jsp?numpings=5, I believe that ajp13 segmentation faults. Just the act of putting a parameter in the URL causes things to go haywire. I've turned on the debug log for mod_jk and everything from mod_jk looks identical from the two tests above except the second case never enters into the jk_ajp_common.c section This is a working call to the jsp via apache (mod_jk.log) i.e. https://my.host.name.com/tools/GemPing/GemPing.jsp [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tools/GemPing/GemPing.jsp' [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/ [Tue Mar 04 08:38:47 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/GemPing/ [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tools/GemPing/GemPing.jsp' [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/ [Tue Mar 04 08:38:57 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/GemPing/ [Tue Mar 04 08:38:57 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1 [Tue Mar 04 08:38:57 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Tue Mar 04 08:38:57 2003] [jk_connect.c (132)]: Into jk_open_socket [Tue Mar 04 08:38:57 2003] [jk_connect.c (139)]: jk_open_socket, try to connect socket = 11 [Tue Mar 04 08:38:57 2003] [jk_connect.c (148)]: jk_open_socket, after connect ret = 0 [Tue Mar 04 08:38:57 2003] [jk_connect.c (157)]: jk_open_socket, set TCP_NODELAY to on [Tue Mar 04 08:38:57 2003] [jk_connect.c (166)]: jk_open_socket, set SO_KEEPALIVE to on [Tue Mar 04 08:38:57 2003] [jk_connect.c (174)]: jk_open_socket, return, sd = 11 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (614)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 11 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (642)]: sending to ajp13 #1961 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (729)]: received from ajp13 #157 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200 [Tue Mar 04 08:38:57 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response This is a failed call to the jsp via apache (mod_jk.log) i.e. https://my.host.name.com/tools/GemPing/GemPing.jsp?numpings=4 [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tools/GemPing/GemPing.jsp' [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /tools/ [Tue Mar 04 08:41:51 2003] [jk_uri_worker_map.c (502)]:
RE: installing Tomcat
Hi Rene, I do not know if you had a solution to your problem yet or not.I do have a trick to your problem maybe you can use. i had the exactly same problem as you, when i try to install apache-tomcat on my redhat 7.3 server. my solution is that: i download tomcat-mod-3.3-1.i386.rpm and install it. and i grep the mod_jk.so from this installation. I followed the instruction in flashguides. and apache-tomcat works on my site. J.P. On Mon, 10 Feb 2003, [de internetman] Rene Kooyman wrote: Citeren Turner, John [EMAIL PROTECTED]: Hi John (again) and other readers, http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml I've followed this 'how to' on building mod_jk.so (Alternate build process for mod_jk.so) to the letter, everything looks good, the files get copied to the right places, but when i edit http.conf an check apache (apachectl configtest) i get errors: Cannot load ... because Apache aparently can't locate the mod_jk.so file (which is named 'mod_jk.so.0.0.0' btw). Even renaming it won't help, Apache just can't find mod_jk.so ... help? This type of OS/system: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18 I need to get TomCat connected to Apache, one way or another. If any of you could help met with a good 'how to'. I'd be a very happy man. Sounds good. Lajos's guides are pretty good. If you want extra docs, check out mine at http://www.johnturner.com/howto. They're essentially the same in content (I learned from Lajos's docs when I started with Tomcat) but sometimes a different viewpoint or presentation helps solve problems. This hot-to is indeed pretty well documented, i even 'stumbled' on yours searching for help with Google.. only thing is: you've written this for Win 2K only, my system is: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18. -- Kind regards, Rene Kooyman - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat on WinXP
Hi everyone. Yesterday I posted to get help with setting up mod_jk on my WinXP machine. As it turns out I was wrong and the httpd that came with the phpdev package won't except dynamically loaded modules. So my solution is to reinstall everything without using the phpdev package. I am following John Turner's how to, and the Apache install went smoothly. I ran the executable for Tomcat install, and installation was successful. However when I go to http://localhost:8080 I get the error below. To me it seems like a possibly a classpath error for the compiler?? The install directory for tomcat is G:\tomcat (I have a separate partition set up to keep my web server separate from everything else on the PC). My PATH (both user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin. I can't imagine why this set up should cause problems, especially since my PATH is set, and upon Tomcat install the installer found my jdk1.4.1 installation. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) Thanks in advance for any pointers :) Denise
RE: Important - Apache-Tomcat Module Choice
Rick, I thought that you went live with v2.0.1 of the JK2 module. Did you actually get v2.0.2 to work? If so, how? Also, I'd be interested to hear how the IIS connector is performing and am going to post later on some interesting warning messages which are being logged on my IIS server. Steve The information transmitted in this communication is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please destroy any copies, contact the sender and delete the material from any computer. -Original Message- From: Rick Bullotta [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:09 PM To: 'Tomcat Users List' Subject: RE: Important - Apache-Tomcat Module Choice We're now fully operational with JK2 on both Apache Web Server 2.0.44 and IIS, using the JK2 2.0.2 connector, Tomcat 4.1, and J2SDK 1.4.1_02. The magic was figuring out (by trial, error, and input from participants in this newsgroup) semi-documented entries into the jk2.properties and workers2.properties files that MUST be present for it to work properly...the major offender was the [shm:] entry which defines the shared memory file name and size. Without it, nada. Rick Bullotta CTO Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Henry Tang [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:56 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Important - Apache-Tomcat Module Choice webapp is definitely easier to implement, but i think it only supports non windows based sever for current releases. So i think mod_jk is the way to go since mod_jk2 is so hard to set it up..Anyone got it running? - Original Message - From: Selvaraj N [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:36 AM Subject: Important - Apache-Tomcat Module Choice Hello all, I would like to know, which of the following modules do you recommend as Apache-Tomcat connector, w.r.to the criteria that I have mentioned below: 1. mod_webapp (It seems that this module is not active with in Tomcat community and not actively developed by the dev team for various reasons, please confirm the same). stability support performance suitability for production environment load balancing scalability 2. mod_jk2 (I am already using mod_jk and am fine with it. But, to leverage some of the mod_jk2 features, I am planning to go for mod_jk2 also). stability support performance suitability for production environment load balancing scalability Please advise me asap in this regard. Thanks in advance, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installation - Tomcat 4.1 - Windows 2K
I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Check your CLASSPATH. It needs to have the full path of the sevlet.jar in it as well. You will probably want to add the full path to the j2ee.jar in there for good measure. Hope this helps, Jeremy -Original Message- From: Graeme Blyth [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:11 PM To: [EMAIL PROTECTED] Subject: Installation - Tomcat 4.1 - Windows 2K I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
don't set your CLASSPATH, tomcat doesn't use it. Make sure your JAVA_HOME points to a JDK installation, not JRE. Filip -Original Message- From: Graeme Blyth [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: Installation - Tomcat 4.1 - Windows 2K I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Filip, The classpath is very important. Here is an installation guide I've used many times to install tomcat. It worked every time and it tells you to set your classpath to include the servlet.jar on Windows machines. Here is the link: http://www.moreservlets.com/Using-Tomcat-4.html Hope this helps, Jeremy -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:20 PM To: Tomcat Users List Subject: RE: Installation - Tomcat 4.1 - Windows 2K don't set your CLASSPATH, tomcat doesn't use it. Make sure your JAVA_HOME points to a JDK installation, not JRE. Filip -Original Message- From: Graeme Blyth [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: Installation - Tomcat 4.1 - Windows 2K I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does mod_jk work with virtualhosts ?
I just figured out why my mod_Jk config was not working. It seems if I put the Include conf/mod_jk.conf in the Virtualhost block , or put the Jk* parameters inside a Virtualhost , it does not work. Only when set globally does this work. Does anyone know if mod_jk will work with virtualhosts and if so how to turn it on and off for virtualhosts? I don¹t want mod_jk checking JkMounts for each virtualhost I have, that seems way too expensive. thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Jeremy, Classpath is not required. What you need is JAVA_HOME which set to jdk directory i.e. c:\j2sdk1.4.1. I believe classpath was written in the registry during the installation of jdk (windows). Regards, Michael -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:22 AM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Filip, The classpath is very important. Here is an installation guide I've used many times to install tomcat. It worked every time and it tells you to set your classpath to include the servlet.jar on Windows machines. Here is the link: http://www.moreservlets.com/Using-Tomcat-4.html Hope this helps, Jeremy -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:20 PM To: Tomcat Users List Subject: RE: Installation - Tomcat 4.1 - Windows 2K don't set your CLASSPATH, tomcat doesn't use it. Make sure your JAVA_HOME points to a JDK installation, not JRE. Filip -Original Message- From: Graeme Blyth [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: Installation - Tomcat 4.1 - Windows 2K I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Michael, What you say makes since but this link http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH also makes since. I have used this guide for all installations on my Windows machines and never had problems. I'm not disagreeing but it worked for me to follow the guide and the guide says to include servlet.jar in the CLASSPATH. Go to the link, it explains why they say to do that as well. Thanks, Jeremy -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:31 PM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Jeremy, Classpath is not required. What you need is JAVA_HOME which set to jdk directory i.e. c:\j2sdk1.4.1. I believe classpath was written in the registry during the installation of jdk (windows). Regards, Michael -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:22 AM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Filip, The classpath is very important. Here is an installation guide I've used many times to install tomcat. It worked every time and it tells you to set your classpath to include the servlet.jar on Windows machines. Here is the link: http://www.moreservlets.com/Using-Tomcat-4.html Hope this helps, Jeremy -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:20 PM To: Tomcat Users List Subject: RE: Installation - Tomcat 4.1 - Windows 2K don't set your CLASSPATH, tomcat doesn't use it. Make sure your JAVA_HOME points to a JDK installation, not JRE. Filip -Original Message- From: Graeme Blyth [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: Installation - Tomcat 4.1 - Windows 2K I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stop logging from isapi_redirector2.dll
There is a sure way to fix this. Downloand the jk2 source code from web. You need visual studio 6.0. I just took a look of isapi_redirector2.dll a few of days ago. I remembered that the structure is close to isapi_redirector.dll. Therefore, you should find followings: 1)Open jk_logger.h, you will find debug is set to 0 and emerg is set to 3. You can try to change these value to a negative number first. 2)Log API are at jk_util.c. If previous try is not working, there should be a bug there. Rebuild the application is very simple. Give it a try. By the way, I was looking isapi_redirector.dll using winsock2. However it is still using winsock 1.1. I think that I have to implement myself. good luck. jay -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:22 AM To: Tomcat Users List Subject: Re: Stop logging from isapi_redirector2.dll Hello Jay. Thanks for Your help but it doesn't work still. If You will be know how can I resolve my problem, please contact me. My best regards, Konrad Rusz - Original Message - From: Jay Lee [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, March 03, 2003 7:14 PM Subject: RE: Stop logging from isapi_redirector2.dll emerg should work and it worked on isapi_redirector.dll. Could you try to take out logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log? If that doen't work, you need to download isapi_redirector2.dll source codes and fix it yourself. -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:52 AM To: Tomcat Users List Subject: Stop logging from isapi_redirector2.dll Hi everyone. I have a problem. I have connected IIS 5.0 and Tomcat 4.1.18. I use JK2 and I cannot stop logging events in Windows Application Log from isapi_redirector2.dll. I have added reg key as follow (in Windows 2000 Server SP3): [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jakarta-tomcat extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jakarta-tomcat\\conf\\workers2.properties authComplete=0 threadPool=20 logFile=C:\\jakarta-tomcat\\logs\\iis_redirector2.log logLevel=ERROR I tied typed different parameters in logLevel, such as: ERROR, DEBUG, INFO, emerg. Unfortunatelly it does not work. Can You have any ideas how can I resolve my problem? Best regards, Konrad Rusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Important - Apache-Tomcat Module Choice
I finally got mine to work with a minor problem. First inital run to generate jsp page is slow and cause error than after that works fine. this is the place where i got it working: http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html I am running tomcat 4.1.18 with apache 2.0.44 with night build mod_jk2. java 1.4.01 henry - Original Message - From: Kundrot, Steven [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:09 PM Subject: RE: Important - Apache-Tomcat Module Choice Rick, I thought that you went live with v2.0.1 of the JK2 module. Did you actually get v2.0.2 to work? If so, how? Also, I'd be interested to hear how the IIS connector is performing and am going to post later on some interesting warning messages which are being logged on my IIS server. Steve The information transmitted in this communication is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please destroy any copies, contact the sender and delete the material from any computer. -Original Message- From: Rick Bullotta [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:09 PM To: 'Tomcat Users List' Subject: RE: Important - Apache-Tomcat Module Choice We're now fully operational with JK2 on both Apache Web Server 2.0.44 and IIS, using the JK2 2.0.2 connector, Tomcat 4.1, and J2SDK 1.4.1_02. The magic was figuring out (by trial, error, and input from participants in this newsgroup) semi-documented entries into the jk2.properties and workers2.properties files that MUST be present for it to work properly...the major offender was the [shm:] entry which defines the shared memory file name and size. Without it, nada. Rick Bullotta CTO Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Henry Tang [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:56 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Important - Apache-Tomcat Module Choice webapp is definitely easier to implement, but i think it only supports non windows based sever for current releases. So i think mod_jk is the way to go since mod_jk2 is so hard to set it up..Anyone got it running? - Original Message - From: Selvaraj N [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:36 AM Subject: Important - Apache-Tomcat Module Choice Hello all, I would like to know, which of the following modules do you recommend as Apache-Tomcat connector, w.r.to the criteria that I have mentioned below: 1. mod_webapp (It seems that this module is not active with in Tomcat community and not actively developed by the dev team for various reasons, please confirm the same). stability support performance suitability for production environment load balancing scalability 2. mod_jk2 (I am already using mod_jk and am fine with it. But, to leverage some of the mod_jk2 features, I am planning to go for mod_jk2 also). stability support performance suitability for production environment load balancing scalability Please advise me asap in this regard. Thanks in advance, Selva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linux CLASSPATH
It depends on what libraries you want to have access to. My classpath is: CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/common/lib/servlet.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/classes12.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jakarta-regexp-1.2. jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jfreechart-0.9.3.ja r CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jcommon-0.7.0.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/itext-0.96.jar export CLASSPATH These lines give me access to (in order): servlet.jar (http servlet classes) classes12.jar (Oracle jdbc classes) jakarta-regexp-1.2.jar (Apache's regular expression classes) jfreechart-0.9.3.jar (JFreeChart charting classes) jcommon-0.7.0.jar (more JFreeChart classes) itext-0.9.6.jar (iText PDF generation classes) I hope this info helps. Let me know if you need more clarification. Kenny - Original Message - From: Jeremy Whitlock [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:42 AM Subject: Linux CLASSPATH Tomcat List, What files/directories should be in my CLASSPATH? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Tomcat 5.0.1 Alpha released - where's JSTL
I attempted to migrate my application to 5.0.1 today for kicks. I know that c:out value=${...}/ has been replaced by ${...}, but what about c:forEach .. - how do I use this with JSP 2.0? Isn't it the same as using JSTL? Thanks, Matt -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 5:18 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [ANN] Tomcat 5.0.1 Alpha released Tomcat 5.0.1 Alpha is now available for testing. This is actually the first real milestone of Tomcat 5, as Tomcat 5.0.0 did not include any new feature over 4.1.x other than the support for Servlet API 2.4 drafts and JSP 2.0 drafts. Tomcat 5.0.1 includes: - improved performance (with additional improvements planned) - complete montoring capabilities through JMX, with JSR 77 support - clustering capabilities (not included with that build as a binary) - JMX configuration capabilities - with a lot more to come in later milestones Downloads: http://jakarta.apache.org/builds/jakarta-tomcat/release/v5.0.1-alpha/ Remy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Jeremy, It appears that you are using only the java runtime environment in your JAVA_HOME (hence, jre). You will need to set your JAVA_HOME to point to the java standard development kit (j2sdk) instead. If you don't have the java development kit installed on your machine, you can download it from java.sun.com. HTH /mde/ __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat with IIS Web Server
Here is how you can find the problems: 1) try http://localhost:8080/examples to see if the tomcat is on. 2) try http://localhost to test your IIS. You should have a default page under wwwroot. 3) If both working, which means your configuration on following was wrong. Generally, it goes to registery software\Apache Software Foundation\Jakarta Isapi Redirector\1.0\ it will check your worker_file and your worder_mount_file. make sure the configurations are set right. Meanwhile change log_level to debug. After you reboot machine, you can find if your isapi_redirector.dll is working by checking the log file iis_redirector.log. this should help and good luck. jay -Original Message- From: Brewer, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 7:03 AM To: [EMAIL PROTECTED] Subject: Configuring Tomcat with IIS Web Server I'm working on Configuring Tomcat with IIS Web Server http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.htmlfrom O'Reilly Net. I think that I have followed everything exactly. I get a 404. tomcat is the first and only ISAPI redirector in my list, it has a green arrow. I've triple-checked my conf files. Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Jeremy, your doc sets the CLASSPATH for the development environment. there is NO NEED to set this variable for running tomcat. the dude asked a question why his JSPs didn't compile, and that is because his JAVA_HOME is not pointing to a JDK Filip -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:33 AM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Michael, What you say makes since but this link http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH also makes since. I have used this guide for all installations on my Windows machines and never had problems. I'm not disagreeing but it worked for me to follow the guide and the guide says to include servlet.jar in the CLASSPATH. Go to the link, it explains why they say to do that as well. Thanks, Jeremy -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:31 PM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Jeremy, Classpath is not required. What you need is JAVA_HOME which set to jdk directory i.e. c:\j2sdk1.4.1. I believe classpath was written in the registry during the installation of jdk (windows). Regards, Michael -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:22 AM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Filip, The classpath is very important. Here is an installation guide I've used many times to install tomcat. It worked every time and it tells you to set your classpath to include the servlet.jar on Windows machines. Here is the link: http://www.moreservlets.com/Using-Tomcat-4.html Hope this helps, Jeremy -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:20 PM To: Tomcat Users List Subject: RE: Installation - Tomcat 4.1 - Windows 2K don't set your CLASSPATH, tomcat doesn't use it. Make sure your JAVA_HOME points to a JDK installation, not JRE. Filip -Original Message- From: Graeme Blyth [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: Installation - Tomcat 4.1 - Windows 2K I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat with IIS Web Server
Michael, There are three other issues that you need to be concerned about with IIS. 1. Make sure you set up virtual directories to point to the %TOMCAT_HOME%\webapps\appname for each Tomcat application you wish to serve via IIS. 2. Make sure your System account (which runs IIS) has read access to those directories. 3. In the Default Web Site--Properties--Documents add both index.jsp and index.html to the list of default documents. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux CLASSPATH
okey dokey, here we go again, in order to run Tomcat on any platform, do NOT set the CLASSPATH variable. tomcat completely ignores it however, you can do this export JAVA_HOME=/usr/local/jdk1.4 export PATH=$PATH:$JAVA_HOME/bin and then you just start tomcat by example $TOMCAT_HOME/bin/catalina.sh run Filip -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:43 AM To: Tomcat Users List Subject: Re: Linux CLASSPATH It depends on what libraries you want to have access to. My classpath is: CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/common/lib/servlet.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/classes12.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jakarta-regexp-1.2. jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jfreechart-0.9.3.ja r CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jcommon-0.7.0.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/itext-0.96.jar export CLASSPATH These lines give me access to (in order): servlet.jar (http servlet classes) classes12.jar (Oracle jdbc classes) jakarta-regexp-1.2.jar (Apache's regular expression classes) jfreechart-0.9.3.jar (JFreeChart charting classes) jcommon-0.7.0.jar (more JFreeChart classes) itext-0.9.6.jar (iText PDF generation classes) I hope this info helps. Let me know if you need more clarification. Kenny - Original Message - From: Jeremy Whitlock [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:42 AM Subject: Linux CLASSPATH Tomcat List, What files/directories should be in my CLASSPATH? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation - Tomcat 4.1 - Windows 2K
My dev machine is XP. I haven't set an explicit classpath and everything works fine. So long as JAVA_HOME is set correctly to a JDK installation everything is sweet. Tomcat has all the jars it needs to compile jsp files. I read the link. It says to set the classpath so that DEVELOPERS can compile their servlets and helper classes prior to deploying the web application. Hope this helps, Jon Jeremy Whitlock wrote: Michael, What you say makes since but this link http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH also makes since. I have used this guide for all installations on my Windows machines and never had problems. I'm not disagreeing but it worked for me to follow the guide and the guide says to include servlet.jar in the CLASSPATH. Go to the link, it explains why they say to do that as well. Thanks, Jeremy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Filip, You are correct. Holla, J -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:03 PM To: Tomcat Users List Subject: RE: Installation - Tomcat 4.1 - Windows 2K Jeremy, your doc sets the CLASSPATH for the development environment. there is NO NEED to set this variable for running tomcat. the dude asked a question why his JSPs didn't compile, and that is because his JAVA_HOME is not pointing to a JDK Filip -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:33 AM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Michael, What you say makes since but this link http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH also makes since. I have used this guide for all installations on my Windows machines and never had problems. I'm not disagreeing but it worked for me to follow the guide and the guide says to include servlet.jar in the CLASSPATH. Go to the link, it explains why they say to do that as well. Thanks, Jeremy -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:31 PM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Jeremy, Classpath is not required. What you need is JAVA_HOME which set to jdk directory i.e. c:\j2sdk1.4.1. I believe classpath was written in the registry during the installation of jdk (windows). Regards, Michael -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:22 AM To: 'Tomcat Users List' Subject: RE: Installation - Tomcat 4.1 - Windows 2K Filip, The classpath is very important. Here is an installation guide I've used many times to install tomcat. It worked every time and it tells you to set your classpath to include the servlet.jar on Windows machines. Here is the link: http://www.moreservlets.com/Using-Tomcat-4.html Hope this helps, Jeremy -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:20 PM To: Tomcat Users List Subject: RE: Installation - Tomcat 4.1 - Windows 2K don't set your CLASSPATH, tomcat doesn't use it. Make sure your JAVA_HOME points to a JDK installation, not JRE. Filip -Original Message- From: Graeme Blyth [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:11 AM To: [EMAIL PROTECTED] Subject: Installation - Tomcat 4.1 - Windows 2K I have been unable to successfully install Tomcat 4.1 on a Windows 2000 Server machine. After installation I get an error message when connecting to Tomcat, the first two lines are shown below: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null I believe it must have something to do with how the JAVA_HOME variable is configured on my machine. Below is the path I am using with the above variable name: C:\Program Files\Java\j2re1.4.1_01 Any help is appreciated. Baco _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux CLASSPATH
Kenny, Thanks a lot. That helps. I don't have the servlet.jar in the CLASSPATH yet but everything seems to be working properly. Say, do I need j2ee.jar in my CLASSPATH anywhere? For some reason I have it in my Windows box. Thanks, Jeremy -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:43 PM To: Tomcat Users List Subject: Re: Linux CLASSPATH It depends on what libraries you want to have access to. My classpath is: CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/common/lib/servlet. jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/classes12.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jakarta-regexp- 1.2. jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jfreechart-0.9. 3.ja r CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jcommon-0.7.0.j ar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/itext-0.96.jar export CLASSPATH These lines give me access to (in order): servlet.jar (http servlet classes) classes12.jar (Oracle jdbc classes) jakarta-regexp-1.2.jar (Apache's regular expression classes) jfreechart-0.9.3.jar (JFreeChart charting classes) jcommon-0.7.0.jar (more JFreeChart classes) itext-0.9.6.jar (iText PDF generation classes) I hope this info helps. Let me know if you need more clarification. Kenny - Original Message - From: Jeremy Whitlock [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:42 AM Subject: Linux CLASSPATH Tomcat List, What files/directories should be in my CLASSPATH? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation - Tomcat 4.1 - Windows 2K
Jon, I have agreed that I was wrong. That is a good document to install though. Later, J -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:09 PM To: Tomcat Users List Subject: Re: Installation - Tomcat 4.1 - Windows 2K My dev machine is XP. I haven't set an explicit classpath and everything works fine. So long as JAVA_HOME is set correctly to a JDK installation everything is sweet. Tomcat has all the jars it needs to compile jsp files. I read the link. It says to set the classpath so that DEVELOPERS can compile their servlets and helper classes prior to deploying the web application. Hope this helps, Jon Jeremy Whitlock wrote: Michael, What you say makes since but this link http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH also makes since. I have used this guide for all installations on my Windows machines and never had problems. I'm not disagreeing but it worked for me to follow the guide and the guide says to include servlet.jar in the CLASSPATH. Go to the link, it explains why they say to do that as well. Thanks, Jeremy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux CLASSPATH
Filip, I know this. I have my Windows box setup and it has references to servlet.jar and j2ee.jar and I didn't know if I needed those in my Linux box. Later, J -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:05 PM To: Tomcat Users List Subject: RE: Linux CLASSPATH okey dokey, here we go again, in order to run Tomcat on any platform, do NOT set the CLASSPATH variable. tomcat completely ignores it however, you can do this export JAVA_HOME=/usr/local/jdk1.4 export PATH=$PATH:$JAVA_HOME/bin and then you just start tomcat by example $TOMCAT_HOME/bin/catalina.sh run Filip -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:43 AM To: Tomcat Users List Subject: Re: Linux CLASSPATH It depends on what libraries you want to have access to. My classpath is: CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/common/lib/servlet. jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/classes12.jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jakarta-regexp- 1.2. jar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jfreechart-0.9. 3.ja r CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/jcommon-0.7.0.j ar CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-4.0.6/lib/itext-0.96.jar export CLASSPATH These lines give me access to (in order): servlet.jar (http servlet classes) classes12.jar (Oracle jdbc classes) jakarta-regexp-1.2.jar (Apache's regular expression classes) jfreechart-0.9.3.jar (JFreeChart charting classes) jcommon-0.7.0.jar (more JFreeChart classes) itext-0.9.6.jar (iText PDF generation classes) I hope this info helps. Let me know if you need more clarification. Kenny - Original Message - From: Jeremy Whitlock [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:42 AM Subject: Linux CLASSPATH Tomcat List, What files/directories should be in my CLASSPATH? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat error
Either use the Coyote connector for AJP (the one configured for port 8009) and comment out the Ajp13Connector config or keep using the Ajp13Connector config and comment out the mbean stuff near the top of server.xml. Either will solve the problem. Or, you can just ignore the error. Jake At 12:31 PM 3/4/2003 -0500, you wrote: Has anyone seen this error before and know what it means? thanks Adam INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleLis tener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:1 66) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on WinXP
I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this discussion on the classpath. I have tried my setup with and without a classpath specified, and in either case I am getting the same error message as Baco. The only difference is that I have JDK installed. I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME in my PATH variable. I checked the error logs, and for some reason it is saying unable to find java compiler. I created a simple test.java in my G:\tomcat directory and tried to compile from the command prompt. I receive no error messages but the file does not compile. (When I performed the same test on my C:\ drive it compiled fine). Can someone please let me know if having the JDK on a separate partition could be causing my problem? If so then I would imagine I have to install the JDK on the same partition - but would this cause conflicts with the JDK I have installed on the C:\ drive. I'm trying to get tomcat running as soon as possible, and appreciate any help. Thanks in advance. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:42 PM To: 'Tomcat Users List' Subject: Tomcat on WinXP Hi everyone. Yesterday I posted to get help with setting up mod_jk on my WinXP machine. As it turns out I was wrong and the httpd that came with the phpdev package won't except dynamically loaded modules. So my solution is to reinstall everything without using the phpdev package. I am following John Turner's how to, and the Apache install went smoothly. I ran the executable for Tomcat install, and installation was successful. However when I go to http://localhost:8080 I get the error below. To me it seems like a possibly a classpath error for the compiler?? The install directory for tomcat is G:\tomcat (I have a separate partition set up to keep my web server separate from everything else on the PC). My PATH (both user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin. I can't imagine why this set up should cause problems, especially since my PATH is set, and upon Tomcat install the installer found my jdk1.4.1 installation. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at
RE: Tomcat error
Can I ask a follow on question to this, if you use mod_jk.dll do you have to use the Ajp13Connector, and the Coyote connector should only be used for mod_jk2.dll? Because I have installed Apache 2.0.44 and Tomcat 4.1.18 and when I use mod_jk-2.0.43.dll, Apache starts fine, but if I use mod_jk2-2.0.43.dll, I get the following error and Apache does not start: Syntax error on line 990 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Can't locate API module structure `jk_module' in file C:/Program Files/Apache Group/Apache2/modules/mod_jk2-2.0.43.dll: No error My really issue here is that I cannot get a .jsp file to work through Apache. I get an Internal Server Error everytime I hit a .jsp file, but the same file works fine if I hit it directly from Tomcat. Harry -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tue 3/4/2003 3:26 PM To: Tomcat Users List Cc: Subject: Re: Tomcat error Either use the Coyote connector for AJP (the one configured for port 8009) and comment out the Ajp13Connector config or keep using the Ajp13Connector config and comment out the mbean stuff near the top of server.xml. Either will solve the problem. Or, you can just ignore the error. Jake At 12:31 PM 3/4/2003 -0500, you wrote: Has anyone seen this error before and know what it means? thanks Adam INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListe ner.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleLis tener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:1 66) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on WinXP
Your JAVA_HOME should point at c:\jdk1.4.1 not the bin directory -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:38 PM To: 'Tomcat Users List' Subject: RE: Tomcat on WinXP I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this discussion on the classpath. I have tried my setup with and without a classpath specified, and in either case I am getting the same error message as Baco. The only difference is that I have JDK installed. I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME in my PATH variable. I checked the error logs, and for some reason it is saying unable to find java compiler. I created a simple test.java in my G:\tomcat directory and tried to compile from the command prompt. I receive no error messages but the file does not compile. (When I performed the same test on my C:\ drive it compiled fine). Can someone please let me know if having the JDK on a separate partition could be causing my problem? If so then I would imagine I have to install the JDK on the same partition - but would this cause conflicts with the JDK I have installed on the C:\ drive. I'm trying to get tomcat running as soon as possible, and appreciate any help. Thanks in advance. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:42 PM To: 'Tomcat Users List' Subject: Tomcat on WinXP Hi everyone. Yesterday I posted to get help with setting up mod_jk on my WinXP machine. As it turns out I was wrong and the httpd that came with the phpdev package won't except dynamically loaded modules. So my solution is to reinstall everything without using the phpdev package. I am following John Turner's how to, and the Apache install went smoothly. I ran the executable for Tomcat install, and installation was successful. However when I go to http://localhost:8080 I get the error below. To me it seems like a possibly a classpath error for the compiler?? The install directory for tomcat is G:\tomcat (I have a separate partition set up to keep my web server separate from everything else on the PC). My PATH (both user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin. I can't imagine why this set up should cause problems, especially since my PATH is set, and upon Tomcat install the installer found my jdk1.4.1 installation. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultE rrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatc her.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationCont ext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent icatorBase .java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv e.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
RE: Tomcat on WinXP
I encountered this when I wrote my own start scripts and I failed to add tools.jar to my CLASSPATH. -sean -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:38 PM To: 'Tomcat Users List' Subject: RE: Tomcat on WinXP I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this discussion on the classpath. I have tried my setup with and without a classpath specified, and in either case I am getting the same error message as Baco. The only difference is that I have JDK installed. I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME in my PATH variable. I checked the error logs, and for some reason it is saying unable to find java compiler. I created a simple test.java in my G:\tomcat directory and tried to compile from the command prompt. I receive no error messages but the file does not compile. (When I performed the same test on my C:\ drive it compiled fine). Can someone please let me know if having the JDK on a separate partition could be causing my problem? If so then I would imagine I have to install the JDK on the same partition - but would this cause conflicts with the JDK I have installed on the C:\ drive. I'm trying to get tomcat running as soon as possible, and appreciate any help. Thanks in advance. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:42 PM To: 'Tomcat Users List' Subject: Tomcat on WinXP Hi everyone. Yesterday I posted to get help with setting up mod_jk on my WinXP machine. As it turns out I was wrong and the httpd that came with the phpdev package won't except dynamically loaded modules. So my solution is to reinstall everything without using the phpdev package. I am following John Turner's how to, and the Apache install went smoothly. I ran the executable for Tomcat install, and installation was successful. However when I go to http://localhost:8080 I get the error below. To me it seems like a possibly a classpath error for the compiler?? The install directory for tomcat is G:\tomcat (I have a separate partition set up to keep my web server separate from everything else on the PC). My PATH (both user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin. I can't imagine why this set up should cause problems, especially since my PATH is set, and upon Tomcat install the installer found my jdk1.4.1 installation. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at
RE: Tomcat on WinXP
To Denise, You should point your JAVA_HOME to c:\jdk1.4.1 not c:\jdk1.4.1\bin To Sean, Please refer to message Installation - Tomcat 4.1 -Windows 2k. Tomcat works the same way in Win2K/XP. Hope this help guys. cheers, Michael -Original Message- From: Scott, Sean [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:38 PM To: 'Tomcat Users List' Subject: RE: Tomcat on WinXP I encountered this when I wrote my own start scripts and I failed to add tools.jar to my CLASSPATH. -sean -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:38 PM To: 'Tomcat Users List' Subject: RE: Tomcat on WinXP I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this discussion on the classpath. I have tried my setup with and without a classpath specified, and in either case I am getting the same error message as Baco. The only difference is that I have JDK installed. I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME in my PATH variable. I checked the error logs, and for some reason it is saying unable to find java compiler. I created a simple test.java in my G:\tomcat directory and tried to compile from the command prompt. I receive no error messages but the file does not compile. (When I performed the same test on my C:\ drive it compiled fine). Can someone please let me know if having the JDK on a separate partition could be causing my problem? If so then I would imagine I have to install the JDK on the same partition - but would this cause conflicts with the JDK I have installed on the C:\ drive. I'm trying to get tomcat running as soon as possible, and appreciate any help. Thanks in advance. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:42 PM To: 'Tomcat Users List' Subject: Tomcat on WinXP Hi everyone. Yesterday I posted to get help with setting up mod_jk on my WinXP machine. As it turns out I was wrong and the httpd that came with the phpdev package won't except dynamically loaded modules. So my solution is to reinstall everything without using the phpdev package. I am following John Turner's how to, and the Apache install went smoothly. I ran the executable for Tomcat install, and installation was successful. However when I go to http://localhost:8080 I get the error below. To me it seems like a possibly a classpath error for the compiler?? The install directory for tomcat is G:\tomcat (I have a separate partition set up to keep my web server separate from everything else on the PC). My PATH (both user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin. I can't imagine why this set up should cause problems, especially since my PATH is set, and upon Tomcat install the installer found my jdk1.4.1 installation. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at
Oracle JDBC, what do do?
Hi all, I am trying to connect to Oracle. What do I need to do to get tomcat to see the zip files that contain the driver? I am running Tomcat 4.1.2 on Win2k. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. *
RE: Oracle JDBC, what do do?
Depends which Oracle version you're running. For 8i, I believe you have to get class12.zip and rename it as jar file. For 9i, I forgot the name of the file but it should work the same way as 8i which you need to rename it to jar. Hope this help. Michael -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:40 PM To: [EMAIL PROTECTED] Subject: Oracle JDBC, what do do? Hi all, I am trying to connect to Oracle. What do I need to do to get tomcat to see the zip files that contain the driver? I am running Tomcat 4.1.2 on Win2k. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
Rick, That's a leftover from the file on the web I copied my config from - it's commented out anyway. I haven't a clue what it does. All I know is that this set up works! Andy -Original Message- From: Rick Bullotta [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 18:11 To: 'Tomcat Users List' Subject: RE: Problems configuring Tomcat with Apache using mod_jk2 The mystery to me is why there is a shm.file entry in jk2.properties...when the actual entry seems to need to be in workers2.properties. The documentation is very sparse in this area. Rick Bullotta CTO Lighthammer Software (http://www.lighthammer.com) -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:32 PM To: Tomcat Users List Subject: RE: Problems configuring Tomcat with Apache using mod_jk2 David, This looks like jk config to me, not jk2. If it helps, here are my working config files for apache 2 and mod_jk2 on solaris. (The workers.properties file is called workers2.properties on my system, which is the default name). My Httpd mapping looks like: VirtualHost * ServerName 192.168.0.102 ServerAlias www ServerAlias localhost ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/apache2/htdocs ErrorLog logs/home.net-errorlog CustomLog logs/home.net-access.log common Location /control/ JkUriSet worker ajp13:localhost:8009 /Location Location /wwwsadmin/ JkUriSet worker ajp13:localhost:8009 /Location /VirtualHost workers2.properties looks like: [logger.apache2] level=DEBUG [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:192.168.0.102/control/*] worker=ajp13:localhost:8009 [uri:localhost/control/*] worker=ajp13:localhost:8009 [uri:wwws/control/] worker=ajp13:localhost:8009 [uri:127.0.0.1/control/*] worker=ajp13:localhost:8009 [uri:192.168.0.102/wwwsadmin/*] worker=ajp13:localhost:8009 [uri:localhost/wwwsadmin/*] worker=ajp13:localhost:8009 [uri:wwws/wwwsadmin/] worker=ajp13:localhost:8009 [uri:127.0.0.1/wwwsadmin/*] worker=ajp13:localhost:8009 Here's /usr/local/tomcat/conf/jk2.properties (note only 2 uncommented lines) ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list handler.listchannelSocket,request # # Override the default port for the socketChannel channelSocket.port=8009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 #apr.jniModeSo=inprocess Finally, server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=192.168.0.102 debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=192.168.0.102 debug=0 appBase=webapps unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswwws/Alias Alias127.0.0.1/Alias Context path=control docBase= debug=1/ Context path=wwwsadmin docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=home_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service I've found the key is to follow and
RE: Oracle JDBC, what do do?
I did what Michael said and put them in the jre\lib\ext directory of the Java installation. Chuck -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:47 PM To: 'Tomcat Users List' Subject: RE: Oracle JDBC, what do do? Depends which Oracle version you're running. For 8i, I believe you have to get class12.zip and rename it as jar file. For 9i, I forgot the name of the file but it should work the same way as 8i which you need to rename it to jar. Hope this help. Michael -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:40 PM To: [EMAIL PROTECTED] Subject: Oracle JDBC, what do do? Hi all, I am trying to connect to Oracle. What do I need to do to get tomcat to see the zip files that contain the driver? I am running Tomcat 4.1.2 on Win2k. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Oracle JDBC, what do do?
Got it. Thanks very much. Bao-Ha Dam Bui [EMAIL PROTECTED] St. Jude Medical, Inc 651.765.1018 -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 2:47 PM To: 'Tomcat Users List' Subject: RE: Oracle JDBC, what do do? Depends which Oracle version you're running. For 8i, I believe you have to get class12.zip and rename it as jar file. For 9i, I forgot the name of the file but it should work the same way as 8i which you need to rename it to jar. Hope this help. Michael -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:40 PM To: [EMAIL PROTECTED] Subject: Oracle JDBC, what do do? Hi all, I am trying to connect to Oracle. What do I need to do to get tomcat to see the zip files that contain the driver? I am running Tomcat 4.1.2 on Win2k. Thanks very much. Bao-Ha Dam Bui * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. *
RE: Tomcat on WinXP
Thanks everyone for answering. I changed my JAVA_HOME to c:\jdk1.4.1 and restarted Tomcat. I still get the same error. The exact error in the log file is: Unable to find a javac compiler;com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK echo %JAVA_HOME% C:\jdk1.4 In my PATH I have: %JAVA_HOME%\bin I'm at a loss - the only other thing I can think of is the fact that I am trying to access the java compiler from a different partition could be causing this? I don't see why it should but then again I've seen stranger things happen... What boggles my mind even further is that at the command prompt I cahnge to G:\tomcat and I try javac test.java and it gives me no error messages, but no class file is compiled. Any other thoughts? Thanks again. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Tam, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:42 PM To: 'Tomcat Users List' Subject: RE: Tomcat on WinXP To Denise, You should point your JAVA_HOME to c:\jdk1.4.1 not c:\jdk1.4.1\bin To Sean, Please refer to message Installation - Tomcat 4.1 -Windows 2k. Tomcat works the same way in Win2K/XP. Hope this help guys. cheers, Michael -Original Message- From: Scott, Sean [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:38 PM To: 'Tomcat Users List' Subject: RE: Tomcat on WinXP I encountered this when I wrote my own start scripts and I failed to add tools.jar to my CLASSPATH. -sean -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:38 PM To: 'Tomcat Users List' Subject: RE: Tomcat on WinXP I am reading these posts on Installing Tomcat 4.1 on Win2K and I see this discussion on the classpath. I have tried my setup with and without a classpath specified, and in either case I am getting the same error message as Baco. The only difference is that I have JDK installed. I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME in my PATH variable. I checked the error logs, and for some reason it is saying unable to find java compiler. I created a simple test.java in my G:\tomcat directory and tried to compile from the command prompt. I receive no error messages but the file does not compile. (When I performed the same test on my C:\ drive it compiled fine). Can someone please let me know if having the JDK on a separate partition could be causing my problem? If so then I would imagine I have to install the JDK on the same partition - but would this cause conflicts with the JDK I have installed on the C:\ drive. I'm trying to get tomcat running as soon as possible, and appreciate any help. Thanks in advance. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 1:42 PM To: 'Tomcat Users List' Subject: Tomcat on WinXP Hi everyone. Yesterday I posted to get help with setting up mod_jk on my WinXP machine. As it turns out I was wrong and the httpd that came with the phpdev package won't except dynamically loaded modules. So my solution is to reinstall everything without using the phpdev package. I am following John Turner's how to, and the Apache install went smoothly. I ran the executable for Tomcat install, and installation was successful. However when I go to http://localhost:8080 I get the error below. To me it seems like a possibly a classpath error for the compiler?? The install directory for tomcat is G:\tomcat (I have a separate partition set up to keep my web server separate from everything else on the PC). My PATH (both user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin. I can't imagine why this set up should cause problems, especially since my PATH is set, and upon Tomcat install the installer found my jdk1.4.1 installation. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at