Re: *.properties files
At 10:56 PM 31/07/01, you wrote: Where does tomcat expect to find the *.properties files. I've got a class that fails with it's ResourceBundle call to a properties file. I've tried it in the WEB-INF and WEB-INF/classes directories for the specific web app. In tomcat 4.0b6 on Win2000 I'm using properties files that are in a jar file in WEB-INF/lib. Jim -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 The world's full of apathy, but I don't care.
RE: Oracle JDBCRealm
The first problem : You need to add your JDBC jars to the wrapper.properties file serach for the place where the classpath of the JVM is constructed and add your jar there.. Second Problem: Is known bug of 3.2.2 VErsion of JDBCRealm go for 3.2.3 AFAIK it corrected in that version.., but has to do with a connection problem when initializing JDBCRealm hth Saludos , Ignacio J. Ortega -Mensaje original- De: Joe Clem [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de agosto de 2001 8:06 Para: [EMAIL PROTECTED] Asunto: Oracle JDBCRealm Here it goes. Tomcat 3.2.2 Tomcat running on NT using IIS I am using oracle8i on a unix server put classes111.zip in TOMCAT_HOME/lib and renamed to classes111.jar I have verified that this jdbc driver is compatible with the oracle8i server. The following is in my server.xml file RequestInterceptor className=org.apache.tomcat.request.JDBCRealm debug=0 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@ntserver:1521:ORCL connectionName=doej connectionPassword=pass userTable=users userNameCol=username userCredCol=password userRoleTable=user_roles roleNameCol=role_name / When I try to start my jakarta service I get a ClassNotFoundError and it will not start. I am assuming it cannot find the class. I checked classes111.jar and the class oracle.jdbc.driver.OracleDriver does exist. I then, for fun, ran tomcat from a dos window. There I get a different error: MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key jdbcRealm.checkConnectionSQLException. When I tried to access jsp files from a browser on a different machine I could get to the tomcat example jsp's, so tomcat was indeed up and running. The authentication stuff wasn't working. Can anybody help? I am very confused about the 2 different errors. I am actually confused that I get any errors. Any help would be appreciated. Thanks. Joe
RE: please help
Hi everybody In my servlet i have import statement as follow. import com.oreilly.servlet.RemoteDaemonHttpServlet; downloaded unzipped the jar file from http://www.servlets.com/con/index.html in to c:\hhgg in my servlet i am using import statement as follow import hhgh.classes.com.oreilly.servlet.RemoteDaemonHttpServlet; I see class RemoteDaemonHttpServlet is placed in c:\hhgg\classes\com\oreilly.servlet. at compile time i am getting cannot resolve symbol class RemoteDaemonHttpServlet. some thing is wrong with my import statement. What ? i do not know . can someone please help? REGARDS hossein.
Context isolation
Hi All, I see that when you run tomcat in a out of procee mode you can do things like context isolation (i.e running contexts in a different VMs) etc. Is it possible to do such things when tomcat is run in stand alone mode? Thanx Ganesh
Need help with isapi_redirect.dll on W2KSP2/IIS5
I've tried everything I could think of. I followed the directions to the letter, but I couldn't get that little green arrow pointing up in the ISAPI filters tab in the web site properties in the inetmgr.exe. I then tried building Tomcat. Then I tried building the isapi_redirect. The .dsp and .dsw didn't work. I had to create an empty DLL project and copy the build settings from the isapi.dsp file by reading it with a text editor. It compiled with no errors, but it still didn't work. HELP!?! I tried to include screenshots, but your email server only allows tiny emails. So I posted them on a website. You can check them out at these links: http://www.vestedsoftware.com/tomcat/webserverpropertiesfileproperties.jpg http://www.vestedsoftware.com/tomcat/webserverproperties.jpg http://www.vestedsoftware.com/tomcat/tomcatworking.jpg http://www.vestedsoftware.com/tomcat/registrysettings.jpg http://www.vestedsoftware.com/tomcat/IISManager.jpg http://www.vestedsoftware.com/tomcat/filepath.jpg Cheers, Pedro J. Enterprise Java Consultant Microsoft Web Developer Tel: 646-234-6665
Re: Tomcat 4 / Apache connecter (Was: Tomcat 4.0 stability, etc.)
I'd like to move over to Tomcat 4, but I'm waiting for two things to become available: 1. Apache webapp connecter 2. Possibility to run Tomcat as an NT Service As I understand it, Pier might be able to give an idea of when this connector will be stable (shouldn't have anything to do with finalisation of JSP spec..) ; as for the second point, I'm not sure whether there's much difference in running Tomcat 3.x as a service compared with Tomcat 4.x. Maybe someone could advise whether the service wrappers are final for Tomcat 4, and indicate what differences there are (if any) between running 3.x and 4.0 as a service? I currently use JavaService to run it [Tomcat 3.x] as a service. http://www.alexandriasc.com/software/JavaService/index.html Thanks to anyone who can supply any further info. -Chris - Original Message - From: Pier P. Fumagalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 7:00 PM Subject: Tomcat 4.0 stability (Was: Re: SAX 2.0, sealing, Tomcat 3.2.3) I would assert that 4.0b6 is at least as stable as 3.2.3 when running with the HTTP connector in stand alone mode. I'm working on the webapp connector for Apache for it, and that cannot be considered qualitable as the built in HTTP. But let's ask to the master of TC4.0... Craig? Pier
Beyond Tomcat 4..?
Just wondering what's being planned for the future of Tomcat beyond the 4.0 release (if anyone knows...). For example, are there plans to make a release that uses JDK 1.4's scalable I/O features? (as both products are currently in beta, I imagine that could be some way off!) - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:35 PM Subject: RE: SAX 2.0, sealing, Tomcat 3.2.3 On Tue, 31 Jul 2001, Bryan Rood wrote: Pier, I am interested in using a 4.0.something tomcat build. Are there official sources at apache that can confirm the VERY_stable declaration that you have made? My company won't let me use anything but a stable production release. Is the 4.0 the same as prod quality? thanks so much, I'm one of the primary authors of Tomcat 4.0, so I've got some thoughts about this (and undoubtedly some bias as well :-). The only reason that 4.0 has not been declared final yet is that the underlying specifications it is based on (Servlet 2.3 and JSP 1.2) are not yet final. In fact, small changes and clarifications are still going on, and it would be pretty silly to declare 4.0 final and then have to go change it because the specs changed underneath. There will shortly be a beta 7 release, to pick up the most recent specification-related changes. It should be considered a release candidate, and development efforts between now and release day will be focused on bug fixes (at the moment, there are very few bugs recorded against Tomcat 4 in the bug tracking system at http://nagoya.apache.org/bugzilla/) and improved documentation. Craig McClanahan Bryan -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: Re: SAX 2.0, sealing, Tomcat 3.2.3 Andrew Cooke at [EMAIL PROTECTED] wrote: I don't want to use 4.0 as it's beta. Don't worry about being a beta... It's stable, _VERY_ stable. Pier
RE: Need help with isapi_redirect.dll on W2KSP2/IIS5
Pedro, I know, this my seem rather stupid, but I solved this problem removing the ajp13 connector from the workers.list line in TOMCAT_HOME/conf/workers.properties. That is, the original file you get includes a line like this: worker.list=ajp12, ajp13 Just remove , ajp13 I did some other things; there they go: 1) In the same file (workers.properties) I changed the default values for workers.tomcat_home and workers.java_home to the actual paths pointing to both packages. 2) Same file. Be sure that ps is \, not / Can't remember anything else besides strictly following the directions given in the howtos. I'm not an expert, though. Perhaps there are many other solutions much better than mine, but this one worked after three days of wrestling with the howtos, web pages including any kind of hints and so on. Hope it helps! Jose
RE: Installing Tomcat on HPUX (Problem #1)
because tomcat is written in java, you don't have to recompile it. so why are you bothering with that? just start it with bin/startup.sh! -Original Message- From: mysql fan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 10:25 AM To: [EMAIL PROTECTED] Subject: Installing Tomcat on HPUX (Problem #1) Hi! I've got HPUX 10.20, and I installed Java on it (jdk11804_os10.depot). I can create Java programs and execute them. Then, I want to install Jakarta-Tomcat server. I downloaded jakarta-tomcat-3.2.3-src.tar.gz, and unzipped it into /usr/src. But when trying to build it: /usr/src/tomcat # ./build.sh Unable to initialize threads: cannot find class java/lang/Thread What am I doing wrong? Thank you very much. ___ Get a FREE email address for your WILD SIDE! Choose from over 350 outrageous email addresses at http://www.WildEmail.com
Re: Installing Tomcat on HPUX (Problem #1)
SOLVED. Adding: CLASSPATH=/opt/java/lib/classes.zip - This mail was sent through Eoffice: http://www.eoffice.dk
UnsatisfiedLinkError : ocijdbc8 in shared Library path.
ello i am getting this unsatisfied error whenever i use servlet in my servlet i am using JDBC for connecting to Oracle. i need to know the solution for this please do let me know . Also do i need to know the JDBC re-alm set-up in Tomcat server. java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path at java.lang.Runtime.loadLibrary(Runtime.java) at java.lang.System.loadLibrary(System.java) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at sdsi.sdsi.doGet(sdsi.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java) * Mehul S Dave Scientific Officer, (STCS Dept.), Tata Institute of Fundamental Research Phone - 2152971 Extn - 2372 Mumbai . webpage:- http://www.ecom.tifr.res.in/~mehul *
Who should use JDBC realm
Hi I wanna know about JDBC realm. Who should use it Y. Please let me know Thanks. * Mehul S Dave Scientific Officer, (STCS Dept.), Tata Institute of Fundamental Research Phone - 2152971 Extn - 2372 Mumbai . webpage:- http://www.ecom.tifr.res.in/~mehul *
RE: Servlets
I tried as suggested to run servlets fronm the test directory . I have inserted the follwoing lines in web.xml of the test/web-inf/ directory servlet servlet-name Courses /servlet-name servlet-class Courses /servlet-class /servlet I tried http://localhost:8080/servlet/Courses I get a 405 error : Resource not allowed. What does that mean and how can i continue Try http://localhost:8080/test/servlet/Courses (just to check, is Courses.class in TOMCAT_HOME/webapps/test/WEB-INF/classes?) -- Andrew -- Tell the US to free Dmitry Sklyarov! http://www.freesklyarov.org
RE: please help
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: RE: please help Hi everybody In my servlet i have import statement as follow. import com.oreilly.servlet.RemoteDaemonHttpServlet; downloaded unzipped the jar file from http://www.servlets.com/con/index.html in to c:\hhgg in my servlet i am using import statement as follow import hhgh.classes.com.oreilly.servlet.RemoteDaemonHttpServlet; I see class RemoteDaemonHttpServlet is placed in c:\hhgg\classes\com\oreilly.servlet. at compile time i am getting cannot resolve symbol class RemoteDaemonHttpServlet. some thing is wrong with my import statement. What ? i do not know . can someone please help? REGARDS hossein. Put c:\hhgg\classes into your %CLASSPATH% (if you haven't already), then import com.oreilly.servlet.RemoteDaemonHttpServlet; Tip: When you're importing, you have to specify the package+class, not the filesystem path. That said, you don't have to unpack the jar file, you can simply drop it into the c:\hhgg\classes, put c:\hhgg\classes\my_archive.jar into your %CLASSPATH%, and again import as above. Regards, Emir. DISCLAIMER: The content of the preceding message is exclusively the personal opinion of the author, i.e. myself. Under no circumstances should the content be attributed to my employer.
RE: IIS - HTTPS - Tomcat
Hello, I'm working with Tomcat and IIS using the redirector ispi_redirect.dll (worker used = ajp12). (Windows 2000 server) It's works very well for the requests in HTTP. Now, I need to securise the site with HTTPS. How can I do ? May I use the ajp13 worker ? In this case, how to declare it in the server.xml ? And what about iis ? Thanks, Delphine
packaged (jar) servlets
Hi, i'm running tomcat 3.2.3 as a standalone server on Win 2K OS. i have some trouble in deploying packaged (.jar) servlet's. there's no problem by running the examples can anyone outline me the necessary steps/configurations to run packaged servlets. please help ;-) Thanx in advance Sahin Türeyenler
RE: Query
Of course, try: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html and the links too ;) Loïc Lefèvre -Message d'origine- De : Al Hatf [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 1 août 2001 12:34 À : [EMAIL PROTECTED] Objet : Query Hey There, Can u direct me to any docs as to how to go about connecting apache to tomcat Thanks --- Loïc Lefèvre [EMAIL PROTECTED] wrote: Hi It's me againn ;) Now that apache and tomcat SEEMS to work together, I've got dome problems about SESSION. After being 'loged', the following code return null: HttpSession session = req.getSession(false); The question is : WHY? Loïc Lefèvre __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
making URL of html pages published in tomcat case insensitive
hi all I would like to know how i could make the url of html pages published in tomcat case insensitive.. ie i want http://myhome:8080/page/index.html and http://myhome:8080/page/INDEX.HTML to point so the same page.. Pls note i use tomcat 3.1 on win 2000 Thanking you in advance sibi
RE: PROBLEM with...
Hem sorry, I should have say more: When the server receive the log request, a session is created (with true) and a redirection is made to an other page, in this page, the following code is executed: HttpSession session = req.getSession(false); and it return null :( So now I can ask: WHY? Loïc Lefèvre -Message d'origine- De : bk [mailto:bk]De la part de Bernd Koecke Envoyé : mercredi 1 août 2001 12:41 À : [EMAIL PROTECTED] Objet : Re: PROBLEM with... Hi, Loïc Lefèvre wrote: Hi It's me againn ;) Now that apache and tomcat SEEMS to work together, I've got dome problems about SESSION. After being 'loged', the following code return null: HttpSession session = req.getSession(false); Try it with the Parameter 'true'. You don't have a session by default and with Parameter 'false' you won't get a new one. The question is : WHY? Loïc Lefèvre Bernd -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED]
Re: making URL of html pages published in tomcat case insensitive
From the Tomcat readme file: 6.6 URL's are now case sensitive on all operating systems As of Tomcat 3.2, URL's are case sensitive for all operating systems, including operating systems which have case insensitive file systems, such as Windows. This represents a change from Tomcat 3.1, where URL's were case insensitive on case insensitive OS's. This was done for a number of reasons, security and portability among them. A non-portable web application, i.e. one with case mismatches, which worked on a case insensitive OS under Tomcat 3.1 will show its non-portability when run under Tomcat 3.2. - Hari - Original Message - From: Sibi Joseph [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 4:18 PM Subject: making URL of html pages published in tomcat case insensitive hi all I would like to know how i could make the url of html pages published in tomcat case insensitive.. ie i want http://myhome:8080/page/index.html and http://myhome:8080/page/INDEX.HTML to point so the same page.. Pls note i use tomcat 3.1 on win 2000 Thanking you in advance sibi
RE: Strange bug - XSLT filter on Tomcat 4.0 b6
Also, to follow up - there is another filter, this time from IBM devworks - could someone please try this and tell me I'm not going mad - there is a bug here? Code from http://www-106.ibm.com/developerworks/library/j-tomcat/index.html Ok - so set up the filter (DO NOT USE THE IE FILTER - this will bias your experiment) in web.xml change the settings to have a very much larger replace string than the search string - eg: filter filter-nameReplace Text Filter/filter-name filter-classcom.ibm.devworks.filters.ReplaceTextFilter/filter-class init-param param-namesearch/param-name param-valuecannot/param-value /init-param init-param param-namereplace/param-name param-valuemust not - ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever EVER/param-value /init-param /filter so we are replacing a 6byte text string with a 2865byte text string. Run the filter - hopefully you will see some strange results as I have: here is the correct 3052byte output string *** html head /head body h1A Sample Index File/h1 This is a sample index file. Please note that most pages on this site must not - ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever ever
Re: PROBLEM with...
Loïc Lefèvre wrote: Hem sorry, I should have say more: When the server receive the log request, a session is created (with true) and a redirection is made to an other page, in this page, the following code is executed: HttpSession session = req.getSession(false); and it return null :( So now I can ask: WHY? Hello, I had the same symptom and it was because my rewriterules in Apache was eating the session and the best solution i have find is to use cookies for storing the session. ( RequestInterceptor className=org.apache.tomcat.request.SessionInterceptor noCookies=false / -- was true ) I will now try to use the rewriterule mentionned in the FAQ for verify that she work, and if it works, i give a feedback to you/the mailing list (it seems to be the same problem no ?) regards, Ludovic Loïc Lefèvre -Message d'origine- De : bk [mailto:bk]De la part de Bernd Koecke Envoyé : mercredi 1 août 2001 12:41 À : [EMAIL PROTECTED] Objet : Re: PROBLEM with... Hi, Loïc Lefèvre wrote: Hi It's me againn ;) Now that apache and tomcat SEEMS to work together, I've got dome problems about SESSION. After being 'loged', the following code return null: HttpSession session = req.getSession(false); Try it with the Parameter 'true'. You don't have a session by default and with Parameter 'false' you won't get a new one. The question is : WHY? Loïc Lefèvre Bernd -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
RE: Who should use JDBC realm
Hi I wanna know about JDBC realm. Who should use it Y. Please let me know Thanks. JDBCRealm is a method for securing you webapp. In my opinion two of the guidelines for choosing to go with a JDBCRealm is if you want a security system which is fully portable to any OS and if you want a managed authentication free from having to develop one for yourself. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: Tomcat-IIS
Even without your actual entries, I can tell you that your problem is probably due to you adding the filter to the wrong IIS instance or that you don't have your uriworkermap.properites set up correctly. For the first one, the filter only works on the server that you add the filter to. If you have virtual servers and you want Tomcat on all of them, you need to add the filter to all of them. For the second one, look at your file and remember that you can only use an asterisk at the beginning or end of a URL, not both, and not in the middle. Randy -Original Message- From: Marko Viitanen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 6:57 PM To: '[EMAIL PROTECTED]' Subject: Tomcat-IIS Hi, I followed the instructions in the tomcat-iis how-to file. I have now started over about 10 times, and I just can't get it to work. I am running Windows 2000 professional, JDK 1.3.1, Tomcat 3.2.3 Here is my registry: ...OLE_Obj... Here is the isapi filter location ...OLE_Obj... Here is the jakarta virtual path properties: ...OLE_Obj... Here is the filter properties: ...OLE_Obj... I think I have done everything as it says in the how-to. However I just can't get it to work. Can you see something obvious that I am doing wrong? I have tried the registry key values with and without surrounding parentheses. Neither works. I don't even get an isapi.log log. Web server log is like this: #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2001-07-31 22:39:39 #Fields: time c-ip cs-method cs-uri-stem sc-status 22:39:39 127.0.0.1 GET /examples/servlet/HelloWorldExample 404 THank you for your help Marko
RE: build mod_jk.so on solaris
Robert Parker wrote: Im trying to build mod_jk.so on solaris. Ive dowloaded the source 3.2.3 and tried using the following command... $APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -c *.c ../jk/*.c This worked for me (note -lposix4): /usr/local/apache/bin/apxs -c -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -lposix4 *.c ../jk/*.c -- Andrew -- Tell the US to free Dmitry Sklyarov! http://www.freesklyarov.org
Apache / Tomcat v3.3b1
I've just moved from Tomcat v3.3m4 to v3.3b1. It's clear that there are some (a lot) changes in the auto-generated mod-jk.conf. The setup before worked fine, but I can't get Apache to redirect to Tomcat for the new release, regardless of whether I use the old or new autogenerated files. Any one had any similar problems? Many thanks Mark
Re: PROBLEM with...
Hi, On Wed, 1 Aug 2001, Ludovic Maitre wrote: HttpSession session = req.getSession(false); That will _always_ return true, unless some time before its call there has been a call: HttpSession session = req.getSession(true); This is how you create a session. You mention logging, I'm not sure why you think that should create a session. If you have the above line and its not working, then something is wrong, otherwise its perfectly understandable. ( RequestInterceptor className=org.apache.tomcat.request.SessionInterceptor noCookies=false / -- was true ) Sessions work with or without cookies. If you specify noCookies=true then links will need to have url rewriting done on them to track the session. But sessions definately work both ways. cheesr dim I will now try to use the rewriterule mentionned in the FAQ for verify that she work, and if it works, i give a feedback to you/the mailing list (it seems to be the same problem no ?) regards, Ludovic Loïc Lefèvre -Message d'origine- De : bk [mailto:bk]De la part de Bernd Koecke Envoyé : mercredi 1 août 2001 12:41 À : [EMAIL PROTECTED] Objet : Re: PROBLEM with... Hi, Loïc Lefèvre wrote: Hi It's me againn ;) Now that apache and tomcat SEEMS to work together, I've got dome problems about SESSION. After being 'loged', the following code return null: HttpSession session = req.getSession(false); Try it with the Parameter 'true'. You don't have a session by default and with Parameter 'false' you won't get a new one. The question is : WHY? Loïc Lefèvre Bernd -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
RE: PROBLEM with...
Hemm, look at the last answer to this question ;) -Message d'origine- De : Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 1 août 2001 14:28 À : [EMAIL PROTECTED] Objet : Re: PROBLEM with... Hi, On Wed, 1 Aug 2001, Ludovic Maitre wrote: HttpSession session = req.getSession(false); That will _always_ return true, unless some time before its call there has been a call: HttpSession session = req.getSession(true); This is how you create a session. You mention logging, I'm not sure why you think that should create a session. If you have the above line and its not working, then something is wrong, otherwise its perfectly understandable. ( RequestInterceptor className=org.apache.tomcat.request.SessionInterceptor noCookies=false / -- was true ) Sessions work with or without cookies. If you specify noCookies=true then links will need to have url rewriting done on them to track the session. But sessions definately work both ways. cheesr dim I will now try to use the rewriterule mentionned in the FAQ for verify that she work, and if it works, i give a feedback to you/the mailing list (it seems to be the same problem no ?) regards, Ludovic Loïc Lefèvre -Message d'origine- De : bk [mailto:bk]De la part de Bernd Koecke Envoyé : mercredi 1 août 2001 12:41 À : [EMAIL PROTECTED] Objet : Re: PROBLEM with... Hi, Loïc Lefèvre wrote: Hi It's me againn ;) Now that apache and tomcat SEEMS to work together, I've got dome problems about SESSION. After being 'loged', the following code return null: HttpSession session = req.getSession(false); Try it with the Parameter 'true'. You don't have a session by default and with Parameter 'false' you won't get a new one. The question is : WHY? Loïc Lefèvre Bernd -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
tomcat 3.3b1 performance
Hello I am using tomcat 3.3b1 .. Despite the fact that i have precompiled my JSP pages and have appended ?jsp_compile=true to my URLs, I am still experiencing about a minute of lag time before the page loads. This is quite annoying, considering when using an earlier version ( tomcat 3.1) , I did not experience this. Any ideas? Aaron Cooper
Windows Versus Linux
I am new to the mailing list, so sorry if this question has been asked before. I have been doing most my development on a Windows 98 box and setting up Apache, Tomcat and Mysql was a snap, but I am trying to setup a Linux server and it has been a pain so far. I know my way around the Linux operating system, but for some reason I can't get all the pieces to work together properly. I was wondering if there is any big benefit to running Apache, Tomcat and Mysql on Linux over Windows NT server. I plan to buy Windows NT server if I can't get this setup tonight. Thanks in advance, -- Chad __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: 403: forbidden error
I know I've responded to this before without being much help, but I'm willing to volunteer hopefully a more constructive answer this time. I have Cocoon running successfully after doing a lot of hunting on the web for answers to different problems (and one or two hacks). Could you post the mod_jk.conf and relavant parts of the Apache file you're using (ie sections relating to permissions)? If mod_jk isn't working, Apache's response should probably be more like 500 Server error. Anyone with more knowledge of mod_jk internals could give a better answer on this. I think there's possibly something in Apache's config that's preventing the request from being fulfilled. Maybe a Deny directive or an Order directive switching up Allow and Deny the wrong way to. As a test, you could place a static page on the servlet's directory and see if you can access it. As a further test, comment our all the directives relating to mod_jk in mod_jk.conf and restart apache leaving only the apache specific directives in place. This effectively takes mod_jk out of the picture (mod_jk.so shouldn't even load at this point) and only tests Apache's security settings. Just my thoughts on the subject. Anyone else? On Wednesday 01 August 2001 12:01 am, you wrote: Hello guys, I am running tomcat 3.2.2 with apache 1.3.11 on SuSE Linux 7.1,and communication between them is thro' mod_jk.so I compiled the src of tomcat and copied the mod_jk.so in my /apache/libexec. I have also installed jetspeed and cocoon within my webapps. The problems i am facing are, 1. When i access tomcat standalone , everything works fine. But when i access cocoon or jetspeed(or for that matter examples, test of tomcat) thru apache http://localhost/cocoon , i get a 403: forbidden error. Forbidden You don't have permission to access /cocoon/ on this server. Apache/1.3.11 Server at stonebox Port 80 Also my mod_jk.log shows the following lines repeatedly, [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL par ameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL p arameters [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL par ameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL p arameters 2. Is my mod_jk.so working properly? I have asked this questions already on the mailing list, but i haven't got any answers black holes are, when GOD is dividing by zero -- David Smith, CISSP Network Operations Supervisor Cornell University Department of Entomology 2121 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0939 Email: [EMAIL PROTECTED]
Re: Windows Versus Linux
[...] I was wondering if there is any big benefit to running Apache, Tomcat and Mysql on Linux over Windows NT server. If you are running Apache 1.3.x on WindowsNT then yes. Apache 1.3.x on Linux (and Unix systems) is *much* more faster and stable than on any Windows platform. Things will change when Apache 2.0 will be out, as it uses fast (on both OS flavors) APR library. Tomcat speed is pretty the same, but it really relies on speed of your JVM. If you can get faster JVM - Tomcat will run faster. Dunno about MySQL performance (tried it only on Linux). -- Jacek Prucia 7bulls.com S.A.
RE: Windows Versus Linux
I am new to the mailing list, so sorry if this question has been asked before. I have been doing most my development on a Windows 98 box and setting up Apache, Tomcat and Mysql was a snap, but I am trying to setup a Linux server and it has been a pain so far. I know my way around the Linux operating system, but for some reason I can't get all the pieces to work together properly. I was wondering if there is any big benefit to running Apache, Tomcat and Mysql on Linux over Windows NT server. I plan to buy Windows NT server if I can't get this setup tonight. Besides being free... In my opinion(this is a highly contested argument:), Linux is more stable and more secure. A perfect example is the recent Code Red Worm which attacks IIS. While you aren't going to be running IIS(I assume) it's just a general design philosophy. In the end I think it comes down to personal preference and/or what your client/boss says they want to use. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: Windows Versus Linux
hello, what do I have to do in order to prevent tomcat 3.2 from serving certain file types. For example I don't want tomcat to serve files ending with .pwd Instead tomcat should send an error message. Thanks a lot Falk
[X-server simulator] image resize
Where can I download X-server simulator ? And If I use XFree86,I have to login X-server for add host names to the list allowed to make connections to the X server, is there somingthing simple method ? Thanks You can do this the the Java Advanced Imaging library. Beware though when running advanges imaging on a Unix box that does not have X installed. A bug in Java requires a connect to the X-server to be able to handle images. The workaround is to install a X-server simulator, called Xvbf. This worked fine for me on a solaris box, uploaded images are scaled to a 'small' size and a big size and stored to be displayed later on. I have some sources that perform scaling (on-the-fly) which are available on request. Wouter -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: 31 July 2001 17:13 To: [EMAIL PROTECTED] Subject: image resize Hi, this is probably a bit of topic... What would be the best way to resize images with servlet ? I have .jpgs and .gifs in files (not kept in database) and I need to create new files in different sizes from those images. Is anyone willing to give me a hint (or more :) on how to do it. thanx -r
Connector for IIS Tomcat 4?
Hi, Does anybody know whether the Tomcat redirector plugin for IIS will work with Tomcat 4.X as well? If so are there any special configuration options i have to consider? Thanks, Wilko Hische
Re: Running Tomcat stanalone without the port number?
If you are doing this on Linux. You will need to run tomcat as root as only root is allowed to use ports below 1024. I generally prefer to run Tomcat as nobody. -- BillWorker 2i Development Team, Infocom Solutions Pvt. Ltd.
How to send a XML Document with a request POST ?
How to send a XML Document with a request POST ? Delphine
Http and Https for the same servlet ?
Is it possible for one servlet to receive some HTTP request and some HTTPS requests ? Delphine
Re: Application Scope
Hi Beans are created only if it does not already exist. So declaring does not recreate it. It only references the bean with the same id. Ashish Shrestha http://headlines.sourceforge.net
Can anyone send me mod_jk.so for Redhat 7.0 / Apache 1.3.14? / Tomcat 3.2.1
Hi, I've been trying to install Tomcat 3.2.1 in a Redhat 7.0 box running Apache 1.3.14 for a few days. As many people report in many cases, Tomcat works nice standalone (as well as Apache) but cannot integrate them to work together. Well, this is not exactly true; the apache's logs say that apache / mod_jk has been started. That is, it seems that apache realizes that mod_jk is working... The actual problem is that while Tomcat serves both .jsps and servlets when using URLS of the sort http://myserver:8080..., apache seems not to be redirecting these requirements when I try to execute them through apache itself. The browser simply stalls... forever. I've read the howtos and even the archives and followed all the directions given by the people contributing to this list but one: I have not compiled mod_jk.so by myself. I tried to do it one hour ago, but, I do not know why, apxs does not exist! I tried to find this program with no success at all. In fact, I'm not the one who set up the box, so don't know how Apache was built. Still worse, I'm not a linux expert, I'm not able to reinstall it. Well, since I downloaded my current version of mod_jk.so from the web (it was jakarta's) some time ago, I'm not sure whether it is the right one. Since it seems that everything else I did is correct, I *guess* that the problem is mod_jk.so itself. That's why I ask you to send me the right version (my email address is [EMAIL PROTECTED]). By the way, mod_jk.log is created and always empty. jasper.log and servlets.log have the usual lines on them. I can see ports 8007 and 8009 both listening. I have included NO additional contexts (I'm just trying to run the examples). I have defined the right TOMCAT_HOME and JAVA_HOME paths in workers.properties (as well as the ps as /). I have created an ajp13 connector in server.xml following the directions given in one of the messages in the archive.I have copied mod_jk.conf-auto in the same directory than httpd.conf and appended the line include /the/full/path/to/mod_jk.conf-auto at its end. When booting, I stop apache, start tomcat, and restart apache (in this precise order). And see no errors at all in the log files. My jdk is 1.3.0_02 (sun's). And I'm desperate. Can you help me? Thanks alot for your interest! Jose.
SLOW response time
I have a setup with Apache 1.3.x, tomcat 3.2.1. On some random occasions, the response times will be veeerrryyy slow. So slow that it takes almost two minutes before the pages will even switch. Does anyone know what may be causing this, or has anyone had a similar experience? Any info would be greatly appreciated! Thanks! Brandon Cruz
Re: Apache / Tomcat v3.3b1
I had a quirky problem like this running on Netware. I saved my server.xml and mod_jk.conf, and blew it away. When I reinstalled, I copied back my server.xml and mod_jk.conf. Then, in the Apache httpd.conf, my include line was /modules/mod_jk.conf, which correctly pointed to mod_jk.nlm, not mod_jk.so. Then, when Tomcat ran the first time, it generated the corrrect tomcat-apache.conf-auto. Makes no difference, since now Apache doesn't use it anyway. Originally, tomcat-apache.conf-auto's line always pointed to /libexec/mod_jk.so, and I could not change its behavior. Mark Muffett wrote: I've just moved from Tomcat v3.3m4 to v3.3b1. It's clear that there are some (a lot) changes in the auto-generated mod-jk.conf. The setup before worked fine, but I can't get Apache to redirect to Tomcat for the new release, regardless of whether I use the old or new autogenerated files. Any one had any similar problems? Many thanks Mark
The server startup failed
Hi your description to install a NT-service to startup the tomcat webserver doesn' t work. I'm using jakarta-tomcat-3.2.3 and jdk1.3 with WinNT4 SP6. The startup fails with error 2140. What can I do? René
Problems when connecting JSP and Oracle
Hi! I am trying to publish this page: // html body %@ page import=java.sql.* % % String url = jdbc:pool:oracle:thin:@localhost:1521:MY_DB; String username=user_xx; String password=xxx; Connection conn = DriverManager.getConnection(url, username, password); Statement stat = conn.createStatement(); ResultSet result = stat.executeQuery(SELECT * FROM MY_TABLE); result.next(); int n = result.getInt(1); result.close(); n++; stat.executeUpdate(UPDATE DBTest SET Tested = + n); % pDatabase test executed %= n % times./p % conn.close(); % /ul /body /html But I get this error: org.apache.jasper.JasperException: Unable to compile class for JSP/usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejsp db_jsp_1.java:65: Undefined variable: user_xx String username=user_xx; ^ /usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejspdb_ jsp_1.java:66: Undefined variable: xxx String password=xxx; What am I doing wrong? - This mail was sent through Eoffice: http://www.eoffice.dk
RE: The server startup failed
your tomcat may not be starting because your NT is set to NOT read DOS 8.3. There is registry setting that can disable the NT box from reading DO8.3 names. The mappings in your wrapper.properties are short form (with ~) Heres the problem: the service set up can only read 8.3, NT can only read long form because of the registry setting. you can: 1) switch the registry setting so that your NT can read short form DOS8.3 OR: change the mappings in wrapper.properties to long form that just happen to be 8 or less words ie: Progr~\ (program files can become Program\ please let me know if you come up with any other solutions to this most pesky problem -Original Message- From: Rene Berger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 11:07 AM To: tomcat-user Subject: The server startup failed Hi your description to install a NT-service to startup the tomcat webserver doesn' t work. I'm using jakarta-tomcat-3.2.3 and jdk1.3 with WinNT4 SP6. The startup fails with error 2140. What can I do? René
RE: Can anyone send me mod_jk.so for Redhat 7.0 / Apache 1.3.14? / To mcat 3.2.1
On Wed, 1 Aug 2001, Navarro, Jose wrote: Jan, first of all, thanks for your quick help. And my congratulations for your page! No, I hadn't checked it. Now I've read the relevant parts. In one of the documents you've got there I have found a link to jakarta.apache.org... but it's dead. There's nothing related to 3.2.1 there. That's why I sent my previous message with my request. If you can point me to the exact link. They usually remove the old versions from distribution, so you probably will not find anything on 3.2.1 so try replacing by 3.2.3 Jan So, I still need that binary version! Thanks. Jose. In: http://www.ccl.net/cca/software/UNIX/apache/apacheRH7.0httpd/README.html just above section 15) there is a link: While I provide the binary of mod_jk.so here (save it as: RightClick/SaveLinkAs) you should really compile it on your own machine. Try it... But again, you should compile it yourself... -Mensaje original- De: Jan Labanowski [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 01 de agosto de 2001 16:41 Para: '[EMAIL PROTECTED]' Asunto: Re: Can anyone send me mod_jk.so for Redhat 7.0 / Apache 1.3.14? / To mcat 3.2.1 On Wed, 1 Aug 2001, Navarro, Jose wrote: Hi, I've been trying to install Tomcat 3.2.1 in a Redhat 7.0 box running Apache 1.3.14 for a few days. Did you look at: http://www.ccl.net./cca/software/UNIX/apache/ Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
RE: Problems when connecting JSP and Oracle
enclose the username and password variables in quotes String username=user_xx; String password=xxx; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 11:24 AM To: [EMAIL PROTECTED] Subject: Problems when connecting JSP and Oracle Hi! I am trying to publish this page: // html body %@ page import=java.sql.* % % String url = jdbc:pool:oracle:thin:@localhost:1521:MY_DB; String username=user_xx; String password=xxx; Connection conn = DriverManager.getConnection(url, username, password); Statement stat = conn.createStatement(); ResultSet result = stat.executeQuery(SELECT * FROM MY_TABLE); result.next(); int n = result.getInt(1); result.close(); n++; stat.executeUpdate(UPDATE DBTest SET Tested = + n); % pDatabase test executed %= n % times./p % conn.close(); % /ul /body /html But I get this error: org.apache.jasper.JasperException: Unable to compile class for JSP/usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejsp db_jsp_1.java:65: Undefined variable: user_xx String username=user_xx; ^ /usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejspdb_ jsp_1.java:66: Undefined variable: xxx String password=xxx; What am I doing wrong? - This mail was sent through Eoffice: http://www.eoffice.dk
Re: Problems when connecting JSP and Oracle
[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: Hi! I am trying to publish this page: // html body %@ page import=java.sql.* % % String url = jdbc:pool:oracle:thin:@localhost:1521:MY_DB; String username=user_xx; String password=xxx; Connection conn = DriverManager.getConnection(url, username, password); Statement stat = conn.createStatement(); ResultSet result = stat.executeQuery(SELECT * FROM MY_TABLE); result.next(); int n = result.getInt(1); result.close(); n++; stat.executeUpdate(UPDATE DBTest SET Tested = + n); % pDatabase test executed %= n % times./p % conn.close(); % /ul /body /html But I get this error: org.apache.jasper.JasperException: Unable to compile class for JSP/usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejsp db_jsp_1.java:65: Undefined variable: user_xx String username=user_xx; ^ /usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejspdb_ jsp_1.java:66: Undefined variable: xxx String password=xxx; What am I doing wrong? Not putting quotes around strings? String username=user_xx; String password=xxx; Peir
Re: Problems when connecting JSP and Oracle
When using Strings you must enclose the value with double quotes (). Something like this: String username=user_xx; String password=xxx; In the code you shown, what you are doing is trying to assign the value of a Variable called user_xx to username, not the word user_xx. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 10:23 AM Subject: Problems when connecting JSP and Oracle Hi! I am trying to publish this page: // html body %@ page import=java.sql.* % % String url = jdbc:pool:oracle:thin:@localhost:1521:MY_DB; String username=user_xx; String password=xxx; Connection conn = DriverManager.getConnection(url, username, password); Statement stat = conn.createStatement(); ResultSet result = stat.executeQuery(SELECT * FROM MY_TABLE); result.next(); int n = result.getInt(1); result.close(); n++; stat.executeUpdate(UPDATE DBTest SET Tested = + n); % pDatabase test executed %= n % times./p % conn.close(); % /ul /body /html But I get this error: org.apache.jasper.JasperException: Unable to compile class for JSP/usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejsp db_jsp_1.java:65: Undefined variable: user_xx String username=user_xx; ^ /usr/lib/jakarta-tomcat-3.2.3/work/localhost_8080/_0002fdb_0002ejspdb_ jsp_1.java:66: Undefined variable: xxx String password=xxx; What am I doing wrong? - This mail was sent through Eoffice: http://www.eoffice.dk
apxs:Break: Command failed with rc=16777215
apxs:Break: Command failed with rc=16777215 Has anyone a solution to this problem? Any help would be greatly appreciated ! Regards, Am using: Red Hat Linux release 7.1 Kernel 2.4.2-2 i586 apache-1.3.19 jdk1.3.1 tomcat3.2.3 /usr/local/apache/bin/apxs -c -o mod_jserv.so *.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/apache/include -c autochange.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/apache/include -c jserv_ajpv11.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo cal/apache/include -c jserv_ajpv12.c ... ... ... LINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/lo ache/include -c mod_jserv.c od_jserv.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wrapper.o _watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mmap.o jserv_im jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochange.o reak: Command failed with rc=16777215
Problems when connecting JSP and Oracle
Hi! Thank you, Cory. I've got another problem after enclosing the variables in quotes: ---//- Internal Servlet Error: javax.servlet.ServletException: No suitable driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImpl.java:459) ---//--- How must I install JDBC drivers? I remember installing then at the same time as Oracle... - This mail was sent through Eoffice: http://www.eoffice.dk
BUGjsessionid/BUG
Hemm, -1- Did you encounter problems using Session under Tomcat? -2- If yes, did you resolve it? -3- If yes, how? -4- What should I do when using Session? -5- What should I take care of? -6- ... Configuration: - Apache 1.3.12 - Tomcat 3.2.3 - mod_jk.so 1.24 I'm very very confused about that... Thanks in advance Loïc Lefèvre
Re: making URL of html pages published in tomcat case insensitive
Hi hari Thank you very much. that was really helpful.. reagards sibi - Original Message - From: Hari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 4:37 PM Subject: Re: making URL of html pages published in tomcat case insensitive From the Tomcat readme file: 6.6 URL's are now case sensitive on all operating systems As of Tomcat 3.2, URL's are case sensitive for all operating systems, including operating systems which have case insensitive file systems, such as Windows. This represents a change from Tomcat 3.1, where URL's were case insensitive on case insensitive OS's. This was done for a number of reasons, security and portability among them. A non-portable web application, i.e. one with case mismatches, which worked on a case insensitive OS under Tomcat 3.1 will show its non-portability when run under Tomcat 3.2.
RE: tomcat 3.3b1 performance
Hi Yes , on first access. After precompiling my JSPs, there is still lag time when I first access the page. However, whenever I make changes to my JSP page and recompile it, the lag time is still there. Have you experienced something similar? Cheers Aaron Ignacio J. Ortega [EMAIL PROTECTED] 08/01/01 01:06pm When you get this behaviour? on first access? Saludos , Ignacio J. Ortega -Mensaje original- De: Aaron Cooper [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de agosto de 2001 15:06 Para: [EMAIL PROTECTED] Asunto: tomcat 3.3b1 performance Hello I am using tomcat 3.3b1 .. Despite the fact that i have precompiled my JSP pages and have appended ?jsp_compile=true to my URLs, I am still experiencing about a minute of lag time before the page loads. This is quite annoying, considering when using an earlier version ( tomcat 3.1) , I did not experience this. Any ideas? Aaron Cooper
No suitable driver
Hi! Thank you, Cory. I've got another problem after enclosing the variables in quotes: ---//- Internal Servlet Error: javax.servlet.ServletException: No suitable driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImpl.java:459) ---//--- How must I install JDBC drivers? My configuration: CLASSPATH=/u01/app/oracle/product/8.0.5/jdbc/lib/classes111.zip - This mail was sent through Eoffice: http://www.eoffice.dk
charector encoding Problem while running servlet in tomcat
hi all I have a servlet which outputs some chinese content to the browser. The webserver i used is Tomcat3.2.3. if i try browsing chinese sites with chinese char encoding on a english version of windows 2000 the pages comes well without specifying any encoding. When i used the same servlet in the Chinese Version of windows 2000, i had to set the characterset in the servletresponse (ie. hsResponse.setContentType text/plain;charset=gb2312) to display the page correctly in the browser. If i specify the encoding scheme like above pages (both chinese and english) are displayed properly in windows 2000 chinese version but chinese pages will not display properly in the english version of windows 2000. There was no problems in displaying pages with english content in both versions of windows (both when the encoding is specified and when it is not). Now my question is 1) why does this happen? 2) Is there any way of getting the default encoding of a machine and set the servlets encoding scheme accordingly. NOTE: The default encoding scheme in english version of windows 2000 was found to be Cp1252 and GBK in Chinese version thanks in advance sibi
Re: How to send a XML Document with a request POST ?
On Wednesday 01 August 2001 03:05 pm, zze-messager FTM balr002 wrote: How to send a XML Document with a request POST ? If you use Xerces, you can use the org.apache.xml.serialize.Serializer class and simply serialize it to the outputstream you get. (e.g. request.getOutputStream() in a servlet) -- Nils O. Selåsdal
Re: How to send a XML Document with a request POST ?
Read this http://forums.java.sun.com/thread.jsp?forum=45thread=79142 Good luck, German - Original Message - From: zze-messager FTM balr002 [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 9:05 AM Subject: How to send a XML Document with a request POST ? How to send a XML Document with a request POST ? Delphine
RE: No suitable driver
Option 1: Search the mailing list archives and discover that this is an EXTREMELY common question. The benefit of this is that you don't have to put up with people like me telling you to go look at a place you should have thought to look before you sent your question. Option 2: Rename your .zip file to .jar. Then place the file in your WEB-INF/lib folder. If you are trying to use JDBCRealm (which you aren't, but I'll say it for everyone else reading the message) then the .jar file will need to go into either TOMCAT_HOME/lib or the classpath. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 12:28 PM To: [EMAIL PROTECTED] Subject: No suitable driver Hi! Thank you, Cory. I've got another problem after enclosing the variables in quotes: ---//- Internal Servlet Error: javax.servlet.ServletException: No suitable driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont extImpl.java:459) ---//--- How must I install JDBC drivers? My configuration: CLASSPATH=/u01/app/oracle/product/8.0.5/jdbc/lib/classes111.zip - This mail was sent through Eoffice: http://www.eoffice.dk
Default Servlet prevents loading of static resources.
Hi There TC Peeps, I have added a default servlet to a little test webapp (servlet-mapping//servlet-mapping). After I did this I can no longer access static resources (html, images etc.) in the app. All requests, apart from those to other (mapped) servlets are picked up by the default. e.g. I have an index.html in the apps welcome-file-list that cannot be got at implicitly or explicitly. The same behaviour is noted in ORION. 1. Have I noticed something strange, or should it be this way? 2. If it should be this way what is the use of a default servlet? (Can anyone give an example of usage?) Miles
Tomcat breaking down on HP-UX
We're trying to run Tomcat on HP-UX v11.00, and it will silently and mysteriously die at times, in circumstances that we can't reproduce reliably. I saw a message here from January where someone had a similar experience, but I didn't see any followup on it. (http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg06485.html.) Has anyone had similar experiences? Some more specifics: Tomcat version: 3.2.2, running standalone JDK: java version JavaVM-1.3.0.00 Java(TM) 2 Runtime Environment, Standard Edition (build jinteg:11/28/00-11:08) HotSpot VM (build 1.0.1fcs jinteg:11/28/00-13:54 PA2.0, mixed mode) HP-UX version: HP-UX gvtrns04 B.11.00 U 9000/800 117901517 unlimited-user license We can't find any error messages in the server.log, in our log4j.log, on the console, or any system logs. There's no core file dumped either, but the process just disappears. Our load is between 1-3 users. To me, that sounds like Tomcat is exiting rather than bombing, but it's odd that it's not saying anything. Thanks for any hints. John
HTTP 404 Error
Hello, I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. Any suggestions would be appreciated. Jeff
Loadbalancing and logs
Hi -- I have set up loadblancing btwn 2 machines. I have their lbfactor both set to 1. If I pound on the same servlet with about 4 windows open, I can see I am hitting both machines, but every once in a while the browser returns Document contains no data errors. Does the lb'ing get written to a log somewhere? What can I tweak or look for in my config to get rid of these errors? In standalone, these errors do not occur. Maureen Fisher, CIT/ID, Cornell University Ithaca, NY 14850 [EMAIL PROTECTED] http://mo.cit.cornell.edu/ Treat people as if they were what they ought to be and you help them to become what they are capable of being. --Johann Wolfgang von Goethe
RE: HTTP 404 Error
I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. To get your desired results you can either change your server.xml to be Context path=/ docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context where the important thing to note is the path, or you can change the request to be http://localhost:8080/ServletTest/ServletTest. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: HTTP 404 Error
1) Tomcat, by default, connects on port 8080. If you want to change that, edit your server.xml. 2) It sounds like your HTML is malformed or empty. Use the View source menu in the browser to see what you're spitting out. -- Bill K. -Original Message- From: Jeff Rancier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 10:26 AM To: [EMAIL PROTECTED] Subject: HTTP 404 Error Hello, I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. Any suggestions would be appreciated. Jeff
RE: HTTP 404 Error
Thanks. I got it. I forgot to mention I was running with IIS 5.0. The addition of the following: /ServletTest/*=ajp12 to my uriworkermap.properties file did the trick. Jeff -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 12:46 PM To: '[EMAIL PROTECTED]' Subject: RE: HTTP 404 Error I'm stumped. I have the following directory structure/files: c:/tomcat/webapps/ServletTest/WEB-INF/web.xml c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class I added the following to my server.xml file: Context path=/ServletTest docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context And my web.xml contains: web-app servlet servlet-nameServletTest/servlet-name servlet-classServletTest/servlet-class /servlet servlet-mapping servlet-nameServletTest/servlet-name url-pattern/ServletTest/url-pattern /servlet-mapping /web-app If I attempt to open http://localhost/ServletTest, I get HTTP 404, file not found. If I attempt to open http://localhost:8080/ServletTest, I get the page cannot be displayed. To get your desired results you can either change your server.xml to be Context path=/ docBase=webapps/ServletTest crossContext=false debug=0 reloadable=true /Context where the important thing to note is the path, or you can change the request to be http://localhost:8080/ServletTest/ServletTest. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Internal error thrown by tomcat
I am running TC 3.2.1 w/IIS5 on Win2k SP2 I have a request that causes tomcat to throw the following error: java.lang.NumberFormatException: 3569 at java.lang.Integer.parseInt(Integer.java, Compiled Code) at java.lang.Integer.parseInt(Integer.java, Compiled Code) at org.apache.tomcat.util.MessageString.toInteger(MessageString.java:139) at org.apache.tomcat.util.MimeHeaderField.getIntValue(MimeHeaderField.java:290) at org.apache.tomcat.util.MimeHeaders.getIntHeader(MimeHeaders.java, Compiled Code) at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1 2ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Being that this is in the request's header(looking at the stack trace above), I think this is a n attack aimed at my IIS server(.htr request w/malformed header). But something is causing IIS to spin its wheels at 100% cpu and I'm not sure if it is this error, or the next request coming in. I am sending all requests to tomcat in my uriworkers.properties: /* = ajp12 Is it possible for the isapi filter to be the part of IIS in la-la land, or is IIS still processing the malformed request(it shouldn't right?) after tomcat(I'm assuming) sends it a 500 error. Also in my stderr log file, the JVM has done a thread dump. How is this possible when Tomcat is a service(I cannot send a control-c to its window)? Any comments/suggestions would be greatly appreciated. Charlie
Tomcat3.2.1 SSL
Hi All, Does tomcat3.2.1 support SSL? Also does running tomcat in ssl mode just involve changing the configuration files or is there a seperate binary? Thanx Ganesh
Re: Tomcat 4.05b - recompile required for SSL?
On 31 Jul 2001, Lloyd Llewellyn wrote: It is drop-in in the sense that any app that works under b5 should work unchanged under b6. However, I would never ever ever ever :-) try to install Tomcat or any other package on top of an existing directory containing a different version. That's just asking for weird and wild bugs caused by directory structure reorganizations between versions. Do yourself a favor and install b6 into a new directory, and copy your webapps (and server.xml file, if needed) over. Generally good advice, but considering that this is an upgrade from version 4.0b5 to 4.0b6, it's not unreasonable to consider that architectural elements like directory structure have remained the same... Quite possible that nothing but the class files have been changed. I've seen lots of people get bit by this kind of assumption, even on point releases and often even on patches. Therefore, I would suggest that people assume it *is* unreasonable :-). In the particular case of Tomcat 4, it is *definitely* unreasonable to assume directory organization stability until a final release occurs. It's very common during beta cycles to move stuff around because it works better in a different arrangement. Craig (yes, I'm one of the bitten-ee's so this is voice of experience :-)
RE: Tomcat3.2.1 SSL
It does. See your server.xml for directions on how to configure your existing server for SSL. (I did it today in under 10 minutes with a self-signed certificate.) Randy -Original Message- From: Sankaranarayanan Ganapathy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 1:45 PM To: '[EMAIL PROTECTED]' Subject: Tomcat3.2.1 SSL Hi All, Does tomcat3.2.1 support SSL? Also does running tomcat in ssl mode just involve changing the configuration files or is there a seperate binary? Thanx Ganesh
Re: *.properties files
On Wed, 1 Aug 2001, Jim Cheesman wrote: At 10:56 PM 31/07/01, you wrote: Where does tomcat expect to find the *.properties files. I've got a class that fails with it's ResourceBundle call to a properties file. I've tried it in the WEB-INF and WEB-INF/classes directories for the specific web app. Where to put them depends on what APIs you are using to read them. There are two fundamental choices: If you use ServletContext.getResource() or ServletContext.getResourceAsSteram(), you put them somewhere in your web application directory hierarchy, and use a context-relative path starting with a / to read them (just like you would pass to a request dispatcher). For example, to read the web.xml file, you could say: InputStream is = getServletContext().getResourceAsStream(/WEB-INF/web.xml); On the other hand, if you want to use Class.getResource() or Class.getResourceAsStream() to read them -- this is what the java.util.ResourceBundle family of classes do -- then you need to place the files under WEB-INF/classes, or in a JAR file under WEB-INF/lib, in exactly the same place that you would put a corresponding Java class file. The simplest use case would be a resource bundle named messages, where you have files messages_en.properties, messages_fr.properties, and so on. These files would go under /WEB-INF/classes. In tomcat 4.0b6 on Win2000 I'm using properties files that are in a jar file in WEB-INF/lib. This is equivalent to putting them unpacked under WEB-INF/classes. The key issue is that the package naming hierarchy has to match the directory structure inside the JAR (just like with class names). Could you post a specific example of the ResourceBundle.getBundle() call you are making, and where you have placed the corresponding properties files? Jim Craig McClanahan
Re: Beyond Tomcat 4..?
On Wed, 1 Aug 2001, chris brown wrote: Just wondering what's being planned for the future of Tomcat beyond the 4.0 release (if anyone knows...). For example, are there plans to make a release that uses JDK 1.4's scalable I/O features? (as both products are currently in beta, I imagine that could be some way off!) Experimenting with the new I/O calls is certainly something I'm interested in exploring (along with performance tuning in general). But the reality is that what actually gets added post-4.0 is based on what features people suggest, combined with what features people actually write code for. Are there particular things you're interested in seeing? Craig McClanahan - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:35 PM Subject: RE: SAX 2.0, sealing, Tomcat 3.2.3 On Tue, 31 Jul 2001, Bryan Rood wrote: Pier, I am interested in using a 4.0.something tomcat build. Are there official sources at apache that can confirm the VERY_stable declaration that you have made? My company won't let me use anything but a stable production release. Is the 4.0 the same as prod quality? thanks so much, I'm one of the primary authors of Tomcat 4.0, so I've got some thoughts about this (and undoubtedly some bias as well :-). The only reason that 4.0 has not been declared final yet is that the underlying specifications it is based on (Servlet 2.3 and JSP 1.2) are not yet final. In fact, small changes and clarifications are still going on, and it would be pretty silly to declare 4.0 final and then have to go change it because the specs changed underneath. There will shortly be a beta 7 release, to pick up the most recent specification-related changes. It should be considered a release candidate, and development efforts between now and release day will be focused on bug fixes (at the moment, there are very few bugs recorded against Tomcat 4 in the bug tracking system at http://nagoya.apache.org/bugzilla/) and improved documentation. Craig McClanahan Bryan -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: Re: SAX 2.0, sealing, Tomcat 3.2.3 Andrew Cooke at [EMAIL PROTECTED] wrote: I don't want to use 4.0 as it's beta. Don't worry about being a beta... It's stable, _VERY_ stable. Pier
RE: Beyond Tomcat 4..?
YES... integration with IIS5 and Win2K... Documentation for same... :P -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: Re: Beyond Tomcat 4..? On Wed, 1 Aug 2001, chris brown wrote: Just wondering what's being planned for the future of Tomcat beyond the 4.0 release (if anyone knows...). For example, are there plans to make a release that uses JDK 1.4's scalable I/O features? (as both products are currently in beta, I imagine that could be some way off!) Experimenting with the new I/O calls is certainly something I'm interested in exploring (along with performance tuning in general). But the reality is that what actually gets added post-4.0 is based on what features people suggest, combined with what features people actually write code for. Are there particular things you're interested in seeing? Craig McClanahan - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:35 PM Subject: RE: SAX 2.0, sealing, Tomcat 3.2.3 On Tue, 31 Jul 2001, Bryan Rood wrote: Pier, I am interested in using a 4.0.something tomcat build. Are there official sources at apache that can confirm the VERY_stable declaration that you have made? My company won't let me use anything but a stable production release. Is the 4.0 the same as prod quality? thanks so much, I'm one of the primary authors of Tomcat 4.0, so I've got some thoughts about this (and undoubtedly some bias as well :-). The only reason that 4.0 has not been declared final yet is that the underlying specifications it is based on (Servlet 2.3 and JSP 1.2) are not yet final. In fact, small changes and clarifications are still going on, and it would be pretty silly to declare 4.0 final and then have to go change it because the specs changed underneath. There will shortly be a beta 7 release, to pick up the most recent specification-related changes. It should be considered a release candidate, and development efforts between now and release day will be focused on bug fixes (at the moment, there are very few bugs recorded against Tomcat 4 in the bug tracking system at http://nagoya.apache.org/bugzilla/) and improved documentation. Craig McClanahan Bryan -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: Re: SAX 2.0, sealing, Tomcat 3.2.3 Andrew Cooke at [EMAIL PROTECTED] wrote: I don't want to use 4.0 as it's beta. Don't worry about being a beta... It's stable, _VERY_ stable. Pier
Tomcat and Apache, very newbie question !
Hello, Could some one, give a brief explanation about why to use Apache and Tomcat Together ?? what is the main difference between them ? Thanks in advance! -- Gustavo Mejía Mora INFOTEC Tel: 5624 28 00 Ext: 253
Tomcat-Solaris-JSP doesn't work.
Hi! Posted this yesterday, and no hits. PLease please help me out. I can elaborate more about the problem if it's confusing. Here's my system: Solaris 8, Tomcat 3.2.3. Trying to get a simple JSP page to work (tomcat examples, or my own). What happens is when I click to go to a JSP page, the browser never moves on, but in the tomcat directory $TOMCAT_HOME/work, there generates a HUGE java file, named _0002F...name of theJSPfile.dot.java that contains normal headings and then the FIRST line of my JSP file repeated OVER AND OVER in an out.println(First line of my code) statement. And this file will get as big as it's allowed by HD space (in gigabites). If I stop tomcat, it stops filling up. Problem 1) How do I get JSP pages to work 2) How to prevent this *.java file from getting bloated. 12 are probably related. From the tomcat examples page, the Servlets link and examples work, but JSP doesn't. I have tools.jar, and all the other *.jar files in the classpath. I've also started the Apache server before and after starting tomcat. I'm out of ideas. Thanks for any help!
Re: Strange bug - XSLT filter on Tomcat 4.0 b6
On Wed, 1 Aug 2001, HEBBRON,TOM (HP-UnitedKingdom,ex2) wrote: Hi - I've been writing an XSLT filter using the servlet 2.3 filter mechanism, and have come across this bug several times, including in the example xslt filter at suns JDC (http://developer.java.sun.com/developer/JDCTechTips/2001/tt0626.html#tip2) Basically, if the size of the transformation result is greater than the source xml file size, the output will be truncated. So, if I serve index.xml (599bytes) using the filter, and an xsl file which adds quite a lot of fancy html around the data from index.xml, I wil only get the first 599bytes of the output - although printing this output to System.out just after calling transformer.transform will yield the complete result stream. There is a corresponding problem if the transformed size is *smaller* than the original size. In that case, your filter will be writing fewer bytes than the container expects. It is your responsibility to call response.setContentLength() on the real response in your filter if you change the content length of the content provided by the original servlet. The value your filter sets must match the number of bytes your filter is actually going to write to the real response's output stream. The code I am using is published at the above URL. Looks like a bug in this code ... i'll send feedback to the author. I have also tried a couple of other example XSLT filters, and all of them have either come up with this error, or failed to work completely. Is this a problem with adding to the size of the servlet response - is it a fixed size? Without using filters, your servlet is responsible for settting the Content-Length header of the response (normally this is done by calling setContentLength()), and then writing exactly that many bytes. If the servlet does *not* set the content length explicitly, the container will deal with it (for example, if you're using HTTP/1.1 persistent connections, it will switch to chunked output mode). However, if the servlet *did* set the content length of the response, and a filter post-processes the response data to change the length, then it is the filter's responsibility to update the content length on the real response to match the number of bytes that it actually writes. The filter code could be modified to do this. It would involve capturing the output of the transform into a ByteArrayOutputStream (or perhaps to a temporary file if you're doing big transforms), counting the bytes, calling response.setContentLength(), and then copying the bytes to the response output stream. Thanks for any help/suggestions - I felt sure that someone else must have discovered this as well, but couldn't see anything on the web or mail archives. Tom Hebbron Tel: + 44 (0) 11731 29300 hp BCO e-business Fax: + 44 (0) 11731 29923 [EMAIL PROTECTED] Craig McClanahan
RE: Strange bug - XSLT filter on Tomcat 4.0 b6
On Wed, 1 Aug 2001, HEBBRON,TOM (HP-UnitedKingdom,ex2) wrote: Also, to follow up - there is another filter, this time from IBM devworks - could someone please try this and tell me I'm not going mad - there is a bug here? Code from http://www-106.ibm.com/developerworks/library/j-tomcat/index.html Looks like the same issue. If the filter is going to change the length of the response, it needs to call response.setContentLength(). Craig
Re: Default Servlet prevents loading of static resources.
On Wed, 1 Aug 2001, Miles Daffin wrote: Hi There TC Peeps, I have added a default servlet to a little test webapp (servlet-mapping//servlet-mapping). After I did this I can no longer access static resources (html, images etc.) in the app. All requests, apart from those to other (mapped) servlets are picked up by the default. e.g. I have an index.html in the apps welcome-file-list that cannot be got at implicitly or explicitly. The same behaviour is noted in ORION. 1. Have I noticed something strange, or should it be this way? 2. If it should be this way what is the use of a default servlet? (Can anyone give an example of usage?) Miles In Tomcat at least (don't know about Orion but sounds like it might be the same), static file serving is implemented as the default default servlet :-). Defining your own default servlet means that the file-serving servlet will never see the request, so it becomes your responsibility to serve static content. What's your objective for defining your own default servlet? There might be another way to approach that problem. Craig McClanahan
RE: Tomcat and Apache, very newbie question !
Apache is an HTTPD, where Tomcat is a servlet container (engine). -Original Message- From: Gustavo Mejia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 2:31 PM To: [EMAIL PROTECTED] Subject: Tomcat and Apache, very newbie question ! Hello, Could some one, give a brief explanation about why to use Apache and Tomcat Together ?? what is the main difference between them ? Thanks in advance! -- Gustavo Mejía Mora INFOTEC Tel: 5624 28 00 Ext: 253
RE: Tomcat and Apache, very newbie question !
Apache is an HTTPD, where Tomcat is a servlet container (engine). Actually, Tomcat is also a httpd although not quite a effecient of a daemon as Apache, hence why it can also serve static content. Could some one, give a brief explanation about why to use Apache and Tomcat Together ?? what is the main difference between them ? In all seriousness, I think you need to read the docs and search the archive to get your answer for these questions. These resources will provide plenty of information for you to figure out what's going on with. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: tomcat specifics
Gary, The tomcat docs that are great for that kind of a thing. Just download a recent version of tomcat and read the docs. it's easier if you point the doc dir to a web server, so you can view the html. particularly pay attention to the mod_jk-howto.html or something like that file. It asks most of your questions. Bryan -Original Message- From: Grobe, Gary [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 1:40 PM To: '[EMAIL PROTECTED]' Subject: tomcat specifics I'm looking to know how someone would explain how the servlet container interacts with the web server. Things like, what exactly is a container, how requests are forwared to the container, how the connections are made, the overhead, namespacing, etc... Or even point me to a few refs about this. Any help much appreciated.
RE: Can anyone send me mod_jk.so for Redhat 7.0 / Apache 1.3.14? / To mcat 3.2.1
Jan, first of all, thanks for your quick help. And my congratulations for your page! No, I hadn't checked it. Now I've read the relevant parts. In one of the documents you've got there I have found a link to jakarta.apache.org... but it's dead. There's nothing related to 3.2.1 there. That's why I sent my previous message with my request. So, I still need that binary version! Thanks. Jose. -Mensaje original- De: Jan Labanowski [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 01 de agosto de 2001 16:41 Para: '[EMAIL PROTECTED]' Asunto: Re: Can anyone send me mod_jk.so for Redhat 7.0 / Apache 1.3.14? / To mcat 3.2.1 On Wed, 1 Aug 2001, Navarro, Jose wrote: Hi, I've been trying to install Tomcat 3.2.1 in a Redhat 7.0 box running Apache 1.3.14 for a few days. Did you look at: http://www.ccl.net./cca/software/UNIX/apache/ Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
Problem with encodeRedirectURL
When I try this with cookies disabled, I get a 404 from either Netscape 4 or IE 5, with this message:the requested URL /2.html;jsessionid=bx4wqcd1y1 was not found on this server. Isn't it supposed to append a question mark to the URL, then the session ID, and not a semicolon?
do callbacks to engine exist?
After reading the Tomcat architecure docs, I have a question. Is there anyway to call the invoke method of a container from the webserver whenever needed. i.e. If I wanted to get the time it takes for the web server to process a request, could the server engine be invoke()'d to startTime and when the webserver finished handling the request, is there some way it could be invoked again to stopTime so that I'd know how long it took? I know that in order for the servlet to do this it must handle the request and I could get the times from the response and then the request, but I'm looking to see if I can *monitor* (if that's the right word) the web servers performance or it's requests in some way. Maybe someway to make callbacks to the webserver? My reason for wanting apache to handle the requests is because of sites that have very large connection loads that our clients/or Tomcat will not accept performace wise. If this part doesn't make sense, please ignore as their are other reasons also.
tomcat dies with segmentation fault
I am using tomcat 3.2.3 and trying to send multiple simultaneous requests to my servlet. I have put 100msec delay between starting of the threads on the client side. Each thread sends a connection request to the servlet. If the number of threads I start is less than 43(magic number??), everything works great, but if I increase the number of threads to anything greater than 43, tomcat cores with following message : === Segmentation Fault si_signo [11]: Segmentation Fault si_errno [0]: Error 0 si_code [1]: SEGV_MAPERR [addr: 0x0] stackpointer=EB7F12E8 *** Garbage Collection in process, a thread *** dump is not possible. It looks like memory corruption. Can this be aproblem with tomcat? Has anybody encountered this problem? Any suggestions/ideas to overcome the problem are greatly appreciated. Thanks -- Neelakshi
SV: installing Tomcat on Apache 1.3.20 /win2000
I get the same error in the event log (any module not compiled with EAPI gives the error) but Apache so far seems to run fine if you ignore it. Is your module compiled against the proper Apache version? Using modules compiled for versions before 1.3.20 may not work. As of versions greater than Apache 1.3.14 all the built-in modules have .so endings instead of .dll endings. Windows doesn't care what the ending is...either will work if referenced properly in the LoadModule command. -Ellis Teer Hi I've installed Apache 1.3.20 on a win2000 pc and it works fine. Now i want Tomcat on it aswell. But the modules in Apache 1.3.20 (and 2.0) are *.so files and the mod_jk from Tomcat (win binaries)is a *.dll file ?!?! I can't find any howto's that describes installing Tomcat any other way than with the *.dll. Is there anybody who knows how to install Tomcat on the latest Apache on a Win2000 ?? Or do i have to install an old Apache that uses modules in *.dll?? Niels Barlach [EMAIL PROTECTED] Don't worry about it, just drop in the mod_jk.dll into the %APACHE_HOME%\modules and follow the mod_jk-howto.html as it is. I have the exact same setup on one of the machines and it works like a charm. Regards, Emir. but when i do that it comes with an error msg saying failed starting Apache And something about it not being EAPI ? -Niels __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Beyond Tomcat 4..?
Just had to say that Tomcat is a fine piece of work. I am looking forward to the mod_webapp Apache-Tomcat connector. Although it may be before its time or another project entirely...an expanded web based webapp management interface (additional information, more functions, etc.) would be very attractive. -Ellis Teer On Wed, 1 Aug 2001, chris brown wrote: Just wondering what's being planned for the future of Tomcat beyond the 4.0 release (if anyone knows...). For example, are there plans to make a release that uses JDK 1.4's scalable I/O features? (as both products are currently in beta, I imagine that could be some way off!) Experimenting with the new I/O calls is certainly something I'm interested in exploring (along with performance tuning in general). But the reality is that what actually gets added post-4.0 is based on what features people suggest, combined with what features people actually write code for. Are there particular things you're interested in seeing? Craig McClanahan - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 11:35 PM Subject: RE: SAX 2.0, sealing, Tomcat 3.2.3 On Tue, 31 Jul 2001, Bryan Rood wrote: Pier, I am interested in using a 4.0.something tomcat build. Are there official sources at apache that can confirm the VERY_stable declaration that you have made? My company won't let me use anything but a stable production release. Is the 4.0 the same as prod quality? thanks so much, I'm one of the primary authors of Tomcat 4.0, so I've got some thoughts about this (and undoubtedly some bias as well :-). The only reason that 4.0 has not been declared final yet is that the underlying specifications it is based on (Servlet 2.3 and JSP 1.2) are not yet final. In fact, small changes and clarifications are still going on, and it would be pretty silly to declare 4.0 final and then have to go change it because the specs changed underneath. There will shortly be a beta 7 release, to pick up the most recent specification-related changes. It should be considered a release candidate, and development efforts between now and release day will be focused on bug fixes (at the moment, there are very few bugs recorded against Tomcat 4 in the bug tracking system at http://nagoya.apache.org/bugzilla/) and improved documentation. Craig McClanahan Bryan -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: Re: SAX 2.0, sealing, Tomcat 3.2.3 Andrew Cooke at [EMAIL PROTECTED] wrote: I don't want to use 4.0 as it's beta. Don't worry about being a beta... It's stable, _VERY_ stable. Pier __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Virtual Host Confusion
I swear I've read the documentation! I have Virtual Hosts Contexts defined; Server.xml Host name=www.raptor.net Context path= docBase=/home/net/foobar/htdocs debug=0/ /Host Host name=www.blackgryphongraphics.com Context path= docBase=/home/com/barfoo/htdocs debug=0/ /Host httpd.conf: VirtualHost 209.134.140.42 ServerName www.foobar.net JkMount /*.jsp ajp13 JkMount /*.xml ajp13 JkMount /servlet/* ajp13 AddType text/xml .xml DocumentRoot /home/net/foobar/htdocs ... Directory /home/net/foobar/htdocs/ Options All AllowOverride Authconfig /Directory I want to be able to put xml files and jsp in the main directory or at least in a directory entirely controlled by foobar. Is the docBase relative to $TOMCAT_HOME or is it an absolute path? What is appBase? Does this work in Tomcat 3.x or only in 4.x? Do I need to run separate instances of Tomcat for each virtual host? Do I have to have a webapps directory in each Virtual Host. How about a WEB-INF and a web.xml directory in each directory? The documentation seems out of date especially the links regarding web.xml. Help is greatly appreciated!
Unable to attach to target VM
Hello, I'm trying to set up a test server for remote servlet debugging, its config: win2K server, sp2 iis 5 jdk1.3.1 tomcat 3.2.2 (run as an nt service, and with a connector to iis) (Tomcat is running my servlets like a champ.) I've found several config suggestions for the remote debugging of servlets in tomcat, but I can't get any of them to connect (remotely using either Forte4j 3.0 or the jdb). Running the following local to this server also give a connect error: jdb -connect com.sun.jdi.SocketAttach:port=8000 I've added wrapper.bin.parameters in the tomcat.properties file as follows: # Arguments passed to Java interpreter (optional) # Syntax: wrapper.bin.parameters=[parameters] (String) # Default: NONE wrapper.bin.parameters=-classic wrapper.bin.parameters=-Xdebug wrapper.bin.parameters=-Xnoagent wrapper.bin.parameters=-Djava.compiler=NONE wrapper.bin.parameters=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,addr ess=:8000 Does anyone know how to do this? Thanks, Steve _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Java Error in Tomcat.jar With RedHat 7.1
Hi All, Using Linux Red Hat 7.1, Java 1.3.1, tomcat 3.2.3. JAVA installed and runs ... sample apps work fine. TOMCAT_HOME=/usr/java/jakarta-tomcat-3.2.3 JAVA_HOME=/usr/java/jdk1.3.1 PATH=/usr/java/jdk1.3.1/bin:/usr/java/jakarta-tomcat-3.2.3 CLASSPATH (tomcat start) /usr/java/jakarta-tomcat-3.2.3/lib/ant.jar:..jasper.jar:..jaxp.jar:..parser. jar:..servlet.jar:..webserver.jar:/usr/java/jdk1.3.1/lib/tools.jar Error on tomcat start (with startup.sh or tomcat.sh start) is: Exception in thread main java.lang.NoDefClassFoundError: org/apache/tomcat/startup/Tomcat I have tried disabling the CLASSPATH variable reset in the tomcat.sh file and defining CLASSPATH in the .bash_profle (and set) and still no luck. Any help? Thanks so much. Tyson McDowell
tomcat and jakarta-servletapi
i'm trying to install tomcat and from readme i read that i need * Download and install the Servletapi distribution (subproject jakarta-servletapi) into a subdirectory named where do i find jakarta-serve anyway?
Re: Beyond Tomcat 4..?
Curtis Dougherty at [EMAIL PROTECTED] wrote: YES... integration with IIS5 and Win2K... HELP! :) :) :) :) Documentation for same... RE-HELP! :) :) :) :) Pier
Re: Beyond Tomcat 4..?
Ellis Teer at [EMAIL PROTECTED] wrote: Just had to say that Tomcat is a fine piece of work. I am looking forward to the mod_webapp Apache-Tomcat connector. It's working great under Unix :) Although it may be before its time or another project entirely...an expanded web based webapp management interface (additional information, more functions, etc.) would be very attractive. ... Would be cool to be able to do it thru JMX :) Pier
Aliasing a servlet on Tomcat or Apache
Is there a way in Tomcat to alias a servlet? For example, if I have a servlet called 'blah', how can I configure tomcat such that I don't have to say servlet/blah in my URL. All I want to access is 'blah'. -- Dominic Nagar Release Engineer NOVO Relationship Architects for e-Business Voice 415-875-7123 | Fax 415-875-7001 http://www.novocorp.com
Why doesn't Jasper 3.3 builds fail on errors like release 3.2 does?
I am attempting to get Jasper to compile my jsp files. From the command line, i am doing this: java -classpath ..everything.. org.apache.jasper.JspC -die -d src/jsp/WEB-INF/jsp -webapp src/jsp Where my jsp files are nested beginning from src/jsp. I've noticed this problem on multiple files, for your sake, here's a sample jsp file in it's entirety: start of file % blsadljasdfl;jasdf end of file When i compile this with release 3.3, i get no output indicating anything is wrong. I also get an empty .java file. When i compile this with release 3.2, i get the following error: 2001-08-01 18:56:17 - error-the file '\bla.jsp' generated the following parse exception: org.apache.jasper.compiler.ParseException: p:\dev\test\bla.jsp(1,22) Unterminated % tag thanks. .peter BTW: If this message is better suited for the dev list, please indicate such.
RE: Can anyone send me mod_jk.so for Redhat 7.0 / Apache 1.3.14? / To mcat 3.2.1
By the way, I leave my office today for 30 days (holidays!!!) so if any of you is going to send me mod_jk.so, please send it also to my email account (I think that this list does not allow attachments!). My email address is [EMAIL PROTECTED] Thanks! Jose. -Mensaje original- De: Jan Labanowski [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 01 de agosto de 2001 16:41 Para: '[EMAIL PROTECTED]' Asunto: Re: Can anyone send me mod_jk.so for Redhat 7.0 / Apache 1.3.14? / To mcat 3.2.1 On Wed, 1 Aug 2001, Navarro, Jose wrote: Hi, I've been trying to install Tomcat 3.2.1 in a Redhat 7.0 box running Apache 1.3.14 for a few days. Did you look at: http://www.ccl.net./cca/software/UNIX/apache/ Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
RE: How to increase HTTP timeout?
On Wednesday 01 August 2001 04:10 am, Andrew Jarman wrote: Sorry, I should have been more clear. I am not having problem with my *session* timing out, I am having problems with the actual connection timing out. Here's the scenario: 1. Client does a POST, sending in an XML document (using the MSXML3 DOM on a MS client). 2. Server parses the XML, writes some data to a database, then calls an Oracle Report server to generate a PDF file based on the information. 3. The thread waits for the report to be completed, then it retrieves the PDF file and stores it on a NFS volume. 4. The servlet thread then returns an XML response that contains a reference to where the PDF file can be picked up. 5. The client then retrieves the file using a HTTP GET method, going through the normal Apache server, which can access the NFS volume. This architecture works fairly well, and most reports return fairly quickly (30 - 120 sec). Also, having the client retrieve the report using an HTTP GET gets around a bunch of issues with the Acrobat reader and IE5 (did you know that IE+Acrobat+SSL != good_experience?) The problem is that a long running report can make step (3) wait for more than 5 minutes, at which time TomCat gives up and closes the connection with an error. This means that any report that takes longer than 5 min will not work. Seems like the excact same proble I had. I fully understand the deficiencies of this design, and while I don't like it, it was possible to implement very quickly and in time for our next production release. We will further address the problem in a future build when we have a few other infrastructure pieces in place, like an inbox queue so users can see when reports have completed. So, my question remains - how can I increase this timeout from 5 min to something longer? I did it by doing the following, in my doGet/Post method, response is the HttpServletResponse object response.addHeader(Connection:,Keep-Alive);//not quite sure if I had the colon after Connection afaik this is a HTTP 1.1 feature, and Tomcat 3.x supports only 1.0 Well anyway it works fine with IExplorer 5.x clients, it happily waits an hour or two now.(havent tested any other browsers...) It didnt work with using Apache as a http proxy betwen IExplorer clients and the tomcat server though. -- Nils O. Selåsdal
Re: Aliasing a servlet on Tomcat or Apache
It's done in web.xml. You can use a url-mapping statement in the file. That may not be exactly right, but it's close. I think there's an example in the sample webapps included in Tomcat. If not, check the latest servlet documentation from Sun. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Wed, 01 Aug 2001 17:14:12 -0700, Dominic Nagar wrote: Is there a way in Tomcat to alias a servlet? For example, if I have a servlet called 'blah', how can I configure tomcat such that I don't have to say servlet/blah in my URL. All I want to access is 'blah'. -- Dominic Nagar Release Engineer NOVO Relationship Architects for e-Business Voice 415-875-7123 | Fax 415-875-7001 http://www.novocorp.com
Re: do callbacks to engine exist?
I presume from the questions that you're talking about Tomcat 4, so I will answer on that basis. On Wed, 1 Aug 2001, Grobe, Gary wrote: After reading the Tomcat architecure docs, I have a question. Is there anyway to call the invoke method of a container from the webserver whenever needed. i.e. If I wanted to get the time it takes for the web server to process a request, could the server engine be invoke()'d to startTime and when the webserver finished handling the request, is there some way it could be invoked again to stopTime so that I'd know how long it took? Depending on *exactly* what you want to measure, this can be easy or hard. Let's assume Tomcat stand-alone first. The easiest thing to do would be to write a simple Valve that did these timings, and stick it first in the Valves nested inside the Engine. This would track all of the execution time within the core part of Catalina, but would not include the time used to read and parse the HTTP request, or the time used to actually send the response back out the socket. Aside: you can do this kind of thing in a portable manner by writing a Filter instead. This would measure the time within your application only, but it would run on any servlet 2.3 container. There is just such a filter in the examples web app included with Tomcat. If you really want to time Apache+Tomcat, then you need to start the timer when Apache starts working on the request, and stop the timer after Apache has completed the response. That means you'll need to modify Apache code, not just Tomcat. I know that in order for the servlet to do this it must handle the request and I could get the times from the response and then the request, but I'm looking to see if I can *monitor* (if that's the right word) the web servers performance or it's requests in some way. Maybe someway to make callbacks to the webserver? I'm not sure how callbacks would help you ... don't you really want Apache to report the total time required to its log files? You might want to investigate whether there are any Apache plug-in modules that do this kind of thing. My reason for wanting apache to handle the requests is because of sites that have very large connection loads that our clients/or Tomcat will not accept performace wise. If this part doesn't make sense, please ignore as their are other reasons also. If I were you, I'd consider primarily focusing on the time spent *within* your app rather than the total time. However, as I'm sure you know, the time required to do a particular request will be very much affected by what else is going on at that particular moment -- one of the eternal challenges of benchmarking :-). Craig