RE: tomcat 3.2 b8
YOU HAVE TO MENTION it in httpd.conf(Apache), can be done away with at tomcat level.. in tomcat just map the contexts. You need to have different web.xml in each of your application root(Web-INF) IF you are starting two different tomcat's then you obvously will be needing to different server.xml. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 2:34 AM To: [EMAIL PROTECTED] Subject: tomcat 3.2 b8 i have install the tomcat 3.2 b8 in my linux with the apache if i want to use virtual domains, where must i define them? in the apache or in the concat conf files? or in both? i each virtual domain i must tu put a server.xml and a web.xml file? in this 3.2 b8 version for each viortual domain i must to run a JVM? thanks Carlos
RE: mapping zone
You can just do it with web.xml . add something like this... in your web.xml. Shuklx servlet-mapping servlet-name AccessServlet /servlet-name url-pattern /myAppl/* /url-pattern /servlet-mapping -Original Message- From: Kaspars Truhins [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 4:52 AM To: [EMAIL PROTECTED] Subject: mapping zone I would like to make some changes that to invoke a servlet: "AccessServlet" in an application "myAppl" i would simply type: http://myhost.com/myAppl/AccessServlet rather than default tomcat settings: http://myhost.com/myAppl/servlet/AccessServlet to do that would i need to do? As far as i understand i would need to make changes in tomcat.conf and replace ApJServMount /myAppl/servlet myAppl ApJServMount /myAppl myAppl Do i need to make changes in web.xml where invoker is mapped to /servlet/* ??? any suggestions how to achieve it appretiated, kt __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
RE: Shutdown problem
Even i get problems with shutting down tomcat both on Linux and in Windows NT machine, you can just kill the damn window. :-) -Original Message-From: Tomas Marek [mailto:[EMAIL PROTECTED]]Sent: Sunday, November 26, 2000 12:28 PMTo: TomcatSubject: Shutdown problemGuys, I start Tomcat 3.1 perfectly and when I run Shutdown.bat script, the Java window is still on with the following content: Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using classpath: C:\Tomcat\classes;C:\Tomcat\lib\webserver.jar Stop tomcat Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/DocumentH andler at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:180) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Looks like something wrong with configuration of JVM? Why still "Out of environment space if I've set the Initial environment memory property to recommended 2816? Second question is why I can't run .jsp file in browser when offline? (W98, T/C 3.1 as standalone) I've searched the mailinglist archive and several FAQs on the topic but found nothing helpful. Did anybody encounter with same problem? Any suggestions will be appreciated. Tom.
Re: mod_jk
i am using with apache what i must to include in the httpd.conf? the mod_jk.conf file? the tomcat-apache.conf file? please say me or send a example thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 7:31 AM Subject: RE: mod_jk :-) You do not need md_jk if you are using only tomcat. If you are using apache then include it in your apache's httpd.conf. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 1:48 AM To: [EMAIL PROTECTED] Subject: mod_jk i have install thew tomcat 3.2 b8 in linux with the mod_jk.so file what must i do? i run the tomcat and the html pages runs but the jsp pages no. the system says me that there is not that page. What is the problem? the mod_jk? how can i run it? thanks Carlos
RE: mod_jk
mod_jk should be included, go though it to add your changes. Shuklix -Original Message- From: POLIKI [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 3:43 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk i am using with apache what i must to include in the httpd.conf? the mod_jk.conf file? the tomcat-apache.conf file? please say me or send a example thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 7:31 AM Subject: RE: mod_jk :-) You do not need md_jk if you are using only tomcat. If you are using apache then include it in your apache's httpd.conf. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 1:48 AM To: [EMAIL PROTECTED] Subject: mod_jk i have install thew tomcat 3.2 b8 in linux with the mod_jk.so file what must i do? i run the tomcat and the html pages runs but the jsp pages no. the system says me that there is not that page. What is the problem? the mod_jk? how can i run it? thanks Carlos
Re: Shutdown problem
It might seem unbelievable but I fixed it up myself by just setting JAVA_HOME in autoexec.bat with full path incl. drive name (C:\jdk1.3). What u reckon? Saurabh Shukla wrote: Even i get problems with shutting down tomcat both on Linux and in Windows NT machine, you can just kill the damn window. :-) -Original Message- From: Tomas Marek [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 12:28 PM To: Tomcat Subject: Shutdown problem Guys, I start Tomcat 3.1 perfectly and when I run Shutdown.bat script, the Java window is still on with the following content: Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using classpath: C:\Tomcat\classes;C:\Tomcat\lib\webserver.jar Stop tomcat Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/DocumentH andler at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:180) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Looks like something wrong with configuration of JVM? Why still "Out of environment space if I've set the Initial environment memory property to recommended 2816? Second question is why I can't run .jsp file in browser when offline? (W98, T/C 3.1 as standalone) I've searched the mailinglist archive and several FAQs on the topic but found nothing helpful. Did anybody encounter with same problem? Any suggestions will be appreciated. Tom.
RE: mod_jk
The file you want to incude in your httpd.conf is actually path-to-tomcat/conf/mod_jk.conf-auto Make sure that you have mentioned all your contexts in your server.xml file and that you startup tomcat first (since the above file gets generated each time you startup tomcat). If that file (mod_jk.conf-auto) won't work exactly as is for you, then go ahead and make your changes but remember to save the file to a different name (otherwise your changes will be overwritten the next time you start up tomcat!), and don't forget to change the reference in your httpd.conf file HTH, Mike At 11/26/2000 03:54 PM +0530, you wrote: mod_jk should be included, go though it to add your changes. Shuklix -Original Message- From: POLIKI [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 3:43 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk i am using with apache what i must to include in the httpd.conf? the mod_jk.conf file? the tomcat-apache.conf file? please say me or send a example thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 7:31 AM Subject: RE: mod_jk :-) You do not need md_jk if you are using only tomcat. If you are using apache then include it in your apache's httpd.conf. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 1:48 AM To: [EMAIL PROTECTED] Subject: mod_jk i have install thew tomcat 3.2 b8 in linux with the mod_jk.so file what must i do? i run the tomcat and the html pages runs but the jsp pages no. the system says me that there is not that page. What is the problem? the mod_jk? how can i run it? thanks Carlos
Re: no subject
I would use 3.2 for virtual hosting and from the mail I've seen on this list is stable enough. Rick [EMAIL PROTECTED] wrote: Can Virtual host be used under Tomcat 3.1? If not, how stable is Tomcat 3.2 in the opinions of those whom have actual used it? I know vhost can be used on 3.2 but it is still a beta version. Thank You Frank
RE: Shutdown problem
It is still the environment problem. The 2816 setting is just an estimate, since it will be affected by other environment variable you have set, what paths you choose to put things in etc. Increase that number by a lot (be absurd in your first test) and try to shutdown.You should not see the problem - assuming you don't just bing down the amount of environment memory until the problem reappears and set it (finally) to be above that level. -Original Message-From: Tomas Marek [mailto:[EMAIL PROTECTED]]Sent: Sunday, November 26, 2000 07:13 AMTo: [EMAIL PROTECTED]Subject: Re: Shutdown problemIt might seem unbelievable but I fixed it up myself by just setting JAVA_HOME in autoexec.bat with full path incl. drive name (C:\jdk1.3). What u reckon? Saurabh Shukla wrote: Even i get problems with shutting down tomcat both on Linux and in Windows NT machine, you can just kill the damn window. :-) -Original Message- From: Tomas Marek [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 12:28 PM To: Tomcat Subject: Shutdown problem Guys, I start Tomcat 3.1 perfectly and when I run Shutdown.bat script, the Java window is still on with the following content: Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using classpath: C:\Tomcat\classes;C:\Tomcat\lib\webserver.jar Stop tomcat Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/DocumentH andler at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:180) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Looks like something wrong with configuration of JVM? Why still "Out of environment space if I've set the Initial environment memory property to recommended 2816? Second question is why I can't run .jsp file in browser when offline? (W98, T/C 3.1 as standalone) I've searched the mailinglist archive and several FAQs on the topic but found nothing helpful. Did anybody encounter with same problem? Any suggestions will be appreciated. Tom.
RE: Getting servletinputStream from a specific field of the posted form?
You need to get a multi-part post data handler. There is one at www.servlets.com (the O'Reilly servlets site) which is not wuite free (must buy the book to use it commercially), but does work well. If you browse the archive, (http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 is one archive), then you can search for other messages on this topic which show up periodically. Regards, Paul -Original Message- From: Kirasawa, Mike [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 03:57 PM To: [EMAIL PROTECTED] Subject: Getting servletinputStream from a specific field of the posted form? Hello A small question, hopefully this is completely JSP-related (I think it is). I have a form where a couple of the fields are of type INPUT TYPE=FILE, which are used to upload images etc. I would like to get the files posted through these two fields, and save them to a pre-determined folder on the server. I came across something called: request.getInputStream(); but how would I specify exactly which file I wish to save? I am a bit clueless here, and would appreciate a few pointers. I know that I can write to a file by using a FileOutputStream, but before I can "put" a file like this, I need to "get" the bytes from the posted form. Is there anyway to get this? Request.getparameter just returns me a string, right? Thanks a lot in advance, Shanx
Re: mod_jk
Hola, Carlos You should only append the following line to your http.conf: include c:/tomcat/conf/tomcat-apache.conf Note: I am assumming you are running Tomcat 3.1, on a win machine. Similar settings must be arranged for other confs. Julio -- Suerte con eso, Carlos. Si quieres, enviame detalles de tu configuracion - Original Message - From: To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 5:12 AM Subject: Re: mod_jk i am using with apache what i must to include in the httpd.conf? the mod_jk.conf file? the tomcat-apache.conf file? please say me or send a example thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 7:31 AM Subject: RE: mod_jk :-) You do not need md_jk if you are using only tomcat. If you are using apache then include it in your apache's httpd.conf. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 1:48 AM To: [EMAIL PROTECTED] Subject: mod_jk i have install thew tomcat 3.2 b8 in linux with the mod_jk.so file what must i do? i run the tomcat and the html pages runs but the jsp pages no. the system says me that there is not that page. What is the problem? the mod_jk? how can i run it? thanks Carlos
Re: Tomcat Cache
I would expand a bit what Serg is just saying: If you are modifying a jsp file that is *included* JSP will not "detect" the change, as it only looks for the main page date. Just change the date of the main page (modifiyng it , or with a touch command) and that should work. Also(I know it may sounds stupid) make sure your browser is not caching the response. (hit reload..) Julio - Original Message - From: Serg Velikanov [EMAIL PROTECTED] To: zys [EMAIL PROTECTED] Sent: Saturday, November 25, 2000 3:29 PM Subject: Re: Tomcat Cache Hello zys, Saturday, November 25, 2000, 9:07:00 PM, you wrote: z I am trying a jsp file, however if I change in the jsp file z this modification is not taken by TOMCAT eventhough I z shutdown restart it and delete all *.java , *.class TOMCAT z has generated for my jsp file. z Did anyone faced such problem? z regards z ZIAD This is not a problem it's just a JSP spec about include directive and include action. This issue have been explained by Hans Bergsten, the author of JavaServer Pages from Oreilly. You can read this online in Han's Top Ten JSP Tips, as I do at following URL http://java.oreilly.com. As for me it is very profitable to read so. -- Best regards, Sergmailto:[EMAIL PROTECTED]
Apache and Tomcat
What is the minimum version of Apache that can be integrated with Tomcat 3.1? Joseph _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
How to disable directory listing in Tomcat?
I used Tomcat and Apache to run jsp where I mapped /jsp to Tomcat to handle jsp program, so I can call abc.jsp by http://ip-address/jsp/abc.jsp through browser. However, when I call http://ip-address/jsp/ through browser, a list of jsp programs under /jsp dirctory were listed. How to disable this feature??? Joseph. _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
JSP session bean in Tomcat
I write a jsp program makes use of a session bean to keep session info and test it with IE5.5. The result is it's able to keep session info but it behaves different from running in other web server, e.g. weblogic, iPlanet. The difference is two openned browsers are treated as two different sessions to the jsp program using a session bean running in Tomcat, but when the program run in weblogic and iPlanet, two openned browsers are treated as one session to the jsp program. Why??? _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Re: How to disable directory listing in Tomcat?
Hi, Joseph, You can: a) create an index.jsp page for your directory, or b) create (or edit, if you have it already...) a web.xml file for your webapp and alter the welcome-file-list section: welcome-file-list welcome-file index.jsp /welcome-file welcome-file index.html /welcome-file welcome-file index.htm /welcome-file !-- add this to enable abc as your welcome page -- welcome-file abc.jsp /welcome-file /welcome-file-list Julio - Original Message - From: Joseph Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 10:30 AM Subject: How to disable directory listing in Tomcat? I used Tomcat and Apache to run jsp where I mapped /jsp to Tomcat to handle jsp program, so I can call abc.jsp by http://ip-address/jsp/abc.jsp through browser. However, when I call http://ip-address/jsp/ through browser, a list of jsp programs under /jsp dirctory were listed. How to disable this feature??? Joseph. _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Re: Apache and Tomcat
Probably 1.3.6, it supports the AJP12 protocol (for Jserv) Julio - Original Message - From: Joseph Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 10:30 AM Subject: Apache and Tomcat What is the minimum version of Apache that can be integrated with Tomcat 3.1? Joseph _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Re: mod_jk
if i use mod_jk in a linux with tomcat and apache: what i must to include in the apache conf file? the tomcat-apache.conf or / and the mod_jk-auto.conf? thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 11:24 AM Subject: RE: mod_jk mod_jk should be included, go though it to add your changes. Shuklix -Original Message- From: POLIKI [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 3:43 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk i am using with apache what i must to include in the httpd.conf? the mod_jk.conf file? the tomcat-apache.conf file? please say me or send a example thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 7:31 AM Subject: RE: mod_jk :-) You do not need md_jk if you are using only tomcat. If you are using apache then include it in your apache's httpd.conf. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 1:48 AM To: [EMAIL PROTECTED] Subject: mod_jk i have install thew tomcat 3.2 b8 in linux with the mod_jk.so file what must i do? i run the tomcat and the html pages runs but the jsp pages no. the system says me that there is not that page. What is the problem? the mod_jk? how can i run it? thanks Carlos
Re: How to disable directory listing in Tomcat?
But how to disable directory listing in Tomcat without creating extra .jsp and .html, e.g. index.jsp, index.html.. I remembered that if I disable Index Options in Apache then the following message will be displayed if I try to browse directory . Forbidden You don't have permission to access /abc/ on this server. - Apache/1.3.14 Server at 10.10.0.1 Port 80 From: "Julio Serje (@canada.com)" [EMAIL PROTECTED] Reply-To: "Julio Serje (@canada.com)" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: How to disable directory listing in Tomcat? Date: Sun, 26 Nov 2000 11:15:33 -0500 Hi, Joseph, You can: a) create an index.jsp page for your directory, or b) create (or edit, if you have it already...) a web.xml file for your webapp and alter the welcome-file-list section: welcome-file-list welcome-file index.jsp /welcome-file welcome-file index.html /welcome-file welcome-file index.htm /welcome-file !-- add this to enable abc as your welcome page -- welcome-file abc.jsp /welcome-file /welcome-file-list Julio - Original Message - From: Joseph Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 10:30 AM Subject: How to disable directory listing in Tomcat? I used Tomcat and Apache to run jsp where I mapped /jsp to Tomcat to handle jsp program, so I can call abc.jsp by http://ip-address/jsp/abc.jsp through browser. However, when I call http://ip-address/jsp/ through browser, a list of jsp programs under /jsp dirctory were listed. How to disable this feature??? Joseph. _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Sample Project Won't Build
Hi, I've successfully installed JDK 1.2.2, and Tomcat, and Ant on Red Hat 6.2. I can compile and run a HelloWorld class with javac, and all of the samples included with the server work fine. However, the sample project won't compile for me. I've read through the documentation in doc/appdev/index.html, and I've tried modifying the build file and project location in various ways, as well as changing my CLASSPATH environment variable. but the results are the same. Below is a capture of me simply trying to build the project as root in its default directory (with no modifications). Any help that can get my machine to build the sample application and kick start me into a working development environment would be greatly appreciated. Regards, Richard Herrell [root@localhost sample]# pwd /usr/local/jakarta/build/tomcat/doc/appdev/sample [root@localhost sample]# ./build Buildfile: build.xml prepare: compile: [javac] Compiling 1 source files to /usr/local/jakarta/build/tomcat/webapps/myapp/WEB-INF/classes BUILD FAILED java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:525) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:295) at org.apache.tools.ant.Target.execute(Target.java:132) at org.apache.tools.ant.Project.runTarget(Project.java:717) at org.apache.tools.ant.Project.executeTarget(Project.java:448) at org.apache.tools.ant.Project.executeTargets(Project.java:422) at org.apache.tools.ant.Main.runBuild(Main.java:279) at org.apache.tools.ant.Main.main(Main.java:107) Total time: 1 seconds [root@localhost sample]# [root@localhost sample]# set ANT_HOME=/usr/local/jakarta/jakarta-ant BASH=/bin/bash BASH_VERSION=1.14.7(1) COLUMNS=80 DISPLAY=:0 ENV=/root/.bashrc EUID=0 HISTFILE=/root/.bash_history HISTFILESIZE=1000 HISTSIZE=1000 HOME=/root HOSTNAME=localhost.localdomain HOSTTYPE=i386 IFS= INPUTRC=/etc/inputrc JAKARTA_HOME=/usr/local/jakarta JAVA_HOME=/usr/local/jdk LANG=en_US LESSOPEN=|/usr/bin/lesspipe.sh %s LINES=24 LOGNAME=root LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35: MAIL=/var/spool/mail/root MAILCHECK=60 MOZILLA_HOME=/opt/netscape OLDPWD=/usr/local/jakarta OPTERR=1 OPTIND=1 OSTYPE=Linux PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/Acrobat4/bin:/usr/local/jdk/bin:/usr/local/jakarta/jakarta-ant/bin:/root/bin PPID=912 PROMPT_COMMAND=echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007" PS1=[\u@\h \W]\$ PS2= PS4=+ PWD=/usr/local/jakarta/build/tomcat/doc/appdev/sample SHELL=/bin/bash SHLVL=1 TERM=xterm TOMCAT_HOME=/usr/local/jakarta/build/tomcat UID=0 USER=root USERNAME=root _=echo mc=() { mkdir -p ~/.mc/tmp 2/dev/null; chmod 700 ~/.mc/tmp; MC=~/.mc/tmp/mc-$$; /usr/bin/mc -P "$@" "$MC"; cd "`cat $MC`"; rm "$MC"; unset MC } -- Richard Herrell http://www.provide.net/~herrell/index.html e-mail: [EMAIL PROTECTED]
Need some basic information
(Disclaimer: I've spent hours rummaging in FAQs, Archives, and other documents, and tried countless suggestions gleaned thereby. No luck.) I've successfully installed Tomcat 3.1 and Apache on NT 4.0, and made them work together to the extent that I can use the examples. However, I want to do the following very simple and concrete thing: I have a servlet called "HelloWorld.java", which I have compiled. I would like to run it from my web browser. I would really like to know EXACTLY what to do to be able to do this, short of creating WAR files and directory structures. This is a minimalist question -- I simply want to know what is the most lightweight way to play with developing servlets. 1. Where do I put my servlet? Do I need to compile it first? 2. Exactly what lines do I need to add to conf\web.xml? 3. What other configuration tweaks need to be done? 4. How do I run the servlet in the browser (I can access the examples at: http://127.0.0.1/examples/servlets/) IMHO, the documents available need a few concise "recipes" for commonly used scenarios. If I can collect enough information I'll publish what I've learned. Thanks, --Jim Bartram
Tomcat/Apache/Mod_Rewrite
Yo! I'm trying to use Tomcat together with Mod_Rewrite on an Apache/1.3.14 under W2K. My configuration (httpd.conf) is as follows: # Include Tomcat include "c:/progra~1/apache~1/jakarta-tomcat/conf/tomcat.conf" # Rewriting IfModule mod_rewrite.c RewriteEngine on RewriteRule ^/(.*) /foobar/servlet/foo?bar=$1 [L,PT,T=jserv-servlet] /IfModule But when I try to open the page, I get an Internal Server Error (500) and I cannot find any Logfile that could tell me what's going on. When I specify the [R] flag, it works, but I don't like that solution... Does anyone know, what's going on? Cheers Mike.
Re: Need some basic information
The simplest way is to just use the existing setup. compile your servlets and place them in $tomcat-root/examples/web-inf/classes/ Then you can access them from the /examples URL Ken - Original Message - From: "Jim Bartram" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 2:38 PM Subject: Need some basic information (Disclaimer: I've spent hours rummaging in FAQs, Archives, and other documents, and tried countless suggestions gleaned thereby. No luck.) I've successfully installed Tomcat 3.1 and Apache on NT 4.0, and made them work together to the extent that I can use the examples. However, I want to do the following very simple and concrete thing: I have a servlet called "HelloWorld.java", which I have compiled. I would like to run it from my web browser. I would really like to know EXACTLY what to do to be able to do this, short of creating WAR files and directory structures. This is a minimalist question -- I simply want to know what is the most lightweight way to play with developing servlets. 1. Where do I put my servlet? Do I need to compile it first? 2. Exactly what lines do I need to add to conf\web.xml? 3. What other configuration tweaks need to be done? 4. How do I run the servlet in the browser (I can access the examples at: http://127.0.0.1/examples/servlets/) IMHO, the documents available need a few concise "recipes" for commonly used scenarios. If I can collect enough information I'll publish what I've learned. Thanks, --Jim Bartram
RE: Tomcat Cache
I do not agree with this, as all the files in the work directory are being deleted, it will recomplile the jsp's and so that changes should have been reflected. The problem might be with your browser settings, and it might be taking the page from the cache. Changes your browser settings to look for the new version of the page every time you visit the page. Try deleting all your cache and then check. Shuklix I would expand a bit what Serg is just saying: If you are modifying a jsp file that is *included* JSP will not "detect" the change, as it only looks for the main page date. Just change the date of the main page (modifiyng it , or with a touch command) and that should work. Also(I know it may sounds stupid) make sure your browser is not caching the response. (hit reload..) Julio - Original Message - From: Serg Velikanov [EMAIL PROTECTED] To: zys [EMAIL PROTECTED] Sent: Saturday, November 25, 2000 3:29 PM Subject: Re: Tomcat Cache Hello zys, Saturday, November 25, 2000, 9:07:00 PM, you wrote: z I am trying a jsp file, however if I change in the jsp file z this modification is not taken by TOMCAT eventhough I z shutdown restart it and delete all *.java , *.class TOMCAT z has generated for my jsp file. z Did anyone faced such problem? z regards z ZIAD This is not a problem it's just a JSP spec about include directive and include action. This issue have been explained by Hans Bergsten, the author of JavaServer Pages from Oreilly. You can read this online in Han's Top Ten JSP Tips, as I do at following URL http://java.oreilly.com. As for me it is very profitable to read so. -- Best regards, Sergmailto:[EMAIL PROTECTED]
RE: How to disable directory listing in Tomcat?
1) Give a welcome file in your web.xml (if all your requests in /jsp goes to tomcat. 2) Check the "options" in Directory directive(Apache documentation). Try something this in your httpd.conf(it might do the job for you) DirectoryMatch /jsp AllowOverride None Options None allow from all /DirectoryMatch -Original Message- From: Joseph Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 9:01 PM To: [EMAIL PROTECTED] Subject: How to disable directory listing in Tomcat? I used Tomcat and Apache to run jsp where I mapped /jsp to Tomcat to handle jsp program, so I can call abc.jsp by http://ip-address/jsp/abc.jsp through browser. However, when I call http://ip-address/jsp/ through browser, a list of jsp programs under /jsp dirctory were listed. How to disable this feature??? Joseph. _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
RE: mod_jk
rename the mod_jk-auto.conf and include the renamed file in your httpd.conf Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 10:21 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk if i use mod_jk in a linux with tomcat and apache: what i must to include in the apache conf file? the tomcat-apache.conf or / and the mod_jk-auto.conf? thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 11:24 AM Subject: RE: mod_jk mod_jk should be included, go though it to add your changes. Shuklix -Original Message- From: POLIKI [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 3:43 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk i am using with apache what i must to include in the httpd.conf? the mod_jk.conf file? the tomcat-apache.conf file? please say me or send a example thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 7:31 AM Subject: RE: mod_jk :-) You do not need md_jk if you are using only tomcat. If you are using apache then include it in your apache's httpd.conf. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 1:48 AM To: [EMAIL PROTECTED] Subject: mod_jk i have install thew tomcat 3.2 b8 in linux with the mod_jk.so file what must i do? i run the tomcat and the html pages runs but the jsp pages no. the system says me that there is not that page. What is the problem? the mod_jk? how can i run it? thanks Carlos
RE: Increasing memory problem
YOu can also try Thread Pooling in tomcat, it might be help. SHuklix -Original Message- From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 10:08 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Increasing memory problem Hi, Kai. The problem you are experiencing is a difficult one, as it relates to the way you allocate and de-allocate your resources in a way the garbage collector can determine that a resource is not needed anymore. You say that you're using jdbc. You should make sure that you are properly (and explicitly) deallocating all resources you create. a) Connections to the database. If you're not using a connection pool, make sure your connections are closed. b) ResultSets AND statements. This is a common problem, you must close() them in order to let the garbage collector do its work. example: rset.close(); stmt.close(); conn.close(); Julio - Original Message - From: Kai Müller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 24, 2000 12:35 PM Subject: Increasing memory problem Hi everybody! My problem is the following: after I start my application (JSPs read from MySQL) with Tomcat 3.1 the used memory of the java processes increases and the number of java processes themselves increases if I reload the same site (2 per second), reload, reload, reload ;-) The performance goes down, and sometimes Tomcat crashes. The HTML sent to the browser is large (about 350 kB). I get several errors (OutOfMemory, Response has already been committed,...) and I am absolutely confused about it now. Can anybody help me ? Do you need further information ? With kind regards Kai Müller The input.jsp is the following and a global entry for all requests, which are handled and forward on a JSP page with the HTML-Codes. %@ page errorPage="/error/errorpage.jsp" % %@ page import="javax.servlet.*" % %@ page import="javax.servlet.http.*" % % response.setDateHeader("Expires",0); response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache,must-revalidate"); % jsp:useBean id="requestProc" class="TheRequestClass" scope="session" % requestProc.initialize(config.getServletContext(), session); % /jsp:useBean jsp:useBean id="pageController" class="ThePageControllerClass" scope="session" /jsp:useBean % requestProc.processRequest(request); String next = pageController.getNextPage(request); getServletConfig().getServletContext().getRequestDispatcher("/" + next).forward(request, response); % - -- Mediadom audiovisuelle Medien GmbH Merheimer Str. 151 D-50733 Koeln Tel.: 0221 / 917 11 80 Fax: 0221 / 917 11 81 Internet: http://www.mediadom.de
RE: mod_jk
NO!!! :-) it is not a strict NO.. you can include it. but take care to remove all the modjsev directives. Shuklix and i dont must use the tomcat-apache.conf file? - Original Message - From: "Michael H. La Budde" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 2:16 PM Subject: RE: mod_jk The file you want to incude in your httpd.conf is actually path-to-tomcat/conf/mod_jk.conf-auto Make sure that you have mentioned all your contexts in your server.xml file and that you startup tomcat first (since the above file gets generated each time you startup tomcat). If that file (mod_jk.conf-auto) won't work exactly as is for you, then go ahead and make your changes but remember to save the file to a different name (otherwise your changes will be overwritten the next time you start up tomcat!), and don't forget to change the reference in your httpd.conf file HTH, Mike At 11/26/2000 03:54 PM +0530, you wrote: mod_jk should be included, go though it to add your changes. Shuklix -Original Message- From: POLIKI [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 3:43 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk i am using with apache what i must to include in the httpd.conf? the mod_jk.conf file? the tomcat-apache.conf file? please say me or send a example thanks carlos - Original Message - From: "Saurabh Shukla" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 26, 2000 7:31 AM Subject: RE: mod_jk :-) You do not need md_jk if you are using only tomcat. If you are using apache then include it in your apache's httpd.conf. Shuklix -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 26, 2000 1:48 AM To: [EMAIL PROTECTED] Subject: mod_jk i have install thew tomcat 3.2 b8 in linux with the mod_jk.so file what must i do? i run the tomcat and the html pages runs but the jsp pages no. the system says me that there is not that page. What is the problem? the mod_jk? how can i run it? thanks Carlos
RE: Tomcat/Apache/Mod_Rewrite
Add these lines. RewriteEngine on RewriteLog "PATH/apache-rewrite.log" RewriteLogLevel 6 (change the run level as per you needs). This is generate a log file "apache-rewrite.log" in PATH directory. SHuklix -Original Message- From: michael grossniklaus [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 4:46 AM To: [EMAIL PROTECTED] Subject: Tomcat/Apache/Mod_Rewrite Yo! I'm trying to use Tomcat together with Mod_Rewrite on an Apache/1.3.14 under W2K. My configuration (httpd.conf) is as follows: # Include Tomcat include "c:/progra~1/apache~1/jakarta-tomcat/conf/tomcat.conf" # Rewriting IfModule mod_rewrite.c RewriteEngine on RewriteRule ^/(.*) /foobar/servlet/foo?bar=$1 [L,PT,T=jserv-servlet] /IfModule But when I try to open the page, I get an Internal Server Error (500) and I cannot find any Logfile that could tell me what's going on. When I specify the [R] flag, it works, but I don't like that solution... Does anyone know, what's going on? Cheers Mike.