Setting up JBoss v5.0 in Eclipse - eclipse

I'm trying to do a few JMS tutorials. Many of them seem to use the server I've mentioned in the title. It's found in the JBoss folder in the "Define a New Server" window. For example, the tutorial here:
http://aalaapa.com/img/eclipsejbossserver5.JPG
Problem is, in the "Define a New Server" window, the only folders I have to choose from are Apache, Basic, JBoss Community and JBoss Enterprise Middleware. Is there some addition plugin I need?
Oh, I'm using Eclipse.
Thanks

If you click on "Download additional server adapters", you should have a dialog where you can install an appropriate server connector (in your case it would be the "JbossAS Tools").
However i would strongly recommend to use JBoss 7, since that version is a full certified EE6 compliant application server
Edit: If you have the menu point "JBoss Community" then is is very likely that the JBoss Tools are already installed. So just take one of that connectors (3.2 to 7.1 should be included) and you should be fine.

Related

How do I deploy to Websphere developer server 8.5 via Eclipse Mars?

How does one deploy a web app from Eclipse Mars to a local install of IBM Websphere Application Server Developer 8.5 ?
I installed the app server from IBM's Installation Manager, upon completion it says its location is:
C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv01
I tested the app itself using the "First Steps" window which popped up after install, and it looks like it is running fine.
Now, I want to test creating a simple hello world web application in Eclipse Mars, and be able to deploy it to this installed Websphere instance and be able to debug (stop at breakpoints). However, I can't seem to figure this part out.
When I go to my Servers tab in Eclipse and attempt to add a Websphere server, I didn't have any options. So I started downloading some IBM Websphere Developer Tools that I could find. I managed to now have these options for adding server:
"WebSphere Application Server Liberty"
"WebSphere Application Server traditional V8.5"
I tried using both, but they don't seem to be compatible with my installed version of WebSphere, because I keep getting the error of "The WebSphere Application Server traditional installation directory is not correct." when I try to plug in the Installation directory.
I suspect I should have a separate option for
"WebSphere Application Server developer V8.5"
or such, however no matter what I search for online, in the Eclipse marketplace, in the Eclipse sites, I can't find anything to install that gives me that option.
You have to use "WebSphere Application Server traditional V8.5" and point it to the installation root not the profile root - so to C:\Program Files (x86)\IBM\WebSphere\AppServer in your case.
For the future, it is not recommended to install WebSphere in the Program Files (x86) folder, I'd suggest something simpler like c:\IBM.
I used the below link Eclipse Mars WAS Plugin . Not sure it still works. For Oxygen working version use Eclipse Oxygen WAS Plugin

How to run/debug java web service project in eclipse

