war

Create war file from Spring:boot project in Eclipse

好久不见. 提交于 2019-11-30 14:10:09
I am pretty new to Spring Boot and I have completed a application that works well on my localhost. As I have been told to deploy it outside my localhost on for example a webbhotel or simular I need to export the project as a war-file and not as a jar-file. UPDATE!! I run the project as a Springproject generated in Spring Initialzr and using Eclipse as a IDE. In Eclipse I have followed the steps <packaging>war</packaging> and <dependencies> <!-- … --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope> </dependency

How to generate a WAR with the source code in Maven?

不羁的心 提交于 2019-11-30 13:57:41
问题 I want to distribute the war of my web application generated with Maven with the source code inside it. How to do that with Maven? 回答1: It is possible configure the maven-war-plugin to include the source directory as it was a web resource: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>${build.sourceDirectory}</directory> <targetPath>sources</targetPath> </resource> <

JBoss 7: how to change a WAR context root

给你一囗甜甜゛ 提交于 2019-11-30 13:36:39
I have an application that is to be deployed in a WAR file (app.war). After deployment it is available from http://:8080/app I would like to have it being made available as something like http://:8080/secret/app I searched the documentation and for JBoss'es 5 and 6 this seems to be able to do with a jboss-web.xml file. I have tried it but with no luck. It seems that JBoss 7 just ignores the element inside jboss-web.xml. I don't know if this is relevant but this application has both JSF and PrettyFaces. Does anyone know if this behavior is possible with JBoss 7? If so, how can it be done? I am

BouncyCastle 1.51 loading in war on Wildfly 8.0

末鹿安然 提交于 2019-11-30 12:41:22
Background I am trying to use bouncy castle library to decrypt private keys in my war. Now I tested the code first in a standalone app and it worked fine. Now when I am testing it as a webapp in Wildfly8.0 am facing some issues with Bouncy castle. The Wildfly 8.0 am using has bouncy castle provider module installed. The BC version being used in v1.46. The code that I have developed uses v1.51. I have followed the steps mentioned here: https://developer.jboss.org/thread/175395 bouncycastle + JBoss AS7: JCE cannot authenticate the provider BC - Specifically followed instructions provided in For

Tomcat 8 integration with Maven

被刻印的时光 ゝ 提交于 2019-11-30 12:04:16
问题 It sounds like Eclipse (Kepler) does not have a proper plugin for Tomcat 8. I want to deploy my .war into Tomcat 8 and run it by Maven pom.xml file. Can anyone provide me step-by-step guidance or any resources, please? My POM file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>Test-App</groupId>

Maven war has META-INF folder in two places

好久不见. 提交于 2019-11-30 11:30:48
问题 I'm working on a project which uses JAAS and unfortunately for me Tomcat requires a file to be put in a META-INF folder in the root of the war app.war |__META-INF | |___context.xml ... I think that it's already weird since the default META-INF location for WAR's is in the classes folders. app.war |__WEB-INF | |__classes | |__META-INF ... So I'm using Maven, which states that anything in src/main/resources/META-INF will be copied to the appropriate place, which it does. The weird thing is that

Deploying in tomcat with exception: Cannot find operation isServiced

雨燕双飞 提交于 2019-11-30 11:29:22
I installed Tomcat and Tomcat Manager on a remote server as per the instructions on this post . After adding it I successfully accessed the manager on http://IP_ADDRESS:8080/manager/html Then I used the war file upload option to try to deploy the war file on it but it gives the following exception. FAIL - Deploy Upload Failed, Exception: Cannot find operation isServiced Documentation on isServiced Just looked this up. Broken in Tomcat versions M19 and 8.5.13. Fixed in upcoming versions M20 and in 8.5.14. http://bz.apache.org/bugzilla/show_bug.cgi?id=60949 . So you can roll back to M18 or 8.5

In Maven, how output the classpath being used?

柔情痞子 提交于 2019-11-30 11:17:04
问题 For my current purposes I have a Maven project which creates a war file, and I want to see what actual classpath it is using when creating the war . Is there a way to do that in a single command -- without having to compile the entire project? One idea is to have Maven generate the target/classpath.properties file and then stop at that point. 回答1: To get the classpath all by itself in a file, you can: mvn dependency:build-classpath -Dmdep.outputFile=cp.txt Or add this to the POM.XML: <project

How to generate a WAR with the source code in Maven?

浪子不回头ぞ 提交于 2019-11-30 08:54:23
I want to distribute the war of my web application generated with Maven with the source code inside it. How to do that with Maven? It is possible configure the maven-war-plugin to include the source directory as it was a web resource: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>${build.sourceDirectory}</directory> <targetPath>sources</targetPath> </resource> </webResources> </configuration> </plugin> </plugins> </build> The java sources will be included in a sources

Deploy War File in Microsoft IIS 7

╄→гoц情女王★ 提交于 2019-11-30 07:22:59
I would like to ask how can I deploy a war file to Microsoft IIS 7? Thanks in advance. adarshr You can't. You need a Java EE Web Container such as Tomcat or JBoss in order to do so. IIS can just act as a front facing proxy for the stuff hosted through the WAR file. What you probably need is a way to connect IIS and Tomcat together so that requests for any dynamic resources such as JSPs and Servlets can be delegated to Tomcat. The following link explains how to do so in detail. http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html Please read this article: Deploying Java Servlet