mercredi 5 août 2015

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: enter image description here

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: enter image description here

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:

  1. How would I really know that the project is a java webservice?
  2. 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

Aucun commentaire:

Enregistrer un commentaire