I have a Java Web Service project which was just handed over to me by a colleague who just resigned (no one is assisting me in my new company). Im new to Java (J2EE) and my background is .Net + frontend + azure so I am pretty much very confused with setting up and running the java project. Also, Since my background is .Net Im referencing everything with how things work in Visual Studio from running a project, setting up a project to setting up and debugging a WCF project which I realized now is very different from eclipse + java.
I would really appreciate if someone could explain to me how I can run this project which is supposedly a java web service (as I was told)?
First I have a project that is like this:
Im assuming that the project boxed as blue is the webservice (and the rest are just libraries)? Is this correct? if so how do I run and debug the project using eclipse
Second when I click on debug as -> debug on server this is all I see:
Another colleague told me to install JBOSS (I haven't installed a server in eclipse) because that is what they used. Is there good documentation (step-by-step guide) on how to install JBOSS to run in eclipse. Im assuming that JBOSS + eclipse is like IIS express + Visual studio. Are there also other alternatives to JBOSS + eclipse like perhaps tomcat + ecplise that I can configure.
I really really find it hard to setup the java web service project in eclipse I have little to no prior experience with java j2ee programming especially with web services so any clarifications with my questions would be much appreciated. To sum up:
How would I really know that the project is a java webservice?
If so, how do I run the project and host the project using debugging in eclipse with tomcat or jboss?
I would appreciate if anyone can point me to the right direction of figuring out the source code
From here we can only guide you, you will have to go through some tutorials to understand how java projects work.
Your project is a webservice project according to your web.xml file because its having context params for rest.
the context param sets a front url to your webservice which in this case is gametime.
Check these tutorials and you will understand how it works
http://www.mkyong.com/tutorials/jax-rs-tutorials/
Create simple examples given in the above tutorial and then you can execute your's program
Jboss is a application server which we use to run our app.
You can install jboss in eclipse or you can use it externally also.
To install eclipse and jboss you can follow the link
http://theopentutorials.com/tutorials/java-ee/installing-jboss-tools-in-eclipse/
The other option is to download eclipse and jboss seperately
and use them.
Go to jbosshome/bin
If you download both of them seperately
then in that case for jboss
Invoke the add-user.sh or add-user.bat script. ...
Choose to add a Management user. ...
Choose the realm for the user. ...
Enter the desired username and password. ...
Choose whether the user represents a remote JBoss Enterprise Application Platform 6 server instance. ...
Enter additional users. ...
Create users non-interactively.
After this go to eclipse and follow steps of below link to add jboss to eclipse
http://www.mastertheboss.com/eclipse/jboss-eclipse/jboss-and-eclipse
A Java web application among other things has a predefined directory structure including folders named WEB-INF, WEB-CONTENT etc.
On how to deploy a web application to Tomcat via Eclipse you can follow the steps in this tutorial.

Where can wsconsume of JBossWS be found after installing JBoss on Eclipse

I have installed JBoss on Eclipse from Eclipse marketplace. The following snapshot shows the result of the installation:
There is not a wizard for wsconsume. As my understanding, it is a command line tool only. Where can I find wsconsume?
Actually I am only interested in using wsconsume. All the installations are solely for this purpose.
I guess you have installed JBoss Tools for Eclipse. As its name suggests it's only tooling around JBoss related technologies (with JBoss Application Server being one of the most important among them).
JBossWS and its wsconsume companion tool is distributed with JBoss Application Server (JBossAS for short) which is separate standalone product. Please download it from JBoss download site. Current community version is 7.1.1.
Next, unzip archive to some folder (I'll refer to it as JBOSS_HOME from now on).
Wsconsume tool is placed in JBOSS_HOME/bin folder as scripts for Windows and Unix/Linux systems: wsconsume.bat and wsconsume.sh respectively.
As an alternative you could download only JBossWS itself instead of entire JBossAS, but for some reasons I find it easier the way I described above.
I don't know if JBoss Tools for Eclipse helps with wsconsume in any manner. I always use it from command line and I'm quite satisfied with it.
(I don't know your current experience with JBoss technologies so please excuse me if my explanations are too basic.)

Integrating JBOSS and Eclipse

I have JBOSS server. I used to make web applications using just notepad++. I used to create the necessary folders like web-inf and files like web.xml. For larger projects doing all this and manually compiling has become cumbersome. I want to use eclipse for that. I saw this tutorial - http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html . But I don't understand how to make a server. I already have a server. What I want to do is write JSPs and Servlets in eclipse and the build should automatically be deployed in jboss server.
How to to this?
Install JBoss Tools
After that follow the instructions from here to get started and deploy apps to JBoss Server.
To automatically deploy apps after the build you could use a build tool such as ANT or Maven.
I wrote a tutorial for this some time ago: Setting up web development environments with Eclipse
It shows how to setup JBoss within Eclipse (in addition, it also shows how to setup Tomcat and Weblogic), and also shows how to build a simple sample Servlet to verify the proper installation.
If you already use JBoss on the server side, then have a look at the client side as well: http://www.jboss.org/developer
(I haven't tried it myself, but...)
Just open eclipse then go to:
"Help-> Check For Updates" It will check for eclipse updates and installs new availables.
Now "Help -> Eclipse Market Place" Search for "Jboss tools" from search result select one(as your eclipse version) and install it. It will add adapter for new jboss versions.
Now add new server from server view select Jboss version then next add your Home directory of jboss. Then finish.
Step 1 is optional but it sometime it helps.

I am downloading Eclipse. But what else do I need to develop Java EE applications?

I am downloading this version of Eclipse. I want to know what else I should download and install before I can start working on Java EE applications.
Previously I used to work with NetBeans. Back then, I used to install these:
JRE
JDK
NetBeans
Tomcat
Then I could develop Java EE applications.
Is the same set of steps required when I download that Eclipse too? Or do some of the things come bundled with it? Please help me out with setting up the development environment.
Eclipse doesn't bundle JRE/JDK or app servers. Make sure you download "Eclipse IDE for Java EE Developers" package (as others will not have the plugins you need). You will need to download JDK and Tomcat separately. Note that there is no need to also download a JRE as JDK install has a JRE in it.
Note that Eclipse does have en embedded Jetty server that can be used for previewing your app without a separate app server, but most non-trivial apps still require downloading and installing the specific app server you intend to deploy in production on.
Take a look at the official website:
http://www.oracle.com/technetwork/indexes/downloads/index.html
I had installed my enviroment from these website and work properly, the server is up and running.
Tomcat is a software implementation, you need to install it separately. Take a look at the official tomcat's website at: http://tomcat.apache.org/
If you're working on a web site, my suggestions would be:
JRE/JDK, Apache Tomcat Application Server, Freemarker templating language (for page-building), Apache Web Server (for proxying, rewriting, mod_jk to load balance tomcat worker(s)), Varnish or Squid Cache, MySQL (to host UGC data (user generated content), and some kind of open source CMS system (Drupal or others) to host data that's web site editor created.