I have to manually deploy my servlet war packages on an Apache tomcat instance running on an AWS (Amazon Web Services) machine (remote server).
Also i have Maven setup for dependency management and build packaging in local development environment.
What I want is to setup my maven install/deploy task such that my packaged war files are deployed and configured(i.e executing specific shell scripts) on the remote server automatically.
Is it possible ?
If yes!!
How can it be done? (Please suggest relevant references.)
Thanks in advance
Ashish
Yes it is possible, you can use the cargo plugin to deploy to a server. See the Getting Started page for some examples.
If your scripts aren't catered for by the plugin, perhaps you could post some more details to see what options there are to address them.
If you are talking about Amazon's Elastic Computing Cloud (EC2), maybe you could check out cloudtools and its maven plugin (see the announcement on Chris Richardson's blog). Never tested myself though.
+1 for cargo plugin, I was not aware of that but could use it myself.
In case it helps you or someone else, you can run any script upon launch of an instance. This blog describes how.
Related
I am very fresh in WebSphere application server and I am setting a CI deployment on it.
So far, I have achieved this target by using a Jython script executed by wsadmin.
This actually seems to be a good approach, but, I was wondering if there are any other plugins that can simplify the maintainability of this script.
The CI server I am working on is Bamboo (Atlassian), and all the choices I have been able to find are a Apache Maven plugin and some WebSphere plugin from Atlassian market place.
Would you give me any recommendations or best practices? Can you recommend any other plugin implementable on Bamboo?
Thanks in advance
I'm trying to deploy my Web application running on Glassfish on Cloudbees.
Unfortunately I didn't find any documentation or tutorial.
I'll be very thankful if anybody can explain me the best way to do this. I'm lost...
Thank you!
(PS: I'm working on Netbeans)
To deploy, you need to right-click on the project in the NetBeans project list and click "Deploy". Obviously you need to ensure that the properties for the project are pointing to the correct deployment location and directory.
To get a glassfish container at runtime you'll need to setup your application to run he related clickstack. You'll need the CloudBees SDK installed, and run this command :
bees app:deploy -a DOMAIN/APP_ID -t glassfish3 hello.war
Another option is to use cloudbees clickstart (see clickstart icon top left on cloudbees web toolbar) and select the glassfish one. Then commit your own code in the generated application skeleton, or change the generated jenkins job to point to your existing SCM
Please note this container is a community work in progress, doesn't provide all the features you can have on the tomcat6 or jboss7 runtimes. If your application isn't container dependent, those ones may be a better option then.
My application is working, actually I had to create an application using JavaEE6 in configuration (it's a jboss server in reality).
I configured the persistence.xml and added a cloudbees-web.xml.
I also deleted some hibernate and mysql jar(s) and it has worked!
I hope that can help others cloudbees developers!
I have read through all I can find but doesn't just work out for me.
Does anyone by chance know a detailed step-by-step instruction to deploy GWT to external domain servers like Godaddy?
I am using maven to manage my app. I can run it in dev mode but when I try to copy over to tomcat, does not work.
Please help.
After more and more attempts leading to frustrations, I decided to host my GWT app on GAE (Google app Engine). It is easier to deploy to GAE than trying to setup GWT to work on Godaddy services.
And for mvn related issues, I recreated my app using GWT Maven Archetype version 2.3.0-1
I pop the .war in webapps directory of tomcat and voila ... It works
Cheers
PB
I just started learning portlet and got stuck in the first place. I have installed JavaEE 6 SDK, Eclipse Helios and GlassFish Server 3.0.1. I also successfully configured OpenPortal Portlet Container (OPC) for GlassFish by running command:
java -jar portlet-container-configurator.jar
The problem come up when I wanted to create a new server runtime environment of OPC, there was no "OpenPortal Portlet Container 2.x" node like the tutorial said. I googled and found that I needed to install Eclipse Portal Pack but the link was dead.
Any suggestion, please?
Best Regard.
If you want to develop portlets, I strongly recommend downloading Apache Pluto instead of using the open portlet container; you can download a version of Tomcat bundled with Pluto from their site: http://portals.apache.org/pluto
Actually, Pluto has a few quirks that you need to get past (for example, it wants you to run an 'assembly' step to add some entries to your web.xml) but once you do it is probably the best way. You could also try Liferay or JBoss' GateIn for development, but if you are ultimately targeting a vendor supplied platform like WebSphere, you might find that these actually have features that aren't as portable, whereas Pluto is really just a simple implementation of the portlet spec.
I have found the .jar file on Internet. Thanks for watching.
I am using weblogic worshop to develop my spring based application. Basically it takes lot of time to publish the application to weblogic server. Is there any way to find out what’s going on when eclipse try to build and deploy the project? Basically does it maintain any log file?
Thanks ,
Manoj
Weblogic does a stupid thing according to my experience. If you deploy some WAR, it extracts the libraries in it, and does some analysis in them. You can avoid this behaviour by removing the "static" (not changed by you during work) libraries from the war during development. After removal, add them to system classpath of the domain. It will publish and start a lot faster.
You will find better support for developing Spring applications for WebLogic Server if you migrate to Oracle Enterprise Pack for Eclipse. Workshop is legacy software that is no longer being actively developed. Using Workshop is only necessary for those developing with the deprecated Apache Beehive framework.
http://www.oracle.com/technetwork/developer-tools/eclipse/overview/index.html
OEPE includes a much newer publisher implementation, so you may find your issue resolved. If not, please post to OEPE forum for direct access to people who can answer you question.
Cannot post a forum link, but you can find it from the above URL or via Google.
Thanks Konstantin and Gabor for replying to my question.
Konstantin - I am using Oracle Weblogic workshop 10.3 and I am restricted to use this IDE only.I guess it has OEPE correct me if I am wrong.Also I tried the FastSwap action but everytime I save the changes to a java file the server says -'Publish' and I have to republish the entire application which is taking lot of time.
Thanks,
Manoj