RE: about singletons (ot)
Although possible it has several drawbacks. - Singletons that are just a class will never be garbage collected. Instance singletons can be, as soon as there is no reference to it. - If you want to pass that singleton around, you loose typesafty. (The singleton is just instance of java.lang.Class and nothing else) - You loose flexibility. E.g. Different singletons that implement the same interface, and objects that do something with instances that implement this interface. - There can be several versions of the same class as each classloader can have its own version. (This can also happen, with your other approach - You cant define interfaces for class that apply to the class. (Interfaces apply only to the instances of the class) Not that I recommend not to do it, but when you do it be aware of this drawbacks. (Some of the drawbacks can be overcome through the implementation of the class, but that is additional coding) -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 10:56 PM To: Tomcat Users List Subject: about singletons (ot) Normally we do that implementing a class that have its constructor as private, so no one can instantiate it, and a getInstance() method or something like it. We wouldn't have the same kind of behavior if we simply declare all class methods/fields as static? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP cannot find classes when app not under webapps.
Not sure this is a STRUTS question, but I am using STRUTS to implement this application and there might be somethign going on there that I am not aware of. This is what I am using: Struts 1.1b, Tomcat 4.1, J2SDK1.4.1. I have my jsp's installed under WEB-INF\jsp and my application is placed in a different (it is not under webapps in Tomcat). The confguration is fine in server.xml and web.xml. The issue is, when I hit one of the jsp's under my WEB-INF\jsp folder, Tomcat is unable to compile the jsp java classes it generates. It cannot find my classes under WEB-INF\classes which I am using in the page so it throws an exception. I also have my forward's correct in my struts-config.xml. When the application is installed under webapps in Tomcat, it runs fine. When I install it under a different directory on a different drive, I get this exception. Anyone got any ideas to deal with this? BTW, my application is under D:\WebApps\TomcatApps\My context Name Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: about singletons (ot)
That would depend on if the constructor actually *does* something. If it needs to set up a connection pool, parse an XML configuration file, or whatever, then you have the choice of, - doing this once, reliably, in the constructor, or - making sure that every single last static method checks to see if this has already been done. If the singleton needs to acquire, or process a resource in order to function, then 'construction is resource acquisition' should save a lot of typing and bug hunting. Dan. -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 21:56 To: Tomcat Users List Subject: about singletons (ot) These days I was thinking It's not so uncommon to have uses for singleton classes in our everyday lives. Normally we do that implementing a class that have its constructor as private, so no one can instantiate it, and a getInstance() method or something like it. We wouldn't have the same kind of behavior if we simply declare all class methods/fields as static? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can the JNDI Connection Pool re-connect after failure?
Boris Folgmann wrote: Ryan Cornia wrote: Anyone using JNDI datasources that reconnect in case of a lost link to the DB server? Any examples? I'm using the I-net driver for Oracle Interesting question. In fact I have the same problem, using DBCP and PostgreSQL. I looked trough the Javadocs at http://jakarta.apache.org/commons/dbcp/api/index.html but did not find a resource argument for configuring something like a reconnect. Any comments welcome. I believe that if you set up connection verification query in your DataSource definition in server.xml it will reconnect. Haven't tried it, though. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [OT] jspMyAdmin
-Ursprungliche Nachricht- Von: Henning Heil [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 28. Januar 2003 21:50 An: Tomcat Users List Betreff: [OT] jspMyAdmin Good evening! (or good-whatever daytime you may have :-)) I just found an older version (0.6) of this tiny little app, google can't find anything newer about it - does anyone more? Is the project stopped or renamed? Continued by sb else? I recieve an 500 when I start it, a taglib specified in the web.xml is not found although it's right in its place . . . mmmh, again a misconfiguration of my tomcat? Download the two taglibs and copy the jar's to tomcat/lib/common/ , restart Tomcat. and if if you fix the dam exception : The exception was: java.util.MissingResourceException: Can't find bundle for base name com.jspmyadmin.languages.english, locale de_DE The exception class was : class java.util.MissingResourceException let me know :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging JSPs
Hi there, I've asked some question before regarding remote debugging of JSPs with tomcat4. Since nobody has responded yet, I'll give it another try. Can anybody please tell me how they debug JSPs with tomcat4? Regards, Ron
Antwort: Debugging JSPs
I use Netbeans. You can get it at www.netbeans.org. NetBeans (current Version 3.4.1) use the integratet tomcat4.0.4 but I read somewhere that you can also debug remote. Dietmar Ron van Pol [EMAIL PROTECTED] am 29.01.2003 11:24:30 Bitte antworten an Tomcat Users List [EMAIL PROTECTED] An:Tomcat Users List (E-mail) [EMAIL PROTECTED] Kopie: Thema: Debugging JSPs Hi there, I've asked some question before regarding remote debugging of JSPs with tomcat4. Since nobody has responded yet, I'll give it another try. Can anybody please tell me how they debug JSPs with tomcat4? Regards, Ron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Debugging JSPs
On Wed, Jan 29, 2003 at 11:24:30AM +0100, Ron van Pol wrote: I've asked some question before regarding remote debugging of JSPs with tomcat4. Since nobody has responded yet, I'll give it another try. Can anybody please tell me how they debug JSPs with tomcat4? With great care and painstaking slowness :-). Seriously, I've played with the JPDA remote-debugging stuff for debugging complex servlets, but I didn't find it all that useful (though I didn't try that hard, and I was only using a half-implemented early version of JSwat, and arguably I was using it for the wrong sort of problem). However, I don't know how in the heck you'd use that to remote-debug JSPs. From my limited experience with JSPs, most of the bugs occur in either the JSP compiling stage, or in the process of running the resulting servlet. I would love ot see some flavor of JSP compiler that provided more helpful error messages, maybe even a sort of JSP lint tool. Lest I seem ungrateful to the Tomcat crew, I should note that I found Jasper, the JSP compiler that tomcat bundles, much more helpful than the ones bundled with Weblogic and JRun. However, either way, I don't think that's amenable to remote debugging, other than by just pushing the .JSP files up to the server and trying to load the page. Now, the alternative is that you're talking about bugs in the reuslting servlet code. If you're seeing significant amounts and complexity of bugs in the resulting servlet, you probably have too much java in your JSP. Move the java out to helper classes - javabeans, or taglibs, or even (in a pinch) just special servlets or singleton classes you can grab from your JSP. Now you can remote debug the helper classes the same way you would remote debug any java class. In case you haven't tried that, yet, that essentially boils down to starting the JVM with a special command-line option that sets up the remote debugger and has it listen on a port for your debugger's requests for information. See more about how to do that with tomcat here: http://www.bluemarsh.com/java/jswat/docs/howto-servlet.html There *must* be something on this topic at the jakarta website, right? I couldn't find it with a little surfing,... ah, *here* it is: http://jakarta.apache.org/site/idedev-rdtomcat.html Oh, hey, somebody on the JSwat user mailing list says they've figured out how to remote-debug JSPs with tomcaT: http://www.bluemarsh.com/pipermail/jswat-user/2002-September/001317.html It's amazing what you can do with a little web surfing :-) Don't feel too bad, though; I've googled fruitlessly for hours, in the past, and finally broke down and posted a request, only to have somebody come back with, Gee, I just plugged keyword-I-never-thought-to-try into google and the answer was on the first hit. Some days you get the bear, some days the bear gets you :-). Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.io.IOException - whats up?
Hi guys, I've gotten help from John Turner on this problem of mine (where /manager works, and /admin gives me a 404. The error logs have this output: - Root Cause - java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1313) at java.io.File.createTempFile(File.java:1401) at java.io.File.createTempFile(File.java:1438) at I'm not familiar enough with the admin app to know what it's trying to do there, but obviously it wants to create a file somewhere, and can't. Whatever it is, its happening right here: org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) ...and the last thing it was trying to do was: 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar Sowhat's up with that directory path? Anything? Permissions, etc.? Anyone else know exactly what's going on? the server process is run by root - and root can access the directory. Does anyone have an idea what's up ? it's tomcat-4.1.18(binaries package) on a Gentoo Linux server. -- Regards, Klavs Klavsen --| This mail has been sent to you by: | Klavs Klavsen - Open Source Consultant [EMAIL PROTECTED] - http://www.EnableIT.dk Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA Fingerprint = 2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 Open Source Software - Sometimes you get more than you paid for. -- unknown signature.asc Description: This is a digitally signed message part
Re: Can the JNDI Connection Pool re-connect after failure?
Nikola Milutinovic wrote: I believe that if you set up connection verification query in your DataSource definition in server.xml it will reconnect. Haven't tried it, though. Do you know that it was made for this purpose or are you simpley guessing from the Javavdoc? -- protected java.lang.String validationQuery The SQL query that will be used to validate connections from this pool before returning them to the caller. If specified, this query MUST be an SQL SELECT statement that returns at least one row. --- cu, boris -- Dipl.-Inf. Boris Folgmann mailto:[EMAIL PROTECTED] Folgmann IT-Consulting http://www.folgmann.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.io.IOException - whats up?
Klavs, From the error message, it sounds like: /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar cannot be created, probably because the directory structure required isn't there. If you canonicalise the path, you end up with the following: /opt/jakarta/tomcat/server/webapps/admin/WEB-INF/lib/struts.jar If you do an ls /opt/jakarta/tomcat/server/webapps/admin/WEB-INF/lib do you get a listing, or 'No such file or directory' ? I'm puzzled about where the 'server' path element came from - you would expect webapps to be in the 'tomcat' directory, not in 'tomcat/server'... What does ls /opt/jakarta/tomcat/server give you? Dan. -Original Message- From: klavs klavsen [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 11:22 To: [EMAIL PROTECTED] Subject: java.io.IOException - whats up? Hi guys, I've gotten help from John Turner on this problem of mine (where /manager works, and /admin gives me a 404. The error logs have this output: - Root Cause - java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1313) at java.io.File.createTempFile(File.java:1401) at java.io.File.createTempFile(File.java:1438) at I'm not familiar enough with the admin app to know what it's trying to do there, but obviously it wants to create a file somewhere, and can't. Whatever it is, its happening right here: org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig .java:930) ...and the last thing it was trying to do was: 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar Sowhat's up with that directory path? Anything? Permissions, etc.? Anyone else know exactly what's going on? the server process is run by root - and root can access the directory. Does anyone have an idea what's up ? it's tomcat-4.1.18(binaries package) on a Gentoo Linux server. -- Regards, Klavs Klavsen --| This mail has been sent to you by: | Klavs Klavsen - Open Source Consultant [EMAIL PROTECTED] - http://www.EnableIT.dk Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA Fingerprint = 2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 Open Source Software - Sometimes you get more than you paid for. -- unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.io.IOException - whats up?
Just a thought. Have you set your CATALINA_TMPDIR environment variable? Its default value is $CATALINA_BASE/temp which doesn't exist by default ;) klavs klavsen wrote: Hi guys, I've gotten help from John Turner on this problem of mine (where /manager works, and /admin gives me a 404. The error logs have this output: - Root Cause - java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1313) at java.io.File.createTempFile(File.java:1401) at java.io.File.createTempFile(File.java:1438) at I'm not familiar enough with the admin app to know what it's trying to do there, but obviously it wants to create a file somewhere, and can't. Whatever it is, its happening right here: org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) ...and the last thing it was trying to do was: 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar Sowhat's up with that directory path? Anything? Permissions, etc.? Anyone else know exactly what's going on? the server process is run by root - and root can access the directory. Does anyone have an idea what's up ? it's tomcat-4.1.18(binaries package) on a Gentoo Linux server. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.io.IOException - whats up?
On Wed, 2003-01-29 at 12:34, Daniel Brown wrote: Klavs, From the error message, it sounds like: /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar cannot be created, probably because the directory structure required isn't there. If you canonicalise the path, you end up with the following: /opt/jakarta/tomcat/server/webapps/admin/WEB-INF/lib/struts.jar If you do an ls /opt/jakarta/tomcat/server/webapps/admin/WEB-INF/lib do you get a listing, or 'No such file or directory' ? I get output: struts.jar so that seems fine. I'm puzzled about where the 'server' path element came from - you would expect webapps to be in the 'tomcat' directory, not in 'tomcat/server'... I'm new to tomcat - so I don't have a clue :) What does ls /opt/jakarta/tomcat/server give you? classes lib webapps Anything wrong? Please don't hesitate to ask, if you need more info, or need me to try anything. -- Regards, Klavs Klavsen --| This mail has been sent to you by: | Klavs Klavsen - Open Source Consultant [EMAIL PROTECTED] - http://www.EnableIT.dk Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA Fingerprint = 2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 Open Source Software - Sometimes you get more than you paid for. -- unknown signature.asc Description: This is a digitally signed message part
SOLVED: java.io.IOException - whats up?
On Wed, 2003-01-29 at 12:41, Jon Wingfield wrote: Just a thought. Have you set your CATALINA_TMPDIR environment variable? Its default value is $CATALINA_BASE/temp which doesn't exist by default ;) And a VERY GOOD thought at that :) That was the problem. Perhaps you should think about making the temp dir as default - or atleast write in the docs (is it there - and I just missed it?) - I know it's not in the Quick Start part - which I think it should be. Thank you very much everyone, for all your help. -- Regards, Klavs Klavsen --| This mail has been sent to you by: | Klavs Klavsen - Open Source Consultant [EMAIL PROTECTED] - http://www.EnableIT.dk Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA Fingerprint = 2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 Open Source Software - Sometimes you get more than you paid for. -- unknown signature.asc Description: This is a digitally signed message part
Jasper - classpath problem
hi! i'm using the jasper engine within the jetty server where i have a webapp including servlets and JSP. this usually works just fine. now i changed my app to be deployed via web start and created a custom classloader. the way my app is startet can be described like this: 1) extract/copy jar files to let's D:/myapp/lib 2) load the main class of my app from the jars in D:/myapp/lib. 3) this app starts my server including the jasper engine. when i run my JSP now they seem to get compiled into servlets but the class-file generation fails because all the packages it's using (e.g. javax.servlet) cannot be found. is there a way to tell jasper where to look ? i don't want to place them into the webapp/WEB-INF/classes because i'm using some classes that must not be loaded twice (there are static members that should be shared between the JSP's and the main application). can anybody help me out ?? thank in advance. __ Mit der Gruppen-SMS von WEB.DE FreeMail erreichen Sie mit einem Klick alle Freunde gleichzeitig! http://freemail.web.de/features/?mc=021180 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
define java_home environment
hi: how to define a JAVA_HOME environment variable in which the path of my JDK must be set. thankx - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: define java_home environment
use the command at command prompt set JAVA_HOME=the path of your jdk gautam At 12:19 AM 1/29/03 -0800, you wrote: hi: how to define a JAVA_HOME environment variable in which the path of my JDK must be set. thankx - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlets
Craig R. McClanahan wrote: On 28 Jan 2003, Felipe Schnack wrote: Date: 28 Jan 2003 19:26:27 -0200 From: Felipe Schnack [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: servlets So if I have just one servlet and servlet-mapping in my web.xml I have guarantee of one instance, don't I? Yes, as long as the servlet doesn't implement SingleThreadModel. MVC frameworks like Struts, where the controller is a singleton, rely on this. One /instance/, but many /threads/ right? Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I get the line number in a JSP .....
Is there something that I need to add to web.xml file so that I could get the line number of a JSP when an exception gets thrown? Currently, when a NullPointerException is thrown, it gives me only the line number in the translated .java file. Nandyal - Original Message - From: Nandyal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 9:33 PM Subject: How do I get the line number in a JSP . Gurus, How do I get the line number in a JSP, when an exception occurs? Currently, the stack trace prints NullPointerException and says Unkown source. Any help would be highly appreciated. Thanks Sesha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about singletons (ot)
Mike Jackson wrote: The difference is that if you use a singleton there's one instance. If everything is static then you only have one copy. Usually when you use a singleton it's to control access to some resource, the intent is that you use the singleton and some synchronized calls (note I don't mean synchronized methods, but synchronized code blocks) to control threads using that resource. Why could you not use synchronized methods? Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: define java_home environment
It may differ from one Operational System to another... If you're using Unix (bash) for example it is: export JAVA_HOME=path []'s Tiago. -Mensagem original- De: gautamjha [mailto:[EMAIL PROTECTED]] Enviada em: quarta-feira, 29 de janeiro de 2003 09:51 Para: Tomcat Users List Assunto: Re: define java_home environment use the command at command prompt set JAVA_HOME=the path of your jdk gautam At 12:19 AM 1/29/03 -0800, you wrote: hi: how to define a JAVA_HOME environment variable in which the path of my JDK must be set. thankx - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I get the line number in a JSP .....
Go to Tomcat's work directory. Drill down within that directory until you find that java file. All JSPs are converted to .java files, then compiled into servlets by Tomcat (or rather, Jasper). Open up the java file in an editor, go to that line number. John -Original Message- From: Nandyal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 7:37 AM To: Tomcat Users List Subject: Re: How do I get the line number in a JSP . Is there something that I need to add to web.xml file so that I could get the line number of a JSP when an exception gets thrown? Currently, when a NullPointerException is thrown, it gives me only the line number in the translated .java file. Nandyal - Original Message - From: Nandyal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 9:33 PM Subject: How do I get the line number in a JSP . Gurus, How do I get the line number in a JSP, when an exception occurs? Currently, the stack trace prints NullPointerException and says Unkown source. Any help would be highly appreciated. Thanks Sesha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context problem, urgent!
Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie
Re: How do I get the line number in a JSP .....
Thanks John, I have done that. I think, my question was not clear. In Weblogic, you could set the following tags: jsp-descriptor jsp-param param-namedebug/param-name param-valuetrue/param-value /jsp-param /jsp-descriptor in web.xml file to get the line number of the exception directly from the .jsp file. Is there something similar to this in tomcat by which I can get the line number? Thanks Nandyal - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 6:17 AM Subject: RE: How do I get the line number in a JSP . Go to Tomcat's work directory. Drill down within that directory until you find that java file. All JSPs are converted to .java files, then compiled into servlets by Tomcat (or rather, Jasper). Open up the java file in an editor, go to that line number. John -Original Message- From: Nandyal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 7:37 AM To: Tomcat Users List Subject: Re: How do I get the line number in a JSP . Is there something that I need to add to web.xml file so that I could get the line number of a JSP when an exception gets thrown? Currently, when a NullPointerException is thrown, it gives me only the line number in the translated .java file. Nandyal - Original Message - From: Nandyal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 9:33 PM Subject: How do I get the line number in a JSP . Gurus, How do I get the line number in a JSP, when an exception occurs? Currently, the stack trace prints NullPointerException and says Unkown source. Any help would be highly appreciated. Thanks Sesha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error compiling mod_jk
Hi list! My platform is HPUX 11.0, Tomcat 3.3.1, Apache 1.3.19 The command I'm using to compile is: apxs -I$JAVA_HOME/include -I$JAVA_HOME/include/hpux -I../jk -o mod_jk.so -c *.c ../common/*.c The error msg I've got is: gcc -DHPUX11 -DMOD_SSL=208103 -I/usr/local/php-4.0.6 -I/usr/local/php-4.0.6/main -I/usr/local/php-4.0.6/main -I/usr/local/php-4.0.6/Zend -I/usr/local/php-4.0.6/ Zend -I/usr/local/php-4.0.6/TSRM -I/usr/local/php-4.0.6/TSRM -I/usr/local/php-4. 0.6 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -DKRB5 -I/usr/local/a pache/include -I/opt/java1.3/include -I/opt/java1.3/include/hpux -I../jk -c ../ common/jk_worker.c In file included from ../common/jk_global.h:69, from ../common/jk_logger.h:65, from ../common/jk_ajp12_worker.h:65, from ../common/jk_worker_list.h:80, from ../common/jk_worker.c:63: /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28: warning: `__va__list' redefined /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: t his is the location of the previous definition -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o j k_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o apxs:Break: Command failed with rc=16777215 Thanks for your help !! Gustavo A. Edelstein
RE: How do I get the line number in a JSP .....
Don't know. Check the web.xml DTD, that will tell you exactly what is allowed and what isn't. John -Original Message- From: Nandyal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 8:18 AM To: Tomcat Users List Subject: Re: How do I get the line number in a JSP . Thanks John, I have done that. I think, my question was not clear. In Weblogic, you could set the following tags: jsp-descriptor jsp-param param-namedebug/param-name param-valuetrue/param-value /jsp-param /jsp-descriptor in web.xml file to get the line number of the exception directly from the .jsp file. Is there something similar to this in tomcat by which I can get the line number? Thanks Nandyal - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 6:17 AM Subject: RE: How do I get the line number in a JSP . Go to Tomcat's work directory. Drill down within that directory until you find that java file. All JSPs are converted to .java files, then compiled into servlets by Tomcat (or rather, Jasper). Open up the java file in an editor, go to that line number. John -Original Message- From: Nandyal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 7:37 AM To: Tomcat Users List Subject: Re: How do I get the line number in a JSP . Is there something that I need to add to web.xml file so that I could get the line number of a JSP when an exception gets thrown? Currently, when a NullPointerException is thrown, it gives me only the line number in the translated .java file. Nandyal - Original Message - From: Nandyal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 9:33 PM Subject: How do I get the line number in a JSP . Gurus, How do I get the line number in a JSP, when an exception occurs? Currently, the stack trace prints NullPointerException and says Unkown source. Any help would be highly appreciated. Thanks Sesha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Context problem, urgent!
Hi, To set an application to be in the root context, use: Context path= docBase=ROOT debug=0 reloadable=true crossContext=true/ BTW: I don't know if you can nest Contexts. Cheers, János | -Original Message- | From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, January 29, 2003 2:00 PM | To: '[EMAIL PROTECTED]' | Subject: Context problem, urgent! | | | | Hi, | | In Tomcat4, I can not get the right context of other webapp | from my app. My app is set as the doc root. For example I | have configuration like | | Context path= docBase=MyApp debug=0 reloadable=true | crossContext=true/ Context path=/OtherApp | docBase=OtherApp debug=0 reloadable=true crossContext=true/ | | in server.xml. But the difference from in Tomcat3.2 is, when | I user the following statement in my servlet: | | ServletContext sc = | this.getServletConfig().getServletContext().getContext(/OtherApp); | | sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, | response); | | Tomcat can not find the OtherApp context! | | Can anybody help? This is really urgent! | | Many thanks in advance! | | Annie | | | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I get the line number in a JSP .....
Tomcat cannot do this at this point. It would be an enhancment to Jasper. Patches are greatly welcome to implement this. -Tim Nandyal wrote: Thanks John, I have done that. I think, my question was not clear. In Weblogic, you could set the following tags: jsp-descriptor jsp-param param-namedebug/param-name param-valuetrue/param-value /jsp-param /jsp-descriptor in web.xml file to get the line number of the exception directly from the .jsp file. Is there something similar to this in tomcat by which I can get the line number? Thanks Nandyal - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 6:17 AM Subject: RE: How do I get the line number in a JSP . Go to Tomcat's work directory. Drill down within that directory until you find that java file. All JSPs are converted to .java files, then compiled into servlets by Tomcat (or rather, Jasper). Open up the java file in an editor, go to that line number. John -Original Message- From: Nandyal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 7:37 AM To: Tomcat Users List Subject: Re: How do I get the line number in a JSP . Is there something that I need to add to web.xml file so that I could get the line number of a JSP when an exception gets thrown? Currently, when a NullPointerException is thrown, it gives me only the line number in the translated .java file. Nandyal - Original Message - From: Nandyal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 9:33 PM Subject: How do I get the line number in a JSP . Gurus, How do I get the line number in a JSP, when an exception occurs? Currently, the stack trace prints NullPointerException and says Unkown source. Any help would be highly appreciated. Thanks Sesha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaBean problem
I am a bit confused about creating packages for javabeans. I am working thru a book titled JSP Weekend Crash Course which mentions nothing about compiling the bean into a package or using an include statement in the JSP page. Is the book incorrect or is this also a viable solution. --- Wilson Snook [EMAIL PROTECTED] wrote: So, instead of WEB-INF/classes/MyBean, it would be something like WEB-INF/classes/com.mypackage.MyBean What works for me is: MyBean: (declaration at top of bean class file) package com.mypackage; Directory structure: WEB-INF = classes = com = mypackage = MyBean Note that the package declaration uses fullstops (periods in American) and the directory path has a separate directory for com and mypackage, the bean residing in the latter. Does WEB-INF = classes = com.mypackage = MyBean also work? Regards, Wilson (newbie) - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 4:34 AM Subject: Re: JavaBean problem Is the bean in an actual defined package or the default package (no package). It *must* be in a package. So, instead of WEB-INF/classes/MyBean, it would be something like WEB-INF/classes/com.mypackage.MyBean Now import the com.mypackage.MyBean bean into your jsp. Things should work better now. Jake At 05:38 PM 1/28/2003 -0800, you wrote: I have just created and compiled my first JavaBean into tomcat-install\webapps\ROOT\WEB-INF\classes and am tying to access it from a jsp page in tomcat-install\webapps\ROOT directory. I am getting jsp compile errors because the jsp page cannot find the class defined in the JavaBean. Any help would be appreciated. My version of tomcat is 4.1.18. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I get the line number in a JSP .....
Thank you Tim and John for your replies. Nandyal - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 6:28 AM Subject: Re: How do I get the line number in a JSP . Tomcat cannot do this at this point. It would be an enhancment to Jasper. Patches are greatly welcome to implement this. -Tim Nandyal wrote: Thanks John, I have done that. I think, my question was not clear. In Weblogic, you could set the following tags: jsp-descriptor jsp-param param-namedebug/param-name param-valuetrue/param-value /jsp-param /jsp-descriptor in web.xml file to get the line number of the exception directly from the .jsp file. Is there something similar to this in tomcat by which I can get the line number? Thanks Nandyal - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 6:17 AM Subject: RE: How do I get the line number in a JSP . Go to Tomcat's work directory. Drill down within that directory until you find that java file. All JSPs are converted to .java files, then compiled into servlets by Tomcat (or rather, Jasper). Open up the java file in an editor, go to that line number. John -Original Message- From: Nandyal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 7:37 AM To: Tomcat Users List Subject: Re: How do I get the line number in a JSP . Is there something that I need to add to web.xml file so that I could get the line number of a JSP when an exception gets thrown? Currently, when a NullPointerException is thrown, it gives me only the line number in the translated .java file. Nandyal - Original Message - From: Nandyal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 9:33 PM Subject: How do I get the line number in a JSP . Gurus, How do I get the line number in a JSP, when an exception occurs? Currently, the stack trace prints NullPointerException and says Unkown source. Any help would be highly appreciated. Thanks Sesha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with addjoin with mysql database
Hi , The following method in screen class returns the data without any problem if the database used is Oracle 8i and when I change the database to mysql the method returns null value. private Vector getPatientRegnData(){ try { String strPin=1; String strEncNo=1; Criteria criteria = new Criteria(); /* columns from his_mas_patregn table /* criteria.addJoin(HisMasPatregnPeer.IPAT_INO_PREG,HisTrxPatrevisitPeer.IPAT_I NO_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_INO_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_TITLE_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_FNAME_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_MNAME_PREG ); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_LNAME_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_SEX_PREG); criteria.addSelectColumn(HisMasPatregnPeer.DTPAT_DOB_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_TYPE_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_BLDGRP_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_IDFNMARKS_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_MRLSTS_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_ADDR_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_AREA_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_CITY_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_STATE_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_CTRY_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_ZIP_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_PHONE_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_ATNDOC_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IPAT_REFBY_PREG); criteria.addSelectColumn(HisMasPatregnPeer.SPAT_NOTES_PREG); criteria.addSelectColumn(HisMasPatregnPeer.DTPAT_REGDT_PREG); criteria.addSelectColumn(HisMasPatregnPeer.DTCRT_DATE_PREG); criteria.addSelectColumn(HisMasPatregnPeer.DTMDF_DATE_PREG); criteria.addSelectColumn(HisMasPatregnPeer.ICRT_BY_PREG); criteria.addSelectColumn(HisMasPatregnPeer.IMDF_BY_PREG); /* columns from his_trx_patrevisit table /* criteria.addSelectColumn(HisTrxPatrevisitPeer.IPAT_ENCNO_PRVT); criteria.addSelectColumn(HisTrxPatrevisitPeer.DTPAT_RVTDTTM_PRVT); Criteria.Criterion a1 = criteria.getNewCriterion(HisMasPatregnPeer.IPAT_INO_PREG,strPin,Criteria.LIK E); Criteria.Criterion b1 = criteria.getNewCriterion(HisTrxPatrevisitPeer.IPAT_ENCNO_PRVT,strEncNo,Crite ria.LIKE); criteria.add(a1.and(b1)); return HisMasPatregnPeer.doPSSelect(criteria); } catch (Exception e) { return null; } } I also did some debugging and found that if I comment columns from his_trx_patrevisit table the method returns vector conatins data. I also checked the sql query generated(criteria.toString()) from mysql prompt and it returns proper data, which means that addjoin query is not working in mysql and it is working properly when oracle is the database when application is run. My question is why it is returning vector containg null when I use mysql as database? regards, Keshava Murthy. S
Tomcat/Weblogic!!...
Hi, Is it possible to integrate tomcat (web server)and weblogic (App server)..if so how it is possible?.. Any help would be appreciated thanks, Ramkumar
RE: Tomcat/Weblogic!!...
Weblogic and Tomcat do the same thing! They are both java servlet containers... It might make sense to integrate Tomcat with Apache or Weblogic with Tomcat but _not_ weblogic and Tomcat. -Original Message- From: Ramkumar Krishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 2:29 PM To: Tomcat Users List Subject: Tomcat/Weblogic!!... Hi, Is it possible to integrate tomcat (web server) and weblogic (App server)..if so how it is possible?.. Any help would be appreciated thanks, Ramkumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaBean problem
Percival Bragg wrote: I am a bit confused about creating packages for javabeans. I am working thru a book titled JSP Weekend Crash Course which mentions nothing about compiling the bean into a package or using an include statement in the JSP page. Is the book incorrect or is this also a viable solution. Your book might be somewhat dated. As of JDK1.4, it's recommended that all classes be placed into packages, and you can't import a class from the non-package (default package) namespace into a package. You can read a few more details here: http://mindprod.com/jglosspackage.html Erik PS: I only know this b/c I ran into a similar problem. I vowed never to write an unpackaged class in Java again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaBean problem
Thaks for your help on this problem. --- Erik Price [EMAIL PROTECTED] wrote: Percival Bragg wrote: I am a bit confused about creating packages for javabeans. I am working thru a book titled JSP Weekend Crash Course which mentions nothing about compiling the bean into a package or using an include statement in the JSP page. Is the book incorrect or is this also a viable solution. Your book might be somewhat dated. As of JDK1.4, it's recommended that all classes be placed into packages, and you can't import a class from the non-package (default package) namespace into a package. You can read a few more details here: http://mindprod.com/jglosspackage.html Erik PS: I only know this b/c I ran into a similar problem. I vowed never to write an unpackaged class in Java again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can the JNDI Connection Pool re-connect after failure?
I've tried adding the following and I still have the same problem as Ryan. parameter namevalidationQuery/name valueSELECT 1 FROM DUAL/value /parameter When I check my 4.1.18 Tomcat server every morning I get: WARN [Ajp13Processor[11009][7]] JDBCExceptionReporter.logExceptions(35) | SQL Error: 0, SQLState: null ERROR [Ajp13Processor[11009][7]] JDBCExceptionReporter.logExceptions(42) | Cannot load JDBC driver class 'null' WARN [Ajp13Processor[11009][7]] SessionFactoryImpl.init(163) | Could not obtain connection metadata java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at cirrus.hibernate.connection.DatasourceConnectionProvider.getConnection(Datas ourceConnectionProvider.java:56) Could this be from closing connections in a finally block? This should just return them to the pool right? Thanks, Matt -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 2:09 AM To: Tomcat Users List Subject: Re: Can the JNDI Connection Pool re-connect after failure? Boris Folgmann wrote: Ryan Cornia wrote: Anyone using JNDI datasources that reconnect in case of a lost link to the DB server? Any examples? I'm using the I-net driver for Oracle Interesting question. In fact I have the same problem, using DBCP and PostgreSQL. I looked trough the Javadocs at http://jakarta.apache.org/commons/dbcp/api/index.html but did not find a resource argument for configuring something like a reconnect. Any comments welcome. I believe that if you set up connection verification query in your DataSource definition in server.xml it will reconnect. Haven't tried it, though. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Upgrading to new version of Tomcat
Howdy, Thanks Yoav. My problem is that I want to minimize the downtime in the production system. I can try it in our test server and come up with the fastest way to do it. There are many dependencies to start fresh, including conf files, IIS redirector, etc. Do everything on your production system with a different port number. Test everything. When you're sure it's ready, bring down the old server, change the port numbers of the new server to the real port numbers, and start the new server. That'll give you minimal downtime. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] jspMyAdmin
mmmh, Peter, copied the files to common/lib and restarted tomcat, the error still remains: org.apache.jasper.JasperException: /myadmin/jspmyadmin/index.jsp(16,0) This absolute uri (http://jakarta.apache.org/taglibs/i18n-1.0) cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94) I looked up the web.xml, seems correct. did you change yours? what do you think? btw: you also have v0.6 i assume . . . rgds, Henning Power-Netz (Schwarz) wrote: -Ursprungliche Nachricht- Von: Henning Heil [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 28. Januar 2003 21:50 An: Tomcat Users List Betreff: [OT] jspMyAdmin Good evening! (or good-whatever daytime you may have :-)) I just found an older version (0.6) of this tiny little app, google can't find anything newer about it - does anyone more? Is the project stopped or renamed? Continued by sb else? I recieve an 500 when I start it, a taglib specified in the web.xml is not found although it's right in its place . . . mmmh, again a misconfiguration of my tomcat? Download the two taglibs and copy the jar's to tomcat/lib/common/ , restart Tomcat. and if if you fix the dam exception : The exception was: java.util.MissingResourceException: Can't find bundle for base name com.jspmyadmin.languages.english, locale de_DE The exception class was : class java.util.MissingResourceException let me know :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can anyone help? Context problem, urgent!
Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie
RE: Can anyone help? Context problem, urgent!
Have you tried Yoav's suggestion from yesterday? There's no need to keep posting this. We get it. John -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:18 AM To: '[EMAIL PROTECTED]' Subject: Can anyone help? Context problem, urgent! Hi, In Tomcat4, I can not get the right context of other webapp from my app. My app is set as the doc root. For example I have configuration like Context path= docBase=MyApp debug=0 reloadable=true crossContext=true/ Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true crossContext=true/ in server.xml. But the difference from in Tomcat3.2 is, when I user the following statement in my servlet: ServletContext sc = this.getServletConfig().getServletContext().getContext(/OtherApp); sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request, response); Tomcat can not find the OtherApp context! Can anybody help? This is really urgent! Many thanks in advance! Annie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem starting tomcat4 .rpm
Hello list, I just installed Tomcat4 as RPM on Redhat 8 with apache2 installed. I have configured my workers.properties, setup JAVA_HOME, CATALINA_HOME On trying to start tomcat4 the logfile /var/tomcat4/logs/catalina.out shows: ERROR reading /var/tomcat4/conf/server.xml At Line 96 /Server/Service/Connector/ className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true Catalina.start: java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:1022) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:600) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:405) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:88) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:221) at org.apache.catalina.startup.Catalina.start(Catalina.java:626) at org.apache.catalina.startup.Catalina.execute(Catalina.java:596) at org.apache.catalina.startup.Catalina.process(Catalina.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:133) Here is my server.xml Lines 91 to 97. I dont know whats wrong with that. !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- Could anybody help me? Thanx Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem starting tomcat4 .rpm
Are you positive JAVA_HOME and CATALINA_HOME are set? I don't use RPMs, but I think that in this case the RPM sets up a user specifically for Tomcat (tomcat4?). JAVA_HOME and CATALINA_HOME either need to be set for that user and not you, or for all users. John -Original Message- From: Andreas Galatis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: Problem starting tomcat4 .rpm Hello list, I just installed Tomcat4 as RPM on Redhat 8 with apache2 installed. I have configured my workers.properties, setup JAVA_HOME, CATALINA_HOME On trying to start tomcat4 the logfile /var/tomcat4/logs/catalina.out shows: ERROR reading /var/tomcat4/conf/server.xml At Line 96 /Server/Service/Connector/ className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true Catalina.start: java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector at org.apache.catalina.loader.StandardClassLoader.loadClass(Stand ardClassLo ader.java:1022) at org.apache.catalina.loader.StandardClassLoader.loadClass(Stand ardClassLo ader.java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:600) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:405) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:88) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:221) at org.apache.catalina.startup.Catalina.start(Catalina.java:626) at org.apache.catalina.startup.Catalina.execute(Catalina.java:596) at org.apache.catalina.startup.Catalina.process(Catalina.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:133) Here is my server.xml Lines 91 to 97. I dont know whats wrong with that. !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- Could anybody help me? Thanx Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can the JNDI Connection Pool re-connect after failure?
This solution seems to work great for me. After adding this and re-booting the database server, it re-connected and worked great automatically Thanks a ton Nix. Ryan [EMAIL PROTECTED] 01/29/03 07:11AM I've tried adding the following and I still have the same problem as Ryan. parameter namevalidationQuery/name valueSELECT 1 FROM DUAL/value /parameter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaBean problem
That's what I meant. I just wrote it confusiingly mixing directory structure ( / ) with periods ( . ). Sorry for the confusion. Jake At 07:08 AM 1/29/2003 +, you wrote: So, instead of WEB-INF/classes/MyBean, it would be something like WEB-INF/classes/com.mypackage.MyBean What works for me is: MyBean: (declaration at top of bean class file) package com.mypackage; Directory structure: WEB-INF = classes = com = mypackage = MyBean Note that the package declaration uses fullstops (periods in American) and the directory path has a separate directory for com and mypackage, the bean residing in the latter. Does WEB-INF = classes = com.mypackage = MyBean also work? Regards, Wilson (newbie) - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 4:34 AM Subject: Re: JavaBean problem Is the bean in an actual defined package or the default package (no package). It *must* be in a package. So, instead of WEB-INF/classes/MyBean, it would be something like WEB-INF/classes/com.mypackage.MyBean Now import the com.mypackage.MyBean bean into your jsp. Things should work better now. Jake At 05:38 PM 1/28/2003 -0800, you wrote: I have just created and compiled my first JavaBean into tomcat-install\webapps\ROOT\WEB-INF\classes and am tying to access it from a jsp page in tomcat-install\webapps\ROOT directory. I am getting jsp compile errors because the jsp page cannot find the class defined in the JavaBean. Any help would be appreciated. My version of tomcat is 4.1.18. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk and auto mode
John wrote: There's no need to mirror content in two directories, nor is there any need to point Tomcat at Apache's content root. You can just make Apache's doc root the same as Tomcat's Context root and the issue goes away. Or, just put your JSP and servlets in Tomcat's doc root and leave it like that. By Tomcat's Context root do you mean the directory that is currently ROOT? -m - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How does Tomcat set the classpath???
I notice that tomcat 4.1.x explicitly sets $JAVA_HOME/lib/tools.jar and the bootstrap.jar file to the classpath, but that seems it. It overwrites any other classpath settings that may be part of the system. How does the compiler know to search for things like $JAVA_HOME/jre/lib/rt.jar? Are these automatically added based on the folder they are in within the $JAVA_HOME? I don't see anything that indicates that within the startup scripts (catalina.sh and setclasspath.sh). Any info would be appreciated. Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:errors/
Thanks! Looks interesting. I've not tested it yet. BUT i'm using the exception option in the struts-config.xml to show via html:errors/ some relevant exceptions to the user (and mail them to me --as bugs?--). so who will catch the exceptions? j4l, the strut's ExceptionHandler or both? spying inside the strut's sources i've found the ActionErrors are stored as context's attributes. ergo inside the jsp source i can retrieve them this way ActionErrors e = (ActionErrors) request.getAttribute(ActionErrors.GLOBAL_ERROR); and mail them with a JavaMail session. but it'll be good to trap all other exceptions. i'll test it regards - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 6:15 PM Subject: Re: html:errors/ Are you using log4j? If you are then chack out the org.apache.log4j.net.SMPTAppender. It sends a mail each time a message of the required severity is logged. http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.h tml example of log4j.properies portion for this appender: log4j.rootCategory=info, mail log4j.appender.mail=org.apache.log4j.net.SMTPAppender [EMAIL PROTECTED] [EMAIL PROTECTED] log4j.appender.mail.SMTPHost=@MAIL_HOST@ log4j.appender.mail.Threshold=ERROR log4j.appender.mail.BufferSize=1 log4j.appender.mail.Subject=Application Error Pablo L. Crivaro wrote: hi i want access the error list written by the html:errors/ tag usign java, not the tag (i wanna submit exceptions by mail automatically). how is that? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does Tomcat set the classpath???
How Tomcat finds classes: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:25 AM To: Tomcat Users List Subject: How does Tomcat set the classpath??? I notice that tomcat 4.1.x explicitly sets $JAVA_HOME/lib/tools.jar and the bootstrap.jar file to the classpath, but that seems it. It overwrites any other classpath settings that may be part of the system. How does the compiler know to search for things like $JAVA_HOME/jre/lib/rt.jar? Are these automatically added based on the folder they are in within the $JAVA_HOME? I don't see anything that indicates that within the startup scripts (catalina.sh and setclasspath.sh). Any info would be appreciated. Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help! Installing SSL Certificate
Ahh I see why you were asking me via email. No I have the keystore file specified. The self-gen keystore works fine with Tomcat but the purchases SSL that I've added to the keystore via the keytool docs does not work. The logs show that Tomcat accepts the SSL configuration but when I hit it from the browser it doesn't connect. -Matt --- Yakov Belov [EMAIL PROTECTED] wrote: Where are you putting the keystore file created with a purchased certificate? If not sure it's the place where Tomcat searches for it, use keystoreFile parameter in the SSL Connector area in server.xml. Good Luck, Yakov - Original Message - From: Matt Fury [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 6:45 AM Subject: Help! Installing SSL Certificate Hi All! I've recently purchased a certificate and am having problems getting the server to recognize it. I've created the keystore using the HOW-TO docs but when I got the the HTTTS:// Tomcat does not connect. I can get Tomcat to connect using a self-generated certificate but by creating the keystore with the certificates purchased I cannot get Tomcat to take requests. Any ideas? Thanks! -Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Timeout
I'm developing on Tomcat 4.1.12 and have not been able to get session to timeout anywhere near where I set them. Tomcat seems to completely ignore what's in web.xml's session-config. I saw a post that suggested adding defaultSessionTimeOut=10 to the Context in server.xml and at least this value is recognized by the session's getMaxInactiveInterval() method. Anyway, I tried setting a time in web.xml, server.xml, and programmatically with setMaxInactiveInterval(), but none of these seem to work well. Has anyone had success getting sessions to timeout anywhere near what they set them to? Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I can't use SAXON XML parser in my WEB app, please help
hello all I want to use SAXON XML parser in my WEB app. I put saxon.jar and saxon-jdom.jar in web-inf/lib of my web app. Now Tomcat doesnt work at all, it throws at startup: [ERROR] Digester - -Digester.getParser: javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating It seems that Tomcat tries to SAXON as default XML parser. I tried to move Xerces and jaxp jar's from common/endorsed to /server/lib, it didnt work, ClassCastException was thrown, it seems because of duplicated classes loaded by saxon.jar and xmlParserAPIs.jar. (classes are different but with the same name ) I was very upset, because I have read in Tomcat docs: Common - This class loader contains additional classes that are made visible to both Tomcat internal classes and to all web applications. xerces.jar - The XML parser that is visible by default to Tomcat internal classes and to web applications. This can be overridden, for a particular web application, by including your desired parser in /WEB-INF/lib. I use Tomcat 4.1.18 and jdk 1.3.1. (NOT LE) thanx in advance Maris Orbidans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL Hell
Jacob Kjome wrote: Hello Mehdi, If you are using DBCP connection pooling, your driver *must* exist in CATALINA_HOME/common/lib. This is because the DBCP libraries exist in common/lib and the fact that classes from common/lib do not have access to the child classloader in WEB-INF/lib. However, your classes in WEB-INF/lib *does* have access to the parent classloader in common/lib. So, put it in common/lib and it should work. dont' forget to add ?autoReconnect=true to your connection url config for MySQL. After reading this a few days ago, I decided to ask my sysadmin to move my mysql-connector-java-2.0.14-bin.jar file from my webapp's WEB-INF/lib to $CATALINA_HOME/common/lib, and he did. After we restarted Tomcat, my webapp wouldn't work, so, to confirm that it wasn't an application-level problem, I put the mysql-connector-java-2.0.14-bin.jar file back in WEB-INF/lib (of my webapp). The driver still can't be found for some reason. Is there something that I'm supposed to do to register the driver? Does it change the JDBC url if you move it to common/lib for some reason? Erik Jake Wednesday, January 22, 2003, 9:13:39 AM, you wrote: MNbc Hello all, MNbc i have been breaking my brain trying to get connection pooling, using MNbc Tomcat 4.1.12's build in dbcp, with mySQL 3.23. MNbc I have followed the instructions on the how this should be done, and I am MNbc getting an exception when I try to get a connection .. (like many other MNbc people it seems).. If anyone has solved this problem.. or has a link to a MNbc forum where this problem is answered please let me know.. MNbc I have downloaded mysql-connector-java-2.0.14.zip MNbc I unzipped it and copied : MNbc * the contents of WEB-INF/lib to my lib folder MNbc * contents of com to my WEB-INF/classes folder MNbc * contents of org to my WEB-INF/classes folder (this *does* contain MNbc org.gjt.mm.mysql.Driver) MNbc This does not work. My jsp test code follows, and the Exception occurs on MNbc getConnection()... MNbc %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* MNbc errorPage=error.jsp % MNbc % MNbc Context initContext = new InitialContext(); MNbc Context envContext = (Context)initContext.lookup(java:/comp/env); MNbc DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); MNbc Connection conn = ds.getConnection(); % MNbc Exception is MNbc java.sql.SQLException: Cannot load JDBC driver class MNbc 'org.gjt.mm.mysql.Driver' MNbc SERVER.XML MNbc Context path=/mysql docBase=mysql debug=0 reloadable=true MNbc Logger className=org.apache.catalina.logger.FileLogger MNbc prefix=localhost_DBTest_log. suffix=.txt MNbc timestamp=true/ MNbc Resource name=jdbc/mehdi MNbcauth=Container MNbctype=javax.sql.DataSource/ MNbc ResourceParams name=jdbc/mehdi MNbc parameter MNbc namefactory/name MNbc valueorg.apache.commons.dbcp.BasicDataSourceFactory/value MNbc /parameter MNbc !-- Maximum number of dB connections in pool. Make sure you MNbc configure your mysqld max_connections large enough to handle MNbc all of your db connections. Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxActive/name MNbc value100/value MNbc /parameter MNbc !-- Maximum number of idle dB connections to retain in pool. MNbc Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxIdle/name MNbc value30/value MNbc /parameter MNbc !-- Maximum time to wait for a dB connection to become available MNbc in ms, in this example 10 seconds. An Exception is thrown if MNbc this timeout is exceeded. Set to -1 to wait indefinitely. MNbc -- MNbc parameter MNbc namemaxWait/name MNbc value1/value MNbc /parameter MNbc !-- MySQL dB username and password for dB connections -- MNbc parameter MNbc nameusername/name MNbc valuemehdi/value MNbc /parameter MNbc parameter MNbc namepassword/name MNbc valuemypass/value MNbc /parameter MNbc !-- Class name for mm.mysql JDBC driver -- MNbc parameter MNbcnamedriverClassName/name MNbcvalueorg.gjt.mm.mysql.Driver/value MNbc /parameter MNbc !-- The JDBC connection url for connecting to your MySQL dB. MNbc The autoReconnect=true argument to the url makes sure that the MNbc mm.mysql JDBC Driver will automatically reconnect if mysqld closed MNbc the MNbc connection. mysqld by default closes idle connections after 8 MNbc hours. MNbc -- MNbc parameter MNbc nameurl/name MNbc valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value MNbc /parameter MNbc /ResourceParams MNbc /Context MNbc running out of time, and hair. MNbc Thanks, MNbc Med MNbc -- MNbc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
Starting a Clean-up program
I have a static method that starts a thread with a class that does some clean-up tasks. public static void init(){ Thread t = new Thread( new ClearUserHashMapClient() ); t.start(); }//init How can I configure my webapp to call this init() method when I deploy my war file on Tomcat. Thanks, Chandra. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible CLOSE_WAIT problem
Hi, If I set my maxProcessors sufficiently low (say 5), then run a script from another machine that floods Tomcat with requests for a given JSP, eventually Tomcat stops accepting socket connections at all. Ok, that's to be expected when every processor thread is busy. BUT, when the flood stops, all the threads let their socket connections remain in CLOSE_WAIT and they never close them. This causes Tomcat to NEVER accept new connections, until it's restarted. I'm seeing this problem happen on a site with 600 max processors. Eventually, it stops accepting connections and has to be restarted, every couple days. This is Tomcat 4.0.6 on Windows 2000, JDK 1.4.1_01. Any idears?? Regards, -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk and auto mode
No, I mean the docBase attribute of Context can be the same as Apache's DocumentRoot. That way, all of your content is in one location. The requests will still be handled appropriately by Apache and Tomcat based on JkMount/JkUriSet. John -Original Message- From: Mark O'Neil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:17 AM To: Tomcat Users List Subject: mod_jk and auto mode John wrote: There's no need to mirror content in two directories, nor is there any need to point Tomcat at Apache's content root. You can just make Apache's doc root the same as Tomcat's Context root and the issue goes away. Or, just put your JSP and servlets in Tomcat's doc root and leave it like that. By Tomcat's Context root do you mean the directory that is currently ROOT? -m - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problem starting tomcat4 .rpm
Hi John, Here the beginning of my startup-script: # Source function library. . /etc/rc.d/init.d/functions # Setup JAVA_HOME to your JDK home dir export JAVA_HOME=/usr/java/current #export TOMCAT_HOME=/home/tomcat4 export PATH=$PATH:/usr/java/current/bin export TOMCAT_HOME=/var/tomcat4 export CATALNA_HOME=/var/tomcat4 #See how we were called. case $1 in start) echo -n Starting tomcat4: daemon tomcat4 start echo touch /var/lock/subsys/tomcat4 ;; stop) echo -n Shutting down tomcat4: daemon tomcat4 stop echo rm -f /var/lock/subsys/tomcat4 rm -f /var/run/tomcat4.pid ;; restart) $0 stop sleep 2 $0 start ;; *) echo Usage: $0 {start|stop|restart} exit 1 Esac I have a user tomcat4 with no login so where should I declare the variable for him? Thanx Andreas -Ursprüngliche Nachricht- Von: Turner, John [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 29. Januar 2003 15:33 An: 'Tomcat Users List' Betreff: RE: Problem starting tomcat4 .rpm Are you positive JAVA_HOME and CATALINA_HOME are set? I don't use RPMs, but I think that in this case the RPM sets up a user specifically for Tomcat (tomcat4?). JAVA_HOME and CATALINA_HOME either need to be set for that user and not you, or for all users. John -Original Message- From: Andreas Galatis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: Problem starting tomcat4 .rpm Hello list, I just installed Tomcat4 as RPM on Redhat 8 with apache2 installed. I have configured my workers.properties, setup JAVA_HOME, CATALINA_HOME On trying to start tomcat4 the logfile /var/tomcat4/logs/catalina.out shows: ERROR reading /var/tomcat4/conf/server.xml At Line 96 /Server/Service/Connector/ className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true Catalina.start: java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector at org.apache.catalina.loader.StandardClassLoader.loadClass(Stand ardClassLo ader.java:1022) at org.apache.catalina.loader.StandardClassLoader.loadClass(Stand ardClassLo ader.java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:600) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:405) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:88) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:221) at org.apache.catalina.startup.Catalina.start(Catalina.java:626) at org.apache.catalina.startup.Catalina.execute(Catalina.java:596) at org.apache.catalina.startup.Catalina.process(Catalina.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:133) Here is my server.xml Lines 91 to 97. I dont know whats wrong with that. !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- Could anybody help me? Thanx Andreas
AW: [OT] jspMyAdmin
org.apache.jasper.JasperException: /myadmin/jspmyadmin/index.jsp(16,0) This absolute uri (http://jakarta.apache.org/taglibs/i18n-1.0) cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErr orHandler.java:94) I looked up the web.xml, seems correct. did you change yours? what do you think? nothing changed there... I got mine to run by jaring the WEB-INF/classes and put it to /lib/common/ It looks nice :-) But i get NullPointerexceptions when i try to the table properties.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting a Clean-up program
Howdy, Implement a javax.servlet.ServletContextListener, and call that init method in the listener's contextInitialized() event. Don't forget to put the listener in your webapp's web.xml file. public static void init(){ Thread t = new Thread( new ClearUserHashMapClient() ); t.start(); }//init How can I configure my webapp to call this init() method when I deploy my war file on Tomcat. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP Compilation Error
I know that this topic has been covered over and over... I went to the archives but didn't find a solution to my problem. I downloaded and installed (on Solaris 8 box) jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU Tar installed on this machine to get the tar version, and my company has FTP firewall access blocked). I have Java v1.4.1_01. JAVA_HOME is set to the location of the aforementioned Java version. CATALINA_HOME is set to the installation location of jakarta-tomcat-4.1.18. I proceed to start tomcat and it comes up. Then when I try to access it with http://myserver.company.com:8080 I get the following error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/index_jsp .java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ 1 error ...and a long stack trace... --- I've tried everything I've run into in the archives. Jasper uses Ant. How can I ensure that the correct jar files are being called so that Jasper/Ant can compile JSP files? Why isn't it working? Please help. I need to evaluate a content management solution (Red Hat's CCM) that runs on top of Tomcat. Thank you. MC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting a Clean-up program
If you create that as a servlet, you can set the startup to 1 which will call it each time the webserver starts. Is that what you are looking for? servlet servlet-nameservletname/servlet-name servlet-classcom.skp.someclass/servlet-class init-param param-namehello/param-name param-valueworld/param-value /init-param load-on-startup1/load-on-startup /servlet When the server starts it sees this class as a startup class and immediately executes its init. Scott Purcell Vertis Corporation -Original Message- From: Chandra Gottipati [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:45 AM To: Tomcat Users List Subject: Starting a Clean-up program I have a static method that starts a thread with a class that does some clean-up tasks. public static void init(){ Thread t = new Thread( new ClearUserHashMapClient() ); t.start(); }//init How can I configure my webapp to call this init() method when I deploy my war file on Tomcat. Thanks, Chandra. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL Hell
Erik, a.f.a.i.k. the driver has to be added to the classpath (I did it like that and it works fine.) rgds, Henning Erik Price wrote: Jacob Kjome wrote: Hello Mehdi, If you are using DBCP connection pooling, your driver *must* exist in CATALINA_HOME/common/lib. This is because the DBCP libraries exist in common/lib and the fact that classes from common/lib do not have access to the child classloader in WEB-INF/lib. However, your classes in WEB-INF/lib *does* have access to the parent classloader in common/lib. So, put it in common/lib and it should work. dont' forget to add ?autoReconnect=true to your connection url config for MySQL. After reading this a few days ago, I decided to ask my sysadmin to move my mysql-connector-java-2.0.14-bin.jar file from my webapp's WEB-INF/lib to $CATALINA_HOME/common/lib, and he did. After we restarted Tomcat, my webapp wouldn't work, so, to confirm that it wasn't an application-level problem, I put the mysql-connector-java-2.0.14-bin.jar file back in WEB-INF/lib (of my webapp). The driver still can't be found for some reason. Is there something that I'm supposed to do to register the driver? Does it change the JDBC url if you move it to common/lib for some reason? Erik Jake Wednesday, January 22, 2003, 9:13:39 AM, you wrote: MNbc Hello all, MNbc i have been breaking my brain trying to get connection pooling, using MNbc Tomcat 4.1.12's build in dbcp, with mySQL 3.23. MNbc I have followed the instructions on the how this should be done, and I am MNbc getting an exception when I try to get a connection .. (like many other MNbc people it seems).. If anyone has solved this problem.. or has a link to a MNbc forum where this problem is answered please let me know.. MNbc I have downloaded mysql-connector-java-2.0.14.zip MNbc I unzipped it and copied : MNbc * the contents of WEB-INF/lib to my lib folder MNbc * contents of com to my WEB-INF/classes folder MNbc * contents of org to my WEB-INF/classes folder (this *does* contain MNbc org.gjt.mm.mysql.Driver) MNbc This does not work. My jsp test code follows, and the Exception occurs on MNbc getConnection()... MNbc %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* MNbc errorPage=error.jsp % MNbc % MNbc Context initContext = new InitialContext(); MNbc Context envContext = (Context)initContext.lookup(java:/comp/env); MNbc DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); MNbc Connection conn = ds.getConnection(); % MNbc Exception is MNbc java.sql.SQLException: Cannot load JDBC driver class MNbc 'org.gjt.mm.mysql.Driver' MNbc SERVER.XML MNbc Context path=/mysql docBase=mysql debug=0 reloadable=true MNbc Logger className=org.apache.catalina.logger.FileLogger MNbc prefix=localhost_DBTest_log. suffix=.txt MNbc timestamp=true/ MNbc Resource name=jdbc/mehdi MNbc auth=Container MNbc type=javax.sql.DataSource/ MNbc ResourceParams name=jdbc/mehdi MNbc parameter MNbc namefactory/name MNbc valueorg.apache.commons.dbcp.BasicDataSourceFactory/value MNbc /parameter MNbc !-- Maximum number of dB connections in pool. Make sure you MNbc configure your mysqld max_connections large enough to handle MNbc all of your db connections. Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxActive/name MNbc value100/value MNbc /parameter MNbc !-- Maximum number of idle dB connections to retain in pool. MNbc Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxIdle/name MNbc value30/value MNbc /parameter MNbc !-- Maximum time to wait for a dB connection to become available MNbc in ms, in this example 10 seconds. An Exception is thrown if MNbc this timeout is exceeded. Set to -1 to wait indefinitely. MNbc -- MNbc parameter MNbc namemaxWait/name MNbc value1/value MNbc /parameter MNbc !-- MySQL dB username and password for dB connections -- MNbc parameter MNbc nameusername/name MNbc valuemehdi/value MNbc /parameter MNbc parameter MNbc namepassword/name MNbc valuemypass/value MNbc /parameter MNbc !-- Class name for mm.mysql JDBC driver -- MNbc parameter MNbc namedriverClassName/name MNbc valueorg.gjt.mm.mysql.Driver/value MNbc /parameter MNbc !-- The JDBC connection url for connecting to your MySQL dB. MNbc The autoReconnect=true argument to the url makes sure that the MNbc mm.mysql JDBC Driver will automatically reconnect if mysqld closed MNbc the MNbc connection. mysqld by default closes idle connections after 8 MNbc hours. MNbc -- MNbc parameter MNbc nameurl/name MNbc valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value MNbc /parameter MNbc /ResourceParams MNbc /Context MNbc running out of time, and hair. MNbc Thanks, MNbc Med MNbc -- MNbc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] MNbc For additional commands, e-mail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Apache+SSL integration issues
hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: MySQL Hell
Hello Erik, If you aren't using DBCP, then you can ignore all the stuff about the driver needing to be in common/lib. The only reason it needs to be there is for DBCP to have access to the driver. As far as why, after a restart, it doesn't work in either place, I have no idea. Sounds like an outside problem. See if you can connect through a basic class outside the Tomcat container. If so, then try it again in the container. That will rule out general database connectivity issues. Jake Wednesday, January 29, 2003, 9:42:23 AM, you wrote: EP Jacob Kjome wrote: Hello Mehdi, If you are using DBCP connection pooling, your driver *must* exist in CATALINA_HOME/common/lib. This is because the DBCP libraries exist in common/lib and the fact that classes from common/lib do not have access to the child classloader in WEB-INF/lib. However, your classes in WEB-INF/lib *does* have access to the parent classloader in common/lib. So, put it in common/lib and it should work. dont' forget to add ?autoReconnect=true to your connection url config for MySQL. EP After reading this a few days ago, I decided to ask my sysadmin to move EP my mysql-connector-java-2.0.14-bin.jar file from my webapp's WEB-INF/lib EP to $CATALINA_HOME/common/lib, and he did. After we restarted Tomcat, my EP webapp wouldn't work, so, to confirm that it wasn't an application-level EP problem, I put the mysql-connector-java-2.0.14-bin.jar file back in EP WEB-INF/lib (of my webapp). The driver still can't be found for some EP reason. EP Is there something that I'm supposed to do to register the driver? EP Does it change the JDBC url if you move it to common/lib for some reason? EP Erik Jake Wednesday, January 22, 2003, 9:13:39 AM, you wrote: MNbc Hello all, MNbc i have been breaking my brain trying to get connection pooling, using MNbc Tomcat 4.1.12's build in dbcp, with mySQL 3.23. MNbc I have followed the instructions on the how this should be done, and I am MNbc getting an exception when I try to get a connection .. (like many other MNbc people it seems).. If anyone has solved this problem.. or has a link to a MNbc forum where this problem is answered please let me know.. MNbc I have downloaded mysql-connector-java-2.0.14.zip MNbc I unzipped it and copied : MNbc * the contents of WEB-INF/lib to my lib folder MNbc * contents of com to my WEB-INF/classes folder MNbc * contents of org to my WEB-INF/classes folder (this *does* contain MNbc org.gjt.mm.mysql.Driver) MNbc This does not work. My jsp test code follows, and the Exception occurs on MNbc getConnection()... MNbc %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* MNbc errorPage=error.jsp % MNbc % MNbc Context initContext = new InitialContext(); MNbc Context envContext = (Context)initContext.lookup(java:/comp/env); MNbc DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); MNbc Connection conn = ds.getConnection(); % MNbc Exception is MNbc java.sql.SQLException: Cannot load JDBC driver class MNbc 'org.gjt.mm.mysql.Driver' MNbc SERVER.XML MNbc Context path=/mysql docBase=mysql debug=0 reloadable=true MNbc Logger className=org.apache.catalina.logger.FileLogger MNbc prefix=localhost_DBTest_log. suffix=.txt MNbc timestamp=true/ MNbc Resource name=jdbc/mehdi MNbcauth=Container MNbctype=javax.sql.DataSource/ MNbc ResourceParams name=jdbc/mehdi MNbc parameter MNbc namefactory/name MNbc valueorg.apache.commons.dbcp.BasicDataSourceFactory/value MNbc /parameter MNbc !-- Maximum number of dB connections in pool. Make sure you MNbc configure your mysqld max_connections large enough to handle MNbc all of your db connections. Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxActive/name MNbc value100/value MNbc /parameter MNbc !-- Maximum number of idle dB connections to retain in pool. MNbc Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxIdle/name MNbc value30/value MNbc /parameter MNbc !-- Maximum time to wait for a dB connection to become available MNbc in ms, in this example 10 seconds. An Exception is thrown if MNbc this timeout is exceeded. Set to -1 to wait indefinitely. MNbc -- MNbc parameter MNbc namemaxWait/name MNbc value1/value MNbc /parameter MNbc !-- MySQL dB username and password for dB connections -- MNbc parameter MNbc nameusername/name MNbc valuemehdi/value MNbc /parameter MNbc parameter MNbc namepassword/name MNbc valuemypass/value MNbc /parameter MNbc !-- Class name for mm.mysql JDBC driver -- MNbc parameter MNbcnamedriverClassName/name MNbc
RE: Problem starting tomcat4 .rpm
Looks OK to me. Like I said, I don't use the RPMs, my point is just that binary installs of Tomcat and the RPM install typically work out of the box. If they don't, it's usually related to permissions or invalid/missing environment variable settings. What happens if you run a command like this: su - tomcat4 -c $CATALINA_HOME/startup.sh John -Original Message- From: Andreas Galatis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:56 AM To: 'Tomcat Users List' Subject: AW: Problem starting tomcat4 .rpm Hi John, Here the beginning of my startup-script: # Source function library. . /etc/rc.d/init.d/functions # Setup JAVA_HOME to your JDK home dir export JAVA_HOME=/usr/java/current #export TOMCAT_HOME=/home/tomcat4 export PATH=$PATH:/usr/java/current/bin export TOMCAT_HOME=/var/tomcat4 export CATALNA_HOME=/var/tomcat4 #See how we were called. case $1 in start) echo -n Starting tomcat4: daemon tomcat4 start echo touch /var/lock/subsys/tomcat4 ;; stop) echo -n Shutting down tomcat4: daemon tomcat4 stop echo rm -f /var/lock/subsys/tomcat4 rm -f /var/run/tomcat4.pid ;; restart) $0 stop sleep 2 $0 start ;; *) echo Usage: $0 {start|stop|restart} exit 1 Esac I have a user tomcat4 with no login so where should I declare the variable for him? Thanx Andreas -Ursprüngliche Nachricht- Von: Turner, John [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 29. Januar 2003 15:33 An: 'Tomcat Users List' Betreff: RE: Problem starting tomcat4 .rpm Are you positive JAVA_HOME and CATALINA_HOME are set? I don't use RPMs, but I think that in this case the RPM sets up a user specifically for Tomcat (tomcat4?). JAVA_HOME and CATALINA_HOME either need to be set for that user and not you, or for all users. John -Original Message- From: Andreas Galatis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: Problem starting tomcat4 .rpm Hello list, I just installed Tomcat4 as RPM on Redhat 8 with apache2 installed. I have configured my workers.properties, setup JAVA_HOME, CATALINA_HOME On trying to start tomcat4 the logfile /var/tomcat4/logs/catalina.out shows: ERROR reading /var/tomcat4/conf/server.xml At Line 96 /Server/Service/Connector/ className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true Catalina.start: java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector at org.apache.catalina.loader.StandardClassLoader.loadClass(Stand ardClassLo ader.java:1022) at org.apache.catalina.loader.StandardClassLoader.loadClass(Stand ardClassLo ader.java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:600) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:405) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:88) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:221) at org.apache.catalina.startup.Catalina.start(Catalina.java:626) at org.apache.catalina.startup.Catalina.execute(Catalina.java:596) at org.apache.catalina.startup.Catalina.process(Catalina.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at
Re: I can't use SAXON XML parser in my WEB app, please help
Hello Màris, That particular quote that you mention below (from the Tomcat docs) needs to be rewritten. You can't override endorsed packages from within the WEB-INF/lib. It violates the Sun classloading spec and ever since Tomcat-4.0.2, Tomcat enforces this. For evidence of this, see... http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6248 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6476 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374 quote name=Remy Maucherat Yes, I know it doesn't happen with b2. There were other more insidious problems with using a XML parser in a webapp repository (see 6248, and many messages on tomcat-user). It will force the XML base classes (and their subpackages, unfortunately, that's where the bug is) to be loaded from one of the parent shared classloader. I've put a fix already in CVS in both branches (the base XML classes won't be loaded to avoid the classcasts, but all the subpackages will). It is not possible, and is actually forbidden by the servlet spec, to load those classes from the webapp repositories. LATER means that I'd like to implement a better mechanism to fully implement the spec requirements (although it will need some special configuration by the user to define which libraries it has installed). This probably will stay in the HEAD branch, so the resolution of the bug may not be the right one. /quote I additon, this has some good explanation: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7175 quote name=Patrick Luby I agree with Remy that you should stop trying to override the default XML parser. While you *may* be able to override it when using JDK 1.3, you will absolutely not be able to do it with JDK 1.4 as JDK 1.4 treats the XML parsing classes (also known as endorsed classes) as system classes. Hence, once the JVM is started, JDK 1.4 will not all any class loader in the process load alternate XML parsing classes that fall in any package names listed in the following URL: http://java.sun.com/j2se/1.4/docs/guide/standards/index.html The only way around this JDK 1.4 restriction for your webapp only is to create an XML parser with package names that are not listed in the above URL (i.e. a very non-standard parser). There is another way around this restriction. However, it will force all webapps (and the container itself) to use your XML parser. You can put your parser jar files in the common/lib directory (4.0.x) or in the common/endorsed directory (HEAD). /quote As far as getting Tomcat to use the appropriate parser, I'm not sure how to help you there. You'll just have to test a number of things out. Jake Wednesday, January 29, 2003, 9:41:54 AM, you wrote: MO hello all MO I want to use SAXON XML parser in my WEB app. I put saxon.jar and saxon-jdom.jar in web-inf/lib MO of my web app. Now Tomcat doesnt work at all, it throws at startup: MO [ERROR] Digester - -Digester.getParser: javax.xml.parsers.ParserConfigurationException: MO AElfred parser is non-validating MO javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating MO It seems that Tomcat tries to SAXON as default XML parser. MO I tried to move Xerces and jaxp jar's from common/endorsed to /server/lib, it didnt work, ClassCastException was thrown, it seems because of duplicated classes loaded by saxon.jar and MO xmlParserAPIs.jar. (classes are different but with the same name ) MO I was very upset, because I have read in Tomcat docs: MO Common - This class loader contains additional classes that are made visible to both Tomcat internal classes and to all web applications. MO xerces.jar - The XML parser that is visible by default to Tomcat internal classes and to web applications. This can be overridden, for a particular web application, by including your desired MO parser in /WEB-INF/lib. MO I use Tomcat 4.1.18 and jdk 1.3.1. (NOT LE) MO thanx in advance MO Maris Orbidans MO - MO To unsubscribe, e-mail: [EMAIL PROTECTED] MO For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does Tomcat set the classpath???
John, According to this document, bootstrap.jar contains the basic runtime classes provided by the Java Virtual Machine. That does not seem correct. In Sun's JDK, rt.jar contains most of the basic runtime classes. How does that get loaded? Does the VM take care of this on it's own somehow? I see also that tools.jar is loaded from $JAVA_HOME/lib, but still, when is rt.jar loaded? Brandon -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:33 AM To: 'Tomcat Users List' Subject: RE: How does Tomcat set the classpath??? How Tomcat finds classes: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:25 AM To: Tomcat Users List Subject: How does Tomcat set the classpath??? I notice that tomcat 4.1.x explicitly sets $JAVA_HOME/lib/tools.jar and the bootstrap.jar file to the classpath, but that seems it. It overwrites any other classpath settings that may be part of the system. How does the compiler know to search for things like $JAVA_HOME/jre/lib/rt.jar? Are these automatically added based on the folder they are in within the $JAVA_HOME? I don't see anything that indicates that within the startup scripts (catalina.sh and setclasspath.sh). Any info would be appreciated. Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat DB2
Hi I am using tomcat 4.0.1 in redhat linux 7.2. This server is behind the firewall. And my database is DB2 on an AS400 machine which is outside the firewall. The firewall rule allow any connection from and to both the servers. Still i get some database connection dropped. Did any one came across this problem before. If so pls. help me. Thanks for all your help. Perumal. __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP Compilation Error
Make sure you have the JDK and not the JRE, if you have the JRE you need the tools.jar from the JDK, if you have the JDK and still get the problem make sure tomcats classpath can see tools.jar. John -Original Message- From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:05 AM To: Tomcat Users List Subject: JSP Compilation Error I know that this topic has been covered over and over... I went to the archives but didn't find a solution to my problem. I downloaded and installed (on Solaris 8 box) jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU Tar installed on this machine to get the tar version, and my company has FTP firewall access blocked). I have Java v1.4.1_01. JAVA_HOME is set to the location of the aforementioned Java version. CATALINA_HOME is set to the installation location of jakarta-tomcat-4.1.18. I proceed to start tomcat and it comes up. Then when I try to access it with http://myserver.company.com:8080 I get the following error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho st/_/index_jsp .java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ 1 error ...and a long stack trace... --- I've tried everything I've run into in the archives. Jasper uses Ant. How can I ensure that the correct jar files are being called so that Jasper/Ant can compile JSP files? Why isn't it working? Please help. I need to evaluate a content management solution (Red Hat's CCM) that runs on top of Tomcat. Thank you. MC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache+SSL integration issues
Maris - I have done this on several occasions with mod_jk without any problem. I can't compare it to mod_proxy, since I rarely use it, but I suggest you try mod_jk. Regards, Lajos Mris Orbidns wrote: hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I can't use SAXON XML parser in my WEB app, please help
Mike Kay, the creator of Saxon, says: This problem is caused by the fact that you have made AElfred the default XML parser. Tomcat needs a validating parser for its own use, and AElfred isn't a validating parser. You can usually solve the problem by changing the order of things on the classpath, or by removing the file META-INF/javax.xml.parsers.SAXParserFactory from saxon.jar. Searching the Saxon mailing list for tomcat will give further suggestions. HTH Edmund -Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: I can't use SAXON XML parser in my WEB app, please help hello all I want to use SAXON XML parser in my WEB app. I put saxon.jar and saxon-jdom.jar in web-inf/lib of my web app. Now Tomcat doesnt work at all, it throws at startup: [ERROR] Digester - -Digester.getParser: javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating It seems that Tomcat tries to SAXON as default XML parser. I tried to move Xerces and jaxp jar's from common/endorsed to /server/lib, it didnt work, ClassCastException was thrown, it seems because of duplicated classes loaded by saxon.jar and xmlParserAPIs.jar. (classes are different but with the same name ) I was very upset, because I have read in Tomcat docs: Common - This class loader contains additional classes that are made visible to both Tomcat internal classes and to all web applications. xerces.jar - The XML parser that is visible by default to Tomcat internal classes and to web applications. This can be overridden, for a particular web application, by including your desired parser in /WEB-INF/lib. I use Tomcat 4.1.18 and jdk 1.3.1. (NOT LE) thanx in advance Maris Orbidans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fatal Error] :-1:-1: Premature end of file.
Hi all, I get this strange error message: [Fatal Error] :-1:-1: Premature end of file. when dragging or creating folders into my webfolder. This happens with my own webdav module (I finally manged to extract webdav from Tomcat 4), as well as with the original Tomcat 4 installation. The only difference is that with my module this happens nearly always, even when I'm simply adding a file to the web-folder. As far as I have traced it it is thrown inside the doPropfind method, seemingly at Document document = documentBuilder.parse (new InputSource(req.getInputStream())); Is that a known behavior, or just a bad configuration of my system? I'm running jakarta-tomcat-4.1.18 on a win2k workstation. Thanks a lot, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does Tomcat set the classpath???
-Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] According to this document, bootstrap.jar contains the basic runtime classes provided by the Java Virtual Machine. That does not seem correct. In Sun's JDK, rt.jar contains most of the basic runtime classes. How does that get loaded? Does the VM take care of this on it's own somehow? If you are referring to the chicken-and-egg problem of the classloader loading itself, it's because the JVM contains what it needs to load itself internally. Edmund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can the JNDI Connection Pool re-connect after failure?
Will it work for 24 hours is the question... ;) If it does, maybe I should change to a different Oracle JDBC Driver. Do you have any timeout limitations set on the connecting user? We do, and I'm wondering if that's causing my problems. Thanks, Matt -Original Message- From: Ryan Cornia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 7:49 AM To: [EMAIL PROTECTED] Subject: RE: Can the JNDI Connection Pool re-connect after failure? This solution seems to work great for me. After adding this and re-booting the database server, it re-connected and worked great automatically Thanks a ton Nix. Ryan [EMAIL PROTECTED] 01/29/03 07:11AM I've tried adding the following and I still have the same problem as Ryan. parameter namevalidationQuery/name valueSELECT 1 FROM DUAL/value /parameter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache+SSL integration issues
Hi Lajos, Which is your platform ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Lajos [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:26 PM Subject: Re: Tomcat and Apache+SSL integration issues Maris - I have done this on several occasions with mod_jk without any problem. I can't compare it to mod_proxy, since I rarely use it, but I suggest you try mod_jk. Regards, Lajos Mris Orbidns wrote: hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat AS400 problem
I am using tomcat 4.1.18 in mandrake linux 8.2. My database is a DB2 on an AS400 machine,but i cant login in the as400. I put the jt400.jar in TOMCAT_HOME=/commom/lib, my aplication to make a test is in /webapps inside the TOMCAT_HOME,i use this driverClassName com.ibm.as400.access.AS400JDBCDriver. But when in run my test it said 'Cant load the class drivers' Thanks Fabian __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Apache+SSL integration issues
we have Tomcat and Apache on different hosts. Do we need to install Tomcat on Apache's host too ? Apache HTTP server needs config file workers.properties. It has a property Tomcat_home which points to Tomcat installation. Maris -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:26 PM To: Tomcat Users List Subject: Re: Tomcat and Apache+SSL integration issues Maris - I have done this on several occasions with mod_jk without any problem. I can't compare it to mod_proxy, since I rarely use it, but I suggest you try mod_jk. Regards, Lajos Mris Orbidns wrote: hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does Tomcat set the classpath???
I'm not the expert (that would be Craig or someone else with his level of knowledge and experience...Craig wrote the document), but I think you are confusing the Bootstrap ClassLoader with bootstrap.jar. Bootstrap - This class loader contains the basic runtime classes provided by the Java Virtual Machine, plus any classes from JAR files present in the System Extensions directory ($JAVA_HOME/jre/lib/ext). I think that means that bootstrap.jar has the Bootstrap ClassLoader in it, and that class loader loads the basic runtime classes provided by the JVM, which, in this case, would be the classes in rt.jar. I don't think it means that bootstrap.jar supersedes or replaces rt.jar. I'm really hazy on the whole concept of a class loader though, so take whatever I say on the subject with a BIG grain of salt until someone else can chime in and correct me if I'm wrong. John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:16 AM To: Tomcat Users List Subject: RE: How does Tomcat set the classpath??? John, According to this document, bootstrap.jar contains the basic runtime classes provided by the Java Virtual Machine. That does not seem correct. In Sun's JDK, rt.jar contains most of the basic runtime classes. How does that get loaded? Does the VM take care of this on it's own somehow? I see also that tools.jar is loaded from $JAVA_HOME/lib, but still, when is rt.jar loaded? Brandon -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:33 AM To: 'Tomcat Users List' Subject: RE: How does Tomcat set the classpath??? How Tomcat finds classes: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h owto.html John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:25 AM To: Tomcat Users List Subject: How does Tomcat set the classpath??? I notice that tomcat 4.1.x explicitly sets $JAVA_HOME/lib/tools.jar and the bootstrap.jar file to the classpath, but that seems it. It overwrites any other classpath settings that may be part of the system. How does the compiler know to search for things like $JAVA_HOME/jre/lib/rt.jar? Are these automatically added based on the folder they are in within the $JAVA_HOME? I don't see anything that indicates that within the startup scripts (catalina.sh and setclasspath.sh). Any info would be appreciated. Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unix security realm
has anyone come across an implementation of a realm for Tomcat which authenticates users against the operating system's logins/passwords? thanks in anticipation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache+SSL integration issues
I've done it on Linux, Solaris and Windows. I have various guides on my site, www.galatea.com/flashguides, that detail my experiences. The biggest problem I've had was in some Tomcat 4.0.x versions that didn't correctly support authentication over SSL using mod_jk. But that seems to be cleared up in recent versions. Regards, Lajos Ing. Gustavo Edelstein wrote: Hi Lajos, Which is your platform ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Lajos [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:26 PM Subject: Re: Tomcat and Apache+SSL integration issues Maris - I have done this on several occasions with mod_jk without any problem. I can't compare it to mod_proxy, since I rarely use it, but I suggest you try mod_jk. Regards, Lajos Mris Orbidns wrote: hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat AS400 problem
Try to put the jt400.jar in /lib dir. it works for me. Best of luck Perumal. x x [EMAIL PROTECTED] wrote: I am using tomcat 4.1.18 in mandrake linux 8.2. My database is a DB2 on an AS400 machine,but i cant login in the as400. I put the jt400.jar in TOMCAT_HOME=/commom/lib, my aplication to make a test is in /webapps inside the TOMCAT_HOME,i use this driverClassName com.ibm.as400.access.AS400JDBCDriver. But when in run my test it said 'Cant load the class drivers' Thanks Fabian __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can the JNDI Connection Pool re-connect after failure?
I don't have any timeout settings set. I'm also not using the driver from Oracle. I'm using a third party driver from inetsoftware.de. If it's not working in 24 hours, I'll let your know. Ryan [EMAIL PROTECTED] 01/29/03 09:43AM Will it work for 24 hours is the question... ;) If it does, maybe I should change to a different Oracle JDBC Driver. Do you have any timeout limitations set on the connecting user? We do, and I'm wondering if that's causing my problems. Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache+SSL integration issues
Actually, I think you can dispense with the workers.tomcat_home setting. Just place workers.properties somewhere where httpd.conf can access it. Regards, Lajos Mris Orbidns wrote: we have Tomcat and Apache on different hosts. Do we need to install Tomcat on Apache's host too ? Apache HTTP server needs config file workers.properties. It has a property Tomcat_home which points to Tomcat installation. Maris -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:26 PM To: Tomcat Users List Subject: Re: Tomcat and Apache+SSL integration issues Maris - I have done this on several occasions with mod_jk without any problem. I can't compare it to mod_proxy, since I rarely use it, but I suggest you try mod_jk. Regards, Lajos Mris Orbidns wrote: hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED: Re: MySQL Hell (OT)
Jacob Kjome wrote: Hello Erik, If you aren't using DBCP, then you can ignore all the stuff about the driver needing to be in common/lib. The only reason it needs to be there is for DBCP to have access to the driver. As far as why, after a restart, it doesn't work in either place, I have no idea. Sounds like an outside problem. See if you can connect through a basic class outside the Tomcat container. If so, then try it again in the container. That will rule out general database connectivity issues. Jake and everyone, Sorry to have raised this question since it turned out it had nothing to do with Tomcat, but if you're curious as to what it was, just in case this gotchas someone else First, actually it was because I want to migrate my app to use DBCP instead of a home-rolled connection pool (as helpfully pointed out by Hannes Schmidt yesterday) that I decided to ask my sysadmin to move the MySQL driver from my webapp's WEB-INF/lib to $CATALINA_HOME/common/lib. Because we use Gentoo Linux, and there happened to be a Gentoo ebuild for the MySQL driver I wanted (2.0.14), he used that. I made the mistake of thinking that this was simply an identical JAR file to the one that MySQL distributes on their site, which I had been formerly using. Unfortunately, it's not that simple. The MySQL driver package from the ebuild has apparently been repackaged into the org.gjt.mm.mysql package. I had never heard of GJT before so I checked it out -- apparently it's an effort to aggregate open source Java classes. But because of the repackaging, the Class.forName() call needs to take into account the different package name. So instead of com.mysql.jdbc.Driver I needed to use org.gjt.mm.mysql.Driver and it's as simple as that. I should have read the README distributed with the ebuild instead of making the assumption that it was identical to the MySQL-distributed driver. But just in case anyone ever runs into this hiccup, I hope you find this explanation in the archives. Erik EP Jacob Kjome wrote: Hello Mehdi, If you are using DBCP connection pooling, your driver *must* exist in CATALINA_HOME/common/lib. This is because the DBCP libraries exist in common/lib and the fact that classes from common/lib do not have access to the child classloader in WEB-INF/lib. However, your classes in WEB-INF/lib *does* have access to the parent classloader in common/lib. So, put it in common/lib and it should work. dont' forget to add ?autoReconnect=true to your connection url config for MySQL. EP After reading this a few days ago, I decided to ask my sysadmin to move EP my mysql-connector-java-2.0.14-bin.jar file from my webapp's WEB-INF/lib EP to $CATALINA_HOME/common/lib, and he did. After we restarted Tomcat, my EP webapp wouldn't work, so, to confirm that it wasn't an application-level EP problem, I put the mysql-connector-java-2.0.14-bin.jar file back in EP WEB-INF/lib (of my webapp). The driver still can't be found for some EP reason. EP Is there something that I'm supposed to do to register the driver? EP Does it change the JDBC url if you move it to common/lib for some reason? EP Erik Jake Wednesday, January 22, 2003, 9:13:39 AM, you wrote: MNbc Hello all, MNbc i have been breaking my brain trying to get connection pooling, using MNbc Tomcat 4.1.12's build in dbcp, with mySQL 3.23. MNbc I have followed the instructions on the how this should be done, and I am MNbc getting an exception when I try to get a connection .. (like many other MNbc people it seems).. If anyone has solved this problem.. or has a link to a MNbc forum where this problem is answered please let me know.. MNbc I have downloaded mysql-connector-java-2.0.14.zip MNbc I unzipped it and copied : MNbc * the contents of WEB-INF/lib to my lib folder MNbc * contents of com to my WEB-INF/classes folder MNbc * contents of org to my WEB-INF/classes folder (this *does* contain MNbc org.gjt.mm.mysql.Driver) MNbc This does not work. My jsp test code follows, and the Exception occurs on MNbc getConnection()... MNbc %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* MNbc errorPage=error.jsp % MNbc % MNbc Context initContext = new InitialContext(); MNbc Context envContext = (Context)initContext.lookup(java:/comp/env); MNbc DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); MNbc Connection conn = ds.getConnection(); % MNbc Exception is MNbc java.sql.SQLException: Cannot load JDBC driver class MNbc 'org.gjt.mm.mysql.Driver' MNbc SERVER.XML MNbc Context path=/mysql docBase=mysql debug=0 reloadable=true MNbc Logger className=org.apache.catalina.logger.FileLogger MNbc prefix=localhost_DBTest_log. suffix=.txt MNbc timestamp=true/ MNbc Resource name=jdbc/mehdi MNbcauth=Container MNbctype=javax.sql.DataSource/ MNbc ResourceParams name=jdbc/mehdi MNbc parameter MNbc
Re: Tomcat and Apache+SSL integration issues
Thanks for your promptly answer, Lajos. I've red those guides but my problem is compiling mod_jk in HPUX 11.00 Best regards, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Lajos [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:56 PM Subject: Re: Tomcat and Apache+SSL integration issues I've done it on Linux, Solaris and Windows. I have various guides on my site, www.galatea.com/flashguides, that detail my experiences. The biggest problem I've had was in some Tomcat 4.0.x versions that didn't correctly support authentication over SSL using mod_jk. But that seems to be cleared up in recent versions. Regards, Lajos Ing. Gustavo Edelstein wrote: Hi Lajos, Which is your platform ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Lajos [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:26 PM Subject: Re: Tomcat and Apache+SSL integration issues Maris - I have done this on several occasions with mod_jk without any problem. I can't compare it to mod_proxy, since I rarely use it, but I suggest you try mod_jk. Regards, Lajos Mris Orbidns wrote: hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: [OT] jspMyAdmin
Power-Netz (Schwarz) wrote: org.apache.jasper.JasperException: /myadmin/jspmyadmin/index.jsp(16,0) This absolute uri (http://jakarta.apache.org/taglibs/i18n-1.0) cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErr orHandler.java:94) I looked up the web.xml, seems correct. did you change yours? what do you think? nothing changed there... I got mine to run by jaring the WEB-INF/classes and put it to /lib/common/ It looks nice :-) But i get NullPointerexceptions when i try to the table properties.. o.k., I jared the classes dir, where exactly did you put the file and what was it's name? the NullPointerException maybe results from a missing config-file or sth like that . . . ? Henning - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache+SSL integration issues
Ouch, sorry. I don't have access to HPUX otherwise I'd build some binaries ;) Lajos Ing. Gustavo Edelstein wrote: Thanks for your promptly answer, Lajos. I've red those guides but my problem is compiling mod_jk in HPUX 11.00 Best regards, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Lajos [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:56 PM Subject: Re: Tomcat and Apache+SSL integration issues I've done it on Linux, Solaris and Windows. I have various guides on my site, www.galatea.com/flashguides, that detail my experiences. The biggest problem I've had was in some Tomcat 4.0.x versions that didn't correctly support authentication over SSL using mod_jk. But that seems to be cleared up in recent versions. Regards, Lajos Ing. Gustavo Edelstein wrote: Hi Lajos, Which is your platform ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus S.A. www.equiplus.com - Original Message - From: Lajos [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:26 PM Subject: Re: Tomcat and Apache+SSL integration issues Maris - I have done this on several occasions with mod_jk without any problem. I can't compare it to mod_proxy, since I rarely use it, but I suggest you try mod_jk. Regards, Lajos Mris Orbidns wrote: hello all We have finished a large project which was based on Tomcat and Struts farmework. Now our client wants to use SSL. Our architecture is as follows: Client-ssl content-Apache (MOD_SLL) -unencrypted content- Tomcat We use Tomcat 4.1.18 (have tried also 4.0) and Apache HTTP server 1.3.27. SSL support is installed in Apache, and it uses mod_proxy (NOT mod_jk) to talk to Tomcat. It doesnt work very well , if I go to https:// and login succesfully, IE shows a warning message you are gonna be redirected to a non-secure connection and it goes back to http:// I have tried Tomcat+SSL without Apache HTTP server and all worked perfectly. Also I am not sure that mod_proxy (with ProxyPass and ProxyPassReverse in httpd.conf file) is enough, or should we use mod_jk ? Does anybody have some ideas how to solve it ? thanx Maris Orbidans app. architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does Tomcat set the classpath???
Thanks for the info, that would seem to make sense. The real reson for this problem is that I'm trying to figure out why the necessary classes in the IBM JDK don't get loaded. I'm assuming the Bootstrap classloader calls jar files by name and doesn't know the names of the jar files in the IBM JDK since some are different than the ones in the SUN JDK. Just looking for confirmation on that. I'm trying to avoid making changes to the startup scripts to make future upgrades go smoother, but it is starting to appear that those classpath changes to the scripts are necessary. Brandon -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:51 AM To: 'Tomcat Users List' Subject: RE: How does Tomcat set the classpath??? I'm not the expert (that would be Craig or someone else with his level of knowledge and experience...Craig wrote the document), but I think you are confusing the Bootstrap ClassLoader with bootstrap.jar. Bootstrap - This class loader contains the basic runtime classes provided by the Java Virtual Machine, plus any classes from JAR files present in the System Extensions directory ($JAVA_HOME/jre/lib/ext). I think that means that bootstrap.jar has the Bootstrap ClassLoader in it, and that class loader loads the basic runtime classes provided by the JVM, which, in this case, would be the classes in rt.jar. I don't think it means that bootstrap.jar supersedes or replaces rt.jar. I'm really hazy on the whole concept of a class loader though, so take whatever I say on the subject with a BIG grain of salt until someone else can chime in and correct me if I'm wrong. John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:16 AM To: Tomcat Users List Subject: RE: How does Tomcat set the classpath??? John, According to this document, bootstrap.jar contains the basic runtime classes provided by the Java Virtual Machine. That does not seem correct. In Sun's JDK, rt.jar contains most of the basic runtime classes. How does that get loaded? Does the VM take care of this on it's own somehow? I see also that tools.jar is loaded from $JAVA_HOME/lib, but still, when is rt.jar loaded? Brandon -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:33 AM To: 'Tomcat Users List' Subject: RE: How does Tomcat set the classpath??? How Tomcat finds classes: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h owto.html John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:25 AM To: Tomcat Users List Subject: How does Tomcat set the classpath??? I notice that tomcat 4.1.x explicitly sets $JAVA_HOME/lib/tools.jar and the bootstrap.jar file to the classpath, but that seems it. It overwrites any other classpath settings that may be part of the system. How does the compiler know to search for things like $JAVA_HOME/jre/lib/rt.jar? Are these automatically added based on the folder they are in within the $JAVA_HOME? I don't see anything that indicates that within the startup scripts (catalina.sh and setclasspath.sh). Any info would be appreciated. Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I can't use SAXON XML parser in my WEB app, please help
thank you yes I managed to get SAXON XSLT engine to work with Tomcat's XERCES parser. Changed classname in file javax.xml.parsers.SAXParserFactory in saxon.jar Maris Orbidans -Original Message- From: Mitchell, Edmund [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:22 PM To: 'Tomcat Users List' Subject: RE: I can't use SAXON XML parser in my WEB app, please help Mike Kay, the creator of Saxon, says: This problem is caused by the fact that you have made AElfred the default XML parser. Tomcat needs a validating parser for its own use, and AElfred isn't a validating parser. You can usually solve the problem by changing the order of things on the classpath, or by removing the file META-INF/javax.xml.parsers.SAXParserFactory from saxon.jar. Searching the Saxon mailing list for tomcat will give further suggestions. HTH Edmund -Original Message- From: Maris Orbidans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: I can't use SAXON XML parser in my WEB app, please help hello all I want to use SAXON XML parser in my WEB app. I put saxon.jar and saxon-jdom.jar in web-inf/lib of my web app. Now Tomcat doesnt work at all, it throws at startup: [ERROR] Digester - -Digester.getParser: javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating It seems that Tomcat tries to SAXON as default XML parser. I tried to move Xerces and jaxp jar's from common/endorsed to /server/lib, it didnt work, ClassCastException was thrown, it seems because of duplicated classes loaded by saxon.jar and xmlParserAPIs.jar. (classes are different but with the same name ) I was very upset, because I have read in Tomcat docs: Common - This class loader contains additional classes that are made visible to both Tomcat internal classes and to all web applications. xerces.jar - The XML parser that is visible by default to Tomcat internal classes and to web applications. This can be overridden, for a particular web application, by including your desired parser in /WEB-INF/lib. I use Tomcat 4.1.18 and jdk 1.3.1. (NOT LE) thanx in advance Maris Orbidans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 4.1.18 Socket closed
TC 4.1.18, Coyote JK over AJP13 w/ mod_jk. We're seeing a message like this in our logs for virtually every request: Jan 29, 2003 11:34:40 AM org.apache.jk.common.ChannelSocket processConnection SEVERE: Error, processing connection java.net.SocketException: Socket closed at COM.jrockit.net.TTSNativeIO.read()I(Unknown Source) at COM.jrockit.net.SocketNativeIO.read(Ljava.io.FileDescriptor;III)I(Unknow n Source) at java.net.AbstractSocketImpl$1.read(II)I(Unknown Source) at COM.jrockit.io.NativeIOInputStream.read([BII)I(Unknown Source) at java.io.BufferedInputStream.fill()V(Unknown Source) at java.io.BufferedInputStream.read1([BII)I(Unknown Source) at java.io.BufferedInputStream.read([BII)I(Unknown Source) at org.apache.jk.common.ChannelSocket.read(Lorg.apache.jk.core.MsgContext;[ BII)I(Unknown Source) at org.apache.jk.common.ChannelSocket.receive(Lorg.apache.jk.core.Msg;Lorg. apache.jk.core.MsgContext;)I(Unknown Source) at org.apache.jk.common.ChannelSocket.processConnection(Lorg.apache.jk.core .MsgContext;)V(Unknown Source) at org.apache.jk.common.SocketConnection.runIt([Ljava.lang.Object;)V(Unknow n Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V(Unknown Source) at java.lang.Thread.run()V(Unknown Source) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source) I realize that Socket closed errors are going to happen sometimes, but this often? Our logs build up quickly and we've gotten report of error 500's which may be related. Any thoughts? What could cause so many Socket closed errors? Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Compilation Error
I have the JDK. In $CATALINA_HOME/bin (I understand this replaces $TOMCAT_HOME in the newer versions of Tomcat?) there is a startup.sh that calls catalina.sh that in turn calls setclasspath.sh. setclasspath.sh was asking for a $BASEDIR variable that I set to be equal to $CATALINA_HOME. Now, my questions are: 1) Do I modify the setclasspath.sh to look for the tools.jar and dt.jar (as some people have suggested; to me the tools.jar should be sufficient) in $JAVA_HOME/lib ? 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ? 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and then either classes or lib ? 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and then either classes or lib ? Just which jar file(s) exactly does Tomcat (Catalina) need access to, where do those files need to be located, and where (which script) do I make the changes so that the JVM that Tomcat (Catalina) uses can find those compilation classes. Thank you! MC --- - Original Message - From: John Trollinger [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 11:20 AM Subject: RE: JSP Compilation Error Make sure you have the JDK and not the JRE, if you have the JRE you need the tools.jar from the JDK, if you have the JDK and still get the problem make sure tomcats classpath can see tools.jar. John -Original Message- From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:05 AM To: Tomcat Users List Subject: JSP Compilation Error I know that this topic has been covered over and over... I went to the archives but didn't find a solution to my problem. I downloaded and installed (on Solaris 8 box) jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU Tar installed on this machine to get the tar version, and my company has FTP firewall access blocked). I have Java v1.4.1_01. JAVA_HOME is set to the location of the aforementioned Java version. CATALINA_HOME is set to the installation location of jakarta-tomcat-4.1.18. I proceed to start tomcat and it comes up. Then when I try to access it with http://myserver.company.com:8080 I get the following error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho st/_/index_jsp .java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ 1 error ...and a long stack trace... --- I've tried everything I've run into in the archives. Jasper uses Ant. How can I ensure that the correct jar files are being called so that Jasper/Ant can compile JSP files? Why isn't it working? Please help. I need to evaluate a content management solution (Red Hat's CCM) that runs on top of Tomcat. Thank you. MC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does Tomcat set the classpath???
I'm pretty sure there are people using Tomcat with other JVM's besides Sun's. John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 12:31 PM To: Tomcat Users List Subject: RE: How does Tomcat set the classpath??? Thanks for the info, that would seem to make sense. The real reson for this problem is that I'm trying to figure out why the necessary classes in the IBM JDK don't get loaded. I'm assuming the Bootstrap classloader calls jar files by name and doesn't know the names of the jar files in the IBM JDK since some are different than the ones in the SUN JDK. Just looking for confirmation on that. I'm trying to avoid making changes to the startup scripts to make future upgrades go smoother, but it is starting to appear that those classpath changes to the scripts are necessary. Brandon -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:51 AM To: 'Tomcat Users List' Subject: RE: How does Tomcat set the classpath??? I'm not the expert (that would be Craig or someone else with his level of knowledge and experience...Craig wrote the document), but I think you are confusing the Bootstrap ClassLoader with bootstrap.jar. Bootstrap - This class loader contains the basic runtime classes provided by the Java Virtual Machine, plus any classes from JAR files present in the System Extensions directory ($JAVA_HOME/jre/lib/ext). I think that means that bootstrap.jar has the Bootstrap ClassLoader in it, and that class loader loads the basic runtime classes provided by the JVM, which, in this case, would be the classes in rt.jar. I don't think it means that bootstrap.jar supersedes or replaces rt.jar. I'm really hazy on the whole concept of a class loader though, so take whatever I say on the subject with a BIG grain of salt until someone else can chime in and correct me if I'm wrong. John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:16 AM To: Tomcat Users List Subject: RE: How does Tomcat set the classpath??? John, According to this document, bootstrap.jar contains the basic runtime classes provided by the Java Virtual Machine. That does not seem correct. In Sun's JDK, rt.jar contains most of the basic runtime classes. How does that get loaded? Does the VM take care of this on it's own somehow? I see also that tools.jar is loaded from $JAVA_HOME/lib, but still, when is rt.jar loaded? Brandon -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:33 AM To: 'Tomcat Users List' Subject: RE: How does Tomcat set the classpath??? How Tomcat finds classes: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h owto.html John -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:25 AM To: Tomcat Users List Subject: How does Tomcat set the classpath??? I notice that tomcat 4.1.x explicitly sets $JAVA_HOME/lib/tools.jar and the bootstrap.jar file to the classpath, but that seems it. It overwrites any other classpath settings that may be part of the system. How does the compiler know to search for things like $JAVA_HOME/jre/lib/rt.jar? Are these automatically added based on the folder they are in within the $JAVA_HOME? I don't see anything that indicates that within the startup scripts (catalina.sh and setclasspath.sh). Any info would be appreciated. Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hourly tomcat log rotation
I would like to rotate the tomcat logs hourly. If it works anything like apache, I can't just grab the log file, as I also have to get apache to close all its files and reopen them. Is there a way I could do that from the command line without stopping and restarting the service? Thanks for your help -- Felicia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/Weblogic!!...
Here is a contrary point of view. They have nothing close to the same level of functionality. Tomcat is a JSP and servlet container. Weblogic can do these things, but it is also an EJB container, RMI server, insert list of features here. In some cases it makes sense to integrate tomcat with weblogic. It's much cheaper to cluster tomcat servers than to cluster weblogic servers. The cost and functionality of weblogic is wasted on doing things like serving JSPs. I don't have a lot of advice on how to do the integration. So don't ask. :) WL will take connections from java clients (amongst others), including tomcat. It shouldn't be that hard to find advice on the internet. -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 5:47 AM To: 'Tomcat Users List' Subject: RE: Tomcat/Weblogic!!... Weblogic and Tomcat do the same thing! They are both java servlet containers... It might make sense to integrate Tomcat with Apache or Weblogic with Tomcat but _not_ weblogic and Tomcat. -Original Message- From: Ramkumar Krishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 2:29 PM To: Tomcat Users List Subject: Tomcat/Weblogic!!... Hi, Is it possible to integrate tomcat (web server) and weblogic (App server)..if so how it is possible?.. Any help would be appreciated thanks, Ramkumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP Compilation Error
If you have the JDK and Tomcat 4.1.18, you don't have to do any of that. All you need to do is set JAVA_HOME, and CATALINA_HOME. You shouldn't have to edit any startup scripts whatsoever, nor do you need to set a CLASSPATH environment variable. For the exact steps needed to install Tomcat, see the sections named Install JDK and Build/Install Tomcat in my Solaris 8 HOWTO: http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html My HOWTO uses GNU tar, but that shouldn't make a difference if you are using the binary version compressed with a different tool. John -Original Message- From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 12:46 PM To: Tomcat Users List Subject: Re: JSP Compilation Error I have the JDK. In $CATALINA_HOME/bin (I understand this replaces $TOMCAT_HOME in the newer versions of Tomcat?) there is a startup.sh that calls catalina.sh that in turn calls setclasspath.sh. setclasspath.sh was asking for a $BASEDIR variable that I set to be equal to $CATALINA_HOME. Now, my questions are: 1) Do I modify the setclasspath.sh to look for the tools.jar and dt.jar (as some people have suggested; to me the tools.jar should be sufficient) in $JAVA_HOME/lib ? 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ? 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and then either classes or lib ? 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and then either classes or lib ? Just which jar file(s) exactly does Tomcat (Catalina) need access to, where do those files need to be located, and where (which script) do I make the changes so that the JVM that Tomcat (Catalina) uses can find those compilation classes. Thank you! MC --- - Original Message - From: John Trollinger [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 11:20 AM Subject: RE: JSP Compilation Error Make sure you have the JDK and not the JRE, if you have the JRE you need the tools.jar from the JDK, if you have the JDK and still get the problem make sure tomcats classpath can see tools.jar. John -Original Message- From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:05 AM To: Tomcat Users List Subject: JSP Compilation Error I know that this topic has been covered over and over... I went to the archives but didn't find a solution to my problem. I downloaded and installed (on Solaris 8 box) jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU Tar installed on this machine to get the tar version, and my company has FTP firewall access blocked). I have Java v1.4.1_01. JAVA_HOME is set to the location of the aforementioned Java version. CATALINA_HOME is set to the installation location of jakarta-tomcat-4.1.18. I proceed to start tomcat and it comes up. Then when I try to access it with http://myserver.company.com:8080 I get the following error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho st/_/index_jsp .java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ 1 error ...and a long stack trace... --- I've tried everything I've run into in the archives. Jasper uses Ant. How can I ensure that the correct jar files are being called so that Jasper/Ant can compile JSP files? Why isn't it working? Please help. I need to evaluate a content management solution (Red Hat's CCM) that runs on top of Tomcat. Thank you. MC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP Compilation Error
I put the tools.jar in my webserver/common/lib -Original Message- From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 12:46 PM To: Tomcat Users List Subject: Re: JSP Compilation Error I have the JDK. In $CATALINA_HOME/bin (I understand this replaces $TOMCAT_HOME in the newer versions of Tomcat?) there is a startup.sh that calls catalina.sh that in turn calls setclasspath.sh. setclasspath.sh was asking for a $BASEDIR variable that I set to be equal to $CATALINA_HOME. Now, my questions are: 1) Do I modify the setclasspath.sh to look for the tools.jar and dt.jar (as some people have suggested; to me the tools.jar should be sufficient) in $JAVA_HOME/lib ? 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ? 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and then either classes or lib ? 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and then either classes or lib ? Just which jar file(s) exactly does Tomcat (Catalina) need access to, where do those files need to be located, and where (which script) do I make the changes so that the JVM that Tomcat (Catalina) uses can find those compilation classes. Thank you! MC --- - Original Message - From: John Trollinger [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 11:20 AM Subject: RE: JSP Compilation Error Make sure you have the JDK and not the JRE, if you have the JRE you need the tools.jar from the JDK, if you have the JDK and still get the problem make sure tomcats classpath can see tools.jar. John -Original Message- From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:05 AM To: Tomcat Users List Subject: JSP Compilation Error I know that this topic has been covered over and over... I went to the archives but didn't find a solution to my problem. I downloaded and installed (on Solaris 8 box) jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU Tar installed on this machine to get the tar version, and my company has FTP firewall access blocked). I have Java v1.4.1_01. JAVA_HOME is set to the location of the aforementioned Java version. CATALINA_HOME is set to the installation location of jakarta-tomcat-4.1.18. I proceed to start tomcat and it comes up. Then when I try to access it with http://myserver.company.com:8080 I get the following error: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho st/_/index_jsp .java:266: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ 1 error ...and a long stack trace... --- I've tried everything I've run into in the archives. Jasper uses Ant. How can I ensure that the correct jar files are being called so that Jasper/Ant can compile JSP files? Why isn't it working? Please help. I need to evaluate a content management solution (Red Hat's CCM) that runs on top of Tomcat. Thank you. MC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] jikes for windows?
Is there a jikes build supporting -encoding for windows available? Timo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and ~user mapping
SRV.9.1 of Servlet Spec 2.3 says: A web application is rooted at a specific path within a web server. ... A servlet container can establish rules for automatic generation of web applications. For example, a ~user mapping could be used to map a web application based at /home/user/public_html/. I note that this is a can and not a must. Does any version of Tomcat support this? Specifically, the request is to have a bunch of students with webapps in their home directories and have Tomcat be able to see the webapps and execute them. Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
RE: Tomcat and ~user mapping
Howdy, One way to do this would be to define a Host per student with the appBase at the student's public_html (or webapps, or whatever) directory? Yoav Shapira Millennium ChemInformatics -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 1:18 PM To: 'Tomcat Users List' Subject: Tomcat and ~user mapping SRV.9.1 of Servlet Spec 2.3 says: A web application is rooted at a specific path within a web server. ... A servlet container can establish rules for automatic generation of web applications. For example, a ~user mapping could be used to map a web application based at /home/user/public_html/. I note that this is a can and not a must. Does any version of Tomcat support this? Specifically, the request is to have a bunch of students with webapps in their home directories and have Tomcat be able to see the webapps and execute them. Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and ~user mapping
One way to do this would be to define a Host per student with the appBase at the student's public_html (or webapps, or whatever) directory? Thanks! I neglected to mention that Apache is also involved, so that may complicate the issue. -- Wendy
Re: MySQL Hell
Hi, What Henning did OK, I have the driver in my ..server/lib and works also. Tony On Wednesday, Jan 29, 2003, at 17:02 Europe/Berlin, Henning Heil wrote: Erik, a.f.a.i.k. the driver has to be added to the classpath (I did it like that and it works fine.) rgds, Henning Erik Price wrote: Jacob Kjome wrote: Hello Mehdi, If you are using DBCP connection pooling, your driver *must* exist in CATALINA_HOME/common/lib. This is because the DBCP libraries exist in common/lib and the fact that classes from common/lib do not have access to the child classloader in WEB-INF/lib. However, your classes in WEB-INF/lib *does* have access to the parent classloader in common/lib. So, put it in common/lib and it should work. dont' forget to add ?autoReconnect=true to your connection url config for MySQL. After reading this a few days ago, I decided to ask my sysadmin to move my mysql-connector-java-2.0.14-bin.jar file from my webapp's WEB-INF/lib to $CATALINA_HOME/common/lib, and he did. After we restarted Tomcat, my webapp wouldn't work, so, to confirm that it wasn't an application-level problem, I put the mysql-connector-java-2.0.14-bin.jar file back in WEB-INF/lib (of my webapp). The driver still can't be found for some reason. Is there something that I'm supposed to do to register the driver? Does it change the JDBC url if you move it to common/lib for some reason? Erik Jake Wednesday, January 22, 2003, 9:13:39 AM, you wrote: MNbc Hello all, MNbc i have been breaking my brain trying to get connection pooling, using MNbc Tomcat 4.1.12's build in dbcp, with mySQL 3.23. MNbc I have followed the instructions on the how this should be done, and I am MNbc getting an exception when I try to get a connection .. (like many other MNbc people it seems).. If anyone has solved this problem.. or has a link to a MNbc forum where this problem is answered please let me know.. MNbc I have downloaded mysql-connector-java-2.0.14.zip MNbc I unzipped it and copied : MNbc * the contents of WEB-INF/lib to my lib folder MNbc * contents of com to my WEB-INF/classes folder MNbc * contents of org to my WEB-INF/classes folder (this *does* contain MNbc org.gjt.mm.mysql.Driver) MNbc This does not work. My jsp test code follows, and the Exception occurs on MNbc getConnection()... MNbc %@ page language=java import=java.sql.*, javax.sql.*, javax.naming.* MNbc errorPage=error.jsp % MNbc % MNbc Context initContext = new InitialContext(); MNbc Context envContext = (Context)initContext.lookup(java:/comp/env); MNbc DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi); MNbc Connection conn = ds.getConnection(); % MNbc Exception is MNbc java.sql.SQLException: Cannot load JDBC driver class MNbc 'org.gjt.mm.mysql.Driver' MNbc SERVER.XML MNbc Context path=/mysql docBase=mysql debug=0 reloadable=true MNbc Logger className=org.apache.catalina.logger.FileLogger MNbc prefix=localhost_DBTest_log. suffix=.txt MNbc timestamp=true/ MNbc Resource name=jdbc/mehdi MNbc auth=Container MNbc type=javax.sql.DataSource/ MNbc ResourceParams name=jdbc/mehdi MNbc parameter MNbc namefactory/name MNbc valueorg.apache.commons.dbcp.BasicDataSourceFactory/value MNbc /parameter MNbc !-- Maximum number of dB connections in pool. Make sure you MNbc configure your mysqld max_connections large enough to handle MNbc all of your db connections. Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxActive/name MNbc value100/value MNbc /parameter MNbc !-- Maximum number of idle dB connections to retain in pool. MNbc Set to 0 for no limit. MNbc -- MNbc parameter MNbc namemaxIdle/name MNbc value30/value MNbc /parameter MNbc !-- Maximum time to wait for a dB connection to become available MNbc in ms, in this example 10 seconds. An Exception is thrown if MNbc this timeout is exceeded. Set to -1 to wait indefinitely. MNbc -- MNbc parameter MNbc namemaxWait/name MNbc value1/value MNbc /parameter MNbc !-- MySQL dB username and password for dB connections -- MNbc parameter MNbc nameusername/name MNbc valuemehdi/value MNbc /parameter MNbc parameter MNbc namepassword/name MNbc valuemypass/value MNbc /parameter MNbc !-- Class name for mm.mysql JDBC driver -- MNbc parameter MNbc namedriverClassName/name MNbc valueorg.gjt.mm.mysql.Driver/value MNbc /parameter MNbc !-- The JDBC connection url for connecting to your MySQL dB. MNbc The autoReconnect=true argument to the url makes sure that the MNbc mm.mysql JDBC Driver will automatically reconnect if mysqld closed MNbc the MNbc connection. mysqld by default closes idle connections after 8 MNbc hours. MNbc -- MNbc parameter MNbc nameurl/name MNbc valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value MNbc /parameter MNbc /ResourceParams MNbc /Context MNbc running out of time, and hair. MNbc Thanks, MNbc Med MNbc -- MNbc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] MNbc For additional commands, e-mail: mailto:[EMAIL PROTECTED]