tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: Tomcat 7 is not working on windows 7....
Date Mon, 03 Dec 2012 15:51:03 GMT
On 12/3/2012 2:28 AM, Konstantin Kolinko wrote:
> 2012/12/3 Mark Thomas <markt@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


Mime
View raw message