Tomcat admin link fails to resolve

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

Re: Tomcat admin link fails to resolve

Postby Pat Fleming » 18. April 2012 17:56

Thanks again, hackattack.

The Tomcat examples link 'http://127.0.0.1:8080/examples' from page 'http://127.0.0.1:8080/xampp/' also seems to resolve incorrectly because its served by tomcat on port 8090. If I manually change the URL to 'http://127.0.0.1:8090/examples', it works fine. What do I change so that it resolves properly without any manual intervention?

Thanks again
Pat
Pat Fleming
 
Posts: 10
Joined: 22. March 2012 10:54
Operating System: Windows XP

Re: Tomcat admin link fails to resolve

Postby hackattack142 » 18. April 2012 23:51

I have an idea but would need to test it first. Before messing with multiple configuration files, would it be a better solution to change Tomcat back to 8080 and run Apache on port 8090 (or whatever) to avoid having to deal with these issues?
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Tomcat admin link fails to resolve

Postby Pat Fleming » 19. April 2012 16:01

Thanks again for your help, hackattack

I made the change you suggested to java.php and it's now correct and works fine.

The page 'http://127.0.0.1:8080/xampp/' is fine but the tomcat examples link 'http://127.0.0.1:8080/examples' on it fails to resolve. If I change the port on the URL in the browser, it does resolve to 'http://127.0.0.1:8090/examples' so I guess its served by Tomcat, not Apache. To make this link correct from 'http://127.0.0.1:8080/xampp/', does it require a change to another php file? If so, which one?

Thanks
Pat
Pat Fleming
 
Posts: 10
Joined: 22. March 2012 10:54
Operating System: Windows XP

Re: Tomcat admin link fails to resolve

Postby Pat Fleming » 19. April 2012 16:10

sorry, I'd posted the issue again before I'd seen your reply.

Is there an assumption, and a fairly reasonable one at that, in tomcat config that it's running on 8080? Are you saying it's easier to configure with that assumption in mind rather than changing tomcat config to have it run on another port, 8090 for instance?

Thanks
Pat
Pat Fleming
 
Posts: 10
Joined: 22. March 2012 10:54
Operating System: Windows XP

Re: Tomcat admin link fails to resolve

Postby hackattack142 » 19. April 2012 22:24

I am not an expert with Apache or Tomcat. My point with only changing one was, instead of going through the work of changing the ports of two servers then editing a bunch of other configuration files and webpages to accommodate those changes, it might have been easier to just change Apache and leave Tomcat with 8080.

The required changes to get that link you want to work does not appear to be a simple edit in one of the webpages. How that link works is that it is an Apache proxy (/xampp/apache/conf/extra/httpd-ajp.conf) that redirects to an AJP connection with Tomcat (Port 8009 by default). Tomcat has two connectors configured by default. There is an HTTP connector that listens on 8080 by default and an AJP connector that listens on 8009 by default. I am not familiar with the AJP protocol so I cannot speak to what it is doing behind the scenes. You may be able to modify the Proxy entry and Tomcat's configuration to something like this: http://tomcat.apache.org/tomcat-7.0-doc ... howto.html I have not tried it so I cannot speak to if that will work for you.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 115 guests