war

ant target to deploy war to tomcat7/webapps

孤人 提交于 2019-12-10 11:05:47
问题 I want to deploy the just created *.war (exploded) to ${TOMCAT_HOME}/webapps using ant target. CONFIGURATION My tomcat version is 7.0.37 and tomcat-users.xml is : <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager-gui"/> <user username="tomcat" password="tomcat" roles="tomcat,manager-gui"/> <user username="both" password="tomcat" roles="tomcat,role1,manager-gui"/> <user username="role1" password="tomcat" roles="role1"/> war.properties is : # War Build Properties

Externalizing configuration in Spring Boot with multiple applications running in the same container

隐身守侯 提交于 2019-12-10 10:58:14
问题 I'm building multiple Spring Boot applications which will be deployed on the same servlet container. But I'm having difficulties getting Spring Boot to work with externalized configuration files the way I want, and not like the framework wants. Situation: multiple Spring Boot applications will be deployed on a single servlet container (WAR file) the location of configuration files will be set via JVM property spring.config.location embedded deployment is not an option Problem: As the

JavaEE Wildfly EJB not injected, war-only project

怎甘沉沦 提交于 2019-12-10 10:55:58
问题 I'm new to JavaEE and I created a "hello world" project, using Hibernate as JPA provider, build using gradle and deployed to Wildfly . I want to use @Stateless bean for database-aware class, that will do all operations on DB, and then inject it to all "JAX-RS" classes, that contain REST endpoints. Database class: @Stateless public class DatabaseManager { @PersistenceContext EntityManager entityManager; public DatabaseManager() { } public String sayHello() { // do some db-stuff return "EHLO";

How do I deploy spring-boot WAR to Tomcat?

那年仲夏 提交于 2019-12-10 10:46:21
问题 I have spent a good number of hours on this before posting... I have a spring-boot application that runs nicely as a JAR, but when I try to convert it to a WAR I cant deploy it. I have tried looking for the rules for it to decide whether it Tomcat is embedded or external. The WAR looks correct with WEB-INF/lib and WEB-INF/lib-provided with no obviously misplaced jars. My Application class extends SpringBootServletInitializer. When debugging, this class sets the application context class to

Hudson continuous integration server: how to see Windows mapped directories that are visible to Ant?

倖福魔咒の 提交于 2019-12-10 10:37:41
问题 Using Hudson, Ant 1.7, Tomcat 6.20, JDK 1.6 and JDK 1.5; all on Windows boxes. My Ant build script for a WAR file uses JARs stored on a remote server. The directory path to the remote server is mapped as a network drive in Windows. A build.properties file is used to specify the paths to the JAR dependencies. When building with Ant, either at command line or in Eclipse, the WAR builds and deploys successfully. Example from build.properties: lib.log4j=S:/Support/JARs/log4j-1.2.15.jar In the

Spring-boot jersey maven failed to run war file

前提是你 提交于 2019-12-10 10:06:53
问题 We are creating a spring-boot jersey application. Now we want to create executable war file. The problem is the application runs fine when I run it with mvn spring-boot:run But when I try to package it to war and run it with java -jar ABD.war its giving the following error Caused by: java.io.FileNotFoundException: /Users/ABC/ABD-0.0.1-SNAPSHOT.war!/WEB-INF/classes (No such file or directory) Caused by: org.glassfish.jersey.server.internal.scanning.ResourceFinderException: Here are the part of

How to configure npm to use maven folder structure and war deployment

无人久伴 提交于 2019-12-10 09:32:23
问题 I began my first pure front end project. I want to deploy it the java/maven. So i set up a normal war project: │ package.json │ pom.xml │ tsconfig.json │ typings.json │ │ ├───src │ └───main │ ├───resources │ └───webapp │ │ index.html │ │ │ ├───app │ │ app.component.ts │ │ main.ts │ │ │ ├───css │ │ styles.css │ │ │ └───WEB-INF │ web.xml │ My problem is how to set the path to index.html/the source relative to package. json? Since this is an angular/typescript project there is also some

Clojure + Compojure + Maven application doesn't work in Tomcat

本小妞迷上赌 提交于 2019-12-10 08:59:28
问题 I'm working on a simple web application written in Clojure, using the Compojure web application framework and Maven. This is a simplified version of my servlet: (ns core (:use compojure.core ring.util.servlet) (:require [compojure.route :as route]) (:gen-class :extends javax.servlet.http.HttpServlet)) (defroutes main-routes (GET "/" _ {:status 302 :headers {"Location" "/about"}}) (GET "/about" [] "This is the about page") (route/not-found "File not found.")) (defservice main-routes) This

Gradle war manifest version number wrong for release build

强颜欢笑 提交于 2019-12-10 04:36:00
问题 I have a gradle project that builds a war file, and includes a manifest: war { archiveName 'archive.war' manifest { attributes("Implementation-Title": project.name, "Implementation-Version": version, "Implementation-Timestamp": new Date()) } } This is fine, but if I run a release build (using the gradle-release plugin https://github.com/townsfolk/gradle-release), which updates the project version, then the war file is created with the old version number rather than the new one. I may be wrong

Infinite loop when deploying a war on tomcat 7

孤人 提交于 2019-12-10 03:38:26
问题 I try to deploy a war into Tomcat 7.0.29. I'm having the following log stack : GRAVE: Error waiting for multi-thread deployment of context descriptors to complete java.util.concurrent.ExecutionException: java.lang.StackOverflowError at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:574) at org.apache.catalina.startup.HostConfig.deployApps