How can I make the servlet mapping of Tomcat work with Apache http server?
I read Craig R. McClanahan's article Developing Applications With Tomcat coming with Tomcat. The article gives a sample application also coming with Tomcat. The sample application uses a servlet mapping. The servlet mapping works fine with Tomcat. But it does not work when I use Apache http server with Tomcat together. Anybody can try it which is used at the link of a html file to a servlet. Author seggests me to get help at here. web.xml, httpd.conf, and tomcat-apache.conf are attached. Can anyone give me a hand? Your assistance is appreciated. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app display-nameHello, World Application/display-name description This is a simple web application with a source code organization based on the recommendations of the Application Developer's Guide. /description servlet servlet-nameHelloServlet/servlet-name servlet-classHello/servlet-class /servlet servlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/hello/url-pattern /servlet-mapping /web-app tomcat-apache.conf httpd.conf
RE: IIS5 + isapi_redirect.dll GREEN ARROW
http://www.verysimple.com/scripts/support_tc_iis.html visit this URL and download .reg file and run it. Restart your IIS and Tomcat ..still have problems feel free to revert back.. and check for typos first like jakarta..Jakarta -raj- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 2:56 PM To: [EMAIL PROTECTED] Subject: IIS5 + isapi_redirect.dll GREEN ARROW hi all, We have just setup win2k server + iis5 + jdk1.3.1 + tomcat3.2.2 and have done the installations as per the manual (help file ). We are not able to get the green arrow up for isapi_redirect.dll filter. We have tried all possibilities. Even we tried the old isapi_redirect.dll file which we are currently using on our nt4.0. We have double checked the registry settings, but no luck. Can anyone throw light on this. thanks in advance niraj.
regarding isapi_redirector.dll
Hello...This is Sam.I ran into a problem with isapi_redirector.dll. It's not about how to install this module...Ok... here it goes...I've one machine setup with tomcat 3.2.2 + IIS5.0. And I was successful configuring Tomcat to run on IIS5.0 with isapi_redirector.dll.The problem is that I have to run two Tomcat. One for service and one for development. Currently I have them running on http://localhost:80/home andhttp://localhost:81/dev this works fine but when ever I have new version to publish I have to change all the urls from /dev/ to /home/. below urls are what I am trying to get...http://localhost:80/homehttp://localhost:81/homeSo I figured if I can modify isapi_redirector such that it reads configuration from a file rather than reading its configuration from registry. So I first compiled the source code that came with Tomcat 3.2.2 source code. Then I tried to see if newly compiled isapi_redirector work. But what ever I do (from changing directories, names... ) it doesn't seem to work. It doesn't event leave the log file ... so I don't know if it really tried to run... or died from some error...Is there a new version that supports above feature? If so, could you attach that version with some documentation?... t.tthanks for your support...¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë °¹Î¼® (Kang, Min-Seok)-Sam [EMAIL PROTECTED] ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë ÄÚ¸®¾Æ´Â ´ç½ÅÀ» »ç¶ûÇÕ´Ï´Ù --- ½Å³ª´Â °ÔÀÓ, ¹Ý°¡¿î Ä£±¸, ±× ¸ðµç °ÍÀÌ ÀÌ°÷¿¡! ´ëÇ¥ °ÔÀÓ ¸Þ°¡ Æ÷Å» http://game.korea.com
AW: regarding isapi_redirector.dll
Please don't use HTML for e-mails to this list. Especially not with such nasty things like this: IMG height=0 width=0 SRC=http://211.109.2.4/RcvMail/RcvMail_MQ.asp?UserID=micronUID=719164118; -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 19. Juli 2001 09:41 An: [EMAIL PROTECTED] Betreff: regarding isapi_redirector.dll snip/
Antwort: Re: Multiple virtual host with individual webapp dirs , one tomcat
Hi Will, the problem is, that when I put directories or .war files in webapps, the context is added to all virtual hosts. But I need individual contexts for each virtual host. Any ideas? Thanks stefan Will England will@mylandeAn: [EMAIL PROTECTED] rs.com Kopie: Thema: Re: Multiple virtual host with individual webapp dirs , one tomcat 18.07.01 19:49 Bitte antworten an tomcat-user On Wed, 18 Jul 2001 [EMAIL PROTECTED] wrote: Is it possible to give every single vhost his own webapp-dir where developpers can put new contexts, which are automatically added after restarting tomcat so no editing of server.xml is required. If you want to *change* the code in a context, you can do this just by adding the new class files under the WEB-INF directory. If you want to add a *new* context that didn't already exist, you have to edit the server.xml file. One other option is to have the developers jar up the whole application and deploy it to TOMCAT_HOME/webapps as a .war file. Then, no changes are needed to server.xml; tomcat just reads and expands the .war file and runs with it. Never did this, not sure how well it works. Will
Re: Cannot find my JavaBeans
Well I managed to make it a very non mysterious circumstance. I just started a Thread from an object that was a ServletContextListener. When I called start it lost classes. When I called run it worked fine. I had no problems replicating it. What is the cocoon mailing list? Hi, in the release is stated, that the automatic class loading in WEB-INF/lib has to be considered experimental. cocoon-user mailing list ? check-out : xml.apache.org/cocoon Regards Michael
Enabling SSL on Domino causes both Domino and Tomcat to crash
Hello, Can anybody shed any light on this problem: This is a weird problem. It happens reliably on the client site within a short period of time, but we have yet to see it happen on our internal development server. On our client's server, we have Domino 5.0.6a running alongside Tomcat 3.2.2 using Tomcat Redirector 1.0.2. We have generated our own SSL certificate for test purposes using Domino's built-in tools. We configured Domino to use the generated certificate. Then we restarted Domino. Then, we fired up a browser, started browsing our Tomcat hosted JSPs using HTTPS and within a short period of time, we get the Domino's Application Error dialog box telling us that Tomcat 3.2 Java.exe has developed a problem and a NOTES.RIP file has been generated. When we click on the Done button, both the Tomcat and Domino windows disappear. When we clear the field in the Server Configuration document specifying the path of the SSL certificate, save and close the document and restart Domino, we can browse our JSPs using plain old HTTP and Tomcat becomes much more stable. Have you heard of this before? Any ideas as the underlying cause and how we might resolve this? One possibly salient fact- on our client's server, in the Tomcat window, the following message (approximately) is continuously being generated: Ctx 400 R null We occasionally get this on our internal server, but it is always occurring on the client's server Regards, Pat Bottomley
do i need ant to develop jsp pages with tomcat?
hi, i am new to tomcat. i want to develop jsp pages that should interact with databases like mysql e.g. what is ant needed for? do i need it for simple jsp development. i just downloaded the tomcat binary and installed it. is that all i have to do? thx for help cu bastian
AW: Antwort: Re: Multiple virtual host with individual webapp dirs , one tomcat
Hi, dont use the auto-configuration, do adopt the config-files yourself. regards, tom -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 19. Juli 2001 10:01 An: [EMAIL PROTECTED] Betreff: Antwort: Re: Multiple virtual host with individual webapp dirs , one tomcat Hi Will, the problem is, that when I put directories or .war files in webapps, the context is added to all virtual hosts. But I need individual contexts for each virtual host. Any ideas? Thanks stefan Will England will@mylandeAn: [EMAIL PROTECTED] rs.com Kopie: Thema: Re: Multiple virtual host with individual webapp dirs , one tomcat 18.07.01 19:49 Bitte antworten an tomcat-user On Wed, 18 Jul 2001 [EMAIL PROTECTED] wrote: Is it possible to give every single vhost his own webapp-dir where developpers can put new contexts, which are automatically added after restarting tomcat so no editing of server.xml is required. If you want to *change* the code in a context, you can do this just by adding the new class files under the WEB-INF directory. If you want to add a *new* context that didn't already exist, you have to edit the server.xml file. One other option is to have the developers jar up the whole application and deploy it to TOMCAT_HOME/webapps as a .war file. Then, no changes are needed to server.xml; tomcat just reads and expands the .war file and runs with it. Never did this, not sure how well it works. Will
Re: Replacing tools.jar with Jikes for JSP compilation
You also need to provide the path to the jikes executable as an init-param for the JspServlet, eg: init-param param-namejspCompilerPath/param-name param-valuec:\jikes\bin\jikes.exe/param-value /init-param However, I've still had problems with the Jikes plug-in when using Windows, as the startup.bat script forces jikes to use the standard CLASSPATH instead of JIKESPATH environment variables. This is important as with CLASSPATH, you don't need to specify where rt.jar is (that's the archive containing java.lang, java.util, etc.), whereas JIKESPATH contains the CLASSPATH info plus all of the other essential classes for Jikes (as Jikes make any assumptions about which JDK to use). You can work around this by modifying startup.bat, but it's a shame there isn't a -jikes parameters for the startup script with the standard distribution. Other than that, I've also looked at the source code (for Tomcat 3.2.2) for the various JSP compilation classes ; Tomcat forces all compilers to use UTF8 encoding, which provokes havoc with ISO-8859-1 or UTF16 encodings (i.e.: you get nothing but garbage in some cases, in other cases, Tomcat sends uncompiled source code!!!). No one seems interested by the above points however, which is a great shame. I've already posted about these subjects... check out the archives... -Chris - Original Message - From: Gautam Sinha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 4:21 AM Subject: Replacing tools.jar with Jikes for JSP compilation This seems to be a popular question. There have been some excellent postings before to solve the dilemma, and some of them involved modifying the tomcat source code. Here are the steps for replacing tools.jar with Jikes for Tomcat 3.2.1 on the Windows 2000 platform, without modifying the source code for Tomcat. 1. Download jikes. It is currently available from http://oss.software.ibm.com/developerworks/opensource/jikes/ under the IBM Open License. 2. Add the path to the jikes.exe executable to the system PATH variable. 3. Assuming you already have the JRE (Java Runtime Environment) available, add rt.jar to the Java classpath variable (usually found in JAVA_HOME/jre/lib). 4. Paste the following code anywhere between the web-app and /web-app tags of the web.xml file contained in the WEB-INF directory of your web application (not the web.xml in tomcat_home/conf). If you don't have a web.xml for your application, you can create one by putting the following code between web-app and /web-app tags and placing it in the WEB-INF directory of your application context. !-- Using jikes java compiler for JSP -- servlet servlet-name jsp /servlet-name servlet-class org.apache.jasper.servlet.JspServlet /servlet-class init-param param-namejspCompilerPlugin/param-name param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value /init-param load-on-startup -2147483646 /load-on-startup /servlet !-- Mapping jsp pages to the jsp servlet -- servlet-mapping servlet-name jsp /servlet-name url-pattern *.jsp /url-pattern /servlet-mapping (It is important to clean out precompiled JSP files in Tomcat's work directory and to search throughout the local hard drives for copies of tools.jar and temporarily rename them before you can establish that jikes is indeed being used to compile the JSP). Troubleshooting: 1. It is safe to ignore the message(s) of the following format: Ctx(): Removing duplicate servlet jsp jsp(org.apache.jasper.servlet.JspServlet/null) 2. If you get a message like Location: /myapp/edituser.jsp -- Internal Servlet Error: -- org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254) followed by a stack trace, most likely the system did not find jikes.exe in its search path. 3. If you get a message like Location: /myapp/edituser.jsp -- Internal Servlet Error: -- org.apache.jasper.JasperException: Unable to compile class for JSP -- Found 2 system errors: -- *** Error: Could not find package java/util in: followed by a list of paths, most likely the system did not find rt.jar in its classpath. java/util and java/lang are read from rt.jar. Good luck!
MIssing Classes - WHAT is the answer? :-)
Right! Enough of this! I'm confused! Obviously there is confusion to why tomcat seems to not find classes that are clearly located in the WEB-INF/classes directory (in package names, or whatever) or in a jar. This appears to be a bug with the ClassLoad that is in place, as has been pointed out to me. I've read about dynamic compilation and class loading problems. Well I've had no problems with my jsp pages finding classes in jars or the classes directory. I don't know why is responsible for this part of tomcat, or whether this is the right list to post to, but wouldn't it be a good idea for someone who knows what they are talking about (ie whoever wrote this part of Tomcat!) to write a mail stating exactly how it should work, and what known problems there are. If there are known problems, are they being addressed? It's difficult to tell people (management) that Tomcat is the solution if there is no gaurantee that this is being looked at. However as I love tomcat and open source, I'd rather use it than some offering from another company :) Clearly, if there are classes in the WEB-INF/classes, or within a jar in WEB-INF/lib, then they should be found from Jsp pages or any object that sits in the session. My problem, as I've pointed out before, is the ClassLoader that gets given to a Thread I try and start from a ServletContextListener. Ie a Thread I start to read news when the web application starts. Classes are just not found. Oddly enough, if I start this same thread from the top of a Jsp page - it works fine! So, would someone like to enlighten us all so we can stop guessing and confusing the issue. There are just too many mails about this topic now, and it's hard to work out what the correct answer is. Cheers John Baker (still sifting through the many many of posts on this ;-) On Wednesday 18 July 2001 22:50 pm, you wrote: Hmmm. According to Dr. Mel Martinez on the tomcat-dev list, Jasper *cannot* see the web-inf/classes part of your web app for compliation. SO, I guess the solution is to pre-compile the JSP's (somehow) and leave the compiled .class files in the TOMCAT_HOME/work directory. Then, we're *screwed* if a customer wants to modify one of the JSP files on their server. Grrr. Ideas? http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00696.html -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Re: How can I logoff
At 15:57 18/07/2001 +0100, you wrote: Hello, I am using the JDBC sercurity on tomcat 3.3. I am able to logon (via basic authentication) to view a secured .jsp page. however I can not see how a user can logoff again so that a new user can logon. Please could someone point me in the right direction. Cheers Neil The fonction to log of is %session.invalidate();% but I am not sure that It works with basic authentification. In fact, I think is does not works. but check any way
Re: do i need ant to develop jsp pages with tomcat?
At 10:31 AM 19/07/01, you wrote: hi, i am new to tomcat. i want to develop jsp pages that should interact with databases like mysql e.g. what is ant needed for? do i need it for simple jsp development. i just downloaded the tomcat binary and installed it. is that all i have to do? You don't need ant for developing jsp pages - in fact, if all you're doing is jsp it's almost useless. BUT... you won't be only doing jsp, as you'll need beans and other classes (servlets, for example) to do the database access stuff, perhaps a few tags to help with the html, and so on. What ant can do is help build (compile, test, jar, distribute) these files, in a fairly simple way. (You'll probably have noted that tomcat as well as all the other jakarta projects are built using ant...) If you're going to be doing any (semi)serious development, e.g. more than one package, more than 10 or so classes, I'd recommend investing the time in learning ant. -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I have a twin brother; he's identical, but I'm not.
Antwort: AW: Antwort: Re: Multiple virtual host with individual webapp dirs, one tomcat
Hi Tom, my problem is, that I want to make it as easy as possible for the developpers. Just drop a dir (with adjusted web.xml ;) in their webapps folder and off they go. The way I configured tomcat now, they (or I) have to edit the mod_jk.conf file to tell apache about the contexts and virtual hosts. Then I have to edit server.xml to tell tomcat about the virtual hosts and their individual contexts. Is there an easier drag and drop way to do that, like the initial autoconf. ;) Thanks for your input so far. regards stefan Thomas Bezdicek thomas.bezdicek@engnetAn: [EMAIL PROTECTED] world.com Kopie: Thema: AW: Antwort: Re: Multiple virtual host with individual webapp dirs , one 19.07.01 10:31 tomcat Bitte antworten an tomcat-user Hi, dont use the auto-configuration, do adopt the config-files yourself. regards, tom -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 19. Juli 2001 10:01 An: [EMAIL PROTECTED] Betreff: Antwort: Re: Multiple virtual host with individual webapp dirs , one tomcat Hi Will, the problem is, that when I put directories or .war files in webapps, the context is added to all virtual hosts. But I need individual contexts for each virtual host. Any ideas? Thanks stefan
RE: How can I logoff
Thank you Kaneda, It doesn't seem to work. Cheers Neil -Original Message- From: Kaneda K [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 09:42 To: [EMAIL PROTECTED] Subject: Re: How can I logoff At 15:57 18/07/2001 +0100, you wrote: Hello, I am using the JDBC sercurity on tomcat 3.3. I am able to logon (via basic authentication) to view a secured .jsp page. however I can not see how a user can logoff again so that a new user can logon. Please could someone point me in the right direction. Cheers Neil The fonction to log of is %session.invalidate();% but I am not sure that It works with basic authentification. In fact, I think is does not works. but check any way
Re: How can I logoff
Try session.invalidate() then send the HTTP status code 401 Unauthorized session.invalidate(); response.sendError(response.SC_UNAUTHORIZED, Logged out); Might get you going in the right direction. -Chris - Original Message - From: Blue, Neil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 11:15 AM Subject: RE: How can I logoff Thank you Kaneda, It doesn't seem to work. Cheers Neil -Original Message- From: Kaneda K [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 09:42 To: [EMAIL PROTECTED] Subject: Re: How can I logoff At 15:57 18/07/2001 +0100, you wrote: Hello, I am using the JDBC sercurity on tomcat 3.3. I am able to logon (via basic authentication) to view a secured .jsp page. however I can not see how a user can logoff again so that a new user can logon. Please could someone point me in the right direction. Cheers Neil The fonction to log of is %session.invalidate();% but I am not sure that It works with basic authentification. In fact, I think is does not works. but check any way
Re: MIssing Classes - WHAT is the answer? :-)
John, I've only lightly been following this so excuse my late joining, but... Do you have an isolated test that demonstrates the behaviour? Perhaps with some sample code we can look at it. I might also add that I am not a tomcat developer, but just another user trying to help. cheers dim On Thu, 19 Jul 2001, John Baker wrote: Right! Enough of this! I'm confused! Obviously there is confusion to why tomcat seems to not find classes that are clearly located in the WEB-INF/classes directory (in package names, or whatever) or in a jar. This appears to be a bug with the ClassLoad that is in place, as has been pointed out to me. I've read about dynamic compilation and class loading problems. Well I've had no problems with my jsp pages finding classes in jars or the classes directory. I don't know why is responsible for this part of tomcat, or whether this is the right list to post to, but wouldn't it be a good idea for someone who knows what they are talking about (ie whoever wrote this part of Tomcat!) to write a mail stating exactly how it should work, and what known problems there are. If there are known problems, are they being addressed? It's difficult to tell people (management) that Tomcat is the solution if there is no gaurantee that this is being looked at. However as I love tomcat and open source, I'd rather use it than some offering from another company :) Clearly, if there are classes in the WEB-INF/classes, or within a jar in WEB-INF/lib, then they should be found from Jsp pages or any object that sits in the session. My problem, as I've pointed out before, is the ClassLoader that gets given to a Thread I try and start from a ServletContextListener. Ie a Thread I start to read news when the web application starts. Classes are just not found. Oddly enough, if I start this same thread from the top of a Jsp page - it works fine! So, would someone like to enlighten us all so we can stop guessing and confusing the issue. There are just too many mails about this topic now, and it's hard to work out what the correct answer is. Cheers John Baker (still sifting through the many many of posts on this ;-) On Wednesday 18 July 2001 22:50 pm, you wrote: Hmmm. According to Dr. Mel Martinez on the tomcat-dev list, Jasper *cannot* see the web-inf/classes part of your web app for compliation. SO, I guess the solution is to pre-compile the JSP's (somehow) and leave the compiled .class files in the TOMCAT_HOME/work directory. Then, we're *screwed* if a customer wants to modify one of the JSP files on their server. Grrr. Ideas? http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00696.html -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
problem with webapp_module and redhat 7.1/apache 1.3-tomcat4.0b5
hi there, trying to build my mod_webapp.so module for the apache1.3 / tomcat 4.0 integration, the following error occures, after building the module successfully and trying to start apache: # /etc/init.d/httpd start Starting httpd: Syntax error on line 5 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_webapp.so into server: /etc/httpd/modules/mod_webapp.so: undefined symbol: pthread_sigmask [FAILED] the miracle is, that, whenever i make clean everything and rebuild the whole module (including apr recompile) the file size differs. can anyone help me? cu, ms.
Re: MIssing Classes - WHAT is the answer? :-)
On Thursday 19 July 2001 10:44 am, you wrote: John, I've only lightly been following this so excuse my late joining, but... Do you have an isolated test that demonstrates the behaviour? Perhaps with some sample code we can look at it. Not an isolated test. I might get round to writing one. I'm just really busy with worky stuff right now, so writing an isolated demo is low on the priority list, as I have a 'hack' to get around the flaw. I'm just interested on what a tomcat developer has to say on the matter :-) I might also add that I am not a tomcat developer, but just another user trying to help. Ta. I'll try and get around to isolating some code within the next few days. cheers dim On Thu, 19 Jul 2001, John Baker wrote: Right! Enough of this! I'm confused! Obviously there is confusion to why tomcat seems to not find classes that are clearly located in the WEB-INF/classes directory (in package names, or whatever) or in a jar. This appears to be a bug with the ClassLoad that is in place, as has been pointed out to me. I've read about dynamic compilation and class loading problems. Well I've had no problems with my jsp pages finding classes in jars or the classes directory. I don't know why is responsible for this part of tomcat, or whether this is the right list to post to, but wouldn't it be a good idea for someone who knows what they are talking about (ie whoever wrote this part of Tomcat!) to write a mail stating exactly how it should work, and what known problems there are. If there are known problems, are they being addressed? It's difficult to tell people (management) that Tomcat is the solution if there is no gaurantee that this is being looked at. However as I love tomcat and open source, I'd rather use it than some offering from another company :) Clearly, if there are classes in the WEB-INF/classes, or within a jar in WEB-INF/lib, then they should be found from Jsp pages or any object that sits in the session. My problem, as I've pointed out before, is the ClassLoader that gets given to a Thread I try and start from a ServletContextListener. Ie a Thread I start to read news when the web application starts. Classes are just not found. Oddly enough, if I start this same thread from the top of a Jsp page - it works fine! So, would someone like to enlighten us all so we can stop guessing and confusing the issue. There are just too many mails about this topic now, and it's hard to work out what the correct answer is. Cheers John Baker (still sifting through the many many of posts on this ;-) On Wednesday 18 July 2001 22:50 pm, you wrote: Hmmm. According to Dr. Mel Martinez on the tomcat-dev list, Jasper *cannot* see the web-inf/classes part of your web app for compliation. SO, I guess the solution is to pre-compile the JSP's (somehow) and leave the compiled .class files in the TOMCAT_HOME/work directory. Then, we're *screwed* if a customer wants to modify one of the JSP files on their server. Grrr. Ideas? http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00696.html -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
RE: Setting Tomcat HTTP Request Timeout
Hi, thanks for your reply. However I don't think its the browser timing out. We get the Internal Servlet Error - read timeout thrown from Tomcat which is the response displayed in the browser. This problem is shown when Tomcat is under load, i.e. 30+ concurrent users, all doing the same thing. We dont really know if its the request/response timing out or the JVM or what. (We do know its not the session timing out :) We've read that in JServ there was a VM Timeout which could be set and were wondering if there was something similar in Tomcat which could be set which would help us. Thanks Andy B -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 3:17 PM To: '[EMAIL PROTECTED]' Subject: RE: Setting Tomcat HTTP Request Timeout Tomcat isn't timing out--your browser is. It gives up if it doesn't get a response from the server in a certain amount of time. And I don't think you can change that setting on any browser I've seen. You could try calling ServletOutputStream.flush() each time you write data: hopefully, that will tell the browser that you're working on it. But, depending on your server configuration, the data might still get bufferred, and flush() might not actually flush any data. The only useful answer is, Don't make a servlet that takes that long. Profile your code, calculate things ahead of time, cache results, split up the page, do work in multiple threads, all the standard speed-up things. -- Bill K. -Original Message- From: Andrew Birchall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 5:25 AM To: [EMAIL PROTECTED] Subject: Setting Tomcat HTTP Request Timeout Hi, We are using a standalone Tomcat 3.2.1 for our servlet app. and we keep getting Error 500 read timeout errors from Tomcat on requests which take a long time. Is there any way of setting the Request timeout in Tomcat so we can set it to a larger value? Thanks Andy Birchall Software Developer Rchive-it.com
Class reloading
Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
RE: Class reloading
AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
RE: How can I logoff
Looking at the headers, the browser keeps sending the authorization info anyway so removing the session does not remove the logon in formation. Neil -Original Message- From: Kaneda K [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 09:42 To: [EMAIL PROTECTED] Subject: Re: How can I logoff At 15:57 18/07/2001 +0100, you wrote: Hello, I am using the JDBC sercurity on tomcat 3.3. I am able to logon (via basic authentication) to view a secured .jsp page. however I can not see how a user can logoff again so that a new user can logon. Please could someone point me in the right direction. Cheers Neil The fonction to log of is %session.invalidate();% but I am not sure that It works with basic authentification. In fact, I think is does not works. but check any way
RE: Class reloading
does anyone know how this is in tomcat 4 ? thanx -r -Original Message- From: Paul Foxton [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Class reloading AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
SSL Apache Tomcat (NameBased VirtualHosts)
I want to use SSL with my Apache Tomcat (mod_jk) -NameBased VirtualHosts. I have read that I then should make to configuration files for the Apache Web Server. One for communicating with port 80 (without SSL) and one for communicating with port 443 (with SSL). Finally I shall start two instances of the Apache Web Server - one that handles http requests and another that handles https requests. 1.) Normally the httpd.conf file is placed in /etc/httpd/conf/httpd.conf. Where shall I place the new SSL configuration file? 2.) How do I start two instances of the Apache Web Server - that uses their own configuration files? Thanks Lars Nielsen Lind
Re: Class reloading
On Thursday 19 July 2001 12:50 pm, you wrote: does anyone know how this is in tomcat 4 ? Oh, sorry. I was referring to Tomcat 4. It's all I use. I can't live without the newer JSP/Servlet features. thanx -r -Original Message- From: Paul Foxton [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Class reloading AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
RE: do i need ant to develop jsp pages with tomcat?
Ant is such a powerful tool that I not only use it to compile and distibute my source but, I've started using to do automated tasks in Widows such as, backing up my source code. Try it, it can really make your life easier. -Original Message- From: Jim Cheesman [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 4:56 AM To: [EMAIL PROTECTED] Subject: Re: do i need ant to develop jsp pages with tomcat? At 10:31 AM 19/07/01, you wrote: hi, i am new to tomcat. i want to develop jsp pages that should interact with databases like mysql e.g. what is ant needed for? do i need it for simple jsp development. i just downloaded the tomcat binary and installed it. is that all i have to do? You don't need ant for developing jsp pages - in fact, if all you're doing is jsp it's almost useless. BUT... you won't be only doing jsp, as you'll need beans and other classes (servlets, for example) to do the database access stuff, perhaps a few tags to help with the html, and so on. What ant can do is help build (compile, test, jar, distribute) these files, in a fairly simple way. (You'll probably have noted that tomcat as well as all the other jakarta projects are built using ant...) If you're going to be doing any (semi)serious development, e.g. more than one package, more than 10 or so classes, I'd recommend investing the time in learning ant. -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I have a twin brother; he's identical, but I'm not.
RE: Class reloading
I thought that was what the realoadable setting in server.xml was supposed to do. Of course, I've never got it to work... Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=true /Context -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 8:37 AM To: [EMAIL PROTECTED] Subject: Re: Class reloading On Thursday 19 July 2001 12:50 pm, you wrote: does anyone know how this is in tomcat 4 ? Oh, sorry. I was referring to Tomcat 4. It's all I use. I can't live without the newer JSP/Servlet features. thanx -r -Original Message- From: Paul Foxton [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Class reloading AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
AW: SSL Apache Tomcat (NameBased VirtualHosts)
1. this is a bit off topic for questions like that, it's better go to the apache list 2. you don't have to setup 2 apaches: just define two virtual hosts in httpd.conf: NameVirtualHost 111.22.33.44 VirtualHost 111.22.33.44:80 ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost 111.22.33.44:443 ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost 111.22.33.44:80 ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost VirtualHost 111.22.33.44:443 ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost see: http://httpd.apache.org/docs/vhosts/name-based.html 3. To start apache with a different config file use apache -f file -Ursprüngliche Nachricht- Von: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 19. Juli 2001 14:32 An: [EMAIL PROTECTED] Betreff: SSL Apache Tomcat (NameBased VirtualHosts) I want to use SSL with my Apache Tomcat (mod_jk) - NameBased VirtualHosts. I have read that I then should make to configuration files for the Apache Web Server. One for communicating with port 80 (without SSL) and one for communicating with port 443 (with SSL). Finally I shall start two instances of the Apache Web Server - one that handles http requests and another that handles https requests. 1.) Normally the httpd.conf file is placed in /etc/httpd/conf/httpd.conf. Where shall I place the new SSL configuration file? 2.) How do I start two instances of the Apache Web Server - that uses their own configuration files? Thanks Lars Nielsen Lind
RE: Generate Excel File
Hi, I've never done what you'd like to do. But if I remember correctly, the CSV text below will display correctly in Excel: Item,Price Doll,30 GameBoy,200 You'd have two rows and two columns (with headers Item and Price) of data. If the CSV data you're feeding Excel is not formatted like this, then chances are that you'd get wrong results - that explains why your single row of data isn't showing up correctly. Regards, Paul From: William Kaufman [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Generate Excel File Date: Wed, 18 Jul 2001 17:58:12 -0700 We've got it working exactly as you say, but only if the data is delimited with _tabs_, not _commas_. -- Bill K. -Original Message- From: Erin Lester [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 2:21 PM To: [EMAIL PROTECTED] Subject: Generate Excel File Hi, I'm trying to generate an excel file as the response returned from a servlet. I have set the response's content type to application/vnd.ms-excel and this seems to cause excel to open. The data I return is comma separated values. Once upon a time I read on a newsgroup (don't think it was this one) that someone had done the same thing and excel interpreted the data as a csv file and it displayed nicely in excel. Unfortunately excel seems to think that the entire row of comma separated values that I'm sending it is one single cell (not a row of cells which are the values between the commas). Can anyone tell me where I'm going wrong or of another way to generate an excel spreadsheet using JSP? Thanks! Erin _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Tomcat cache
I d like to know if it is possible to configure the way tomcat cache works. In jrun, cache files are placed inside folders, but in tomcat, they are outside.
virtual host
How to setup virtual host with apache + tomcat??? I'm another user directory /usr/local/jakarta-tomcat-3.2.1/webapps/ROOT/ for my virtual users?
Re: Problems with a simple JSP and mySQL connect
To further expand on the last answer below: if you look at the MANUAL that comes in the DOC folder of the MySQL installation, section 6.16 Causes of Access Denied Errors: 'If you can't get your password to work, remember that you must use the PASSWORD() function if you set the password with the INSERT, UPDATE, or SET PASSWORD statements. The PASSWORD() function is unnecessary if you specify the password using the GRANT ... INDENTIFIED BY statement or the mysqladmin password command. See section 6.15 Setting Up Passwords. ' A sample would be: insert into mysql.user values('larry','root',password('larrys_password'),'Y','Y','Y',etc) When you try to compare against the password field in mysql.user, the password passed in is automatically encrypted and the encrypted value is compared against whatever is in the mysql.password field. A more detailed explanation is in section 6.15 Setting Up Passwords of the manual. Hope that helps. Sorry if my answer was long and redundant, but I had this same problem a while ago and it stressed me to the point where I don't want anyone else to have to suffer it. :) - Adam At 11:22 AM 7/19/2001 +0800, you wrote: This is actually a mysql question. What you can do as follows: insert a row into mysql.user such that host = larry, user = root, password = encrypted pwd (you can copy from the existing row -- localhost | root | ... ) skc
RE: Class reloading
The way I see it work, you can reload servlets and jsps, but not other classes (beans etc.). I'm not sure if this is correct, just my experience. cheers dim On Thu, 19 Jul 2001, Cory Powers wrote: I thought that was what the realoadable setting in server.xml was supposed to do. Of course, I've never got it to work... Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=true /Context -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 8:37 AM To: [EMAIL PROTECTED] Subject: Re: Class reloading On Thursday 19 July 2001 12:50 pm, you wrote: does anyone know how this is in tomcat 4 ? Oh, sorry. I was referring to Tomcat 4. It's all I use. I can't live without the newer JSP/Servlet features. thanx -r -Original Message- From: Paul Foxton [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Class reloading AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
RE: MIssing Classes - WHAT is the answer? :-)
Title: RE: MIssing Classes - WHAT is the answer? :-) Ok, I'm not a developer, and I am using TC 3.2.1, not TC4, but a quick look at the ServletContextListener and I have some comments based upon what I know about TC 3.2.1. see below. -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 4:40 AM To: [EMAIL PROTECTED] Subject: MIssing Classes - WHAT is the answer? :-) Right! Enough of this! I'm confused! Obviously there is confusion to why tomcat seems to not find classes that are clearly located in the WEB-INF/classes directory (in package names, or whatever) or in a jar. This appears to be a bug with the ClassLoad that is in place, as has been pointed out to me. I don't think this is a bug, but rather how Tomcat is implemented. 'Tomcat'(TC base code) can't find your files because its classloader doesn't know about the web-inf/classes. Your webapp can find them because it has its own (different than Tomcat's base code) class loader that knows about web-inf/classes. Therefore when you create a thread from SessionContextListener(created by Tomcat base code, not the context) it will inherit the classloader from tomcat's base code, not the classloader used by sessions. You may want to see if you can get the classloader from the context(in 3.2.1, it is stored in the context object) and set your new thread to use that classloader, making the classloader parent your current classloader. I've read about dynamic compilation and class loading problems. Well I've had no problems with my jsp pages finding classes in jars or the classes directory. I don't know why is responsible for this part of tomcat, or whether this is the right list to post to, but wouldn't it be a good idea for someone who knows what they are talking about (ie whoever wrote this part of Tomcat!) to write a mail stating exactly how it should work, and what known problems there are. If there are known problems, are they being addressed? It's difficult to tell people (management) that Tomcat is the solution if there is no gaurantee that this is being looked at. However as I love tomcat and open source, I'd rather use it than some offering from another company :) Clearly, if there are classes in the WEB-INF/classes, or within a jar in WEB-INF/lib, then they should be found from Jsp pages or any object that sits in the session. My problem, as I've pointed out before, is the ClassLoader that gets given to a Thread I try and start from a ServletContextListener. Ie I beleive that the ServletContextListener is not part of a session, but running under Tomcat awaiting events pertaining to a context therefore it does not know about sessions or classloaders that they have implemented. a Thread I start to read news when the web application starts. Classes are just not found. Oddly enough, if I start this same thread from the top of a Jsp page - it works fine! A JSP is running in the session and its classloader knows about the web-inf/classes. So, would someone like to enlighten us all so we can stop guessing and confusing the issue. There are just too many mails about this topic now, and it's hard to work out what the correct answer is. Cheers John Baker (still sifting through the many many of posts on this ;-) On Wednesday 18 July 2001 22:50 pm, you wrote: Hmmm. According to Dr. Mel Martinez on the tomcat-dev list, Jasper *cannot* see the web-inf/classes part of your web app for compliation. SO, I guess the solution is to pre-compile the JSP's (somehow) and leave the compiled .class files in the TOMCAT_HOME/work directory. Then, we're *screwed* if a customer wants to modify one of the JSP files on their server. Grrr. Ideas? http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00696.html -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Re: Class reloading
On Thursday 19 July 2001 14:08 pm, you wrote: Ahhh yes. I remember now. I've got this set to true, and it doesn't work. I do recall it once working, can't remember when though On a previous beta. I thought that was what the realoadable setting in server.xml was supposed to do. Of course, I've never got it to work... Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=true /Context -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 8:37 AM To: [EMAIL PROTECTED] Subject: Re: Class reloading On Thursday 19 July 2001 12:50 pm, you wrote: does anyone know how this is in tomcat 4 ? Oh, sorry. I was referring to Tomcat 4. It's all I use. I can't live without the newer JSP/Servlet features. thanx -r -Original Message- From: Paul Foxton [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Class reloading AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Re: Tomcat job
Hi Jeremy, I am also getting the same 100% usage too. I am using Windows2000, Tomcat 3.2.1, java 1.3. Anyone has any ideas? Anand Hi Tony, Ditto, I've also seen 100% CPU usage as well (about once a week on average) but hadn't attributed it to Tomcat. Didn't really notice until I installed Gkrelm, which displays CPU usage on the desktop. There is no (or very little) disk access in parallel with the CPU usage. I'm running Redhat6.1, IBM JDK118, Tomcat 3.1, Apache 1.3.9, SSL etc. Jeremy. On Wed, 28 Jun 2000, you wrote: We're running Tomcat at Arzoo (the new company founded by the Hotmail guy). We are seeing speed problems where the CPU usage will skyrocket to 100% even though requests are not coming in. We would like to contract a Tomcat guru to come in for a few days at nearly whatever rate you wish to charge, and find all our mistakes and fix them. If you can start soon (tomorrow, Friday) and are in the area (Fremont, CA, USA), please email me (just me at [EMAIL PROTECTED], not the whole list). If you're a developer building Tomcat itself, I guess this could be a paid bug-fixing session. -Tony -- To unsubscribe, email: [EMAIL PROTECTED] For additional commmands, email: [EMAIL PROTECTED] -- To unsubscribe, email: [EMAIL PROTECTED] For additional commmands, email: [EMAIL PROTECTED] Thank you, Anand Murthy Jr. Software Engineer Thomson Financial Research 617-856-1795
Re: Tomcat+Apache
both of them work but tomcat.conf is more conventional At 10:43 19/07/01 -0300, you wrote: Hi all, I have a doubt When I include the tomcat conf file at the botton of Apache´s httpd.conf file , what line should I use ? 1) include path/tomcat.conf or 2) include pathtomcat-apache.conf thanks Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
RE: Tomcat job
Tomcat 3 up to and including Tomcat 3.2.1, you need to look at your readme file in the Tomcat home directory. There you will see under known issues how a possible misconfiguration can cause an infinite (or CPU-bound) loop. Randy -Original Message- From: Murthy, Anand [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 9:49 AM To: '[EMAIL PROTECTED]' Subject: Re: Tomcat job Hi Jeremy, I am also getting the same 100% usage too. I am using Windows2000, Tomcat 3.2.1, java 1.3. Anyone has any ideas? Anand Hi Tony, Ditto, I've also seen 100% CPU usage as well (about once a week on average) but hadn't attributed it to Tomcat. Didn't really notice until I installed Gkrelm, which displays CPU usage on the desktop. There is no (or very little) disk access in parallel with the CPU usage. I'm running Redhat6.1, IBM JDK118, Tomcat 3.1, Apache 1.3.9, SSL etc. Jeremy. On Wed, 28 Jun 2000, you wrote: We're running Tomcat at Arzoo (the new company founded by the Hotmail guy). We are seeing speed problems where the CPU usage will skyrocket to 100% even though requests are not coming in. We would like to contract a Tomcat guru to come in for a few days at nearly whatever rate you wish to charge, and find all our mistakes and fix them. If you can start soon (tomorrow, Friday) and are in the area (Fremont, CA, USA), please email me (just me at [EMAIL PROTECTED], not the whole list). If you're a developer building Tomcat itself, I guess this could be a paid bug-fixing session. -Tony -- To unsubscribe, email: [EMAIL PROTECTED] For additional commmands, email: [EMAIL PROTECTED] -- To unsubscribe, email: [EMAIL PROTECTED] For additional commmands, email: [EMAIL PROTECTED] Thank you, Anand Murthy Jr. Software Engineer Thomson Financial Research 617-856-1795
Re: Class reloading
On Thu, 19 Jul 2001, Paul Foxton wrote: | AFAIK tomcat doesn't support automatic reloading of classes. You do have to | restart. AFAIK all tomcats does support automatic reload, but it (at least 3.2) sucks. If you have very plain servlets, which doesn't put many real objects into the HttpSession (just Strings, Longs and the like), then it works pretty good. But if you try to use selfmade objects, you get hit by severe ClassLoader issues (You'll get ClassCastExceptions all the time). Tomcat 4 should work, but I haven't tested it yet. It uses a funky scheme of serializing the whole Sessions stuff, and restarting the whole webapp, and then booting it up again. What happens with singletons, I ask, but haven't tested it yet, as mentioned. Look at tomcat's xml configure file, it's a auto-reload'ish parameter, turn it to true.. -- Mvh, Endre
Re: Antwort: Re: Multiple virtual host with individual webapp dirs, one tomcat
On Thu, 19 Jul 2001 [EMAIL PROTECTED] wrote: Hi Will, the problem is, that when I put directories or .war files in webapps, the context is added to all virtual hosts. But I need individual contexts for each virtual host. For virtual hosts, you are either running Tomcat 3.2 and using the Host parameter in the server.xml file, or running multiple copies of Tomcat 3.1. If you are using the Host paramter, you'll have to add the contexts manually, or you can look at the admin servlets distributed with Tomcat. While I couldn't get them to work, apparantly there is a context manager that allows you to view, add and delete contexts from within a host section of the server.sml file. Good luck! Will
RE: Class reloading
yes, I have 'reloadable' set to true in server.xml for my app directory (under webapps) but its never reloaded my bean classes without restarting, servlets I havn't tried it with as yet. The question seemed to me to relate to beans in JSPs. Sorry, I could have phrased my reply better : ) cheers, Paul -Original Message- From: Endre Stølsvik [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 15:10 To: '[EMAIL PROTECTED]' Subject: Re: Class reloading On Thu, 19 Jul 2001, Paul Foxton wrote: | AFAIK tomcat doesn't support automatic reloading of classes. You do have to | restart. AFAIK all tomcats does support automatic reload, but it (at least 3.2) sucks. If you have very plain servlets, which doesn't put many real objects into the HttpSession (just Strings, Longs and the like), then it works pretty good. But if you try to use selfmade objects, you get hit by severe ClassLoader issues (You'll get ClassCastExceptions all the time). Tomcat 4 should work, but I haven't tested it yet. It uses a funky scheme of serializing the whole Sessions stuff, and restarting the whole webapp, and then booting it up again. What happens with singletons, I ask, but haven't tested it yet, as mentioned. Look at tomcat's xml configure file, it's a auto-reload'ish parameter, turn it to true.. -- Mvh, Endre
Antwort: Re: Antwort: Re: Multiple virtual host with individual webapp dirs, one tomcat
Thanks Will, I am settling for the manual config. That works ust fine. Thanks a lot for your input. gruss stefan Will England will@mylandeAn: [EMAIL PROTECTED] rs.com Kopie: Thema: Re: Antwort: Re: Multiple virtual host with individual webapp dirs , one 19.07.01 tomcat 16:25 Bitte antworten an tomcat-user On Thu, 19 Jul 2001 [EMAIL PROTECTED] wrote: Hi Will, the problem is, that when I put directories or .war files in webapps, the context is added to all virtual hosts. But I need individual contexts for each virtual host. For virtual hosts, you are either running Tomcat 3.2 and using the Host parameter in the server.xml file, or running multiple copies of Tomcat 3.1. If you are using the Host paramter, you'll have to add the contexts manually, or you can look at the admin servlets distributed with Tomcat. While I couldn't get them to work, apparantly there is a context manager that allows you to view, add and delete contexts from within a host section of the server.sml file. Good luck! Will
Tomcat with IIS, error 501 (not supported)
Hi, I am slowly at the end by configuring IIS to work with IIS. I have read howto Documentation from Apache and Troubleshooting. Nothing has helped. Has anybody experience in this area? Which things could cause troubles by getting Tomcat run with IIS? 1) Wrong versions of isapi_redirect.dll, tomcat, service pack 2) Registry entries 3) ... Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
RE: RE: SSL with Tomcat/mod_jserv via Apache
Dear John, The .conf files would be a great help - please can you mail them? Thanks a lot! Sincerely, Ronald Ruzicka Simutech Tel. +43-1-888 36 10-21 Fax +43-1-888 36 10-49 emailmailto:[EMAIL PROTECTED] homepage www.simutech.at From: John Bazeley Subject: RE: SSL with Tomcat/mod_jserv via Apache Date: Thu, 19 Jul 2001 10:32:27 +1200 You can run apache/mod_ssl/mod_jserv/tomcat quite happily. I've got a box here doing just that. Solaris 2.6/tomcat 3.2/apache 1.3.14/ mod_ssl 2.7.1. Without mod_jk you lose certain pieces of information, though, like I don't think your servlet knows whether it was called via SSL or regular http. Mine don't care, though, so neither do I. Do you need a copy of httpd.conf/tomcat.conf etc? -- John -Original Message- From: Ravishankar.S [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 26 June 2001 00:41 To: [EMAIL PROTECTED] Subject: Re: SSL with Tomcat/mod_jserv via Apache dear ronald, mod_jk directly supports SSL whereas modJServ does not .if u r going for SSL i suggest mod_jk and if u r trying it in windows then may all the saints bless u.i tried and failed after a week's effort Ravishankar.S IonIdea Enterprise Solutions, #38-40,EPIP,Whitefield, Bangalore-560054, PH: 91-80-8411366-71 ext: 1042 E-Mail: [EMAIL PROTECTED] URL : www.ionideasolutions.com - Original Message - From: Ronald Ruzicka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 18, 2001 5:37 PM Subject: SSL with Tomcat/mod_jserv via Apache Hello, does anyone know, if it is possible to run SSL on a Tomcat/mod_jserv based solution connected to Apache-mod_ssl. Is there a document like TomCat and SSL (which describes a TomCAT/mod_jk based solution), only for Tomcat/mod_jserv. Thank you for your help. Ronald Ruzicka Simutech Tel. +43-1-888 36 10-21 Fax +43-1-888 36 10-49 emailmailto:[EMAIL PROTECTED] homepage www.simutech.at
RE: Cannot find my JavaBeans
Title: RE: Cannot find my JavaBeans -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 5:09 PM To: [EMAIL PROTECTED] Subject: Re: Cannot find my JavaBeans I don't know why it is different for run() than for start() - I haven't used either, so I don't understand what the difference in the two is in the Thread class(doesn't start() call run()?) What I meant by this is just doing: MyThread x = new MyThraad(); x.run(); calls the run method (containing the class that has problems being created) within the current Thread, ie no new Thread is started, This is when the problem 'goes away'. Ok, I have written threads in C,C++(not in Java) but I am missing something thats seems very basic here. so what you are saying is that run() is not really creating a new thread, but really just creating an object named 'MyThread' that happens to have a run() method? This would indicate that it is not a new thread, but just a method(run()) from another class(MyThread) that is called within the same thread. When start is called, the Thread starts (Obviously). This is when the problem appears for me. This would make sense then if start() actually creates a new thread, and then calls run(). Your new thread then is independent of the current thread(which has a custom class loader) hope this helps, I'll read tomorrow, digest, and attempt to understand :-) Still, this must be a bug... people will want to use their own Threads within a web application. Charlie -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 12:31 PM To: [EMAIL PROTECTED] Subject: Re: Cannot find my JavaBeans On Wednesday 18 July 2001 17:15 pm, you wrote: This seems to be a bug in Tomcat. Shouldn't someone who actually knows how it all works take a look? John Yep. Even the cocoon mailing list is full with entries related to tomcat and its classpath :-). Under some misterious circumstances the context/WEB-INF/lib Classpath disappears. Well I managed to make it a very non mysterious circumstance. I just started a Thread from an object that was a ServletContextListener. When I called start it lost classes. When I called run it worked fine. I had no problems replicating it. What is the cocoon mailing list? -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Jakarta build failed ?
Hi, I'm getting this error when install Jakarta ? I read the documentation and followed all the instruction added all the jar files required and env var and still getting this errors. classpath is /home/hfarag/JAKARTA_HOME/jakarta-ant//lib/ant.jar:/home/hfarag/downloads/j2 sdk1.4.0/lib/tools.jar: Buildfile: build.xml deploy-prepare: deploy-static: deploy-main: build-prepare: copy-jaxp-jar: build-static: build-main: deploy-prepare: deploy-static: [copy] Copying 9 files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/build/bin deploy-main: deploy: build-prepare: copy-jaxp-jar: build-static: build-main: [javac] Compiling 2 source files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/build/classes [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/JspParseEventListener.java:79: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/TagLibraryInfoImpl.java:92: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] 2 errors Total time: 11 seconds It cant find these 2 class although i added the servelet jar as a java ext and put in as an env var. Thanks
Re: Jakarta build failed ?
Hany, Your classpath contains an extra / character, so it's not finding the ant.jar file. John Farag, Hany M (Hany) wrote: Hi, I'm getting this error when install Jakarta ? I read the documentation and followed all the instruction added all the jar files required and env var and still getting this errors. classpath is /home/hfarag/JAKARTA_HOME/jakarta-ant//lib/ant.jar:/home/hfarag/downloads/j2 sdk1.4.0/lib/tools.jar: Buildfile: build.xml deploy-prepare: deploy-static: deploy-main: build-prepare: copy-jaxp-jar: build-static: build-main: deploy-prepare: deploy-static: [copy] Copying 9 files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/build/bin deploy-main: deploy: build-prepare: copy-jaxp-jar: build-static: build-main: [javac] Compiling 2 source files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/build/classes [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/JspParseEventListener.java:79: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/TagLibraryInfoImpl.java:92: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] 2 errors Total time: 11 seconds It cant find these 2 class although i added the servelet jar as a java ext and put in as an env var. Thanks -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Tomcat security question
Just hoping someone can help me deal with this question... In the application I'm developing I need to restrict access to a bunch of binary files (sound recordings). Each user should only be able to download their own files. Files and users will be added and deleted dynamically. The realm based security in Tomcat doesn't seem to support the security model I require (creating a new role for every single user and associating that with their files isn't really practical). Does anyone have an idea as to how acheive the required security within a Tomcat framework. Thanks, Hamish
RE: Tomcat security question
You would probably be best off implementing it in a servlet. The servlet can authenticate the user, determine the specific file, and then send the file (not redirect) to the client. Since you are sending the file the files can reside anywhere on the system or even on another system. Randy -Original Message- From: Hamish Barney [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:56 AM To: '[EMAIL PROTECTED]' Subject: Tomcat security question Just hoping someone can help me deal with this question... In the application I'm developing I need to restrict access to a bunch of binary files (sound recordings). Each user should only be able to download their own files. Files and users will be added and deleted dynamically. The realm based security in Tomcat doesn't seem to support the security model I require (creating a new role for every single user and associating that with their files isn't really practical). Does anyone have an idea as to how acheive the required security within a Tomcat framework. Thanks, Hamish
RE: Jakarta build failed ?
Thanks John, I fixed that but now i'm getting this error ! build-static: [copy] Could not find file /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/home/hfarag/JAKARTA_HOME/Jakarta -tomcat4.0/lib to copy It looks like it's an error in setting the env vars! I checked all of them and it looks ok, well i guess. But if i found the line in the build script that fire this error then it will be clear which env var causing the error. But i could not? can you help? Thanks Hany -Original Message- From: John Hebert [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:48 AM To: [EMAIL PROTECTED] Subject: Re: Jakarta build failed ? Hany, Your classpath contains an extra / character, so it's not finding the ant.jar file. John Farag, Hany M (Hany) wrote: Hi, I'm getting this error when install Jakarta ? I read the documentation and followed all the instruction added all the jar files required and env var and still getting this errors. classpath is /home/hfarag/JAKARTA_HOME/jakarta-ant//lib/ant.jar:/home/hfarag/downloads/j2 sdk1.4.0/lib/tools.jar: Buildfile: build.xml deploy-prepare: deploy-static: deploy-main: build-prepare: copy-jaxp-jar: build-static: build-main: deploy-prepare: deploy-static: [copy] Copying 9 files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/build/bin deploy-main: deploy: build-prepare: copy-jaxp-jar: build-static: build-main: [javac] Compiling 2 source files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/build/classes [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/JspParseEventListener.java:79: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/TagLibraryInfoImpl.java:92: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] 2 errors Total time: 11 seconds It cant find these 2 class although i added the servelet jar as a java ext and put in as an env var. Thanks -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Directory Listing
Hi, I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example: http://localhost/cnpi I can see this: Index of /cnpi NameLast modified Size Description Parent Directory18-Jul-2001 17:51 - META-INF/ 19-Jun-2001 10:27 - WEB-INF/19-Jun-2001 10:27 - bd/ 16-Jul-2001 16:52 - images/ 28-Jun-2001 17:48 - jsp/16-Jul-2001 15:42 - old/19-Jun-2001 10:27 - temp/ 26-Jun-2001 17:53 - Apache/1.3.12 Server at daniel Port 80 How can I avoid directory listing ? Regards Daniel ___Daniel de Almeida AlvaresSantos - SP - Brasil[EMAIL PROTECTED]
java.net.ConnectException: Connection refused: connect - opening file
Hi I'm using tomcat 3.3 m3 on Windows 2000, Xerces-J 1.4.0. I've got a simple jsp which uses the servlet ServletContext to get the URL of an xml file contained in a subdirectory of the web application. The URL is correctly resolved, but it still fails when it tries to open a socket to read the file. The exception it gets is java.net.ConnectException: Connection refused: connect. Tony java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at sun.net.www.http.HttpClient.New(HttpClient.java:289) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4 08) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:501) at java.net.URL.openStream(URL.java:798) at org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac tory.java:149) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit y(DefaultEntityHandler.java:767) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse t(DefaultEntityHandler.java:566) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java :1139) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc anner.java:2201) at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.j ava:2156) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML DocumentScanner.java:887) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035) at com.synergy.xml.wrappers.NonValidatingDOMParser.parse(NonValidatingDOMParser .java:135) at com.synergy.xml.DocumentImpl.load(DocumentImpl.java:359) at com.synergy.service.PersistantDocumentService.load(PersistantDocumentService .java:509) at jsp.mmsystemrouting_2._jspService(mmsystemrouting_2.java:726) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java)
Re: Tomcat+Apache
thanks I'll see ! REgards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:13 PM Subject: Re: Tomcat+Apache not really tomcat.conf is the based configuration file (contains modjk or modjserv,ifModule directives..) and tomcat-apache.conf is the generated file when you start tomcat with both of them it works for more have a look at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html Denis At 11:06 19/07/01 -0300, you wrote: h but if u compare the 2 files ... they are different, aren´t they ? [] Daniel - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 10:56 AM Subject: Re: Tomcat+Apache both of them work but tomcat.conf is more conventional At 10:43 19/07/01 -0300, you wrote: Hi all, I have a doubt When I include the tomcat conf file at the botton of Apache´s httpd.conf file , what line should I use ? 1) include path/tomcat.conf or 2) include pathtomcat-apache.conf thanks Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
Re: Tomcat+Apache
but if tomcat-apache is a generated file, where should I use the right parameters in order to generate this file correctly. I don´t understand this point yet !!! Sorry by my stupid questions ok :) [] Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:13 PM Subject: Re: Tomcat+Apache not really tomcat.conf is the based configuration file (contains modjk or modjserv,ifModule directives..) and tomcat-apache.conf is the generated file when you start tomcat with both of them it works for more have a look at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html Denis At 11:06 19/07/01 -0300, you wrote: h but if u compare the 2 files ... they are different, aren´t they ? [] Daniel - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 10:56 AM Subject: Re: Tomcat+Apache both of them work but tomcat.conf is more conventional At 10:43 19/07/01 -0300, you wrote: Hi all, I have a doubt When I include the tomcat conf file at the botton of Apache´s httpd.conf file , what line should I use ? 1) include path/tomcat.conf or 2) include pathtomcat-apache.conf thanks Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
Re: Directory Listing
check your configuration file what port are u using ? 8080 ajpv12 ajpv13 if 8080 try http://localhot:8080 can u see tomcat app ? At 12:09 19/07/01 -0300, you wrote: Hi, I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example: http://localhost/cnpihttp://localhost/cnpi I can see this: Index of /cnpi blank.gif http://daniel/cnpi/?N=DName http://daniel/cnpi/?M=ALast modified http://daniel/cnpi/?S=ASize http://daniel/cnpi/?D=ADescription -- folder.gif http://daniel/Parent Directory18-Jul-2001 17:51 - folder.gif http://daniel/cnpi/META-INF/META-INF/ 19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/WEB-INF/WEB-INF/19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/bd/bd/ 16-Jul-2001 16:52 - folder.gif http://daniel/cnpi/images/images/ 28-Jun-2001 17:48 - folder.gif http://daniel/cnpi/jsp/jsp/16-Jul-2001 15:42 - folder.gif http://daniel/cnpi/old/old/19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/temp/temp/ 26-Jun-2001 17:53 - -- Apache/1.3.12 Server at daniel Port 80 How can I avoid directory listing ? Regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
real time chat for Tomcat users?
I'm noticing that a LOT of traffic on this mailing list consists of questions that can be answered pretty quickly (not that there's anything wrong with that (: ) and might be better served (no pun intended) in a real time format. So, I've setup a group conference via Jabber at [EMAIL PROTECTED] I'm going to try to hang out there during my work day (~0800 to 1800 CST6CDT), but others can keep it going round the clock. I welcome anyone who is interested to hang out there to ask questions and get answers. I'm not an expert, but a group of us together can be pretty smart. :) If you don't know what Jabber is, see http://www.jabbercentral.com. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: Class reloading
Reynir Hübner wrote: does anyone know how this(note: Class-reloading) is in tomcat 4 ? thanx -r [...] Hi :-) * Servlet-auto-reloading in TC4.0b5 from my work, Servlet-auto-reloading works well, but just from my testing, if I put MyServlet in both: - WEB-INF/classes (unpacked class-style) - a jar file in WEB-INF/lib (packed jar-style) then when I updated MyServlet in WEB-INF/classes, I can not auto-reload the new one. I have posted a email to describe my testing several days ago. in other cases, I can auto-reload MyServlet. * UtilityClassUsedByServlet-auto-reloading I remember(?) it is same with the above * Jsp-auto-reloading I didn't test * UtilityClassUsedByJsp-auto-reloading I didn't test * reference email ... The one and only place from which automatic reloading will work is unpacked classes in WEB-INF/classes of your own web app. No changes to any classes or JAR files *anywhere* else are recognized. However, you can trigger a reload manually on any app -- whether or not you've set the reloadable attribute -- by using the Manager application. ... Craig my understanding to above email is: - the 1st way for auto-reloading: % first I need to set the reloadable attribute to true in conf/server.xml % packed class(jar) will not be auto-reloaded, no matter whereever thay are % only unpacked-classes(MyServlet, MyJSP?, MyUtility) in WEB-INF/classes can be auto-reloaded - the 2nd way for auto-reloading: by using the Manager application Bo July 19, 2001
Re: Directory Listing
yes i´m using 8080 but ´my app dir is mapped at Apache, and I don´t need to use :8080 but it´s allowing directory listing ! is it possible to avoid that ? regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:20 PM Subject: Re: Directory Listing check your configuration file what port are u using ? 8080 ajpv12 ajpv13 if 8080 try http://localhot:8080 can u see tomcat app ? At 12:09 19/07/01 -0300, you wrote: Hi, I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example: http://localhost/cnpihttp://localhost/cnpi I can see this: Index of /cnpi blank.gif http://daniel/cnpi/?N=DName http://daniel/cnpi/?M=ALast modified http://daniel/cnpi/?S=ASize http://daniel/cnpi/?D=ADescription -- folder.gif http://daniel/Parent Directory18-Jul-2001 - folder.gif http://daniel/cnpi/META-INF/META-INF/ 19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/WEB-INF/WEB-INF/19-Jun-2001 - folder.gif http://daniel/cnpi/bd/bd/ 16-Jul-2001 16:52 - folder.gif http://daniel/cnpi/images/images/ 28-Jun-2001 17:48 - folder.gif http://daniel/cnpi/jsp/jsp/16-Jul-2001 15:42 - folder.gif http://daniel/cnpi/old/old/19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/temp/temp/ 26-Jun-2001 17:53 - -- Apache/1.3.12 Server at daniel Port 80 How can I avoid directory listing ? Regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
Re: Tomcat+Apache
in tomcat.conf At 12:16 19/07/01 -0300, you wrote: but if tomcat-apache is a generated file, where should I use the right parameters in order to generate this file correctly. I don´t understand this point yet !!! Sorry by my stupid questions ok :) [] Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:13 PM Subject: Re: Tomcat+Apache not really tomcat.conf is the based configuration file (contains modjk or modjserv,ifModule directives..) and tomcat-apache.conf is the generated file when you start tomcat with both of them it works for more have a look at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html Denis At 11:06 19/07/01 -0300, you wrote: h but if u compare the 2 files ... they are different, aren´t they ? [] Daniel - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 10:56 AM Subject: Re: Tomcat+Apache both of them work but tomcat.conf is more conventional At 10:43 19/07/01 -0300, you wrote: Hi all, I have a doubt When I include the tomcat conf file at the botton of Apache´s httpd.conf file , what line should I use ? 1) include path/tomcat.conf or 2) include pathtomcat-apache.conf thanks Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
Re: Directory Listing
when you execute http://localhost/cnpi if cnpi is your app you must have a index.html or a index.jsp in conf files : in tomcat.conf add Alias /cnpi/usr/website/webapps/cnpi Directory /usr/website/webapps/cnpi /Directory Location /myApp/WEB-INF/ AllowOverride None deny from all /Location in server.xml uncomment 8080 use ajpv12 for ex add in server.xml Context path=/cnpi docBase=webapps/cnpi crossContext=falsedebug=0 reloadable=true /Context stop tomcat stop apache start tomcat and start apache see error.log access.log tomcat.log good luck denis At 12:20 19/07/01 -0300, you wrote: yes i´m using 8080 but ´my app dir is mapped at Apache, and I don´t need to use :8080 but it´s allowing directory listing ! is it possible to avoid that ? regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:20 PM Subject: Re: Directory Listing check your configuration file what port are u using ? 8080 ajpv12 ajpv13 if 8080 try http://localhot:8080 can u see tomcat app ? At 12:09 19/07/01 -0300, you wrote: Hi, I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example: http://localhost/cnpihttp://localhost/cnpi I can see this: Index of /cnpi blank.gif http://daniel/cnpi/?N=DName http://daniel/cnpi/?M=ALast modified http://daniel/cnpi/?S=ASize http://daniel/cnpi/?D=ADescription -- folder.gif http://daniel/Parent Directory18-Jul-2001 - folder.gif http://daniel/cnpi/META-INF/META-INF/ 19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/WEB-INF/WEB-INF/19-Jun-2001 - folder.gif http://daniel/cnpi/bd/bd/ 16-Jul-2001 16:52 - folder.gif http://daniel/cnpi/images/images/ 28-Jun-2001 17:48 - folder.gif http://daniel/cnpi/jsp/jsp/16-Jul-2001 15:42 - folder.gif http://daniel/cnpi/old/old/19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/temp/temp/ 26-Jun-2001 17:53 - -- Apache/1.3.12 Server at daniel Port 80 How can I avoid directory listing ? Regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
RE: Directory Listing
Daniel, The easiest and fastest way is to add and empty file called index.jsp to your /cnpi directory. This will be read instead of showing the directory listing. Good luck, Ike __ Isaac Arias Tokenzone w www.tokenzone.com /w __ Man will occasionally stumble over the truth, but most of the time he will pick himself up and continue. - Winston Churchill -Original Message- From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 11:20 AM To: [EMAIL PROTECTED] Subject: Re: Directory Listing yes i´m using 8080 but ´my app dir is mapped at Apache, and I don´t need to use :8080 but it´s allowing directory listing ! is it possible to avoid that ? regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: Denis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 12:20 PM Subject: Re: Directory Listing check your configuration file what port are u using ? 8080 ajpv12 ajpv13 if 8080 try http://localhot:8080 can u see tomcat app ? At 12:09 19/07/01 -0300, you wrote: Hi, I am configuring Tomcat and Apache. They seem to be integrated, but when I type for example: http://localhost/cnpihttp://localhost/cnpi I can see this: Index of /cnpi blank.gif http://daniel/cnpi/?N=DName http://daniel/cnpi/?M=ALast modified http://daniel/cnpi/?S=ASize http://daniel/cnpi/?D=ADescription -- folder.gif http://daniel/Parent Directory18-Jul-2001 - folder.gif http://daniel/cnpi/META-INF/META-INF/ 19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/WEB-INF/WEB-INF/19-Jun-2001 - folder.gif http://daniel/cnpi/bd/bd/ 16-Jul-2001 16:52 - folder.gif http://daniel/cnpi/images/images/ 28-Jun-2001 17:48 - folder.gif http://daniel/cnpi/jsp/jsp/ 16-Jul-2001 15:42 - folder.gif http://daniel/cnpi/old/old/ 19-Jun-2001 10:27 - folder.gif http://daniel/cnpi/temp/temp/ 26-Jun-2001 17:53 - -- Apache/1.3.12 Server at daniel Port 80 How can I avoid directory listing ? Regards Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
RE: Generate Excel File
Actually that's how it was formatted. I tried what someone else suggested, using tabs instead of commas, and that worked. Thanks, Erin On Thu, 19 Jul 2001, Paul Kofon wrote: Hi, I've never done what you'd like to do. But if I remember correctly, the CSV text below will display correctly in Excel: Item,Price Doll,30 GameBoy,200 You'd have two rows and two columns (with headers Item and Price) of data. If the CSV data you're feeding Excel is not formatted like this, then chances are that you'd get wrong results - that explains why your single row of data isn't showing up correctly. Regards, Paul From: William Kaufman [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Generate Excel File Date: Wed, 18 Jul 2001 17:58:12 -0700 We've got it working exactly as you say, but only if the data is delimited with _tabs_, not _commas_. -- Bill K. -Original Message- From: Erin Lester [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 2:21 PM To: [EMAIL PROTECTED] Subject: Generate Excel File Hi, I'm trying to generate an excel file as the response returned from a servlet. I have set the response's content type to application/vnd.ms-excel and this seems to cause excel to open. The data I return is comma separated values. Once upon a time I read on a newsgroup (don't think it was this one) that someone had done the same thing and excel interpreted the data as a csv file and it displayed nicely in excel. Unfortunately excel seems to think that the entire row of comma separated values that I'm sending it is one single cell (not a row of cells which are the values between the commas). Can anyone tell me where I'm going wrong or of another way to generate an excel spreadsheet using JSP? Thanks! Erin _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: Generate Excel File
Thanks, that worked! On Wed, 18 Jul 2001, William Kaufman wrote: We've got it working exactly as you say, but only if the data is delimited with _tabs_, not _commas_. -- Bill K. -Original Message- From: Erin Lester [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 2:21 PM To: [EMAIL PROTECTED] Subject: Generate Excel File Hi, I'm trying to generate an excel file as the response returned from a servlet. I have set the response's content type to application/vnd.ms-excel and this seems to cause excel to open. The data I return is comma separated values. Once upon a time I read on a newsgroup (don't think it was this one) that someone had done the same thing and excel interpreted the data as a csv file and it displayed nicely in excel. Unfortunately excel seems to think that the entire row of comma separated values that I'm sending it is one single cell (not a row of cells which are the values between the commas). Can anyone tell me where I'm going wrong or of another way to generate an excel spreadsheet using JSP? Thanks! Erin
Using Error Pages
Hello : I can't get my 403 (forbidden) error page to show up. Instead, I get the standard 403 error message on my browser (yes, friendly error messages are turned off on IE). My 404 page works and its virtually identical to my 403 page. What am I doing wrong? I have the following entry in my ROOT/WEB-INF/web.xml : error-page error-code403/error-code location/security/status/forbidden.jsp/location /error-page error-page error-code404/error-code location/security/status/notfound.jsp/location /error-page The following messages appear in my logs : XmlMapper: new null org.apache.catalina.deploy.ErrorPage error-page ErrorPage[errorCode=0, location=null] XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( 403) XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( ) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( /security/status/forbidden.jsp) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( ) XmlMapper: Calling org.apache.catalina.core.StandardContext.addErrorPage ErrorPage[errorCode=403, location=/security/status/forbidde n.jsp] XmlMapper: pop error-page org.apache.catalina.deploy.ErrorPage: ErrorPage[errorCode=403, location=/security/status/forbidden.jsp] XmlMapper: new null org.apache.catalina.deploy.ErrorPage error-page ErrorPage[errorCode=0, location=null] XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( 404) XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( ) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( /security/status/notfound.jsp) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( ) XmlMapper: Calling org.apache.catalina.core.StandardContext.addErrorPage ErrorPage[errorCode=404, location=/security/status/notfound .jsp] XmlMapper: pop error-page org.apache.catalina.deploy.ErrorPage: ErrorPage[errorCode=404, location=/security/status/notfound.jsp] My code is purposely throwing the following : HttpServletResponse hres = (HttpServletResponse) sres; hres.sendError(HttpServletResponse.SC_FORBIDDEN); Thanks! ...Casey == Casey Bragg - Software Engineer Allegiance Telecom, Inc. Dallas, TX 469-259-2702 - [EMAIL PROTECTED] ==
Re: Cannot find my JavaBeans
On Thursday 19 July 2001 15:43 pm, you wrote: -Original Message- MyThread x = new MyThraad(); x.run(); calls the run method (containing the class that has problems being created) within the current Thread, ie no new Thread is started, This is when the problem 'goes away'. Ok, I have written threads in C,C++(not in Java) but I am missing something thats seems very basic here. so what you are saying is that run() is not really creating a new thread, but really just creating an object named 'MyThread' that happens to have a run() method? This would indicate that it is not a new thread, but just a method(run()) from another class(MyThread) that is called within the same thread. Yes. I deliberately did this to try and work out what was going on. I agree with your ClassLoader explanation. I'll look into it. But, when TC calls my ServletContextListener (this was defined as a listener within the web.xml) it *should* provide the ClassLoade for that application. My listener was part of an application and giving it a different ClassLoader is wrong. In my humble opinion :-) John
Re: help!
At 07:06 AM 7/19/2001, you wrote: Roger Ruan wrote: Dear Sir, I am using tomcat on windows 2000. I have a problem: For IIS of Windows 2000 professional version only support 10 connections,I want to replace IIS with Apache,but I do not know if Apache supports the ASP or not.Our codes are developed in JSP/servlets and ASP. Happy to help someone convert from proprietary to free software! http://freshmeat.net/projects/apacheasp/ http://freshmeat.net/projects/instantasp/ No doubt. But don't you need to get advanced server to go over 10 client connections? I thought the limit was imposed by the os, not just iis. Oh, and if you insist on using M$ as a server platform get ready to pay a regular fee and the os locked to the hardware config of the machine (whatever that means, some kind of license enforcement or something) and other great features.
RE: Generate Excel File
Actually using tabs is like running from the problem, it the data contains a tab, then it would mess things up again...you'll need to do a litle encoding for this... if the data is like.. Col1Col2col3 data1 data2 data,3 data4 data,5 data6 data,7 data8 data9 then you output as col1,col2,col3 data1,data2,data,3 data4,data,5,data6 data,7,data8,data9 note here that these should be no space between the deliminator comma and the enclosing double-quote. If there is one, excel will presume the data not encoded and treat the enclosing double quotes as part of the element breaking on the first comma it hits...this is one reason i donot use tabs, you could as well switch to tabs instead of commas as long as you use the double quotes, but tabs make it visually harder to notice if spaces were pumped after the deliminator and before the enclosing dbl-quotes... i use the following code to accomplish this... public class CSVEncoder{ private static final char DOUBLE_QUOTE = ''; private static final String COMMA_DOUBLE_QUOTE = ,\; /** * This method encodes a String array into a row for a CSV file * ex: * if you were to pass in the following array * String[] values = {data1, data\2, data3}; * * using a syntax like.. * String encodedValus = CSVEncoder.encode(values); * * you'd get... * \data1\,\data\\2\,\data,3\ * * appearing as... * data1,data2,data,3 * in the data stream **/ public static String encode(String[] columns){ if(columns.length 1) return null; StringBuffer encoded = new StringBuffer(); // encode the firstElement encoded.append(DOUBLE_QUOTE); encoded.append(encode(columns[0])); encoded.append(DOUBLE_QUOTE); //encode the rest of'em int maxLoop = columns.length; for (int loop = 1; loop maxLoop; loop++){ encoded.append(COMMA_DOUBLE_QUOTE); encoded.append(encode(columns[loop])); encoded.append(DOUBLE_QUOTE); } return encoded.toString(); } /** * encodes a given string into a CSV safe format * ex: * if you were to pass a String... * String value = 6\3\', 190.5 cm; //63', 190.5 cm * * using a syntax like... * String encodedValue = CSVEncoder.encode(value); * * you'd get... * 63', 190.5 cm * * which would look like... * 63', 190.5 cm * in the data stream **/ public static String encode(String s){ StringBuffer encoded = new StringBuffer(); int maxLoop = s.length(); for(int loop = 0; loop maxLoop; loop++){ char theChar = encoded.charAt(loop); //if the current char is a dbl-quote, stuff another dbl-quote into the buffer if(theChar == DOUBLE_QUOTE) encoded.append(DOUBLE_QUOTE); encoded.append(theChar); } return encoded.toString(); } } --- Erin Lester [EMAIL PROTECTED] wrote: Actually that's how it was formatted. I tried what someone else suggested, using tabs instead of commas, and that worked. Thanks, Erin On Thu, 19 Jul 2001, Paul Kofon wrote: Hi, I've never done what you'd like to do. But if I remember correctly, the CSV text below will display correctly in Excel: Item,Price Doll,30 GameBoy,200 You'd have two rows and two columns (with headers Item and Price) of data. If the CSV data you're feeding Excel is not formatted like this, then chances are that you'd get wrong results - that explains why your single row of data isn't showing up correctly. Regards, Paul From: William Kaufman [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Generate Excel File Date: Wed, 18 Jul 2001 17:58:12 -0700 We've got it working exactly as you say, but only if the data is delimited with _tabs_, not _commas_. -- Bill K. -Original Message- From: Erin Lester [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 2:21 PM To: [EMAIL PROTECTED] Subject: Generate Excel File Hi, I'm trying to generate an excel file as the response returned from a servlet. I have set the response's content type to application/vnd.ms-excel and this seems to cause excel to open. The data
Re: help!
Tim O'Neil wrote: At 07:06 AM 7/19/2001, you wrote: Roger Ruan wrote: Dear Sir, I am using tomcat on windows 2000. I have a problem: For IIS of Windows 2000 professional version only support 10 connections,I want to replace IIS with Apache,but I do not know if Apache supports the ASP or not.Our codes are developed in JSP/servlets and ASP. Happy to help someone convert from proprietary to free software! http://freshmeat.net/projects/apacheasp/ http://freshmeat.net/projects/instantasp/ No doubt. But don't you need to get advanced server to go over 10 client connections? I thought the limit was imposed by the os, not just iis. Oh, and if you insist on using M$ as a server platform get ready to pay a regular fee and the os locked to the hardware config of the machine (whatever that means, some kind of license enforcement or something) and other great features. Ah, didn't know that but should have guessed. My last M$ experience was with NT 4.0, and NT Workstation did have the 10 client connection limit, which is why there are so many Windows 98 based webservers running Apache. Roger, Tim is right, switching IIS with Apache won't fix the connection limit problem. I recommend you switch to Linux, which runs Java and Tomcat just swell. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
RE: Cannot find my JavaBeans
Title: RE: Cannot find my JavaBeans -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 11:54 AM To: [EMAIL PROTECTED] Subject: Re: Cannot find my JavaBeans On Thursday 19 July 2001 15:43 pm, you wrote: -Original Message- MyThread x = new MyThraad(); x.run(); calls the run method (containing the class that has problems being created) within the current Thread, ie no new Thread is started, This is when the problem 'goes away'. Ok, I have written threads in C,C++(not in Java) but I am missing something thats seems very basic here. so what you are saying is that run() is not really creating a new thread, but really just creating an object named 'MyThread' that happens to have a run() method? This would indicate that it is not a new thread, but just a method(run()) from another class(MyThread) that is called within the same thread. Yes. I deliberately did this to try and work out what was going on. Good! I am not going crazy :) I agree with your ClassLoader explanation. I'll look into it. But, when TC calls my ServletContextListener (this was defined as a listener within the web.xml) it *should* provide the ClassLoade for that application. My listener was part of an application and giving it a different ClassLoader is wrong. In my humble opinion :-) I agree since you are most likely doing context specific things in SCL that you would want access to the classes for the context. I would probably want the same if I were using it. That is what one of the developers needs to answer - if this is the intended behavior or a bug. You could probably ask the tomcat-dev list or file a bug report. Then you can post your findings here for our reference ;) John Charlie
looking for a working isapi_redirect.dll file
I'm trying to finish setting up the proxy os TOMCAT / IIS 5 / and Win2K prof. I can't get the filter turn green and guess I have the wrong version of the isapi_redirect.dll... Curtis Dougherty Deployment Lead / QA Engineer BusinessThreads, Inc. We make the software that makes your business different. 710 Congress Avenue Austin, TX 78701 P: 512.480.9805 x118 F: 512.480.9153 www.businessthreads.com
Re: looking for a working isapi_redirect.dll file
At 11:27 07/19/2001 -0500, Curtis Dougherty wrote: I'm trying to finish setting up the proxy os TOMCAT / IIS 5 / and Win2K prof. I can't get the filter turn green and guess I have the wrong version of the isapi_redirect.dll... it is likely that it works but you don't have the registry edits in properlythey are case sensitive and very specific (perhaps a little stroking of the cpu is in order (grin)). also, sometimes netscape does not download dlls properly, so you should try to use ftp if the reg edits are fine. Curtis Dougherty Deployment Lead / QA Engineer BusinessThreads, Inc. We make the software that makes your business different. 710 Congress Avenue Austin, TX 78701 P: 512.480.9805 x118 F: 512.480.9153 www.businessthreads.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
workir
I'm setup apache + tomcat with mod_jk... all working fine... but I'm is workdir for VirtualHost is /var/www/www.domain.com and workdir for VirtualHost in tomcat is /usr/local/java/webapps/domain/dist I'm have use /var/www/www.domain.com for file *.jsp and not /usr/local/java/webapps/domain/dist I'm wanna setup once directory for my *.html and *.jsp files.
Context Admin View All Contexts 500 Error
I keep getting a URL contains encoded special chars 500 Error whenever I try to View All Context on the Tomcat admin page. Both Add Context and Remove Context work fine. I'm having this same problem on several operating systems: Win98, WinNT, Linux, and Solaris 7. All are running Apache 1.3.20 and Tomcat 3.2.2. All report the error on line 197, of the java servlet created from the contextAdmin.jsp file. In looking through the java code, I don't see anything that would be involved with processing or creating a URL, so I'm confused I've looked through the tomcat-user archives and there have been 13 messages saying they were having this problem. The last one was July 10, 2001. None of the messages had a solution. Has anyone experienced this problem and found a solution? The java code involved, with comments and non-involved lines removed, is shown below. I don't see anything in this code which would cause the exception caught at line 194 and sequencing on to line 197. 119 if (param.equals(View All Contexts)) { 120 Enumeration enum = contextAdmin.getContextNames(); 121 while (enum.hasMoreElements()) { 122 String name = (String)enum.nextElement(); 125out.write(\r\n ul\r\n lifont color=\#CC\h2CONTEXT NAME: ); 128out.print( name ); 131out.write(\r\n /h2/font\r\n); 134 135 String[] contextInfoArray = contextAdmin.getContextInfo(name); 136 for (int i=0; icontextInfoArray.length; i++) { 139out.write(\r\n dddt ); 142out.print( contextInfoArray[i] ); 145out.write(\r\n); 148 149 } 152out.write(\r\n /ul\r\n); 155 156 } 157 } 158 else if (param.equals(Add Context)) { o o o 186} 187else out.println(ERROR: Null Request Parameter Value); 188 191 out.write(\r\n\r\nhr\r\n\r\n/body\r\n/font\r\n/html\r\n); 193 194 } catch (Exception ex) { 195 if (out != null out.getBufferSize() != 0) 196out.clearBuffer(); 197 if (pageContext != null) pageContext.handlePageException(ex); 198 } finally { Thanks for any enlightenment. joe
RE: looking for a working isapi_redirect.dll file
cool...I'll try that... Is there a difference with Tomcat4 isapi_redirect.dll? -Original Message- From: time out [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 11:38 AM To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' Subject: Re: looking for a working isapi_redirect.dll file At 11:27 07/19/2001 -0500, Curtis Dougherty wrote: I'm trying to finish setting up the proxy os TOMCAT / IIS 5 / and Win2K prof. I can't get the filter turn green and guess I have the wrong version of the isapi_redirect.dll... it is likely that it works but you don't have the registry edits in properlythey are case sensitive and very specific (perhaps a little stroking of the cpu is in order (grin)). also, sometimes netscape does not download dlls properly, so you should try to use ftp if the reg edits are fine. Curtis Dougherty Deployment Lead / QA Engineer BusinessThreads, Inc. We make the software that makes your business different. 710 Congress Avenue Austin, TX 78701 P: 512.480.9805 x118 F: 512.480.9153 www.businessthreads.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: looking for a working isapi_redirect.dll file
At 11:27 07/19/2001 -0500, Curtis Dougherty wrote: I'm trying to finish setting up the proxy os TOMCAT / IIS 5 / and Win2K prof. I can't get the filter turn green and guess I have the wrong version of the isapi_redirect.dll... it is likely that it works but you don't have the registry edits in properlythey are case sensitive and very specific (perhaps a little stroking of the cpu is in order (grin)). also, sometimes netscape does not download dlls properly, so you should try to use ftp if the reg edits are fine. Curtis Dougherty Deployment Lead / QA Engineer BusinessThreads, Inc. We make the software that makes your business different. 710 Congress Avenue Austin, TX 78701 P: 512.480.9805 x118 F: 512.480.9153 www.businessthreads.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
distribution
In the binary distribution folders, there are several files. I know I need jakarta-tomcat-3.2.3.zip but what is jakarta-servletapi-3.2.3.zip used for? Do I need this file in conjunction with Tomcat? Is it for JSP? Is the usage of this file documented? Thanks. Craig
Connector className=
Hi!! Wich configuration is better for MaxtremeJava in Server.xml Tomcat configuration file? Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8080/ OR Connector className=org.apache.tomcat.service.SimpleTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8080/ Now, in definition handler to port 8080 Can I use others connectors like Ajp12 or Ajp13? Regards Mario _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Is jsp:xxx Reserved?
I am rather new to JSP. However, I note that many standard jsp commands are XML elements that begin with (are in the namespace?) jsp:. What I have found is that Tomcat seems to not reserve this prefix (namespace?) for use by the jsp engine. For example: I can delcare a taglib and give it the prefix jsp and get no complaints. I am not sure what will happen but it seems confusing at best, tramatic at worst. Also, if I screw up and enter jsp:incude instead of jsp:include, Tomcat does not complain or find any error. It simply takes the data and places it on the servlets output. This seems to be little help either. I have looked at the current JSP spec and find nothing on this one way or the other. It would seem a minor imposition to require that the prefix jsp be reserved and that the allowed commands within that prefix to be enforced by Tomcat. Tomcat complains when I screw up on the use of an explicitly declared tag library element. It complains if I forget to provide a required attribute to either a valid jsp:xxx command or a declared tag library command. I am wrong to expect the behaviors that I do not see? Thanks, David
Unable to start tomcat server
Kindly explain to me how to configure java_home or tomcat_home property.Because everytime ,I go tostart the tomcat webserver 3.2.2 on my windows 98 system click on start up.bat there is a message"you must set JAVA_HOME to point at your Java Development Kit Installation.Kindly oblige.
loading a property file from a standard java class
Hi, Batsheva, I found your email about calling a config file from bean, did you find out which directory the conf file (property file) should be in Tomcat? I am loading a properties file from a standard java class that was called by a servlet, but get the system cannot find the file specified error message. I tried to put it in different directories, but fail to get it to work. can you help? Monica
RE: Unable to start tomcat server
Put the following lines in your autoexec.bat file set JAVA_HOME=c:\jdk1.3.1 set TOMCAT_HOME=C:\tomcat change the paths to fit your system. Cory -Original Message-From: Manish Pradhan [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 19, 2001 1:56 PMTo: [EMAIL PROTECTED]Subject: Unable to start tomcat server Kindly explain to me how to configure java_home or tomcat_home property.Because everytime ,I go tostart the tomcat webserver 3.2.2 on my windows 98 system click on start up.bat there is a message"you must set JAVA_HOME to point at your Java Development Kit Installation.Kindly oblige.
RE: Unable to start tomcat server
On your desktop, right click on "My Computer" select "Properties" under the environment variable settings, create a new variable called JAVA_HOME and have it point to your java installation this doc explains it http://sourceforge.net/docman/display_doc.php?docid=5651group_id=26042 Filip ~Namaste - I bow to the divine in you~Filip HanikSoftware Architect[EMAIL PROTECTED]www.filip.net -Original Message-From: Manish Pradhan [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 19, 2001 10:56 AMTo: [EMAIL PROTECTED]Subject: Unable to start tomcat server Kindly explain to me how to configure java_home or tomcat_home property.Because everytime ,I go tostart the tomcat webserver 3.2.2 on my windows 98 system click on start up.bat there is a message"you must set JAVA_HOME to point at your Java Development Kit Installation.Kindly oblige.
RE: loading a property file from a standard java class
Try put them into WEB-INF/classes, it works for me. jerry -Original Message- From: Wang, Monica [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:55 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: loading a property file from a standard java class Hi, Batsheva, I found your email about calling a config file from bean, did you find out which directory the conf file (property file) should be in Tomcat? I am loading a properties file from a standard java class that was called by a servlet, but get the system cannot find the file specified error message. I tried to put it in different directories, but fail to get it to work. can you help? Monica
Will TOMCAT 4(beta6) work with IIS5 and Win2K
If yes...where do I get the isapi_redirect.dll necessary for the ISAPI filter I've checked and rechecked the REG file - no spaces...same capitalization - et al... so I'm hoping that I'm just stupid and not Thick Headed This seems a lot more painful than it should be. Curtis Dougherty *Computers make very fast, accurate, mistakes. *
Re: distribution
Knoll, Craig wrote: In the binary distribution folders, there are several files. I know I need jakarta-tomcat-3.2.3.zip but what is jakarta-servletapi-3.2.3.zip used for? Do I need this file in conjunction with Tomcat? Is it for JSP? No. Is the usage of this file documented? After you unarchive this file, take a look at jakarta-servletapi-3.2.3/docs/index.html. I believe this is the source for Tomcat servlet.jar. Tomcat is an application server for the methods/functions contained in the servlet.jar. Um, can anyone else come up with a better explanation? Like St. Augustine, I know what it is until you ask me to explain it. :) -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Connector
Hi!! Which configuration is better for Tomcat in Server.xml configuration file? Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8080/ OR Connector className=org.apache.tomcat.service.SimpleTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8080/ Now, in definition handler to port 8080 Can I use others connectors like Ajp12 or Ajp13? Regards Mario _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: Tomcat 4.0b5/Apache/mod_webapps/JSP - NO GO!
Jeff: Thanks for replying. We had stumbled onto them and incorporated their stuff into our attempt to get it working, to no avail. We are running on a stock Redhat 7.1 kernel. If you are running anything else, perhaps there is an issue with the pthread lib? Redhat 7.0 had lots of lib issues. I forwarded your message to the guy who built mod_webapps, and asked him to tell you how he built it. Until then, if you think our mod_webapp.so might get you over a hump - and you're on the same platform! - I'll email it to you just to see if it works. Regards, Mark Hi, I don't know if you have came across this or not but in the tomcat directory src/connectors/doc there is a warp.html page, as well as an apache1.3.html that may help. So how did u get the mod_webapps.so library to work. Whenever, I build and try to run it I get a pthread_sigmask unresolved symbol error? I'd appreciate any help Jeff On Thursday 19 July 2001 05:41, you wrote: Help! I didn't get any response to my first query, and am running into a solid wall, so I'll try again... Is ANYBODY successfully using Tomcat 4.0b5 with Apache and mod_webapps?? If so, can you send me your httpd.conf and server.xml (and anything else that might be useful) ?? I'd be happy just to get the examples working through Apache!! We can't get JSP's to work thorough a Warp connector to Apache. They work fine through port 8080 and Catalina's built-in web server, but not through Apache. I can't find any online help for getting mod_webapps to work, other than comments in the code. The first sections of the Tomcat 4.x documentation on Installation are BLANK. By hook or by crook, we have gotten Apache and Tomcat running with mod_webapps and are able to serve static content through the Tomcat default servlet, but JSP's DON'T WORK!! When a browser requests a JSP page, the java source is built and compiled (the files built are identical to those built when the page is requested through port 8080) - but Apache hands nothing back to the web browser - Netscape displays a Document contains no data dialog. Any help or ideas would be appreciated. Apache and Tomcat log files show no error messages or unusual content. Thanks, Mark -- Mark Dzmura Digital Mission LLC -- Mark Dzmura Digital Mission LLC
RE: distribution
It's servlet api docs. Or at least that's what my cursory look said it was. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: John Hebert [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 11:55 AM To: [EMAIL PROTECTED] Subject: Re: distribution Knoll, Craig wrote: In the binary distribution folders, there are several files. I know I need jakarta-tomcat-3.2.3.zip but what is jakarta-servletapi-3.2.3.zip used for? Do I need this file in conjunction with Tomcat? Is it for JSP? No. Is the usage of this file documented? After you unarchive this file, take a look at jakarta-servletapi-3.2.3/docs/index.html. I believe this is the source for Tomcat servlet.jar. Tomcat is an application server for the methods/functions contained in the servlet.jar. Um, can anyone else come up with a better explanation? Like St. Augustine, I know what it is until you ask me to explain it. :) -- John Alex Hebert [EMAIL PROTECTED] System Engineer
AW: Class reloading
AFAIK that is only valid for JSP's and servlets not for beans. (How I love good old jserv (8( -Ursprüngliche Nachricht- Von: Cory Powers [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 19. Juli 2001 15:09 An: '[EMAIL PROTECTED]' Betreff: RE: Class reloading I thought that was what the realoadable setting in server.xml was supposed to do. Of course, I've never got it to work... Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=true /Context -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 8:37 AM To: [EMAIL PROTECTED] Subject: Re: Class reloading On Thursday 19 July 2001 12:50 pm, you wrote: does anyone know how this is in tomcat 4 ? Oh, sorry. I was referring to Tomcat 4. It's all I use. I can't live without the newer JSP/Servlet features. thanx -r -Original Message- From: Paul Foxton [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Class reloading AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
RE: How can I logoff
Thank you Chris that works. Now I need to sort out page navigation... Neil -Original Message- From: chris brown [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 10:35 To: [EMAIL PROTECTED] Subject: Re: How can I logoff Try session.invalidate() then send the HTTP status code 401 Unauthorized session.invalidate(); response.sendError(response.SC_UNAUTHORIZED, Logged out); Might get you going in the right direction. -Chris - Original Message - From: Blue, Neil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 11:15 AM Subject: RE: How can I logoff Thank you Kaneda, It doesn't seem to work. Cheers Neil -Original Message- From: Kaneda K [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 09:42 To: [EMAIL PROTECTED] Subject: Re: How can I logoff At 15:57 18/07/2001 +0100, you wrote: Hello, I am using the JDBC sercurity on tomcat 3.3. I am able to logon (via basic authentication) to view a secured .jsp page. however I can not see how a user can logoff again so that a new user can logon. Please could someone point me in the right direction. Cheers Neil The fonction to log of is %session.invalidate();% but I am not sure that It works with basic authentification. In fact, I think is does not works. but check any way
build error
Hi, I'm getting these errors although I added the servlets jar as a java ext. build-main: [javac] Compiling 2 source files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/build/classes [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/JspParseEventListener.java:79: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/TagLibraryInfoImpl.java:92: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] 2 errors BUILD FAILED Any ideas ? Thanks
Using Error Pages? : Still stuck... More info...
I left some info out of my question... (BTW - the mailing list archive is filled with this question over and over with few solutions) My ROOT context has a valve entry in it. The valve is running the sendError. The question : Why does my custom 404 error page work, but my nearly identical 403 page does not work (I get the standard 403 message instead)? From server.xml : Context path= docBase=ROOT debug=999 Valve className=tman.ManagerValve/ /Context From tman.ManagerValve.invoke() (tman.MAnagerValve extends org.apache.catalina.valves.ValveBase) : // to deny if ((requestURI!=null)(requestURI.indexOf(/deny)=0)) { ServletResponse sres = response.getResponse(); if (sres instanceof HttpServletResponse) { HttpServletResponse hres = (HttpServletResponse) sres; hres.sendError(HttpServletResponse.SC_FORBIDDEN); log(process end : + HttpServletResponse.SC_FORBIDDEN); return; } } // to allow context.invokeNext(request, response); log(process end); return; == Casey Bragg - Software Engineer Allegiance Telecom, Inc. Dallas, TX 469-259-2702 - [EMAIL PROTECTED] == -Original Message- From: Bragg, Casey [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: Using Error Pages Hello : I can't get my 403 (forbidden) error page to show up. Instead, I get the standard 403 error message on my browser (yes, friendly error messages are turned off on IE). My 404 page works and its virtually identical to my 403 page. What am I doing wrong? I have the following entry in my ROOT/WEB-INF/web.xml : error-page error-code403/error-code location/security/status/forbidden.jsp/location /error-page error-page error-code404/error-code location/security/status/notfound.jsp/location /error-page The following messages appear in my logs : XmlMapper: new null org.apache.catalina.deploy.ErrorPage error-page ErrorPage[errorCode=0, location=null] XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( 403) XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( ) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( /security/status/forbidden.jsp) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( ) XmlMapper: Calling org.apache.catalina.core.StandardContext.addErrorPage ErrorPage[errorCode=403, location=/security/status/forbidde n.jsp] XmlMapper: pop error-page org.apache.catalina.deploy.ErrorPage: ErrorPage[errorCode=403, location=/security/status/forbidden.jsp] XmlMapper: new null org.apache.catalina.deploy.ErrorPage error-page ErrorPage[errorCode=0, location=null] XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( 404) XmlMapper: org.apache.catalina.deploy.ErrorPage.setErrorCode( ) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( /security/status/notfound.jsp) XmlMapper: org.apache.catalina.deploy.ErrorPage.setLocation( ) XmlMapper: Calling org.apache.catalina.core.StandardContext.addErrorPage ErrorPage[errorCode=404, location=/security/status/notfound .jsp] XmlMapper: pop error-page org.apache.catalina.deploy.ErrorPage: ErrorPage[errorCode=404, location=/security/status/notfound.jsp] My code is purposely throwing the following : HttpServletResponse hres = (HttpServletResponse) sres; hres.sendError(HttpServletResponse.SC_FORBIDDEN); Thanks! ...Casey == Casey Bragg - Software Engineer Allegiance Telecom, Inc. Dallas, TX 469-259-2702 - [EMAIL PROTECTED] ==
Re: Cannot find my JavaBeans
To start a new thread, call x.start(); - in basic terms, this will mean the x.run() method (or runnable.run()) is called, but you can continue doing whatever it was you were doing without waiting for the run() method to end. that's the guts of how threads work. cheers dim On Wed, 18 Jul 2001, John Baker wrote: I don't know why it is different for run() than for start() - I haven't used either, so I don't understand what the difference in the two is in the Thread class(doesn't start() call run()?) What I meant by this is just doing: MyThread x = new MyThraad(); x.run(); calls the run method (containing the class that has problems being created) within the current Thread, ie no new Thread is started, This is when the problem 'goes away'. When start is called, the Thread starts (Obviously). This is when the problem appears for me. hope this helps, I'll read tomorrow, digest, and attempt to understand :-) Still, this must be a bug... people will want to use their own Threads within a web application. Charlie -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 12:31 PM To: [EMAIL PROTECTED] Subject: Re: Cannot find my JavaBeans On Wednesday 18 July 2001 17:15 pm, you wrote: This seems to be a bug in Tomcat. Shouldn't someone who actually knows how it all works take a look? John Yep. Even the cocoon mailing list is full with entries related to tomcat and its classpath :-). Under some misterious circumstances the context/WEB-INF/lib Classpath disappears. Well I managed to make it a very non mysterious circumstance. I just started a Thread from an object that was a ServletContextListener. When I called start it lost classes. When I called run it worked fine. I had no problems replicating it. What is the cocoon mailing list? -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Re: Tomcat: subject
Hi Jerry! Li, Jerry wrote: We have been flooded by emails from the mailing lists of CVS, apache, tomcat, and so on. All of them come into our inbox, it is very tough to separate them. If you send emails with Tomcat in the subject, we could easily group them and redirect them into a dedicated folder. For example, Windows user may create a rule in outlook to redirect all emails with Tomcat in the subject to a folder called Tomcat. Instead of all of us taking the effort, we might ask the list owner to add '[Tomcat]' to the subject. On second thought, instead of all getting messages with '[Tomcat]' in the subject, you might set up filters based in the sender of a message. As a Tomcat user, you have become part of an Open Source community. That means that you're ready to give at least part of what you take -- since money is not the issue here (surprise!), it's effort. If you have a problem, try to solve it yourself -- and then help others with the same problem. Un saludo, Alex.
Re: Class reloading
In fact, Tomcat does support automatic reloading of classes. When you declare a context, add a 'reloadable=true' attribute: Context path=/admin docBase=webapps/admin reloadable=true trusted=false See apps-admin.xml or server.xml for an example. In Tomcat 3.2.1, this feature did not always work well, especially with JSPs; in Tomcat 3.3 I cannot remember if it was enabled yet. Un saludo, Alex. Paul Foxton wrote: AFAIK tomcat doesn't support automatic reloading of classes. You do have to restart. Paul -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 11:36 To: [EMAIL PROTECTED] Subject: Class reloading Hello. If I write a class and use it in a jsp page, then change the class, I have to restart tomcat. Is there any way I can get around this, ie tell tomcat to reload the class (and forget about the cached loaded copy I expect it has). John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Re: SSL Apache Tomcat (NameBased VirtualHosts)
It dows not function correct. So I'll have to start one Apache instance with the httpd.conf file (port80) and another with the httpd_ssl.conf file (port443 - made by myself). Just as it is written in Professional Apache from Wrox. It is apparently the one and only way to solve the problems with NameBased VirtualHost and mod_ssl. I have tried to use the apache, apachectl command, and also the /ect/rc.d/init.d/httpd start command with -f filename, but it won't start with the SSL settings. The apache and apachectl won't work at all. Any solutions. - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 3:11 PM Subject: AW: SSL Apache Tomcat (NameBased VirtualHosts) 1. this is a bit off topic for questions like that, it's better go to the apache list 2. you don't have to setup 2 apaches: just define two virtual hosts in httpd.conf: NameVirtualHost 111.22.33.44 VirtualHost 111.22.33.44:80 ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost 111.22.33.44:443 ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost 111.22.33.44:80 ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost VirtualHost 111.22.33.44:443 ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost see: http://httpd.apache.org/docs/vhosts/name-based.html 3. To start apache with a different config file use apache -f file -Ursprüngliche Nachricht- Von: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 19. Juli 2001 14:32 An: [EMAIL PROTECTED] Betreff: SSL Apache Tomcat (NameBased VirtualHosts) I want to use SSL with my Apache Tomcat (mod_jk) - NameBased VirtualHosts. I have read that I then should make to configuration files for the Apache Web Server. One for communicating with port 80 (without SSL) and one for communicating with port 443 (with SSL). Finally I shall start two instances of the Apache Web Server - one that handles http requests and another that handles https requests. 1.) Normally the httpd.conf file is placed in /etc/httpd/conf/httpd.conf. Where shall I place the new SSL configuration file? 2.) How do I start two instances of the Apache Web Server - that uses their own configuration files? Thanks Lars Nielsen Lind
Re: distribution
On Thu, 19 Jul 2001, Knoll, Craig wrote: In the binary distribution folders, there are several files. I know I need jakarta-tomcat-3.2.3.zip but what is jakarta-servletapi-3.2.3.zip used for? Do I need this file in conjunction with Tomcat? Is it for JSP? Is the usage of this file documented? The jakarta-servletapi-3.2.3 zip contains the sources and Javadocs for the servlet API classes. You don't need it unless you want them (or unless you are building Tomcat from sources), because the 3.2.3 binary distribution includes the servlet.jar file built from these classes. Thanks. Craig Craig McClanahan
How to forward with new request/query string?
I was wondering how you go about transferring control from a servlet to another page (in this case a jsp page) before committing the response. I need to send request variables to this new page. I've tried using a request dispatcher, but I believe that this just sends the request that the servlet got and not a new one with the querystring values (which are appended to the url I want to forward to) in it. Can someone tell me how to do this? Also, what's the difference between sendRedirects, dispatcher forwards, etc. ? and is there any way to transfer control to another page and have the user's location bar reflect the address of the new page? Any help would be appreciated! - Erin
What does this exception mean? Tomcat is not supposed to compile Java file, right?
org.apache.jasper.JasperException: Unable to compile class for JSPC:\tomcat\common\lib\apache_soap.jar(org/apache/soap/server/Deploymen tDescriptor.java): Public class org.apache.soap.server.DeploymentDescriptor must be defined in a file called DeploymentDescriptor.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/Constants.java): Public class org.apache.soap.Constants must be defined in a file called Constants.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/server/ServiceManag er.java): Public class org.apache.soap.server.ServiceManager must be defined in a file called ServiceManager.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/rpc/SOAPContext.jav a): Public class org.apache.soap.rpc.SOAPContext must be defined in a file called SOAPContext.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/SOAPException.java) : Public class org.apache.soap.SOAPException must be defined in a file called SOAPException.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/server/http/ServerH TTPUtils.java): Public class org.apache.soap.server.http.ServerHTTPUtils must be defined in a file called ServerHTTPUtils.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/transport/EnvelopeE ditor.java): Public interface org.apache.soap.transport.EnvelopeEditor must be defined in a file called EnvelopeEditor.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/util/xml/QName.java ): Public class org.apache.soap.util.xml.QName must be defined in a file called QName.java. C:\tomcat\common\lib\apache_soap.jar(org/apache/soap/server/TypeMapping. java): Public class org.apache.soap.server.TypeMapping must be defined in a file called TypeMapping.java. 9 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:501) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spServlet.java:175) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:187) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:191) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:255) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:217 5) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:162) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava:827) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 904) at java.lang.Thread.run(Thread.java:484)