Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.5x on Windows 7 problems

 
Darren Littlepage
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I just passed the OCPJP and want to start on the OCPJWCD.
I read the links page and faq page for SCWCD here and found the link for Tomcat 5.5x

I first installed it and it seemed to be running ok. Then I restarted. I couldn't get it to run since.

I uninstalled it and tried to install it in the Program Files (x86) directory instead of defualt this time
Now when installing I get the error message that I can't create the service.

Can this be done on Windows 7?
Is anyone successuflly running Tomcat 5.5x on Windows 7. If so how did you do it.
I searched the forum to see if anyone else had the problem and found one entry remotely related but not helpful.
I can't believe I'm the only person to come across this problem so far as Windows 7 is well established now.
Would it be bad to go with a newer version of Tomcat?...eventhough the servlet and jsp versions are higher?
I plan on buying the Head First book for SCWCD but want to get some JSPs and small apps going while I'm waiting for it.

Any help would be great. I apologize if this is not the right forum but this is what I'm trying to accomplish for the OCPJWCD.
 
Kirill Temnenkov
Greenhorn
Posts: 8
Firefox Browser MyEclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use TomCat 6.0.30 zip package 64) under Windows 7 (64 bit). Everything was fine
 
Darren Littlepage
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kirill, Thanks for the reply

I just downloaded and uncompressed the Tomcat 6.0.30 64 bit zip files. When I run the exe file a console pops up for a second then disappears. I check Task Manager and no Tomcat. I go to localhost:8080 and page not found.

What do I need to do to get it started in Windows 7?
I tried running the various .bat files in the bin directory and same thing happens.
 
Kirill Temnenkov
Greenhorn
Posts: 8
Firefox Browser MyEclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should not run exe files!
You must run the file <your apache dir>\bin\startup.bat to start the server (and file <your apache dir>\bin\shutdown.bat) to stop the server.
 
Darren Littlepage
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried doing that too.

When I run the setclasspath.bat file I get a message that says JAVA_HOME should point to a JDK not a JRE.
My JAVA_HOME variable points to a JDK in Windows Environment Variables.
Is there somewhere else I need to set it?

 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3819
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the exact value that you see when you do echo %JAVA_HOME% on cmd prompt? Make sure that you don't have bin at the end (It should end at the root of jdk installation: C:\Program Files\Java\jdk1.6.0_23 ).
 
Darren Littlepage
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it was at first pointing to the bin directory now I changed it to C:Program Files (x86)\Java\jdk1.6.0_21;
That's also what it shows when I echo %JAVA_HOME%
When I type the cmd startup it give me the same issue that my JAVA_HOME should point to a JDK not a JRE.

What can I do?
 
Darren Littlepage
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made a little progress. I set the TOMCAT_HOME variable.
Now I am getting some feedback in the error log file.

The first error:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_21\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec MyWinLocker\x86;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files
(x86)\Universal Extractor;C:\Program Files (x86)\Universal Extractor\bin;C:\Program Files (x86)\Java\jdk1.6.0_21;C:\Program Files (x86)\Java\jdk1.6.0_21\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Ant\apache-ant-1.8.2\bin;C:\Apache Tomcat\apache-tomcat-6.0.30;C:\Apache Tomcat\apache-tomcat-6.0.30\bin;C:\Program Files (x86)\CVSNT\

Sorry for the PATH dump but I just wanted to give as much info as possible.

The second error I see is:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind <null>:8080

This is followed by a few other errors with different ports 8008,8009.

 
Darren Littlepage
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my problem solved. It looks like ports 8080, 8009, and 8005 were in use by something so I changed the ports in the server.xml file and it works now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic