You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jugal Thakkar <ju...@gmail.com> on 2012/12/03 10:15:41 UTC

Re: Tomcat 7 is not working on windows 7....

Hello Sir,
            I am Java Developer. i develop web application using servlet
and JSP.

My problem is that i am not able to get server started in eclipse
Juno.....using Tomcat 7 with windows 7.....

Please Guide me for the same....
Installation Process of tomcat 7 on windows 7....
I was previously using Windows XP and everything was fine....
But with Windows 7 i am Having the problem....

Please guide me regarding this....

Thanks...

Jugal Thakkar
jugalthakkar1988@gmail.com

Re: Tomcat 7 is not working on windows 7....

Posted by André Warnier <aw...@ice-sa.com>.
Jugal Thakkar wrote:
> Hello Sir,
>             I am Java Developer. i develop web application using servlet
> and JSP.
> 
> My problem is that i am not able to get server started in eclipse
> Juno.....using Tomcat 7 with windows 7.....
> 
> Please Guide me for the same....
> Installation Process of tomcat 7 on windows 7....
> I was previously using Windows XP and everything was fine....
> But with Windows 7 i am Having the problem....
> 
What problem ?

Can you describe, step by step, starting from the download of the Tomcat that you are 
trying to install, what instructions you are following, what you are doing, and where 
exactly you have a problem ?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 7 is not working on windows 7....

Posted by Mark Eggers <it...@yahoo.com>.
See below, and please do not top post.

On 12/4/2012 10:17 PM, Jugal Thakkar wrote:
> I am Getting Errors while Starting Tomcat....
> And I dont Know What to DO.....
> I am Sending Error Logs which is as Follwos.....
>
>
>
> Dec 05, 2012 11:09:42 AM org.apache.catalina.core.AprLifecycleListener init
> INFO: 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\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
> Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program
> Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
> Files\Calibre2\;C:\Program Files\Microsoft SQL
> Server\90\Tools\binn\;D:\Eclipse\JEE;;.
> Dec 05, 2012 11:09:43 AM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8012"]
> Dec 05, 2012 11:09:43 AM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Dec 05, 2012 11:09:43 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1079 ms
> Dec 05, 2012 11:09:43 AM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Dec 05, 2012 11:09:43 AM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.33
> Dec 05, 2012 11:09:43 AM org.apache.catalina.valves.AccessLogValve open
> SEVERE: Failed to open access log file [C:\Program Files\Apache Software
> Foundation\Tomcat 7.0\logs\localhost_access_log.2012-12-05.txt]
> java.io.FileNotFoundException: C:\Program Files\Apache Software
> Foundation\Tomcat 7.0\logs\localhost_access_log.2012-12-05.txt (Access is
> denied)
>      at java.io.FileOutputStream.open(Native Method)
>      at java.io.FileOutputStream.<init>(Unknown Source)
>      at
> org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1119)
>      at
> org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:1223)
>      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>      at
> org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
>      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>      at
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1137)
>      at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
>      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>      at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>      at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>      at java.util.concurrent.FutureTask.run(Unknown Source)
>      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>      at java.lang.Thread.run(Unknown Source)
>
> Dec 05, 2012 11:09:43 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory C:\Program Files\Apache Software
> Foundation\Tomcat 7.0\webapps\docs
> Dec 05, 2012 11:09:44 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory C:\Program Files\Apache Software
> Foundation\Tomcat 7.0\webapps\manager
> Dec 05, 2012 11:09:44 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory C:\Program Files\Apache Software
> Foundation\Tomcat 7.0\webapps\ROOT
> Dec 05, 2012 11:09:44 AM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["http-bio-8012"]
> Dec 05, 2012 11:09:44 AM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> Dec 05, 2012 11:09:44 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 814 ms
>
>
>
> Please Help Me Regarding This....
>
> Thanks...
> Jugal
>
>
> On Mon, Dec 3, 2012 at 9:21 PM, Mark Eggers <it...@yahoo.com> wrote:
>
>> On 12/3/2012 2:28 AM, Konstantin Kolinko wrote:
>>
>>> 2012/12/3 Mark Thomas <ma...@apache.org>:
>>>
>>>> On 03/12/2012 09:15, Jugal Thakkar wrote:
>>>>
>>>>> Hello Sir,
>>>>>               I am Java Developer. i develop web application using
>>>>> servlet
>>>>> and JSP.
>>>>>
>>>>> My problem is that i am not able to get server started in eclipse
>>>>> Juno.....using Tomcat 7 with windows 7.....
>>>>>
>>>>> Please Guide me for the same....
>>>>> Installation Process of tomcat 7 on windows 7....
>>>>> I was previously using Windows XP and everything was fine....
>>>>> But with Windows 7 i am Having the problem....
>>>>>
>>>>> Please guide me regarding this....
>>>>>
>>>>
>>>> Two options:
>>>>
>>>> 1. Read this:
>>>> http://www.catb.org/esr/faqs/**smart-questions.html<http://www.catb.org/esr/faqs/smart-questions.html>
>>>> and follow the excellent advice it offers.
>>>>
>>>>
>>> +1
>>>
>>
>> +1
>>
>>
>>>   2. Apply the following logic:
>>>> - It worked on Windows XP
>>>> - It doesn't work on Windows 7
>>>> - Therefore a bug in Windows 7 is the root cause
>>>> - Either:
>>>>     a) Report the problem to Microsoft and get them to fix it
>>>>     b) Uninstall Windows 7 and re-install Windows XP
>>>>
>>>>
>>> There is also FAQ available, such as
>>> http://wiki.apache.org/tomcat/**FAQ/Windows#Q8<http://wiki.apache.org/tomcat/FAQ/Windows#Q8>
>>>
>>
>> First of all, it works for me (although I mostly use NetBeans and mostly
>> use Linux).
>>
>> 1. Install the appropriate JRE
>>     a. 1.6.0_37 32 bit or 64 bit depending on your system
>>     b. 1.7.0_09 32 bit or 64 bit depending on your system
>> 2. Download and install the J2EE version of Eclipse Juno
>>     a. It's a zip file
>>     b. Unpack it in C:\Users\[username]
>>        [username] is your user name - don't use the square brackets
>>        it will make it's own directory
>>     c. Make shortcuts on the desktop and the start menu
>> 3. Make a directory in C:\Users\[username]
>>     a. [username] is your user name - don't use the square brackets
>>     b. Call that directory Apache
>> 4. Download Tomcat
>>     a. get the latest version (7.0.33 as I write this)
>>     b. get the zip file
>>     c. get the 32 bit or 64 bit depending on your system
>> 5. Unpack the zip file in C:\Users\[username]\Apache
>>     a. this is the directory you made in step 3
>>     b. it will create its own directory (apache-tomcat-7.0.33)
>> 6. Edit
>>     C:\Users\[username]\Apache\**apache-tomcat-7.0.33\conf\**
>> tomcat-users.xml
>>     a. Actually not necessary since Eclipse doesn't use the manager app
>>     b. However, you may want to use the manager app outside of Eclipse
>>     c. Make the contents of tomcat-users.xml like this:
>>
>> <tomcat-users>
>>      <!-- roles -->
>>      <role rolename="manager-gui"/>
>>      <role rolename="manager-script"/>
>>      <role rolename="manager-jmx"/>
>>      <role rolename="manager-status"/>
>>
>>      <!-- users -->
>>      <user name="manager"
>>          password="password"
>>          roles="manager-gui" />
>>      <user name="mgr-script"
>>          password="password"
>>          roles="manager-script"/>
>>      <user name="mgr-jmx"
>>          password="password"
>>          roles="manager-jmx"/>
>>      <user name="mgr-status"
>>          password="password"
>>          roles="manager-status"/>
>> </tomcat-users>
>>
>>     d. Note, I wrapped my lines so it would fit in email.
>>     e. Choose better passwords
>> 7. Verify that Tomcat runs
>>     a. double-click on
>>     C:\Users\[username]\Apache\**apache-tomcat-7.0.33\bin\**startup.bat
>>     b. Browse to http://localhost:8080
>>     c. See the Tomcat start page
>>     d. double-click on
>>     C:\Users\[username]\Apache\**apache-tomcat-7.0.33\bin\**shutdown.bat
>> 8. Add server to Eclipse Juno
>>     a. Start Eclipse
>>     b. Open the Servers window (Windows->Show View->Others->Servers)
>>     c. Right-mouse click in the Servers window
>>     d. Choose New->Server
>>     e. Follow the Wizard
>>
>> You now have Tomcat 7.0.33 running from within Eclipse Juno. The keys are:
>>
>> 1. Do not install as a service
>> 2. Install in your own directory, otherwise you'll be fighting UAC
>>
>> . . . . just my two cents.
>> /mde/
>>
>> (Beats packing and moving in the rain)

