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...
How can we help? You've provided almost no information.
Joined: Feb 18, 2008
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"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
I do not know what else to do.I hope I've configured JBoss well...
I hope I have been much clear this time...
How are you deploying it? How are you accessing it (in other words, what URL)? What's your application's context?
Joined: Feb 18, 2008
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
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
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?)
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.
Joined: May 07, 2008
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.
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.