GeeCON Prague 2014*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse with Jboss 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 "Eclipse with Jboss" Watch "Eclipse with Jboss" New topic
Author

Eclipse with Jboss

Pat Norm
Greenhorn

Joined: Dec 12, 2012
Posts: 6
Hello, Sorry but this may have been asked previously but I couldn't find any information.
I am kinda new to running eclipse and need some help. I want to run jboss to test my java servelet. I have made some changes but don't know how to invoke the debugger with Jboss and I am not sure if I need to download tomcat to get jboss and eclipse working. I have a program that takes in a url and displays back some information. Normally, it runs on a server with JBoss and tomcat. I don't have access to the server as I really want to test it locally.

Does any one have a step by step guide for configuring eclipse to run locally with Jboss? And should I install tomcat? How do I invoke the url to servelet connection in eclipse? Do I call it through my browser?

Any information would be appreciated. I am not sure of what other information to provide.

Thank you.
p2c2n
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39044
    
  23
Welcome to the Ranch

I don’t know, sorry. You can try Googling and you might find this.
I shall move this discussion; it is too difficult for “beginning”.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1084
    
  10

Hi,
You can install JBoss Tools which is a set of plugins for Eclipse which makes it easy to start/stop/debug JBoss from within Eclipse.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Pat Norm
Greenhorn

Joined: Dec 12, 2012
Posts: 6
Thank you for the information. What I am wondering is if I am running a server app that does a call to Jboss can I redirect it to my local so I can pick up the call in eclipse or intercept the url and plug that into eclipse to run the url local within eclipse to get the results?

Sorry if this is not clear.
Pat Norm
Greenhorn

Joined: Dec 12, 2012
Posts: 6
So, then this is possible what I want to do?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10141
    
165

Pat Norm wrote:Thank you for the information. What I am wondering is if I am running a server app that does a call to Jboss can I redirect it to my local so I can pick up the call in eclipse or intercept the url and plug that into eclipse to run the url local within eclipse to get the results?



Sorry I don't really understand what the question is. Could you please rephrase it please?

[My Blog] [JavaRanch Journal]
Pat Norm
Greenhorn

Joined: Dec 12, 2012
Posts: 6
Ok, So, I have an application I developed in eclipse web app; which I inherited supporting. I want to sandbox test the application in eclipse that is invoked by URL. The application runs on a JBoss server. My question is: I have the url string; can I test the eclipse application on my local machine?
IF so, How do I set up? I can get jboss installed but am missing were to put the URL string and how to invoke the app from the server in eclipse.

Thank you for your response.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5835
    
    7

If I understand you correctly, you installed JBoss AS on your PC and you want to test your web application using that local copy of JBoss AS. And you want to do that within Eclipse.

If that is what you want to do, then do this:

1) In Eclipse, create a new server (File | New | Server | Server) and identify that you want a JBoss AS server.

2) Eclipse will ask you where JBoss AS is installed, browse to that location

3) Eclipse will then ask if you want to synchronize(? not sure of the term it uses here) any applications with JBoss AS. It will list the applications, choose yours.

4) Now you should be able to right-click the web app project and select Run as Web App (or something like that)

5) Once JBoss AS is running and your app deployed (might take a minute or two, depending on your app; Eclipse shows the console output so you should be able to tell when it is done), you can access your app by opening a browser and entering the URL http://localhost:8080/xxx where xxx is your app's name/context

You might also consider installing the JBoss Tools addons to Eclipse. They make it easier to work with JBoss AS. And the JBoss Tools documentation has tutorials that will help you get started (even detailed instructions for doing the steps I indicated above)
JBoss Tools home page: http://www.jboss.org/tools

JBoss In Action
Pat Norm
Greenhorn

Joined: Dec 12, 2012
Posts: 6
Ok, This is really cool and very close. Jet is on final approach....

I followed the steps. I have a server running. I can call the dev app on the network server and render back and image from the browser inside eclipse.....wow.

However, I get errors when I tied my app to the runtime server in eclipse. I get the localhost:8080/{appName} but not the jboss destop or anything else. Below in the browser window; I get the message: this program can not display webpage.

Any advice would be appreciated.
Pat Norm
Greenhorn

Joined: Dec 12, 2012
Posts: 6
I just notice that there are no environment variables. Would that make a difference?
 
GeeCON Prague 2014
 
subject: Eclipse with Jboss