RE: Nagging DNS issue
The hosts file is located here on XP: C:\WINDOWS\system32\drivers\etc -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 10:19 AM To: Tomcat Users List Subject: Re: Nagging DNS issue On Mon, Jul 26, 2004 at 12:22:05AM -0700, Dola Woolfe wrote: : http://DOLACHIN/myproject; also gets : an immediate response. : : But not always! For example, if : 1. my wireless connection is enabled by not available, : or : 2. is enabled available and but is slow, or : 3. is enabled available fast, but something else is : different : Sounds like WinXP is doing something funky when the network config changes. Perhaps it changes the IP address associated w/ the workstation based on changes in the network config, or something else. Check a couple of things: 1/ what are the contents of the hosts file? I don't know where it is under XP, but under 2000 it was something like /WinNT/System32/Drivers/Net/hosts Hostnames read from the hosts file should bypass DNS and such, so sticking with a name/IP pair in that file should alleviate your problem. 2/ Check your network config for each of the situations you described, then compare them. I believe the command is ipconfig /all run from a cmd window. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
tomcat start up at boot time
Howdy, I'm hoping one or more of you can help me with this. I am running Tomcat 4.1.27 as a standalone webserver / servlet container on HP-UX 11. It starts fine when it is executed from the command-line. However, when it executes at server boot time it starts and runs for about 3 minutes and then it stops. The logs do not provide any data as to why it stops. It just shows stop procedures taking place. The process is set up in platform to execute as a non-root user. The environment variables are set up. Permissions are correct. Also the process will start as root at boot time without errors. I'd love any ideas you might have about the problem. Thanks, Carey
RE: Starting a different process for each java operation
Thank you for the response. No, tomcat provide no such features. You can accomplish this (I think) on a Java level (not OS-level) using the AccessController#doPriviledged approach. (See javadoc for java.security.AccessController for more details). Can you clarify something for me? You are referring to tomcat starting child processes and not changing the uid, correct? Another question - Can tomcat be run as another user other then root like httpd is? Thanks for the help. signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage amp; Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer /signature -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 9:02 AM To: Tomcat Users List Subject: RE: Starting a different process for each java operation Howdy, A developer has a servlet that needs to change the uid for the process that runs it to do some shared memory operations. Right now when this servlet runs it is changing the uid of the root process for Tomcat which causes other servlets to stop working. This is bad. Is this something that I am supposed to configure in the server.xml or global web.xml? No, tomcat provide no such features. You can accomplish this (I think) on a Java level (not OS-level) using the AccessController#doPriviledged approach. (See javadoc for java.security.AccessController for more details). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. 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: OT [was: Re: Starting a different process for each java ope ration]
Thank for this information. This very much depends on the platform tomcat runs on. On Linux and most Un*x-like operationg systems, no user except root (i.e. anyone with effective uid 0) may open ports below 1024. Hence, on these platforms, no other user can start tomcat on port 80, at least not without outside help. What native unix-programs (like apache) do is they meddle with the uid they are running under by the means of kernel function calls, dropping their root-privileges after they open port 80 and do other privileged stuff. Since I had no need for this myself, I do not know if there is any solution around that allows java programms to effectively do the same. Does anybody know if there is a solution that allows this? Carey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting a different process for each java operation
If this is in the archives or docs, I'm sorry. The company proxy is blocking the tomcat site. Can tomcat be configured to start child processes for each java operation? A developer has a servlet that needs to change the uid for the process that runs it to do some shared memory operations. Right now when this servlet runs it is changing the uid of the root process for Tomcat which causes other servlets to stop working. This is bad. Is this something that I am supposed to configure in the server.xml or global web.xml? Thanks for the help. Carey Lott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
...libjniGetString.sl already loaded in another classloader
Does anybody know what we need to be looking for? Thanks in advance. Carey, I have a servlet that uses the Native Interface facilities. It gets to a point and then tries to load a library that I constructed. At first it could not find the library, but I fixed that by stopping catalina, setting SHLIB_PATH to /bto/appl/apache/jakarta-tomcat-4.0.4/webapps/esd/WEB-INF/classes and restarting catalina. It found the library fine the first time I tried to run it. The next time I tried to run it, the app failed, saying that ...libjniGetString.sl already loaded in another classloader I can't find how to make it unload the library or do anything else to make it run. I tried stopping and restarting catalina and it still gets the same error. Do you have any idea what to do? Ivan signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
Since nobody has responded does this mean nobody has any more ideas on the problem or am I getting the You idiot. The answer is staring you in the face. silent treatment? If it is the latter, I will admit being an idiot if someone will enlighten me. If it is the former, I want to say thank you for the help I have received to this point because I am farther along then I was, and if I figure out a solution short of a cron entry I'll post it. Thanks again for the help. Carey -Original Message- From: Lott, Carey Sent: Friday, August 15, 2003 11:18 AM To: 'Tomcat Users List' Subject: RE: Starting tomcat from init scripts (HP/UX) Ok, I finally got the script to execute correctly and I got the familiar output: Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp Using JAVA_HOME: /opt/java1.4 But tomcat still isn't starting, and I am not receiving any other errors. Also the script executes fine when I do it from command line. I have placed the start/stop script in /sbin/init.d/. I have made the script be last to start and first to stop. I couldn't get the script to recognize the env variables when they were in the rc.config.d directory, so I placed them directly in the script which seems to have worked, but the process still isn't starting. Can anybody give me any other ideas as to what could be wrong or what I could try? Any ideas how I can get a better error information? Below is the start/stop script - /sbin/init.d/tomcat. Can you see anything missing? Thanks in advance for everybody's input and help. #!/sbin/sh # Start/Stop for Tomcat Java Servlet Container # PATH=/sbin:/usr/sbin:/usr/bin export PATH ## Source global configuration file ##. /etc/rc.config # Needed variables CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt/ java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/o pt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/java 1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/j re/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4/ jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-tom cat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4/ webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pro duct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in start_msg) echo Starting Tomcat ;; 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; stop_msg) echo Stopping Tomcat ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac exit 0; signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Morgan Pyne [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:54 AM To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Have a look at /usr/share/doc/start_up.txt or /usr/share/doc/start_up.ps on a HP-UX 11.00 machine for details of how to write a startup script conforming to HP-UX's standards (for issuing messages at startup and shutdown via the 'start_msg' and 'stop_msg' parameters, honouring the settings in /etc/rc.config.d etc...). You can use any of the scripts in /sbin/init.d as a basis - modify one as appropriate and get it to simply call catalina.sh. We also modified our catalina.sh to check which userid was calling the script. If it was root it would sudo to the non-privileged user that Tomcat ran under ('tomcat'). If it was userid 'tomcat' calling it it would simply continue. If it was anyone else, it would exit with an error message. This way we get Tomcat started as a non-privileged user starting automatically on boot. Regards, Morgan -Original Message- From
RE: Starting tomcat from init scripts (HP/UX)
Ok, I finally got the script to execute correctly and I got the familiar output: Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp Using JAVA_HOME: /opt/java1.4 But tomcat still isn't starting, and I am not receiving any other errors. Also the script executes fine when I do it from command line. I have placed the start/stop script in /sbin/init.d/. I have made the script be last to start and first to stop. I couldn't get the script to recognize the env variables when they were in the rc.config.d directory, so I placed them directly in the script which seems to have worked, but the process still isn't starting. Can anybody give me any other ideas as to what could be wrong or what I could try? Any ideas how I can get a better error information? Below is the start/stop script - /sbin/init.d/tomcat. Can you see anything missing? Thanks in advance for everybody's input and help. #!/sbin/sh # Start/Stop for Tomcat Java Servlet Container # PATH=/sbin:/usr/sbin:/usr/bin export PATH ## Source global configuration file ##. /etc/rc.config # Needed variables CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt/ java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/o pt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/java 1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/j re/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4/ jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-tom cat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4/ webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pro duct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in start_msg) echo Starting Tomcat ;; 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; stop_msg) echo Stopping Tomcat ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac exit 0; signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Morgan Pyne [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:54 AM To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Have a look at /usr/share/doc/start_up.txt or /usr/share/doc/start_up.ps on a HP-UX 11.00 machine for details of how to write a startup script conforming to HP-UX's standards (for issuing messages at startup and shutdown via the 'start_msg' and 'stop_msg' parameters, honouring the settings in /etc/rc.config.d etc...). You can use any of the scripts in /sbin/init.d as a basis - modify one as appropriate and get it to simply call catalina.sh. We also modified our catalina.sh to check which userid was calling the script. If it was root it would sudo to the non-privileged user that Tomcat ran under ('tomcat'). If it was userid 'tomcat' calling it it would simply continue. If it was anyone else, it would exit with an error message. This way we get Tomcat started as a non-privileged user starting automatically on boot. Regards, Morgan -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 02:11 To: Tomcat Users List Subject: RE: Starting tomcat from init scripts (HP/UX) Tim is right. In HP/UX there is a default start script (I forget what it's called). You plug in the name of your service and add any other stuff it might need. You define you service as being active somewhere else. (I know I'm not much help but it's been a while). That way when it starts you get the [OK] message. -e On Thu, 7 Aug 2003, Lott, Carey wrote: I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes
Starting tomcat from init scripts (HP/UX)
Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting tomcat from init scripts (HP/UX)
I tried calling the startup.sh instead of catalina.sh, but I had the same outcome. It executes the first part of the script which displays the variables that are being used, but it doesn't do anything more. We haven't been able to find any errors to give us an idea of what the problem is. I'm sorry I think I forgot to say in the initial email that I am running Tomcat 4.0.4 on HP/UX 11.00. I appreciate any suggestions you can offer. signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account phone404-529-6676/phone email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature disclaimer * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. /disclaimer -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:11 PM To: Tomcat Users List Subject: Re: Starting tomcat from init scripts (HP/UX) Hi, It's been a while since I tinkered with HP/UX but it seems to me that you can set all your varibles in the default tomcat start scripts and then call the default startup.sh and shutdown.sh. -e On Thu, 7 Aug 2003, Lott, Carey wrote: Hi, The above subject is based on the exact same topic I found in the archives from back in January, but no solution was ever posted. We are having the exact same problem that Pascal was having. We are trying to start tomcat from an init script at boot time. I have the needed variables in the init script, and the init script calls catalina.sh directly. Below is a copy of my script. I have used the script to stop and start tomcat manually without a problem. However, when Tomcat tries to start at boot time the run control information states that it can't start as root, and it is going to try as bin, but it is unsuccessful. Does anybody know why it wouldn't be able to start as root? What can I do to fix this? Init script: - #!/bin/sh # Start/Stop for Tomcat Java Servlet Container # CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 export CATALINA_HOME JAVA_HOME=/opt/java1.4 export JAVA_HOME CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.ja r:/opt /java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/ opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/ jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4 /jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4 /webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr oduct/8.0.6/jdbc/lib/classes111.zip export CLASSPATH case $1 in 'start') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 ;; 'stop') /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 ;; esac Thank you for any help you can offer. Carey signature nameCarey Lott/name posWeb Tools Support/pos orgInfrastructure Storage Tools Support/org companyEDS/company accountBellSouth/account email[EMAIL PROTECTED]/email ipager[EMAIL PROTECTED]/ipager /signature - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat not starting after reboot or from cron
Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
I was actually wondering about that concerning the startup environment, but I didn't think it would be an issue for cron since it was the root crontab. I'll add it to the script and see what happens. Thanks!! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:30 PM To: 'Tomcat Users List' Subject: RE: tomcat not starting after reboot or from cron If you can do it manually, from a log in session, but not automatically from startup or from cron, I'm 99% sure it's because environment variables like JAVA_HOME and CATALINA_HOME are not being set for the startup and cron environments. Without those, you won't get anything. They're probably being set just fine for you when you log in. John -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Y'all were right. You were absolutely right! It was the environment variables. Once I placed the variables at the beginning of the script and exported them, the cron worked perfectly. Thanks Again -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:37 PM To: 'Tomcat Users List' Subject: RE: tomcat not starting after reboot or from cron I was actually wondering about that concerning the startup environment, but I didn't think it would be an issue for cron since it was the root crontab. I'll add it to the script and see what happens. Thanks!! -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:30 PM To: 'Tomcat Users List' Subject: RE: tomcat not starting after reboot or from cron If you can do it manually, from a log in session, but not automatically from startup or from cron, I'm 99% sure it's because environment variables like JAVA_HOME and CATALINA_HOME are not being set for the startup and cron environments. Without those, you won't get anything. They're probably being set just fine for you when you log in. John -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat not starting after reboot or from cron
Ricky, Actually, for my startup script that is in init.d, all I am doing is linking to catalina.sh. An ls -al of it look like this: lrwxrwxrwx 1 root staff 53 Nov 12 09:01 tomcat - /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh I have then placed a link to this in the rc3.d. I could have linked directly to catalina.sh from rc3.d, but for consistency I like all my startup and kill scripts in the rc#.d directories to link to the init.d directory. The link in the rc3.d directory looks like this: lrwxrwxrwx 1 root sys 18 Oct 25 10:13 S55tomcat - /etc/init.d/tomcat An uppercase S signifies a startup script, and an uppercase K signifies a kill (or stop) script. This is the script I am using in the crontab: (I am sure many have come up with better, but this works for my developers) #!/bin/ksh # The script stops and starts the java servlet container JAVA_HOME=/bto/appl/apache/j2sdk CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4 #CLASSPATH=$CATALINA_HOME/common/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA _HOME/jre/lib/ext:. CLASSPATH=$CATALINA_HOME/common/lib/servlet.jar:/bto/appl/apache/j2sdk/jre/l ib/rt.jar:/bto/appl/apache/j2sdk/lib/tools.jar:/bto/app l/apache/j2sdk/lib/dt.jar:/bto/appl/apache/j2sdk/lib/htmlconverter.jar:/bto/ appl/apache/j2sdk/jre/lib/charsets.jar:/bto/appl/apache /j2sdk/jre/lib/javaplugin.jar:/bto/appl/apache/j2sdk/jre/lib/ext/dnsns.jar:/ bto/appl/apache/j2sdk/jre/lib/ext/localedata.jar:/bto/a ppl/apache/j2sdk/jre/lib/ext/ldapsec.jar:/bto/appl/apache/j2sdk/jre/lib/jce. jar:/bto/appl/apache/j2sdk/jre/lib/jsse.jar:.:/bto/appl /apache/jakarta-tomcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/ja karta-tomcat-4.0.4/webapps/esd/WEB-INF/lib:/bto/appl/ap ache/htdocs/esd/java export JAVA_HOME export CATALINA_HOME export CLASSPATH /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop /bin/sleep 10 /bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start -Original Message- From: Ricky Leung [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:36 PM To: Tomcat Users List Subject: RE: tomcat not starting after reboot or from cron Do you mind sharing your Tomcat restart script with us? I want to do the same but perhaps on a weekly basis. One of the problems I am worried about is that Tomcat isn't stopping, so I would need to wait for it to end or kill it before I restart it. Any help would be appreciated. Thanks. Ricky -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:31 PM To: Tomcat Users List Subject: RE: tomcat not starting after reboot or from cron Howdy, We have some tomcat instances that restart nightly from a crontab, without a problem. They're all tomcat 4.0.6-LE on Solaris 2.8. None use apache as the front end. None run as root. Each runs as its own user, and the restart job is in that user's crontab. We've had no problems with this setup. What does the cron output email say when you have problems? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lott, Carey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 12:13 PM To: 'Tomcat Users List' Subject: tomcat not starting after reboot or from cron Has anybody had a problem with tomcat (4.0.4) starting after a reboot? Or problems starting it from the root crontab? I have no problems at all starting tomcat manually. Everything works fine that way. To automate the startup after a reboot, I am using init.d with the startup script in rc3.d. However, nothing is happening. I'm not even receiving any errors in the logs. But I can immediately start it manually with out a problem. Also I can't stop and start tomcat from a crontab. I set up a stop and start script and placed them in the root crontab, but the time comes to stop tomcat and nothing happens then the startup script should be initiated a minute later but it is a mute point since tomcat didn't stop, but nothing shows up in the logs either way. Is there a parameter or something that I am missing for this to work? I am running Tomcat 4.0.4 (as a standalone server using port 8880) on Solaris 2.7. Apache 1.3.9 is running on the server as well using port 80. Thanks in advance for the help. - Carey - -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Parse error in application web.xml
Instead of depending on the invoker servlet, I have added our servlets to the web.xml file inside of the app's WEB-INF directory. However, now I am getting the following error when I try to start tomcat with the changed web.xml: 2003-01-17 13:07:51 ContextConfig[/esd] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). I have validated the web.xml file using IE. No errors are apparent. The file displays properly in the browser. Can somebody look at the web.xml, and see what I am missing? I know it has to be something really easy that I am overlooking. Thanks in advance for the Help web.xml file: ?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 welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Example servlet servlet-nameDateServlet/servlet-name servlet-classDateServlet/servlet-class /servlet servlet-mapping servlet-nameDateServlet/servlet-name url-pattern/servlet/DateServlet/url-pattern /servlet-mapping -- servlet servlet-nameDDSMenu/servlet-name servlet-classDDSMenu/servlet-class /servlet servlet-mapping servlet-nameDDSMenu/servlet-name url-pattern/DDSMenu/url-pattern /servlet-mapping servlet servlet-nameDDSHome/servlet-name servlet-classDDSHome/servlet-class /servlet servlet-mapping servlet-nameDDSHome/servlet-name url-pattern/DDSHome/url-pattern /servlet-mapping servlet servlet-nameDDSLogin/servlet-name servlet-classDDSLogin/servlet-class /servlet servlet-mapping servlet-nameDDSLogin/servlet-name url-pattern/DDSLogin/url-pattern /servlet-mapping servlet servlet-nameDDSLog/servlet-name servlet-classDDSLog/servlet-class /servlet servlet-mapping servlet-nameDDSLog/servlet-name url-pattern/DDSLog/url-pattern /servlet-mapping /web-app -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Parse error in application web.xml
That was it. Thanks I placed welcome-file-list element at the bottom and then grouped all of the servlet elements together and underneath it all of the servlet-mapping elements. It finally started up with out an error. Thanks Again. If anybody is interested below is my corrected version. web.xml file: ?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 servlet servlet-nameDDSMenu/servlet-name servlet-classDDSMenu/servlet-class /servlet servlet servlet-nameDDSHome/servlet-name servlet-classDDSHome/servlet-class /servlet servlet servlet-nameDDSLogin/servlet-name servlet-classDDSLogin/servlet-class /servlet servlet servlet-nameDDSLog/servlet-name servlet-classDDSLog/servlet-class /servlet servlet-mapping servlet-nameDDSMenu/servlet-name url-pattern/DDSMenu/url-pattern /servlet-mapping servlet-mapping servlet-nameDDSHome/servlet-name url-pattern/DDSHome/url-pattern /servlet-mapping servlet-mapping servlet-nameDDSLogin/servlet-name url-pattern/DDSLogin/url-pattern /servlet-mapping servlet-mapping servlet-nameDDSLog/servlet-name url-pattern/DDSLog/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 1:37 PM To: Tomcat Users List Subject: RE: Parse error in application web.xml Hi, Instead of depending on the invoker servlet, I have added our servlets to Good. 2003-01-17 13:07:51 ContextConfig[/esd] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb - loca l-ref*). I have validated the web.xml file using IE. No errors are apparent. The You may have viewed the file using IE, not validated it ;) ;) IE would not check against the scheme. The error reported suggests you have elements in the wrong order. It tells you what the right order is. For example, welcome-file-list cannot come before servlet. Reorganize your web.xml file according to the spec, i.e. in the order shown above, and the error will go away. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Classes not being found in app's WEB-INF directory.
Hi, I am running tomcat4.0.4 as a standalone on Solaris 7. Simple servlets that don't need any custom built classes run fine within the $CATALINA_HOME/webapps/esd/WEB-INF/classes directory. However, servlets that are dependent on other custom classes will not run when all of the needed classes are found within the $CATALINA_HOME/webapps/esd/WEB-INF/classes directory, but they do run when the dependent classes are found within the $CATALINA_HOME/classes directory. I don't understand. I thought by default it always looks in the WEB-INF/classes and WEB-INF/lib directories before looking anywhere else for needed classes. The fact that it does run is great, but since we have to have the classes in $CATALINA_HOME/classes the automatic reload function doesn't work. And for some reason stopping and starting tomcat doesn't reload the classes in $CATALINA_HOME/classes either. Does anybody have any ideas what I am missing? I know it has to be something in the configuration, but I don't know what. Thanks in advance for the help!!! - Carey - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]