Eclipse: How to deploy ear project into separate managed server in Weblogic (non AdminConsole) - eclipse

I'm using Eclipse for J2EE project development. Target app server is Weblogic10R3.
I was successfully deployed my ear project to weblogic via Run As.. Eclipse feature.
By default it deploys to AdminConsole server. Because of project specific issues I have to deploy into separate managed server (not Admin Console).
Am I able to override deploy behavior? I didn't find required settings inside server plugin.

Deploying to a managed server is supported as long as you have configured the server connection as remote vs local. You can do this even if your "remote" server is localhost. If you aren't sure, you probably need to create a new instance in the Servers View. The local vs. remote option is set in the new server wizard.
Once you have a remote server defined, double-click on the instance in the Servers View and you will see an editor open with various options, including those related to publishing.

Related

Packaged Server option not available in Eclipse with Bluemix and Liberty plugin

I'm trying to customize the Liberty setup, following the instructions from this post:
"Custom Liberty server.xml configurations in IBM Bluemix", see:
https://www.ibm.com/blogs/bluemix/2015/01/modify-liberty-server-xml-configurations-ibm-bluemix/
In order to modify the Liberty server features, I'd like to replace the automatic generation of the configuration file by a customized server configuration, which according to the instructions is called "Liberty packaging server".
In the Eclipse Neon IDE, I've already installed two plugin's, the Bluemix Tool as well as the Liberty Development Plugin. At the server tab, I'm right clicking the active Blumix server, but no option for "packaging server" is displayed at the menu. The default "push" option is working fine.
At the Eclipse IDE, is there a software component missing to create and publish a customized server package (beta + features) for Liberty? How can I run a customized packing without command line tools, using Eclipse?
There are two main ways to publish a packaged server in Bluemix:
You have (or create) a Liberty server instance that represents the server. For details on how to create a Liberty server, see http://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/t_creating_server.html. Once you have the Liberty server created in Eclipse, you can just add the Liberty server to the Bluemix server on the Servers view and it will package the server for you during the publish operation.
You already have an existing packaged server zip file in the workspace that you want to publish. Then, you can just right click on the zip file and do a Run As > Run on Server.
For details, you can refer to https://console.ng.bluemix.net/docs/manageapps/eclipsetools/eclipsetools.html#packagedserversupport
The first method is usually preferred since you can continue to update the applications and also the server configuration file and do incremental update on the application by the publish operation.
In Eclipse, if you want to publish whole server to the Bluemix follow these steps:
stop your local Liberty server
in Eclipse in Servers view, grab the local Liberty server and drag it to the Bluemix one. It will publish whole server with its config.
Check this page for more details - Deploying apps with IBM Eclipse Tools for Bluemix
Instead of right clicking on the Bluemix server, you need to right click on your Liberty server definition.

How to configure application level settings in Websphere developer tool in Eclipse?

I install WebSphere Developer tools for Eclipse and refer to my local WebSphere 7 installation. Then deploy a Spring application within an EAR project. However, when I deploy the EAR project into WebSphere server instance in Eclipse, I find no options/UI to assign external library or assign role/user mapping etc, just like what I can do in WebSphere console.
When log on WebSphere console I do see the project setting but cannot save the change.
So is there anyway to configure on the UI or I have to make every change in an WebSphere XML configuration file?
In Eclipse, I find no options/UI to assign external library or assign role/user mapping etc
Yes, you have to do it via console.
When log on WebSphere console I do see the project setting but cannot save the change.
Thats the common problem. Open the Server configuration and uncheck Minimize application files copied to the server. Restart server, undeploy and redeploy application. You should be able to save mappings.
If this doesn't help (helps in most cases but not for some settings and I don't remember for which), then in the Publishing options, switch to Run server with resources on Server, this will work for sure, but deployment will be a bit longer. Of course restart and redeploy app.
You will see the missing OK buttons in the admin console then.

How to deploy .EAR Application from JDeveloper to Weblogic Domain directly from Oracle JDeveloper

I have a JDeveloper Project that is in .ear file. I loaded it into JDeveloper as new application and I can see the whole project. I also have a weblogic domain where this application files in .WAR and .ear are deployed. The application is up and running ok.
What I want is to be able to deploy the project directly from the JDeveloper.
How can I do this?
I already tried to deploy the application (Deploy to Application Server) -> Created a new Application Server (Connection was a success) -> Deploy to selected instances in the Domain (Selected the server where the application is deployed - NOT the Admin Server) and Deploy as a Standalone Application.
I don't know if the previous steps were correct and neither if this is the correct way to do what I want to achieve.
See this video - http://www.youtube.com/watch?v=xKeDZ8_0BlQ
Define a connection to your application server, and then use the application->deploy option to deploy your application.

Ejb with NetBeans

I am very new in Ejb and with very few knowledge about it. I have download NetBeans (7.01) and GlassFish and run a sample program. But, as I have no idea about Ejb, I can't understand how to run this program on NetBeans. Can anybody help me by giving steps how to run this program. Thanks in advance.
NetBeans installs on default GlassFish web application server, which deploys your enterprise projects. To ensure that server is registered in the IDE, go to Services -> Servers inlay and look for "GlassFish Server 3.x". If you found it, open projects properties inlay: right click on your enterprise project -> Properties -> Run and make sure, that "Server" is set to "GlassFish Server 3.x". Then you can deploy you enterprise application: right click on project -> Deploy. IDE should start application server and deploy your application. To run your deployed project right click -> Run or type in the browser address, given in your tutorial, which is mapped to your resource (e.g. http://localhost:8080/book). In this way GlassFish doesn't require additional settings files except persistence.xml in your ejb project and web.xml in the web project.
In case you don't have GlassFish server installed, you can download it here. Make sure you don't have it already installed separately from NetBeans.
If you want to deploy your app on JBoss application server (instead of GlassFish), you should first download it from official site and install. After you've done it, you can set it as server in NetBeans: Services -> Servers -> Add server. Then you can deploy your project as was described above.

Remote deploy from Eclipse to JBoss AS and integration Eclipse with remote JBoss

I have the following situation. My JBoss server runs on the remote server under some bound address. I would like to run Eclipse on my local machine and deploy results of work to the remote server where I could test it and debug it. I'm working on enterprise Java project and I'm normally deploying one ear file.
I know how to provide remote debugging but what possibilities exist for integrating remove deploy in Eclipse?
I was trying for first the JBoss tools plugin. There is a deploy-only server for the only deploying the project. I'm connected on the network disk on the remote server where JBoss instance runs.
But this plugin deploys ear exploded and afterwards because of the one persistence.xml in my project where tag defines what jars contain entities and instead of the jar there are something.jar directories. Then hibernate isn't able to load entities.
Is there some possibility how to easily make a remote deploy directly from Eclipse? Or better is there possibility how to integrate work on remote JBoss server in Eclipse (I mean run JBoss server, stop it.)?