Re: jsvc.exec error: Cannot find daemon loader
I think I have this reasonably well isolated. On Fedora if I: chmod 750 bootstrap.jar I get the error: 31/08/2007 01:05:25 14411 jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader 31/08/2007 01:05:25 14410 jsvc.exec error: Service exit with a return value of 1 But if I do this instead: chmod 755 bootstrap.jar It works fine. Strange that bootstrap.jar has to be world readable and executable in order for java to find the daemon loader. The same case applies to setting permissions for other files, although I have not isolated the exact cases yet. Right now I'm just leaving the permissions as 644 and 755, rather than 640 and 750, although I'd prefer the latter. Cheers, - Ole Ole Ersoy wrote: Hi Markus, Thank you for the suggestion. I tried that as well, but I still get the same message. I think there is something funky going on with Fedora, as described here: http://i-hacker.blogspot.com/2007/01/cannot-find-daemon-loader-issue-with.html I also tried what they did, but still no love. I'll keep trying with more and more parameters. Cheers, - Ole Markus Schönhaber wrote: Ole Ersoy schrieb: I'm trying to run tomcat with jsvc. I did all the things in the manual, and now I'm trying to run it with: ./bin/jsvc -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap And I get this in catalina.err: 22/08/2007 12:17:31 6772 jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader 22/08/2007 12:17:31 6771 jsvc.exec error: Service exit with a return value of 1 Any ideas how to fix this? Add commons-daemon.jar to the classpath: ./bin/jsvc -cp ./bin/commons-daemon.jar:./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat freeze after some times
Hi Cris, thanks for your reply. Yes: I checked the process via top/netstat/lsof and I haven't detect any strange situation. The super-strange thing is that the other webapps, on the same tomcat-instance, continue to work when the single-app fail. TIA Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ice, Ice72 wrote: I'm using tomcat 5.5.20 on a linux-FC7 (krn 2.6.20). Every about 20 days tomcat freeze and I must restart it. Your thread dump looks clean. Are you sure Tomcat is doing anything? If you run 'top' does it consume any CPU time? (deadlock won't consume any CPU time, but it's a good piece of information to have). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG1sqk9CaO5/Lv0PARAslpAJ9A1NSSmhnMKfVBrLPr4LRDv1wcYACeP4Fz J0fTXHX494UK0f3ZwRAfyMM= =079m -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-freeze-after-some-times-tf4353175.html#a12421410 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The description for Event ID ( 5 ) in Source ( Apache Tomcat 4.1 ) cannot be found.
I had to restart Apache Tomcat 4.1 this morning and the following appeared in the application logs. Any one got any ideas? Thanks in advance. Event Type: Information Event Source: Apache Tomcat 4.1 Event Category: None Event ID: 5 Date: 8/31/2007 Time: 9:25:37 AM User: N/A Computer: *removed* Description: The description for Event ID ( 5 ) in Source ( Apache Tomcat 4.1 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Apache Tomcat 4.1. Event Type: Information Event Source: Apache Tomcat 4.1 Event Category: None Event ID: 4 Date: 8/31/2007 Time: 9:25:37 AM User: N/A Computer: *removed* Description: The description for Event ID ( 4 ) in Source ( Apache Tomcat 4.1 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Apache Tomcat 4.1. -- View this message in context: http://www.nabble.com/The-description-for-Event-ID-%28-5-%29-in-Source-%28-Apache-Tomcat-4.1-%29-cannot-be-found.-tf4358975.html#a12422838 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Check JSP/Servlet Version from a command line
Hi All How can I check from a command line on *nix the JSP/Servlet version installed I am inheriting a Tomcat installation. There are issues with it, and a solution I got from this mailing list was to upgrade the JDK version. We currently have java version 1.5.0_08 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03) Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing) Im upgrading that to update 12. We are running Tomcat 5.5.23 Will I need to upgrade tomcat as well? The only version check I can see is the one here: http://tomcat.apache.org/whichversion.html Jimmy
Using own index.html in $CATALINA_HOME/webapps/ROOT directory
After changing port to 80 attempting to use Tomcat as a HTTP server as well as a container. When entering http:\\localhost I am getting the standard Tomcat display. However its being drawn from the index.jsp rather than the index.html due the message on the page detailing $CATALINA_HOME/webapps/ROOT/index.jsp What I have attempted to do is place my own static html files in the C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT directory. Basically expecting my index.html to be displayed. However it only attempts to display the index.jsp page. I have tried commenting out the - welcome-fileindex.jsp/welcome-file from the web.xml but this does not make any difference. I want to use the ROOT directory and force the index.html to be used. All i get is a Error 404 message. Can anyone help me please? -- View this message in context: http://www.nabble.com/Using-own-index.html-in-%24CATALINA_HOME-webapps-ROOT-directory-tf4359312.html#a12423852 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Server.xml Settings
Hallo, I expanded my server.mxl. I added after the tag Host name=localhost .../ new tag Host name=dato.app.at ... Context displayName= docBase=app path= workDir=work/Catlina/localhost/app /Context /Host So there are now two ways to start my web-application. By calling http://localhost:8080/app or by calling http://dato.app.at:8080 The problem that I didn't solve is how to set the port 8080 to 80 but only for calling the side http://dato.app.at. The calling from http://localhost should like now not be allowed without the declarations of port 8080. I inserted Connector port=80 .. before Engine ... tag, but when I call http://localhost I get the tomcat manager like by calling http://localhost:8080, but this I don't want. Is there a way to declare the port=80 but only for host=dato.app.at? greetings, Stasa Jerinic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dato Denkwerkzeuge :: Corneliusgasse 4 :: A-1060 Wien T +43 (0)1 581 29 70 :: F +43 (0)1 581 29 80 [EMAIL PROTECTED] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - www.dato.at www.nutritional-software.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Re: Check JSP/Servlet Version from a command line
Jimmy Phelan :: Blacknight Solutions wrote: How can I check from a command line on *nix the JSP/Servlet version installed Not sure what you mean. You stated you are using Tomcat 5.5.23 so that supports the 2.4 servlet spec and 2.0 jsp spec. If you want to know what version of the spec your web applications have been written to, then you'll need to look in the web.xml files for each application. There are issues with it, and a solution I got from this mailing list was to upgrade the JDK version. We currently have java version 1.5.0_08 Im upgrading that to update 12. Will I need to upgrade tomcat as well? Not essential, although 5.5.25 should be out soon. There are quite a few bug fixes so you might want to take the opportunity to upgrade. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context-param vs env-entry. Ready? Fight!
context-param requires access to the servlet context. env-entry requires access to jndi Do you really want code that has nothing to do with the servlet api dependent on ServletContext? Plugging in a new jndi lookup for testing is much easier. -Tim Brian Munroe wrote: I just started to help maintain an application that I didn't originally develop. It is using context-param elements and getInitParameter() to access application configuration items in web.xml. I have always used env-entry elements and JNDI to store and read these items, respectively. Refactoring the code to use env-entry's could be tedious, so I am looking for any advantages or disadvantages for using either method. One thing I did learn is that env-entry's can be modifed during runtime? Also, since they are using JNDI, if I needed to migrate the configuration items to a different datastore, reworking the code might be easier. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using own index.html in $CATALINA_HOME/webapps/ROOT directory
jhayden wrote: I want to use the ROOT directory and force the index.html to be used. All i get is a Error 404 message. Delete the contents of ROOT (jsps, WEB-INF, etc) apart from your files. You might need to reload the ROOT web application although I am fairly sure the default configuration will detect the change and reload the webapp for you. Note: Tomcat 6 treats any directory in webapps as a web application. HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server.xml Settings
Stasa Jerinic wrote: Is there a way to declare the port=80 but only for host=dato.app.at? No. Connectors apply to the whole server. The Remote Address Valve applied at the host level (see http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html) may help you do what you want to do. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Check JSP/Servlet Version from a command line
Hi Mark Could you let me know if the update to .25 will address the issue we are experiencing here: http://mail-archives.apache.org/mod_mbox/tomcat-users/200708.mbox/%3c073301c [EMAIL PROTECTED] Thank you for your time, it is much appreciated Jimmy -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: 31 August 2007 12:00 To: Tomcat Users List Subject: Re: Check JSP/Servlet Version from a command line Jimmy Phelan :: Blacknight Solutions wrote: How can I check from a command line on *nix the JSP/Servlet version installed Not sure what you mean. You stated you are using Tomcat 5.5.23 so that supports the 2.4 servlet spec and 2.0 jsp spec. If you want to know what version of the spec your web applications have been written to, then you'll need to look in the web.xml files for each application. There are issues with it, and a solution I got from this mailing list was to upgrade the JDK version. We currently have java version 1.5.0_08 Im upgrading that to update 12. Will I need to upgrade tomcat as well? Not essential, although 5.5.25 should be out soon. There are quite a few bug fixes so you might want to take the opportunity to upgrade. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using own index.html in $CATALINA_HOME/webapps/ROOT directory
Tried that but still getting the error. I only left the default index.html file there and it still gives me the 404 Error. It appears that it only wants to use the index.jsp file? -- View this message in context: http://www.nabble.com/Using-own-index.html-in-%24CATALINA_HOME-webapps-ROOT-directory-tf4359312.html#a12424931 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to profile Tomcat with Rational Purify?
Hi, What are the steps for profiling a web server (i.e. Tomcat)? I've Tomcat with our some custom implementations. I've to do Tomcat profiling with Rational Purify. Could you please share some good pointers regarding the same. Thanks, -Hitesh - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to profile Tomcat with Rational Purify?
From: Hitesh Raghav [mailto:[EMAIL PROTECTED] What are the steps for profiling a web server (i.e. Tomcat)? Broadly the same as those for profiling any other app: decide what you want to measure, set up the instrumentation, run, analyse results. In your case, the instrumentation is Purify. The likely reason you got no answers the first time you posted this is that nobody on the list has ever profiled Tomcat using Purify. I suspect you're on your own here! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balancing Tomcat 5.0.X, hardware or software?
And what about SSL?, it is better to let the load balancer to take care of it or every node in the farm? Thanks, Johann -- View this message in context: http://www.nabble.com/Load-Balancing-Tomcat-5.0.X%2C-hardware-or-software--tf4354748.html#a12425400 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
create a keystore without user prompting
Hi, I want to make batch file which will create a keystore file but after calling this keytool -genkey -alias tomcat -keyalg RSA there will be a user prompt for my user name and such things. Does anyone know how i can skip those prompts or can I set those values with additonal parameters. I searched through the JDK Docu but I could not find it.. Thanks -- View this message in context: http://www.nabble.com/create-a-keystore-without-user-prompting-tf4359949.html#a12425671 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Check JSP/Servlet Version from a command line
Jimmy Phelan :: Blacknight Solutions wrote: Hi Mark Could you let me know if the update to .25 will address the issue we are experiencing here: http://mail-archives.apache.org/mod_mbox/tomcat-users/200708.mbox/%3c073301c [EMAIL PROTECTED] No idea. As Filip said, JVM/OS incompatibility is the most likely cause. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using own index.html in $CATALINA_HOME/webapps/ROOT directory
jhayden wrote: Tried that but still getting the error. I only left the default index.html file there and it still gives me the 404 Error. It appears that it only wants to use the index.jsp file? The default welcome file list is index.html. index.htm, index.jsp. In that order. Is this a clean install? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with SSL-enabled Tomcat 5.5
I'm having the same problem. Some people from my company created the Certificate Signing Request and the only thing that I've received was an email with the certificate, then I tried to install it and I had the same problems that Werner has. Do I have to do all over again from Tomcat from the private key, CSR, ...? Thanks, Johann #Generate a private key keytool -storepass changeit -genkey -alias tomcat -keyalg RSA #Generate the Certificate Signing Request (CSR) keytool -storepass changeit -certreq -alias tomcat -file name.csr #Send the CSR to get a certificate #Import the intermediate cert keytool -storepass changeit -import -alias intermediateCA -trustcacerts -file intermediateCA.cer #Import the cert keytool -storepass changeit -import -alias tomcat -trustcacerts -file name.cer -- View this message in context: http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12426259 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need info on IPv6 support for Tomcat in RHEL and SLES distros
Well. That depends on what the application does. An application which makes no assumptions about the size of an address and does not inspect or process addresses in any way should not care whether it is dealing with IPv6. Things like the RemoteAddrValve should be checked carefully before depending on them to be unaffected. (RemoteAddrValve itself shouldn't be a problem, but your patterns might be, and so might the JVM's treatment of v4 vs. v6 addresses.) There are also URI manipulation subtleties. I expect that *most* applications won't care -- the spec. writers seem to have done a thorough job. But I wouldn't be surprised to find that there are applications which will need some fixing for v6. Have a look at this for starters: http://java.sun.com/javase/6/docs/technotes/guides/net/ipv6_guide/index.html -- Mark H. Wood, Lead System Programmer [EMAIL PROTECTED] Typically when a software vendor says that a product is intuitive he means the exact opposite. pgp2PqEWDE6tf.pgp Description: PGP signature
Re: Problems with SSL-enabled Tomcat 5.5
you need the private key in order to run SSL, but you can import the private key, so ask the folks from your company for the private key, here is the info how you import it, someone else posted it this week http://www.agentbob.info/agentbob/79.html Filip bajistaman wrote: I'm having the same problem. Some people from my company created the Certificate Signing Request and the only thing that I've received was an email with the certificate, then I tried to install it and I had the same problems that Werner has. Do I have to do all over again from Tomcat from the private key, CSR, ...? Thanks, Johann #Generate a private key keytool -storepass changeit -genkey -alias tomcat -keyalg RSA #Generate the Certificate Signing Request (CSR) keytool -storepass changeit -certreq -alias tomcat -file name.csr #Send the CSR to get a certificate #Import the intermediate cert keytool -storepass changeit -import -alias intermediateCA -trustcacerts -file intermediateCA.cer #Import the cert keytool -storepass changeit -import -alias tomcat -trustcacerts -file name.cer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balancing Tomcat 5.0.X, hardware or software?
bajistaman wrote: And what about SSL?, it sure makes life easier to have the LB take care of it, and if you look at it from a signed certificate licensing standpoint, cheaper. verisign and the other dudes, like to charge for per-box you wish to install the cert on. it is better to let the load balancer to take care of it or every node in the farm? Thanks, Johann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to profile Tomcat with Rational Purify?
Tomcat is just another java application, nothing special at all. What I do, when I get tools for Java, is that I modify catalina.sh/catalina.bat to instead of execute the Java command, I prefix it with the echo command, so that is spits out the command line that I am running. Then I would take that command line with its arguments and put in Purify, and voila, you should be good to go Filip Peter Crowther wrote: From: Hitesh Raghav [mailto:[EMAIL PROTECTED] What are the steps for profiling a web server (i.e. Tomcat)? Broadly the same as those for profiling any other app: decide what you want to measure, set up the instrumentation, run, analyse results. In your case, the instrumentation is Purify. The likely reason you got no answers the first time you posted this is that nobody on the list has ever profiled Tomcat using Purify. I suspect you're on your own here! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with SSL-enabled Tomcat 5.5
Hello, interestingly it did not work for me in the end. Basically I can import the certificate and the private key to rebuild the original keystore using AgentBob's Java code. Fine. Then when restarting Tomcat it does not complain anymore and everything appears to be fine (Tomcat says something like Server started and no error messages whatsoever). However when connecting to the SSL-enabled site, there is no error message coming up, but any browser (IE, Firefox, Konqueror) fail to connect to the site saying that the certificate is invalid or corrupted (although one can still imspect it in the cert properties of the respective browser). Any ideas on how to debug this problem? Tomcat appears to be okay with the cert and the keystore but SSL is still not working? @Christian: Did you have the same problem in the end or did it all work for you? Bye, Werner - Original Message - From: Filip Hanik - Dev Lists [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, August 31, 2007 4:27 PM Subject: Re: Problems with SSL-enabled Tomcat 5.5 you need the private key in order to run SSL, but you can import the private key, so ask the folks from your company for the private key, here is the info how you import it, someone else posted it this week http://www.agentbob.info/agentbob/79.html Filip bajistaman wrote: I'm having the same problem. Some people from my company created the Certificate Signing Request and the only thing that I've received was an email with the certificate, then I tried to install it and I had the same problems that Werner has. Do I have to do all over again from Tomcat from the private key, CSR, ...? Thanks, Johann #Generate a private key keytool -storepass changeit -genkey -alias tomcat -keyalg RSA #Generate the Certificate Signing Request (CSR) keytool -storepass changeit -certreq -alias tomcat -file name.csr #Send the CSR to get a certificate #Import the intermediate cert keytool -storepass changeit -import -alias intermediateCA -trustcacerts -file intermediateCA.cer #Import the cert keytool -storepass changeit -import -alias tomcat -trustcacerts -file name.cer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using own index.html in $CATALINA_HOME/webapps/ROOT directory
Hi, Well, what web.xml file you modified? CATALINA_HOME = C:\Program Files\Apache Software Foundation\Tomcat 6.0\ 1. %CATALINA_HOME%/conf/web.xml 2. %CATALINA_HOME%/webapps/ROOT/WEB-INF/web.xml I have Tomcat 6 installed, i tried to do that, and works for me, You most comment web.xml in opction 1. and verify web.xml in option 2 for welcome-file. I got 404 error when I put a URL like this on my browser: (8180 is my port for tomcat) http://localhost:8180/ROOT/ but with http://localhost:8180 loads my new Index.html. VL. On Aug 31, 2007, at 4:10 AM, jhayden wrote: After changing port to 80 attempting to use Tomcat as a HTTP server as well as a container. When entering http:\\localhost I am getting the standard Tomcat display. However its being drawn from the index.jsp rather than the index.html due the message on the page detailing $CATALINA_HOME/webapps/ROOT/index.jsp What I have attempted to do is place my own static html files in the C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT directory. Basically expecting my index.html to be displayed. However it only attempts to display the index.jsp page. I have tried commenting out the - welcome-fileindex.jsp/welcome- file from the web.xml but this does not make any difference. I want to use the ROOT directory and force the index.html to be used. All i get is a Error 404 message. Can anyone help me please? -- View this message in context: http://www.nabble.com/Using-own- index.html-in-%24CATALINA_HOME-webapps-ROOT-directory- tf4359312.html#a12423852 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 JNI Re-Loading Problem
Hey all, I'm loading a couple classes that use native code libraries. Everything loads great the first time, but during hot deployment, tomcat complains the .so is already loaded. Is there a way to make sure the libraries get unloaded? In one of my classes I have the standard: static { System.loadLibrary(name); } I'm using Tomcat 6.0.14. -Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 1.4.31 hangs when app is deployed
We are running into a problem we have never seen before. Tomcat is hanging when restarted after a war file is deployed. In the past any problems resulted in Tomcat just not starting the app and there was usually a clear indication in a log file somewhere. Because a third party manages the server we have to wait for the log files to be mailed to us but the person in charge said he did not find any indication of what was going on in the log file without saying what files he looked at. Can anyone suggest what might be happening and what logs to look at to determine cause of the problem?We are deploying to Tomcat 1.4.31 running in a Java 1.4 environment. The server in question is running linux. We have experienced no problems during development when using the same deployment procedure to deploy to an IIS server. Thanks for any help or advice, -=beeky - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with SSL-enabled Tomcat 5.5
I think what is happening in your case is that the SSL handshake fails, not even sure if debug turned on would show it. (depending on what connector you are running) try removing the keyAlias (if you have it set) to let java decide on what cert in the keystore to use Filip Werner Schalk wrote: Hello, interestingly it did not work for me in the end. Basically I can import the certificate and the private key to rebuild the original keystore using AgentBob's Java code. Fine. Then when restarting Tomcat it does not complain anymore and everything appears to be fine (Tomcat says something like Server started and no error messages whatsoever). However when connecting to the SSL-enabled site, there is no error message coming up, but any browser (IE, Firefox, Konqueror) fail to connect to the site saying that the certificate is invalid or corrupted (although one can still imspect it in the cert properties of the respective browser). Any ideas on how to debug this problem? Tomcat appears to be okay with the cert and the keystore but SSL is still not working? @Christian: Did you have the same problem in the end or did it all work for you? Bye, Werner - Original Message - From: Filip Hanik - Dev Lists [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, August 31, 2007 4:27 PM Subject: Re: Problems with SSL-enabled Tomcat 5.5 you need the private key in order to run SSL, but you can import the private key, so ask the folks from your company for the private key, here is the info how you import it, someone else posted it this week http://www.agentbob.info/agentbob/79.html Filip bajistaman wrote: I'm having the same problem. Some people from my company created the Certificate Signing Request and the only thing that I've received was an email with the certificate, then I tried to install it and I had the same problems that Werner has. Do I have to do all over again from Tomcat from the private key, CSR, ...? Thanks, Johann #Generate a private key keytool -storepass changeit -genkey -alias tomcat -keyalg RSA #Generate the Certificate Signing Request (CSR) keytool -storepass changeit -certreq -alias tomcat -file name.csr #Send the CSR to get a certificate #Import the intermediate cert keytool -storepass changeit -import -alias intermediateCA -trustcacerts -file intermediateCA.cer #Import the cert keytool -storepass changeit -import -alias tomcat -trustcacerts -file name.cer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 JNI Re-Loading Problem
nope, don't think you can unload them, I wouldn't load them in the webapp, if you are doing hotdeploy, or just catch the error and ignore it on a hot deploy Filip Matt Chambers wrote: Hey all, I'm loading a couple classes that use native code libraries. Everything loads great the first time, but during hot deployment, tomcat complains the .so is already loaded. Is there a way to make sure the libraries get unloaded? In one of my classes I have the standard: static { System.loadLibrary(name); } I'm using Tomcat 6.0.14. -Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context-param vs env-entry. Ready? Fight!
On 8/31/07, Tim Funk [EMAIL PROTECTED] wrote: Do you really want code that has nothing to do with the servlet api dependent on ServletContext? Plugging in a new jndi lookup for testing is much easier. Forgive my ignorance here, but do you mean, say, in a bean? That doesn't inherit the servlet's scope? I've never tried it because I always use JNDI :) -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context-param vs env-entry. Ready? Fight!
Sort of. I mean any java class which saves, loads, or gets data from somewhere and thus requires configuration at some time. Using IOC you can hand wave around those configuration issues and having one smarter class dependent on the servlet api which configures the rest of your beans is OK. -Tim Brian Munroe wrote: On 8/31/07, Tim Funk [EMAIL PROTECTED] wrote: Do you really want code that has nothing to do with the servlet api dependent on ServletContext? Plugging in a new jndi lookup for testing is much easier. Forgive my ignorance here, but do you mean, say, in a bean? That doesn't inherit the servlet's scope? I've never tried it because I always use JNDI :) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
localhost.log vs. catalina.out
Hi, this seems to be a very obvious question, but I couldn't find anything in the forums about it. What's the difference between those files? catalina.out contains everything localhost.log does, plus other messages? Messages related to tomcat initialization and stuff? I never used localhost.log for debugging purpouses, always went straight to catalina.out. []s -- View this message in context: http://www.nabble.com/localhost.log-vs.-catalina.out-tf4362187.html#a12433250 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat4.x and Tomact 5.5 on same machine
Hi Any idea how can I run tomcat 4.1.36 and Tomcat 5.5 on the same system simultaneously? Regards Urvish - Got a little couch potato? Check out fun summer activities for kids.
RE: Running Tomcat4.x and Tomact 5.5 on same machine
From: Urvish Shah [mailto:[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Running Tomcat4.x and Tomact 5.5 on same machine Any idea how can I run tomcat 4.1.36 and Tomcat 5.5 on the same system simultaneously? Just configure separate ports (or IP addresses) for each instance. Examine each Connector in server.xml, and don't forget to use unique shutdown ports for each one. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Downloaded 4.1.36 but says version is 4.1.35?
Downloaded it from http://tomcat.apache.org/download-41.cgi (http://apache.cs.utah.edu/tomcat/tomcat-4/v4.1.36/bin/apache-tomcat-4.1.36.zip) and the version it reports is: Aug 31, 2007 4:29:50 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Aug 31, 2007 4:29:50 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8090 Starting service Tomcat-Standalone Apache Tomcat/4.1.35 Then I got the sources, and the version is 4.1.35 there too? $ find . -type f | xargs fgrep 4.1.35 ./connectors/build.properties:version=4.1.35 ./container/build.properties:version=4.1.35 ./container/build.properties.default:version=4.1.35 ./container/build.properties~:version=4.1.35 Yet the RELEASE-NOTES-4.1.txt has one entry for 4.1.36: [4.1.36] mx4j Update build process so correct mx4j jar is used Any idea what's going on??? tia -- View this message in context: http://www.nabble.com/Downloaded-4.1.36-but-says-version-is-4.1.35--tf4362429.html#a12433936 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloaded 4.1.36 but says version is 4.1.35?
On 8/31/07, tk-2506 [EMAIL PROTECTED] wrote: Any idea what's going on??? The developers forgot to bump the sub version number in build.properties? Do you really need to use the 4.x series?! -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please help...
Hi all, I am having a problem setting up a connection-pool via JNDI on Tomcat 6.0.14 utilizing Oracle 10g. Currently I have a Resource for my DataSource referenced within a Context element within the server.xml file. The classes12.jar file which contains the Oracle Driver, exists within the $CATLINA-HOME/lib. I am able to successfully access my tables outside of the connection pool so I know that I am getting to the driver. Problem: When attempting to connect via the connection pool, I encounter the following message. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' I have spent the last two days trying to figure this one out, and it has me stumped. There are plenty of references to this problem on Google, but nothing yet has led me to a solution. Please note that I am NOT receiving this error in reference to a No suitable driver SQLException. The following Resource element exists within a Context. Resource name=jdbc/OracleDS auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@..com::XX username=user password=pass maxActive=20 maxIdle=10 maxWait=-1/ The following exists within my web.xml file located in the WEB-INF folder within the Host's appBase path. resource-ref descriptionOracle DataSource/description res-ref-namejdbc/OracleDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Thanks in advance for your assistance! Best regards, Mike Cronin Fax.com The New Way To Fax! http://www.fax.com/ www.fax.com Confidential: This electronic message and all contents contain information from Fax.com, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender by reply e-mail and destroy the original message and all copies. Thank you.
Threads in tomcat application.
Hi I need to design a web application that may use threads. Thats, the web application might have to read some 200 files from network. In order to speed up the process, I've decided to use threads/thread pooling. But, however I know it is not a good practice to use threads in a web/server application... Just want to know whether this will be a great impact in future.. Otherwise, do you suggest any alternative design for the above problem? Looking forward a quick reply :-) -- Manivannan Palanichamy http://mani.gw.googlepages.com/index.html
jsvc.pid question / Possibility of jsvc.pid collisions?
Hi, I was wondering whether there is a possibility for collisions for multiple servers running with jsvc on the same machine. JSVC stores the tomcat process ID in: /var/run/jsvc.pid What if another server tried to do the same? Is this a valid concern and if so is there a way to change the name of jsvc.pid to say tomcat-jsvc.pid? Thanks, - Ole - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]