It's really easier to follow the conversation if you do not top post. 
Then a new person can read starting from the top of the message to the 
end and have the entire sequence nice and in order.

That said, I'll copy and paste some of the information from your logs 
and make comments.

Hopefully I'll get the line wrapping reasonably correct.

 > INFO: 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\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:>
 > \Windows;C:/Program
 > Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program
 > Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows
 > \System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
 > Files\Calibre2\;C:\Program Files\Microsoft SQL
 > Server\90\Tools\binn\;D:\Eclipse\JEE;;.

The above is not a problem. This means that Tomcat cannot find the 
tcnative.dll in its path. The easiest solution is to copy the 
tcnative-1.dll into tbe %CATALINA_BASE%\bin directory.

 > SEVERE: Failed to open access log file [C:\Program Files\Apache
 > Software
 > Foundation\Tomcat 7.0\logs\localhost_access_log.2012-12-05.txt]
 > java.io.FileNotFoundException: C:\Program Files\Apache Software
 > Foundation\Tomcat 7.0\logs\localhost_access_log.2012-12-05.txt ?
 > (Access is denied)

This is the problem.

You've probably used the installer, and have installed it in
C:\Program Files. You may have installed this as a service as well.

1. You as a normal user do not have write access to C:\Program Files

You are running Tomcat as you, and Tomcat will not be able to write 
files to C:\Program Files or its subdirectories running under your username.

2. If you've installed this as a service, don't

You want to control this from Eclipse, so do not install as a service.

Above, I gave very specific instructions about how to install Tomcat so 
that you could run it from Eclipse.

I recommended that you install Tomcat under your home directory. I did 
this to avoid the permissions issues that you now have.

I specifically recommended to use the zip file (and not the installer). 
Eclipse does not start and stop Tomcat services, but starts this 
manually. I think it does this by running it directly, but I've never 
looked. NetBeans does what I think is proper and uses the .bat (or .sh 
files on Linux / UNIX).

Solution:

1. Install Tomcat in a directory you have full access to

This is why I recommended C:\Users\[username]\Apache

2. Do not install the service

This is why I recommended using the zip file. You want to be able to 
control Tomcat from within Eclipse. Eclipse does not control services.

In short, please follow the original recommendation:

 >> 1. Do not install as a service
 >> 2. Install in your own directory, otherwise you'll be fighting UAC

. . . . just my two cents.
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 7 is not working on windows 7....

Posted by Jugal Thakkar <ju...@gmail.com>.
I am Getting Errors while Starting Tomcat....
And I dont Know What to DO.....
I am Sending Error Logs which is as Follwos.....



Dec 05, 2012 11:09:42 AM org.apache.catalina.core.AprLifecycleListener init
INFO: 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\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program
Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Calibre2\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;D:\Eclipse\JEE;;.
Dec 05, 2012 11:09:43 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8012"]
Dec 05, 2012 11:09:43 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Dec 05, 2012 11:09:43 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1079 ms
Dec 05, 2012 11:09:43 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Dec 05, 2012 11:09:43 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.33
Dec 05, 2012 11:09:43 AM org.apache.catalina.valves.AccessLogValve open
SEVERE: Failed to open access log file [C:\Program Files\Apache Software
Foundation\Tomcat 7.0\logs\localhost_access_log.2012-12-05.txt]
java.io.FileNotFoundException: C:\Program Files\Apache Software
Foundation\Tomcat 7.0\logs\localhost_access_log.2012-12-05.txt (Access is
denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at
org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1119)
    at
