java.lang.UnsatisifedLinkError
hello, I found some talk of this in the archives but no solution was ever suggested and it's becoming a real problem for me. My code calls JNI functions, if i compile and build everything and then start up tomcat all my pages work, all the java classes behind them work and everybody's happy. The problem appears when i modify a java class and recompile it, the next time i visit a page (even one which doesn't call code which uses the JNI lib) i get this unsatisfied link error and a message about my .so already being loaded in another class loader. All of my .class get put in a jar which then gets put in my app's WEB-INF directory, i'm assuming that this is why i get the unsatisifed link error even if the page i try to view calls code which doesn't call the JNI lib, correct? Is this a mistake of mine or a bug? in the later case is there a work around? should i try with tomcat 4? possibily useful info: jdk 1.3 tomcat 3.2.1 linux 2.4 thanks, -- -Marco Ring the bells that still can ring. Forget the perfect offering. There's a crack in everything. It's how the light gets in. -Isonard Cohen PGP signature
** Apache Tomcat Configuration on Linux - Error while doing the same: Needhelp **
Hi, I am trying to configure Tomcat+Apache on Linux. I am having some problems while configuring the same. Please help resolving following problem. Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Regards, Prashanth Marathe D
Tomcat 4.0-beta-3 Released (SECURITY VULNERABILITY)
Tomcat 4.0-beta-3 is an update to the Tomcat 4.0-beta-2 distribution that was released on 30 March 2001. It fixes a further security vulnerability related to potentially exposing JSP source that was only partially corrected in beta 2. Anyone using versions of Tomcat 4.0 earlier than the beta 3 release (or the nightly build dated 20010403 or later) is strongly encouraged to immediately update to the beta 3 release. Craig McClanahan
WinME installation tip
(Forgive me for trying tomcat on WinME -- I promise not to try to make this a production environment!) FWIW, I kept getting errors, especially Out of Environment Space errors, until I renamed my TOMCAT_HOME directory to "\tc". After this change, bin\startup worked magically.
*********** HTTP not started ************* Help ! Needed .............
Hi, I am trying to configure Tomcat+Apache on Linux. I am having some problems while configuring the same. Please help resolving following problem. Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Waiting for a early response. Regards, Prashanth Marathe D
Tomcat on Windows 2000
Hi, Every time I try to start tomcat I get the following exception: Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.MissingResourceException: Can't find bundle for base name org.apache.tomcat.startup. LocalStrings, locale en_GB at java.util.ResourceBundle.throwMissingResourceException(Unknown Source) at java.util.ResourceBundle.getBundleImpl(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) at org.apache.tomcat.util.StringManager.init(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:261) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:26) I have seen this message quite often in the mailing list archives, but haven't seen a solution. I am using JDK 1.3, and my classpath is set as follows: Using classpath: c:\!work\tomcat\jakarta-tomcat\classes;c:\!work\tomcat\jakarta-tomcat\lib\we bserver.jar;c:\!work\tomcat\jakarta-tomcat\lib\jasper.jar;c:\!work\ tomcat\jakarta-tomcat\lib\xml.jar;c:\!work\tomcat\jakarta-tomcat\lib\servlet .jar;c:\jdk1.3\lib\tools.jar;c:\!work\tomcat\jakarta-tomcat\classes;c:\!work \tomcat\ jakarta-tomcat\lib\webserver.jar;c:\!work\tomcat\jakarta-tomcat\lib\jasper.j ar;c:\!work\tomcat\jakarta-tomcat\lib\xml.jar;c:\!work\tomcat\jakarta-tomcat \lib\ser vlet.jar;c:\jdk1.3\lib\tools.jar Thanks, Iwan. Iwan Roberts Project Manager Liberty Information Technology Direct Line: ++44 (0) 28 9044 5552 Clarendon House Fax: ++44 (0) 28 9044 5511 9-21 Adelaide StreetSwitchboard: ++44 (0) 28 9044 5500 Belfast, Northern Ireland BT2 8DJ Email: [EMAIL PROTECTED] Disclaimer: The contents of this e-mail and attached files in no way reflect any policies of Liberty Information Technology Ltd.
Re: WinME installation tip
Hi, There's another way to do this, use this command to extend your environment space: c:\ COMMAND.COM /E:4096 /P regards, Kenneth Westelinck From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: WinME installation tip Date: Tue, 3 Apr 2001 00:56:26 -0700 (Forgive me for trying tomcat on WinME -- I promise not to try to make this a production environment!) FWIW, I kept getting errors, especially Out of Environment Space errors, until I renamed my TOMCAT_HOME directory to "\tc". After this change, bin\startup worked magically. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: WinME installation tip
Thanks. I don't usually do development in WinME (we're a Linux shop), but I have this new laptop and haven't been able to get my WaveLan IEEE working under the 2.4 kernel yet...and I'm loving the freedom of 802.11b... ;-) -Original Message- From: Kenneth Westelinck [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 1:28 AM To: [EMAIL PROTECTED] Subject: Re: WinME installation tip Hi, There's another way to do this, use this command to extend your environment space: c:\ COMMAND.COM /E:4096 /P regards, Kenneth Westelinck From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: WinME installation tip Date: Tue, 3 Apr 2001 00:56:26 -0700 (Forgive me for trying tomcat on WinME -- I promise not to try to make this a production environment!) FWIW, I kept getting errors, especially Out of Environment Space errors, until I renamed my TOMCAT_HOME directory to "\tc". After this change, bin\startup worked magically. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
java : legacy system for NT and Linux ?
Hi I'm a new user of Tomcat 3.2, and I wonder if someone now if some free (portable?) legacy system exist ? Thanks Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com
pause after tomcat startup script runs?
Is it possible to insert a "pause" command into the tomcat startup script, so that any exceptions that occur that prevents catalina from starting are readable? I tried putting pause into the catalina.bat file, but it didn't work. -- - Torgeir
RE: pause after tomcat startup script runs?
Is it not possible to do a direct to a textfile ? catalina.bat output.txt hope this helps. Dennis -Original Message- From: Torgeir Veimo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 11:20 AM To: [EMAIL PROTECTED] Subject: pause after tomcat startup script runs? Is it possible to insert a "pause" command into the tomcat startup script, so that any exceptions that occur that prevents catalina from starting are readable? I tried putting pause into the catalina.bat file, but it didn't work. -- - Torgeir
Tomcat 4 webapp integration
Hi all, I've been trying the Tomcat 4.0 series of betas for use with a Stuts based webapp. Previously I've had no problem with Tomcat3.2 which happily auto-discovers my webapp and initialises its context. Under 4.0 things seem to have changed, I now get no init messages and when trying to access the webapp URL I get a HTTP 503 message (This application is not currently available). The example servlets seem to run fine, so the problem is in detecting my newly webapp. Has anyone seen this / knows whats up here? Many thanks, andy. [EMAIL PROTECTED]
Stop tomcat letting the cat out of the bag.
How do I stop tomcat sending both it version and my operating systems name and release number. Thanks.
Re: Fw: CD ROM Project, Read-only Tomcat ??
Thank you for your lovely but very informative Answer. But: My questions: 1. How to stop tomcat from generating the auto-conf files in bin-directory? errase (or comment ) ContextInterceptor className="org.apache.tomcat.context.AutoSetup" / I think the name is explicite enough. I had comment it out, but nothing changed. Tomcat still tries to generate the auto files. Thank you Thomas
Posix compliant installation of Tomcat
Hi all Has anybody done any work on installing Tomcat in a Posix compliant manner. That is separation of invariant, variant and transient parts of the application. Target O/S: HP-UX Solaris Installation requirements: Configuration in: /etc/opt/... Code in : /opt/... Log files, trace files in : /var/opt/... From my reading of the Tomcat documentation and the Java Servlet Spec all files currently appear to be under $TOMCAT_HOME. -- Regards Richard
** mod_jk.so for Linux Redhat 6.2- required **
Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED]
Re: ** mod_jk.so for Linux Redhat 6.2- required **
I think it is more suitable to build your own one. Follow the instruction of the tomcat document. Just remind you that the source of mod_jserv is under TOMCAT_SRC_DIR/src/native/apache/jserv unplug [EMAIL PROTECTED] wrote: Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED]
Re: ** mod_jk.so for Linux Redhat 6.2- help required **
Hi, I am trying to configure Tomcat+Apache on Linux after building my mod_jk.so. I am having some problems while configuring the same. Please help resolving following problem. Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Waiting for a early response. Regards, Prashanth Marathe D unplug unplug@poboxTo: [EMAIL PROTECTED] es.com cc: Subject: Re: ** mod_jk.so for Linux Redhat 04/03/01 6.2- required ** 03:23 PM Please respond to tomcat-user I think it is more suitable to build your own one. Follow the instruction of the tomcat document. Just remind you that the source of mod_jserv is under TOMCAT_SRC_DIR/src/native/apache/jserv unplug [EMAIL PROTECTED] wrote: Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED]
RE: ** mod_jk.so for Linux Redhat 6.2- required **
Hi, You can get one from the jakarta web site: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38 6/mod_jk.so I use Tomcat 3.2.1. This version of the mod_jk worked for me with a Apache 1.3.12, and when I installed a Apache 1.3.19, it was said 'garbled', and I had to build a mod_jk.so. But building it under Linux is really painless and I get a working version in less than 1 minute. Benoit Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED]
RE: ** mod_jk.so for Linux Redhat 6.2- required **
Hi, I've first downloaded the same from the link and got the error "garbled ". so then i made my own mod_jk.so and now I'm getting the following error Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Waiting for a early response. Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED] Benoit Jacquemont benoit.jacquemontTo: [EMAIL PROTECTED] @smile.frcc: Subject: RE: ** mod_jk.so for Linux Redhat 04/03/01 03:32 PM 6.2- required ** Please respond to tomcat-user Hi, You can get one from the jakarta web site: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38 6/mod_jk.so I use Tomcat 3.2.1. This version of the mod_jk worked for me with a Apache 1.3.12, and when I installed a Apache 1.3.19, it was said 'garbled', and I had to build a mod_jk.so. But building it under Linux is really painless and I get a working version in less than 1 minute. Benoit Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED]
RE: ** mod_jk.so for Linux Redhat 6.2- required **
What kind of changes have you made on your worker.properties file ? Did you customize it to suit your needs ? You shoud also have a look on your httpd.conf to see wether your configured your workers or not. Benoit Hi, I've first downloaded the same from the link and got the error "garbled ". so then i made my own mod_jk.so and now I'm getting the following error Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Waiting for a early response. Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED] Benoit Jacquemont benoit.jacquemontTo: [EMAIL PROTECTED] @smile.frcc: Subject: RE: ** mod_jk.so for Linux Redhat 04/03/01 03:32 PM 6.2- required ** Please respond to tomcat-user Hi, You can get one from the jakarta web site: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1 /bin/linux/i38 6/mod_jk.so I use Tomcat 3.2.1. This version of the mod_jk worked for me with a Apache 1.3.12, and when I installed a Apache 1.3.19, it was said 'garbled', and I had to build a mod_jk.so. But building it under Linux is really painless and I get a working version in less than 1 minute. Benoit Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED]
RE: ** mod_jk.so for Linux Redhat 6.2- required **
Hi, Thanks for the immeediate response. I'd configured the workers.properties and httpd.conf for the same. I'm sending you the same can you please tell me what more changes i need to make (See attached file: workers.properties)(See attached file: httpd.conf) Awaiting for an early response. Thanks and Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED] __ What kind of changes have you made on your worker.properties file ? Did you customize it to suit your needs ? You shoud also have a look on your httpd.conf to see wether your configured your workers or not. Benoit Hi, I've first downloaded the same from the link and got the error "garbled ". so then i made my own mod_jk.so and now I'm getting the following error Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Waiting for a early response. Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED] Benoit Jacquemont benoit.jacquemontTo: [EMAIL PROTECTED] @smile.frcc: Subject: RE: ** mod_jk.so for Linux Redhat 04/03/01 03:32 PM 6.2- required ** Please respond to tomcat-user Hi, You can get one from the jakarta web site: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1 /bin/linux/i38 6/mod_jk.so I use Tomcat 3.2.1. This version of the mod_jk worked for me with a Apache 1.3.12, and when I installed a Apache 1.3.19, it was said 'garbled', and I had to build a mod_jk.so. But building it under Linux is really painless and I get a working version in less than 1 minute. Benoit Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED] workers.properties httpd.conf
RE: Sending HTTP request from a servlet to ASP.
Do u also need a response from the servlet to which you are sending the data ? -Original Message- From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 01, 2000 3:46 PM To: [EMAIL PROTECTED] Subject: Sending HTTP request from a servlet to ASP. Dear All, I am trying to send an HTTP request to an ASP page. Actually, i am writing a servlet which runs on tomcat 3.2 and wants to call an ASP page and send it some form data. This is a requirement of the third party software we are using to validate credit card details. How can i call an ASP page from a java servlet using HTTP? Thanx in advance, Hitesh
RE: Sending HTTP request from a servlet to ASP.
the simplest way is to redirect the page to the asp page with parameters in the query string in the form of : page.asp?param=valueparam1=value as far as I know you can transfer as much as 1 k in this form the other way is to use sockets and to post the data to an asp page in this way you can transfer bigger amounts of data shlomi -Original Message- From: Saurabh Shukla [mailto:[EMAIL PROTECTED]] Sent: Tue, April 03, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: RE: Sending HTTP request from a servlet to ASP. Do u also need a response from the servlet to which you are sending the data ? -Original Message- From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 01, 2000 3:46 PM To: [EMAIL PROTECTED] Subject: Sending HTTP request from a servlet to ASP. Dear All, I am trying to send an HTTP request to an ASP page. Actually, i am writing a servlet which runs on tomcat 3.2 and wants to call an ASP page and send it some form data. This is a requirement of the third party software we are using to validate credit card details. How can i call an ASP page from a java servlet using HTTP? Thanx in advance, Hitesh
RE: ** mod_jk.so for Linux Redhat 6.2- required **
Hi, I don't see any problem in your workers.properties file, but in your httpd.conf you're including the tomcat-auto conf file. I had a lot of problem with that file until I paste the content into the httpd.conf and I customize it. I really think that dispatching your configuration in several files is not a good idea. It makes difficult to find errors. Benoit Hi, Thanks for the immeediate response. I'd configured the workers.properties and httpd.conf for the same. I'm sending you the same can you please tell me what more changes i need to make (See attached file: workers.properties)(See attached file: httpd.conf) Awaiting for an early response. Thanks and Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED] __ What kind of changes have you made on your worker.properties file ? Did you customize it to suit your needs ? You shoud also have a look on your httpd.conf to see wether your configured your workers or not. Benoit Hi, I've first downloaded the same from the link and got the error "garbled ". so then i made my own mod_jk.so and now I'm getting the following error Apache:error_log says Tue Apr 3 12:42:41 2001] [emerg] (2)No such file or directory: Error while opening the workers Tomcat : mod_jk.log says [jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed [jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007 [jk_worker.c (164)]: wc_create_worker validate failed for ajp12 [jk_worker.c (229)]: build_worker_map failed to create workerajp12 Waiting for a early response. Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED] Benoit Jacquemont benoit.jacquemontTo: [EMAIL PROTECTED] @smile.frcc: Subject: RE: ** mod_jk.so for Linux Redhat 04/03/01 03:32 PM 6.2- required ** Please respond to tomcat-user Hi, You can get one from the jakarta web site: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1 /bin/linux/i38 6/mod_jk.so I use Tomcat 3.2.1. This version of the mod_jk worked for me with a Apache 1.3.12, and when I installed a Apache 1.3.19, it was said 'garbled', and I had to build a mod_jk.so. But building it under Linux is really painless and I get a working version in less than 1 minute. Benoit Hi, OS: Linux Redhat ver 6.1 Apache ver-1.3.14 Tom Cat ver-3.2.1 Required file: mod_jk.so If anyone has this file, could you please send us? Regards, Prashanth Marathe D Phone: 667-8355 Ext.: 262 [EMAIL PROTECTED]
How to use a directory outside the context
Hello, I wonder how it is possible to configure Tomcat so I can define a context where I defined a docbase and use directories which are not sub-tree of the docbase. For example, let's assume I've install tomcat on c: and that I use the context: Context path="/admin" docBase="webapps/admin" crossContext="true" debug="0" reloadable="true" trusted="true" /Context I want to use in my JSP or servlets a directory which is on the drive d:, or not under $TOMCAT_HOME/webapps Is it possible ? If so how ? Thanks for your help. Stphane
RE: How to use a directory outside the context
Hi Stphane, Yes, it is possible, you just have to use an absolute path instead of a relative path. Indeed, any relative path use TOMCAT_HOME as root path. For example, you can set your docBase to "d:\projets\mon_appli\war". I'm using this kind of path for development on my Windows box. Benot Hello, I wonder how it is possible to configure Tomcat so I can define a context where I defined a docbase and use directories which are not sub-tree of the docbase. For example, let's assume I've install tomcat on c: and that I use the context: Context path="/admin" docBase="webapps/admin" crossContext="true" debug="0" reloadable="true" trusted="true" /Context I want to use in my JSP or servlets a directory which is on the drive d:, or not under $TOMCAT_HOME/webapps Is it possible ? If so how ? Thanks for your help. Stphane
How to get the parsed JSP string
Hello, I want to do some operations, after that the JSP page has been parsed. For this i need the get the output of the jsp page, which has been parsed, i want to use this output as input for something else. How can i archief this? * Is there a way to put more then one servlet after eachother? or * How can i get the output of the jsp parser, before it is send to the browser, and change this. greetings, -- Eduard WitteveenSysteemontwikkelaar NOS Internet Mediacentrum Kamer 203, tel. +31(0)35 6773059 Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal
RE: Finding index.jsp on IIS
Your problem is happening because of the order in which IIS processes requests. Here's the steps (as I've been able to determine): 1. Check Filters, if found send the response 2. Check Actual files/virtual directories, if found send the file (interpreted if its asp) 3. Check special options (like default directory), if found, return to #2 4. Respond with 404. I've never tried this, but you might try adding a line to your uriworkermap.properties file like /=ajp12 this will map the root request to the ajp connector. Make sure that Tomcat is setup to server index.jsp by default (I believe that the config files ship that way) If that doesn't work then you can't do what you're trying to do because there is no other way to get IIS to send the default page to a filter, that I know of. Randy -Original Message- From: Ricardo Gladwell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 6:08 AM To: Tomcat Users Subject: Finding index.jsp on IIS Dear All, I have set-up my Windows 2000 server so that all *.jsp pages in the IIS web root directory are handled by Tomcat, whilst the rest (*.html, *.shtml and yucky *.asp) are handled normally by IIS. I used the following configurations file settings to define this: ** START EXTRACT FROM server.xml ** Context path="" docBase="c:\inetpub\wwwroot" debug="0" reloadable="true" /Context ** END EXTRACT FROM server.xml ** ** START EXTRACT FROM uriworkermap.properties ** /servlet/*=ajp12 /*.jsp=ajp12 ** START EXTRACT FROM uriworkermap.properties ** I also set-up the default index page on IIS to be index.jsp so that, for example, calling http://localhost/ will call c:\inetpub\wwwroot\index.jsp. However, it appears that the call is not being handled by IIS and I get the raw, un-compiled JSP code page back through my browser. Could someone please tell me how do I configure IIS or Tomcat so that an index.jsp (or whatever you call you index JSP pages) is handled by Tomcat. TIA... -- Ricardo Gladwell UBQT Media PLC Mobile: (07779) 841 444
mod_jk for MAC OS X (FreeBSD)
Hi, I'm trying to configure apache to work with tomcat on Mac OSX, which is essentially FreeBSD, but cannot find mod_jk for FreeBSD. The only versions I can find are solaris and linux. I am very new to unix so I don't even have a clue how to build my own from source. If anyone has the file, please forward it to me at: [EMAIL PROTECTED] or if anyone can give me some advice on how to get started, this would be much appreciated. Darwin Buyson
mod_jk for MAC OS X (FreeBSD)
Hi, I'm trying to configure apache to work with tomcat on Mac OSX, which is essentially FreeBSD, but cannot find mod_jk for FreeBSD. The only versions I can find are solaris and linux. I am very new to unix so I don't even have a clue how to build my own from source. If anyone has the file, please forward it to me at: [EMAIL PROTECTED] or if anyone can give me some advice on how to get started, this would be much appreciated. Darwin Buyson -- End of Forwarded Message
RE: mod_jk for MAC OS X (FreeBSD)
Hi, You should really try to build a mod_jk, it's not that difficult, really. Benoit Hi, I'm trying to configure apache to work with tomcat on Mac OSX, which is essentially FreeBSD, but cannot find mod_jk for FreeBSD. The only versions I can find are solaris and linux. I am very new to unix so I don't even have a clue how to build my own from source. If anyone has the file, please forward it to me at: [EMAIL PROTECTED] or if anyone can give me some advice on how to get started, this would be much appreciated. Darwin Buyson
IIS out of process
Hi to everybody, Does anybody know how to configure tomcat and IIS on NT 4.0 completely so that tomcat serves Servlets received by IIS via ajpv12? What works: The isapi_redirect.dll is loaded by IIS-Service. (green up pointing arrow). Depending on the settings in uriworkermap.properties the IIS serves static html or lets it serve by tomcat. What doesn't work: Regardless of the uriworkermap.properties Settings - No servlet is executed after the given request on the IIS-Tomcat conglomerate. The error logging in the IIS-logfile says: 10:23:15 127.0.0.1 GET /jakarta/isapi_redirect.dll 200 10:30:24 127.0.0.1 GET /jakarta/isapi_redirect.dll 200 The isapi.log says: [jk_worker.c (164)]: wc_create_worker NULL factory for ajp13 [jk_worker.c (239)]: build_worker_map failed to create workerajp13 [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Does anyone have some advice? P.S. I studied the Mail-Archive but couldn't find anything helpful for my specific problem. The documentation (IIS How To) is incomplete. Greetings, Olly Beschwerlich die Verstandigung, Muhselig die Telefonie. Erleichterung und frischen Schwung Bringt TEDAS, your voice dot IP! Ruf mich an ... Dot IP! Dot IP or not to be! (Dr. Gatekeeper)
STDOUT and STDERR from jvm disagree -- what's happening!?
Running Tomcat 3.2.1 as an in-process service. Got the system up and going a few times, but then, I seem to have a strange error. When I review the logs jvm.stdout and jvm.stderr, they disagree. stdout indicated that it loaded the jni_connect.dll, saying... Library d:\jakarta-tomcat\bin\win32\i386\jni_connect.dll loaded {...} Running fine stderr disagrees... Failed to loadLibrary() d:\jakarta-tomcat\bin\win32\i386\jni_connect.dll Moreover, I get a strange error in the isapi.log... [jk_jni_worker.c (965)] in open_jvm2, the JVM will ignore unknown options What are the options it's ignoring? Any help is GREATLY appreciated! -- . . . powerlifter lift 'til your eyez bleed 365 bench - 505 deadlift - 515 squat
Re: mod_jk for MAC OS X (FreeBSD)
on 3/4/01 4:19 am, Benoit Jacquemont at [EMAIL PROTECTED] wrote: Hi, You should really try to build a mod_jk, it's not that difficult, really. Benoit Hi, I'm trying to configure apache to work with tomcat on Mac OSX, which is essentially FreeBSD, but cannot find mod_jk for FreeBSD. The only versions I can find are solaris and linux. I am very new to unix so I don't even have a clue how to build my own from source. If anyone has the file, please forward it to me at: [EMAIL PROTECTED] or if anyone can give me some advice on how to get started, this would be much appreciated. Darwin Buyson Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin
RE: mod_jk for MAC OS X (FreeBSD)
So, you've got the tomcat 3.2.1 sources, and the Apache 1.3.1x tarball on your Mac ? What command did you try to build the mod_jk.c ? Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin
RE: IIS out of process
It seems you are tryiong to use ajp13 with IIS..this does not work ..IISConnector ONLY uses ajp12..so delte all the references to ajp13 in your uriworkermap.properties..delete the ajp13 connector fromserver.xml ..double check all your configs..with this issue in mind... Saludos , Ignacio J. Ortega -Mensaje original- De: Oliver H. Ohly [mailto:[EMAIL PROTECTED]] Enviado el: martes 3 de abril de 2001 14:28 Para: [EMAIL PROTECTED] Cc: Georg Fritzsche Asunto: IIS out of process Hi to everybody, Does anybody know how to configure tomcat and IIS on NT 4.0 completely so that tomcat serves Servlets received by IIS via ajpv12? What works: The isapi_redirect.dll is loaded by IIS-Service. (green up pointing arrow). Depending on the settings in uriworkermap.properties the IIS serves static html or lets it serve by tomcat. What doesn't work: Regardless of the uriworkermap.properties Settings - No servlet is executed after the given request on the IIS-Tomcat conglomerate. The error logging in the IIS-logfile says: 10:23:15 127.0.0.1 GET /jakarta/isapi_redirect.dll 200 10:30:24 127.0.0.1 GET /jakarta/isapi_redirect.dll 200 The isapi.log says: [jk_worker.c (164)]: wc_create_worker NULL factory for ajp13 [jk_worker.c (239)]: build_worker_map failed to create workerajp13 [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Does anyone have some advice? P.S. I studied the Mail-Archive but couldn't find anything helpful for my specific problem. The documentation (IIS How To) is incomplete. Greetings, Olly Beschwerlich die Verstandigung, Muhselig die Telefonie. Erleichterung und frischen Schwung Bringt TEDAS, your voice dot IP! Ruf mich an ... Dot IP! Dot IP or not to be! (Dr. Gatekeeper)
RE: IIS out of process
Dear Randy, I'm sorry, that's not it. I create only one worker, but it is the ajp12. My mapping in the uriworkermap looks like the following: # # Simple worker configuration file # # Mount the servlet context to the ajp12 worker /servlet/*=ajp12 # Mount the examples context to the ajp12 worker #/examples/*=ajp12 #/config/*=ajp12 # Advanced mount of the examples context /examples/*.jsp=ajp12 /examples/servlet/*=ajp12 /admin/*.jsp=ajp12 /admin/servlet/*=ajp12 /config/*.jsp=ajp12 /config/servlet/*=ajp12 Should I define and create two workers? Specify the ajp13 in the server.xml? Here also my workers.properties: # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/workers.properties,v 1.3.2.2 # $Revision: 1.3.2.2 $ # $Date: 2000/10/16 01:59:22 $ # # workers.properties - # # This file provides jk derived plugins with with the needed information to # connect to the different tomcat workers. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them in your own configuration!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to modify is the first properties, i.e. # workers.tomcat_home, workers.java_home and ps. Most of the configuration # is derived from these. # # When you are done updating workers.tomcat_home, workers.java_home and ps # you should have 3 workers configured: # # - An ajp12 worker that connects to localhost:8007 # - An ajp13 worker that connects to localhost:8009 # - A jni inprocess worker. # - A load balancer worker # # However by default the plugins will only use the ajp12 worker. To have # the plugins use other workers you should modify the worker.list property. # # workers.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # workers.tomcat_home=e:\tomcat # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # workers.java_home=e:\jdk1.3 # # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # ps=\ # ps=/ # #-- ADVANCED MODE #- # # #-- DEFAULT worker list -- #- # # The workers that your plugins should create and work with # worker.list=ajp12 # #-- DEFAULT ajp12 WORKER DEFINITION -- #- # # Defining a worker named ajp12 and of type ajp12 # Note that the name and the type do not have to match. # worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp12.lbfactor=3 # # Specify the size of the open connection cache. worker.ajp12.cachesize=50 # #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # #worker.ajp13.port=8009 #worker.ajp13.host=localhost #worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. #worker.ajp13.lbfactor=1 # # Specify the size of the open connection cache. #worker.ajp13.cachesize # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) workers perform wighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #workers. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12 # #-- DEFAULT JNI WORKER DEFINITION- #- # # # Defining a worker named inprocess and of type jni # Note that the name and the type do not have to match. # worker.inprocess.type=jni # #-- CLASSPATH DEFINITION - #- # # Additional class path components. # worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes # # The XML parser provided
RE: IIS out of process
Saludos, Ignacio! ya he arreglado todas las congiguraciones... there's no ajp13 ref in uriworkermap.properties, no connector... tag for ajp13 in server.xml... But nevertheless thanx Olly -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 3:19 PM To: '[EMAIL PROTECTED]'; Oliver Ohly Subject: RE: IIS out of process It seems you are tryiong to use ajp13 with IIS..this does not work ..IISConnector ONLY uses ajp12..so delte all the references to ajp13 in your uriworkermap.properties..delete the ajp13 connector fromserver.xml ..double check all your configs..with this issue in mind... Saludos , Ignacio J. Ortega -Mensaje original- De: Oliver H. Ohly [mailto:[EMAIL PROTECTED]] Enviado el: martes 3 de abril de 2001 14:28 Para: [EMAIL PROTECTED] Cc: Georg Fritzsche Asunto: IIS out of process Hi to everybody, Does anybody know how to configure tomcat and IIS on NT 4.0 completely so that tomcat serves Servlets received by IIS via ajpv12? What works: The isapi_redirect.dll is loaded by IIS-Service. (green up pointing arrow). Depending on the settings in uriworkermap.properties the IIS serves static html or lets it serve by tomcat. What doesn't work: Regardless of the uriworkermap.properties Settings - No servlet is executed after the given request on the IIS-Tomcat conglomerate. The error logging in the IIS-logfile says: 10:23:15 127.0.0.1 GET /jakarta/isapi_redirect.dll 200 10:30:24 127.0.0.1 GET /jakarta/isapi_redirect.dll 200 The isapi.log says: [jk_worker.c (164)]: wc_create_worker NULL factory for ajp13 [jk_worker.c (239)]: build_worker_map failed to create workerajp13 [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Does anyone have some advice? P.S. I studied the Mail-Archive but couldn't find anything helpful for my specific problem. The documentation (IIS How To) is incomplete. Greetings, Olly Beschwerlich die Verstandigung, Muhselig die Telefonie. Erleichterung und frischen Schwung Bringt TEDAS, your voice dot IP! Ruf mich an ... Dot IP! Dot IP or not to be! (Dr. Gatekeeper)
Apache SSL or Tomcat SSL
Hey All, Newbie here. Been working with this stuff for about a week and a half now. Boss told me to get Tomcat and SOAP and add them to the apache server and demonstrate they work. Well, it took some time but that's done. Now he says: Add SSL My question is I've been reading every thing I can get my hands on and it looks like I can: 1) Add SSL to apache and run two servers (http on 80 and https on 443 or whatever) or use the Virtual host stuff -or- 2) Add SSL to Tomcat. Do I need to do both even if all secure traffic will come through Tomcat or could I get by just by getting Apache-SSl working? Is one easier than the other (Apache with SSL or Tomcat with SSL)? Particulars: I'm running Apache 1.3.19, Tomcat 3.1.1, Soap 2.0, on a Solaris 7 System. TIA, Patrick. -- e-mail: [EMAIL PROTECTED]
RE: Error 500
This may come as a surprise, but the error message means that Tomcat can't find javac - the Java Compiler. Check your JAVA_HOME environment variable - you need to set JAVA_HOME so that JAVA_HOME/lib/tools.jar is the valid path to the file. If you are using IBM's Jikes for your Java compiler then you need to alter your configuration files (there should be more information on this in the docs, but I'm not familiar with this setup). Randy -Original Message- From: Rory Lacy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: Error 500 My current environment is NT 4.0 running IIS. I installed Tomcat 3.2.1 as a stand alone servlet container. I also downloaded and installed from Sun, JRE 1.3. The reason for installing this is to run JSP's. I attempted to run the servlets off the Tomcat index.html and they run. The JSP examples will not run with the Error 500 message being displayed. I am attempting to get the demos to work before the actual pages. Below is the message I get below the Error 500 statement. thanks in advance Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp iler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1 2.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Unknown Source)
RE: Error 500
I think the jre is not suffisient. You need JDK1.x/lib/tools.jar and a CLASSPATH on it. Therein javac is being seeked for. Greetings, Olly Beschwerlich die Verständigung, Mühselig die Telefonie. Erleichterung und frischen Schwung Bringt TEDAS, your voice dot IP! Ruf mich an ... Dot IP! Dot IP or not to be! (Dr. Gatekeeper) -Original Message- From: Rory Lacy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 3:22 PM To: [EMAIL PROTECTED] Subject: Error 500 My current environment is NT 4.0 running IIS. I installed Tomcat 3.2.1 as a stand alone servlet container. I also downloaded and installed from Sun, JRE 1.3. The reason for installing this is to run JSP's. I attempted to run the servlets off the Tomcat index.html and they run. The JSP examples will not run with the Error 500 message being displayed. I am attempting to get the demos to work before the actual pages. Below is the message I get below the Error 500 statement. thanks in advance Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp iler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1 2.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Unknown Source)
update jsp:pluggin (applet type)
Hi, I asked too many people that question, yet no answer... Is there a way to update the auto-generated code to jsp:pluggin for applet type? I am using Tomcat 4 (beta 1) and I my user requiered to have 1.3 pluggin for Java, where can I update that detail? thanks, David.
Redirecting from a RequestInterceptor
Hello I am trying to write a request interceptor and redirect users to other (non-JSP) url's based on the contents of the URL. I've tried to do things like use request.setRequestURI() and make my own Response with a Location header and then use request.setResponse(), both in the requestMap function. I'm guessing requestMap should return the http status code, but I can't figure out how to set the URL portion. Thanks for any help. dave -- Dave Weis
RE: Apache SSL or Tomcat SSL
SSL is needed between HTTP-Server and Browser, so you need Apache SSL; the interaction between Tomcat and Apache is likely on the same system, the Tomcat SSL-Settings in Server.xml are not valid for ajp12, ajp13... Gru?e, Olly Beschwerlich die Verstandigung, Muhselig die Telefonie. Erleichterung und frischen Schwung Bringt TEDAS, your voice dot IP! Ruf mich an ... Dot IP! Dot IP or not to be! (Dr. Gatekeeper) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 3:47 PM To: tomcat Subject: Apache SSL or Tomcat SSL Hey All, Newbie here. Been working with this stuff for about a week and a half now. Boss told me to get Tomcat and SOAP and add them to the apache server and demonstrate they work. Well, it took some time but that's done. Now he says: Add SSL My question is I've been reading every thing I can get my hands on and it looks like I can: 1) Add SSL to apache and run two servers (http on 80 and https on 443 or whatever) or use the Virtual host stuff -or- 2) Add SSL to Tomcat. Do I need to do both even if all secure traffic will come through Tomcat or could I get by just by getting Apache-SSl working? Is one easier than the other (Apache with SSL or Tomcat with SSL)? Particulars: I'm running Apache 1.3.19, Tomcat 3.1.1, Soap 2.0, on a Solaris 7 System. TIA, Patrick. -- e-mail: [EMAIL PROTECTED]
Re: java.lang.UnsatisifedLinkError
On Tue, 3 Apr 2001 [EMAIL PROTECTED] wrote: hello, I found some talk of this in the archives but no solution was ever suggested and it's becoming a real problem for me. My code calls JNI functions, if i compile and build everything and then start up tomcat all my pages work, all the java classes behind them work and everybody's happy. The problem appears when i modify a java class and recompile it, the next time i visit a page (even one which doesn't call code which uses the JNI lib) i get this unsatisfied link error and a message about my .so already being loaded in another class loader. All of my .class get put in a jar which then gets put in my app's WEB-INF directory, i'm assuming that this is why i get the unsatisifed link error even if the page i try to view calls code which doesn't call the JNI lib, correct? Is this a mistake of mine or a bug? in the later case is there a work around? should i try with tomcat 4? possibily useful info: jdk 1.3 tomcat 3.2.1 linux 2.4 This sounds like a problem I ran into. And I did post about it on the list (including after I found the solution myself). Here's the relevant post from the archive: http://marc.theaimsgroup.com/?l=tomcat-userm=98383500924069w=2 (Note that there are two archives of the list, one is found under "Mailing List Archives" and one under "Tomcat-User Archives" on the jakarta.apache.org page that lists the archives; the former has archives for a ton of lists, including a bunch of apache-related ones, and has a nicer interface.) Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
macro expansion in server.xml?
I have an intranet web app which must run on perhaps a couple of dozen widely distributed Tomcat containers; some on Solaris, some Windows NT, maybe Linux and AIX later. In this situation the toughest challenge isn't writing the web app per se but in maintaining the many containers, tweaking server.xml et al manually for each. I've been experimenting with using a Network Appliance (a fileserver that can serve UNIX via NFS and Windows via SMB) to hold a single physical copy of Tomcat such that all these containers are running from a single pile of bits. This is actually working quite nicely so far except for a little holdup - they all want to write their logfiles to the same place. So I'm wondering if there's a way to put logfiles in, say, $TOMCAT_HOME/$HOSTNAME or otherwise indirect through a macro/property besides TOMCAT_HOME. I've tried setting the log paths in server.xml to absolute pathnames e.g. /var/log/tomcat/... which works on UNIX but not Windows. Same for C:/log in reverse; it has to be a relative path for interop reasons. Does anybody have successful experience or ideas in this area? Thanks, David Boyce
Open VMS
I was wondering if there is a version of tomcat I am able to install on Open VMS system? If so where do I am able down load it? Nick
How to get around a tricky situation.
Hi, I need some advice on how I might fix a problem with one of our web apps. We farmed out an app that works ok except that the web pages which are created by servlets are looking for images in the tomcat root images directory. This presents a problem in that if I create a war of our app I also have to distribute and copy the images over to the root images directory. Can I set up my web.xml file so that when a web page looks for an image in the /images directory it actually pulls them out of my myWebApp/images directory. What I am trying to achieve is one war file that I can use to distribute our app without having the customer copy images over to the root/images directory. Thanks for any help. Regards Alex Colic-0132
Re: hashtables in session
teh j wrote: Hi guys just wondering if it was possible to store Hashtable objects in the implicit session object? thanks Jason [...] Hi :-) I remember I have seen several emails in Servlet-List about it, it is possible, and I remember perhaps it is better to make all the key-value object Serializable, and perhaps it is better to notice which classloader loads those object. Bo Apr.03, 2001
Re: mod_jk for MAC OS X (FreeBSD)
on 3/4/01 5:17 am, Benoit Jacquemont at [EMAIL PROTECTED] wrote: So, you've got the tomcat 3.2.1 sources, and the Apache 1.3.1x tarball on your Mac ? What command did you try to build the mod_jk.c ? Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin I used: ./usr/sbin/apxs -o mod_jk.so -I../jk-I/Library/Java/include-I/Library/Java/include/freebsd -c *.c../jk/*.c
Re: hashtables in session
On Tue, 3 Apr 2001, Bo Xu wrote: teh j wrote: Hi guys just wondering if it was possible to store Hashtable objects in the implicit session object? thanks Jason [...] Hi :-) I remember I have seen several emails in Servlet-List about it, it is possible, and I remember perhaps it is better to make all the key-value object Serializable, and perhaps it is better to notice which classloader loads those object. That's right: You can store ANY object in the session object if you need to. These object are required to be serializable (implement java.io.Serializable), though most servlet engines will let you slide without this. However, it is a very bad idea to have any session object, especially a large one, not serializable. Joe Laffey LAFFEY Computer Imaging St. Louis, MO -- Need to do multi-file string replacement in Un*x, but don't want to mess with sed? Try rpl. It's a free text replacement utility with source. http://www.laffeycomputer.com/rpl.html -- Check it out!
RE: mod_jk for MAC OS X (FreeBSD)
-Message d'origine- De : Darwin Buyson [mailto:[EMAIL PROTECTED]] Envoye : mercredi 4 avril 2001 02:04 A : [EMAIL PROTECTED] Objet : Re: mod_jk for MAC OS X (FreeBSD) on 3/4/01 5:17 am, Benoit Jacquemont at [EMAIL PROTECTED] wrote: So, you've got the tomcat 3.2.1 sources, and the Apache 1.3.1x tarball on your Mac ? What command did you try to build the mod_jk.c ? Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin I used: ./usr/sbin/apxs -o mod_jk.so -I../jk-I/Library/Java/include-I/Library/Java/include/freebsd -c *.c../jk/*.c And what kind of errors do you get when you execute this command ?
Re: Can't set-up Tomcat for ssl. Please help.
If you're running Tomcat standalone, try changing the port value to 443 rather than 8443 (and make sure any firewalls are configured to allow this protocol) (or of course append :8443 to your https request). Kevin On Tue, 3 Apr 2001, Alex Colic wrote: I have been trying to set up tomcat to run ssl direct. I have done the following: 1: I added the following to server.xml Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8443"/ Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" / Parameter name="clientAuth" value="true"/ /Connector 2: edited the java.security file 3: added jcer.jar, jnet.jar and jss3.jar to jre/lib/ext and tomcat/lib 4: created a key via keytool
Tomcat handling non ascii-url characters
hi, i have run into a problem with non ascii-url characters. When there is e.g. the German = auml in an URL, I have to encode it as follows: APACHE alone, non-ascii character anywhere: http://mydomain.de/d%E4mlich.html TOMCAT standalone, non-ascii character anywhere: http://mydomain.de:8080/requ%E4st.jsp?dummy=d%E4mlich APACHE+TOMCAT, non-ascii character in parameters: http://mydomain.de/request.jsp?dummy=d%E4mlich Now before you say, this is really getting boring, watch out: APACHE+TOMCAT, non-ascii character in URI-part: http://mydomain.de/requ%C3%A4st.jsp Obviously, in the last example, the encoding follows rather Unicode than ISO-Latin. As this is conflicting with the "usual" behaviour shown above, I am looking for a solution for the last case. Does anybody know a workaround or a version of apache or tomcat or mod_jk that would solve the problem ? TIA for your help, Stefan BTW I am using: tomcat 3.2.1 apache 1.3.19, connected through mod_jk solaris 2.8 on intel jdk 1.3 from sun
tomcat without apache logging security
Hi I installed Tomcat 3.2.1 (without Apache !) on my Linux machine and made two java servlets that are querying my postgres db and display a web page with the data. Both servlets run fine. However, being a beginner, I can't figure out or find helpful documentation on the following two questions : I would like to log all the queries to the database in logs/servlet.log. I put the verbosityLevel to DEBUG which didn't seem to have an effect on the logfile (it only logs the init calls). In server.xml, there are all these ContextInterceptors that I suspect to be helpful (?), but I have no idea how to use or modify them. If you have some explanation or suggestions or know some documentation "for dummies" I would be very grateful :-) The other thing is the security. I would like to restrict the access to ONE of the two servlets to a couple of IP addresses. Does Tomcat offer a possibility for that ? I saw that by modifying the tomcat.policy file I can do IP filtering, but that concerns all the servlets !? Thanks a lot for any help !! Silvia -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
RE: 2nd Post: Servlets and mod_jk problem -- thanks!
Just want to thank everyone for their help and discussion on this problem. And, I wanted to let everyone know what I found out. Milt, it was your question about my Web-inf directory and whether it was all uppercase or not that cracked it. I originally created that directory as "Web-inf" but apparently on Linux, Tomcat expects this directory to be "WEB-INF." Once I renamed this directory and changed the Location tag in mod_jk.conf appropriately, I was able to get the servlet mappings for the context I added to work. One thing to note, Tomcat for NT is not picky about this, because on my NT deployment of Tomcat, I have the WEB-INF directory named "web-inf" and everything works fine. In summary, here are the two things that I had to fix to get my context's servlet mappings working on Linux: * add "JkMount /[deployment directory]/* ajp13" to the mod_jk.conf file. (This originally solved the problem of the /test servlets not working, and I had to add it to my context as well.) * ensure that WEB-INF is all uppercase. Thanks again, --Kyle -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 9:44 PM To: '[EMAIL PROTECTED]' Subject: RE: 2nd Post: Servlets and mod_jk problem On Fri, 30 Mar 2001, Kyle Tippetts wrote: Milt, I made the changes that Jeff did and I can now get to the /test servlets, but whenever I add my own context and try it (I even simulated one of the examples in the /test directory, I still get a 404 not found from tomcat. Here's what I have in my simulation (note that the context does in fact get added when tomcat starts) We may be going around in circles here, but: What was the URL you tried? mydomain.com/tst/foo/bar/myServlet? And what is the full text of the tomcat log 404 error message? Also, I note you have "Web-inf" in the full path of your servlet/classes directory below -- is that really what it is, or are you just being lazy typing "WEB-INF" (because I believe it's supposed to be ALL CAPS)? Not sure what else to suggest at this point. Must be some little thing we're missing. * mod_jk.conf Alias /tst "/opt/jakarta-tomcat-3.2.1/webapps/tst" JkMount /tst/* ajp13 JkMount /tst/servlet/* ajp13 * web.xml webapp servlet servlet-name test /servlet-name servlet-class com.tst.TestServlet /servlet-class /servlet servlet-mapping servlet-name test /servlet-name url-pattern /foo/bar/* /url-pattern /servlet-mapping /webapp * TestServlet.class sits at /opt/jakarta-tomcat-3.2.1/webapps/tst/Web-inf/classes/com/tst Thanks --Kyle -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 3:48 PM To: '[EMAIL PROTECTED]' Subject: RE: 2nd Post: Servlets and mod_jk problem On Fri, 30 Mar 2001, Kyle Tippetts wrote: Yes, tried this: mydomain.com/test/foo/bar/myServlet and it still didn't work. Now, if I do mydomain.com/test/servlet/requestMap.Servlet1, I can access it (obviously), but again, it really appears that servlet mappings aren't working Now again, when this doesn't work, is it an apache thing or a tomcat thing? What I'm trying to get at is, is apache forwarding the request to tomcat. That will help isolate where the problem is at. In particular, if it's an apache thing, it means the request isn't even getting to tomcat, so it probably has to do with the relevant Mount (ApJServMount, ApJkMount) directives in the tomcat/apache conf file (or, more accurately, the lack of such). This is a problem I ran into when I was setting up some stuff. Did you see Jeff Kilbride's recent post? Apparently he was able to get it to work by adding an appropriate ApJkMount directive. This does seem to be one of the less clear/less well-documented aspects of setting tomcat up. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 2:43 PM To: [EMAIL PROTECTED] Subject: Re: 2nd Post: Servlets and mod_jk problem On Fri, 30 Mar 2001, Jeff Kilbride wrote: [ ... ] Here's the servlet-mapping from web.xml file that comes with the distribution: servlet servlet-name servlet1 /servlet-name servlet-class requestMap.Servlet1 /servlet-class /servlet servlet-mapping servlet-name servlet1 /servlet-name url-pattern /foo/bar/* /url-pattern /servlet-mapping Here's a snippet from my tomcat.log when I try to pull up mydomain.com/test/servlet/foo/bar/myServlet: 985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo + /bar/myServlet) null Did you try the URL: mydomain.com/test/foo/bar/myServlet i.e. without the "/servlet"?
Re: tomcat without apache logging security
On Tue, 3 Apr 2001 [EMAIL PROTECTED] wrote: The other thing is the security. I would like to restrict the access to ONE of the two servlets to a couple of IP addresses. Does Tomcat offer a possibility for that ? I saw that by modifying the tomcat.policy file I can do IP filtering, but that concerns all the servlets !? You could compare the String result of request.getRemoteAddr() to the IP addresses you want to restrict to on the doGet() or doPost() methods of your servlet. The addresses could be specified in the servlet's properties in web.xml Kevin
Fwd: mod_jk for MAC OS X (FreeBSD)
Begin forwarded message: From: Darwin Buyson [EMAIL PROTECTED] Date: Tue Apr 03, 2001 04:57:37 PM Etc/GMT To: [EMAIL PROTECTED] Subject: Re: mod_jk for MAC OS X (FreeBSD) On Tuesday, April 3, 2001, at 03:21 PM, Benoit Jacquemont wrote: -Message d'origine- De : Darwin Buyson [mailto:[EMAIL PROTECTED]] Envoye : mercredi 4 avril 2001 02:04 A : [EMAIL PROTECTED] Objet : Re: mod_jk for MAC OS X (FreeBSD) on 3/4/01 5:17 am, Benoit Jacquemont at [EMAIL PROTECTED] wrote: So, you've got the tomcat 3.2.1 sources, and the Apache 1.3.1x tarball on your Mac ? What command did you try to build the mod_jk.c ? Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin I used: ./usr/sbin/apxs -o mod_jk.so -I../jk-I/Library/Java/include-I/Library/Java/include/freebsd -c *.c../jk/*.c And what kind of errors do you get when you execute this command ? cc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -O3 -pipe -DHARD_SERVER_LIMIT=1024 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -I../jk -I/Library/Java/include -I/Library/Java/include/freebsd -c mod_jk.c ../jk/jk_pool.h:116: undefined type, found `jk_pool_atom_t' mod_jk.c:679: undefined type, found `jk_pool_atom_t' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function) apxs:Break: Command failed with rc=1 not really sure what any of this means!!
Re: mod_jk for MAC OS X (FreeBSD)
On Tuesday, April 3, 2001, at 03:21 PM, Benoit Jacquemont wrote: -Message d'origine- De : Darwin Buyson [mailto:[EMAIL PROTECTED]] Envoye : mercredi 4 avril 2001 02:04 A : [EMAIL PROTECTED] Objet : Re: mod_jk for MAC OS X (FreeBSD) on 3/4/01 5:17 am, Benoit Jacquemont at [EMAIL PROTECTED] wrote: So, you've got the tomcat 3.2.1 sources, and the Apache 1.3.1x tarball on your Mac ? What command did you try to build the mod_jk.c ? Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin I used: ./usr/sbin/apxs -o mod_jk.so -I../jk-I/Library/Java/include-I/Library/Java/include/freebsd -c *.c../jk/*.c And what kind of errors do you get when you execute this command ? cc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -O3 -pipe -DHARD_SERVER_LIMIT=1024 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -I../jk -I/Library/Java/include -I/Library/Java/include/freebsd -c mod_jk.c ../jk/jk_pool.h:116: undefined type, found `jk_pool_atom_t' mod_jk.c:679: undefined type, found `jk_pool_atom_t' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function) apxs:Break: Command failed with rc=1 not really sure what any of this means!!
RE: mod_jk for MAC OS X (FreeBSD)
Begin forwarded message: From: Darwin Buyson [EMAIL PROTECTED] Date: Tue Apr 03, 2001 04:57:37 PM Etc/GMT To: [EMAIL PROTECTED] Subject: Re: mod_jk for MAC OS X (FreeBSD) On Tuesday, April 3, 2001, at 03:21 PM, Benoit Jacquemont wrote: -Message d'origine- De : Darwin Buyson [mailto:[EMAIL PROTECTED]] Envoye : mercredi 4 avril 2001 02:04 A : [EMAIL PROTECTED] Objet : Re: mod_jk for MAC OS X (FreeBSD) on 3/4/01 5:17 am, Benoit Jacquemont at [EMAIL PROTECTED] wrote: So, you've got the tomcat 3.2.1 sources, and the Apache 1.3.1x tarball on your Mac ? What command did you try to build the mod_jk.c ? Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin I used: ./usr/sbin/apxs -o mod_jk.so -I../jk-I/Library/Java/include-I/Library/Java/include/freebsd -c *.c../jk/*.c Just to be sure: do you use a space character between your line argument, I mean, is there any a space between -I../jk-I/Library/Java/include and -I/Library/Java/include/freebsd ? Because, it has to. AS between *.c and ../jk/*.c And what kind of errors do you get when you execute this command ? cc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -O3 -pipe -DHARD_SERVER_LIMIT=1024 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -I../jk -I/Library/Java/include -I/Library/Java/include/freebsd -c mod_jk.c ../jk/jk_pool.h:116: undefined type, found `jk_pool_atom_t' mod_jk.c:679: undefined type, found `jk_pool_atom_t' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function) apxs:Break: Command failed with rc=1 not really sure what any of this means!!
Re: mod_jk for MAC OS X (FreeBSD)
On Tuesday, April 3, 2001, at 04:19 PM, Benoit Jacquemont wrote: Begin forwarded message: From: Darwin Buyson [EMAIL PROTECTED] Date: Tue Apr 03, 2001 04:57:37 PM Etc/GMT To: [EMAIL PROTECTED] Subject: Re: mod_jk for MAC OS X (FreeBSD) On Tuesday, April 3, 2001, at 03:21 PM, Benoit Jacquemont wrote: -Message d'origine- De : Darwin Buyson [mailto:[EMAIL PROTECTED]] Envoye : mercredi 4 avril 2001 02:04 A : [EMAIL PROTECTED] Objet : Re: mod_jk for MAC OS X (FreeBSD) on 3/4/01 5:17 am, Benoit Jacquemont at [EMAIL PROTECTED] wrote: So, you've got the tomcat 3.2.1 sources, and the Apache 1.3.1x tarball on your Mac ? What command did you try to build the mod_jk.c ? Thanks for the reply! Could you give me some pointers on how I can do this? I tried to follow the instructions on the tomcat website, but sadly failed. Any help would be much appreciated. thanks, darwin I used: ./usr/sbin/apxs -o mod_jk.so -I../jk-I/Library/Java/include-I/Library/Java/include/freebsd -c *.c../jk/*.c Just to be sure: do you use a space character between your line argument, I mean, is there any a space between -I../jk-I/Library/Java/include and -I/Library/Java/include/freebsd ? Because, it has to. AS between *.c and ../jk/*.c And what kind of errors do you get when you execute this command ? cc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -O3 -pipe -DHARD_SERVER_LIMIT=1024 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -I../jk -I/Library/Java/include -I/Library/Java/include/freebsd -c mod_jk.c ../jk/jk_pool.h:116: undefined type, found `jk_pool_atom_t' mod_jk.c:679: undefined type, found `jk_pool_atom_t' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function) apxs:Break: Command failed with rc=1 not really sure what any of this means!! i've checked my command and there are spaces where you specified...
sealing violation
What can I do to stop getting this when I try to install tomcat 3.2.1 as an NTSERVICE with jdk1.3? Thanks for your help Regards Warrell Harries
Security Problem with Tomcat
Hi, I've been reading the recent security reports concerning TOMCAT and I'm a little bit confused, so I'm hoping someone can explain them to me. I saw where you can walk the directory structure of your TOMCAT server. From what I seen, the problem was on a WIN2K box with 3.2.1 using the TOMCAT web server. I also read you can download your .jsp files. Here again it seems this problem is evident with the TOMCAT web sever. Later messages reported this problem with 4.02Beta. Somewhere, the thread was lost and I can't piece all of it together. Therefor, I need to know if I have a problem with my configuration. My configuration consist of Solaris 2.6, Apache 1.3.9 and Tomcat 3.2.1. Tomcat has been intergrated within our Apache web server. But, I do start the TOMCAT server. Also, should I upgrade to the latest Beta version to be more secure? Is there anything I have to do to my jsp scripts if I upgrade? Finally, could someone give me a good detail explanation of the security issues with TOMCAT? Dave Ansalvish
RE: How to get around a tricky situation.
the loading of images is a function of your browser after the page has been sent by the server to it. The only way I can think of doing this (barring some funky Java class like ReturnImagesFromContextInterceptor.class, which I'm not sure how you'd do?) is to prefix all your /images/ references with the name of the current context, so instead of /images/myimage.gif, you would do /myWebApp/images/myimage.gif If you didn't want to hardcode these to your context, you could put the context in dynamically based on a variable in your servlet or, before sending the stream back, look for any /images/ references and to a replace with the correct path. Not sure how to do that, offhand, but I'm quite sure it can be done. Jake Hi, I need some advice on how I might fix a problem with one of our web apps. We farmed out an app that works ok except that the web pages which are created by servlets are looking for images in the tomcat root images directory. This presents a problem in that if I create a war of our app I also have to distribute and copy the images over to the root images directory. Can I set up my web.xml file so that when a web page looks for an image in the /images directory it actually pulls them out of my myWebApp/images directory. What I am trying to achieve is one war file that I can use to distribute our app without having the customer copy images over to the root/images directory. Thanks for any help. Regards Alex Colic-0132
change of webapps directory
Hi, I am deploying war files and it seems as if those must be stuck into the $TOMCAT_HOME/webapps directory. Is there any way to specify a different location of this webapps directory? Thanks Christian _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: change of webapps directory
You have to add a new context in the server.xml file (in conf dir). There are other examples in there to copy from. ;) Anuj. Christian Seifert wrote: I am deploying war files and it seems as if those must be stuck into the $TOMCAT_HOME/webapps directory. Is there any way to specify a different location of this webapps directory?
Re: Tomcat 4 webapp integration
On Tue, 3 Apr 2001, Brook, Andy wrote: Hi all, I've been trying the Tomcat 4.0 series of betas for use with a Stuts based webapp. Previously I've had no problem with Tomcat3.2 which happily auto-discovers my webapp and initialises its context. Under 4.0 things seem to have changed, I now get no init messages and when trying to access the webapp URL I get a HTTP 503 message (This application is not currently available). The example servlets seem to run fine, so the problem is in detecting my newly webapp. Has anyone seen this / knows whats up here? Many thanks, andy. [EMAIL PROTECTED] Usually, a 503 means that some initialization problem occurred during startup (as opposed to a 404 which would mean that the URL was not recognized). Check the log files for any detailed error messages that might have been reported. Craig McClanahan
Get new session from each page
Hi, I'm using Tomcat 3.2.1. I develop an application with using JSP and servlets. However, I get different session ids from the pages. Has anyone had this problem? Thanks, Connie
RE: Get new session from each page
I've seen it only when URLs aren't properly encoded (with HttpServletResponse.encodeRedirectURL()). -- Bill K. -Original Message- From: Connie Chan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: Get new session from each page Hi, I'm using Tomcat 3.2.1. I develop an application with using JSP and servlets. However, I get different session ids from the pages. Has anyone had this problem? Thanks, Connie
Static page directory location
Hi- Can someone explain how to set Tomcat up to serve static pages. Also, has anyone benchmarked how much slower it is than Apache? Thanks, Dave
General Architecture
Hello, I am running into an issue with my general architecture. I use Tomcat as my middle-tier. The java code will spit out my HTML form in the browser. No problems there. The problem comes in using the HTML textarea fields. There is a limit to how much a user can enter in these fields. Our client wants the browser front-end and has asked for several fields where the user can enter alot of data (e.g. a history field). They have already bumped up against this text limit and are asking for a solution. I have to believe others have bumped up with this issue before. I am just wondering if anyone else has come up with a solution to this HTML limitation while still using the browser (e.g. not switching to a VB, Java front end). I know this is not specifically a Tomcat issue and I apologize, but if anyone has run into this issue and have tried to solve it I would greatly appreciate your insight (good or bad). Thanks, Peter Len
RE: Static page directory location
You can use the tool that comes with apache. ab -n 1000 -c 20 yourdomainhere/pathto/page.html This is 1000 connections with 20 concurrent connections hitting page.html. My readings on a PIII 667 with 256meg ram 133bus gets me about 170 connections per second on a static page in apache and 28 connections per second to a servlet in tomcat. Mod_perl is about 117 connections per second and php w/database 130 connections per second. Interesting. Not what I had hoped for. Got more tuning to do. Let me know what you get. Regards, Craig -Original Message- From: Dave Brown [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 10:47 AM To: [EMAIL PROTECTED] Subject: RE: Static page directory location Never mind on the location, I figured it out. Any benchmarks would be great though. Thanks! Dave -Original Message- From: Dave Brown [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 11:30 AM To: [EMAIL PROTECTED] Subject: Static page directory location Hi- Can someone explain how to set Tomcat up to serve static pages. Also, has anyone benchmarked how much slower it is than Apache? Thanks, Dave
RE: General Architecture
As long as you're submitting your form via POST (not GET), you should be able to transfer as much data as they can type. The only problem is, they can only type as much as the browser lets them. Most browsers just use the normal, native editor; on Windows, that's an editor limited to (I think) 16Kb. The only solutions I know of involve not using an HTML text/textarea: 1) Use a file input. Let the users type the data into their favorite editor and upload the resulting file. 2) Write your own editor (e.g., a Java applet or a browser plug-in) and move the data up to the server using your own transport. -- Bill K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 1:17 AM To: [EMAIL PROTECTED] Subject: General Architecture Hello, I am running into an issue with my general architecture. I use Tomcat as my middle-tier. The java code will spit out my HTML form in the browser. No problems there. The problem comes in using the HTML textarea fields. There is a limit to how much a user can enter in these fields. Our client wants the browser front-end and has asked for several fields where the user can enter alot of data (e.g. a history field). They have already bumped up against this text limit and are asking for a solution. I have to believe others have bumped up with this issue before. I am just wondering if anyone else has come up with a solution to this HTML limitation while still using the browser (e.g. not switching to a VB, Java front end). I know this is not specifically a Tomcat issue and I apologize, but if anyone has run into this issue and have tried to solve it I would greatly appreciate your insight (good or bad). Thanks, Peter Len
Re: change of webapps directory
well, sure I can do this, but then the mechanism for extracting war files does not work anymore. Christian --- Anuj Agrawal [EMAIL PROTECTED] wrote: You have to add a new context in the server.xml file (in conf dir). There are other examples in there to copy from. ;) Anuj. Christian Seifert wrote: I am deploying war files and it seems as if those must be stuck into the $TOMCAT_HOME/webapps directory. Is there any way to specify a different location of this webapps directory? __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Tomcat+Apache+Virtual Host
Hi Folks, I have tried to configure Jakarta/Tomcat for different Apache-Vhosts, which should have different servlet/jsp-spaces. Therefore I used the Howto which was posted by Phillip Rhodes (5/Jan/2001). The instance for the Vhost is running with Port 7001 (http). http://kienes.webmasters.at and http://kienes.webmasters.at:7001 give the same index.html as response, which is in the Apache-Vhost-Directory. So far, so good. http://kienes.webmasters.at:7001/numguess.jsp 500 http://kienes.webmasters.at:7001/servlet/ 404 http://kienes.webmasters.at:7001/servlet/Snoop2 404 (I have renamed the SnoopServlet.cass for being able to differe whatever the servlet is read from the right directory.) The Tomcat-Engine works well, reachable on Port 7000 and over Apache through the mod_jk. I have alreade invested more than a dozen of hours in fixing this, can anybody give me a hint? Where shall I put the Servlets and the JSP? In the Vhost-Directory/servlet or in the /usr/local/jakarta/build/tomcat/kienes.webmasters.at/servlet or in something like WEB-INF, ROOT, classes, etc? thx in advance Tom
Apache-Tomcat Integration
Hi Guys, I am new to Apache and Tomcat. I have downloaded and sucessfully installed Apache 1.3.19 and Tomcat 3.2.1 they run perfectly fine independently. I would like to intergrate Apache with Tomcat to serve Static pages and JSP and Servlets using Tomcat. 1) I have added Include D:/Tomcat/jakarta-tomcat-3.2.1/conf/tomcat-apache.conf file to httpd.conf file of Apache distribution. 2) Downloaded ApacheModuleJServ.dll and added to libexec directory and modules directory of Apache Installation? 3) I started Tomcat first and then Apache, they started successfully and was able to test servlets fine from Tomcat, but I cannot able to do the same using Apache URL (http://localhost/examples/servlet/HelloWorldExample)? The servlet runs fine if I use Tomcat URL http://localhost:8080/examples/servlet/HelloWorldExample? What would be the best way to test and know that Integration has been successful? thanks for help, RaMESH
Apache-Tomcat Intergation?
Hi Guys, I know this is not appropriate group to post this.. thanks for help I am new to Apache and Tomcat. I have downloaded and sucessfully installed Apache 1.3.19 and Tomcat 3.2.1 they run perfectly fine independently. I would like to intergrate Apache with Tomcat to serve Static pages and JSP and Servlets using Tomcat. 1) I have added Include D:/Tomcat/jakarta-tomcat-3.2.1/conf/tomcat-apache.conf file to httpd.conf file of Apache distribution. 2) Downloaded ApacheModuleJServ.dll and added to libexec directory and modules directory of Apache Installation? 3) I started Tomcat first and then Apache, they started successfully and was able to test servlets fine from Tomcat, but I cannot able to do the same using Apache URL (http://localhost/examples/servlet/HelloWorldExample)? The servlet runs fine if I use Tomcat URL http://localhost:8080/examples/servlet/HelloWorldExample? What would be the best way to test and know that Integration has been successful? thanks for help, RaMESH
FW: j_security_check problem with embedded Tomcat 3.2.1 on Widows 2000 with IIS 5.0
I appreciate your help, I need to fix this asap. Thanks, Rao -Original Message- From: Rao Bhethanabotla Sent: Monday, April 02, 2001 9:38 AM To: '[EMAIL PROTECTED]' Subject: j_security_check problem with embedded Tomcat 3.2.1 on Widows 2000 with IIS 5.0 Hi, I am trying to use IIS 5.0 web server on Windows 2000 with embedded Tomcat 3.2.1 running in JBoss. I followed the instructions in "Tomcat IIS How To" and I am able to see the login page. Once after typing in the login information, I am getting j_security_check error. Somebody has suggested on this mailing list that I need to register ".class" , ".jsp" etc. extensions to be forwarded to Tomcat using isapi_redirect.dll in IIS console. I did this too. It appears that I might be missing some of these forward requests to be registered in IIS console, that's why I might be having j_security_check. So could you please help me on this. "Tomcat IIS How To" instructions worked perfectly on IIS4.0 on NT, but these are not working properly Windows 2000 with IIS 5.0. Regards, Rao
tomcat without apache logging security
E-MAIL LESEN Von: [EMAIL PROTECTED] An: [EMAIL PROTECTED] Hi I installed Tomcat 3.2.1 (without Apache !) on my Linux machine and made two java servlets that are querying my postgres db and display a web page with the data. Both servlets run fine. However, being a beginner, I can't figure out or find helpful documentation on the following two questions : I would like to log all the queries to the database in logs/servlet.log. I put the verbosityLevel to DEBUG which didn't seem to have an effect on the logfile (it only logs the init calls). In server.xml, there are all these ContextInterceptors that I suspect to be helpful (?), but I have no idea how to use or modify them. If you have some explanation or suggestions or know some documentation "for dummies" I would be very grateful :-) The other thing is the security. I would like to restrict the access to ONE of the two servlets to a couple of IP addresses. Does Tomcat offer a possibility for that ? I saw that by modifying the tomcat.policy file I can do IP filtering, but that concerns all the servlets !? Thanks a lot for any help !! Silvia -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Session problem -- sessions being recreated, browser related?
On a servlet-based application I have, I'm getting sporadic reports of problems from users. The symptoms are similar to what happens when cookies are disabled (but they aren't, because I had the users check). Basically, they can't get past the front page of the application, because it won't let them without a valid session (recall that session access is handled via cookies -- I'm not using URL Rewriting). And each time they try, Tomcat is creating a new session for them (and giving them a new cookie). Apparently, it's not recognizing the existing session. Now, this is only happening to a small subset of the users. I haven't isolated a pattern yet, but it may only be happening from certain machines. And the couple of machines I have found the problem on so far are both using Internet Explorer version 4.0. So that might be a factor. (I don't have 4.0 myself, but I did find an old copy of 3.02, and it works OK with that.) Oh, a bit of background -- we switched over from using Netscape Enterprise Server and ServletExec to Apache/Tomcat a couple of weeks ago, and the problem seems to have only started occurring since then. So it does appear to be something Apache/Tomcat-specific. Thanks. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Invalidating Sessions
Hi There JDK1.3, Tomcat 3.2.1, WinNt, IIS Is there any way to detect if a browser has been closed while a request through the servlet still processing? I mean When a user submits a request and closes the browser right away, my servlet still doing something and after finishing its task tries to redirect to a jsp or servlet, but there is no user to write back and my session still is open and I get no error. I want somehow to detect if somebody has been closed his browser after submitting his request. Please help Thank You, Eddie
RE: Invalidating Sessions
no ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Fiodir Eissayou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 1:04 PM To: '[EMAIL PROTECTED]' Subject: Invalidating Sessions Hi There JDK1.3, Tomcat 3.2.1, WinNt, IIS Is there any way to detect if a browser has been closed while a request through the servlet still processing? I mean When a user submits a request and closes the browser right away, my servlet still doing something and after finishing its task tries to redirect to a jsp or servlet, but there is no user to write back and my session still is open and I get no error. I want somehow to detect if somebody has been closed his browser after submitting his request. Please help Thank You, Eddie
Tomcat 4.0 b2 and classloader
Great job Tomcat team! Now Tomcat starts much faster and private class loader provides excellent protection, but there is some bad thing. I didn't specify explicitly for my servlet/JSP XML parser classes, because they were already in class path. Now, I have to. I think, XML parser classes can be considered as system level classes without necessity specifying them for each servlet. Is there a possibility to provide some classes shared by all servlet/JSP including Tomcat itself? Or probably there is another solution? Thanks. Dmitry R., [EMAIL PROTECTED] Chief Architect, MetricStream.COM Santa Clara, CA ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
tomcat
Hi , I am running my servlet:" MarsDm" on the following set up: Apache 1.3.12 Tomcat 3.2.1 WinNt 4.0 and i encountered the following exception, when the servlet was loaded and started running properly: Error: 500 Location: /servlet/MarsDm Internal Servlet Error: java.lang.NullPointerException at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code) at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code) at SessionTrack.setAccessMode(Compiled Code) at MarsDm.doGet(Compiled Code) 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:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler .java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) I would appreciate if anybody help me out on this... Thanks, Anil
Re: Session problem -- sessions being recreated, browser related?
On Tue, 3 Apr 2001, Jeff Kilbride wrote: Hi Milt, Are you using ajp12 or ajp13 as your connector protocol? Apparently, ajp13 has known bugs that cause dropped sessions. I got this from Mike Slinn after visiting his site (http://tomcat.mslinn.com) and noticing that he said "Tomcat v3.2.1 works better with this [AJP12] connector than with AJP13" in his server.xml explanation. I sent him an email to ask him why and he replied "ajp13 has bugs that cause dropped sessions." If this is true, I'm surprised it's not more widely known. The docs talk about ajp13 being much faster due to it's connection re-use, so obviously it was my first choice. I'm not using sessions anywhere, yet, but if I do I'm going to implement ajp12 instead of ajp13. I'd be really interested to find out if this is the cause of your problems. Thanks for the response. I'm using mod_jserv, which means ajp12 (ajp13 is only available with mod_jk). So I guess that can't be the cause of my problems. I don't think it's anything so complicated as dropped sessions. I think it just has something to do with the cookie handling that is getting screwed up. Like apache/tomcat not getting the session cookie back, so it thinks there's no session. (And recall that this is something that was apparently working fine a few weeks ago when we were using NES/ServletExec, so that restricts how general a problem this is somewhat.) - Original Message - From: "Milt Epstein" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 03, 2001 1:06 PM Subject: Session problem -- sessions being recreated, browser related? On a servlet-based application I have, I'm getting sporadic reports of problems from users. The symptoms are similar to what happens when cookies are disabled (but they aren't, because I had the users check). Basically, they can't get past the front page of the application, because it won't let them without a valid session (recall that session access is handled via cookies -- I'm not using URL Rewriting). And each time they try, Tomcat is creating a new session for them (and giving them a new cookie). Apparently, it's not recognizing the existing session. Now, this is only happening to a small subset of the users. I haven't isolated a pattern yet, but it may only be happening from certain machines. And the couple of machines I have found the problem on so far are both using Internet Explorer version 4.0. So that might be a factor. (I don't have 4.0 myself, but I did find an old copy of 3.02, and it works OK with that.) Oh, a bit of background -- we switched over from using Netscape Enterprise Server and ServletExec to Apache/Tomcat a couple of weeks ago, and the problem seems to have only started occurring since then. So it does appear to be something Apache/Tomcat-specific. Thanks. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
.java being taken for a .jsp ???
We have several environments on different machines, all of which use the same codebase and build files (pointing to separate Tomcat installations). One of these is NT, two are Solaris. On one of the Solaris systems, we get the error below, which appears to suggest that ErrorLog.java is being taken to be a .jsp to be compiled. ErrorLog.java is actually a file generated by Oracle's jPublisher tool (via sqlj). It has in fact been compiled and the .class file is where I expect it to be. The .class files on both Solaris machines are the same length. All three machines are using the same set of .jar files. Any ideas about what might be happening? Error: 500 Location: /snv/jsp/Account/SNV_cRegisterAccount.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP/u02/apache-tomcat/jakarta-tomcat/webapps/snv/WEB-INF/classes/com/snv/jpu b/ErrorLog.java:15: Class com.snv.jpub.ErrorLog already defined in ErrorLog.java. public class ErrorLog implements CustomDatum, CustomDatumFactory ^ 1 error at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:107) at org.apache.jasper.JasperException.(JasperException.java:73) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi led Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) Thanks, George McKinney, Developer Tantalus Communications Inc. 500-1122 Mainland Street Vancouver, BC, Canada V6B 5L1 [EMAIL PROTECTED] Direct 604.726.6753 Main604.609.0700 Fax 604.609.0705 "The Oracle Experts" www.tantalus.com
question about uploading files and multipart/form-data FORMS
Hi All -- With Tomcat, I have no problems submitting forms with ENCTYPE="multipart/form-data" and uploading files into my server. However, when I was using Apache/JServ, certain files will not upload because the code that reads the uploaded data dies on a read()call somewhere with an application null error. I cannot determine what causes the problem -- it's not the type of file, or anything, such certain files, and .doc files seem to be the most troublesome. Has anyone else seen this problem with apache/Jserv, but not with Tomcat? Thanks Betty Portal Wave, Inc.Catalyst for Collaborative Commercewww.portalwave.com
Re: Tomcat 4.0 b2 and classloader
The goal of JAXP is making a developer free from thinking what kind/vendor of XML parser he/she uses (in my understanding). Of course, I have copied these stuff to lib directory as got class not found messages. So, if I have 10 different applications running on Tomcat, then I have to have 10 copies of XML libraries. It isn't problem regarding disk space, but could be a problem regarding RAM. I like Sun's solution when you can copy some classes in trusted location and then use them without duplication for each application. Dmitry R., [EMAIL PROTECTED] Chief Architect, MetricStream.COM Santa Clara, CA -Original Message- From:Craig R. McClanahan [EMAIL PROTECTED] Sent:Tue, 3 Apr 2001 18:33:41 -0700 (PDT) To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Tomcat 4.0 b2 and classloader On Tue, 3 Apr 2001, Dmitry Rogatkin wrote: Great job Tomcat team! Now Tomcat starts much faster and private class loader provides excellent protection, but there is some bad thing. I didn't specify explicitly for my servlet/JSP XML parser classes, because they were already in class path. Now, I have to. I think, XML parser classes can be considered as system level classes without necessity specifying them for each servlet. Is there a possibility to provide some classes shared by all servlet/JSP including Tomcat itself? Or probably there is another solution? It turns out that which XML parser should be used is very much an emotional issue for many people :-). As shipped, Tomcat 4.0 does not expose an XML parser to all webapps, but this is easy to change: * If you want to use the JAXP RI parser, move jaxp.jar and crimson.jar from the jasper directory to the lib directory. * If you want to use Xerces (only version 1.3.1 has all the required support), put xerces.jar in the "lib" directory, and remove jaxp.jar and crimson.jar from "jasper". See the release notes for more info. Thanks. Dmitry R., [EMAIL PROTECTED] Chief Architect, MetricStream.COM Santa Clara, CA Craig McClanahan (who happens to be in Santa Clara this week for ApacheCon) IMPORTANT NOTE: You should also upgrade to Tomcat 4.0-beta-3 instead, to fix a security vulnerability that was reported in beta 2. ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
NoClassDefFoundError
Hi all, I just joined this list. If my question has been answered before I would appreciate a link to the answer. I have installed jakarta-tomcat3.2.1 on red hat 7.0. I have integrated with apache1.3.19 with mod_jserv. I have no problem with servlets, but when I access some of the .jsp files I get the following error message: Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) ... ... ... Any idea is greatly appreciated. Hossein -- Hossein Tahani, Ph.D.505-454-3301 Highlands University
RE: NoClassDefFoundError
hey it sounds like your tomcat is using the jre not the jdk! check the JAVA_HOME value tomcat startup up script is using by putting an echo command in the script.. -Original Message- From: Hossein Tahani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 12:08 PM To: tomcat users Subject: NoClassDefFoundError Hi all, I just joined this list. If my question has been answered before I would appreciate a link to the answer. I have installed jakarta-tomcat3.2.1 on red hat 7.0. I have integrated with apache1.3.19 with mod_jserv. I have no problem with servlets, but when I access some of the .jsp files I get the following error message: Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) ... ... ... Any idea is greatly appreciated. Hossein -- Hossein Tahani, Ph.D.505-454-3301 Highlands University
Re: NoClassDefFoundError
I get JAVACMD is /usr/jdk1.3/bin/java Apparently, it doesn't find the /usr/jdk1.3/lib/tools.jar that has the sun.tools.javac.Main. But, tools.jar is in its classpath. Thanks! Warren Crossing wrote: hey it sounds like your tomcat is using the jre not the jdk! check the JAVA_HOME value tomcat startup up script is using by putting an echo command in the script.. -Original Message- From: Hossein Tahani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 12:08 PM To: tomcat users Subject: NoClassDefFoundError Hi all, I just joined this list. If my question has been answered before I would appreciate a link to the answer. I have installed jakarta-tomcat3.2.1 on red hat 7.0. I have integrated with apache1.3.19 with mod_jserv. I have no problem with servlets, but when I access some of the .jsp files I get the following error message: Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) ... ... ... Any idea is greatly appreciated. Hossein -- Hossein Tahani, Ph.D.505-454-3301 Highlands University -- Hossein Tahani, Ph.D.505-454-3301 Highlands University
Re: .java being taken for a .jsp ???
George, It doesn't sound like Tomcat is mistaking your Java file for a jsp. It actually looks like it's trying to recompile a file inside of your one of your jars, which is pretty weird. Sounds more like an situation where you've got multiple copies of the same class in your classpath. Is the classpath identical on both machines? And are there any errant copies of ErrorLog.java or the Oracle jar lying around on that system? __ Matt Youell"Think different - just like everyone else." - Original Message - From: "George McKInney" [EMAIL PROTECTED] To: "'tomcat user list'" [EMAIL PROTECTED] Sent: Tuesday, April 03, 2001 3:42 PM Subject: .java being taken for a .jsp ??? We have several environments on different machines, all of which use the same codebase and build files (pointing to separate Tomcat installations). One of these is NT, two are Solaris. On one of the Solaris systems, we get the error below, which appears to suggest that ErrorLog.java is being taken to be a .jsp to be compiled. ErrorLog.java is actually a file generated by Oracle's jPublisher tool (via sqlj). It has in fact been compiled and the .class file is where I expect it to be. The .class files on both Solaris machines are the same length. All three machines are using the same set of .jar files. Any ideas about what might be happening? Error: 500 Location: /snv/jsp/Account/SNV_cRegisterAccount.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP/u02/apache-tomcat/jakarta-tomcat/webapps/snv/WEB-INF/classes/com/snv/jpu b/ErrorLog.java:15: Class com.snv.jpub.ErrorLog already defined in ErrorLog.java. public class ErrorLog implements CustomDatum, CustomDatumFactory ^ 1 error at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:107) at org.apache.jasper.JasperException.(JasperException.java:73) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi led Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) Thanks, George McKinney, Developer Tantalus Communications Inc. 500-1122 Mainland Street Vancouver, BC, Canada V6B 5L1 [EMAIL PROTECTED] Direct 604.726.6753 Main604.609.0700 Fax 604.609.0705 "The Oracle Experts" www.tantalus.com
file reading and writing
I am trying to control some file reading and writing. I'm trying to transition some servlets from QuidProQuo, and the primary difficult I am having is figuring out how to read and write a file. I've tried to debug everything I can think of, mostly the permissions on all the work directories (localhost_8080* all set to rwx). Getting accustomed to OS X, I know that permissions can be a big sticking point. Although it could be something else completely, despite the error. Here's the code I am trying in a simple servlet. -- DataOutputStream fileOut; fileOut = new DataOutputStream( new FileOutputStream("output.txt")); fileOut.writeBytes("test"); fileOut.close(); -- A call to getServletContext().getAttribute("javax.servlet.context.tempdir") returns: jakarta-tomcat-3.2.1/work/localhost_8080 And the servlet catches the exception: java.io.FileNotFoundException: output.txt (Permission denied) So, where does the servlet store things it wants to access? I'm just looking for something simple here, until I have the time to learn jar file access in general. Hopefully I'm just missing something in the development or config docs. Brian Teutsch
DeployedServices.ds
I'm upgrading from Tomcat 3.2.1 to 3.2.2b2. In my development installation, Tomcat is running OK, with no DeployedServices.ds extant. In my deployment installation, there is also no DeployedServices.ds, but I get this complaint: SOAP Service Manager: Unable to read 'DeployedServices.ds': assuming fresh start and then my SOAP clients fail like this: Generated fault: Fault Code = SOAP-ENV:Server Fault String = service 'urn:SOAPServer' unknown call returned with -5 How can this be? Should there be a DeployedServices.ds or not, and where? Thanks, Mike
RE: NoClassDefFoundError
Just be sure about includying tools.jar in the classpath of tomcat. my two cents, gus. # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Martes, 03 de Abril de 2001 09:57 p.m. # To: [EMAIL PROTECTED] # Subject: Re: NoClassDefFoundError # # # # I get # JAVACMD is /usr/jdk1.3/bin/java # # Apparently, it doesn't find the # /usr/jdk1.3/lib/tools.jar that has the # sun.tools.javac.Main. But, tools.jar is in its # classpath. # # Thanks! # # Warren Crossing wrote: # # hey it sounds like your tomcat is using the jre not the jdk! check the # JAVA_HOME value tomcat startup up script is using by putting # an echo command # in the script.. # # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Wednesday, 4 April 2001 12:08 PM # To: tomcat users # Subject: NoClassDefFoundError # # Hi all, # I just joined this list. If my question has been # answered before I would appreciate a link to the # answer. # # I have installed jakarta-tomcat3.2.1 on red hat 7.0. I # have integrated with apache1.3.19 with mod_jserv. # # I have no problem with servlets, but when I access some # of the .jsp files I get the following error message: # Root cause: # # java.lang.NoClassDefFoundError: sun/tools/javac/Main # at # # org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile # r.java:128) # at # org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) # at # org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) # at # # org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) # at # org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) # ... # ... # ... # # Any idea is greatly appreciated. # # Hossein # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University
Re: DeployedServices.ds
Never mind, I was confused by something else. DeployedServices.ds still needs to exist in Tomcat 3.2.2b2.
RE: NoClassDefFoundError
classpath or maybe even Xbootclasspath ?? -Original Message- From: Gustavo Munoz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 2:26 PM To: [EMAIL PROTECTED] Subject: RE: NoClassDefFoundError Just be sure about includying tools.jar in the classpath of tomcat. my two cents, gus. # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Martes, 03 de Abril de 2001 09:57 p.m. # To: [EMAIL PROTECTED] # Subject: Re: NoClassDefFoundError # # # # I get # JAVACMD is /usr/jdk1.3/bin/java # # Apparently, it doesn't find the # /usr/jdk1.3/lib/tools.jar that has the # sun.tools.javac.Main. But, tools.jar is in its # classpath. # # Thanks! # # Warren Crossing wrote: # # hey it sounds like your tomcat is using the jre not the jdk! check the # JAVA_HOME value tomcat startup up script is using by putting # an echo command # in the script.. # # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Wednesday, 4 April 2001 12:08 PM # To: tomcat users # Subject: NoClassDefFoundError # # Hi all, # I just joined this list. If my question has been # answered before I would appreciate a link to the # answer. # # I have installed jakarta-tomcat3.2.1 on red hat 7.0. I # have integrated with apache1.3.19 with mod_jserv. # # I have no problem with servlets, but when I access some # of the .jsp files I get the following error message: # Root cause: # # java.lang.NoClassDefFoundError: sun/tools/javac/Main # at # # org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile # r.java:128) # at # org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) # at # org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) # at # # org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) # at # org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) # ... # ... # ... # # Any idea is greatly appreciated. # # Hossein # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University
IIS tomcat session problem
Hi, I am trying to use tomcat3.2.1 together with IIS5. Everything works fine except the session. In my project - my first one in tomcat, logon.jsp will keep the user logon infomation in Session and redirect user to menu.jsp. Menu.jsp will then check the logon info before doing any actual work. If it can not find the necessary Session info, it will redirect user back to logon.jsp. All these work fine under Tomcat. But when I turn to IIS Combination, I found every time when logon, I could not be redirected to menu.jsp. Seems like they use different Seesion?? Can anyone give me a hint to resolve this problem? thanks in advance.