aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes This program cannot display the webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "This program cannot display the webpage" Watch "This program cannot display the webpage" New topic
Author

This program cannot display the webpage

Ionut Barau
Greenhorn

Joined: Feb 18, 2008
Posts: 20
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...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

How can we help? You've provided almost no information.
Ionut Barau
Greenhorn

Joined: Feb 18, 2008
Posts: 20
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...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61209
    
  66

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ionut Barau
Greenhorn

Joined: Feb 18, 2008
Posts: 20
Sorry.Can somebody help me with this issue?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Feb 18, 2008
Posts: 20
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
Nick Potter
Ranch Hand

Joined: May 07, 2008
Posts: 126
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.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

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

JBoss In Action
Nick Potter
Ranch Hand

Joined: May 07, 2008
Posts: 126
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
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

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

Joined: May 07, 2008
Posts: 126
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
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: This program cannot display the webpage