org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:1223)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1137)
    at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Dec 05, 2012 11:09:43 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache Software
Foundation\Tomcat 7.0\webapps\docs
Dec 05, 2012 11:09:44 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache Software
Foundation\Tomcat 7.0\webapps\manager
Dec 05, 2012 11:09:44 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\Program Files\Apache Software
Foundation\Tomcat 7.0\webapps\ROOT
Dec 05, 2012 11:09:44 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8012"]
Dec 05, 2012 11:09:44 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Dec 05, 2012 11:09:44 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 814 ms



Please Help Me Regarding This....

Thanks...
Jugal


On Mon, Dec 3, 2012 at 9:21 PM, Mark Eggers <it...@yahoo.com> wrote:

> On 12/3/2012 2:28 AM, Konstantin Kolinko wrote:
>
>> 2012/12/3 Mark Thomas <ma...@apache.org>:
>>
>>> On 03/12/2012 09:15, Jugal Thakkar wrote:
>>>
>>>> Hello Sir,
>>>>              I am Java Developer. i develop web application using
>>>> servlet
>>>> and JSP.
>>>>
>>>> My problem is that i am not able to get server started in eclipse
>>>> Juno.....using Tomcat 7 with windows 7.....
>>>>
>>>> Please Guide me for the same....
>>>> Installation Process of tomcat 7 on windows 7....
>>>> I was previously using Windows XP and everything was fine....
>>>> But with Windows 7 i am Having the problem....
>>>>
>>>> Please guide me regarding this....
>>>>
>>>
>>> Two options:
>>>
>>> 1. Read this:
>>> http://www.catb.org/esr/faqs/**smart-questions.html<http://www.catb.org/esr/faqs/smart-questions.html>
>>> and follow the excellent advice it offers.
>>>
>>>
>> +1
>>
>
> +1
>
>
>>  2. Apply the following logic:
>>> - It worked on Windows XP
>>> - It doesn't work on Windows 7
>>> - Therefore a bug in Windows 7 is the root cause
>>> - Either:
>>>    a) Report the problem to Microsoft and get them to fix it
>>>    b) Uninstall Windows 7 and re-install Windows XP
>>>
>>>
>> There is also FAQ available, such as
>> http://wiki.apache.org/tomcat/**FAQ/Windows#Q8<http://wiki.apache.org/tomcat/FAQ/Windows#Q8>
>>
>
> First of all, it works for me (although I mostly use NetBeans and mostly
> use Linux).
>
> 1. Install the appropriate JRE
>    a. 1.6.0_37 32 bit or 64 bit depending on your system
>    b. 1.7.0_09 32 bit or 64 bit depending on your system
> 2. Download and install the J2EE version of Eclipse Juno
>    a. It's a zip file
>    b. Unpack it in C:\Users\[username]
>       [username] is your user name - don't use the square brackets
>       it will make it's own directory
>    c. Make shortcuts on the desktop and the start menu
> 3. Make a directory in C:\Users\[username]
>    a. [username] is your user name - don't use the square brackets
>    b. Call that directory Apache
> 4. Download Tomcat
>    a. get the latest version (7.0.33 as I write this)
>    b. get the zip file
>    c. get the 32 bit or 64 bit depending on your system
> 5. Unpack the zip file in C:\Users\[username]\Apache
>    a. this is the directory you made in step 3
>    b. it will create its own directory (apache-tomcat-7.0.33)
> 6. Edit
>    C:\Users\[username]\Apache\**apache-tomcat-7.0.33\conf\**
> tomcat-users.xml
>    a. Actually not necessary since Eclipse doesn't use the manager app
>    b. However, you may want to use the manager app outside of Eclipse
>    c. Make the contents of tomcat-users.xml like this:
>
> <tomcat-users>
>     <!-- roles -->
>     <role rolename="manager-gui"/>
>     <role rolename="manager-script"/>
>     <role rolename="manager-jmx"/>
>     <role rolename="manager-status"/>
>
>     <!-- users -->
>     <user name="manager"
>         password="password"
>         roles="manager-gui" />
>     <user name="mgr-script"
>         password="password"
>         roles="manager-script"/>
>     <user name="mgr-jmx"
>         password="password"
>         roles="manager-jmx"/>
>     <user name="mgr-status"
>         password="password"
>         roles="manager-status"/>
> </tomcat-users>
>
>    d. Note, I wrapped my lines so it would fit in email.
>    e. Choose better passwords
> 7. Verify that Tomcat runs
>    a. double-click on
>    C:\Users\[username]\Apache\**apache-tomcat-7.0.33\bin\**startup.bat
>    b. Browse to http://localhost:8080
>    c. See the Tomcat start page
>    d. double-click on
>    C:\Users\[username]\Apache\**apache-tomcat-7.0.33\bin\**shutdown.bat
> 8. Add server to Eclipse Juno
>    a. Start Eclipse
>    b. Open the Servers window (Windows->Show View->Others->Servers)
>    c. Right-mouse click in the Servers window
>    d. Choose New->Server
>    e. Follow the Wizard
>
> You now have Tomcat 7.0.33 running from within Eclipse Juno. The keys are:
>
> 1. Do not install as a service
> 2. Install in your own directory, otherwise you'll be fighting UAC
>
> . . . . just my two cents.
> /mde/
>
> (Beats packing and moving in the rain)
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<us...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 7 is not working on windows 7....

