war

Jboss 7 war deployment failed

无人久伴 提交于 2019-12-02 17:30:25
Jboss 7 war deployment failed and i got the below error message in the log. ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [60 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment I tried restarting the JBoss server, I have never seen this before, it was working fine before. I googled around for solution and cause of this issue but cant find anything really useful, can anyone help please? anvarik Well I

Tomcat not autodeploying war file

浪尽此生 提交于 2019-12-02 17:06:53
I followed the following steps Shutdown Tomcat Deployed a war file with a timestamp of 1st December Start Tomcat - This created the exploded directory for the deployed war file. Stop Tomcat Updated the war file with a new one with a timestamp of 3rd December Restart Tomcat I found that when i restarted Tomcat, the existing files in the folder that was expanded previously were not updated. Shouldnt the update to the war file have updated the relevant jsp, class file? I looked at the documentation and found this http://tomcat.apache.org/tomcat-5.5-doc/config/host.html . The following quote under

How to deploy war file to tomcat using command prompt?

自古美人都是妖i 提交于 2019-12-02 16:14:35
I have created a war file and put into tomcat/webapps . How to deploy a war file to tomcat using command prompt? 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 The earlier answers on this page are correct that you can copy/move the WAR file into place and restart tomcat, but they omit to mention something: you must remove

Unable to find a javac compiler

喜欢而已 提交于 2019-12-02 15:29:12
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="."> <property name="build.dir" value="build"/> <property name="dir.name" value="Assignment7"/> <property

How To Integrate Clojure Web Applications in Apache

可紊 提交于 2019-12-02 14:13:50
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 deeply in love with Clojure, and Compojure seems like a neat web framework. But it all fell apart when I

Advice deploying war files vs executable jar with embedded container

僤鯓⒐⒋嵵緔 提交于 2019-12-02 14:00:25
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 Jenkins uses an embedded container, very easy to grab and go). Examples of frameworks adopting the

How to add a WAR file into an existent EAR file?

邮差的信 提交于 2019-12-02 13:59:35
问题 Could someone explain to me how to add a WAR file into an EAR? I have one EAR file that already contains one WAR file, i have another WAR file that i would like to add to this EAR so it can contain both WARs and works properly. I don't know how to this but i think is possible to do it manually changing the application.xml file which is included into the EAR. Thanks! 回答1: Assuming that the EAR file doesn't already contain the WAR file, you can use common zip utilities to add the WAR file

Tomcat creates WEB-INF/lib but doesnt explode war files (GWT)

淺唱寂寞╮ 提交于 2019-12-02 13:18:10
问题 Has anyone seen anything like this: I'm using a script which basically undeploys an app using ant, puts the new war file in the deploy directory and then deploys it using ant again. The problem is, after the deploy all that exists in the webapps folder are 3 directories: myapp/WEB-INF/lib There are no other files in there other than those 3 empty directories. The timestamps of the directories indicate they were created when I ran the script. After this happens, undeploying through Tomcat

Spring MVC Maven Modules

旧街凉风 提交于 2019-12-02 10:01:13
Let's say that I want to have 3 maven modules: parent login webapp I want to have Java classes & jsp files in both modules (login & webapp). My workaround partially works, it builds one WAR file, web pages are rendered, looks fine, but when I try to use API (interfaces from login module) in webapp module - classes can not be found. I think that something is wrong with POM files. POMs are almost the same, the main difference between login & webapp poms - that webapp has dependency with login. POM source from webapp module: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven

JBoss - possible to mount a war on two different context paths?

江枫思渺然 提交于 2019-12-02 07:15:53
In JBoss, is it possible to deploy a web application on two context paths? I'd like same war instance available on / as well as /path , so, requests like '/abc' and '/path/abc' both hit same instance of the web app. I tried : <module> <web> <web-uri>web-app.war</web-uri> <context-root>/</context-root> </web> </module> <module> <web> <web-uri>web-app.war</web-uri> <context-root>/path</context-root> </web> </module> but looks like it gets deployed only on /path. All requests to '/abc' are 404s. Any suggestions? Vadzim Since JBoss AS uses Tomcat as it's web container you can try to configure