Re: Stopping of tomcat failed.
Are you running apache along with tomcat? (I mean apache on port 80 and tomcat on 8080) ? -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 13:05:24 +0900 Subject: Re: Stopping of tomcat failed. Hi. I want help about the following matter. I got an information that : Apache was killed. This is the correct operation for apache. According to the following matter, tomcat was communicating with apache, and probably any web application process was executing. Is it really ? If there is no web application executing, the following matter never happen ? Yasunori Taniguchi さんは書きました: Hi. Please help me. I'm using apache and tomcat to use Web-based GUI tool on RHEL3.0. The GUI tool has a shell script that starts/stops apache and tomcat. This script with stop option displayed message [FAILED]. It means that stopping of tomcat has been failed. But the tomcat was disappeared in the process list. And re-execution of stop was failed as same as the execution of stop after succeeded-stop. (The messages output to catalina.out is tha same.) Then GUI tool was not used at that time. In the script, all the messages were discarded to /dev/null, and nothing related message was output to /var/log/messages or catalina.out. So, I want to know : 1. Did tomcat stopped clearly ? For example, are there any possibilities that tomcat leave garbage of files ? Restart of tomcat was succeeded. Does it mean that tomcat has stopped clearly ? 2. What kind of error is guessed ? --- #!/bin/sh # # Startup script # # chkconfig: 345 80 15 # description: # ### BEGIN INIT INFO # Provides: test # Required-Start: $network $remote_fs # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description:Start the gui daemon ### END INIT INFO # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status cd / if [ -f /etc/rc.status ]; then . /etc/rc.status fi if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions fi if [ -f /etc/rc.status ]; then # First reset status of this service rc_reset fi case $1 in 'start') echo -n Starting the service if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/startup.sh /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null else /usr/local/tomcat/bin/startup.sh /dev/null /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then touch /var/lock/subsys/test echo fi ;; 'stop') echo -n Stopping service. kill `cat /usr/local/apache/httpd.pid` if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/shutdown.sh else /usr/local/tomcat/bin/shutdown.sh /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then rm -f /var/lock/subsys/test echo fi ;; 'restart') $0 stop $0 start if [ -f /etc/rc.status ]; then rc_status fi ;; 'status') if [ -f /etc/rc.status ]; then echo -n Checking: if [ -f /usr/local/apache/httpd.pid ]; then rc_failed 0 rc_status -v exit 0 else rc_failed 3 rc_status -v exit 3 fi fi ;; *) echo Usage: $0 {start|stop|restart|status} ;; esac exit 0 Regards Taniguchi -- Open Source Software Database Prj. Middleware Platform Div. Software Unit, Fujitsu Limited Yasunori Taniguchi e-mail : [EMAIL PROTECTED] office layout was changed in 26th Sep., and phone number was changed phone:+81-78-304-0563 ext.:7773-5431 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] from : [EMAIL PROTECTED] (MWPF2開発) address : [EMAIL PROTECTED] TEL:7773-5431 (078-304-0563) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlet mapping request
Could you post your web.xml here? Also, mention the directory structure of WEB-INF/classes and application root. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Raymond P. Jones [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sat, 15 Apr 2006 12:05:55 -0400 Subject: servlet mapping request Hello Tomcat Users. I need your help regarding servlet mappings in our WEB-INF/web.xml file running on an Apache webserver with a Tomcat container(most recent release) on a public website. After putting our web.xml file in public\WEB-INF and asking our web host to restart Tomcat, our servlet mappings stilll do not work in our test web page. I've searched through many books, even a Tomcat Quickstart book and they all say Tomcat has to be restarted for the servlet mappings in web.xml to work. So we requested a Tomcat restart and after this, the servlet mapping we use gives a page not found error. When I use /servlet/EventsServlet in a link, it calls the servlet and it works, but according to Tomcat documentation this is a security issue that we don't want to implement. I'm hoping that you know what the solution(s) are and can point me in the right direction. I'm appreciative for assist that you may provide. Raymond P. Jones Ph: 518-446-9845 E: [EMAIL PROTECTED] Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
Re: Setting up to use 443
Refer to this tomcat documentation page for ssl configuration: http://tomcat.apache.org/tomcat-4.0-doc/ssl-howto.html Edit the server.xml accordingly. While editing the file, you have to correctly specify your realm. Then restart the tomcat. Good luck. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: David Shaw [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thu, 13 Apr 2006 23:54:29 + Subject: Setting up to use 443 I have troubled setting up server.xml to use port 443 - always report that The page cannot be displayed in IE. 8080 and 8443 works fine though. Using the same setting in server.xml and just changing the port to use 8443 instead of 443, I can access using https://localhost:8443. Any idea what I need to set in order to get 443 working? Thanks, David _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
Re: IE 20 session cookies limitation
Option is Connector emptySessionPath=true ... / Then all webapps share the same session id. Cheers Peter Am 16.04.2006 um 15:12 schrieb Tim Funk: Check the docs - there is an option that will allow tomcat to use the same jsessionid for all webapps. -Tim Rick Wong wrote: It's been a while since my last posting of this topic. I have a work-around that perhaps someone may find it useful. I worked around the issue by implementing a Tomcat Valve, and screen out for the jsessionsso cookie on every request. If I find it, I reinsert it back into the response within the valve to touch the timestamp of the jssessionsso cookie. This way, when IE wants to throw away a cookie, jsessionsso would be the last one it picks. It's not a perfect solution but there is nothing I can do about IE's deficiency (how often do you see Microsoft rigidly conforms to a spec?) Thanks, -- Rick Rick Wong wrote: Hi, I am using Tomcat 5.0.26. I have 20+ web applications hooked up with single-sign-on. Each web application generates a JESSIONID session cookie with a different path, and shares a single JSESSIONIDSSO. When testing my suite of applications, I notice that IE consistently drops my login after accessing the 20th web application within a session. I did some research and learned about RFC 2109 where HTTP agents should support a minimum of 20 session cookies per domain. That appears to be just what IE does. The following Microsoft knowledgebase article explains that: http://support.microsoft.com/default.aspx?scid=kb;EN-US; 306070. I suspect JSESSIONIDSSO was the oldest cookie, and was the first to get dropped by IE when reaching over 20 session cookies. Firefox does not have this problem. Knowing that I cannot easily refactor the application suite to make less number of web application ( 19), I am wondering if anyone else has this problem, and if and how I might work around this IE limitation. Thanks, -- Rick - 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: Tomcat embedded Valve's
problem solved :-) From: Ugur Dincer [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: users@tomcat.apache.org Subject: Tomcat embedded Valve's Date: Sun, 16 Apr 2006 19:12:22 +0200 MIME-Version: 1.0 X-Originating-IP: [194.237.142.10] X-Originating-Email: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Received: from mail.apache.org ([209.237.227.199]) by bay0-mc10-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 16 Apr 2006 10:12:50 -0700 Received: (qmail 39153 invoked by uid 500); 16 Apr 2006 17:12:48 - Received: (qmail 39142 invoked by uid 99); 16 Apr 2006 17:12:47 - Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700 Received: pass (asf.osuosl.org: domain of [EMAIL PROTECTED] designates 65.54.168.42 as permitted sender) Received: from [65.54.168.42] (HELO hotmail.com) (65.54.168.42)by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 16 Apr 2006 10:12:26 -0700 Received: from 65.54.168.200 by by113fd.bay113.hotmail.msn.com with HTTP;Sun, 16 Apr 2006 17:12:22 GMT X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt4iogl2abg+M= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Help: mailto:[EMAIL PROTECTED] List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Post: mailto:users@tomcat.apache.org List-Id: users.tomcat.apache.org Delivered-To: mailing list users@tomcat.apache.org X-ASF-Spam-Status: No, hits=1.9 required=10.0tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org X-OriginalArrivalTime: 16 Apr 2006 17:12:26.0696 (UTC) FILETIME=[EF64AC80:01C66178] X-Virus-Checked: Checked by ClamAV on apache.org Return-Path: [EMAIL PROTECTED] Hi, I'm running Tomcat embedded and have some questions. 1. How can I define a Valve so it can be invoked for any request, without using web.xml nor server.xml? StandardHost.addValve(...) doesn't have any effect. Is implementation of Lifecycle required in this case? 2. Is it possible to define the execution order of Valve's, or does Tomcat use the order in server/web.xml ? And how can that order be modified if not using server.xml nor web.xml Thanks! Ugur - 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 embedded Valve's
and how was it solved? On 4/17/06, Ugur Dincer [EMAIL PROTECTED] wrote: problem solved :-) From: Ugur Dincer [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: users@tomcat.apache.org Subject: Tomcat embedded Valve's Date: Sun, 16 Apr 2006 19:12:22 +0200 MIME-Version: 1.0 X-Originating-IP: [194.237.142.10] X-Originating-Email: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Received: from mail.apache.org ([209.237.227.199]) by bay0-mc10-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 16 Apr 2006 10:12:50 -0700 Received: (qmail 39153 invoked by uid 500); 16 Apr 2006 17:12:48 - Received: (qmail 39142 invoked by uid 99); 16 Apr 2006 17:12:47 - Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700 Received: pass (asf.osuosl.org: domain of [EMAIL PROTECTED] designates 65.54.168.42 as permitted sender) Received: from [65.54.168.42] (HELO hotmail.com) (65.54.168.42)by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2006 10:12:47 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 16 Apr 2006 10:12:26 -0700 Received: from 65.54.168.200 by by113fd.bay113.hotmail.msn.com with HTTP;Sun, 16 Apr 2006 17:12:22 GMT X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt4iogl2abg+M= Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Help: mailto:[EMAIL PROTECTED] List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Post: mailto:users@tomcat.apache.org List-Id: users.tomcat.apache.org Delivered-To: mailing list users@tomcat.apache.org X-ASF-Spam-Status: No, hits=1.9 required=10.0tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org X-OriginalArrivalTime: 16 Apr 2006 17:12:26.0696 (UTC) FILETIME=[EF64AC80:01C66178] X-Virus-Checked: Checked by ClamAV on apache.org Return-Path: [EMAIL PROTECTED] Hi, I'm running Tomcat embedded and have some questions. 1. How can I define a Valve so it can be invoked for any request, without using web.xml nor server.xml? StandardHost.addValve(...) doesn't have any effect. Is implementation of Lifecycle required in this case? 2. Is it possible to define the execution order of Valve's, or does Tomcat use the order in server/web.xml ? And how can that order be modified if not using server.xml nor web.xml Thanks! Ugur - 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] -- I told the doctor I broke my leg in two places. He told me to quit going to those places. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stopping of tomcat failed.
[EMAIL PROTECTED] さんは書きました: Are you running apache along with tomcat? (I mean apache on port 80 and tomcat on 8080) ? I'm running apache on port 13000. Is there a setting of port for tomcat ? I can use web application on port 13000. I think it means apache and tomcat are running correctly. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 13:05:24 +0900 Subject: Re: Stopping of tomcat failed. Hi. I want help about the following matter. I got an information that : Apache was killed. This is the correct operation for apache. According to the following matter, tomcat was communicating with apache, and probably any web application process was executing. Is it really ? If there is no web application executing, the following matter never happen ? Yasunori Taniguchi さんは書きました: Hi. Please help me. I'm using apache and tomcat to use Web-based GUI tool on RHEL3.0. The GUI tool has a shell script that starts/stops apache and tomcat. This script with stop option displayed message [FAILED]. It means that stopping of tomcat has been failed. But the tomcat was disappeared in the process list. And re-execution of stop was failed as same as the execution of stop after succeeded-stop. (The messages output to catalina.out is tha same.) Then GUI tool was not used at that time. In the script, all the messages were discarded to /dev/null, and nothing related message was output to /var/log/messages or catalina.out. So, I want to know : 1. Did tomcat stopped clearly ? For example, are there any possibilities that tomcat leave garbage of files ? Restart of tomcat was succeeded. Does it mean that tomcat has stopped clearly ? 2. What kind of error is guessed ? --- #!/bin/sh # # Startup script # # chkconfig: 345 80 15 # description: # ### BEGIN INIT INFO # Provides: test # Required-Start: $network $remote_fs # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description:Start the gui daemon ### END INIT INFO # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status cd / if [ -f /etc/rc.status ]; then . /etc/rc.status fi if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions fi if [ -f /etc/rc.status ]; then # First reset status of this service rc_reset fi case $1 in 'start') echo -n Starting the service if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/startup.sh /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null else /usr/local/tomcat/bin/startup.sh /dev/null /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then touch /var/lock/subsys/test echo fi ;; 'stop') echo -n Stopping service. kill `cat /usr/local/apache/httpd.pid` if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/shutdown.sh else /usr/local/tomcat/bin/shutdown.sh /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then rm -f /var/lock/subsys/test echo fi ;; 'restart') $0 stop $0 start if [ -f /etc/rc.status ]; then rc_status fi ;; 'status') if [ -f /etc/rc.status ]; then echo -n Checking: if [ -f /usr/local/apache/httpd.pid ]; then rc_failed 0 rc_status -v exit 0 else rc_failed 3 rc_status -v exit 3 fi fi ;; *) echo Usage: $0 {start|stop|restart|status} ;; esac exit 0 Regards Taniguchi -- Open Source Software Database Prj. Middleware Platform Div. Software Unit, Fujitsu Limited Yasunori Taniguchi e-mail : [EMAIL PROTECTED] office layout was changed in 26th Sep., and phone number was changed phone:+81-78-304-0563 ext.:7773-5431 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] from : [EMAIL PROTECTED] (MWPF2開発) address : [EMAIL PROTECTED] TEL:7773-5431 (078-304-0563)
Re: Stopping of tomcat failed.
If you do a netstat -a | grep TomcatPort will show the process listening on configured TomcatPort Is this what you're looking for? Martin-- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, April 17, 2006 6:48 AM Subject: Re: Stopping of tomcat failed. [EMAIL PROTECTED] さんは書きました: Are you running apache along with tomcat? (I mean apache on port 80 and tomcat on 8080) ? I'm running apache on port 13000. Is there a setting of port for tomcat ? I can use web application on port 13000. I think it means apache and tomcat are running correctly. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 13:05:24 +0900 Subject: Re: Stopping of tomcat failed. Hi. I want help about the following matter. I got an information that : Apache was killed. This is the correct operation for apache. According to the following matter, tomcat was communicating with apache, and probably any web application process was executing. Is it really ? If there is no web application executing, the following matter never happen ? Yasunori Taniguchi さんは書きました: Hi. Please help me. I'm using apache and tomcat to use Web-based GUI tool on RHEL3.0. The GUI tool has a shell script that starts/stops apache and tomcat. This script with stop option displayed message [FAILED]. It means that stopping of tomcat has been failed. But the tomcat was disappeared in the process list. And re-execution of stop was failed as same as the execution of stop after succeeded-stop. (The messages output to catalina.out is tha same.) Then GUI tool was not used at that time. In the script, all the messages were discarded to /dev/null, and nothing related message was output to /var/log/messages or catalina.out. So, I want to know : 1. Did tomcat stopped clearly ? For example, are there any possibilities that tomcat leave garbage of files ? Restart of tomcat was succeeded. Does it mean that tomcat has stopped clearly ? 2. What kind of error is guessed ? --- #!/bin/sh # # Startup script # # chkconfig: 345 80 15 # description: # ### BEGIN INIT INFO # Provides: test # Required-Start: $network $remote_fs # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description:Start the gui daemon ### END INIT INFO # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status cd / if [ -f /etc/rc.status ]; then . /etc/rc.status fi if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions fi if [ -f /etc/rc.status ]; then # First reset status of this service rc_reset fi case $1 in 'start') echo -n Starting the service if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/startup.sh /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null else /usr/local/tomcat/bin/startup.sh /dev/null /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then touch /var/lock/subsys/test echo fi ;; 'stop') echo -n Stopping service. kill `cat /usr/local/apache/httpd.pid` if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/shutdown.sh else /usr/local/tomcat/bin/shutdown.sh /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then rm -f /var/lock/subsys/test echo fi ;; 'restart') $0 stop $0 start if [ -f /etc/rc.status ]; then rc_status fi ;; 'status') if [ -f /etc/rc.status ]; then echo -n Checking: if [ -f /usr/local/apache/httpd.pid ]; then rc_failed 0 rc_status -v
Re: Stopping of tomcat failed.
I understand your problem. This happens sometimes. Instead of runnign shutdown.sh, you can manually kill the tomcat instance using the following steps: 1. type this command: ps -ax | grep 'endorse'[an ugly way of finding the tomcat process! ] and find out its process id. (For example the Pid: 3435) 2. then kill the pid using kill command like: kill -9 3435 (where 3435 is your tomcat instance process id.) Then, telnet to the tomcat port, sure, it wont reply. This is how it can be shutdown indirectly. (If still not working, the worst solution is to restart you machine.) Good luck/ -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 19:48:35 +0900 Subject: Re: Stopping of tomcat failed. [EMAIL PROTECTED] さんは書きました: Are you running apache along with tomcat? (I mean apache on port 80 and tomcat on 8080) ? I'm running apache on port 13000. Is there a setting of port for tomcat ? I can use web application on port 13000. I think it means apache and tomcat are running correctly. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 13:05:24 +0900 Subject: Re: Stopping of tomcat failed. Hi. I want help about the following matter. I got an information that : Apache was killed. This is the correct operation for apache. According to the following matter, tomcat was communicating with apache, and probably any web application process was executing. Is it really ? If there is no web application executing, the following matter never happen ? Yasunori Taniguchi さんは書きました: Hi. Please help me. I'm using apache and tomcat to use Web-based GUI tool on RHEL3.0. The GUI tool has a shell script that starts/stops apache and tomcat. This script with stop option displayed message [FAILED]. It means that stopping of tomcat has been failed. But the tomcat was disappeared in the process list. And re-execution of stop was failed as same as the execution of stop after succeeded-stop. (The messages output to catalina.out is tha same.) Then GUI tool was not used at that time. In the script, all the messages were discarded to /dev/null, and nothing related message was output to /var/log/messages or catalina.out. So, I want to know : 1. Did tomcat stopped clearly ? For example, are there any possibilities that tomcat leave garbage of files ? Restart of tomcat was succeeded. Does it mean that tomcat has stopped clearly ? 2. What kind of error is guessed ? --- #!/bin/sh # # Startup script # # chkconfig: 345 80 15 # description: # ### BEGIN INIT INFO # Provides: test # Required-Start: $network $remote_fs # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description:Start the gui daemon ### END INIT INFO # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status cd / if [ -f /etc/rc.status ]; then . /etc/rc.status fi if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions fi if [ -f /etc/rc.status ]; then # First reset status of this service rc_reset fi case $1 in 'start') echo -n Starting the service if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/startup.sh /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null else /usr/local/tomcat/bin/startup.sh /dev/null /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then touch /var/lock/subsys/test echo fi ;; 'stop') echo -n Stopping service. kill `cat /usr/local/apache/httpd.pid` if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/shutdown.sh else /usr/local/tomcat/bin/shutdown.sh /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then rm -f /var/lock/subsys/test echo fi ;; 'restart') $0 stop $0 start if [ -f /etc/rc.status ]; then rc_status fi ;; 'status') if [ -f /etc/rc.status ];
Re: Stopping of tomcat failed.
Thanks for your reply ! [EMAIL PROTECTED] wrote: I understand your problem. This happens sometimes. Instead of runnign shutdown.sh, you can manually kill the tomcat instance using the following steps: What is the cause of this problem's ? And. Is there any bad influences ? For example, garbage file or process is left, etc. [EMAIL PROTECTED] wrote: I understand your problem. This happens sometimes. Instead of runnign shutdown.sh, you can manually kill the tomcat instance using the following steps: 1. type this command: ps -ax | grep 'endorse'[an ugly way of finding the tomcat process! ] and find out its process id. (For example the Pid: 3435) 2. then kill the pid using kill command like: kill -9 3435 (where 3435 is your tomcat instance process id.) Then, telnet to the tomcat port, sure, it wont reply. This is how it can be shutdown indirectly. (If still not working, the worst solution is to restart you machine.) Good luck/ -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 19:48:35 +0900 Subject: Re: Stopping of tomcat failed. [EMAIL PROTECTED] さんは書きました: Are you running apache along with tomcat? (I mean apache on port 80 and tomcat on 8080) ? I'm running apache on port 13000. Is there a setting of port for tomcat ? I can use web application on port 13000. I think it means apache and tomcat are running correctly. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 13:05:24 +0900 Subject: Re: Stopping of tomcat failed. Hi. I want help about the following matter. I got an information that : Apache was killed. This is the correct operation for apache. According to the following matter, tomcat was communicating with apache, and probably any web application process was executing. Is it really ? If there is no web application executing, the following matter never happen ? Yasunori Taniguchi さんは書きました: Hi. Please help me. I'm using apache and tomcat to use Web-based GUI tool on RHEL3.0. The GUI tool has a shell script that starts/stops apache and tomcat. This script with stop option displayed message [FAILED]. It means that stopping of tomcat has been failed. But the tomcat was disappeared in the process list. And re-execution of stop was failed as same as the execution of stop after succeeded-stop. (The messages output to catalina.out is tha same.) Then GUI tool was not used at that time. In the script, all the messages were discarded to /dev/null, and nothing related message was output to /var/log/messages or catalina.out. So, I want to know : 1. Did tomcat stopped clearly ? For example, are there any possibilities that tomcat leave garbage of files ? Restart of tomcat was succeeded. Does it mean that tomcat has stopped clearly ? 2. What kind of error is guessed ? --- #!/bin/sh # # Startup script # # chkconfig: 345 80 15 # description: # ### BEGIN INIT INFO # Provides: test # Required-Start: $network $remote_fs # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description:Start the gui daemon ### END INIT INFO # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status cd / if [ -f /etc/rc.status ]; then . /etc/rc.status fi if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions fi if [ -f /etc/rc.status ]; then # First reset status of this service rc_reset fi case $1 in 'start') echo -n Starting the service if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/startup.sh /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null else /usr/local/tomcat/bin/startup.sh /dev/null /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null fi if [ -f /etc/rc.status ]; then rc_status -v fi if [ -f /etc/init.d/functions ]; then touch /var/lock/subsys/test echo fi ;; 'stop') echo -n Stopping service. kill `cat /usr/local/apache/httpd.pid` if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/shutdown.sh else
Re: Stopping of tomcat failed.
yes, the 'unclosed sockets', 'hanging process' and the likes are some notable root causes. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 20:27:38 +0900 Subject: Re: Stopping of tomcat failed. Thanks for your reply ! [EMAIL PROTECTED] wrote: I understand your problem. This happens sometimes. Instead of runnign shutdown.sh, you can manually kill the tomcat instance using the following steps: What is the cause of this problem's ? And. Is there any bad influences ? For example, garbage file or process is left, etc. [EMAIL PROTECTED] wrote: I understand your problem. This happens sometimes. Instead of runnign shutdown.sh, you can manually kill the tomcat instance using the following steps: 1. type this command: ps -ax | grep 'endorse'[an ugly way of finding the tomcat process! ] and find out its process id. (For example the Pid: 3435) 2. then kill the pid using kill command like: kill -9 3435 (where 3435 is your tomcat instance process id.) Then, telnet to the tomcat port, sure, it wont reply. This is how it can be shutdown indirectly. (If still not working, the worst solution is to restart you machine.) Good luck/ -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 19:48:35 +0900 Subject: Re: Stopping of tomcat failed. [EMAIL PROTECTED] さんは書きました: Are you running apache along with tomcat? (I mean apache on port 80 and tomcat on 8080) ? I'm running apache on port 13000. Is there a setting of port for tomcat ? I can use web application on port 13000. I think it means apache and tomcat are running correctly. -- Manivannan Palanichamy http://geocities.com/manivannan57 -Original Message- From: Yasunori Taniguchi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 17 Apr 2006 13:05:24 +0900 Subject: Re: Stopping of tomcat failed. Hi. I want help about the following matter. I got an information that : Apache was killed. This is the correct operation for apache. According to the following matter, tomcat was communicating with apache, and probably any web application process was executing. Is it really ? If there is no web application executing, the following matter never happen ? Yasunori Taniguchi さんは書きました: Hi. Please help me. I'm using apache and tomcat to use Web-based GUI tool on RHEL3.0. The GUI tool has a shell script that starts/stops apache and tomcat. This script with stop option displayed message [FAILED]. It means that stopping of tomcat has been failed. But the tomcat was disappeared in the process list. And re-execution of stop was failed as same as the execution of stop after succeeded-stop. (The messages output to catalina.out is tha same.) Then GUI tool was not used at that time. In the script, all the messages were discarded to /dev/null, and nothing related message was output to /var/log/messages or catalina.out. So, I want to know : 1. Did tomcat stopped clearly ? For example, are there any possibilities that tomcat leave garbage of files ? Restart of tomcat was succeeded. Does it mean that tomcat has stopped clearly ? 2. What kind of error is guessed ? --- #!/bin/sh # # Startup script # # chkconfig: 345 80 15 # description: # ### BEGIN INIT INFO # Provides: test # Required-Start: $network $remote_fs # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description:Start the gui daemon ### END INIT INFO # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status cd / if [ -f /etc/rc.status ]; then . /etc/rc.status fi if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions fi if [ -f /etc/rc.status ]; then # First reset status of this service rc_reset fi case $1 in 'start') echo -n Starting the service if [ -f /etc/init.d/functions ]; then daemon /usr/local/tomcat/bin/startup.sh /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null else /usr/local/tomcat/bin/startup.sh /dev/null /opt/FJSVihs/bin/httpd -f /usr/local/apache/conf/httpd.conf 2 /dev/null fi if [ -f /etc/rc.status ]; then
Re: [OT] How to write/use Tomcat's war classloader
Tomcat does unpack war files before starting the context. That's because of performance issues if it really tried to run the app from an archive. Typically if unpackWars=true, tomcat will unpack to the work directory instead of the webapps dir. --David V D wrote: Thank you for your interest. The application starts very slowly with the war and my classloader (this is a standard app, not webapp). The war also has a webapp in it. This has nothing to do with the application logic. It's the leading time to load the classes. It takes about 2 or 3 minutes. The same JVM 1.5.0 runs Tomcat (5.5.12) would response to request much quicker (about 10 seconds) after the 1st request. If I run the war file unpacked and using standard classloader, it's a couple of seconds before things run. However, using our own class loader with the packed war (which searches all libraries in the lib and classes in the classes directory) it takes along time described above. My question is about how Tomcat does this in the unpacked war scenario. I couldn't find the Tomcat loader that does this. I suspect it unpacked it first, but this is a wild speculation. P Y wrote: maybe you could give a bit more context to interpret very slow or quickly. like what version of tc and jvm are you using ... etc On 4/12/06, V D [EMAIL PROTECTED] wrote: Anyone have an idea about this? V D wrote: We have a sizable war file (|unpacked|) that needs to be run in certain way outside of Tomcat. To do this, we created a classloader which works Ok except that it's very slow (using JarFile). I know that when deploy apps in Tomcat, I can specify it to not to unpack (|unpackWAR = false). However, Tomcat load and run the apps quickly. I looked into Tomcat source, the org.apache.catalina.loader package and could not find anything like that. I see WebappClassLoader, but it seems to load from an unpacked war, not packed war. Does Tomcat actually unpack the war before loading the app? If not, could someone point me to the right place to look, or give some advice on how to write this thing faster? Thanks, -vd | - 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: [OT] How to write/use Tomcat's war classloader
Oops, meant unpackWars=false David Smith wrote: Tomcat does unpack war files before starting the context. That's because of performance issues if it really tried to run the app from an archive. Typically if unpackWars=true, tomcat will unpack to the work directory instead of the webapps dir. --David V D wrote: Thank you for your interest. The application starts very slowly with the war and my classloader (this is a standard app, not webapp). The war also has a webapp in it. This has nothing to do with the application logic. It's the leading time to load the classes. It takes about 2 or 3 minutes. The same JVM 1.5.0 runs Tomcat (5.5.12) would response to request much quicker (about 10 seconds) after the 1st request. If I run the war file unpacked and using standard classloader, it's a couple of seconds before things run. However, using our own class loader with the packed war (which searches all libraries in the lib and classes in the classes directory) it takes along time described above. My question is about how Tomcat does this in the unpacked war scenario. I couldn't find the Tomcat loader that does this. I suspect it unpacked it first, but this is a wild speculation. P Y wrote: maybe you could give a bit more context to interpret very slow or quickly. like what version of tc and jvm are you using ... etc On 4/12/06, V D [EMAIL PROTECTED] wrote: Anyone have an idea about this? V D wrote: We have a sizable war file (|unpacked|) that needs to be run in certain way outside of Tomcat. To do this, we created a classloader which works Ok except that it's very slow (using JarFile). I know that when deploy apps in Tomcat, I can specify it to not to unpack (|unpackWAR = false). However, Tomcat load and run the apps quickly. I looked into Tomcat source, the org.apache.catalina.loader package and could not find anything like that. I see WebappClassLoader, but it seems to load from an unpacked war, not packed war. Does Tomcat actually unpack the war before loading the app? If not, could someone point me to the right place to look, or give some advice on how to write this thing faster? Thanks, -vd | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
iis 6.0 + apache-tomcat 5.0.28
I'm getting following error Apr 17, 2006 6:28:57 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class listeners.SessionListener java.lang.ClassFormatError: Extra bytes at the end of class file listeners/SessionListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Apr 17, 2006 6:28:57 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) I'm trying to setup one iis 6.0 with Tomcat 5.0.28 and mod_jk (isapi_redirector.dll) Can someone tell me what error i'm facing. Regards. Sergio Gonzalez Ramos - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com
RE: iis 6.0 + apache-tomcat 5.0.28
hi; it looks like you have different application versions, please ensure that you have the same java version all around the whole system. http://asahin.net -Original Message- From: Sergio Gonzalez Ramos [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 3:46 PM To: Tomcat Users List Subject: iis 6.0 + apache-tomcat 5.0.28 I'm getting following error Apr 17, 2006 6:28:57 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class listeners.SessionListener java.lang.ClassFormatError: Extra bytes at the end of class file listeners/SessionListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1812) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:866) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1319) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1198) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: 3677) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 59) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Apr 17, 2006 6:28:57 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) I'm trying to setup one iis 6.0 with Tomcat 5.0.28 and mod_jk (isapi_redirector.dll) Can someone tell me what error i'm facing. Regards. Sergio Gonzalez Ramos - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SHA encrypting of passwords in server.xml/tomcat-users.xml files
I learned how to do this last week and I am enjoying the ease of setup in order to accomplish this. However, I would like to expand on this a bit further and use the SHA encrypting with my database password (the one used in Tomcat's connection pooling). Is this possible? If so, can someone lead me in the right direction? Thank you. -- Marc Farrow
Re: Tomcat 5.5.16 configuration problem--THIRD RESEND
do you have more than one docBase specified? also, servlet.jar etc should not be in your WEB-INF/lib Scott Smith wrote: OK, I removed the unnecessary Contexts (at least they are unnecessary for the time being) and did notice the following messages. WARNING: A docBase c:\webapps\myapp inside the host appBase has been specified, and will be ignored Apr 15, 2006 2:09:41 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(D:\MSD\Prog0\NewsBrowser\webapps\medias\WEB-INF\lib\serv let-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Apr 15, 2006 2:09:41 AM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(D:\MSD\Prog0\NewsBrowser\webapps\medias\WEB-INF\lib\serv let.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class The first Warning certainly sounds ominous--but, I don't know what it means. I did some googling which seemed to imply that it's probably caused by the Context error in the webapp itself. I don't know what the others mean. So, I'm still at square one. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 6:58 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.16 configuration problem--THIRD RESEND maybe I should read the docs ;) yes, any container can have it, Filip Hanik - Dev Lists wrote: exactly, the realm element doesn't belong there, read up on the docs Scott Smith wrote: I am also doing Forms authentication...but I haven't got that far since the webapp doesn't initialize yet. This app used to use the struts data-sources tag, but I'm trying to move it to jndi. -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 5:05 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.16 configuration problem--THIRD RESEND What are you trying to accomplish with the realm tag? On 4/14/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: check your log files upon startup, your myapp.xml doesn't have a docBase attribute to associate it with the app itself. Context docBase=${catalina.home}/server/webapps/myapp path=/myapp. Scott Smith wrote: Sorry, I sent this so many times. Hopefully, I have all of the typos out of it this time... I have specified the following as myapp.xml in the conf\Catalina\locahost directory: Context path=/myapp Resource name=jdbc/MyDB auth=Container type=javax.sql.DataSource username=user password=pswd driverClassName=net.sourceforge.jtds.jdbc.Driver url=jdbc:jtds:sqlserver://127.0.0.1:1433;DatabaseName=MyDB;SelectMethod =cursor maxActive=30 maxIdle=20 minIdle=10 maxWait=2 / Realm className=org.apache.catalina.realm.DataSourceRealm debug=99 dataSourceName=jdbc/MyDB userTable=zUsers userNameCol=zUserName userCredCol=zPassword userRoleTable=wsViewRoles roleNameCol=zRole / /Context In my web.xml file I have: resource-ref res-ref-namejdbc/MyDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref But, when I execute the code DataSource ds = null; try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); ds = (DataSource) envCtx.lookup(jdbc/MyDB); } catch (NamingException e) { _log.error(Unable to retrieve MyDB DataSource, e); ds = null; } The exception is caught and I get an error message which says javax.naming.NamingException: Name is not bound to a Context. I verified that the name in the Resource, resource-ref and the context lookup are the same. I suspect I understand the message. I just don't know what I've done wrong. Any suggestions? Scott - 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
Re: iis 6.0 + apache-tomcat 5.0.28
It sounds like this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=39041 -- Len On 4/17/06, Sergio Gonzalez Ramos [EMAIL PROTECTED] wrote: I'm getting following error Apr 17, 2006 6:28:57 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class listeners.SessionListener java.lang.ClassFormatError: Extra bytes at the end of class file listeners/SessionListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Apr 17, 2006 6:28:57 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) I'm trying to setup one iis 6.0 with Tomcat 5.0.28 and mod_jk (isapi_redirector.dll) Can someone tell me what error i'm facing. Regards. Sergio Gonzalez Ramos - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SHA encrypting of passwords in server.xml/tomcat-users.xml files
Marc Farrow wrote: I learned how to do this last week and I am enjoying the ease of setup in order to accomplish this. However, I would like to expand on this a bit further and use the SHA encrypting with my database password (the one used in Tomcat's connection pooling). Is this possible? If so, can someone lead me in the right direction? It isn't possible. This comes up a lot so I will try and explain why. Starting with the Tomcat users example where you can use hashed passwords: - Tomcat stores the hashed password - User enters protected area of website - Tomcat prompts for password - User enters it - Tomcat hashes entered password and compares to stored hash In this scenario, if someone obtains the hashed password it is relatively little use on its own since it is difficult to go from hashed password to plain text password. Moving on to the database password case: - Tomcat connects to database - Database prompts for password - Tomcat reads password from config - Tomcat provides password to database - Database allows Tomcat access In this second case Tomcat is the client rather than the server and therefore needs the plain-text password in order to pass it to the database. Hashing the password doesn't help since Tomcat must use the actual password to access the database. Encrypting doesn't help either, since Tomcat would have to decrypt it to use it, which means the decryption key must be accessible to Tomcat. If the decryption key is accessible to Tomcat then it will be accessible to whoever has access to the encrypted password too. Therefore the encryption would be pointless. Which brings me on to a much more important point. *If someone has got enough access to your server to read server.xml and/or tomcat-users.xml you have much bigger problems*. Your server is totally compromised at this point. An attacker could do pretty much whatever they wanted. With this level of control over a server there are more options for an attacker than I have time to list here. Suffice to say, encrypting the users passwords isn't going to help at all. Hope this helps, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI DB Connection Pooling with SSL
Anyone have any suggestions for configuring an SSL encrypted connection pool to postgresql with tomcat 5.5.15? Eric On Apr 13, 2006, at 3:28 PM, Eric Roberts wrote: PROBLEM: I am having a problem setting up DB connection pooling with Postgresql through JNDI in Tomcat 5.5.15. I have a portlet application that is hosted in the GridSphere portlet container that, upon initialization, gets a database connection from JNDI. The database that I am connecting to REQUIRES an SSL connection so my question is mostly about passing the usessl argument in the JNDI config but I have included my setup to make sure I'm doing everything correctly. ENVIRONMENT Linux Java 1.4.2 Tomcat 5.5.15 Assuming my webapp name is account-portlet Here's my setup: I have a context file in $CATALINA_HOME/conf/Catalina/localhost/ account-portlet.xml and the contents look like the following: !-- The contents of this file will be loaded for each web application -- Context path=/tg-account-portlets docBase=tg-account-portlets debug=1 !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource Resource name=jdbc/jndihandle auth=Container type=javax.sql.DataSource factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory driverClassName=org.postgresql.Driver username=account_user password=secret url=jdbc:postgresql://pgsql.server.org:5432/mydb connectionProperties=useSSL=force / .other Resource elements where I'm trying other combinations of properties /Context I also have the following in my web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app resource-ref descriptionDataSource/description res-ref-namejdbc/jndidatasource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app I am getting a JNDI context as follows: public void init() throws PortletException { try { Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup (java:/comp/env); //if (context == null) { //throw new Exception (Uh oh -- no context!); //} DataSource ds = (DataSource) envContext.lookup(jdbc/ jndihandle); if (ds == null) { throw new Exception(Data source not found!); } conn = ds.getConnection(); }catch(NamingException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } } When I run my application I get the following error in catalina.out: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection rejected: FATAL: No pg_hba.conf entry for host hidden, user account_user, database mydb this tells me that the JNDI stuff is working but the SSL property is not being set. I've tried appending?useSSL=force to the url attribute, I've tried appending ;useSSL=force to the url attribute. I still get the same error message. I have been unable to find any examples of people passing the useSSL property in the JNDI config. Any Ideas? Many Thanks, Eric - 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: Relative Link Question
Hi. I have the same question as you do. When you get the answer, please email me to [EMAIL PROTECTED] Another question I have, is how can I access my website without stating MYAPP in the URL. e.g. instead of using http://myserver.com/myapp/servlet/index.jsp use only http://myserver.com/servlet/index.jsp? Appreciated for any help -- View this message in context: http://www.nabble.com/Relative-Link-Question-t1452173.html#a3950702 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Relative Link Question
Hi, you have two options: 1. move your application to the ROOT by renaming your war to ROOT.war (case sensitive) or 2. use mod_rewrite. PETR On 4/17/06, biai [EMAIL PROTECTED] wrote: Hi. I have the same question as you do. When you get the answer, please email me to [EMAIL PROTECTED] Another question I have, is how can I access my website without stating MYAPP in the URL. e.g. instead of using http://myserver.com/myapp/servlet/index.jsp use only http://myserver.com/servlet/index.jsp? Appreciated for any help -- View this message in context: http://www.nabble.com/Relative-Link-Question-t1452173.html#a3950702 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Petr Hadraba graphic artist and software designer http://people.hadraba-soft.com/~petr hadrabap AT bluetone DOT cz
Directory listing... what happened ?
Hi, I'm running Ubuntu 5.10. I installed Tomcat 5.5.16. My webserver was going fine until I rebooted my computer. Now when I go to http://localhost/ I get a directory listing of Index of/ with those 2 entries: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - instead of my webpage that I previously had. If I click on apache2-default/ directory this page appears: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- What's wrong with my server ? All I remember changing is -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml just to see if it was really needed in the /webapps/root/WEB-INF/ (but I put it back the way is was). Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SHA encrypting of passwords in server.xml/tomcat-users.xml files
This helps a lot. I am not worried about hackers getting into our system so much as programmers reading the XML file and getting a privileged password. Not a big deal, we can just captivate the account and keep immoral programmers out. Thanks! On 4/17/06, Mark Thomas [EMAIL PROTECTED] wrote: Marc Farrow wrote: I learned how to do this last week and I am enjoying the ease of setup in order to accomplish this. However, I would like to expand on this a bit further and use the SHA encrypting with my database password (the one used in Tomcat's connection pooling). Is this possible? If so, can someone lead me in the right direction? It isn't possible. This comes up a lot so I will try and explain why. Starting with the Tomcat users example where you can use hashed passwords: - Tomcat stores the hashed password - User enters protected area of website - Tomcat prompts for password - User enters it - Tomcat hashes entered password and compares to stored hash In this scenario, if someone obtains the hashed password it is relatively little use on its own since it is difficult to go from hashed password to plain text password. Moving on to the database password case: - Tomcat connects to database - Database prompts for password - Tomcat reads password from config - Tomcat provides password to database - Database allows Tomcat access In this second case Tomcat is the client rather than the server and therefore needs the plain-text password in order to pass it to the database. Hashing the password doesn't help since Tomcat must use the actual password to access the database. Encrypting doesn't help either, since Tomcat would have to decrypt it to use it, which means the decryption key must be accessible to Tomcat. If the decryption key is accessible to Tomcat then it will be accessible to whoever has access to the encrypted password too. Therefore the encryption would be pointless. Which brings me on to a much more important point. *If someone has got enough access to your server to read server.xml and/or tomcat-users.xml you have much bigger problems*. Your server is totally compromised at this point. An attacker could do pretty much whatever they wanted. With this level of control over a server there are more options for an attacker than I have time to list here. Suffice to say, encrypting the users passwords isn't going to help at all. Hope this helps, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Farrow
Re: Relative Link Question
On 4/17/06, biai [EMAIL PROTECTED] wrote: I have 3 virtual hosts on the server, so I cannot atribute ROOT to all of them. Of course you can; just use a different appBase for each host. HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Relative Link Question
Unless you use special server-side tags, the path is resolved on client. The browser knows nothing about your context. It only knows the server name (myserver.com) and resource name (/images/pic.jpg). Leading slash means starting from the root and that how browser resolves the address. Not being able to have context-relative links sucks, this is one of the reasons why Struts, for example, has html:link tag. On 4/14/06, Steven Huey [EMAIL PROTECTED] wrote: Hello, I've got a setup with Apache 2.2, Mod_Jk 1.2.15, and Tomcat 5.5.16 and things are working pretty well except for relative links in my webapp. When accessing my webapp at http://myserver.com/mywebapp/index.jsp any relative links within subdirectories of the mywebapp directory don't include /mywebapp/ in the URL. For example I have a mywebapp/ includes/ directory and some of the files use links such as: img src=/images/pic.jpg/ Instead of linking to http://myserver.com/mywebapp/images/pic.jpg the link is http://myserver.com/images/pic.jpg. I've read that if I remove the leading / from the links it will work, but I already have a lot of links in this format and am wondering if there is a configuration change or something else I can do to resolve this. Thanks, Steve Huey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat works on Linux localhost but not in the network
Thanks but I was able to access the port 80 for apache, and I got tha welcome page ... where can I check if that is the problem .??? Thanks again --- Corobitsyn Roman [EMAIL PROTECTED] wrote: Perhaps, you must to set up your firewall jl I recently installed Tomcat on a Linux Machine when I jl tried localhost:8080 I get the welcome page nut if I jl call the same from another computer on the network i jl don 't get any response at all jl Plase any help will be welcome... jl __ jl Do You Yahoo!? jl Tired of spam? Yahoo! Mail has the best spam protection around jl http://mail.yahoo.com jl - jl To unsubscribe, e-mail: [EMAIL PROTECTED] jl For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: hypens
John, This is the users list for Tomcat. I think you want one of the Lucene lists. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
404
Why when I go to http://localhost/ I get a directory listing containing those 2 elements: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - And when I go to http://localhost/index.jsp I get a file not found error although THE FILE EXISTS ! Thanks. (using ubuntu 5.10 and tomcat 5.5.16) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 404
[EMAIL PROTECTED] ha scritto: Why when I go to http://localhost/ I get a directory listing containing those 2 elements: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - And when I go to http://localhost/index.jsp I get a file not found error although THE FILE EXISTS ! Have you tried http://localhost:8080/ ? or http://localhost:8080/APPLICATION_NAME/index.jsp ? Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 404
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 404
Yes I've tried with the port number (in my case it's 80) and also with the APPLICATION_NAME. But the weird thing is that yesterday everything was going fine and now I get that directory listing instead of the jsp page. Here's what I get when I click on the apache2-default directory: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- Is there something that I could have changed in one of the config file that's causing that ? All I remember is changing: -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml but I put it back the way is was. Thanks for your help. Edoardo Panfili [EMAIL PROTECTED] A Tomcat Users List 2006-04-17 12:44 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org [EMAIL PROTECTED] ha scritto: Why when I go to http://localhost/ I get a directory listing containing those 2 elements: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - And when I go to http://localhost/index.jsp I get a file not found error although THE FILE EXISTS ! Have you tried http://localhost:8080/ ? or http://localhost:8080/APPLICATION_NAME/index.jsp ? Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - 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: 404
So what do you have running on port 80? Apache or Tomcat? On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes I've tried with the port number (in my case it's 80) and also with the APPLICATION_NAME. But the weird thing is that yesterday everything was going fine and now I get that directory listing instead of the jsp page. Here's what I get when I click on the apache2-default directory: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- Is there something that I could have changed in one of the config file that's causing that ? All I remember is changing: -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml but I put it back the way is was. Thanks for your help. Edoardo Panfili [EMAIL PROTECTED] A Tomcat Users List 2006-04-17 12:44 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org [EMAIL PROTECTED] ha scritto: Why when I go to http://localhost/ I get a directory listing containing those 2 elements: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - And when I go to http://localhost/index.jsp I get a file not found error although THE FILE EXISTS ! Have you tried http://localhost:8080/ ? or http://localhost:8080/APPLICATION_NAME/index.jsp ? Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - 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] -- Marc Farrow
404
Sorry guys about my reply to another thread, I didn't realize. I'm new at this so... I only installed tomcat following this guide: http://www.ubuntuforums.org/showthread.php?t=44006highlight=tomcat Maybe apache comes with tomcat (I didn't manually installed apache) ? But I thing it's tomcat who's running on port 80. So what do you have running on port 80? Apache or Tomcat? On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes I've tried with the port number (in my case it's 80) and also with the APPLICATION_NAME. But the weird thing is that yesterday everything was going fine and now I get that directory listing instead of the jsp page. Here's what I get when I click on the apache2-default directory: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- Is there something that I could have changed in one of the config file that's causing that ? All I remember is changing: -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml but I put it back the way is was. Thanks for your help. Edoardo Panfili [EMAIL PROTECTED] A Tomcat Users List 2006-04-17 12:44 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org [EMAIL PROTECTED] ha scritto: Why when I go to http://localhost/ I get a directory listing containing those 2 elements: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - And when I go to http://localhost/index.jsp I get a file not found error although THE FILE EXISTS ! Have you tried http://localhost:8080/ ? or http://localhost:8080/APPLICATION_NAME/index.jsp ? Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - 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] -- Marc Farrow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 404
If you took all the defaults, as it says in that document, Tomcat is on 8080, not 80. So try: http://localhost:8080 [EMAIL PROTECTED] wrote: Sorry guys about my reply to another thread, I didn't realize. I'm new at this so... I only installed tomcat following this guide: http://www.ubuntuforums.org/showthread.php?t=44006highlight=tomcat Maybe apache comes with tomcat (I didn't manually installed apache) ? But I thing it's tomcat who's running on port 80. So what do you have running on port 80? Apache or Tomcat? On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes I've tried with the port number (in my case it's 80) and also with the APPLICATION_NAME. But the weird thing is that yesterday everything was going fine and now I get that directory listing instead of the jsp page. Here's what I get when I click on the apache2-default directory: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- Is there something that I could have changed in one of the config file that's causing that ? All I remember is changing: -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml but I put it back the way is was. Thanks for your help. Edoardo Panfili [EMAIL PROTECTED] A Tomcat Users List 2006-04-17 12:44 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org [EMAIL PROTECTED] ha scritto: Why when I go to http://localhost/ I get a directory listing containing those 2 elements: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - And when I go to http://localhost/index.jsp I get a file not found error although THE FILE EXISTS ! Have you tried http://localhost:8080/ ? or http://localhost:8080/APPLICATION_NAME/index.jsp ? Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - 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] -- Marc Farrow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 404
I didn't take the default. I changed the port to 80: File: usr/local/tomcat/conf/server.xml Changed this: Connector port=8080 ... maxThreads=150 minSpareThreads=25 ... to this: Connector port=80 ... maxThreads=150 minSpareThreads=25 ... What's bugging me is that my server was running fine and I must have changed something somewhere but I don't know what ! David Kerber [EMAIL PROTECTED] .net A Tomcat Users List 2006-04-17 13:20 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org If you took all the defaults, as it says in that document, Tomcat is on 8080, not 80. So try: http://localhost:8080 [EMAIL PROTECTED] wrote: Sorry guys about my reply to another thread, I didn't realize. I'm new at this so... I only installed tomcat following this guide: http://www.ubuntuforums.org/showthread.php?t=44006highlight=tomcat Maybe apache comes with tomcat (I didn't manually installed apache) ? But I thing it's tomcat who's running on port 80. So what do you have running on port 80? Apache or Tomcat? On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes I've tried with the port number (in my case it's 80) and also with the APPLICATION_NAME. But the weird thing is that yesterday everything was going fine and now I get that directory listing instead of the jsp page. Here's what I get when I click on the apache2-default directory: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- Is there something that I could have changed in one of the config file that's causing that ? All I remember is changing: -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml but I put it back the way is was. Thanks for your help. Edoardo Panfili [EMAIL PROTECTED] A Tomcat Users List 2006-04-17 12:44 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org [EMAIL PROTECTED] ha scritto: Why when I go to http://localhost/ I get a directory listing containing those 2 elements: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - And when I go to http://localhost/index.jsp I get a file not found error although THE FILE EXISTS ! Have you tried http://localhost:8080/ ? or http://localhost:8080/APPLICATION_NAME/index.jsp ? Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - 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] -- Marc
Re: 404
[EMAIL PROTECTED] ha scritto: I didn't take the default. I changed the port to 80: File: usr/local/tomcat/conf/server.xml Changed this: Connector port=8080 ... maxThreads=150 minSpareThreads=25 ... to this: Connector port=80 ... maxThreads=150 minSpareThreads=25 ... What's bugging me is that my server was running fine and I must have changed something somewhere but I don't know what ! If you have some time you can download tomcat from tomcat.apache.org and then use diff to find the differences from the original configuration files. Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Directory listing... what happened ?
who listens to port 80? Apache? if so, consult your apache docs. if Tomcat listens to port 80, then the webapps/ROOT/ is your root application / Filip [EMAIL PROTECTED] wrote: Hi, I'm running Ubuntu 5.10. I installed Tomcat 5.5.16. My webserver was going fine until I rebooted my computer. Now when I go to http://localhost/ I get a directory listing of Index of/ with those 2 entries: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - instead of my webpage that I previously had. If I click on apache2-default/ directory this page appears: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- What's wrong with my server ? All I remember changing is -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml just to see if it was really needed in the /webapps/root/WEB-INF/ (but I put it back the way is was). Thank you. - 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: 404
What are the files that I should check if they're ok ? /usr/local/tomcat/conf/server.xml /usr/loca/tomcat/webapps/root/WEB-INF/web.xml what should I look for in those files ? Could you show me examples of working configuration Is there other config files I should check ? Thanks [EMAIL PROTECTED] jardins.com A 2006-04-17 13:29 Tomcat Users List users@tomcat.apache.org cc Veuillez répondre à Objet Tomcat Users Re: 404 List [EMAIL PROTECTED] che.org I didn't take the default. I changed the port to 80: File: usr/local/tomcat/conf/server.xml Changed this: Connector port=8080 ... maxThreads=150 minSpareThreads=25 ... to this: Connector port=80 ... maxThreads=150 minSpareThreads=25 ... What's bugging me is that my server was running fine and I must have changed something somewhere but I don't know what ! David Kerber [EMAIL PROTECTED] .net A Tomcat Users List 2006-04-17 13:20 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org If you took all the defaults, as it says in that document, Tomcat is on 8080, not 80. So try: http://localhost:8080 [EMAIL PROTECTED] wrote: Sorry guys about my reply to another thread, I didn't realize. I'm new at this so... I only installed tomcat following this guide: http://www.ubuntuforums.org/showthread.php?t=44006highlight=tomcat Maybe apache comes with tomcat (I didn't manually installed apache) ? But I thing it's tomcat who's running on port 80. So what do you have running on port 80? Apache or Tomcat? On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes I've tried with the port number (in my case it's 80) and also with the APPLICATION_NAME. But the weird thing is that yesterday everything was going fine and now I get that directory listing instead of the jsp page. Here's what I get when I click on the apache2-default directory: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- Is there something that I could have changed in one of the config file that's causing that ? All I remember is changing: -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml but I put it back the way is was. Thanks for your help. Edoardo Panfili [EMAIL PROTECTED] A Tomcat Users List 2006-04-17 12:44 users@tomcat.apache.org cc Veuillez répondre Objet à Re: 404 Tomcat Users List [EMAIL PROTECTED] che.org [EMAIL
RE: Re: Directory listing... what happened ?
I didn't install apache, I just installed tomcat 5.5.16. So it's tomcat who's listening on port 80. But why the index.jsp file in the webapps/ROOT/index.jsp is not showing when I go to http://localhost/ ? And why do I have a file not found when I go to http://localhost/index.jsp ? (and the file exists !) Date: Mon, 17 Apr 2006 13:43:03 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Directory listing... what happened ? who listens to port 80? Apache? if so, consult your apache docs. if Tomcat listens to port 80, then the webapps/ROOT/ is your root application / Filip [EMAIL PROTECTED] wrote: Hi, I'm running Ubuntu 5.10. I installed Tomcat 5.5.16. My webserver was going fine until I rebooted my computer. Now when I go to http://localhost/ I get a directory listing of Index of/ with those 2 entries: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - instead of my webpage that I previously had. If I click on apache2-default/ directory this page appears: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.Seeing this instead of the website you expected?This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible formaintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues. --- What's wrong with my server ? All I remember changing is -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml just to see if it was really needed in the /webapps/root/WEB-INF/ (but I put it back the way is was).Thank you. - 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] _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail
Re: 404
[EMAIL PROTECTED] ha scritto: What are the files that I should check if they're ok ? /usr/local/tomcat/conf/server.xml I use the default file, It works good for me. I have the configuration for the application inside the application folder: $tomcatHome/webapp/APPLICATION_NAME/META-INF/context.xml file /usr/loca/tomcat/webapps/root/WEB-INF/web.xml take a look at logs file in $tomcatHome/logs if something gone wrong during startup you can find details inside this directory. Edoardo Panfili -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Directory listing... what happened ?
tomcat by default listens to port 8080, not 80, so if you just installed Tomcat, http://localhost:8080/ is the correct path Filip Jonathan Pare wrote: I didn't install apache, I just installed tomcat 5.5.16. So it's tomcat who's listening on port 80. But why the index.jsp file in the webapps/ROOT/index.jsp is not showing when I go to http://localhost/ ? And why do I have a file not found when I go to http://localhost/index.jsp ? (and the file exists !) Date: Mon, 17 Apr 2006 13:43:03 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Directory listing... what happened ? who listens to port 80? Apache? if so, consult your apache docs. if Tomcat listens to port 80, then the webapps/ROOT/ is your root application / Filip [EMAIL PROTECTED] wrote: Hi, I'm running Ubuntu 5.10. I installed Tomcat 5.5.16. My webserver was going fine until I rebooted my computer. Now when I go to http://localhost/ I get a directory listing of Index of/ with those 2 entries: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - instead of my webpage that I previously had. If I click on apache2-default/ directory this page appears: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.Seeing this instead of the website you expected?This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible formaintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.--- What's wrong with my server ? All I remember changing is -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml just to see if it was really needed in the /webapps/root/WEB-INF/ (but I put it back the way is was).Thank you. - 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] _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Directory listing... what happened ?
Have you looked at your logs? This stinks of Apache HTTPd on port 80 instead of Tomcat. You might also want to use netstat to see what is running and on what ports. --David Jonathan Pare wrote: I didn't install apache, I just installed tomcat 5.5.16. So it's tomcat who's listening on port 80. But why the index.jsp file in the webapps/ROOT/index.jsp is not showing when I go to http://localhost/ ? And why do I have a file not found when I go to http://localhost/index.jsp ? (and the file exists !) Date: Mon, 17 Apr 2006 13:43:03 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Directory listing... what happened ? who listens to port 80? Apache? if so, consult your apache docs. if Tomcat listens to port 80, then the webapps/ROOT/ is your root application / Filip [EMAIL PROTECTED] wrote: Hi, I'm running Ubuntu 5.10. I installed Tomcat 5.5.16. My webserver was going fine until I rebooted my computer. Now when I go to http://localhost/ I get a directory listing of Index of/ with those 2 entries: [DIR] Parent Directory 15-Apr-2006 15:22 - [DIR] apache2-default/ 15-Apr-2006 15:22 - instead of my webpage that I previously had. If I click on apache2-default/ directory this page appears: --- If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.Seeing this instead of the website you expected?This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible formaintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.--- What's wrong with my server ? All I remember changing is -the owner of the /usr/local/tomcat/webapps/root/ from root to myself so I could edit the files. -I renamed the file web.xml to web_bak.xml just to see if it was really needed in the /webapps/root/WEB-INF/ (but I put it back the way is was).Thank you. - 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] _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Relative Link Question
On 4/17/06, biai [EMAIL PROTECTED] wrote: I'm a newbie in this, so where can I define appbase. First, it's appBase, *not* 'appbase' -- case sensitive. Second, it's well documented in the Tomcat configuration guide. :-) Third, I'd strong recommend putting all your appBases outside of $CATALINA_HOME -- it makes it a lot easier to upgrade, back up, etc. FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building tomcat 5.5.16
Carlos Alberto Peláez Ayala wrote: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher This is a problem with your Ant environment, not Tomcat. Try Googling for this exception and/or the Ant users list. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building tomcat 5.5.16
Mark, But In the same Server, I have the source of tomcat 5.0 and I can build this without problems, with the same Ant (1.6.5) configuration environment. Carlos. -Mensaje original- De: Mark Thomas [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 17 de Abril de 2006 03:41 p.m. Para: Tomcat Users List Asunto: Re: Building tomcat 5.5.16 Carlos Alberto Peláez Ayala wrote: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher This is a problem with your Ant environment, not Tomcat. Try Googling for this exception and/or the Ant users list. Mark - 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: Re: Directory listing... what happened ?
There are my 2 logs: -- localhost.2006-04-17.log: Apr 17, 2006 5:02:38 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Apr 17, 2006 5:02:38 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Apr 17, 2006 5:02:38 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Apr 17, 2006 5:02:38 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() 17-Apr-2006 5:02:47 PM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet controller as unavailable 17-Apr-2006 5:02:47 PM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: [EMAIL PROTECTED] com.mycompany.mypackage.ControllerServlet java.lang.ClassNotFoundException: com.mycompany.mypackage.ControllerServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4197) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 17-Apr-2006 5:02:47 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException: com.mycompany.mypackage.ControllerServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4197) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at
RE: Re: Directory listing... what happened ?
buried in your stacktrace: SEVERE: Error initializing endpoint java.net.BindException: Address already in use:80 Combine this with your previous statement ... until I rebooted my computer Most likely there is a version of Apache web server that was enabled with your ubuntu installation, that at some point in the past, you or someone else turned off (and have subsequently forgotten about). On restart, ubuntu is configured to start apache, which it does, and it grabs port 80. Then, tomcat fails to start as stated in its logs. Which is why you see the default congrats on setting up apache message from apache. Even though you didn't install apache, it's part of your ubuntu setup and it restarts with your box. -Original Message- From: Jonathan Pare [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 4:18 PM To: Tomcat Users List Subject: RE: Re: Directory listing... what happened ? There are my 2 logs: SEVERE: Error initializing endpoint java.net.BindException: Address already in use:80 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Directory listing... what happened ?
That's it ! Thaks a lot ! I changed the tomcat port back to 8080 and everything went back to normal. But then I remembered why I change the port in the first place. It's because I want to use dyndns to access my website from outside my network, so I have to use (I think) the port 80. Any suggestion ? From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: RE: Re: Directory listing... what happened ? Date: Mon, 17 Apr 2006 16:43:33 -0500 buried in your stacktrace: SEVERE: Error initializing endpoint java.net.BindException: Address already in use:80 Combine this with your previous statement ... until I rebooted my computer Most likely there is a version of Apache web server that was enabled with your ubuntu installation, that at some point in the past, you or someone else turned off (and have subsequently forgotten about). On restart, ubuntu is configured to start apache, which it does, and it grabs port 80. Then, tomcat fails to start as stated in its logs. Which is why you see the default congrats on setting up apache message from apache. Even though you didn't install apache, it's part of your ubuntu setup and it restarts with your box. -Original Message- From: Jonathan Pare [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 4:18 PM To: Tomcat Users List Subject: RE: Re: Directory listing... what happened ? There are my 2 logs: SEVERE: Error initializing endpoint java.net.BindException: Address already in use:80 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] How to write/use Tomcat's war classloader
Thank you for the info. That settles it for me. David Smith wrote: Oops, meant unpackWars=false David Smith wrote: Tomcat does unpack war files before starting the context. That's because of performance issues if it really tried to run the app from an archive. Typically if unpackWars=true, tomcat will unpack to the work directory instead of the webapps dir. --David V D wrote: Thank you for your interest. The application starts very slowly with the war and my classloader (this is a standard app, not webapp). The war also has a webapp in it. This has nothing to do with the application logic. It's the leading time to load the classes. It takes about 2 or 3 minutes. The same JVM 1.5.0 runs Tomcat (5.5.12) would response to request much quicker (about 10 seconds) after the 1st request. If I run the war file unpacked and using standard classloader, it's a couple of seconds before things run. However, using our own class loader with the packed war (which searches all libraries in the lib and classes in the classes directory) it takes along time described above. My question is about how Tomcat does this in the unpacked war scenario. I couldn't find the Tomcat loader that does this. I suspect it unpacked it first, but this is a wild speculation. P Y wrote: maybe you could give a bit more context to interpret very slow or quickly. like what version of tc and jvm are you using ... etc On 4/12/06, V D [EMAIL PROTECTED] wrote: Anyone have an idea about this? V D wrote: We have a sizable war file (|unpacked|) that needs to be run in certain way outside of Tomcat. To do this, we created a classloader which works Ok except that it's very slow (using JarFile). I know that when deploy apps in Tomcat, I can specify it to not to unpack (|unpackWAR = false). However, Tomcat load and run the apps quickly. I looked into Tomcat source, the org.apache.catalina.loader package and could not find anything like that. I see WebappClassLoader, but it seems to load from an unpacked war, not packed war. Does Tomcat actually unpack the war before loading the app? If not, could someone point me to the right place to look, or give some advice on how to write this thing faster? Thanks, -vd | - 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: Directory listing... what happened ?
just disable your apache server, on some linux that would be chkconfig --del httpd, what it is on your, I don't know, so read the docs :) Filip Jonathan Pare wrote: That's it ! Thaks a lot ! I changed the tomcat port back to 8080 and everything went back to normal. But then I remembered why I change the port in the first place. It's because I want to use dyndns to access my website from outside my network, so I have to use (I think) the port 80. Any suggestion ? From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: RE: Re: Directory listing... what happened ? Date: Mon, 17 Apr 2006 16:43:33 -0500 buried in your stacktrace: SEVERE: Error initializing endpoint java.net.BindException: Address already in use:80 Combine this with your previous statement ... until I rebooted my computer Most likely there is a version of Apache web server that was enabled with your ubuntu installation, that at some point in the past, you or someone else turned off (and have subsequently forgotten about). On restart, ubuntu is configured to start apache, which it does, and it grabs port 80. Then, tomcat fails to start as stated in its logs. Which is why you see the default congrats on setting up apache message from apache. Even though you didn't install apache, it's part of your ubuntu setup and it restarts with your box. -Original Message- From: Jonathan Pare [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 4:18 PM To: Tomcat Users List Subject: RE: Re: Directory listing... what happened ? There are my 2 logs: SEVERE: Error initializing endpoint java.net.BindException: Address already in use:80 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail - 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[2]: Tomcat works on Linux localhost but not in the network
You must check your network and firewall settings. Try to use iptables E.g. in SUSE can help SUSEFirewall2 (edit /etc/sysconfig/SuSEFirewall2 file) jl Thanks jl but I was able to access the port 80 for apache, jl and I got tha welcome page ... jl where can I check if that is the problem .??? jl Thanks again jl --- Corobitsyn Roman [EMAIL PROTECTED] wrote: Perhaps, you must to set up your firewall jl I recently installed Tomcat on a Linux Machine when I jl tried localhost:8080 I get the welcome page nut if I jl call the same from another computer on the network i jl don 't get any response at all jl Plase any help will be welcome... jl __ jl Do You Yahoo!? jl Tired of spam? Yahoo! Mail has the best spam protection around jl http://mail.yahoo.com jl jl - jl To unsubscribe, e-mail: [EMAIL PROTECTED] jl For additional commands, e-mail: [EMAIL PROTECTED] jl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jl __ jl Do You Yahoo!? jl Tired of spam? Yahoo! Mail has the best spam protection around jl http://mail.yahoo.com jl - jl To unsubscribe, e-mail: [EMAIL PROTECTED] jl For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: Tomcat works on Linux localhost but not in the network
Check ur firewall by using telnet like telnet hostname 8080 if it is connecting to the 8080 port, ur firewall is ok.if u are not able to connect,he problem is of firewall.also In some cases like in IE it may not work properly if u simply type hostname:8080, u should use something like http://192.168.1.25:8080/ On 4/18/06, Corobitsyn Roman [EMAIL PROTECTED] wrote: You must check your network and firewall settings. Try to use iptables E.g. in SUSE can help SUSEFirewall2 (edit /etc/sysconfig/SuSEFirewall2 file) jl Thanks jl but I was able to access the port 80 for apache, jl and I got tha welcome page ... jl where can I check if that is the problem .??? jl Thanks again jl --- Corobitsyn Roman [EMAIL PROTECTED] wrote: Perhaps, you must to set up your firewall jl I recently installed Tomcat on a Linux Machine when I jl tried localhost:8080 I get the welcome page nut if I jl call the same from another computer on the network i jl don 't get any response at all jl Plase any help will be welcome... jl __ jl Do You Yahoo!? jl Tired of spam? Yahoo! Mail has the best spam protection around jl http://mail.yahoo.com jl jl - jl To unsubscribe, e-mail: [EMAIL PROTECTED] jl For additional commands, e-mail: [EMAIL PROTECTED] jl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] jl __ jl Do You Yahoo!? jl Tired of spam? Yahoo! Mail has the best spam protection around jl http://mail.yahoo.com jl - jl To unsubscribe, e-mail: [EMAIL PROTECTED] jl For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vineesh Kumar Software Engineer ISS-RnD Department HCL infosystems Ltd Cochin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]