Deploy war to local Tomcat instance not managed by netbeans - java

I need to deploy my webapp to a non-managed Tomcat outside of NetBeans. Is there any way to do that using NetBeans? My NetBeans 7.4 came with Tomcat 7.0.41, but my Ubuntu 12.04 has got Tomcat 7.0.26 outside of NetBeans. I want deploy war to Tomcat 7.0.26. Because Tomcat 7.0.26 has a directory structure that is different from the one expected by NetBeans, I can't add Tomcat 7.0.26 to Netbeans.
How can I deploy (and hot deploy) to Tomcat unmanaged by NetBeans ?

So how could I deploy(& hot deploy) to Tomcat unmanaged by netbeans ?
You might modify the build.xml in your Netbeans project: before deploying add an Ant target that copies your war and context.xml to your Tomcat not managed by Netbeans.

Related

eclipse debug war deployed in weblogic

I have an application ear that is deployed into weblogic. Is there any way to debug an ear deployment?
Hoping ear deployment cant be debugged . I extracted the war from ear. Turned to war to physical folder by renaming the war extention to zip and then unzipping it.
Then pointed this physical location as deployment in weblogic. But then too its not working.
Any possible solution to debug an application deployed as ear using eclipse?
pls note weblogic is integrated into eclipse
The below link gives clear steps in setting up the remote debugging in your Eclipse/Weblogic setup:
how to debug java web application in eclips with weblogic server

Deploying Eclipse Java Dynamic web project on Apache Tomcat permanently

I have a Java web project in Eclipse which I run through Eclipse on Apache Tomcat.
Is there a way for me to permanently deploy the project on Tomcat such that it runs without having to open Eclipse and rather just starting Tomcat?
If yes, then what steps do I need to follow?
*UPDATE*
If I take the .war file and deploy it on another system will it work? Note that I am using a MySql database in this project. So will transferring the .war file also transfer the database?
You package the project into a war file (since it is a web project) and put that one into the Tomcat's webapps folder. The deployment should then happen automatically, when Tomcat is started.
Generate a WAR file within Eclipse. (Properties->Export->WAR File)
Place this file in the {installation}/webapps folder of Tomcat.
It should deploy now.

WebApplication automatically deployed as EAR

I have checked out a web application from SVN and added it as a Maven project. Now when I'm trying to deploy it to a Weblogic Server 12c, its getting deployed as EAR and not WAR. How can I deploy it as WAR while running from eclipse.
Update
I'm able to run it properly by exporting as WAR. But from eclipse it exports as EAR and it does not run. From eclipse i need to deploy as WAR. May be that can solve my issue.

deploy maven war file to tomcat from IntelliJ

I have a maven war project. How can I do do the following from within IntelliJ IDEA:
create .war file
deploy it to a local Tomcat
start Tomcat in debug mode
You need to configure maven-war-plugin to build your war. tomcat<x>-maven-plugin will allow you to deploy it to a tomcat instance and may in fact do the war generation too - I use JBoss at my current office so haven't got any experience with the maven tomcat integration.
see http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/ and http://maven.apache.org/plugins/maven-war-plugin/ for some more details on both of these plugins.
You can use the cargo plugin too. It works pretty well for me.

deploying Java web application in exploded directory outside the Tomcat server, using Eclipse

I have been using IntelliJ IDE (version 5.1) with Tomcat server (version 5.5) to build my Java web applications. I'm now trying to migrate my project to Eclipse IDE.
When I run my web application from IntelliJ IDE, it creates a exploded directory inside my web application project folder and then starts the server and runs the web app. (i.e. no WAR files and no copy to tomcat\webapps folder).
But in Eclipse IDE, it usually deploys the web app inside Tomcat's webapps folder.
Is there any way to deploy web applications to a exploded directory outside the Tomcat server, from Eclipse IDE?
There is pretty neat Eclipse plug-ins you can install that will allow you to do that.
Have a look at Plug-in, tutorial and from Sysdeo.
Sysdeo is the one that both Apache and IBM suggests.
There are actually quite a bunch of these plug-ins from different vendors.
The trick is to find the one that best suits your needs.
Hope this helps.

Categories

Resources