war

How to deploy war file to tomcat using command prompt?

爱⌒轻易说出口 提交于 2019-12-03 02:42:43
问题 I have created a war file and put into tomcat/webapps . How to deploy a war file to tomcat using command prompt? 回答1: First add a user role in tomcat-users.xml for role manager-script. Then to undeploy current app you can use wget http://username:password@localhost:portnumber/manager/text/undeploy?path=/appname -O - -q To deploy wget http://username:password@localhost:portnumber/manager/text/deploy?path=/appname&war=file:/warpath -O - -q 回答2: The earlier answers on this page are correct that

Unable to find a javac compiler

為{幸葍}努か 提交于 2019-12-03 01:53:48
问题 I am trying to package my web application into war file using Ant. When I build, I am getting the following error: C:\Documents and Settings\Administrator\workspace\Assignment7\build.xml:67: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre6" The following is my build.xml <?xml version="1.0" encoding="UTF-8"?> <project name="Generate War" default="install" basedir=".

How To Integrate Clojure Web Applications in Apache

↘锁芯ラ 提交于 2019-12-03 00:45:51
问题 Note Given this OP was written about two years ago, rather than ask the same question again, I am wondering if step-by-step instructions exist, so that I can integrate a Noir or other Clojure web application into Apache, whether it's Jetty, Tomcat, or something else. Similar instructions exist for Django, and I think I understand that Python is being run in Django's case as an engine rather than a ring framework, so things are more complicated with Clojure web applications. End Note I'm

Grails deployment issues (WAR & Tomcat)

我的未来我决定 提交于 2019-12-03 00:33:32
I'm working on deploying a WAR under Tomcat 6 on a remote server. Now if I deploy as such on my local machine everything works fine. Remote deployment triggers a very unfriendly set of exceptions. log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: stacktrace.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:207) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at org.apache.log4j.FileAppender.activateOptions

Advice deploying war files vs executable jar with embedded container

被刻印的时光 ゝ 提交于 2019-12-03 00:18:36
问题 There seems to be a current trend in java space to move away from deploying java web applications to a java servlet container (or application server) in the form of a war file (or ear file) and instead package the application as an executable jar with an embedded servlet/HTTP server like jetty. And I mean this more so in the way newer frameworks are influencing how new applications are developed and deployed rather than how applications are delivered to end users (because, for example, I get

Why use an ear instead of a war?

人盡茶涼 提交于 2019-12-02 22:56:00
I read this and this which are somewhat related to my question. But I came across this article that says that EJBs can be packaged in a war file. If this is the case, why is there a need for an ear? An explanation with an example will be highly appriciated. Kris Using EAR or WAR depends on the server you want to deploy it, your application, and on your personal preferences. From Java EE6 you can package your EJBs together with other servlets, jsps etc into WAR file (you end up with web application which you can deploy only on java ee 6 compatible server). If you package your app the old way

Deploy WAR or “fat” JAR?

五迷三道 提交于 2019-12-02 20:36:24
I'm noticing a lot of projects (DropWizard, Grails, etc.) starting to embrace the notion of a "fat" JAR (using an embedded web server like Jetty or Tomcat) vs. the traditional WAR deploy. Both methods involve a single JVM process (i.e. no matter how many WARs are deployed to Tomcat, it's all the same JVM process). Under what circumstances is either deployment method preferable over the other? Here are some reasons: In favor of JAR: Simple to build and deploy. Embedded servers like Jetty are easy to operate. Applications are easy for users to start and they can run on their personal computers

Create two artifacts (war) for a single maven project

无人久伴 提交于 2019-12-02 20:22:51
问题 I have a Java web project that we deploy on the server of two different customers, 99% of the code is the same, right now I have two ApplicationBuilders, which is the class that contains the customization for each customer. Anytime I want to deploy the new version I have to manually comment a line, build (with maven), uncomment that line, comment the other one and build again. public class ApplicationBuilderFactory { private static final IApplicationBuilder app; static { // app = new

How are Java applications deployed in the “real world”?

筅森魡賤 提交于 2019-12-02 19:29:47
As a novice to the world of Java programming, this question has always boggled my mind. I first believed that all Java files were compacted into applets and then ran, but I soon realized that this isn't always the case. Could someone explain to me how we actually interweave our Java applications into a real product of everyday life? TL;DR: How do we implement our code for practical usage? It depends on the application. There are many options depending on how you want your users to use your app. Usually it's packaged as a jar or a specialized jar (war, ear). In theory, you could zip the raw

Some necessary libraries are missing in WAR-File after export from Eclipse - why?

纵饮孤独 提交于 2019-12-02 18:19:31
I took over a project of a college which contains some web services and by exporting the project as WAR-file some libraries are contained in the file (e.g. Axis2) and some aren’t (hibernate, JDBC driver). Also a jar which is added to the class path has not been exported. All libraries are located in folders on the hard drive which means that they are not in located somewhere in the eclipse folder. If I open the WAR-file after export with WinRAR and add the libraries manually to the file the web service will work well but that is not a good solution… What could be the reason for that problem?