File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SEVERE errors when starting tomcat on a mac

 
David Morisset
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,


I installed Tomcat 7.0.35 on two different macs running java 1.6 : one on OS X 10.8.1 and the other 10.6.8 and i get the same issue on both.
I followed the instructions from Wolf Paulus both times, except for the small GUI that i didn't install.
The only other thing i did was copy javax.servlet.jar in /Library/java/Extensions.
At first it works, i can see the home page on http://localhost:8080 and browse the examples.

Then, when i reboot my mac and try to run startup.sh , i can see it being initialised with the following :


but then i can't access anything. Here is the output from Catalina.out



The only info i found regarding these messages has to do with using different versions of java on Tomcat and JVM. It doesn't seem relevant since i am on 1.6 which is the version required.
Does anyone have an idea what i am doing wrong ?

Thanks in advance
 
David Morisset
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer was in the question, it's the javax.servlet.jar that was causing the problem and it took me all day to find it.
Learning the hard way...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never ever ever copy the servlet jars files out of Tomcat to anywhere else. Ever.

That way lies ruin and disaster.

But don't feel bad; this has bitten many people in the past. Especially when they copy those jars into WEB-INF/lib!
 
David Morisset
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the advice and trust me, i won't forget it !
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
K. Gil
Ranch Hand
Posts: 75
Java Linux Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
btw, version 7.0.35 has nasty bugs, and it was so urgent to fix these, that release 7.0.36 was cancelled,
and 7.0.37 was released instead with bug fixes for 7.0.35, while that what was planned for 7.0.36 was moved to 7.0.38 schedule.
I would stay away from 7.0.35
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic