File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Getting error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Getting error "Oops! This link appears to be broken."" Watch "Getting error "Oops! This link appears to be broken."" New topic
Author

Getting error "Oops! This link appears to be broken."

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Hello,

I've created a web project "MyFirstServlet" in NetBeans 6.9.1
The program compiles fine, but when I run it, I get "Oops! This link appears to be broken" in the browser.

This is the structure :-
MyFirstServlet -Web Pages -- WEB-INF---web.xml
--index.jsp (this file is inside Web Pages but outside WEB-INF)

-Source Packages --servlet---WelcomeServlet.java

my web.xml is :-

index.jsp :-

WelcomeServlet.java :-



I'm using GlassFish v3 as the web server.

Please advise.

Thanks a lot.






Thanks,
Pramod
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

Hi pramod talekar,

Please UseCodeTags when posting code in the forums. You can edit your post and add the code tags. And you need to TellTheDetails, what the resource you were trying to access and what is already rendered etc... ?

SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
You should be able to get more useful information out of your browser by turning off "Friendly HTTP error messages" - in MS explorer the checkbox is under the Internet Options dialog - Advanced -> Browsing

The location of "source packages" is not important - where are the compiled class files located for this web app?

Bill
(I really don't think people should use any IDE when starting servlets, they just add complication. When you have a firm idea of where things go, then maybe.)


Java Resources at www.wbrogden.com
pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Hi William,

I had used Eclipse and Tomcat few days ago, but didn't face any problem that time.
where are the compiled class files located for this web app?

If I'm using Netbeans and GlassFish this time, then is there any additional setup I need to do ?
I remember there was nothing I had to do in addition to the standard procedure for Eclipse + Tomcat.
For this app, how to declare the location of the class files in Netbeans/Glassfish ?

Also, I got few problems for Eclipse during running of the program but these were simple mistakes like wrong url pattern/welcome file name for which I used to get 404 page not found error.
But this error "Link appears to be broken" is more puzzling...
I thought Netbeans/Gsfsh would locate it automatically..

Please advise.

Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Moved to the IDEs forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

If I'm using Netbeans and GlassFish this time, then is there any additional setup I need to do ?...

It depends on how you do it... Easiest thing would be to check what is inside the deployed application in the web container (whether it has .class files in <context>/WEB-INF/classes/ etc...). Check the structure of the application once deployed, you may post it here....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error "Oops! This link appears to be broken."
 
Similar Threads
ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java
Hello world ejb3 problem
Problem with JSPs in web application
i cant run my program
user authentication and dao