File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Windows 7 and Tomcat compatibility? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Windows 7 and Tomcat compatibility?" Watch "Windows 7 and Tomcat compatibility?" New topic
Author

Windows 7 and Tomcat compatibility?

Prash Singh
Ranch Hand

Joined: Aug 23, 2009
Posts: 103

Dear all,

My System Configuration is as follows:
Processor: AMD Athlon (tm) 64X2 Dual Core Processor 3600 + 2.01 Ghz
System Type: 64-bit Operating System
Windows 7 ultimate

I downloaded Tomcat 6.0.26 and tried to configure on my system.

But no matter what I tried ,nothing helped me.

Please suggest me something.


Note: If I follow same steps in XP environment. everything works just fine.


Thanks in Advance.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10240
    
168

I downloaded Tomcat 6.0.26 and tried to configure on my system.

But no matter what I tried ,nothing helped me.


You have to tell us more on what that means. What exactly did you try to configure? And what doesn't work? Which version and vendor of Java do you have on that system? How do you start the server? Do you see any errors?

[My Blog] [JavaRanch Journal]
Prash Singh
Ranch Hand

Joined: Aug 23, 2009
Posts: 103

Dear Sir,

Thanks fro you reply.

My Java Version is jdk1.6.0_18.
and it's Apache Tomcat version 6.0.26.

On installing Apache, A Apache Software Foundation\Tomcat 6\.. directory structure is created.
When I try to start Apache Server from Tomcat6\bin\tomcat6, then a cmd windows flashes only.
No server is started.

Initially It also showed an error about UAC. But I somehow managed that.
But the Tomcat service is still not running, even on manual starting.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10489
    
    9

Try invoking the startup.bat from the command prompt. You will get an error message there if any.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are you sure it hasn't started?

Have you tried going to http://localhost:8080 to see if it responds to requests?
Have you gone through any of the logs in tomcat/logs?

If you've tried a bunch of times, the logs will probably be large.
At a point like that, I usually delete all the logs, try to start it (once) and then start looking through the logs to see if there are any errors mentioned in them.

If you see an error that you don't understand post it here.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Prash Singh
Ranch Hand

Joined: Aug 23, 2009
Posts: 103


going to http://localhost:8080 results in the following message.

Firefox can't establish a connection to the server at localhost:8080.

I tried to manually start the server using startup.bat.
but my tomacat 6/ bin folder doesnot have this file.

I am confused , please help.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10240
    
168

Did you also try Maneesh's suggestion? My guess is that it's a problem with JAVA_HOME value. What is the output of the following command:

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
I tried to manually start the server using startup.bat.
but my tomacat 6/ bin folder doesnot have this file.


Probably you installed with the .exe installer which expects you to be creating a service.

For experimenting with Tomcat you should use the full zipped file download. That gives you the startup.bat and a whole lot more control over starting and stopping Tomcat.

I think it was remarkably stupid of Apache to create the exe installer that way. It has caused lots of people lots of troubles.

Bill
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you have the *.exe version try to start Tomcat from the start menu item.
Start -> Apache Tomcat
Prash Singh
Ranch Hand

Joined: Aug 23, 2009
Posts: 103

Dear All,

Thanks for such a help..
Well for the time being I have shifted to use Zip version of Apache.

But now I am facing another problem.

My Server Information

Tomcat Version JVM Version JVM Vendor OS Name OS Version OS Architecture
Apache Tomcat/6.0.26 1.6.0_18-b07 Sun Microsystems Inc. Windows 7 6.1 x86


Now when I launch Tomcat Server using startup.bat, server starts but it is showing following exceptions.
Please help, what does it mean and what to do.?



William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
Could this be some sort of Windows security or Anti-Virus program? I know my AV has a fit when an unauthorized program tries to act as a web server.

Bill
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It looks like you've got the version with APR.

Try this:
Remove tcnative-1.dll from the tomcat/bin directory and restart Tomcat.
T Smith
Greenhorn

Joined: Mar 16, 2011
Posts: 1
I had the same error caused by SKYPE running in the background. Disabled and server started.

Trevor
Nandlal Prajapati
Greenhorn

Joined: May 25, 2012
Posts: 5
go to
run->services.msc->disable the Apache Tomcat
thats all ,it was happening because during your windows startup tomcat server used to start automatically.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Windows 7 and Tomcat compatibility?