• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse with Jboss

 
Pat Norm
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pat Norm
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, then this is possible what I want to do?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Pat Norm
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pat Norm
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just notice that there are no environment variables. Would that make a difference?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic