Netbeans and apache tomcat - netbeans

Is there a direct way to deploy a netbeans project, where springframe work has been used, in apache tomcat server?

Yes. All you need to do is to register the server and make it the default server for your project.
From the NetBeans online help:
Registering a Server
Before you can deploy an enterprise application, web application, JSP file, servlet, or EJB module, the server to which you are going to deploy needs to be registered with the IDE.
To register an external server:
Choose Tools > Servers in the main menu.
In the Server Manager, click Add Server.
The Add Server wizard appears and displays the types of servers that are compatible with the IDE.
In the dialog box, select the type of server you want to register and click Next.
Specify the server-specific information in the panels that follow and click Finish.
Changing the Target Server
Each project has a target server. The target server is the server that is used when the project is run. You can set the target server to any server which has been registered in the IDE.
To change the target server:
Right-click the project node in the Projects window and choose Properties.
Select Run in the Project Properties dialog box.
Select the new target server from the Server drop-down menu and click OK.

Related

Can't add server to Web Project in Eclipse

I just set up a dynamic web project that uses JSP in Eclipse and now I'm trying to add a server to run the project on. I go to add a new server in the server view and I have no option to select "next" or "finish" no matter what server type I select. Both Tomcat 9.0 and Glassfish are installed.

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.

Eclipse server location using workspace metadata, can't change to installation

I want Eclipse deploy my application to Tomcat installation folder's webapps when I add it to server in Eclipse, but for some reason Eclipse seems to use it's internal server instance under .metadata/.plugins, even thought I added my server manually and provided the installation directory. After that I added the server runtime to project facets and enabled dynamic web module. Now when I add the application to server under server tab and start the server, application doesn't appear in Tomcats installation folder nor is the instance started up.
When I look the server configuration tab, I can see Eclipse is using workspace metadata for server location and doesn't let me change it to tomcat installation.
What is causing the problem and how to solve it? I have spent hours with this one with no luck.
Remove all modules in the server configuration/Modules tab.
Close the configuration.
Right click the server in the "Servers" view and publish it.
Open the configuration again.
Then it must be editable.

Eclipse + JBoss Tools won't run webapp to configured JBoss AS

I am using Eclipse 3.7.2 with JBoss Tools 3.3 under Ubuntu 12 and have configured a locally installed copy of JBoss AS 7.1.1 in Eclipse under "Preferences::Server::Runtime" Environments.
However, when trying to run a Java EE application by double-clicking on the project or an .xhtml page I only see "Run As / Run" on Server as an option and I get an HTTP 404 from Apache Tomcat/7.0.26 at localhost:8080. That is, it seems like Eclipse is trying to deploy to a Tomcat server as opposed to the JBoss AS I have configured in "Preferences::Server::Runtime" and I don't get an option like "Run on JBoss" or anything. When I export my application as a war and manually deploy to JBoss AS the app runs fine.
The idea is to add your application to a specific server that you have configured. Additionally; just adding the server runtime isn't enough.
You need to open the Servers view, and from there right click on the background and select New, and then Server. If you choose JBoss Community -> JBoss AS 7.1 here, you can select your previously created Server runtime in the Server runtime environment, or optionally create a new one.
Then comes the mental twist that you need to make. In WTP you don't use the Run As command, but instead right click the server in the Servers view (default name should be JBoss 7.1 Runtime Server, and select Add and Remove. Select one or more applications from your workspace that you would like to run on your server. Click finish when done.
Now right click again on your server, and choose either Start or Debug.

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

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.