Deploying locally the Web application to client - java

I have developed my webApp with Struts2, Hibernate and MySQL. Now I want to deploy it locally to the client in his computer without installing Eclipse .
For me I was installing wampserver and in the Eclipse I'm using Tomcat v7.0 Server at localhost. I don't use maven
please give me all step to do this task

You can use tomcat server.
Just create war file of your project and put it in tomcat's webapp folder and then move this folder to client machine.
At the client machine past your tomcat at any drive then open command prompt and go to that drive folder like 'd/new/tomcat' and bin folder of tomcat and then just type this command ./startup.bat
your tomcat is started check it on browser.

Related

How to deploy Java application to Tomcat 8 App Service using Azure DevOps release pipeline?

I have a Java application that can be deployed to a Tomcat 8 App Service from Eclipse using the Azure extensions.
I created a Build pipeline that creates artifacts with the .war file.
I then created a Release pipeline and set up a "Deploy WAR to Azure App Service". The pipeline deploys the war file and expands it, but some other configuration is not right because the app is not available on the Tomcat server.
Has anyone used this task to successfully deploy to a Tomcat 8 App Service?
If so, what else needs to be done to get the app to deploy successfully?
P.S. I have very little experience with Java or Tomcat so it's likely something I've missed.
Well, seems you deployed the WAR to Azure App Service (Azure Website) but not the Tomcat server.
You just need to deploy the WAR to Tomcat server instead of Azure Website.
Build the Java project first, please refer to Working with Azure
DevOps and Java and Build your code with Maven for details.
Install the extension Apache Tomcat Deployment
Deploy applications to a Tomcat server using the Deploy to Apache Tomcat task.
Reference below articles to do that:
Continuous Integration and Deployment of Java web apps to Azure with
VSTS
https://github.com/Microsoft/vsts-tomcat/blob/master/src/tomcat.md
The Answer by Andy is most of the solution but there was one additional piece required to get the deployment working. I found this response to some additional errors I was getting after switching to the Apache Tomcat Deployment.
I also added a bash script to rename my app to ROOT cp my-war-file-name.war ROOT.war so that the app was the default application.

Could not find handler chain file handler-chain.xml when deploying WAR artifact from intelliJ to Tomcat 8.5.

I'm trying to create WAR of SOAP service and deploy it to local tomcat 8.5 from IntelliJ.
The code is imported from eclipse project, where in the past I created WAR and deployed it to remote server. Now I'm using IntelliJ and trying to deploy it on local server server directly from intellij.
When deploying the code build is successful, but tomcat can't find the soap handler-chain.xml (thats the message from tomcat logs). When I'm exporting the same code to WAR and deploy it out of intelliJ (using application manager in browser) it deploy i successfully.
After building intelliJ creates war file in out folder of project. deploying this war using browser causes "FAIL - Application at contxt path couldn't be started".
It seems to be the matter of IntelliJ. I would like to use this program (I'm working on SOAP webservice, and I'd love to deploy it and debug tomcat from it) but it doeasn't work in the way I need.

autodeploy web service java with glassfish server 4.1.1?

How can I do to deploy the web service automatically,I have the webService.war file ?I'm working with glassfish 4.1.1 and use a external library postgresql-9.4-1203.jdbc4.jar and I dont know how deploy the .war file thanks.
Not sure what you mean by deploy automatically, however, DeshanR's suggestion is still workable even for 4.1.1. You also have two other options:
You can deploy the war file from the browser by pointing your browser to yourdomain:4848. This will bring you to the glassfish admin console (provided glassfish is up and running and your glassfish is set to use port 4848, which by default it should be). You can then deploy your war file under the applications menu.
If this is a dev environment you can also deploy to your local glassfish from your IDE. This is an example for Eclipse. Connecting your IDE to your local glassfish has the advantage of allowing you to publish changes as you make them.
If you're using the postgres jar file for the JDBC driver and Glassfish's Connection Pool, you will need to restart the server to deploy that file after copying it in to your domain/ext/lib directory.
For the WAR, there is the asadmin command line client, your IDE may have direct support to deploy it from there, you can use the GF administration console, or you can copy the WAR in to the domain/autodeploy directory (assuming you have autodeploy enabled, which is it by default).
There are also HTTP and JMX interfaces, but those are probably not what you're looking for.

Deploy the web application using weblogic adaptor for eclipse

I have installed weblogic 9.2 adaptor for eclipse kepler and try to deploy the application with eclipse. I right click the project and choose run configuration and click on run.
The server already started and i can see in the console,
But in the eclipse server tab it shows as BEA WebLogic Server v9.2 at localhost [proj] [Stopped, Unable to validate weblogic domain].
Any way But the server seems started as when i try to strat the server directly it says server already started.
But the problem is the application is not deployed when i use the plugin.
Also i want to clarify previously when i manually deploy i ran an ant build script which create a EAR file and then i deploy it using web logic web admin console. But now when i use eclipse does eclipse plugin do the build script job of creating a EAR and deploy it or is there i need to do more?
The problem here is eclipse is working on java 6 and weblogic is running on java 5.
The workaround is
add
-Dsun.lang.ClassLoader.allowArraySyntax=true
after -vmargs string in eclipse.ini in your eclipse directory.

How to deploy a Java EE project to my webserver?

I'm working on my first Java EE project with NetBeans IDE. My application server is the integrated GlassFish.
At this moment my project run locally on my Mac with MySQL database. How can I deploy it on my web server?
You need to just create the war file and copy it to your web server. When you start your web-server it will automatically deploy the war file.
You need to use the remote application server functionalities of deploy.
If it's also Glassfish you can use the Administration Console to do it - e.g. example.com:4848 (defaut port for Glassfish admin portal).
Also you may use Cargo Maven Plugin in order to automate the deploy.
You have different possibilities:
Netbeans can deploy your application on the integrated Glassfish server. This should happen automatically if you Run you project and the Glassfish server is selected for this project. You can change the selected server for every project under Project Properties -> Run
You can deploy .war files via the Glassfish admin console if the Glassfish server is already started. Navigate to http://localhost:4848, go to Applications and click on Deploy
You can manually deploy you applications. You have to copy either the .war file or a folder containing the contents of the .war file to the folder /GLASSFISH_HOME/glassfish/domains/domain1/autodeploy

Categories

Resources