tags:

views:

80

answers:

2

Hi, Using recently Tomcat. So far I have used it on a Windows XP machine, and everything went well. I decided to install it on a Mac machine, Mac OS X Snow Leopard, but can not boot.

I installed Tomcat by following this step: 1. download from site, 2. create folder /Library/Tomcat, 3. untar file in this new folder, 4. create simbolic link from /Library/Tomcat/apache-tomcat-6.0.26 to /Library/Tomcat/Home, 5. create env variables CATALINA_HOME, JAVA_HOME.

Prior to this new installation, i had not used symbolic link, but i did untar package in folder /Library/Tomcat: the result was always the same: no startup.

I checked the permissions in the $CATALINA_HOME/bin, which i show below:

macmac:bin sandro$ pwd

/Library/Tomcat/Home/bin

macmac:bin sandro$ ls -l

total 848

-rwxr-xr-x 1 sandro admin 22110 9 Mar 18:06 bootstrap.jar

-rw-r--r-- 1 sandro admin 2374 9 Mar 18:06 catalina-tasks.xml

-rwxr-xr-x 1 sandro admin 15582 9 Mar 18:06 catalina.sh

-rwxr-xr-x 1 sandro admin 9341 9 Mar 18:06 commons-daemon.jar

-rwxr-xr-x 1 sandro admin 1624 9 Mar 18:06 digest.sh

-rw-r--r-- 1 sandro admin 74398 9 Mar 18:06 jsvc.tar.gz

-rwxr-xr-x 1 sandro admin 4114 9 Mar 18:06 setclasspath.sh

-rwxr-xr-x 1 sandro admin 1563 9 Mar 18:06 shutdown.sh

-rwxr-xr-x 1 sandro admin 1956 9 Mar 18:06 startup.sh

-rwxr-xr-x 1 sandro admin 26484 9 Mar 18:06 tomcat-juli.jar

-rw-r--r-- 1 sandro admin 241274 9 Mar 18:06 tomcat-native.tar.gz

-rwxr-xr-x 1 sandro admin 3459 9 Mar 18:06 tool-wrapper.sh

-rwxr-xr-x 1 sandro admin 1567 9 Mar 18:06 version.sh

And trying to start Tomcat, i get the following logs:

macmac:bin sandro$ ./startup.sh && tail -f ../logs/catalina.out

Using CATALINA_BASE: /Library/Tomcat/Home

Using CATALINA_HOME: /Library/Tomcat/Home

Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp

Using JRE_HOME: /Library/Java/Home

Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar

at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)

Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory

at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)

at java.lang.ClassLoader.loadClass(ClassLoader.java:315)

at java.lang.ClassLoader.loadClass(ClassLoader.java:250)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)

... 1 more

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging /LogFactory

at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)

Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory

at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)

at java.lang.ClassLoader.loadClass(ClassLoader.java:315)

at java.lang.ClassLoader.loadClass(ClassLoader.java:250)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)

... 1 more

Same if i run sudo ./startup.sh && tail -f ../logs/catalina.out.

For completeness, write which version use:

TOMCAT: 6.0.26

JAVA:

java -version

java version "1.6.0_17"

Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)

Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

Java is already on Mac.

ANT: already installed on mac: version 1.7.1

How can i fix this? What could it be? Please help me. Many thanks in advance

A: 

Hi Mate, i have the same problem and i was searching about that, but i didn't find the fix.

Did you can start your tomcat?

Thanks.

Zahit
Your problem is exactly the same as mine?Tomcat 6.0.x on Mac OS X does not start?I asked for help to Tomcat support ...I'll let you know ... if I solve the problem!Best regards!
sangi
Some on have a solution, please!?
sangi
A: 

Yep, same problem here! help!

Alistair
I haven't found any solution!!!!I asked everywhere, but nothing!!!!If I'll resolve, I write solution here.....Sorry...
sangi