$TOMCAT_HOME/conf/web.xml isn't readed in Tomcat 3.2b6???
Hi, I have been trying to change some parameters in my $TOMCAT_HOME/conf/web.xml in a Tomcat 3.2b6, but it seems that is isn't read at startup time. I have make teh sema thing in a Tomcat 3.1, and the parameters I change are readed. I would like to change the welcome page, and tho compile my jsp pages with jikes instead of javac. Is this issue a bug??? or maybe I am making something wrong??? Please, some help! Lots of thanks! Alberto Silva - [EMAIL PROTECTED] - -o) http://www.nmp.es - +34 948 19 79 83 - /\ GNU/Linux Registered and Supporter User N.122522 _\_v Ordenagailu baten gauzarik garrantzitsuena aulkia eta teklatuaren artean dago
RE: $TOMCAT_HOME/conf/web.xml isn't readed in Tomcat 3.2b6???
Hi, I am using Tomcat 3.2b, i want to block access to this post for every one but from requests send from localhost. ie, i want tomcat to respond only if the request comes from localhost. Has any one has done this or tried ? any inputs so that i can implement it.. TIA, Saurabh
Re: getting tomcat run..
find the documentation on the c:\jarkarta-tomcat\doc\u-guide\ .html file.
RE: BUILD FATAL ERROR: srcdir does not exist!
Hello, thank You for your reaction about this problem in Tomcat discussion. Sorry, Jacob, that I didnt reply to You, because I did not look at discussion. Today Phil Mitchell writes to me, that he has the same problem. I looked at discussion and i saw Jacobs reply. So I tried to build sample Tomcats aaplication again and got strange results: 1) when I put line property name="build.compiler" value="classic"/ recomended by Jacob into build.xml and start build, I got an error: C:\java\samplebuild Buildfile: build.xml Project base dir set to: C:\java\sample The items attribute is deprecated. Please use the includes attribute. The items attribute is deprecated. Please use the includes attribute. Executing Target: prepare Created dir: C:\java\tomcat\webapps\sample Copying 3 files to C:\java\tomcat\webapps\sample Created dir: C:\java\tomcat\webapps\sample\WEB-INF Created dir: C:\java\tomcat\webapps\sample\WEB-INF\classes Created dir: C:\java\tomcat\webapps\sample\WEB-INF\lib Created dir: C:\java\tomcat\webapps\sample\javadoc Executing Target: compile Compiling 1 source files to C:\java\tomcat\webapps\sample\WEB-INF\classes Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:421) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:218) at org.apache.tools.ant.Target.execute(Target.java:120) at org.apache.tools.ant.Project.runTarget(Project.java:675) at org.apache.tools.ant.Project.executeTarget(Project.java:422) at org.apache.tools.ant.Main.runBuild(Main.java:240) at org.apache.tools.ant.Main.main(Main.java:191) 2) when I start build without that line, EVERYTHING IS OK AND BUILD SUCCEED. I dont know why, because the conditions seem the same as when I got the error. C:\java\samplebuild Buildfile: build.xml Project base dir set to: C:\java\sample The items attribute is deprecated. Please use the includes attribute. The items attribute is deprecated. Please use the includes attribute. Executing Target: prepare Created dir: C:\java\tomcat\webapps\myapp Copying 3 files to C:\java\tomcat\webapps\myapp Created dir: C:\java\tomcat\webapps\myapp\WEB-INF Created dir: C:\java\tomcat\webapps\myapp\WEB-INF\classes Created dir: C:\java\tomcat\webapps\myapp\WEB-INF\lib Created dir: C:\java\tomcat\webapps\myapp\javadoc Executing Target: compile Compiling 1 source files to C:\java\tomcat\webapps\myapp\WEB-INF\classes Performing a Modern Compile Completed in 1 seconds C:\java\sample so, because I have not time to solve it, I only list my source sample directory to you and also my system variables. C:\java\sample: build.xml, build.bat, build C:\java\sample\etc: web.xml C:\java\sample\lib: empty C:\java\sample\src\Hello.java C:\java\sample\web\hello.jsp, index.html C:\java\sample\web\images\tomcat.gif (See attached file: build.xml)(See attached file: build.bat)(See attached file: build)(See attached file: web.xml)(See attached file: Hello.java)(See attached file: index.html)(See attached file: hello.jsp)(See attached file: tomcat.gif) C:\java\sampleset TMP=C:\WINDOWS\TEMP TEMP=C:\WINDOWS\TEMP PROMPT=$p$g winbootdir=C:\WINDOWS COMSPEC=C:\COMMAND.COM JAVA_HOME=C:\java\jdk1.3 TOMCAT_HOME=C:\java\tomcat INFORMIXDIR=C:\PROGRA~1\INFORMIX windir=C:\WINDOWS BLASTER=A240 I11 D0 T4 PATH=Z:\PUBLIC;Y:\;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PWRS\SYS32;C:\PROGRA~1\INFOR MIX\BIN;C:\JAVA\JDK1.3\BIN;C:\PROGRA~1\SYBASE\IM6; CMDLINE=java org.apache.tools.ant.Main -Dtomcat.home=C:\java\tomcat CLASSPATH=.;C:\java\ifxjdbc2.1\lib\ifxjdbc.jar;C:\java\tomcat\lib\servlet.jar;C: \java\tomcat\lib\webserver.jar;C:\java\tomcat\lib\xml.jar;C:\java\tomcat\lib\ant .jar;C:\java\tomcat\lib\jasper.jar;C:\java\cos\lib\cos.jar; = original message: = Hello, excuse my bad English. I downloaded Tomcat 3.1 and installed on my PC. I use Windows 95 and JDK 1.3. Every environment variables I have properly set. I am trying to build sample application, which is in doc/appdev/sample directory: 1) First I got error concerning with SAX XML parser and the cause was, that in build.xml file was missing "/" at the end of line property name="app.name" value="myapp" So, please, correct it in downloadable files! 2) Then when I started build from ms-dos prompt (beeing in directory ...samples), I have following error: C:\java\samplebuild Buildfile: build.xml Project base dir set to: C:\java\sample The items attribute is deprecated. Please use the includes attribute. The items attribute is deprecated. Please use the includes attribute. Executing Target: prepare Created dir: C:\java\tomcat\webapps\myapp Copying 3 files to C:\java\tomcat\webapps\myapp Created dir: C:\java\tomcat\webapps\myapp\WEB-INF Created dir: C:\java\tomcat\webapps\myapp\WEB-INF\classes Created dir:
JK_NT_SERVICE
Hi all, I'm using the JK_NT_SERVICE to run Tomcat (3.1) as a service on NT. I've been looking through the wrapper.properties file to try and find any way to save any output via System.out.println to a file, rather than disappearing into oblivion as seems to happen. I've found the following lines: wrapper.stdout=$(wrapper.tomcat_home)\jvm.stdout wrapper.stderr=$(wrapper.tomcat_home)\jvm.stderr This seems to redirect stdout and stderr to somewhere. How can I change these to point to a log file somewhere without mucking up the system? Thanks, Raj. -- Rajnish Bhaskar [EMAIL PROTECTED], http://i.am/rajy IT Education Unit, University of Glasgow http://www.iteu.gla.ac.uk/ -- Only buffoons refer to the Internet as the Information Superhighway. -- (The Rough Guide to the Internet 1999)
using javax.swing.ImageIcon with servlet
Hello, In my servlet I use the package javax.swing.ImageIcon to get the size of an image. But apparently, this package need a X11 display. On my server I don't have X launched. Do you see how to solve this ? Do I need to use another package ? Here is my error: Error: 500 Location: /bib Internal Servlet Error: java.lang.InternalError: Can't connect to X11 window server using 'mon serveur:10.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.jav a:59) at sun.awt.motif.MToolkit.(MToolkit.java:56) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:495) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:488) at javax.swing.ImageIcon.(ImageIcon.java:60) at javax.swing.ImageIcon.(ImageIcon.java:79) at Bibliotheque.reduit(Bibliotheque.java:162) at Bibliotheque.doGet(Bibliotheque.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConne ctionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:475) Thanks ! -- .. .^. | Didier Bretin, France | [EMAIL PROTECTED]| /V\ |---| www.informactis.com| // \\| `| /( )\ | Visit: http://www.multimania.com/cieexcalibur/ | ^^-^^`'
Unsubscribe the name...
Delete my name from the tomcat-user group Subha
RE: At last, Herbal V, the all Natural Alternative!
would you please quit sending this to me!!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 5. nóvember 2000 23:20 To: [EMAIL PROTECTED] Subject: At last, Herbal V, the all Natural Alternative! Herbal V: An Incredible All-Natural Healthy Alternative To Va Herbal V is the All Natural Approach to Male Virility, Vitality and Pleasure. Available N o w ! Welcome to the New Sexual Revolution. It's the all natural male potency and pleasure pill that men everywhere are buzzing about. Herbal V is safe, natural and specifically formulated to help support male sexual function and pleasure. You just take two easy-to-swallow tablets one hour before sex. And there's more great news - you can get Herbal V for less than $1 a pill. Amazing word of mouth praise on Herbal V has been spreading like wildfire-already over 1,500,000 men have chosen Herbal V. Since it is 100% natural you will never have to worry about safety. Try doctor-recommended Herbal V today and have the greatest night of your life! Herbal V... Bringing Back the Magic! 1,585,000 men can't be wrong. To date over 1 million men have tried the super supplement Herbal V. Here is why: No Doctor Visit Required Available Over the Counter Not a Drug 100% Natural Safe, No Worries Highest Quality Pharmaceutical-Grade Pure Nutriceuticals Guaranteed Potency Purity Be a Real Man Again! Questions and Answers What is Herbal V? Herbal V is a proprietary blend that was specifically developed as a safe alternative for men who prefer an all-natural approach to address impotence and boost sexual performance. This amazing formula first became popular with Hollywood insiders and the wealthy elite. They were maximizing their sex lives, long before it was available to the general public. How does Herbal V work? Developed by a team whose goal was to create the perfect all-natural aphrodisiac. Herbal V is the result of that remarkable effort. The Herbal V formula contains a precise blend of cutting edge pro-sexual nutrients from around the world that provide nutritional support, making it possible for a man to have a pleasurable sexual experience. What can Herbal V do for me? Herbal V helps support male sexual function and pleasure in a safe and natural manner. Simply put, it can make your sex life incredible. Is Herbal V Safe? One of the great things about Herbal V is that it is not a drug. It is an incredible herbal dietary supplement that provides nutritional support for male sexual function and pleasure. One of the most comforting features of Herbal V is that you never have to worry about safety. Herbal V: Safe - Natural - Exciting Many have speculated that because Herbal V is so popular with men, it must contain prescription drugs or chemical components. Herbal V does not contain any elements or traces of any prescription drug. Herbal V is made using the world's most technologically advanced state-of-the-art cold processing equipment to ensure maximum purity. Herbal V has been independently analyzed by the nation's premier testing facility to ensure purity, quality and to end the rumors that, because it is so popular, it must somehow be chemical. It is not. Herbal V is natural - just as it says on the label. Herbal V is simply fantastic! Herbal V: Ingredients Yohimbe, saw palmetto, avena sativa, androstenedione, guarana, taurine, siberian ginseng, tribulus terrestris. Tribulus Terrestis is certified to enhanced testosterone levels by increasing Luteinzing hormone (LH) levels. Androstenedione which is a precursor to testosterone unlocks bound testosterone and makes it biologically active again quickly. This means a dramatic surge in desire. Avena Sativa Stimulates the neurotransmitter pleasure centers to maximum capacity. This greatly intensifies pleasure. Just listen to what Herbal V has done for the sex lives of people like you! "On a scale of 1 to 10, it's a 15. Electrifying. It's like a wonder pill!" - Justin Q B., New Haven, Texas "I haven't had sexual relations in 11 years. Then with Herbal V it was... wow! It works again!" - Sid R., Lakeland, Florida "I had sex four times in one night. It made me feel like a 19-year-old again." - Chip S, Beech Mountain, North Carolina "Herbal V has turned my husband into a Sexual Superman! I like the fact that it's all natural and has no side effects. It's bringing back the good old days." - Jennifer B, Beverly Hills, California The above testimonials are from product literature, and we have not independently verified them. However, the following testimonial is from a "senior" gentleman who has purchased his second bottle of Herbal V. When we heard his words with our own ears, we asked his permission to print them here. "Man! I'm wild as I can be! I feel like I'm 25 years old again! I'm not believing this!" - Mr. Murphy, age 64, Lampart, IL. Risk Free: Double Your Money Back Guarantee
VirtualDomains
Hi Everyone! I have some virtualdomains and I want jakarta to look for jsp files in each directory, I mean: www.pepito.com - /var/www/pepito/ www.juanito.com - /var/www/juanito/ How can it be done? Thanks in advance. Jesus Arnaiz
RE: how to run a class on startup of tomcat ??
Hi Sudheshna That's easy. Just use a servlet which gets startet on tomcats startup. In it's init() just start your Runnable. The doXXX() methods are empty, as this servlet will never be called. Tschau Christian -Original Message- From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 7:25 AM To: [EMAIL PROTECTED] Cc: Subhashini Chirunomula; Marthi Nalini Subject: how to run a class on startup of tomcat ?? Hi All, We have a startup class which needs to be run when tomcat is started. Could anyone pl. tell us how it is possible. The startup class is not a servlet, it implements runnable and it in turn starts some more threads. Thanks, Sudheshna.M.
How to run apache server through Tomcat
Hi, I am new to this Apache and Tomcat area. I installed Tomcat 3.1 and Apache server on my Sun Unix box, I hava a bit of problem how to run my servlet on the apache server through Tomcat. Can anyone give my some ideas? Thanks in advance cw288 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
Re: how to run a class on startup of tomcat ??
How do you get it to load the servlet automatically, without running it, when Tomcat is started? Mike - Original Message - From: "Christian Mack" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 06, 2000 3:51 AM Subject: RE: how to run a class on startup of tomcat ?? Hi Sudheshna That's easy. Just use a servlet which gets startet on tomcats startup. In it's init() just start your Runnable. The doXXX() methods are empty, as this servlet will never be called. Tschau Christian -Original Message- From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 7:25 AM To: [EMAIL PROTECTED] Cc: Subhashini Chirunomula; Marthi Nalini Subject: how to run a class on startup of tomcat ?? Hi All, We have a startup class which needs to be run when tomcat is started. Could anyone pl. tell us how it is possible. The startup class is not a servlet, it implements runnable and it in turn starts some more threads. Thanks, Sudheshna.M.
Thousand apologies!!!
I'm very sorry for sending this to the list... I don't know what happened... I got this letter and as you can see it was sent from [EMAIL PROTECTED] I didn't think replying to it would work (since spammers don't use their real e-mails) but I decided to give it a shot anyways. Somehow it seems to have been sent to the tomcat-users mailing list and I have no idea how that happened??? I couldn't see anything tying this letter to the Tomcat list... absolutely nothing... Again... my sincere apologies for the inconvenience. Kind regards, Stefan Freyr. -Original Message- From: Stefán F. Stefánsson Sent: 6. nóvember 2000 09:16 To: [EMAIL PROTECTED] Subject: RE: At last, Herbal V, the all Natural Alternative! would you please quit sending this to me!!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 5. nóvember 2000 23:20 To: [EMAIL PROTECTED] Subject: At last, Herbal V, the all Natural Alternative! Herbal V: An Incredible All-Natural Healthy Alternative To Va Herbal V is the All Natural Approach to Male Virility, Vitality and Pleasure. Available N o w ! Welcome to the New Sexual Revolution. It's the all natural male potency and pleasure pill that men everywhere are buzzing about. Herbal V is safe, natural and specifically formulated to help support male sexual function and pleasure. You just take two easy-to-swallow tablets one hour before sex. And there's more great news - you can get Herbal V for less than $1 a pill. Amazing word of mouth praise on Herbal V has been spreading like wildfire-already over 1,500,000 men have chosen Herbal V. Since it is 100% natural you will never have to worry about safety. Try doctor-recommended Herbal V today and have the greatest night of your life! Herbal V... Bringing Back the Magic! 1,585,000 men can't be wrong. To date over 1 million men have tried the super supplement Herbal V. Here is why: No Doctor Visit Required Available Over the Counter Not a Drug 100% Natural Safe, No Worries Highest Quality Pharmaceutical-Grade Pure Nutriceuticals Guaranteed Potency Purity Be a Real Man Again! Questions and Answers What is Herbal V? Herbal V is a proprietary blend that was specifically developed as a safe alternative for men who prefer an all-natural approach to address impotence and boost sexual performance. This amazing formula first became popular with Hollywood insiders and the wealthy elite. They were maximizing their sex lives, long before it was available to the general public. How does Herbal V work? Developed by a team whose goal was to create the perfect all-natural aphrodisiac. Herbal V is the result of that remarkable effort. The Herbal V formula contains a precise blend of cutting edge pro-sexual nutrients from around the world that provide nutritional support, making it possible for a man to have a pleasurable sexual experience. What can Herbal V do for me? Herbal V helps support male sexual function and pleasure in a safe and natural manner. Simply put, it can make your sex life incredible. Is Herbal V Safe? One of the great things about Herbal V is that it is not a drug. It is an incredible herbal dietary supplement that provides nutritional support for male sexual function and pleasure. One of the most comforting features of Herbal V is that you never have to worry about safety. Herbal V: Safe - Natural - Exciting Many have speculated that because Herbal V is so popular with men, it must contain prescription drugs or chemical components. Herbal V does not contain any elements or traces of any prescription drug. Herbal V is made using the world's most technologically advanced state-of-the-art cold processing equipment to ensure maximum purity. Herbal V has been independently analyzed by the nation's premier testing facility to ensure purity, quality and to end the rumors that, because it is so popular, it must somehow be chemical. It is not. Herbal V is natural - just as it says on the label. Herbal V is simply fantastic! Herbal V: Ingredients Yohimbe, saw palmetto, avena sativa, androstenedione, guarana, taurine, siberian ginseng, tribulus terrestris. Tribulus Terrestis is certified to enhanced testosterone levels by increasing Luteinzing hormone (LH) levels. Androstenedione which is a precursor to testosterone unlocks bound testosterone and makes it biologically active again quickly. This means a dramatic surge in desire. Avena Sativa Stimulates the neurotransmitter pleasure centers to maximum capacity. This greatly intensifies pleasure. Just listen to what Herbal V has done for the sex lives of people like you! "On a scale of 1 to 10, it's a 15. Electrifying. It's like a wonder pill!" - Justin Q B., New Haven, Texas "I haven't had sexual relations in 11 years. Then with Herbal V it was... wow! It works again!" - Sid R., Lakeland, Florida "I had sex four times in one night. It made me feel like a 19-year-old again." - Chip S, Beech
RE: using javax.swing.ImageIcon with servlet
Hi, It is not uncommon in web applications to want to do image operations on a server. This usually requires an X11 server if you use the Swing or AWT classes. The standard way to do this on a server machine is to run the "X Virtual Frame Buffer" (Xvfb). This is a full-fledged X server which is not mapped to any physical display hardware. If you run Xvfb, you will be able to use Swing and AWT in your servlets without having display hardware on the server. For more on xvfb, see http://www.XFree86.org. http://www.XFree86.org/4.0.1/Xvfb.1.html There should be many places to download the sources from. Stephen At 01:33 PM 11/6/2000 -, you wrote: You should launch X otherwise you can't get a graphics context whether on or off screen. I think. :) Chris. -Original Message- From: Didier Bretin [mailto:[EMAIL PROTECTED]] Sent: 06 November 2000 10:08 To: [EMAIL PROTECTED] Subject: using javax.swing.ImageIcon with servlet Hello, In my servlet I use the package javax.swing.ImageIcon to get the size of an image. But apparently, this package need a X11 display. On my server I don't have X launched. Do you see how to solve this ? Do I need to use another package ? Here is my error: Error: 500 Location: /bib Internal Servlet Error: java.lang.InternalError: Can't connect to X11 window server using 'mon serveur:10.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment .jav a:59) at sun.awt.motif.MToolkit.(MToolkit.java:56) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:495) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:488) at javax.swing.ImageIcon.(ImageIcon.java:60) at javax.swing.ImageIcon.(ImageIcon.java:79) at Bibliotheque.reduit(Bibliotheque.java:162) at Bibliotheque.doGet(Bibliotheque.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onne ctionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:475) Thanks ! -- .. .^. | Didier Bretin, France | [EMAIL PROTECTED]| /V\ |---| www.informactis.com| // \\| `| /( )\ | Visit: http://www.multimania.com/cieexcalibur/ | ^^-^^`'
Re: VirtualDomains
Hi I have some virtualdomains and I want jakarta to look for jsp files in each directory, I mean: www.pepito.com - /var/www/pepito/ www.juanito.com - /var/www/juanito/ See the docs and info below - this should cover it... Chris --Original Message-- From: Chris Kimpton [EMAIL PROTECTED] To: tomcat tomcat [EMAIL PROTECTED] Sent: November 2, 2000 2:03:05 PM GMT Subject: Re: Virtual Hosting... with 3.2beta6 [PATCH to DOCS] Hi, Thanks to Duane Gran [EMAIL PROTECTED] for putting me right on this. In the tomcat-apache howto, it describes a means of having virtual hosts with 1 JVM using this version tomcat. ...but the example server.xml it gives is actually the excerpt from the apache config repeated. So here is a proposed patch for that section of the document. I am assuming that the html directory is the root of an expanded WAR file. Regards, Chris This replaces the example "Option 2 - Same Tomcat for all Virtual Hosts (server.xml) " [ snip! ] !-- in the context manager section -- Host name="host1" Context path="" docBase=""/web/host1/html" / /Host Host name="host2" Context path="" docBase=""/web/host2/html" / /Host [ snip! ] --- "surely it is madness to accept life as it is and not as it could be" --- "surely it is madness to accept life as it is and not as it could be" __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
Re: jsp mod_jk problem
Thank you for your answer, I'll try with ajp12 By the way, do you have any idea on how to setup tomcat and apache to be able to serve several NAMED virtual hosts, each one having his own JVM, and to be able to restart any vhost tomcat and jvm without having to restart all the vhosts AND apache. The tomcat doc is rather scarse on the subject. Dominique - Original Message - From: "GOMEZ Henri" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 06, 2000 2:47 PM Subject: RE: jsp mod_jk problem I tried to switch to mod_jk and ajp13 and got a strange result : one jsp containing only FrameSets and Frames : some of the src files, which are jsp, don't show in the right frame, and particularely one jsp shows twice instead of once. Did you use .forward ? It's a known problem with ajp13 and RequestDispatcher Going back to mod_jserv and ajp12, this jsp is ok. I also reverted to ajp12 but with mod_jk. Is it a beta problem ? YES ;-)
RE: how to run a class on startup of tomcat ??
Just set the "load-on-startup" to a positive integer for this servlet in web.xml. Tschau Christian -Original Message- From: Michael P. McCutcheon [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 2:22 PM To: [EMAIL PROTECTED] Subject: Re: how to run a class on startup of tomcat ?? How do you get it to load the servlet automatically, without running it, when Tomcat is started? Mike - Original Message - From: "Christian Mack" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 06, 2000 3:51 AM Subject: RE: how to run a class on startup of tomcat ?? Hi Sudheshna That's easy. Just use a servlet which gets startet on tomcats startup. In it's init() just start your Runnable. The doXXX() methods are empty, as this servlet will never be called. Tschau Christian -Original Message- From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 7:25 AM To: [EMAIL PROTECTED] Cc: Subhashini Chirunomula; Marthi Nalini Subject: how to run a class on startup of tomcat ?? Hi All, We have a startup class which needs to be run when tomcat is started. Could anyone pl. tell us how it is possible. The startup class is not a servlet, it implements runnable and it in turn starts some more threads. Thanks, Sudheshna.M.
RE: jsp mod_jk problem
You have to start several tomcat instances. Make sure you configure them on different ports for ajp12 and then ajp-mount those in your virutal hosts parts of httpd.conf Something like this: in server.xml's: tomcat1 listening on 8007 tomcat2 listening on 8008 ... worker.properties: worker.ajp-tomcat1.port=8007 worker.ajp-tomcat2.port=8008 ... But here each tomcat run on the same JVM ? Regards
JSP getProperty issue - does not return data
Is anyone having trouble using the JSP tags for set and get property. They do not seem to work. I am using Tomcat 3.1 on Win NT. td%= addrsProfile.getCity() % /td works ** tdjsp:getProperty name="addrsProfile" property="city"/ /td does not work * Here is my JSP page: %@ page contentType="text/html;charset=WINDOWS-1252"% HTML HEAD META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252" META NAME="GENERATOR" CONTENT="Oracle JDeveloper" TITLE JSP Issue - Get Property /TITLE /HEAD BODY H2The following output is from JSP code:/H2 jsp:useBean id="profile" class="proto.Profile" jsp:setProperty name="profile" property="account" value = "18190" / /jsp:useBean jsp:useBean id="addrsProfile" class="proto.Address" /jsp:useBean % proto.Address addrs = profile.loadAddresses("18190"); addrsProfile = addrs; % table trth colspan="2" Address Information for Client /th/tr trtdCity 1/tdtdCity 2/td tr td%= addrsProfile.getCity() % /td tdjsp:getProperty name="addrsProfile" property="city"/ /td /tr /table /HTML Any help would be great. Thanks
Re[2]: Thousand apologies!!!
RAdSO I Got that mail too... :((( RAdSO I HATE Spammers!! :( Me too ... :(( I think I received three of them. How do they know i'm a men? hi hi hi hi Stephan.
Re: [tomcat-user] Re: $TOMCAT_HOME/conf/web.xml isn't readed inTomcat 3.2b6???
... so... I have to forget about a global web.xml??? And how can we change Tomcat to use Jikes without recompiling the source?? I think this an important configuration issue... any idea??? sorry, it's simply not supported. I have yet to hear any developer response on this list about cleaning up docs mentioning that is supported. I just recompiled WebXmlReader.java to use jikes (one line), and was done with it. In fact, the global web.xml is a feature point of 4.0mX (ie: it's working again). I wouldn't expect it back... Alberto Silva - [EMAIL PROTECTED] - -o) http://www.nmp.es - +34 948 19 79 83 - /\ GNU/Linux Registered and Supporter User N.122522 _\_v Ordenagailu baten gauzarik garrantzitsuena aulkia eta teklatuaren artean dago
RE: How to run apache server through Tomcat
Hi Chris, I have Tomcat running and I config apache,it is also running. What else do I have to do? I wrote a servlet program, I need to know how how to run my servlet in the apache. Thanks, From: Chris Kimpton [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: How to run apache server through Tomcat Date: Mon, 6 Nov 2000 09:44:40 -0500 (EST) Hi, I am new to this Apache and Tomcat area. I installed Tomcat 3.1 and Apache server on my Sun Unix box, I hava a bit of problem how to run my servlet on the apache server through Tomcat. Can anyone give my some ideas? How far did you get through the apache-tomcat config document? It is fairly good. Chris --- "surely it is madness to accept life as it is and not as it could be" __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
RE: Unsubscribe the name...
Don't reply to me about this, I'm just telling you how to get off the list. If you follow the instructions they work every time. I've done it several times. You get these instructions when you join the list. --- Administrative commands for the tomcat-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: mailto:[EMAIL PROTECTED] To remove your address from the list, send a message to: mailto:[EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example "[EMAIL PROTECTED]", just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] To stop subscription for this address, mail: [EMAIL PROTECTED] In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) -Original Message- From: Subha Gowri K V [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 2:34 AM To: [EMAIL PROTECTED] Subject: Unsubscribe the name... Delete my name from the tomcat-user group Subha
RE: jsp mod_jk problem
No they are in different JVM's. installed in completly different directories Regards, Andreas -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 4:14 PM To: [EMAIL PROTECTED] Subject: RE: jsp mod_jk problem You have to start several tomcat instances. Make sure you configure them on different ports for ajp12 and then ajp-mount those in your virutal hosts parts of httpd.conf Something like this: in server.xml's: tomcat1 listening on 8007 tomcat2 listening on 8008 ... worker.properties: worker.ajp-tomcat1.port=8007 worker.ajp-tomcat2.port=8008 ... But here each tomcat run on the same JVM ? Regards
RE: How to run apache server through Tomcat
Hi, I have Tomcat running and I config apache,it is also running. What else do I have to do? I wrote a servlet program, I need to know how how to run my servlet in the apache. I presume you can get your servlet to work with tomcat alone - using it as the webserver. Thus you need to get apache to talk to tomcat. The document "doc/tomcat-apache-howto.html" explains this quite well. This is in the 3.2b6 distribution - it might be with 3.1 as well. You need to get an adaptor for apache to talk to tomcat - the jserv one is quite common. Assuming you have this, you then need to configure your web app in apache. The important section is "httpd.conf - Apache's main configuration file " - this explains about the directives and what you need to fill in. Good luck, Chris --- "surely it is madness to accept life as it is and not as it could be" __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
READ THIS First! Mailing-list archive and good tips
To unsubscribe from this list mailto:[EMAIL PROTECTED] To stop subscription for an alternate account (e.g. [EMAIL PROTECTED]) send an eMail to [EMAIL PROTECTED] Before posting any questions --- + We welcome open discussion of Tomcat issues at both advanced and beginner levels of expertise. However, please be respectful of other people's time. Before posting questions, do your own reading and research. As the saying goes, "There are no stupid questions"... except the ones you could have answered by yourself! Before posting a question, perform the following steps. + Be familiar with servlets in general. See: http://java.sun.com/products/servlet/ http://java.sun.com/products/jsp/ + Read any of the several published books about servlets or JSP. + Read the Servlet API 2.2 Specification. Download a copy of the spec in PostScript or Acrobat PDF formats: http://java.sun.com/products/servlet/download.html#specs The spec is currently not available online; you must download a copy. You may obtain free Acrobat PDF reader software from: http://www.adobe.com/products/acrobat/readstep.html Tomcat implements this spec, so think of it as one of Tomcat's manuals. + Read Tomcat's other documentation: http://jakarta.apache.org/tomcat/index.html + Study the Tomcat examples. First use the servlets found in the /examples context. Read their source code. Then try your own first servlets in the /examples context, and add an entry into /example/WEB-INF/web.xml + Search either of these two archives for past discussions. Contributed by Bob Tanner: http://archives.real-time.com/rte-tomcat/ Contributed by Philip J. Mikal: http://mikal.org/interests/java/tomcat/index.html Search for short phrases, such as your server error messages. Search the archive again with better or different phrases. Many beginner questions have already been asked, so please make several attempts at finding your question in the archive. + Read the FAQ: http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayTopics/ Click the Jakarta link. + Search the bug report facility http://znutar.cortexity.com: provided by Nick Bauman. + Read this mailing list regularly, not just when you have a problem. + Examine your error messages problems not directly related to Tomcat, such as CLASSPATH problems. Write, compile, and run a "Hello World" application to be sure your problem is related to servlets or Tomcat. + Ask an expert in your company, school class, or local Java users group. http://industry.java.sun.com/jug/ + Do not treat this list as a dumping ground for your problems. Think of the list as a volunteer community of people engaging in respectful discussion. == THE MORAL OF THE STORY Help yourself first. Be responsible for your own learning. Try to solve your own problem. If you are still suffering, then post to this list. == + Be aware: This mailing list may contain viruses. Don't trust anybody. If your are not absolutely sure, do not open any attachments. Do not read the postings with a JavaScript-enabled email client. Microsoft Windows users: Disable all stuff like ActiveScripting etc. in your mail reader. Be careful with attachments, especially of type .exe .vbs or some virus attachments like "livestages.txt.shs". The .shs extension disappears/is not visible under Windows but represents an executable script which will execute when opened separately. + Other resources: - An archive of the mailing list for the developers building Tomcat discussing bugs, future releases, etc. http://www.metronet.com/~wjm/tomcat/ - Sun's mailing list for general servlet information: Search its archive at: http://archives.java.sun.com/archives/servlet-interest.html Subscribe only, if you are willing to receive hundred messages per day! - Search DejaNews at http://www.deja.com/home_ps.shtml - Look at jGuru, JCentral etc. - Search the whole Web with a popular search engine. As a developer of server applications you should know all about it. :-) You can find entire websites dedicated to Java servlets. Find the online versions of Java magazines with past articles on servlets and JSP. -- end --
Re: SSL client authentication with Tomcat
Hi, when you say this feature is not supported in Tomcat 3.x, do you also mean that it is not available either for Apache+Tomcat 3.1? Thanks in advance This feature is not supported in Tomcat 3.x presently, although it is available in Tomcat 4.0 (pre-alpha nightly builds currently available). Craig McClanahan Hi to all! Does anybody know whether there is the possibility to access the SSL client certificate variables from a servlet running in Tomcat?. Thanks to all of you!
Re: VirtualDomains
Create a seperate directory and configure one web.xml for each domain seperately.Also U need to configure server.xml to show the docbase.This is the way that we followed.If there is a better way pl let us know about it. Ravi Dynacom --- [EMAIL PROTECTED] wrote: Hi Everyone! I have some virtualdomains and I want jakarta to look for jsp files in each directory, I mean: www.pepito.com - /var/www/pepito/ www.juanito.com - /var/www/juanito/ How can it be done? Thanks in advance. Jesus Arnaiz __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/
Can tomcat work as a multi server
One clarification required:Can we use tomcat as a multiserver...as Enhydra is?If yes ,how can we do it? Pl help. Ravi, Dynacom __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/
Re: [tomcat-user] Re: $TOMCAT_HOME/conf/web.xml isn't readed inTomcat 3.2b6???
On Mon, 6 Nov 2000, Alberto Silva wrote: ... so... I have to forget about a global web.xml??? in 3.2 yes forget about it. either go to 3.1, 4.0 or code it yourself for 3.2. And how can we change Tomcat to use Jikes without recompiling the source?? in 3.2 there is no way. either go to 3.1, 4.0. You cannot override the compiler in a context's web.xml (i've tried in several release of 3.2, but this may no longer be the case). I think this an important configuration issue... any idea??? I would think that tomcat-dev knows that this is important. I don't know what their intentions are, but I don't think that tomcat-user was made aware of any. Feel free to report back any info that tomcat-dev gives you. a global web.xml is simply a plus, I don't think the spec mandates it. I think the workaround ie: recompile WebXmlReader) is all most people need. Good Luck, Kenneth Topp --- to unsubscribe: [EMAIL PROTECTED] for more info: http://jakarta.apache.org/getinvolved/mail.html sorry, it's simply not supported. I have yet to hear any developer response on this list about cleaning up docs mentioning that is supported. I just recompiled WebXmlReader.java to use jikes (one line), and was done with it. In fact, the global web.xml is a feature point of 4.0mX (ie: it's working again). I wouldn't expect it back... Alberto Silva - [EMAIL PROTECTED] - -o) http://www.nmp.es - +34 948 19 79 83 - /\ GNU/Linux Registered and Supporter User N.122522 _\_v Ordenagailu baten gauzarik garrantzitsuena aulkia eta teklatuaren artean dago
Re: where is xml.jar
Thank you Arturo, your wisdom really enriches this list!! --- Arturo Gaona [EMAIL PROTECTED] wrote: On Fri, 03 Nov 2000, you wrote: does any body no where I can get the xml.jar that jakarta-tomcat needs for installation __ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/ DON' T BE FOCKING! . !! . __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/
Re: JSP getProperty issue - does not return data
Here are my two beans: Profile: package proto; import java.util.*; import java.sql.*; public class Profile { private String account; public Profile() { super(); } public Profile ( String account ) { super(); } public void setAccount(String account){ this.account = account; } public String getAccount() { return this.account; } public Address loadAddresses(String account) { Address addr = new Address(); addr.setAccount(account); return addr; } } Address: package proto; import java.util.*; import java.sql.*; public class Address { private String city; private String account; public Address() { super(); this.city = null; this.account = null; } public Address( String account, String city ) { this.account = account; this.city = city; } public Address(String account) { this.setAccount(account); } public java.lang.String getAccount() { return account; } public void setAccount(java.lang.String newAccount) { account = newAccount; } public java.lang.String getCity() { return city; } public void setCity(java.lang.String newCity) { city = newCity; } } Thanks for any help Toby Piper wrote: get/set work fine for me. If I take your code/notes literally then you are outputting the JSP tags instead of actually executing them. However if this is your actual code then it looks Ok. You might try putting the useBean tag before any HTML tags - however I don't think that's supposed to matter, but it's where mine are and they work there. I suspect the problem is with your JAVA code itself. We need to look at your java code to see if you are calling it properly from the JSP. So please post an example of your code. -Original Message- From: Dan Lovell [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 7:52 AM To: [EMAIL PROTECTED] Subject: JSP getProperty issue - does not return data Is anyone having trouble using the JSP tags for set and get property. They do not seem to work. I am using Tomcat 3.1 on Win NT. td%= addrsProfile.getCity() % /td works ** tdjsp:getProperty name="addrsProfile" property="city"/ /td does not work * Here is my JSP page: %@ page contentType="text/html;charset=WINDOWS-1252"% HTML HEAD META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252" META NAME="GENERATOR" CONTENT="Oracle JDeveloper" TITLE JSP Issue - Get Property /TITLE /HEAD BODY H2The following output is from JSP code:/H2 jsp:useBean id="profile" class="proto.Profile" jsp:setProperty name="profile" property="account" value = "18190" / /jsp:useBean jsp:useBean id="addrsProfile" class="proto.Address" /jsp:useBean % proto.Address addrs = profile.loadAddresses("18190"); addrsProfile = addrs; % table trth colspan="2" Address Information for Client /th/tr trtdCity 1/tdtdCity 2/td tr td%= addrsProfile.getCity() % /td tdjsp:getProperty name="addrsProfile" property="city"/ /td /tr /table /HTML Any help would be great. Thanks
Tomcat IIS problem with W2K?
Hi, I've installed the Tomcat IIS according to the directions that came along with the Tomcat 3.1 release. The system is Windows 2000. A couple of things. First, the log file indicates that maybe something is malfunctioning. Is the attempt to create the second worker supposed to fail? [jk_uri_worker_map.c (111)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (144)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (158)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (214)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (214)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (243)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (264)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (98)]: Into wc_open [jk_worker.c (217)]: Into build_worker_map, creating 2 workers [jk_worker.c (223)]: build_worker_map, creating worker ajp12 [jk_worker.c (154)]: Into wc_create_worker [jk_worker.c (168)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (177)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (187)]: wc_create_worker, done [jk_worker.c (233)]: build_worker_map, removing old ajp12 worker [jk_worker.c (223)]: build_worker_map, creating worker ajp13 [jk_worker.c (154)]: Into wc_create_worker [jk_worker.c (164)]: wc_create_worker NULL factory for ajp13 [jk_worker.c (239)]: build_worker_map failed to create workerajp13 Second, according to the instructions, I should: Using the IIS management console, add isapi_redirect.dll as a filter in your IIS/PWS web site. I looked hard in both the Internet Services Manager and the Personal Web Manager for a way to do this, but couldn't find one, so I wound up editing the registry. Am I missing something? Thanks, - Steve Masticola.
jars in WEB-INF/lib
For JASPER to compile JSPs is it enough to simply have my jars in the lib directory. These are implicitly known to the classloader right? ie. I do not have to have these jars in my CLASSPATH right?
Re: Tomcat IIS problem with W2K?
Hi, Never mind -- the problem was that I was using an out-of-date version of isapi_redirect.dll. Using the 3.2beta6 version cured the problem. Thanks, - Steve.
Premature end of script headers?
Howdy, I'm getting an error in my tomcat-error log on every request that says [...] Premature end of script headers: /servlets/xxx What does that indicate? Thanks DK
How can I see my webapps classpath?
I want to print out the classpath that's associated with my web app not the system one but the one that tomcat is using for the web app after it's seen classes and lib. Is this possible?
RE: JK_NT_SERVICE
Raj, Those lines in wrapper.properties cause servlet stdout and stderr to be redirected the files jvm.stdout and jvm.stderr in the directory specified by wrapper.tomcat_home. The default behaviour should be just what you want. However, there is a bug in 3.2b6 that causes odd behaviour when these files already exist when the service starts. The service opens the files but doesn't seek the file pointer to EOF before starting to write to the files so the output isn't appeneded to the log files. The fix is trivial and I posted the diffs to tomcat-dev this morning. You might try deleting the jvm.stderr and jvm.stdout files and restarting tomcat to see if your servle output appears in the files. Marc -Original Message- From: Rajnish Bhaskar [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 3:56 AM To: [EMAIL PROTECTED] Subject: JK_NT_SERVICE Hi all, I'm using the JK_NT_SERVICE to run Tomcat (3.1) as a service on NT. I've been looking through the wrapper.properties file to try and find any way to save any output via System.out.println to a file, rather than disappearing into oblivion as seems to happen. I've found the following lines: wrapper.stdout=$(wrapper.tomcat_home)\jvm.stdout wrapper.stderr=$(wrapper.tomcat_home)\jvm.stderr This seems to redirect stdout and stderr to somewhere. How can I change these to point to a log file somewhere without mucking up the system? Thanks, Raj. -- Rajnish Bhaskar [EMAIL PROTECTED], http://i.am/rajy IT Education Unit, University of Glasgow http://www.iteu.gla.ac.uk/ -- Only buffoons refer to the Internet as the Information Superhighway. -- (The Rough Guide to the Internet 1999)
Re: Deploying a WAR with tomcat
Does anybody know if it will find .zip's the same way? The zip in question is Oracles think client driver classes12_01.zip On Mon, 6 Nov 2000, Nicholson Robert wrote: If I have a bunch of jars to deploy with tomcat I only have to put them in WEB-INF/lib right? What's the full documentation on how Tomcats classloaders work? I know that when you use cocoon you have to copy the jar to lib and put it in the CLASSPATH. When using a web application do I have to specifically add all jars to CLASSPATH even if they are in WEB-INF/lib ... If so why? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
RE: [tomcat-user] Re: $TOMCAT_HOME/conf/web.xml isn't readed inTomcat 3.2b6???
Hola a Todos: The posibility of use jikes to compile jsp, it's now in CVS for tomcat 3.3, the way jsp ( and almost everything ) are handled has changed, now everything it's an interceptor... Saludos , Ignacio J. Ortega
isapi_redirect.dll fails to load
Hi, I've gotten a little further. Now I'm getting the following error message in the system event log: The HTTP Filter DLL C:\java\jakarta-tomcat\bin\iis\i386\nt4\isapi_redirect.dll failed to load. The data is the error. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. The data is: : 7e 00 00 00 ~... The full contents of isapi.log follow. There are failed attempts to connect to sockets 572 and 592, which I don't understand. This happens with either the 96-kbyte version of the isapi_redirect.dll that comes with 3.2beta6 or the 112-kbyte one in http://jakarta.apache.org/builds/tomcat/release/v3.2-beta-6/bin/win32/i386/isapi_redirect.dll. At least one other fellow has this problem; see http://x71.deja.com/[ST_rn=ps]/getdoc.xp?AN=683897400CONTEXT=973547905.105447424hitnum=0 Help. Thanks, - Steve. [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 2 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [jk_ajp13_worker.c (708)]: Into ajp23_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [jk_ajp13_worker.c (383)]: Into jk_worker_t::validate [jk_ajp13_worker.c (396)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [jk_ajp13_worker.c (422)]: Into jk_worker_t::init [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 2 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]:
Question on what character encoding to use for URI-decoding
We are having a problem with running our servlets on different servlet containers when it comes to the URI-decoding of various parts of the request URI. Thankfully the 2.3 Servlet Spec addresses many of the problems by explicitly specifying what methods decode and what methods don't decode (for example getRequestURI() does not decode, but getPathInfo() does). However, the 2.3 spec remains unclear as to how exactly to convert a URI-encoded string into a java String, specifically what character set is to be used. The spec in most places simply says the returned value is decoded (and does not specify what character set is used). However in two places in the spec it does attempt to be more specific by saying "and characters ... are converted to ASCII characters." Saying that the octets are converted to ASCII characters is vague. ASCII (7bit ASCII) only specifies the first 127 characters, but the %xx notation allows you to pass any octet. What character set is used to convert these other octets (i.e. %80 - %ff) into characters? In looking at the HTTP1.1 (RFC 2616) and URI (RFC 2396) RFCs for guidance, here is what can be found. Section 2.1 of RFC 2396 (titled URI and non-ASCII characters) states: The relationship between URI and characters has been a source of confusion for characters that are not part of US-ASCII. Both the HTTP and URI RFCs make a distiction between octets (i.e bytes) and characters. To summarize what the RFCs say: The URI must use a limited set of ASCII characters for portability and other reasons. The content of the URI may be any set of octets (not limited to the ASCII subset of characters mentioned above). For octets that do not map to the allowable set of ACSII characters in the URI, these octets must be encoded with the % hex hex notation. As section 2.1 of RFC 2396 states, "There are two mappings, one from URI characters to octets, and a second from octets to original characters: URI character sequence-octet sequence-original character sequence". This means that RFC 2396 specifies how to convert the ASCII characters of the URI into octets, but a separate conversion of the octets to their original character sequence is necessary to get the resultant true set of characters. This spec also mentions using UTF-8 as the conversion method from these octets to characters (but doesn't require UTF-8). The HTTP RFC is actually quiet with regards to this character set issue for the conversion of the octets to characters, and essentially bypasses the issue by saying, "3.2.3 URI Comparison. When comparing two URIs to decide if they match or not, a client SHOULD use a case-sensitive octet-by-octet comparison of the entire URIs." By saying the comparison of URIs is based on the octets (not characters) the question of what character encoding is used to convert the octets to characters is avoided. (Perhaps the sevlet spec should also have methods that return byte[]'s to allow octet-by-octet comparison as the RFC states) Since the servlet spec defines certain methods (eg. getPathInfo()) to return a string (and since there is no method to get the raw octets), the character encoding issue comes into play with the servlet spec. The servlets we provide in our product support multi-lingual file names using unicode. We use the UTF-8 character encoding to convert the unicode characters into octets for the URI. These octets are then encoded into ASCII characters according to RFC 2396. All of this is completely in line with the RFCs. So for example a Thai character in unicode is represented as three octets in the UTF8 character encoding. So if we have a file named "/mydocs/a Thai character.doc" and we want to make a valid URI of this file it would appear as: http://server/servlet/fileservlet/mydocs/%xx%yy%zz.doc where the unicode string "/mydocs/a Thai character.doc" is converted to octets using the UTF-8 encoding, this set of octets is then encoded with the % hex hex notation to make a valid URI. The problem arises when we receive one of these URIs from the servlet container. Since the servlet spec states that the getPathInfo() method returns a string and the string must be decoded, the servlet container must make some assumption on what character encoding to use to convert the octets into a string. As long as the servlet spec clearly states what character encoding is used to convert the octets of the URI into a string, I am then able to undo that to get the raw octets back so that I can convert them to the correct character encoding for my application (UTF-8). If the servlet spec isn't clear on this point and different servlet container implementations use different character encodings, I have no way of getting the correct characters in a portable application. I need to write servlet container specific code to do the correct thing. So I would suggest that the servlet spec be clarified to specifically state which character encoding is used to convert the octets
;'s at the end of jsp:expr's allowed?
SHould tomcat's JASP compiler be able to compile expressions that are terminated with ;'s? I thought you could optionally terminate the expresses with ;'s the problem is that is generates out.print(string;); which won't compile
Re: Tomcat IIS problem with W2K?
Having just been through this today myself, I can at least maybe help with the question about filters. I did: *) right-click on My Computer; go to Manage/Services and Applications/Internet Information Services/[your Web site] *) right-click on the site to bring up Properties *) click on the ISAPI Filters tab *) click on Add; enter jakarta at Filter Name and the path to isapi_redirect.dll in Executable. *) Click on ok *) restart IIS *) right-click on the Web site again, go to ISAPI filters again and see if you have a little green arrow pointing up. If so, you're good to go. If, like me, you missed a few crucial letters in the registry entries, hop into regedt32 again and double-check all the registry entries. Once you get 'em all just right it seems to work. Hope that helps. Good luck! Dave Halsted - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 06, 2000 2:40 PM Subject: Tomcat IIS problem with W2K? Hi, I've installed the Tomcat IIS according to the directions that came along with the Tomcat 3.1 release. The system is Windows 2000. A couple of things. First, the log file indicates that maybe something is malfunctioning. Is the attempt to create the second worker supposed to fail? [jk_uri_worker_map.c (111)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (144)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (158)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (214)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (214)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (243)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (264)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (98)]: Into wc_open [jk_worker.c (217)]: Into build_worker_map, creating 2 workers [jk_worker.c (223)]: build_worker_map, creating worker ajp12 [jk_worker.c (154)]: Into wc_create_worker [jk_worker.c (168)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (177)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (187)]: wc_create_worker, done [jk_worker.c (233)]: build_worker_map, removing old ajp12 worker [jk_worker.c (223)]: build_worker_map, creating worker ajp13 [jk_worker.c (154)]: Into wc_create_worker [jk_worker.c (164)]: wc_create_worker NULL factory for ajp13 [jk_worker.c (239)]: build_worker_map failed to create workerajp13 Second, according to the instructions, I should: Using the IIS management console, add isapi_redirect.dll as a filter in your IIS/PWS web site. I looked hard in both the Internet Services Manager and the Personal Web Manager for a way to do this, but couldn't find one, so I wound up editing the registry. Am I missing something? Thanks, - Steve Masticola.
Re: Tomcat IIS problem with W2K?
Thanks! Just got the green arrow. BTW, the 112 kbyte version of the DLL worked and the 96 kbyte version didn't. - Steve.
Is this a problem?
When I run tomcat, I get the following error. JSP's seem to execute OK, however.Is this a problem? If so, how do I fix it? Thanks java.lang.SecurityException: sealing violation at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92) at org.apache.struts.digester.Digester.getParser(Digester.java:284) at org.apache.struts.digester.Digester.parse(Digester.java:748) at org.apache.struts.example.DatabaseServlet.load(DatabaseServlet.java:282) at org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:175) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:276) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:132) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:227) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:201) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Digester.getParser: java.lang.SecurityException: sealing violation at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92) at org.apache.struts.digester.Digester.getParser(Digester.java:284) at org.apache.struts.digester.Digester.parse(Digester.java:748) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:619) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:291) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:276) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:132) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:227) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:201) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) - Original Message - From: "Immanuel, Gidado-Yisa" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 06, 2000 12:49 PM Subject: problems building struts I'm trying to build struts from CVS source, and I get to the point where it is preforming the XSLT on the web documenation. I get the error: org.apache.xalan.xslt.XSLProcessorException: File "D:\dev\morecvs \jakarta-struts\src\doc\struts-bean.xml" not found. But it is definitely there. platform: NT4/SP5 jdk: 1.3 ant: 1.1 Any suggestions as to what I'm doing wrong would be greatly appreciated. - Gidado Here's my actual ouput: CLASSPATH d:\jakarta\jakarta-ant11\lib\ant.jar;d:\classes\xerces_1_1_3.jar;d:\cl asses\servlet_2.2.jar;d:\classes\xalan_1_2_D02.jar;d:\java\jdk1.3\lib\tools. jar Buildfile: build.xml prepare.library: compile.library: [javac] Compiling 127 source files to D:\dev\morecvs\build\struts\library\cl asses Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. [style] Transforming into D:\dev\morecvs\build\struts\library [style] Loading stylesheet
off topic..Load on tomcat
If I want to check out my new web application (Say..onTomcat),what are the performance issues I should consider?What are the methods to be adopted to test out the parameters related to performance?I am new to this kind of thing?Pl help. Ravi __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/
Tomcat JNDI
I am trying to tie Tomcat with JNDI to use J2EE pattern to obtain resources: Context context = new InitialContext(); dataSource = (DataSource)context.lookup("java:comp/env/jdbc/myDataSource"); (I know Tomcat team is planning to have it for Tomcat 4 eventually) I have my own little in memory JNDI implementation with support for java:comp URLs and it works fine but provides one global JNDI for all contexts defined in server.xml while it should be context specific. Basically the problem is how to make InitialContext() tomcat context aware (to be precise to make my java:comp namespace to start from different roots depending on where InitialContext was created). If AdaptiveClassLoader had some context info in it I could get it from there while creating InitialContext. Any ideas are greatly appreciated Alex
Re: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
Paul Simon wrote: Would anyone have any ideas on why I am getting this error when running: /jakarta-tomcat# sh build.sh This is Slackware. Thanks in advance. The most likely cause is that you do not have Ant installed (and built) where the script thinks it is (../jakarta-ant relative to where your Tomcat sources are). The README file in the top level directory has detailed instructions on what has to be where. Craig McClanahan
Re: J2EE access to Tomcat
Thom Park wrote: Hi All, I'm attempting to understand how hte J2EEAdapter and J2EEinterceptor codeline works. More specifically I'm trying to understand how the J2EE stuff plugs in to a vanilla Tomcat 3.2 instance. My end goal is to plug the standalone Tomcat into a J2EE environment and I'm not sure where to begin as the code is pretty devoid of comments on how it's put together. I understand that the failing is mine (being unable to piece together this from the source code) however can anyone point me in the correct direction such that I can understand what role the J2EEAdapter J2EEInterceptor perform in the running tomcat environment. The J2EE code you are looking at is designed to support Tomcat itself being integrated inside a J2EE server. (It was required because a modified version of Tomcat 3.0 is the servlet container inside the J2EE 1.2 reference implementation). It won't do you any good by itself. I can't seem to find any references in the web.xml loading code other than env-entry - does this mean that the defaul tomcat has no support ofr ejb-ref and resource-ref? That is correct for Tomcat 3.x. In Tomcat 4.0, code to process these entries, and create the corresponding JNDI initial context, has been added in the last couple of days (since milestone 4). As far as I can tell the code that does support these seems to be custom-coded for the webservice bundled with the J2EE SDK so I can't honestly tell what works with the standalone tomcat and what doesn't. Sorry if I'm not being clear - any help guidance would be gratefully appreciated. I expect I'll have a better understanding of this tomorrow after I've trawled through the code some more. -Thom p.s. If this is the wrong email list to mail to please accept my apologies and perhaps some kind soul can point me at the correct one! If your goal is to write servlets that talk to EJBs, what you want to do is decide what EJB server you want to use, then use its documentation to describe how servlets can be used to access them. Some engines (like Jonas, I think) have Tomcat integrated inside. I've seen notes that others support Tomcat running in a separate process but still accessing the EJBs. Craig McClanahan
Re: [tomcat-user] Re: $TOMCAT_HOME/conf/web.xml isn't readed inTomcat 3.2b6???
hi, I want to use tomcat 4 , but after I run startup.sh, it always says Can't find class org.apache.catalina.startup.Bootstrap in catalina.out, how come to this? rgds sun
Re: Starting TomCat
Title: Starting TomCat A couple of suggestions (I assume you are using a Win platform as you are mentioning bat files...): a) install tomcat in a path with no spaces (i.e. do not use Program files). Rename the jakarta-tomcat directory to tomcat. I suggest you install it at the root level (d:\tomcat) b) configure your environment space. There are several ways to do this - one is adding a line with CommandEnvSize=4096 to the NonWindowsApp section of your system.ini. c) be sure that you are setting TOMCAT_HOME and JAVA_HOME properly (usually in your \autoexec.bat). Also configure your classpath,if you need one. d) there is a very nice tool JustGo that you can use if you definitely are not able to start Tomcat. see http://www.geocities.com/jdrudnicki/ Many issues related to configure and run Tomcat have been posted in this mailing list. I would also suggest you spend some time looking in the archives of this and other mailing list, the documentation, etc. Julio Serje - Original Message - From: Tom Carroll To: '[EMAIL PROTECTED]' Sent: Monday, November 06, 2000 1:17 PM Subject: Starting TomCat Have used TOMCAT at all? I'm trying to configure the system and according to their documentation all I need to do is run the BAT file called TOMCAT with a parameter of RUN or START. It end up blowing up on a CLASSDEFNOTFOUND error. After looking at the BAT file, I see that its trying to lauch a JAVA program "org.apache.tomcat.startup.Tomcat ". The install didn't even create a "org.apache.tomcat.startup.Tomcat" directory or file. I do have a "src.org.apache.tomcat.startup.Tomcat.java", but this source only. It doesn't make any mention abount having to build the system. Any thoughts? Did I down load the wrong thing? Thanks Tom Carroll
RE: jars in WEB-INF/lib
A trick that I use to avoid having to build jars every time I recompile is to hack the tomcat.bat (or tomcat.sh, depending on OS) to add my development classpaths to its own. I put 2 shortcuts on my desktop to start and stop tomcat (in debug mode). Now I can restart tomcat quickly, and even use remote debugging to attach a debugger to it when I desire. Much, much better :-) -Original Message- From: James Cribb [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 3:57 PM To: '[EMAIL PROTECTED]' Subject: RE: jars in WEB-INF/lib | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] | To: [EMAIL PROTECTED] | Subject: jars in WEB-INF/lib | | | For JASPER to compile JSPs is it enough to simply have my | jars in the lib directory. These are implicitly known to the | classloader right? | | ie. I do not have to have these jars in my CLASSPATH right? Correct. Also, if jars are in WEB-INF/lib and NOT in CLASSPATH, and the context has the "reloadable=true" attribute set in server.xml, Tomcat will automatically reload the jars if they change. This means you don't have to keep restarting Tomcat while you're developing your jars -- very useful. The secret is that you need different CLASSPATHs for compiling your java files and for running Tomcat. It took me two months to discover this, it is so poorly documented, I thought I'd better share it.
Setting Tomcat to Cooperate with the Apache Web Server
Hi All, I installed Tomcat 3.1 as a stand-alone container and tested it. Next, I tried to set Tomcat to cooperate with the Apache Web Server, but I could not. Please can you help my to fix the problem? I made the following steps: 1- Copying the tomcat-apache.conf file to my-tomcat-apache.conf and making minor changes. The my-tomcat-apache.conf contains the following: LoadModule jserv_module modules/ApacheModuleJServ.dll ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8007 AddType test/jsp .jsp AddHandler jserv-servlet .jsp Alias /examples "C:\Program Files\Apache Group\tomcat\webapps\examples" Directory "C:\Program Files\Apache Group\tomcat\webapps\examples" Options Indexes FollowSymLinks /Directory ApJServMount /examples/servlet /examples Location /examples/WEB-INF/ AllowOverride None deny from all /Location Alias /test "C:\Program Files\Apache Group\tomcat\webapps\test" Directory "C:\Program Files\Apache Group\tomcat\webapps\test" Options Indexes FollowSymLinks /Directory ApJServMount /test/servlet /test Location /test/WEB-INF/ AllowOverride None deny from all /Location ApJServMount /servlet /ROOT 2- Adding the following line to the end of httpd.conf file. Include "C:\Program Files\Apache Group\tomcat\conf\my-tomcat-apache.conf" 3- Copying ApacheModuleJServ.dll to modules. 4- Starting Apache. The following is the output of Apache: Apache/1.3.12 (Win32) tomcat/1.0 running 5- Trying the following URLs: http://localhost:8080/ http://localhost:8080/examples http://localhost:8080/examples/servlet http://localhost:8007/ http://localhost:8007/examples http://localhost:8007/examples/servlet Thank you in advance. __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/
RE: how to run a class on startup of tomcat ?? support of java transaction service in tomcat
Hi, Thanks for ur info.. we are able to run the class at startup. We changed the org.apache.tomcat.startup.Tomcat class to start our class. But your idea is more intelligent. We shall try with that. One more help needed - want to know how we can achieve support of java transaction service in tomcat. I know tomcat is only a servlet engine, but still if there are any add-ons which will gives us support for java transaction service, it will be great. Thanks Regards, Sudheshna.M. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ache.org]On Behalf Of Christian Mack Sent: Monday, November 06, 2000 5:22 PM To: '[EMAIL PROTECTED]' Subject: RE: how to run a class on startup of tomcat ?? Hi Sudheshna That's easy. Just use a servlet which gets startet on tomcats startup. In it's init() just start your Runnable. The doXXX() methods are empty, as this servlet will never be called. Tschau Christian -Original Message- From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 7:25 AM To: [EMAIL PROTECTED] Cc: Subhashini Chirunomula; Marthi Nalini Subject: how to run a class on startup of tomcat ?? Hi All, We have a startup class which needs to be run when tomcat is started. Could anyone pl. tell us how it is possible. The startup class is not a servlet, it implements runnable and it in turn starts some more threads. Thanks, Sudheshna.M.
Tomcat JNDI
I am trying to tie Tomcat with JNDI to use J2EE pattern to obtain resources: Context context = new InitialContext(); dataSource = (DataSource)context.lookup("java:comp/env/jdbc/myDataSource"); (I know Tomcat team is planning to have it for Tomcat 4 eventually) I have my own little in memory JNDI implementation with support for java:comp URLs and it works fine but provides one global JNDI for all contexts defined in server.xml while it should be context specific. Basically the problem is how to make InitialContext() tomcat context aware (to be precise to make my java:comp namespace to start from different roots depending on where InitialContext was created). If AdaptiveClassLoader had some context info in it I could get it from there while creating InitialContext. Any ideas are greatly appreciated Alex
Re: Tomcat JNDI
"Roytman, Alex" wrote: I am trying to tie Tomcat with JNDI to use J2EE pattern to obtain resources: Context context = new InitialContext(); dataSource = (DataSource)context.lookup("java:comp/env/jdbc/myDataSource"); (I know Tomcat team is planning to have it for Tomcat 4 eventually) Interesting timing ... the code to do this (in Tomcat 4) was added just in the last couple of days (after milestone 4). I have my own little in memory JNDI implementation with support for java:comp URLs and it works fine but provides one global JNDI for all contexts defined in server.xml while it should be context specific. Basically the problem is how to make InitialContext() tomcat context aware (to be precise to make my java:comp namespace to start from different roots depending on where InitialContext was created). If AdaptiveClassLoader had some context info in it I could get it from there while creating InitialContext. If I recall correctly, it's actually sort of tricky to get this right. You might want to check the source for the Tomcat 4 implementation for ideas -- I believe it depends on the servlet container calling Thread.setContextClassLoader() once you know which webapp you're running in. This only works in a Java2 environment, though. Any ideas are greatly appreciated Alex Craig McClanahan
Trouble installng Tomcat on (Debian) Linux
[This is an update and re-post; as I got no reply and am still stuck] I installed tomcat on my Debian Linux system from http://master.debian.org/~sgybas/tomcat Apache runs fine, but I have tomcat problems. Jserv worked fine also, but I un-installed it and installed tomcat. 1) How do I test it with their examples? There is a webapps/examples.war; how do I invoke it? I inferred: //localhost/examples/Hello, is this correct? 2) I want to run with Apache, so I started tomcat manually, then includeed the apache-tomcat.conf file into /etc/apache/httpd.conf. I get an error that: [Mon Nov 6 11:14:02 2000] [warn] Loaded DSO libexec/mod_jserv.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) [Mon Nov 6 11:14:02 2000] [warn] pid file /var/run/apache.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Nov 6 11:14:03 2000] [notice] Apache/1.3.12 (Unix) Debian/GNU tomcat/1.0 configured -- resuming normal operations [Mon Nov 6 11:14:03 2000] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) 3) If I try to connect to a .jsp file, I get: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. and: omega:/etc/apache/logs# cat /etc/apache/logs/mod_jserv.log [06/11/2000 11:21:05:257] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007 [06/11/2000 11:21:05:257] (EMERGENCY) ajp12: connection fail [06/11/2000 11:21:05:258] (ERROR) an error returned handling request via protocol ajpv12 4) I tried to look at examples.war, jar -vft examples.jar, but it fails (see below), yet the startup (more below) seems to have successfully loaded them? omega:/usr/share/java/webapps# jar vft examples.war java.io.IOException: CRC of 0 is not valid in a DATA header at java.lang.Throwable.fillInStackTrace(Throwable.java:native) at java.lang.Throwable.init(Throwable.java:38) at java.lang.Exception.init(Exception.java:24) at java.io.IOException.init(IOException.java:25) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:137) at kaffe.tools.jar.Jar.listFilesInJar(Jar.java:605) at kaffe.tools.jar.Jar.processJar(Jar.java:402) at kaffe.tools.jar.Jar.start(Jar.java:60) at kaffe.tools.jar.Jar.main(Jar.java:39) 5) One concern in that the startup file (init.d/tomcat) says: # Look for the right JVM to use - Tomcat does not work with Kaffe! but the error below reports Kaffe, and indeed: omega:/etc/init.d# java !$ java -version Kaffe Virtual Machine Copyright (c) 1996-2000 Transvirtual Technologies, Inc. All rights reserved Engine: Just-in-time v3 Version: 1.0.6 Java Version: 1.1 In any case I never get any errors in tomcat.log (which in fact does not exist!) Thanks for any help. Gregory ([EMAIL PROTECTED]) I am running Debian Linux 2.2 w/ http://master.debian.org/~sgybas/tomcat/ (tomcat Version: 3.1.99b6-1) ibm-jdk1.1 (1.18) [ibm-jdk-l118-linux-x86.tgz] ibm-jre1.1 (1.18) [ibm-jre-l118-linux-x86.tgz] - omega:/usr/share/tomcat/bin# ./tomcat.sh run Guessing TOMCAT_HOME from tomcat.sh to ./.. Setting TOMCAT_HOME to ./.. Using classpath: .:./../lib/servlet.jar:./../lib/tomcat.jar:./../lib/xerces.jar org.apache.xerces.validators.datatype.InvalidDatatypeFacetException: [exception was kaffe.util.SupportDisabled: GNU gmp was not found by Kaffe configure script] at java.lang.Throwable.fillInStackTrace(Throwable.java:native) at java.lang.Throwable.init(Throwable.java:38) at java.lang.Exception.init(Exception.java:24) at org.apache.xerces.validators.datatype.XMLException.init(XMLException.java:line unknown, pc 0x83edb81) at org.apache.xerces.validators.datatype.InvalidDatatypeFacetException.init(InvalidDatatypeFacetException.java:line unknown, pc 0x851108a) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.createDatatypeValidator(DatatypeValidatorFactoryImpl.java:line unknown, pc 0x83491f2) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.createDatatypeValidator(DatatypeValidatorFactoryImpl.java:line unknown, pc 0x839bdfe) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.initializeRegistry(DatatypeValidatorFactoryImpl.java:line unknown, pc 0x83a71a7) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.init(DatatypeValidatorFactoryImpl.java:line unknown, pc 0x8337fca) at org.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl.clinit(DatatypeValidatorFactoryImpl.java:line unknown, pc 0x838826e) at org.apache.xerces.framework.XMLParser.init(XMLParser.java:line unknown, pc 0x8339456) at
Re: Trouble installng Tomcat on (Debian) Linux
Gregory Guthrie wrote: 1) How do I test it with their examples? There is a webapps/examples.war; how do I invoke it? Tomcat from the Debian package runs its HTTP listener on port 8081 (that's because 8080 is used by some other packages like junkbuster), so you have to access the pages as http://localhost:8081/. I get an error that: [Mon Nov 6 11:14:02 2000] [warn] Loaded DSO libexec/mod_jserv.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) Please use a never package version - this problem was fixed in 1.1-3 which is also in the release Debian 2.1. omega:/etc/apache/logs# cat /etc/apache/logs/mod_jserv.log [06/11/2000 11:21:05:257] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007 The AJP12 listener is disabled in the Debian package, you have to enable it in /etc/tomcat/server.xml. This could also mean that Tomcat is not running. 5) One concern in that the startup file (init.d/tomcat) says: "# Look for the right JVM to use - Tomcat does not work with Kaffe!" You'll have a lot of trouble if you try to use Kaffe with Tomcat, Please remove the kaffe package to change the java alternatives using update-alternatives to some other JVM. In any case I never get any errors in tomcat.log (which in fact does not exist!) There are some classes missing in Kaffe so I guess Tomcat does not start at all. -- Stefan Gybas
Re: Starting TomCat
After downloading the binaries, you should be able to extract the files and then launch startup.bat. A console window should display with Tomcat running. Here's a display of the extracted tomcat directory hierarchy. Test Tomcat by going to http://localhost:8080/. Good luck Tom Carroll wrote: Have used TOMCAT at all? I'm trying to configure the system and according to their documentation all I need to do is run the BAT file called TOMCAT with a parameter of RUN or START. It end up blowing up on a CLASSDEFNOTFOUND error. After looking at the BAT file, I see that its trying to lauch a JAVA program "org.apache.tomcat.startup.Tomcat ". The install didn't even create a "org.apache.tomcat.startup.Tomcat" directory or file. I do have a "src.org.apache.tomcat.startup.Tomcat.java", but this source only. It doesn't make any mention abount having to build the system. Any thoughts? Did I down load the wrong thing? Thanks Tom Carroll