Posted by Mark Eggers <it...@yahoo.com>.
On 12/3/2012 2:28 AM, Konstantin Kolinko wrote:
> 2012/12/3 Mark Thomas <ma...@apache.org>:
>> On 03/12/2012 09:15, Jugal Thakkar wrote:
>>> Hello Sir,
>>>              I am Java Developer. i develop web application using servlet
>>> and JSP.
>>>
>>> My problem is that i am not able to get server started in eclipse
>>> Juno.....using Tomcat 7 with windows 7.....
>>>
>>> Please Guide me for the same....
>>> Installation Process of tomcat 7 on windows 7....
>>> I was previously using Windows XP and everything was fine....
>>> But with Windows 7 i am Having the problem....
>>>
>>> Please guide me regarding this....
>>
>> Two options:
>>
>> 1. Read this:
>> http://www.catb.org/esr/faqs/smart-questions.html
>> and follow the excellent advice it offers.
>>
>
> +1

+1

>
>> 2. Apply the following logic:
>> - It worked on Windows XP
>> - It doesn't work on Windows 7
>> - Therefore a bug in Windows 7 is the root cause
>> - Either:
>>    a) Report the problem to Microsoft and get them to fix it
>>    b) Uninstall Windows 7 and re-install Windows XP
>>
>
> There is also FAQ available, such as
> http://wiki.apache.org/tomcat/FAQ/Windows#Q8

First of all, it works for me (although I mostly use NetBeans and mostly 
use Linux).

1. Install the appropriate JRE
    a. 1.6.0_37 32 bit or 64 bit depending on your system
    b. 1.7.0_09 32 bit or 64 bit depending on your system
2. Download and install the J2EE version of Eclipse Juno
    a. It's a zip file
    b. Unpack it in C:\Users\[username]
       [username] is your user name - don't use the square brackets
       it will make it's own directory
    c. Make shortcuts on the desktop and the start menu
3. Make a directory in C:\Users\[username]
    a. [username] is your user name - don't use the square brackets
    b. Call that directory Apache
4. Download Tomcat
    a. get the latest version (7.0.33 as I write this)
    b. get the zip file
    c. get the 32 bit or 64 bit depending on your system
5. Unpack the zip file in C:\Users\[username]\Apache
    a. this is the directory you made in step 3
    b. it will create its own directory (apache-tomcat-7.0.33)
