For some reason suddenly I am unable to deploy my current application in bluemix server, every time I deploy it fails with following error
Error: Invalid application deployment information for: econfig-poc-backend-adapter - Unable to deploy or start application - Missing application deployment information.. Please delete the module and re-deploy the application.
Same application I am able to deploy form Command line interface using CF tools, but there the new war is not regenerated, I am not sure what is missing in the environment. Will appreciate any help in this regard.
To fix your Eclipse, delete the application from the Servers window under Bluemix and deploy it again.
cf push is a tool to push artifacts to Bluemix. It will not build your java files.
To push your application manually (Eclipse not involved), you have to build the war first, and then push the war. If its an ant based project (build.xml) you will need to run ant. If its maven (pom.xml), you will need to run mvn package. Then, you push the generated war file cf push appname -p path/to/file.war
You can also have Eclipse generate the war for you. Right click on your project in Eclipse and find the option to Export a war file. You can then push this war file using the command above.
Related
I am trying to deploy a standard environment google app engine project from eclipse. Whenever I try to deploy it however, I get the error: problem publishing war, project has no resources to publish. I have different project that does deploy correctly. Also I should mention that I imported the project from a while back where it used to deploy fine.
I have developed a sample login web application in Eclipse IDE and the same project I have uploaded to SVN. After that I am configuring the jenkins and integrated with SVN. Now I want to generate a war file using jenkins and trying to deploy to the tomcat server. In the project I used ANT building tool and I generated build.xml
Now my question is how to configure with tomact server and how I can generate war file and deploy to the server. I am not understanding how to invoke ANT and what to give path in WAR/EAR files(already i downloaded deploy plugin) and context path in post-build actions.
I want to deploy my helloworld project to my wildfly (former jboss) application server.
I can use maven mvn install wildfly:deploy and it will deploy the app.
But when I want to use eclipse to run on Server it does nothing.
I don't get a console output or anything which looks like building and deploying.
I added the server runtime to the project and also added the wildfly server.
Why is Eclipse not deploying?
This works for me: do a mvn install in order to build the war and have it at the target folder. Then right-click on wildfly-server. You will see an add-remove option. Click on it, select your project from the list and then add your project to the server. Click finish. If the server is running the project should be deployed.
Another approach would be to simply copy the war from your target directory and place it in the standalone/deployments folder of your wildfly installation.
Make sure that you have stopped the server before copying the war. After you have copied the war to the deployments folder, start he server.
Your application should be deployed successfully.
I want to run web based Maven project on glassfish server. I am totally new on maven. However, i have successfully build the maven project and glassfish server is up and running also. Moreover, there is WAR file also in target folder but i am confused what is the next step to run that project on glassfish ?
Any help will be highly appreciated.
You have different options to solve this task:
If you are new to Eclipse I suggest to change to NetBeans. It comes with integrated support for application server deployments. You just add your maven (or nearly any other type of project like WAR, EJB and EAR) project and your desired application server instance (Glassfish) and you are ready: Right-click your project and choose Deploy and it'll get deployed to your server. NetBeans also supports hot-deployment.
You can deploy your WAR file manually in GLASSFISH_ROOT/glassfish/domains/domain1/autodeploy and it'll get deployed if your server is running. But this is not very efficient during development.
If you want to stay with Eclipse you can use the maven-glassfish-plugin or this maven plugin to do the deployment for you. I'm not sure which one is better but this topic is also discussed in this question and this question.
I was wondering if it is possible to make a Java EE application being managed by Maven and automatically deploy it to JBoss all from Eclipse. To my knowledge I current right click on my project and select "Make install". After that completes, I open the server pane and right click on my deployed ear and either select "Full Publish" or "Incremental Publish". Is there a way to condense these actions into one click? I tried to write a windows batch file but I didn't have much luck with that, and it would only work for our devs working on Windows machines. I know I can make run configurations but when I try to make one it is very intimidating and I get frustrated and give up.
Thanks for your help!
You can use JBoss Tools 3.3.0 (Current milestone M4) with the maven integration to easily deploy projects (wars or ears) to your AS7 server.
Once you defined your AS7 instance in eclipse, all you have to do is right click on your project > Run As ...> Run on Server. It'll start your app server if it's stopped, or just deploy your app if it's already running.
See http://vimeo.com/25768303
and http://community.jboss.org/en/tools/blog/2011/11/09/jboss-tools-shift-happens-in-m4
If you are using maven, you can use the cargo plugin: http://cargo.codehaus.org/Maven2+plugin
You just configure where the JBoss is installed, set the plugin to run in the phase you want (or make a new one) and you are all set.
You can also create different configurations for different profiles, so you have local, integration, test, production, etc... And just by running with the selected profile deploys the ear in the server, remote or local.
If you want more control, you can set the path of the container as a variable that you pass in the Eclipse run configuration, that way each developer can have their servers in different paths.