Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What needs to be done to add a project to a Websphere Server in Eclipse juno?

I have installed the "WebSphere Application Server Developer Tools for Eclipse V8.5.1" as well as "WebSphere Application Server for Developers V8.5" from here: https://www.ibm.com/developerworks/mydeveloperworks/blogs/wasdev/entry/download?lang=en.

I am using Eclipse Juno.

I used the First Steps tool to create a profile for application development.

I added a "WebSphere Application Server v8.5" server to the Server view, pointing it at that profile.

When I right click on the Server in the Servers View and select "Add and Remove..." I get a dialog saying "There are no resources that can be added or removed from the server."

I CAN add my project to a Tomcat server or a "WebSphere Application Server V8.5 Liberty Profile" (I need to use the "real" WebSphere for a host of reasons beyond the scope of this question - Liberty isn't good enough).

What am I missing to get it to let me add my project to the server?

like image 668
Jared Avatar asked Dec 11 '12 20:12

Jared


People also ask

What is the use of plugin in WebSphere Application Server?

The plug-in configuration file, which the WebSphere Application Server products create and maintain, interacts with the binary module to provide information about the application server configuration to the web server. The web server uses the information to determine how to communicate with the application server.


1 Answers

I use IBM RSA/RDi/Rational Developer for i (which is built off of Eclipse, and has changed names many times) with WAS 8.0 so not sure if this will apply directly to your situation but what you've written sounds very similar to the trouble I've had in the past...

We setup a "parent" sort of project that contains the EAR that will deploy to WAS and then we have a corresponding "web" application that contains the WAR.

In the parent project, under properties -> deployment assembly, add your "web" project. Also check off your "web" project under Project References.

Hopefully this will cause your app to be deployable to WAS...

Edit I
This is how I created my EAR "parent" project using IBM RSA (which is built off of Eclipse - you may have to adjust some of these settings to apply to your version of Eclipse)
1. Go to File -> New -> Project... and choose Java EE -> Enterprise Application Project
2. Put in an appropriate project name and choose your WebSphere App Server as your target runtime
3. I get prompted with a list of Java EE module dependencies and I choose the web app that will be packaged in the ear; I also choose to "Generate application.xml deployment descriptor"

I'm then able to add the ear to my WAS server.

like image 149
Zack Macomber Avatar answered Sep 30 '22 22:09

Zack Macomber