6. Edit
    C:\Users\[username]\Apache\apache-tomcat-7.0.33\conf\tomcat-users.xml
    a. Actually not necessary since Eclipse doesn't use the manager app
    b. However, you may want to use the manager app outside of Eclipse
    c. Make the contents of tomcat-users.xml like this:

<tomcat-users>
     <!-- roles -->
     <role rolename="manager-gui"/>
     <role rolename="manager-script"/>
     <role rolename="manager-jmx"/>
     <role rolename="manager-status"/>
	
     <!-- users -->
     <user name="manager"
         password="password"
         roles="manager-gui" />
     <user name="mgr-script"
         password="password"
         roles="manager-script"/>
     <user name="mgr-jmx"
         password="password"
         roles="manager-jmx"/>
     <user name="mgr-status"
         password="password"
         roles="manager-status"/>
</tomcat-users>

    d. Note, I wrapped my lines so it would fit in email.
    e. Choose better passwords
7. Verify that Tomcat runs
    a. double-click on
    C:\Users\[username]\Apache\apache-tomcat-7.0.33\bin\startup.bat
    b. Browse to http://localhost:8080
    c. See the Tomcat start page
    d. double-click on
    C:\Users\[username]\Apache\apache-tomcat-7.0.33\bin\shutdown.bat
8. Add server to Eclipse Juno
    a. Start Eclipse
    b. Open the Servers window (Windows->Show View->Others->Servers)
    c. Right-mouse click in the Servers window
    d. Choose New->Server
    e. Follow the Wizard

You now have Tomcat 7.0.33 running from within Eclipse Juno. The keys are:

1. Do not install as a service
2. Install in your own directory, otherwise you'll be fighting UAC

. . . . just my two cents.
/mde/

(Beats packing and moving in the rain)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 7 is not working on windows 7....

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/12/3 Mark Thomas <ma...@apache.org>:
> On 03/12/2012 09:15, Jugal Thakkar wrote:
>> Hello Sir,
>>             I am Java Developer. i develop web application using servlet
>> and JSP.
>>
>> My problem is that i am not able to get server started in eclipse
>> Juno.....using Tomcat 7 with windows 7.....
>>
>> Please Guide me for the same....
>> Installation Process of tomcat 7 on windows 7....
>> I was previously using Windows XP and everything was fine....
>> But with Windows 7 i am Having the problem....
>>
>> Please guide me regarding this....
>
> Two options:
>
> 1. Read this:
> http://www.catb.org/esr/faqs/smart-questions.html
> and follow the excellent advice it offers.
>

+1

> 2. Apply the following logic:
> - It worked on Windows XP
> - It doesn't work on Windows 7
> - Therefore a bug in Windows 7 is the root cause
> - Either:
>   a) Report the problem to Microsoft and get them to fix it
>   b) Uninstall Windows 7 and re-install Windows XP
>

There is also FAQ available, such as
http://wiki.apache.org/tomcat/FAQ/Windows#Q8

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 7 is not working on windows 7....

Posted by Mark Thomas <ma...@apache.org>.
On 03/12/2012 09:15, Jugal Thakkar wrote:
> Hello Sir,
>             I am Java Developer. i develop web application using servlet
> and JSP.
> 
> My problem is that i am not able to get server started in eclipse
> Juno.....using Tomcat 7 with windows 7.....
> 
> Please Guide me for the same....
> Installation Process of tomcat 7 on windows 7....
> I was previously using Windows XP and everything was fine....
> But with Windows 7 i am Having the problem....
> 
> Please guide me regarding this....

Two options:

1. Read this:
http://www.catb.org/esr/faqs/smart-questions.html
and follow the excellent advice it offers.


2. Apply the following logic:
- It worked on Windows XP
- It doesn't work on Windows 7
- Therefore a bug in Windows 7 is the root cause
- Either:
  a) Report the problem to Microsoft and get them to fix it
  b) Uninstall Windows 7 and re-install Windows XP

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org