Not sure....

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Not sure....

Postby Vansers » 16. May 2011 23:55

Hey guys,

When I have problems with my xampp. I'm not sure if Tomcat is not working because I have a web application that requires Tomcat.

When I load up my web app, it shows the indexing which means, something isn't right.


Could tomcat not be working?


Thanks! :D
Vansers
 
Posts: 9
Joined: 16. May 2011 18:28
Operating System: Windows 8 - 64bit

Re: Not sure....

Postby Vansers » 17. May 2011 00:05

This might help....... I went to the main webpage of xmapp and I clicked on tomcat and it seems it's down......

Code: Select all
Service unavailable!

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

If you think this is a server error, please contact the webmaster.
Error 503
localhost
5/16/2011 5:02:10 PM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1


I'm guessing it's not installed right and almost forgot. I'm running .....

Windows (1.7.5-beta2):

MySQL (5.5.11)
PHP (5.3.6)
phpMyAdmin (3.3.10)
Vansers
 
Posts: 9
Joined: 16. May 2011 18:28
Operating System: Windows 8 - 64bit

Re: Not sure....

Postby Sharley » 17. May 2011 00:12

Download the XAMPP Control Panel version 3 from here and try again to start Tomcat and remember that Apache and MySQL should also be running before starting Tomcat:
viewtopic.php?f=16&t=46743
This new panel will allow you to force a stop and start if there are issues.

You can also check in the Windows Task Manager to see if tomcat is a running process.

Reminder that all beta versions of XAMPP are best supported from the web form on the XAMPP beta web page so the developers can see and address any issues, not here as they often do not read this English forum.
Last edited by Sharley on 17. May 2011 00:15, edited 1 time in total.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Not sure....

Postby Vansers » 17. May 2011 00:13

Thank you Sharley.

I'll will be giving that a run. Will return results soon. :)
Vansers
 
Posts: 9
Joined: 16. May 2011 18:28
Operating System: Windows 8 - 64bit

Re: Not sure....

Postby Vansers » 17. May 2011 00:30

Ok, Install went okay,

But When I click on Start Tomcat while when Apache & MySQL is running, It still says...

5:29:42 PM [tomecat] Starting tomcat app....


It's still like that. and no green light comes up on tomcat. What's the next step?
Vansers
 
Posts: 9
Joined: 16. May 2011 18:28
Operating System: Windows 8 - 64bit

Re: Not sure....

Postby Sharley » 17. May 2011 00:36

Did you give it time to start the java executable, can take up to 30 seconds depending on your system?

Can you see a Force start when you click on the stop/start button?

Does it show green Tomcat in the panel?

Have you checked the Windows Task Manager?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Not sure....

Postby Vansers » 17. May 2011 00:40

Sharley wrote:Did you give it time to start the java executable, can take up to 30 seconds depending on your system?

Can you see a Force start when you click on the stop/start button?

Does it show green Tomcat in the panel?

Have you checked the Windows Task Manager?


1) Yeah I did give it time to start the java executable

2) No I can only see force stop button.

3) No, No Green

4) I checked the Task Manager, and I don't see anything about tomcat.
Vansers
 
Posts: 9
Joined: 16. May 2011 18:28
Operating System: Windows 8 - 64bit

Re: Not sure....

Postby Sharley » 17. May 2011 00:43

Did you download and install the Java JDK from a link in this post:
viewtopic.php?p=179959#p179959
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Not sure....

Postby Vansers » 17. May 2011 01:35

Umm, I think I didn't....

____________________________________


Ok, I have installed it. And it works! Thanks! And one more thing....

But if you may know about Tomcat. I can't log into the manager.......

I used the right log in info and when I log in, The login form refreshes.

Here's my tomcat-users.xml file....

Code: Select all
<tomcat-users><role rolename="manager"/><role rolename="tomcat"/><role rolename="role1"/><user username="both" password="tomcat" roles="tomcat,role1"/><user username="tomcat" password="tomcat" roles="tomcat"/><user username="test" password="test" roles="manager"/><user username="role1" password="tomcat" roles="role1"/></tomcat-users>
Vansers
 
Posts: 9
Joined: 16. May 2011 18:28
Operating System: Windows 8 - 64bit

Re: Not sure....

Postby Sharley » 17. May 2011 02:01

Often you have to add the admin role also.

Here is what I have
Code: Select all
<tomcat-users>
<!--
  NOTE:  By default, no user is included in the "manager-gui" role required
  to operate the "/manager/html" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
-->
<!--
  NOTE:  The sample user and role entries below are wrapped in a comment
  and thus are ignored when reading this file. Do not forget to remove
  <!.. ..> that surrounds them.
-->
  <role rolename="admin"/>
  <role rolename="manager"/>
  <user username="xampp" password="xampp" roles="admin,manager"/>

</tomcat-users>
You can retain the others in your file if you wish.

Restart Tomcat after editing.

Here is another approach minus the junk and with all the roles using different passwords to my example
Code: Select all
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="admin" password="secret" roles="manager,admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>

I found a more up to date role reference for Tomcat 7 but as yet I have not tried it, so perhaps if you have the time you could test these Tomcat7 roles and provide feedback here, thanks:
http://blog.techstacks.com/2010/07/new- ... erful.html

Good luck.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 38 guests