• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

This program cannot display the webpage

 
Greenhorn
Posts: 25
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Eclipse and JBoss.I've configured JBoss within Eclipse and i created a simple jsp page to test if it's configured well, but I keep getting this message..This program cannot display the webpage.I can't figure iti out.Please help...
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can we help? You've provided almost no information.
 
Ionut Barau
Greenhorn
Posts: 25
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed eclipse galileo and JBoss v5.0.To configure JBoss for eclipse I've done the following in eclipse:Window>Show View>Servers>then i've created a new server right clicking on the servers view , selecting new server(JBoss v5.0, port number-8080, server configuration-default).I've tried to run a jsp page but i got this error-This program cannot display the webpage.The jsp page looks like this:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Server ready</title>
</head>
<body>
<h1>Server ready</h1>
</body>
</html>
I do not know what else to do.I hope I've configured JBoss well...
I hope I have been much clear this time...
 
Sheriff
Posts: 67746
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
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
Ionut Barau
Greenhorn
Posts: 25
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry:).Can somebody help me with this issue?
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
PatienceIsAVirtue.

How are you deploying it? How are you accessing it (in other words, what URL)? What's your application's context?
 
Ionut Barau
Greenhorn
Posts: 25
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not use ant as a deploy tool.I just right-click on the resource an run on server.As far as I know eclipse has a build in tool that can show you how the page is looking before deploying.In the adress bar it is http://localhost:8080/Gigi/jsp.jsp.Gigi is the name of the project and the context root(correct me if i am wrong).I've looked in the deploy folder of JBoss and there is Gigi.war there.It seems strange...With tomcat i do not remeber to have those kind of problems
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a bug in eclipse.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257823

Use a build tool and start the server from the install folder, not from within eclipse.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you install JBoss Tools into Eclipse? Did you try following the JBoss Tools tutorials? They should get you started. Briefly, the steps are:

1) Create a server (for Jboss AS)
2) Create a Dynamic Web Project and associate it with the server defined in step 1
3) Write your HTLM/JSPs/servlets
4) Start the server
5) Right-click on a JSP or HTML and select Run As | Run On Server
 
Nick Potter
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This doesn't work with Eclipse Ganymede (and seems Galileo didn't fix this either) and JBoss 5. You are not able to start the server from within eclipse, it will just hang in there and eventually will throw an error saying that you need to increase the startup time, or something like this, but even if you increase it a lot, like for 200 s, it will still not do anything. There's a bug open about this. The war file is still deployed though, so you can see the page if you start the server from the install folder, provided the jboss AS is installed correctly (is the JBOSS_HOME set and the path to jboss in the Path environment variable?)

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What doesn't work? The steps I outlined? I have done them using Eclipse 3.4.x and 3.5 with JBoss Tools installed, using JBoss AS 5.0.x and 5.1.0 and they work for me. Of course, if you change the JNDI port for JBoss AS then Eclipse will not know whether JBoss AS started until you tell Eclipse which port to use.
 
Nick Potter
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What JBoss Tools do you have installed in order for it to work? I have the web tools and the portal tools. I didn't change the JNDI port. The setup works with JBoss 4.
In eclipse console I've got this:
[ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)] Started in 31s:125ms

But the browser doesn't load inside eclipse and eventually says: Server JBoss v5.0 at localhost was unable to start within 200 seconds. If the server requires more time, try increasing the timeout in the server editor. And then it sops the server. Originally is set to 50 s, so increasing the timeout doesn't solve the problem.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What JBoss Tools do you have installed



Usually, everything except the BIRT-related tools (that one always complains about a missing dependency and since I don't use BIRT I simply unselect it). But for one specific project I installed only Hibernate, Portlet and JBossAS tools.

Server JBoss v5.0 at localhost was unable to start within 200 seconds.



Usually, this error shows up under one of two possible conditions. First, the ports JBoss AS uses were changed. Second, the JMX server was secured. Either one will prevent Eclipse from accessing the MBean that I needs to verify that the app server is running. You'll have to solve this problem first before Eclipse will let you run your web app on an app server.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic