Document contains no data
I helped setup TC-4.1.24/Apache-2.0.45/mod-jk2-2.0.2 on RH8. When I was last associated with it, it seemed to work fine with some simple servlets. Some modifications were made ( no one seems to know exactly what ) and now when requesting a servlet, it grinds awhile and returns Document contains no data I tried accessing that TC on port 8080 ( I had left it listening ) and I receive the same error. I installed a new copy of TC-4.1.24, changed CATALINA_HOME to the new install and receive the same Document contains.. when trying to access localhost:8080 or localhost:8080/examples, . Since it does it with the clean install, I figure it is something other than the TC. The only exception in the logs is in localhost_admin_log and the salient portion is below. The other logs indicate nothing wrong and catalina.out ends with Starting service Tomcat-Standalone Apache Tomcat/4.1.24 May 31, 2003 7:27:30 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 May 31, 2003 7:27:30 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 May 31, 2003 7:27:30 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=14/242 config=/usr/local/tomcat4/conf/jk2.properties I checked the CLASSPATH to ensure that it was getting to the correct servlet.jar I only have access to the machine via telnet when I am on campus, so it is a little hard to do too much exploring. Any help as to where to start looking when I go back will be greatly appreciated. Gordon From localhost_admin_log: 2003-05-31 19:27:25 org.apache.webapp.admin.ApplicationServlet: init 2003-05-31 19:27:27 StandardContext[/admin]: Servlet /admin threw load() exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.lang.NoSuchMethodError: javax.servlet.ServletConfig.getServletName()Ljava/lang/String; at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1408) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474) at org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152) at javax.servlet.GenericServlet.init(GenericServlet.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2003-05-31 19:27:27 StandardWrapper[/admin:invoker]: Loading container servlet invoker 2003-05-31 19:27:27 org.apache.catalina.servlets.InvokerServlet: init 2003-05-31 19:27:27 org.apache.jasper.servlet.JspServlet: init - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Guilde on using MOD_JK2
Try this ( if you don't read Japanese, I don't ) follow the screen shots http://www.hellohiro.com/apacheservlet.htm joe wrote: Original Message - From: joe [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 2:32 AM Subject: Guild on using MOD_JK2 Hi all, i've been playing with mod_jk connector and thanks to this email chain that i've finally got it to work...However, it seems that i've read that mod_jk2 connector is much better than mod_jk. Could anyone give me some update URL/guide or changes i need to make to migrate to use mod_jk2? Those that i have found on the web or in this mailing lists are all outdated or it doesn't fit my configuration when i try to follow the step in building/install the module. I really hope someone could come out with a more updated links on building and using the latest version of source available.(i wish i could if i know how to). Below are the configuration that i'm using. Red Hat 8.0 J2SDK 1.4.1 Apache 2.0.46 Tomcat 4.1.24 Regards, Joe
-Xincgc, -Xms600, -Xmx600
Hi, Recently my tomcat (jvm rather) 4 server started running at 100% CPU utilization and not service any request for long periods of time. This must be due to the JVM doing garbase collection. I modified my system register appropriatly and but a few days later (when memory consuption hit 600MB) tomcat started acting funny again. Here is what I did to modify my register: 1. Stop Apache Tomcat service 2. Stop Apache service. 3. Modify/Add registry keys. 4. Start Apache Tomcat service 5. Start Apache service Please not that I did not restart the entire box. Platform: Windows 2000 Server SP3 Tomcat 4 1GB Physical RAM I cannot see any change I the servers behaviour since I modifeid the registry. What would you suggest I do to test my new settings and ensure that incremental garbage collection is happening? Thanks Jason - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
Re: Thanks to John and Geralyn
On Sun, 1 Jun 2003 14:56:19 +0800, joe wrote coyote. What should be the proper way to build mod-jk2? or can i just use the binary version available on apache website which is meant for apache 2.0.42, wherelse i'm using 2.0.46? Joe, I used both a version of mod_jk2 that my sysadmin built (he is root on the system - and he's built Apache connectors for other things) and a binary (I think it was said it was for Apache 2.0.43? There were only 3 of them there for Solaris8 - I believe this was on the standard Apache-Tomcat connectors site) that I downloaded; both worked for me running Apache 2.0.45. As far as which was fast or more efficient, that's to be determined later! Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't find TomcatStarter Startup Errors Apache crash
Allen Williams wrote: I haven't tried recompiling from source. I am hoping I won't have to go that far! I hear you, Allen ! I am trying not to do that for my Linux installation as well. It tends to increase the number of questions and the risk of breaking something. Which is why I always try the rpm or binaries approach first, and try to stick with it come hell or high water. mod_jk2-2.0.43.dll mod_jk2-1.3.27.dll mod_jk2.dll mod_jk2 can run on both Apache 1.3.x as well as Apache 2.x. The second DLL file, mod_jk2-1.3.27.dll seems to be made for Apache 1.3.27. I wouldn't expect it to work for Apache 2. Having said that, I was wondering if there were multiple versions of mod_jk2 for Windows, like there is for Linux (v 2.0.1 and 2.0.2 for example). At this point, it does not look like compiling from source is a trivial option. I really don't know the development paths and structures and file organization (although I'd like to learn because I'd like to contribute, and also because I could then solve my immediate problem *very* expeditiously), I've heard that trying to compile using Visual C++ can be an ordeal in itself. I'd have tried to help you, except I have a deep aversion to everything Microsoft (and Oracle) because of some things that happened to me in the past. At this point, I'm in sequestered meditation, prayerfully contemplating the possibility someone has seen this before, or that a developer will see what I've got here and respond :-) Otherwise I may drop all the way back to mod_jk. I've heard NOT to use warp, but haven't tried it. Well, no point dropping back to warp because that module will no longer be developed further, or so I hear. If you have the luxury of time, I would say meditating on it is good. It should not be long before they churn out another binary, I should think, because of certain problems with SSL connections that were solved only in the latest CVS version of mod_jk2. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: Error while opening the workers, jk will not work
Recently I have been seeing 'Error while opening the workers, jk will not work' show up in my httpd/error_log. And when that happens I get Error 500 codes and have to reboot my server. Stop and restarting tomcat or httpd doesnt help I have running rh 7.2 tomcat 4.1.24 apache 1.3.27 I just upgraded the mod_jk connector to mod_jk.so.ap1.3.27-eapi.rh72 thinking that was the problem . But that didnt help either. This system has been working flawlessly until recently. Is there anything else I can turn on in order to see a more verbose mod_jk error Also I have noticed that I can re-create the problem . If I shut down the apache server and restart it. Also after viewing the logs in mod_jk.log and catalina.out that it appears robots looking for files on my server has caused this problem as well :( here is an excerpt from my error_log file: [Sun Jun 1 08:44:52 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl/1.26 mod_jk/1.2.1 configured -- resuming normal operations [Sun Jun 1 08:44:52 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Jun 1 08:44:52 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) [Sun Jun 1 08:50:34 2003] [notice] caught SIGTERM, shutting down [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work Thanks in advance Rob Cartier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: Error while opening the workers, jk will not work
Recently I have been seeing 'Error while opening the workers, jk will not work' show up in my httpd/error_log. And when that happens I get Error 500 codes and have to reboot my server. Stop and restarting tomcat or httpd doesnt help I have running rh 7.2 tomcat 4.1.24 apache 1.3.27 I just upgraded the mod_jk connector to mod_jk.so.ap1.3.27-eapi.rh72 thinking that was the problem . But that didnt help either. This system has been working flawlessly until recently. Is there anything else I can turn on in order to see a more verbose mod_jk error Also I have noticed that I can re-create the problem . If I shut down the apache server and restart it. Also after viewing the logs in mod_jk.log and catalina.out that it appears robots looking for files on my server has caused this problem as well :( here is an excerpt from my error_log file: [Sun Jun 1 08:44:52 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl/1.26 mod_jk/1.2.1 configured -- resuming normal operations [Sun Jun 1 08:44:52 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Jun 1 08:44:52 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) [Sun Jun 1 08:50:34 2003] [notice] caught SIGTERM, shutting down [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work Thanks in advance Rob Cartier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Some thoughts on memory consumption and gc
Hi there, I've made some tests with the gc and the -Xms and -Xmx settings. Suppose I have a list generated from a database with a size of 10.000 records with an average of 200 bytes each. This gives 2 MB data volume. *) If you have 128 MB heap and 64 MB stack memory assigned, against which will the memory consumption count? *) According to my experiements Runtime.availableMemory will give me the heap size. How can I determine the stack size (without using a profiler) *) Given the 2 MB memory consumption per request, does this effectively mean that the server will be able to support a maximum of 64 concurrent requests? *) To my mind it seems that the MVC approach doesn't come in very handy here, the only solution would be to split the list into smaller parts. Anyway, right at the time one passes control from the Servlet (Controller) which invoked the model and filled it to the view (jsp), we'll have a lot of memory allocated per request. *) Has anybody practical experience with Garbage collector tuning? Currently it seems my gc may come in too late and this will result in OutofMemoryExceptions (of course I close all database connections properly and always use finally to free Connections). Does anybody have ideas how to trace such issues? (I already tested with Borland Optimizeit and no SQL or Oracle objects lurk around in memory longer than needed). I've previously programmed with many other programming languages, and never leaked memory or had any memory issues (ok not to mention C, but there you have full memory control and responsibility). With Java memory issues are always hard to track but occur frequently in load tests. Has anybody tips available how to keep track of memory consumption easily. Any input is highly appreciated, Johannes
IIS Authentication pops up after tomcat form base fails?why?
Hello, I have my tomcat behind IIS5 thru JK2 connector. My tomcat has a form base authentication form. The problem here is if my tomcat form base authentication fails, IIS pops up its own diaglog window for another authentication. How do I prevent this? Regards -Dan
when I use a servlet too many times- error
I have a servlet that generates images dynamically. Examples of requests: imgChanger?text=Hello imgChanger?text=Beautiful etc I play with it about 10-20 times and after that, in IE, instead of getting the image I am getting an img square[no image] and tomcat says: Jun 1, 2003 6:48:06 PM org.apache.jk.server.JkCoyoteHandler action INFO: RESET
Re: faulty fix for (javax.servlet does not exist)
This website http://www.sitepoint.com/article/509/3 says all I have to do is put servlet.jar in my classpath to solve my problems. Unfortunitally, it doesn't seem to work. This is my error - $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ --- THis is my path $ echo $CLASSPATH /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-resources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/ common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/ lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/ commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils. jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/ lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/server/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/ htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/usr/java/j2sdkee1.4/lib/jhall.jar The actual code is CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-resources.jar:/va r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-collections.jar:/var/tomcat 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/lib/ ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/jasper-compiler.jar:/var/ tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet. jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar:/var/tomcat4/co mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/server/lib/servlets-comm on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/va r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commons-digester.jar:/var/tom cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var/tomcat4/server/lib/comm ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4j-jmx.jar: /var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.renametojar:/var/tomcat4/ server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/ tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/server/lib/commons-modeler. jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-default.jar:/var/tomcat4/serv er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/server/lib/to mcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib/tomcat-warp.jar:/usr/ja va/j2sdk1.4.1_02/lib/dt.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eeto ols.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/htmlconverter.jar:/usr/ja va/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib /j2ee.jar:/usr/java/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/usr/java /j2sdkee1.4/lib/jhall.jar which is very long so, in short it contains: All the J2sdk 1.4 jar files All the J2sdk Enterprise edition Jar files
Re: faulty fix for (javax.servlet does not exist)
Simplify things... Firstly that extensive CLASSPATH you have created could be causing more problems than it is solving, so try removing it. Then just try: javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java Does that work? If not does the user you are compiling with have rights to access /var/tomcat4/common/lib/servlet.jar ? Regards, Jason On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote: This website http://www.sitepoint.com/article/509/3 says all I have to do is put servlet.jar in my classpath to solve my problems. Unfortunitally, it doesn't seem to work. This is my error -- --- $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ -- - THis is my path $ echo $CLASSPATH /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/ common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4 /common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j :ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/ lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/ commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4 /server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils. jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4 j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/ lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar :/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat 4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar :/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/ htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us r/java/j2sdkee1.4/lib/jhall.jar The actual code is CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/ naming-resources.jar:/va r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col lections.jar:/var/tomcat 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar: /var/tomcat4/common/lib/ ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j asper-compiler.jar:/var/ tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom cat4/common/lib/servlet. jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib /jta.jar:/var/tomcat4/co mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/ server/lib/servlets-comm on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l ib/tomcat-http11.jar:/va r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo ns-digester.jar:/var/tom cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var /tomcat4/server/lib/comm ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/ server/lib/mx4j-jmx.jar: /var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.r enametojar:/var/tomcat4/ server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar: /var/tomcat4/server/lib/ tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/ser ver/lib/commons-modeler. jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-defau lt.jar:/var/tomcat4/serv er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/v ar/tomcat4/server/lib/to mcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib /tomcat-warp.jar:/usr/ja
Tomcat problems every morning.
Hi, I am running Tomcat 4.1.24 server on Linux and every morning I get the following exception. Things work perfectly fine throughout the day after I restart the Tomcat server. Any ideas? Could this be a logger issue, because my server logs rotate every night. Any help will be appreciated. Thanks, Hemendra 2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Communication link failure: java.io.IOException at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source) at org.apache.catalina.core.ApplicationDispatcher.doInclude(Unknown Source) at org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source) at org.apache.jsp.index_jsp._jspService(index_jsp.java:98) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Expression Language question
Simple question. I have a JSP/Servlet combination in which Servlet is used to authenticate user and create a session. A JSP page then checks for the existence of the session and reads neccessary ID from it. I'm switching to JSTL and I'd like to switch to EL, now. Here is the old code, how can I translate it to EL? OLD CODE - %@ page contentType=text/html; charset=windows-1250 ... session=true ... % %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % %@ taglib uri=http://java.sun.com/jstl/sql; prefix=sql % % if (session.isNew()) { response.sendRedirect( response.encodeRedirectURL( Error.jsp?reason=Wrong+login ) ); } % NEW CODE (the only thing I can come up with) - %@ page contentType=text/html; charset=windows-1250 ... session=true ... % %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % %@ taglib uri=http://java.sun.com/jstl/sql; prefix=sql % c:if test=${empty sessionScope.userID}/ c:redirect url=Error.jsp?reason=Not+logged+in/ /c:if - Anybody got a better idea? Nix.
Re: Tomcat problems every morning.
On Mon, 2 Jun 2003 01:31, Hemendra Rana wrote: I am running Tomcat 4.1.24 server on Linux and every morning I get the following exception. Things work perfectly fine throughout the day after I restart the Tomcat server. Any ideas? Could this be a logger issue, because my server logs rotate every night. 2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Communication link failure: java.io.IOException Don't think it's a logger issue... Are your JSP's accessing a database or a remote server for some other reason? Looking through Google that error is usually thrown through JDBC, so it could well be something on the database end causing it. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forms and JSPs
It works! Instead of recompiling Apache 1.3 to use threads I installed Apache 2.0 and mod_jk2. It took a bit of wrangling to get the configs working with my virtual hosts, but now everything is happy and I can use parameters on the URL. Thanks everybody! Jeff On Saturday, May 31, 2003, at 01:04 PM, Jeff Knox wrote: AAAH! lol Ok, at first I was using the Warp connector and told to dump it because it wasn't supported and mod_jk was the way to go. Now you are telling me to go with mod_jk2?! I'll take a look at it. It's times like these when I know why I'm a programmer and not a sysadmin. Thanks for the info, Jeff On Saturday, May 31, 2003, at 12:54 PM, Jason Bainbridge wrote: On Sun, 1 Jun 2003 03:35, Jeff Knox wrote: OK, I moved the server.xml file from the IDE to the production instance. Using port 8080 everything works great. I added a connector for mod_jk and sure enough it doesn't work. Would the problem be in the server.xml, httpd.conf or somewhere else? Here are the two connectors: I'm guessing your problem is more related to mod_jk itself and not your configuration, after a bit of googling it seems a few people had similar problems without any luck and given mod_jk isn't recommended any longer you might well be best to try mod_jk2, that is what I am using without any problems. mod_jk2 does seem a bit fickle to setup though but I didn't have much trouble after reading a few howto's and the usual I really should learn how to type one day typo's one always seems to make in configuration files. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS Authentication pops up after tomcat form base fails?why?
On Sun, 1 Jun 2003 23:01, Dan Tran wrote: Hello, I have my tomcat behind IIS5 thru JK2 connector. My tomcat has a form base authentication form. The problem here is if my tomcat form base authentication fails, IIS pops up its own diaglog window for another authentication. How do I prevent this? Can't remember much of IIS off the top of my head but in the server settings somewhere, probably under security settings, there is an authentication mode, you want to set it to something like allow anonymous access, it is probably set to basic authentication at the moment. That will of course then need a restart of IIS. Hope that helps. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS Authentication pops up after tomcat form base fails?why?
Jason, thanks I went to the connector virtual directory and unset the basic authentication. it works Thanks for your advice -Dan - Original Message - From: Jason Bainbridge [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 12:42 PM Subject: Re: IIS Authentication pops up after tomcat form base fails?why? On Sun, 1 Jun 2003 23:01, Dan Tran wrote: Hello, I have my tomcat behind IIS5 thru JK2 connector. My tomcat has a form base authentication form. The problem here is if my tomcat form base authentication fails, IIS pops up its own diaglog window for another authentication. How do I prevent this? Can't remember much of IIS off the top of my head but in the server settings somewhere, probably under security settings, there is an authentication mode, you want to set it to something like allow anonymous access, it is probably set to basic authentication at the moment. That will of course then need a restart of IIS. Hope that helps. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Expression Language question
I think that's the ticket. -Tim Nikola Milutinovic wrote: Simple question. I have a JSP/Servlet combination in which Servlet is used to authenticate user and create a session. A JSP page then checks for the existence of the session and reads neccessary ID from it. I'm switching to JSTL and I'd like to switch to EL, now. Here is the old code, how can I translate it to EL? OLD CODE - %@ page contentType=text/html; charset=windows-1250 ... session=true ... % %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % %@ taglib uri=http://java.sun.com/jstl/sql; prefix=sql % % if (session.isNew()) { response.sendRedirect( response.encodeRedirectURL( Error.jsp?reason=Wrong+login ) ); } % NEW CODE (the only thing I can come up with) - %@ page contentType=text/html; charset=windows-1250 ... session=true ... % %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % %@ taglib uri=http://java.sun.com/jstl/sql; prefix=sql % c:if test=${empty sessionScope.userID}/ c:redirect url=Error.jsp?reason=Not+logged+in/ /c:if - Anybody got a better idea? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems building mod_jk and mod_jk2 for apache2, tomcat41 on redhat 6.2
Hello tomcat-user experts, I have been trying to build mod_jk and mod_jk2 for apache 2.0.45 (also tried 2.0.46), tomcat 4.1.24 on redhat linux 6.2 (kernel 2.2.14-5.0), glibc 2.1.3-21, and libtool 1.3.4-3. I can get both to configure and make ok, but there is no resulting .so file(s) in the apache-2.0 directory. At one point, I did find an .so file in 1.3 directory (I'm also running 1.3 on this system), but can not get one to create for 2.0. On mod_jk 1.2.3, here is the output from buildconf.sh: $ ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy automake: configure.in: installing `scripts/build/unix/install-sh' error while copying automake: configure.in: installing `scripts/build/unix/mkinstalldirs' error while copying automake: configure.in: installing `scripts/build/unix/missing' error while copying autoconf $ Here is the output from configure: $ ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/local/jdk1.3.1_08 --with-java-platform=2 -enable-jni creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ranlib... ranlib checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes updating cache ./config.cache checking for object suffix... o checking for executable suffix... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs checking for dlopen in -ldl... yes checking for dlfcn.h... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no creating libtool loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes checking for test... /usr/bin/test checking for rm... /bin/rm checking for grep... /bin/grep checking for echo... /bin/echo checking for sed... /bin/sed checking for cp... /bin/cp checking for mkdir... /bin/mkdir checking for libtool... /usr/bin/libtool need to check for Perl first, apxs depends on it... checking for perl... /usr/bin/perl building connector for apache-2.0 checking for target platform... unix no apache given jni enable (need JDK) checking for JDK location (please wait)... /usr/local/jdk1.3.1_08 checking Java platform... forced Java 2 checking os_type directory... linux updating cache ./config.cache creating ./config.status creating Makefile creating apache-1.3/Makefile creating apache-1.3/Makefile.apxs creating apache-2.0/Makefile creating apache-2.0/Makefile.apxs creating common/Makefile creating common/list.mk creating jni/Makefile $ Since moving to Apache 2.0.46, I've picked up some libtool errors I don't remember getting while on 2.0.45. They happen during link: $ make ... truncated ... make[1]: Entering directory `/usr/local/jakarta-tomcat-connectors-jk-1.2.3-src/jk/native/jni' /bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc -I/usr/local/apache2/include -g -O2 -DHAVE_JNI -I /usr/local/jdk1.3.1_08/include -I /usr/local/jdk1.3.1_08/include/linux -I../common -D_REENTRANT -c jk_jnicb.c /bin/sh /usr/local/apache2/build/libtool --silent --mode=link gcc -I/usr/local/apache2/include -g -O2 -DHAVE_JNI -I
Re: Tomcat problems every morning.
On Sun, 01 Jun 2003 10:31:15 -0700, Hemendra Rana wrote I am running Tomcat 4.1.24 server on Linux and every morning I get the following exception. Things work perfectly fine throughout the day after I restart the Tomcat server. Any ideas? Could this be a logger issue, because my server logs rotate every night. ... 2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Communication link failure: java.io.IOException I had this same error using 4.1.12 - it seemed like it would happen after about every 8 hours - a default timeout, perhaps? I was never able to find the reason for it - the advice I got was to re-start the server every morning, and I really don't like doing that... Any ideas? Thanks! Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie install question - cannot access Tomcat remotely, only on localhost
Hello, I've setup JDK 1.4, Apache 1.3.26 and Tomcat 4.1.12 on a Windows 2000 server. I am able to successfully access: http://localhost/ (for general web files) and http://localhost:8080/ (for Tomcat jsp files - I get the default index.jsp page that comes with Tomcat) and http://myipaddress/ (for general web files, accessed remotely) *but* I am not able to access: http://myipaddress:8080/ (for Tomcat jsp files, accessed remotely - I get a The page cannot be displayed error) There so no software or hardward firewall in place (i.e., port 8080 is accessible by external users). Could anyone suggest a reason why Tomcat is not accessible from external clients? Thanks, Darren
Filter out certain user accounts
Hello, I would like the build filter to check for a site maintainant flag set in application context and disallow certain user to passthruand route them to another page. The problem here, the interface doFilter's ServletRequest does not have access to getUserPrincipal, so I have no way to find out the actual user. Any work around?
Tomcat 4 jk2-2.0.2 with apache2 in solaris 8 configuration
Hi to everybody, I am trying to configure tomcat 4.1.24 with apache 2 using the connector jk2-2.0.2 and I get an error message when I am making the mod_jk2.so file. The error message is: # make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i != .; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 mkdir -p ../../../build/jk2/apache2 /usr/local/apache2/build/libtool --mode=install cp ../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2 cp ../../../build/jk2/apache2/.libs/mod_jk2.so /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../ build/jk2/apache2/mod_jk2.so chmod +x /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../ build/jk2/apache2/mod_jk2.so cp ../../../build/jk2/apache2/.libs/mod_jk2.lai /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../ build/jk2/apache2/mod_jk2.la cp ../../../build/jk2/apache2/.libs/mod_jk2.a /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../ build/jk2/apache2/mod_jk2.a cp: cannot access ../../../build/jk2/apache2/.libs/mod_jk2.a *** Error code 2 make: Fatal error: Command failed for target `../../../build/jk2/apache2/mod_jk2.so' Current working directory /jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2 *** Error code 1 make: Fatal error: Command failed for target `jk2-build' I also tried to use the compiled .so file from apache for solaris 8, but when I am starting the apache I got the following error: # apache start httpd starting. Syntax error on line 1019 of /etc/apache/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk2-2.0.43.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /usr/local/apache2/modules/mod_jk2-2.0.43.so: symbol apr_pool_cleanup_null: referenced symbol not found /usr/apache/bin/apachectl start: httpd could not be started Do you know the best way to configure successfully the connector for Apache and Tomcat successfully? Thanks in advance, I will appreciate your answers and suggestions. Best regards. Omar Vera
Re: Filter out certain user accounts
You should be able to cast ServletRequest to HttpServletRequest. Then you'll have access to getUserPrincipal() -Tim Dan Tran wrote: Hello, I would like the build filter to check for a site maintainant flag set in application context and disallow certain user to passthruand route them to another page. The problem here, the interface doFilter's ServletRequest does not have access to getUserPrincipal, so I have no way to find out the actual user. Any work around? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter out certain user accounts
supper!!! Thanks - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 5:35 PM Subject: Re: Filter out certain user accounts You should be able to cast ServletRequest to HttpServletRequest. Then you'll have access to getUserPrincipal() -Tim Dan Tran wrote: Hello, I would like the build filter to check for a site maintainant flag set in application context and disallow certain user to passthruand route them to another page. The problem here, the interface doFilter's ServletRequest does not have access to getUserPrincipal, so I have no way to find out the actual user. Any work around? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat problems every morning.
Are you using mysql database on the backend too. Someone here pointed out that by default, mysql driver times out after every 8 hours. I still needs to verify whether that is the cause of my problem though. Will let you know of my finds. Hemendra Hollerman Geralyn M wrote: On Sun, 01 Jun 2003 10:31:15 -0700, Hemendra Rana wrote I am running Tomcat 4.1.24 server on Linux and every morning I get the following exception. Things work perfectly fine throughout the day after I restart the Tomcat server. Any ideas? Could this be a logger issue, because my server logs rotate every night. ... 2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Communication link failure: java.io.IOException I had this same error using 4.1.12 - it seemed like it would happen after about every 8 hours - a default timeout, perhaps? I was never able to find the reason for it - the advice I got was to re-start the server every morning, and I really don't like doing that... Any ideas? Thanks! Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat problems every morning.
On Sun, 01 Jun 2003 18:14:05 -0700, Hemendra Rana wrote Are you using mysql database on the backend too. Someone here pointed out that by default, mysql driver times out after every 8 hours. I still needs to verify whether that is the cause of my problem though. Will let you know of my finds. Why, yes, I am. And I thought perhaps MySQL was the problem - but I was told by some people using Oracle and PostgreSQL databases that they'd seen the problem as well. I tried putting in some code to set the driver time-out value, but evidently I didn't do it correctly, as the problem persisted. I don't see the error with versions of Tomcat previous to 4.1.x, tho. Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot recover key error and SSL
I am using Tomcat 3.2 on a windows 2000 Server. Importing a signed Geotrust SSL Cert works fine, but I receive the following error when running tomcat. Please help.!! Cannot recover key error and SSL 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /examples ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /test ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /VISICOM ) 2003-05-31 11:19:12 - PoolTcpConnector: Starting HttpConnectionHandler on 80 FATAL:java.io.IOException: Cannot recover key java.io.IOException: Cannot recover key at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFa ctory.jav a:191) at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocke tFactory. java:118) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(Pool TcpEndpoi nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConn ector.jav a:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.j ava:527) at Dan
Simple question on Unicode URL in Tomcat
Dear all: I have a simple question regarding to the Unicode URL support in Tomcat. If I pass a Unicode URL to Tomcat, can it retrieve the targeted content? Some of our web pages are named under double byte characters. We have tried various ways to make it work but all failed. If you have a work around, please let us know. Many thanks. John
Re: Database setup? - SOLVED
Yes it does have to be in order :) . Check the dtd that it references. Terje Hopsø wrote: Thanks!! It was out of order. Now it start without errors. I was not aware of that it had to be in a spesific order. - Terje -Original Message- From: Brian Buchanan [mailto:[EMAIL PROTECTED] Sent: 29. mai 2003 14:15 To: Tomcat Users List Subject: RE: Database setup? The order of the elements in the web.xml file must be in a specific order. As the error message states, they must appear in this order: (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref You probably just have your nested elements out of order. Perhaps you have a servlet or servlet-mapping before your context-param which is invalid. If you want to know more about the format of the web.xml file, you can download the servlet specification from Sun here: http://java.sun.com/products/servlet/download.html Here's a link to the 2.3 specification http://www.jcp.org/aboutJava/communityprocess/final/jsr053/ and refer to chapter 13 - Deployment Descriptor Once you have that sorted out you can see what next falls out. I would also recommend that you learn on the latest version of Tomcat available which is 4.1.24 right now. http://jakarta.apache.org/tomcat/ http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/ FYI, If you happen to be using Windows I'd also like to offer this advice: I used to download the .exe version and install it, but I would now recommend the .ZIP version as it doesn't fiddle with your configuration. Sure, getting it to run as a service is a bit trickier, but for development the less fiddling the better. As a zip file I start tomcat from the command line with SET JAVA_HOME=(whichever jvm I want to use) SET CATALINA_HOME=(Whever I unzipped tomcat to) %CATALINA_HOME%\bin\startup.bat Example: SET JAVA_HOME=C:\j2sdk1.4.1_02 SET CATALINA_HOME=C:\jakarta-tomcat-4.1.24 %CATALINA_HOME%\bin\startup.bat This way you can also try different JVM's and different tomcat installs easily. Good luck. ._. Brian Buchanan -Original Message- From: Terje Hopsø [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 7:45 AM To: 'Tomcat Users List' Subject: Database setup? Hi, I am trying to setup Tomcat according to the book JavaServer Pages page 157. But all I get when starting up tomcat is errors. I also tried JNDI but that was less understandable so I will first try this simple setup, which I cant understand why failes. Anyone got a hint on what I have to to? I have a standard Tomcat 4.1.18 and JSTL installed. - Terje Here is my setup in web.xml: - context-param param-name javax.servlet.jsp.jstl.sql.DataSource /param-name param-value jdbc:mysql://db.server.no:3306/myuser,com.mysql.jdbc.Driver,myusername,mypas sword /param-value /context-param - The error when starting tomcat is: Starting service Tomcat-Standalone Apache Tomcat/4.1.18 29.mai.2003 13:28:37 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 28 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref *). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37 1) -- In my jsp-file this works fine but I want to put the datasource parameters into web.xml instead of each jsp-file where I access a database. --- sql:setDataSource var=ex scope=application driver=com.mysql.jdbc.Driver url=jdbc:mysql://db.server.no:3306/myuser user=myusername password=mypassword / sql:query var=init dataSource=${ex} sql=select name from adress / c:forEach items=${init.rows} var=row c:out value=${row.name} /br /c:forEach ---
RE: Tomcat problems every morning.
My comment won't be that helpful - but I started out at the same place - each morning I came in a got a call from staff saying the pages with content pulled from the dbase was down. One thing I know, as others suggested, it has to do with the JDBC/connection - in our case it happens when the network connection between our linux box and our sql box os broken at some point - I think the ISP does late night maintenance on the line (this is setup on an office DSL line). We are still working to isolate the problem - but it does seem to be JDBC related. I have tried simply pulling the cable on the back of one box for a few seconds and the connection does die and will not reconnect. I plan to post back to the group when we get a better sense of the problem - we are still fooling with it. In our case we are using MSSQL with the MS JDBC driver. I thought I saw a post somewhere that said the mySQL driver had a autoReconnect=true setting - I think I saw it on the Apache site. I hope you figure things out. Paul -Original Message- From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 9:07 PM To: Tomcat Users List Subject: Re: Tomcat problems every morning. On Sun, 01 Jun 2003 18:14:05 -0700, Hemendra Rana wrote Are you using mysql database on the backend too. Someone here pointed out that by default, mysql driver times out after every 8 hours. I still needs to verify whether that is the cause of my problem though. Will let you know of my finds. Why, yes, I am. And I thought perhaps MySQL was the problem - but I was told by some people using Oracle and PostgreSQL databases that they'd seen the problem as well. I tried putting in some code to set the driver time-out value, but evidently I didn't do it correctly, as the problem persisted. I don't see the error with versions of Tomcat previous to 4.1.x, tho. Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Thanks to John and Geralyn
Thank you very much, it finally works on my machine! Thanks Again, Joe -Original Message- From: Michenaud Laurent [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 4:52 PM To: Tomcat Users List Subject: Re: Thanks to John and Geralyn here how i do to build mod_jk2 : First, i download this package : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src/ jakarta-tomcat-connectors-4.1.24-src.tar.gz untar then, cd jk/native2 chmod u+x buildconf.sh ./buildconf.sh ./configure --with-java-home=/u/java --with-apxs2=/u/httpd/bin/apxs --with-tomcat41=/u/tomcat --with-pcre --with-PACKAGE=yes Then, i edit the file : server/apache2/Makefile and i get off the -g option from the line : EXTRA_CFLAGS= -g -O2 -pthread Then : make cd ../build/jk2/apache2/ cp mod_jk2.so apache directory/modules That's all ! Hi john and geralyn, thanks for the warmly and prompt reply. I think now at least i know what is going on.However, i'm still unsure of the following things: 1) Based on John wonderful's Howto, i think you are using both mod_jk.so and mod_jk-2.0.43.so. I was wondering is it a typo or this should be the way. Kind of confused here when i saw version appearing on it. 2) I had tried downloading mod_jk2 source connector from jakarta website but i have problem building the connectors. I tried to build by first modifying the workers.properties to suits my configuration and then followed by invoking 'ant' command on it. It gave me this error, saying /usr/local/tomcat-jk2-connector/coyote/ not found. My check with the folder is that there isn't such a folder named coyote. What should be the proper way to build mod-jk2? or can i just use the binary version available on apache website which is meant for apache 2.0.42, wherelse i'm using 2.0.46? Regards, Joe - Original Message - From: Geralyn M Hollerman [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 30, 2003 8:56 PM Subject: Re: Need Help in clearing my doubts Joe wrote: According to one of the mail which I have received, I saw him putting this in apache : httpd.conf: === ===JkWorkersFile /home/gmh2441/uPortal/Tomcat_4-0-4/conf/workers.properties JkLogFile /home/gmh2441/uPortal/Tomcat_4-0-4/logs/mod_jk.log JkLogLevel debug JkOptions +ForwardDirectories Alias /examples /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples Directory /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples Options Indexes FollowSymLinks /Directory Location /examples/WEB-INF/ AllowOverride None deny from all /Location === === I tried putting the same thing into my httpd.conf, and now accessing the example folder on port 80 works!. Joe, 'gmh2441' is me! That was an effort of mine, based on something I'd read - I've been to John Turner's site and tried his HOW-TO, but since we weren't using the exact same versions, I wasn't sure whether it would work or not. What I have read since, in an Apache-Tomcat book at a local bookstore, was that I needed that Directory entry in there. It works for you? That's GREAT! It didn't for me - but then again, there may've been something else unintended in there - I'll have to look again. I can get static files to display, but I can't get .jsps or .class files to execute - I see from my apache log that every request gets a 400 (bad request) response. My question is : 1) Based on the above config, it is asking apache to 're-direct' this folder to the tomcat container and thus run on it. In that case, is apache pushing all the jobs to tomcat instead?. What if some of the files in this folder contains some html and is tomcat or apache processing it?? I think there was a JkMount directive after all that - I believe that would decide which files go to Apache and which to Tomcat. 2) Secondly, if I were to have more folders which I need to publish on the web, does it mean that I have to add or of it on this config file in order for it to work? Try this URL for the answer to this - it's a sample mod_jk.conf file from John Turner. http://www.johnturner.come/howto/mod_jk_conf.html Basically, if I understand your question right, the answer is yes. 3) I would appreciate if there are some kind soul could give me some URL on how to utilize apache tomcat to process both static and jsp content. Well, for starters, John Turner's site (http://www.johnturner.com) was excellent; there were some answers at the apache site (http://jakarta.apache.org/tomcat/); some more good advice at http://www.serverwatch.com/tutorials; and at http://www.oreillynet.com/pub/a/onjava/2002/11/20/tomcat.html. There was also something I found useful, about mod_jk2, at http://www.pubbitch.org/jboss/mod_jk2.html. But the main thing I found
Cannot recover key error and SSL
I am using Tomcat 3.2 on a windows 2000 Server. Importing a signed Geotrust SSL Cert works fine, but I receive the following error when running tomcat. Please help.!! Cannot recover key error and SSL 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /examples ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /test ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /VISICOM ) 2003-05-31 11:19:12 - PoolTcpConnector: Starting HttpConnectionHandler on 80 FATAL:java.io.IOException: Cannot recover key java.io.IOException: Cannot recover key at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFa ctory.jav a:191) at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocke tFactory. java:118) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(Pool TcpEndpoi nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConn ector.jav a:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.j ava:527) at Dan
jk2.socket permissions
I've almost got UNIX sockets to work, but for a rather strange problem that could be the result of my configuration. 1. I installed Tomcat as root, and it starts up as root. 2. Apache2 starts up as user apache2 and group apache2 3. I initially created an empty file (did not want to use the jk2.socket inside /opt/tomcat/work, instead I created jk2.socket inside /var/run), and changed group to apache2 4. When Tomcat starts up, it changes the group back to root, and Apache cannot write to the file 5. If I changed the jk2.socket group ownership to apache2 *after* Tomcat starts up, the whole configuration works! So, my question is : what is the proper method of setting the permissions on the file. Setting it to global read/write does not work. Already tried that. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: faulty fix for (javax.servlet does not exist)
I'm compiling with root, $ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java javac: invalid flag: -cp Usage: javac options source files and if I change my classpath to: $ echo $CLASSPATH /var/tomcat4/common/lib/servlet.jar I still get the same error $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ Weird isn't it. On Mon, 2 Jun 2003, Jason Bainbridge wrote: Simplify things... Firstly that extensive CLASSPATH you have created could be causing more problems than it is solving, so try removing it. Then just try: javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java Does that work? If not does the user you are compiling with have rights to access /var/tomcat4/common/lib/servlet.jar ? Regards, Jason On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote: This website http://www.sitepoint.com/article/509/3 says all I have to do is put servlet.jar in my classpath to solve my problems. Unfortunitally, it doesn't seem to work. This is my error -- --- $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ -- - THis is my path $ echo $CLASSPATH /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/ common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4 /common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j :ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/ lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/ commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4 /server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils. jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4 j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/ lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar :/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat 4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar :/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/ htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us r/java/j2sdkee1.4/lib/jhall.jar The actual code is CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/ naming-resources.jar:/va r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col lections.jar:/var/tomcat 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar: /var/tomcat4/common/lib/ ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j asper-compiler.jar:/var/ tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom cat4/common/lib/servlet. jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib /jta.jar:/var/tomcat4/co mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/ server/lib/servlets-comm on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l ib/tomcat-http11.jar:/va r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo ns-digester.jar:/var/tom cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var /tomcat4/server/lib/comm ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/ server/lib/mx4j-jmx.jar:
Increasing Tomcat JVM setting with Tomcat in service
Hi there, How can I increase the JVM setting when Tomcat is installed in service? Thanks in advance, R.
Re: faulty fix for (javax.servlet does not exist)
That's because it's javac -classpath. Jonathan Michael Nowacki wrote: I'm compiling with root, $ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java javac: invalid flag: -cp Usage: javac options source files and if I change my classpath to: $ echo $CLASSPATH /var/tomcat4/common/lib/servlet.jar I still get the same error $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ Weird isn't it. On Mon, 2 Jun 2003, Jason Bainbridge wrote: Simplify things... Firstly that extensive CLASSPATH you have created could be causing more problems than it is solving, so try removing it. Then just try: javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java Does that work? If not does the user you are compiling with have rights to access /var/tomcat4/common/lib/servlet.jar ? Regards, Jason On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote: This website http://www.sitepoint.com/article/509/3 says all I have to do is put servlet.jar in my classpath to solve my problems. Unfortunitally, it doesn't seem to work. This is my error -- --- $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ -- - THis is my path $ echo $CLASSPATH /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/ common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4 /common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j :ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/ lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/ commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4 /server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils. jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4 j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/ lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar :/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat 4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar :/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/ htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us r/java/j2sdkee1.4/lib/jhall.jar The actual code is CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/ naming-resources.jar:/va r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col lections.jar:/var/tomcat 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar: /var/tomcat4/common/lib/ ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j asper-compiler.jar:/var/ tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom cat4/common/lib/servlet. jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib /jta.jar:/var/tomcat4/co mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/ server/lib/servlets-comm on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l ib/tomcat-http11.jar:/va r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo ns-digester.jar:/var/tom cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var /tomcat4/server/lib/comm ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/ server/lib/mx4j-jmx.jar:
Antwort: Re: Antwort: Re: JAAS LoginModule ?
How can I configure an Authenticator implicitly and explicitly? *** BITTE BEACHTEN *** Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Expression Language question
I think that's the ticket. Yes, Tim, but I'd like to be able to differentiate between user not logged in - session.isNew() and user logged in, but error in web-app - !session.isNew() and session.getAttribute( userID ) == null. Is there a way to call a method from EL? Like: c:set var=login value=${session.isNew()}/ Or would this defeat the purpose of introducing EL? Nix.
Re: Simple question on Unicode URL in Tomcat
Hiho, try something like: String s = URLEncoder.encode(s, enc); s is your URL and enc is the java encoding such as Shift_JIS. See URLEncoder for more info. Will work from java 1.4 I believe. Had the same problem and this seems to solve it just fine. -- Shawn Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: faulty fix for (javax.servlet does not exist)
Holy cow!!! It worked. Thank you very much Kwok Peng Tuck It's still puzzles me why javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java works yet javac doesn't when I set my class path variable. $ echo $CLASSPATH /var/tomcat4/common/lib/servlet.jar $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ the $CLASSPATH variable is the same as whats after -classpath, why does one work and the other doesn't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Increasing Tomcat JVM setting with Tomcat in service
Edit the Windows Registry. HKEY_LOCAL_MACHINE + SYSTEM + CurrentControlSet + Services + Apache Tomcat 4.1 + Parameters Add values like: JVM Option Number n = -Xms256m Make sure to set the JVM Option Count value correctly. -Original Message- From: Regis CABARET [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 8:26 PM To: [EMAIL PROTECTED] Subject: Increasing Tomcat JVM setting with Tomcat in service Hi there, How can I increase the JVM setting when Tomcat is installed in service? Thanks in advance, R. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Increasing Tomcat JVM setting with Tomcat in service
Hi, I tried to install the Tomcat 4.1 in windows NT and while starting it stops at this point. E:\Program Files\Apache Group\Tomcat 4.1\binstartup Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\jdk1.2.2 E:\Program Files\Apache Group\Tomcat 4.1\bin My jdk version is 1.2.2 as you can see that. Can U let me know as what is missing in the setup. I have installed the tomcat-4.1.24.exe which is meant for windows NT. Thanks in advance. Regards, shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Increasing Tomcat JVM setting with Tomcat in service
suggest it to install in a directory without space -Original Message- From: shankar [mailto:[EMAIL PROTECTED] Sent: 02 June 2003 07:01 To: Tomcat Users List Subject: Re: Increasing Tomcat JVM setting with Tomcat in service Hi, I tried to install the Tomcat 4.1 in windows NT and while starting it stops at this point. E:\Program Files\Apache Group\Tomcat 4.1\binstartup Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\jdk1.2.2 E:\Program Files\Apache Group\Tomcat 4.1\bin My jdk version is 1.2.2 as you can see that. Can U let me know as what is missing in the setup. I have installed the tomcat-4.1.24.exe which is meant for windows NT. Thanks in advance. Regards, shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Increasing Tomcat JVM setting with Tomcat in service
Hi Shankar, Check whether the port for the tomcat is available and not used by any other application. Normally tomcat operates on 8081 port. If this is not available tomcat will not start. So check this out and if the port is not available change the port number and try. shankar [EMAIL PROTECTED] wrote: Hi, I tried to install the Tomcat 4.1 in windows NT and while starting it stops at this point. E:\Program Files\Apache Group\Tomcat 4.1\binstartup Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\jdk1.2.2 E:\Program Files\Apache Group\Tomcat 4.1\bin My jdk version is 1.2.2 as you can see that. Can U let me know as what is missing in the setup. I have installed the tomcat-4.1.24.exe which is meant for windows NT. Thanks in advance. Regards, shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Regards, Sriram Srinivasan Mobile : 9841290873 Email : [EMAIL PROTECTED]
Re: faulty fix for (javax.servlet does not exist)
Actually setting the $CLASSPATH should work. I prefer the 'javac -classpath' method, as you can specify the jars that you want instead of a bunch of directories in the $CLASSPATH variable. Try combining that with a shell script, saves you from typing too many times. Better yet, use ant. Jonathan Michael Nowacki wrote: Holy cow!!! It worked. Thank you very much Kwok Peng Tuck It's still puzzles me why javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java works yet javac doesn't when I set my class path variable. $ echo $CLASSPATH /var/tomcat4/common/lib/servlet.jar $ javac MultiServlet.java MultiServlet.java:1: package javax.servlet does not exist import javax.servlet.*; ^ MultiServlet.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ the $CLASSPATH variable is the same as whats after -classpath, why does one work and the other doesn't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Increasing Tomcat JVM setting with Tomcat in service
I tried to install without spaces too. It is giving the same problem. Can anyone suggest what else to do to install this in windows NT having jdk 1.2.2 Warm reg, shankar - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 02, 2003 2:06 PM Subject: RE: Increasing Tomcat JVM setting with Tomcat in service suggest it to install in a directory without space -Original Message- From: shankar [mailto:[EMAIL PROTECTED] Sent: 02 June 2003 07:01 To: Tomcat Users List Subject: Re: Increasing Tomcat JVM setting with Tomcat in service Hi, I tried to install the Tomcat 4.1 in windows NT and while starting it stops at this point. E:\Program Files\Apache Group\Tomcat 4.1\binstartup Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\jdk1.2.2 E:\Program Files\Apache Group\Tomcat 4.1\bin My jdk version is 1.2.2 as you can see that. Can U let me know as what is missing in the setup. I have installed the tomcat-4.1.24.exe which is meant for windows NT. Thanks in advance. Regards, shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why am I recieiving this?
I receive the below text every time I post a message to this group. ?? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 7:47 PM Subject: RE: Re: Filter out certain user accounts Dear [EMAIL PROTECTED], Your recent message to this server regarding `Re: Filter out certain user accounts` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems in Starting Tomcat 4.1 in Windows NT using JDK 1.2.2
Hi, I have encountered this problem while I start to run the catalina.bat in the current window. Can anyone see this.. E:\Tomcat\bincatalina run Using CATALINA_BASE: e:\tomcat Using CATALINA_HOME: e:\tomcat Using CATALINA_TMPDIR: e:\tomcat\temp Using JAVA_HOME: c:\jdk1.2.2 Bootstrap: Class loader creation threw exception java.lang.IllegalMonitorStateException: current thread not owner at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java, Compiled Code) at org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja va, Compiled Code) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader Factory.java, Compiled Code) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, Compiled Code) Thanks in advance, Shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Realm class, Classloader
I'm using Tomcat 4.1.24 and JDK 1.3.1. I've created a custom realm which is configured like this: Context path=/sec_test docBase=sec_test debug=0 reloadable=true crossContext=true Realm className=test.RacfRealm/ /Context The implementation class test.RacfRealm can be found only if it is deployed to the server/lib directory. If the Realm is configured for the context sec_test, the class should be loaded by the corresponding WebAppClassLoader. What do you think? *** BITTE BEACHTEN *** Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet möglicherweise vertrauliche oder gesetzlich geschützte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter Ausschluss jeder Reproduktion zu zerstören und die absendende Person umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: faulty fix for (javax.servlet does not exist)
javac doesn't when I set my class path variable. $ echo $CLASSPATH /var/tomcat4/common/lib/servlet.jar Perhaps because you didn't export CLASSPATH in order to make the environment variable available to child processes of your shell (for details: man bash | less +/^ENV) Mit freundlichem Gruß / With kind regards Holger Klawitter -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk.log errors
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ This is what I found in my server.xml, when I comment out the first one my catalina.out looks like the following: Starting service Tomcat-Standalone Apache Tomcat/4.1 Jun 2, 2003 10:38:40 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 So no errors any more but I cannot detect in the log if it is listening, if i issue a netstat -na | grep 8009 I get the result: tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN so the port is listened on. So this all looks ok but now I call the index.jsp page in my /navi/ directory it still doesn't work. When I look at my mod_jk.log I got the following errors: [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_ t::map_uri_to_worker [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI ' /navi/index.jsp' [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::ma p_uri_to_worker, done without a match [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_ t::map_uri_to_worker [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI ' /navi/index.jsp' [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::ma p_uri_to_worker, done without a match But I have in my mod_jk.conf (which is included in my httpd.conf) the following: IfModule !mod_jk.c LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so /IfModule JkWorkersFile /etc/tomcat4/jk/workers.properties JkLogFile /etc/tomcat4/log/mod_jk.log JkLogLevel debug VirtualHost localhost ServerName localhost JkMount /navi/*.jsp ajp13 In my workers.proerties I have the following entries: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 # END workers.properties So what am I missing here ? If you need more information just let me know... Kind regards, Marco Laponder -Oorspronkelijk bericht- Van: John Turner [mailto:[EMAIL PROTECTED] Verzonden: woensdag 28 mei 2003 19:18 Aan: Tomcat Users List Onderwerp: Re: mod_jk.log errors Search in server.xml for '8009' and see how many times it comes up, and whether each occurence is enabled or disabled. John On Wed, 28 May 2003 14:51:38 +0200, Marco Laponder [EMAIL PROTECTED] wrote: It must be in the tomcat4 configuration as when I call netstat -na | grep 8009 I get no output when tomcat is not started, when I start tomcat and call netstat -na | grep 8009 gives the following output: tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN So my guess is that somewhere in my configuration of tomcat4 I made a mistake so it is trying to use port 8009 twice. Anyone an idea what I did wrong ? Kind regards, Marco Laponder mlr AT interchain DOT nl Well, the error message is: INFO: Port busy 8009 java.net.BindException: Address already in use That means only one thing: you have something else listening on port 8009. Either another version of Tomcat, or something else. Only you can discover what that is, as none of us have access to your machine. Verify that you have nothing starting up automatically without your knowlege. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Document contains no data
I helped setup TC-4.1.24/Apache-2.0.45/mod-jk2-2.0.2 on RH8. When I was last associated with it, it seemed to work fine with some simple servlets. Some modifications were made ( no one seems to know exactly what ) and now when requesting a servlet, it grinds awhile and returns Document contains no data I tried accessing that TC on port 8080 ( I had left it listening ) and I receive the same error. I installed a new copy of TC-4.1.24, changed CATALINA_HOME to the new install and receive the same Document contains.. when trying to access localhost:8080 or localhost:8080/examples, . Since it does it with the clean install, I figure it is something other than the TC. The only exception in the logs is in localhost_admin_log and the salient portion is below. The other logs indicate nothing wrong and catalina.out ends with Starting service Tomcat-Standalone Apache Tomcat/4.1.24 May 31, 2003 7:27:30 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 May 31, 2003 7:27:30 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 May 31, 2003 7:27:30 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=14/242 config=/usr/local/tomcat4/conf/jk2.properties I checked the CLASSPATH to ensure that it was getting to the correct servlet.jar I only have access to the machine via telnet when I am on campus, so it is a little hard to do too much exploring. Any help as to where to start looking when I go back will be greatly appreciated. Gordon From localhost_admin_log: 2003-05-31 19:27:25 org.apache.webapp.admin.ApplicationServlet: init 2003-05-31 19:27:27 StandardContext[/admin]: Servlet /admin threw load() exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.lang.NoSuchMethodError: javax.servlet.ServletConfig.getServletName()Ljava/lang/String; at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1408) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474) at org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152) at javax.servlet.GenericServlet.init(GenericServlet.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2003-05-31 19:27:27 StandardWrapper[/admin:invoker]: Loading container servlet invoker 2003-05-31 19:27:27 org.apache.catalina.servlets.InvokerServlet: init 2003-05-31 19:27:27 org.apache.jasper.servlet.JspServlet: init - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session Snooper
Try this one: http://www.krasu.ru/server/examples/jsp/snoop.html Rob -Original Message- From: Francisco J. Bido [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2003 8:54 AM To: Tomcat Users List Subject: Re: Session Snooper I see... Any equivalents or close approximations to what Snooper is to provide? Thanks, -FB On Monday, April 21, 2003, at 07:48 AM, [EMAIL PROTECTED] wrote: Sun took the API off because of security concern. I guess that is why it is no longer there anymore. Chao ---Original Message--- From: Francisco J. Bido [EMAIL PROTECTED] Sent: 04/20/03 02:42 AM To: Tomcat Users List [EMAIL PROTECTED] Subject: Session Snooper About a two years ago I was on a project were I used a JSP utility called Snooper to inspect HttpSession objects. I figured it was widely available but I couldn't find a Google hit for it. Can anyone provide an URL or email a copy? It's not hard to create one from scratch but Snooper did some very nice rendering of the inspection results and I don't have too much time at this moment. Thanks! -FB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Guild on using MOD_JK2
Hi all, i've been playing with mod_jk connector and thanks to this email chain that i've finally got it to work...However, it seems that i've read that mod_jk2 connector is much better than mod_jk. Could anyone give me some update URL/guide or changes i need to make to migrate to use mod_jk2? Those that i have found on the web or in this mailing lists are all outdated or it doesn't fit my configuration when i try to follow the step in building/install the module. I really hope someone could come out with a more updated links on building and using the latest version of source available.(i wish i could if i know how to). Below are the configuration that i'm using. Red Hat 8.0 J2SDK 1.4.1 Apache 2.0.46 Tomcat 4.1.24 Regards, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Thanks to John and Geralyn
Hi john and geralyn, thanks for the warmly and prompt reply. I think now at least i know what is going on.However, i'm still unsure of the following things: 1) Based on John wonderful's Howto, i think you are using both mod_jk.so and mod_jk-2.0.43.so. I was wondering is it a typo or this should be the way. Kind of confused here when i saw version appearing on it. 2) I had tried downloading mod_jk2 source connector from jakarta website but i have problem building the connectors. I tried to build by first modifying the workers.properties to suits my configuration and then followed by invoking 'ant' command on it. It gave me this error, saying /usr/local/tomcat-jk2-connector/coyote/ not found. My check with the folder is that there isn't such a folder named coyote. What should be the proper way to build mod-jk2? or can i just use the binary version available on apache website which is meant for apache 2.0.42, wherelse i'm using 2.0.46? Regards, Joe - Original Message - From: Geralyn M Hollerman [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 30, 2003 8:56 PM Subject: Re: Need Help in clearing my doubts Joe wrote: According to one of the mail which I have received, I saw him putting this in apache : httpd.conf: JkWorkersFile /home/gmh2441/uPortal/Tomcat_4-0-4/conf/workers.properties JkLogFile /home/gmh2441/uPortal/Tomcat_4-0-4/logs/mod_jk.log JkLogLevel debug JkOptions +ForwardDirectories Alias /examples /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples Directory /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples Options Indexes FollowSymLinks /Directory Location /examples/WEB-INF/ AllowOverride None deny from all /Location I tried putting the same thing into my httpd.conf, and now accessing the example folder on port 80 works!. Joe, 'gmh2441' is me! That was an effort of mine, based on something I'd read - I've been to John Turner's site and tried his HOW-TO, but since we weren't using the exact same versions, I wasn't sure whether it would work or not. What I have read since, in an Apache-Tomcat book at a local bookstore, was that I needed that Directory entry in there. It works for you? That's GREAT! It didn't for me - but then again, there may've been something else unintended in there - I'll have to look again. I can get static files to display, but I can't get .jsps or .class files to execute - I see from my apache log that every request gets a 400 (bad request) response. My question is : 1) Based on the above config, it is asking apache to 're-direct' this folder to the tomcat container and thus run on it. In that case, is apache pushing all the jobs to tomcat instead?. What if some of the files in this folder contains some html and is tomcat or apache processing it?? I think there was a JkMount directive after all that - I believe that would decide which files go to Apache and which to Tomcat. 2) Secondly, if I were to have more folders which I need to publish on the web, does it mean that I have to add or of it on this config file in order for it to work? Try this URL for the answer to this - it's a sample mod_jk.conf file from John Turner. http://www.johnturner.come/howto/mod_jk_conf.html Basically, if I understand your question right, the answer is yes. 3) I would appreciate if there are some kind soul could give me some URL on how to utilize apache tomcat to process both static and jsp content. Well, for starters, John Turner's site (http://www.johnturner.com) was excellent; there were some answers at the apache site (http://jakarta.apache.org/tomcat/); some more good advice at http://www.serverwatch.com/tutorials; and at http://www.oreillynet.com/pub/a/onjava/2002/11/20/tomcat.html. There was also something I found useful, about mod_jk2, at http://www.pubbitch.org/jboss/mod_jk2.html. But the main thing I found was that about every site I went to, I had to REALLY look around to find what I needed - and more often than not, I had to settle for a partial answer to any question I had. HTH! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot recover key error and SSL
I'm running Tomcat 3.2 on a Windows 2000 Server. After following the instructions in the SSL doc that come with tomcat I run startup.bat and get the following error. Any help would be greatQQ 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /examples ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /test ) 2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /VISICOM ) 2003-05-31 11:19:12 - PoolTcpConnector: Starting HttpConnectionHandler on 80 FATAL:java.io.IOException: Cannot recover key java.io.IOException: Cannot recover key at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.jav a:191) at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory. java:118) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav a:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at Dan
RE: Access Log Valve
Thanks Much worked GREAT -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:42 AM To: Tomcat Users List Subject: RE: Access Log Valve Howdy, Just comment it in server.xml. It's commented out by default. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tyndall, David [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:40 AM To: '[EMAIL PROTECTED]' Subject: Access Log Valve Ok I have TOMCAT 4.1.8 running with no issues. I have it configured to run on a win2k server as a service ( setup this way during install) I would like to turn this logging feature on Access Log Valve. I know I need to make changes to the registry but not too sure how to go about it. located in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ tomcat whatever. WHAT do I add Someone must have already went through this. Thanks Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't find TomcatStarter
Attempt to integrate Tomcat- Apache with jk2 on WinNT 4.0. Getting the following error: [Mon May 26 20:13:47 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter [Mon May 26 20:13:47 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter [Mon May 26 20:13:47 2003] [notice] vm.detach() ok [Mon May 26 20:13:47 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup With the following germane area from the workers2.properties: [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll JVM=E:\Program Files\Java\jdk1.3.1_07\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=E:\Program Files\Apache Group\Tomcat 4.1\bin\tomcat-jni.jar;E\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar;E:\Program Files\Apache Group\Tomcat 4.1\server\lib\commons-logging.jar OPT=-Dtomcat.home=${CATALINA_HOME} OPT=-Dcatalina.home=${CATALINA_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=0 How do I tell it where to find TomcatStarter? Allen N. Williams Senior Consultant [EMAIL PROTECTED] Voice: +1.321.728.1995 Fax: +1.321.722.0580 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jboss to parse exsisting tomcat server.xml ...
-- this is my 3rd attempt to answer a question please disregard if youve seen it already :) -- To make changes to tomcat under jboss you must edit tomcat41-service.xml not server.xml; changes made to the server.xml will not be used by tomcat. The Tomcat bundled with JBoss uses the tomcat41-service.xml file, located in your /deploy directory of the selected configuration set. This file should be nearly identical to a regular server.xml. Might i suggest that you purchase the JBoss 3.0 Handbook for further details, this book kicks ASS! http://www.amazon.com/exec/obidos/tg/detail/-/1861008120/qid=1045677540/sr=8-1/ref=sr_8_1/104-9967696-6863144?v=glances=booksn=507846 And no i dont get any kickbacks.. :( -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:55 PM To: [EMAIL PROTECTED] Subject: Jboss to parse exsisting tomcat server.xml ... Hi, Can any one tell me ( or give me ) an example of how to make jboss parse my existing tomcat server.xml file ??? jboss 3.0.X and tomcat 4.1.18. ( windows / linux ) Thanks Regards Guru :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: building mod_proxy Apache 1.3
Hi Eric, I have not done this but I notice that you don't mention running 'make' after you did the configure. configure should have produced a Makefile. When you run make do you get the mod_proxy.so or are you getting some kind of error? Aloha, Sharon From: Eric fiedler [EMAIL PROTECTED] Has anyone who has integrated Apache and Tomcat built mod_proxy by any chance? My documentation on the Jakarta tomcat proxy hot-two document says to run the following command. I am on a Solaris machine: ./configure --enable-module=proxy This creates a file called mod_proxy.o; not mod_proxy.so as the documentation says it should. The next step the documentation says is too add the line LoadModule proxy_module libexec/mod_proxy.so and as stated, I have mod_proxy.o Anyone know what I am doing wrong or something else that should be done? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK binaries for Solaris
Hi everyone, I have had problems compiling mod_jk from source and have posted my message a couple of times to the mail list but no one has responded to my questions yet. I have tried to get the binaries but all the solaris directories for binaries are empty at the following site. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ (I have tried all versions) I am running apache-1.3.26 with tomcat 4.0.6 and am currently running the webserver on a Solaris 2.7 OS. Do I have to use a library that was compiled on the same OS or can I use one say that was built on Solaris 2.6 on a Solaris 2.7 machine? (not that I of those either) Thank you for any help you can give me. Aloha, Sharon Stahl *=* | UH/SOEST-Research Computer Fac vox: (808) 956-2616 | | 1680 East West Rd- POST820email: [EMAIL PROTECTED] | | Honolulu, Hi 96822 fax: (808) 956-5154 | *=* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk.log errors
Sorry, little bug in my mail ;-) The second connector is not commented out in my current situation ! So my server.xml looks this connector: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Oorspronkelijk bericht- Van: Marco Laponder [mailto:[EMAIL PROTECTED] Verzonden: maandag 2 juni 2003 9:42 Aan: 'Tomcat Users List' Onderwerp: RE: mod_jk.log errors !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ This is what I found in my server.xml, when I comment out the first one my catalina.out looks like the following: Starting service Tomcat-Standalone Apache Tomcat/4.1 Jun 2, 2003 10:38:40 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 So no errors any more but I cannot detect in the log if it is listening, if i issue a netstat -na | grep 8009 I get the result: tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN so the port is listened on. So this all looks ok but now I call the index.jsp page in my /navi/ directory it still doesn't work. When I look at my mod_jk.log I got the following errors: [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_ t::map_uri_to_worker [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI ' /navi/index.jsp' [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::ma p_uri_to_worker, done without a match [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_ t::map_uri_to_worker [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI ' /navi/index.jsp' [Mon Jun 02 10:42:37 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::ma p_uri_to_worker, done without a match But I have in my mod_jk.conf (which is included in my httpd.conf) the following: IfModule !mod_jk.c LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so /IfModule JkWorkersFile /etc/tomcat4/jk/workers.properties JkLogFile /etc/tomcat4/log/mod_jk.log JkLogLevel debug VirtualHost localhost ServerName localhost JkMount /navi/*.jsp ajp13 In my workers.proerties I have the following entries: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 # END workers.properties So what am I missing here ? If you need more information just let me know... Kind regards, Marco Laponder -Oorspronkelijk bericht- Van: John Turner [mailto:[EMAIL PROTECTED] Verzonden: woensdag 28 mei 2003 19:18 Aan: Tomcat Users List Onderwerp: Re: mod_jk.log errors Search in server.xml for '8009' and see how many times it comes up, and whether each occurence is enabled or disabled. John On Wed, 28 May 2003 14:51:38 +0200, Marco Laponder [EMAIL PROTECTED] wrote: It must be in the tomcat4 configuration as when I call netstat -na | grep 8009 I get no output when tomcat is not started, when I start tomcat and call netstat -na | grep 8009 gives the following output: tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN So my guess is that somewhere in my configuration of tomcat4 I made a mistake so it is trying to use port 8009 twice. Anyone an idea what I did wrong ? Kind regards, Marco Laponder mlr AT interchain DOT nl Well, the error message is: INFO: Port busy 8009 java.net.BindException: Address already in use That means only one thing: you have something else listening on port 8009. Either another version of Tomcat, or something else. Only you can discover what that is, as none of us have access to your machine. Verify that you have nothing starting up automatically without your knowlege. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL
JK2 woes
Hi, Could someone shed more light on the following JK2 messages: [Sun Jun 01 18:49:29 2003] (error ) [jk_channel_un.c (422)] channelUn.receive(): error receiving -1 0 Success 859a460 19 Jun 1, 2003 6:49:29 PM org.apache.jk.common.JniHandler nativeDispatch SEVERE: nativeDispatch: error 12 Jun 1, 2003 6:49:29 PM org.apache.jk.common.ChannelUn receive SEVERE: receive error: 12 [Sun Jun 01 18:49:29 2003] ( info ) [jk_jni_aprImpl.c (472)] jkInvoke() invoke 4e2acce8 [Sun Jun 01 18:49:29 2003] ( info ) [jk_channel_un.c (298)] channelUn.close(): close unix socket 19 Once in a while, these messages appear and Apache hangs. I have to kill the Apache process and start it again! What about high availability? :( system settings: Linux RH 8 Apache 2.0.45 JK2.0.2 Tomcat 4.1.18 Any help will be appreciated. Thanx! David
page cannot be displayed
Just instaled tomcat on a redhat-7.3 server that's already running ssl-enabled apache-1.3.27. I can connect via localhost:8080 with lynx, but when I dial with the ip address:8080 on either mozilla or IE I get a page cannot be displayed error. I checked the archives and didn't see this problem. Firewall allows tcp connections to 8080. As far as I can figure, there must be some config thing I didn't do or see in the docs. I didn't change any of the conf files for tomcat yet, not sure that I need to. Any ideas or pointers would be greatly appreciated. TIA -- Keith Mastin BeechTree Information Technology Services Inc. Toronto, Canada (416)696 6070 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
polish chars
I am getting ?? instead of polish characters. Any config I need to look at? Works fine on NT, not on Linux. - j2sdk1.4.1 - tomcat 1.1.24 - red hat linux 7.2 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: polish chars
Hi, On Monday 02 June 2003 12:52, Euan Guttridge wrote: I am getting ?? instead of polish characters. Any config I need to look at? Works fine on NT, not on Linux. - j2sdk1.4.1 - tomcat 1.1.24 - red hat linux 7.2 I had a similar problem on linux. It was because I was missing the LANG environment variable. Ari S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: polish chars
Thanks, Adding this to the env fixed both Linux and Solaris: NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG -Original Message- From: Ari Suutari [mailto:[EMAIL PROTECTED] Sent: 02 June 2003 10:53 To: Tomcat Users List; Euan Guttridge; '[EMAIL PROTECTED]' Subject: Re: polish chars Hi, On Monday 02 June 2003 12:52, Euan Guttridge wrote: I am getting ?? instead of polish characters. Any config I need to look at? Works fine on NT, not on Linux. - j2sdk1.4.1 - tomcat 1.1.24 - red hat linux 7.2 I had a similar problem on linux. It was because I was missing the LANG environment variable. Ari S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
/admin
Hi I'm I right to assume that the /admin app is only needed to configure the Tomcat if it is used as a standalone web server. Thanks Dom
Re: /admin
No. You may use it even if it is connected to apache or some other webserver Dominic Parry wrote: Hi I'm I right to assume that the /admin app is only needed to configure the Tomcat if it is used as a standalone web server. Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /admin
I that case, I can't seem to get it to run. When I try to deploy, I get: 2003-06-02 10:38:24 HostConfig[localhost]: Deploying web application directory admin 2003-06-02 10:38:24 StandardHost[localhost]: Installing web application at context path /admin from URL file:C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin 2003-06-02 10:38:24 WebappLoader[/admin]: Deploying class repositories to work directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\admin 2003-06-02 10:38:24 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin\WEB-INF\classes 2003-06-02 10:38:25 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin\WEB-INF\lib\struts.jar 2003-06-02 10:38:25 HostConfig[localhost] Error deploying web application directory admin java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission at org.apache.naming.resources.DirContextURLStreamHandler.openConnection(DirContextURLStreamHandler.java:135) at java.net.URL.openConnection(URL.java:943) at sun.net.www.protocol.jar.JarURLConnection.init(JarURLConnection.java:64) at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:24) at java.net.URL.openConnection(URL.java:943) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:903) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) I'm running tomcat with jk2 on IIS. - Original Message - From: Kwok Peng Tuck To: Tomcat Users List Sent: Monday, June 02, 2003 12:30 PM Subject: Re: /admin No. You may use it even if it is connected to apache or some other webserver Dominic Parry wrote: Hi I'm I right to assume that the /admin app is only needed to configure the Tomcat if it is used as a standalone web server. Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Expression Language question
Ooops, sorry, I misread. How's this instead ... c:if test=${empty pageContext.session} !-- no session ?? weird .. redirect away ...-- /c:if c:choose c:when test=${pageContext.session.new} !-- My session is new -- /c:when c:when test=${empty sessionScope['user']} !-- No user yet -- /c:when c:otherwise !-- Profit! -- /c:otherwise /c:choose -Tim Nikola Milutinovic wrote: I think that's the ticket. Yes, Tim, but I'd like to be able to differentiate between user not logged in - session.isNew() and user logged in, but error in web-app - !session.isNew() and session.getAttribute( userID ) == null. Is there a way to call a method from EL? Like: c:set var=login value=${session.isNew()}/ Or would this defeat the purpose of introducing EL? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting Tomcat without logging in as root?
Hello, My students do not login as root, but I want them to be able to start Tomcat. Is this possible? Right now they get Permission Denied message. Thanks, Ravi Kulkarni [EMAIL PROTECTED] :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Guild on using MOD_JK2
I do not know of a conversion guide. mod_jk and mod_jk2 are configured (not so) completely differently. The way to go to mod_jk2, is really to read the docs on jk2 (which we know are still lacking :( )and start from scratch. As people create good how-tos on the connectors, I try to link to them from the faq. http://tomcatfaq.sourceforge.net/apache.html -Tim joe wrote: Hi all, i've been playing with mod_jk connector and thanks to this email chain that i've finally got it to work...However, it seems that i've read that mod_jk2 connector is much better than mod_jk. Could anyone give me some update URL/guide or changes i need to make to migrate to use mod_jk2? Those that i have found on the web or in this mailing lists are all outdated or it doesn't fit my configuration when i try to follow the step in building/install the module. I really hope someone could come out with a more updated links on building and using the latest version of source available.(i wish i could if i know how to). Below are the configuration that i'm using. Red Hat 8.0 J2SDK 1.4.1 Apache 2.0.46 Tomcat 4.1.24 Regards, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting Tomcat without logging in as root?
If each student runs their own tomcat instance, then just have tomcat listen on a port above 1024. -Tim [EMAIL PROTECTED] wrote: Hello, My students do not login as root, but I want them to be able to start Tomcat. Is this possible? Right now they get Permission Denied message. Thanks, Ravi Kulkarni [EMAIL PROTECTED] :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manager app and HttpURLConnection
Hi I'm trying to do this: try { URL url = new URL(http://localhost/manager/reload?path=/DynaServlet;); HttpURLConnection con = (HttpURLConnection)url.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader( con.getInputStream())); String inputLine; while ((inputLine = in.readLine()) != null) out.write(inputLine + br); in.close(); } catch (Exception e) { out.write(e.toString()+br); } from an HttpServlet. I'm getting: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost/manager/reload?path=/DynaServlet even when I change the URL to something like http://user:[EMAIL PROTECTED]/manager/reload?path=/DynaServet I get the same exception. Any ideas why? Thanks Dom
jsp evaluation into a stream instead of response?
Hi there, I am trying to create a servlet which basically sends an email. I would like to create a HTML File as part of that mail. As there is some kind of dynamic involved it would be nice to create that HTML data from a JSP file. My only current idea to is create an artificial HTTP Request and sending it to the local server. Is there more direct/elegant way? Mit freundlichem Gruß / With kind regards Holger Klawitter -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting Tomcat without logging in as root?
On Mon, 2 Jun 2003 19:30, Tim Funk wrote: If each student runs their own tomcat instance, then just have tomcat listen on a port above 1024. Plus they would each need an instance of Tomcat in their home directory, I'd say that's where the permission denied is coming from it's probably currently installed in /opt/tomcat4 or some such. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager app and HttpURLConnection
That is because the manager servlet is protected. A 401 response code is a challenge back to the client and the client needs to resend a new request with the Header: WWW-Authenticate with the userid and password. More information: http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html#sec-10.4.2 -Tim Dominic Parry wrote: Hi I'm trying to do this: try { URL url = new URL(http://localhost/manager/reload?path=/DynaServlet;); HttpURLConnection con = (HttpURLConnection)url.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader( con.getInputStream())); String inputLine; while ((inputLine = in.readLine()) != null) out.write(inputLine + br); in.close(); } catch (Exception e) { out.write(e.toString()+br); } from an HttpServlet. I'm getting: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost/manager/reload?path=/DynaServlet even when I change the URL to something like http://user:[EMAIL PROTECTED]/manager/reload?path=/DynaServet I get the same exception. Any ideas why? Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting Tomcat without logging in as root?
there is a utility called sudo that enables you to give regular users permissions to run commands as privileged users. If you use it, your users will be able to stop/start tomcat, while it is installed in another account (in your case root), without being able to su to root. [EMAIL PROTECTED] 06/02/03 02:41PM On Mon, 2 Jun 2003 19:30, Tim Funk wrote: If each student runs their own tomcat instance, then just have tomcat listen on a port above 1024. Plus they would each need an instance of Tomcat in their home directory, I'd say that's where the permission denied is coming from it's probably currently installed in /opt/tomcat4 or some such. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /admin
On Mon, 2 Jun 2003 18:26, Dominic Parry wrote: java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission Is naming-common.jar in your CATALINA_HOME\common\lib ? I'm not sure why it wouldn't find it if it is, maybe CATALINE_HOME needs to be explicitly declared when running Tomcat in process through JNI? Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restrict WebDAV servlet to context subdirectory
I would like to use the webdav servlet in the context of another web application. In particular, WebDAV only should make files beneath a certain subdirectory, say docs/usr, available. So I tried: servlet-mapping servlet-namewebdav/servlet-name url-pattern/docs/usr/*/url-pattern /servlet-mapping However, this produces strange behaviour trying to do a PROPFIND on several locations. If I try to access /webapp/docs/usr, PROPFIND returns the files contained in the directory. That's what I expected. But: If I try to access /webapp/docs/usr/, PROPFIND gives *all* files beneath the webapp root. If I try to access /webapp/docs/usr/foo.txt (which exists in the folder), I get an 404 Not Found. I looked into the WebDAV servlet if I there is a mount point parameter or something like that. But there is not. Anything else to try? Thanks, Sven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing Tomcat without being root
On Mon, 2 Jun 2003 09:44:07 +0200, [EMAIL PROTECTED] wrote: Hello, thanks to your advice i had been able to install tomcat and run all my servlets, but I have still 2 problems: 1) Having installed TomCat standalone as a non-root user, TomCat is reachable only at port 8080, while the DNS is set for the port 80, ie www.myhost.com:8080 works, but www.myhost.com dont. What should i do is this case? Only root can bind a process to port 80. 2) the Host inside (the Engine tag) has still the name localhost, and not the name it should have www.myhost.com. It works all fine, either browsing the my site remotely and locally. I read through the documentation, and i did not find what is the difference between having it set to localhost or to the right host name (www.myhost.com). Any hint? The name is the name of the virtual host that Tomcat will respond to. If it is localhost and Tomcat receives a request for my.domain.com, then Tomcat will not serve it, or will serve it using the default Host and Context, which may or may not be what you want. If you want Tomcat to respond to requests for my.domain.com, then set up a Host container and use my.domain.com for the name parameter, just as it is done for localhost. John -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Thanks to John and Geralyn
On Sun, 1 Jun 2003 14:56:19 +0800, joe [EMAIL PROTECTED] wrote: Hi john and geralyn, thanks for the warmly and prompt reply. I think now at least i know what is going on.However, i'm still unsure of the following things: 1) Based on John wonderful's Howto, i think you are using both mod_jk.so and mod_jk-2.0.43.so. I was wondering is it a typo or this should be the way. Kind of confused here when i saw version appearing on it. It is not a typo...there are many versions of mod_jk.so floating around. They are Apache-version sensitive...that is, a version of mod_jk.so for Apache 1.3 will not work for Apache 2.0. Putting the Apache version number in the file name is just housekeeping. When you get it onto your system, you can call it whatever you want. John -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why am I recieiving this?
Seems pretty self-explanatory to me. The mail administrator at logicaonline.com (look at the headers in the message!!) has blacklisted your email address. John On Mon, 2 Jun 2003 00:02:02 -0700, Dan Tran [EMAIL PROTECTED] wrote: I receive the below text every time I post a message to this group. ?? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 7:47 PM Subject: RE: Re: Filter out certain user accounts Dear [EMAIL PROTECTED], Your recent message to this server regarding `Re: Filter out certain user accounts` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting Tomcat without logging in as root?
True, but it doesn't help much if everyone has a Tomcat configured to listen on port 80. If I have 10 students, and they each need their own Tomcat instance, using ports less than 1024 doesn't make much sense, as there are other network services in that port space. So using 1024 doesn't need su. John On Mon, 02 Jun 2003 13:45:10 +0300, Mirit Naim [EMAIL PROTECTED] wrote: there is a utility called sudo that enables you to give regular users permissions to run commands as privileged users. If you use it, your users will be able to stop/start tomcat, while it is installed in another account (in your case root), without being able to su to root. [EMAIL PROTECTED] 06/02/03 02:41PM On Mon, 2 Jun 2003 19:30, Tim Funk wrote: If each student runs their own tomcat instance, then just have tomcat listen on a port above 1024. Plus they would each need an instance of Tomcat in their home directory, I'd say that's where the permission denied is coming from it's probably currently installed in /opt/tomcat4 or some such. Regards, -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]