• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.





 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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... ?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the IDEs forum.
 
Vijitha Kumara
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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....
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic