Re: Issue starting catalina.sh on Windows for tomcat 7 version
Make script to print sys pros before final call to java exe,compare printed info with previous working one,probably issue with java lib path,class path etc., which makes classloader not able to load ,just a guess,hope it helps 在 2012-8-28,15:18,irfan pasha irfan17...@gmail.com 写道: Hi, I have recently installed tomcat7 version and tried to start catalina.sh from my bash on my windows machine after setting the JAVA path. I get the following error when i start in my console Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/s tartup/Bootstrap Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr ap at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.catalina.startup.Bootstrap. Program w ill exit. It was working fine for earlier versions of tomcat. Any help is appreciated. -- irfan.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue starting catalina.sh on Windows for tomcat 7 version
irfan pasha wrote: Hi, I have recently installed tomcat7 version and tried to start catalina.sh from my bash on my windows machine after setting the JAVA path. The above is a bit confusing (and incomplete). On which machine with which OS is which precise (7.x.y) version of Tomcat installed, and where did you get this Tomcat from ? And which machine has a bash and where is that console running ? I get the following error when i start in my console Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/s tartup/Bootstrap Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr ap at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.catalina.startup.Bootstrap. Program w ill exit. It was working fine for earlier versions of tomcat. Any help is appreciated. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue starting catalina.sh on Windows for tomcat 7 version
Hi, I have installed tomcat 7.0.29 on windows7. I have download .tar.gz file from http://tomcat.apache.org/download-70.cgi. My bash and the console both are in same machine. I have installed MKS tool kit that enables me to run bash on Windows. Let me know if you need more information. Regards, Irfan On Tue, Aug 28, 2012 at 2:25 PM, André Warnier a...@ice-sa.com wrote: irfan pasha wrote: Hi, I have recently installed tomcat7 version and tried to start catalina.sh from my bash on my windows machine after setting the JAVA path. The above is a bit confusing (and incomplete). On which machine with which OS is which precise (7.x.y) version of Tomcat installed, and where did you get this Tomcat from ? And which machine has a bash and where is that console running ? I get the following error when i start in my console Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/s tartup/Bootstrap Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr ap at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.catalina.startup.Bootstrap. Program w ill exit. It was working fine for earlier versions of tomcat. Any help is appreciated. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- irfan.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue starting catalina.sh on Windows for tomcat 7 version
irfan pasha wrote: Hi, I have installed tomcat 7.0.29 on windows7. I have download .tar.gz file from http://tomcat.apache.org/download-70.cgi. My bash and the console both are in same machine. I have installed MKS tool kit that enables me to run bash on Windows. Let me know if you need more information. That is what I kind of suspected. And, with respect, unless you have very specific needs to go along this route, I believe that you are setting yourself up for a lot of complications. Think that the executable program that will really be running on that machine is the Java JVM. Tomcat is just a Java application that will run inside this JVM. So unless you have also installed a Linux-kind of Java JVM that runs also under the MKS toolkit, you are probably on the wrong track. Another way of saying this : The Tomcat code is always the same, because it always runs inside the same environment : a Java JVM. But the Java JVM itself is very specific (and different) for each OS platform. And running Java (and a Java application) as a Unix daemon is quite different from running Java (and a Java application) as a Windows Service. And running Java under an MKS environment is still different, and you would probably need an MKS-specific version of the JVM to do that (if it exists). What you should probably be doing is - install a Java JVM for Windows - download and install the Tomcat distribution for Windows (the service installer or the normal Tomcat) - use the Windows Service or the Windows command-line interface to run your Tomcat and then, if you want, use your MKS environment to interact with Tomcat, as a client. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue starting catalina.sh on Windows for tomcat 7 version
Well i have alternative of starting tomcat based on the OS. But i specifically want to use catalina.sh for both windows and unix operating systems. For the past 4 years i am able to use it, but not only with this version. What is the major change that was done with this version. why does catalina.sh does'nt get started with this version on windows. Regards, Irfan On Tue, Aug 28, 2012 at 3:58 PM, André Warnier a...@ice-sa.com wrote: irfan pasha wrote: Hi, I have installed tomcat 7.0.29 on windows7. I have download .tar.gz file from http://tomcat.apache.org/download-70.cgi. My bash and the console both are in same machine. I have installed MKS tool kit that enables me to run bash on Windows. Let me know if you need more information. That is what I kind of suspected. And, with respect, unless you have very specific needs to go along this route, I believe that you are setting yourself up for a lot of complications. Think that the executable program that will really be running on that machine is the Java JVM. Tomcat is just a Java application that will run inside this JVM. So unless you have also installed a Linux-kind of Java JVM that runs also under the MKS toolkit, you are probably on the wrong track. Another way of saying this : The Tomcat code is always the same, because it always runs inside the same environment : a Java JVM. But the Java JVM itself is very specific (and different) for each OS platform. And running Java (and a Java application) as a Unix daemon is quite different from running Java (and a Java application) as a Windows Service. And running Java under an MKS environment is still different, and you would probably need an MKS-specific version of the JVM to do that (if it exists). What you should probably be doing is - install a Java JVM for Windows - download and install the Tomcat distribution for Windows (the service installer or the normal Tomcat) - use the Windows Service or the Windows command-line interface to run your Tomcat and then, if you want, use your MKS environment to interact with Tomcat, as a client. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- irfan.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue starting catalina.sh on Windows for tomcat 7 version
irfan pasha wrote: Well i have alternative of starting tomcat based on the OS. But i specifically want to use catalina.sh for both windows and unix operating systems. What you want, and what is possible and/or supported, may be different things. For the past 4 years i am able to use it, but not only with this version. What is the major change that was done with this version. why does catalina.sh does'nt get started with this version on windows. I don't know. But just look at catalina.sh, lines 100-108 fo example. I am not sure what will result there when running this from a MKS bash shell console under Windows. (On my XP laptop under the MKS sh, uname returns Windows_NT). Probably not many people on this list would be sure either, as this is definitely not a common environment to run Tomcat, and probably not something that is ever tested. Maybe the fact that it was running with previous versions was just a lucky coincidence. By the way, if (from a MKS shell command window) I run bin/startup.sh I get the same result as you, but if I run bin/startup.bat, Tomcat starts up fine. (That is with Tomcat 7.0.21, Windows full version). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue starting catalina.sh on Windows for tomcat 7 version
On Tue, Aug 28, 2012 at 1:17 PM, André Warnier a...@ice-sa.com wrote: irfan pasha wrote: Well i have alternative of starting tomcat based on the OS. But i specifically want to use catalina.sh for both windows and unix operating systems. What you want, and what is possible and/or supported, may be different things. For the past 4 years i am able to use it, but not only with this version. What is the major change that was done with this version. why does catalina.sh does'nt get started with this version on windows. I don't know. But just look at catalina.sh, lines 100-108 fo example. I am not sure what will result there when running this from a MKS bash shell console under Windows. (On my XP laptop under the MKS sh, uname returns Windows_NT). Probably not many people on this list would be sure either, as this is definitely not a common environment to run Tomcat, and probably not something that is ever tested. Maybe the fact that it was running with previous versions was just a lucky coincidence. By the way, if (from a MKS shell command window) I run bin/startup.sh I get the same result as you, but if I run bin/startup.bat, Tomcat starts up fine. (That is with Tomcat 7.0.21, Windows full version). regardless whether the request makes any sense - I would do a diff between the working and non working shell scripts and see where it leads me to :-) Cheers Martin - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue starting catalina.sh on Windows for tomcat 7 version
On 8/28/2012 2:39 AM, irfan pasha wrote: Hi, I have installed tomcat 7.0.29 on windows7. I have download .tar.gz file from http://tomcat.apache.org/download-70.cgi. My bash and the console both are in same machine. I have installed MKS tool kit that enables me to run bash on Windows. Let me know if you need more information. Regards, Irfan On Tue, Aug 28, 2012 at 2:25 PM, André Warnier a...@ice-sa.com wrote: irfan pasha wrote: Hi, I have recently installed tomcat7 version and tried to start catalina.sh from my bash on my windows machine after setting the JAVA path. The above is a bit confusing (and incomplete). On which machine with which OS is which precise (7.x.y) version of Tomcat installed, and where did you get this Tomcat from ? And which machine has a bash and where is that console running ? I get the following error when i start in my console Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/s tartup/Bootstrap Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr ap at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.catalina.startup.Bootstrap. Program w ill exit. It was working fine for earlier versions of tomcat. Any help is appreciated. Irfan, Why not download the appropriate zip file? This way you get the native dll as a bonus (plus other stuff) so you can use the APR connector if you wish. I just did the following for 7.0.29, which works fine. I'm using Cygwin on Windows 7 64 bit. 1. Download the windows zip file 2. Unzip it in the bash shell 3. cd to apache-tomcat-7.0.29/bin 4. chmod 755 *.sh 5. ./catatlina.sh start Works fine. I normally use startup.sh and shutdown.sh when I launch from Cygwin. I also have a setenv.sh script that enables JMX, sets a Derby database home, and a default log4j home for applications I test. All works as expected. My JRE_HOME and JAVA_HOME are set as follows: JRE_HOME = C:\Program Files\Java\jre7 JAVA_HOME = C:\Program Files\Java\jdk1.7.0_05 I also use the .bat files to launch Tomcat from Windows Explorer, and NetBeans uses the .bat files (on Windows, .sh obviously on Linux) to manage the Tomcat instances. I find it a little easier to control which JRE I use to run Tomcat with when I'm running it from a bash shell (or NetBeans, which has a Platform option) than with a DOS command shell. I suppose I could use the .tar.gz download, but it's useful to test APR connectors as well so I use the .zip download. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Issue starting catalina.sh on Windows for tomcat 7 version
Hi, I have recently installed tomcat7 version and tried to start catalina.sh from my bash on my windows machine after setting the JAVA path. I get the following error when i start in my console Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/s tartup/Bootstrap Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr ap at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.catalina.startup.Bootstrap. Program w ill exit. It was working fine for earlier versions of tomcat. Any help is appreciated. -- irfan.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org