aspose file tools*
The moose likes Tomcat and the fly likes Tomcat broken link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat broken link" Watch "Tomcat broken link" New topic
Author

Tomcat broken link

jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
Hi everyone,

I'm trying to run a pre-packaged jsp website. After running the build script and clicking on the newly deployed web application link in the manager application. I'm presented with a "broken link" error by my browser. This isn't the tomcat 404 error.

I'm very new to tomcat and was wondering what the problem could be and how to troubleshoot this.

Relevant tomcat log entries:

This is the only log entry when I deployed and tried to access the webapp

Any help would be greatly appreciated!
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

If it isn't the Tomcat error then it sounds like maybe Tomcat isn't even receiving the request. Check your server.xml file to see what ports Tomcat is listening on and make sure your request is on one of them.
jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
I think I have the right port:

Server.xml:


I can access the manager app using <hostname>:8080 just fine too, maybe Tomcat isn't receiving the request in a different way.

Thanks!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
I'm presented with a "broken link" error by my browser. This isn't the tomcat 404 error.


Be aware that if you have the misfortune to be using MSIE, it may be generating "friendly" error messages which conceal the error code.

Internet options -> advanced -> scroll down to the Show friendly HTTP error message check box and leave it unchecked.

Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Or use a real browser.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
I turned off "Use a web service to help resolve navigation errors" in Chrome, but that doesn't work either, I get a blank page. If I mistype the URL ("begin.doz") I get the tomcat 404 page, is there a file where I can examine the targets of "begin.do"?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

If you are using Chrome there are extensive debugging tools built into it. Use those to find out what's going on.
jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
It doesn't work with Safari either, and accessing the URL with curl gives me an empty document. This looks like a Tomcat "routing" error
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Actually, if your URLs are ending with ".do", chances are very good that the webapp is Struts-based and not simple JSPs.

However, you never did actually show what the URL that you're clicking on looks like. If the URL isn't targeting what you think it is, all other suggestions are pretty much moot.


Customer surveys are for companies who didn't pay proper attention to begin with.
jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
I'm not sure where to find that, I can't find struts.xml anywhere. Struts-config.xml has this though:


The error that was causing the blank page was a problem with the java I fixed. Now I get a 503 error though. When I intentionally mistype the URL after the "localhost:8080/webapp/" I get the same error.

Anyone have an idea on what is causing this?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
When I intentionally mistype the URL after the "localhost:8080/webapp/" I get the same error.


Exactly where is this error message displayed? Did Tomcat do a redirect to an error page - in which case the URL would change.


Bill
jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
Hi,

No, it was a plain old browser 503 page.

The error was in the underlying java program again. It's solved now, but thank you for your input everybody! Everything has been much appreciated!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat broken link