Questions tagged [war]
Web Application Archive - Is a JAR file used to distribute JavaServer Pages, Java Servlets, Java classes, XML files, tag libraries and static Web pages (HTML and related files) that together constitute a Web application.
3,690
questions
-1
votes
1
answer
52
views
Background Image of CSS is not showing
I have written a Java WebApp with Vaadin 14.8.0 and SpringBoot.
When I put the application in production mode and create a war file with the command "mvn clean package -Pproduction" and ...
1
vote
0
answers
17
views
Exception received from deployment driver, Error reading application.xml file
I have an application runned with a WebLogic 12.1.3 server. I get these errors when i start the server:
Error reading application.xml file. Reference of module 'project-web' cannot be found or is ...
0
votes
0
answers
29
views
Maven add dependency on Spring 3.1.1 even it is not on in pom.xml
I have problem that maven add dependency Spring 3.1.1 into war even it is not into pom. Also it isnt into dependency:tree
Here is my dependency:tree
PS C:\Users\pkostrou\IdeaProjects\cas-3.0.10.0> ...
0
votes
0
answers
31
views
@JmsListener do not receive message from ActiveMQ
This is a Spring Boot project which has four JmsListener. All of the four JmsListener work well if I run the project locally in the embedded Tomcat server.
But after I moved the project to an external ...
0
votes
0
answers
14
views
I want to create a jar file for maven project using cli where I have mentioned war plugin in pom.xml
Code : https://github.com/efsavage/hello-world-war/blob/master/pom.xml
Here in POM.XML file there is war which is as required.
Now, I am building project using below CLI commands
mvn clean
mvn install ...
0
votes
0
answers
26
views
Tomcat9 creates files in /tmp/systemd-private*** path instead of my given path [duplicate]
i've created a webapp that i deploy on the debian default tomcat9 server.
I need to write PDF files to the local filesystem. So i create a folder and write them using the ByteArrayOutputStream and a ...
0
votes
1
answer
17
views
Getting error in pushing war files in Camunda Deployments
I have configured the camunda platform on an EKS cluster and now I am trying to deploy my war files into my camunda deployment and I am REST API method for the deployment of war files into deployment. ...
0
votes
0
answers
17
views
Can't open Tomcat sample application - 404
I am exploring using Tomcat. In the documentation, it says you can download a sample application and access it. I downloaded the attached WAR file and moved into my webapps folder, but cannot access ...
1
vote
0
answers
32
views
JBoss automatic .war redeployment can't start application properly - Error on Keycloak redirection
A colleague of mine wants to automate their JBoss (JBoss EAP v7.4.0) deployments.
So far the process they followed manually was:
Shutdown Jboss entirely
Copy the new .war file under /jboss-eap-7.4.0/...
0
votes
0
answers
10
views
Newbie having problem importing war file in eclipse
Why do I get this message: "an error occurred when import finished" when I import a war file in eclipse Version: 2019-12 (4.14.0)?
0
votes
1
answer
62
views
Why would upgrading from Java 8 to Java 17 require me to use the maven-war-plugin?
I am upgrading a project from Java 8 to Java 17 and I am receiving the error (in a pom.xml file) "Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer". I ...
0
votes
0
answers
23
views
How to set REACT_APP_ROUTER_BASE for react app when configured with Jetty server
I have created a test react project and were trying to host it on Jetty server. My pom.xml looks like this :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://...
-1
votes
0
answers
35
views
Jboss successfully deployed war file services not accessible
Could you please share your opinion on what is wrong with the following configuration.
I am using Jboss 7.0.0.
In the deployments directory I have a war file with the following structure:
In the ...
0
votes
0
answers
67
views
Spring Boot with basic auth enabled not returning 401 when run with Tomcat in docker
I have a WebSecurityConfigurerAdapter class with
override fun configure(http: HttpSecurity) {
http.authorizeRequests()
.anyRequest().authenticated()
.and()
...
0
votes
1
answer
24
views
How to read war-file manifest in its jar-dependency?
How do I read the war-file manifest property in its jar-dependency?
UPD: servlets are not used here (it's spring-bean initialization code).
0
votes
0
answers
18
views
Gradle Multiproject War withEclipse gradle plugin. Not including project dependencies in tomcat webapp/app/WEB-INF/lib
In a gradle multiproject, I have 3 projects:
The first one contains basic utils (plugin; java-library)
The second is a java application that depends on the first project (plugin: java)
The third is a ...
0
votes
2
answers
50
views
How to load classes from a .war file and use them?
I have a project that is generating a .war file as a build artifact.
I want to load this .war into the JVM so that I can parse the runtime annotations it contains, but I am having trouble with loading ...
0
votes
2
answers
15
views
Package React + Springboot application into .war file
How can I transform a React + Springboot application into a .war file
0
votes
0
answers
21
views
Generate war file from Springboot + React application
I've tried all the tutorials but no one works out for me. Does anyone know how to do it the right way?
This is my pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=&...
0
votes
1
answer
49
views
Changes made in java resource files not reflected in war deployment
I have a web application, and I'm trying to fix a bug in the code but no matter what I do in the .java files within my java resource folder when I deploy my war file the changes aren't reflected.
I've ...
0
votes
0
answers
21
views
How to find if Jar or war is compiled using which Java version? [duplicate]
I have generated .war or .jar using Java 8 first and then compiled using Java 11.
How can i check from .war or .jar that which java version it has compiled to?
0
votes
0
answers
17
views
How can I set the war version with a variable in intellij idea runConfiguration instead of hard-coding it?
Currently when I created the run configurations we have 2 places in each of them with the explicit version (that comes from build.gradle: version = '2.0.0'):
<deployment>
<artifact name=&...
0
votes
0
answers
20
views
Spring MVC app work on local Tomcat server, but not on remote server
I'm a begginer in JAVA and i'm developing an initial application for some reserch of my college. I use Spring MVC and Thymeleaf for the app, it work normally in local tomcat when i generate the war ...
2
votes
1
answer
58
views
why a project that contain spring data dependency doesn't work on tomcat9?
I am trying to deploy a small springboot app on tomcat9 , the tomcat9 is on ubuntu 20 on my account in digital ocean .
the problem when i am adding the spring data dependency in the pom file :spring-...
0
votes
1
answer
15
views
gradle war CopySpec “add only” (no override)
I’m trying to set up the files that are copied to my war.
The source directory has 2 directories, and some of the files below them should be added to the war. This works when the directories are ...
0
votes
0
answers
41
views
MyBatis - jar packed in war
I'm trying to run application with MyBatis on Tomcat 9, but I get an error:
java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for cz.pse.agata.commons.dto.mapper....
0
votes
2
answers
121
views
uploading the war file to Azure web app, 404 error
In an attempt to learn and publish the war file to azure web app, I am using Azure Cli and publishing the war file. I followed the below article from microsoft documents.
https://docs.microsoft.com/...
-1
votes
1
answer
60
views
publish war file to Azure Web Service
At first I want to mention, I did try some articles and also tried to get help for existing question/answer regarding deploying the war file to Azure web app but I didn't really got any where. I am ...
0
votes
0
answers
30
views
How to add Cache-Control : "no-cache" in Apache with mod_headers so it is used by Tomcat 9 deployed war during my requests
I have Apache + Tomcat with a war
I have tried to add my headerlike this:
RequestHeader set Cache-Control "no-cache" in my httpd.conf
under my VirtualHost tag but the header is not add ...
0
votes
1
answer
42
views
Possibility to access wildfly / app server libraries via jboss-deployment-structure.xml?
I have a web application running on a wildfly app server (22.X). It contains a war file which has the ability (besides the actual functionality) to query the wildfly itself for its active running ...
0
votes
0
answers
33
views
Deployment web app Jakarta EE9 and React on heroku, failed when fetching from backend
I created simple app using jakarta ee 9 and react. I integrated react into jakarta and everything works fine when I deploy on localhost. Problem occured when i deployed war on heroku. React cant fetch ...
0
votes
0
answers
20
views
Deploy War File 404 HTTP
I'm new with Java stuffs and I'm trying to deploy a form. I following these steps:
cd form_spring_java
mvn clean package
cd target
copy war file to tomcat/webapps/
before deploy, I ran java -jar file....
0
votes
0
answers
90
views
Is there any vulnerability scan tool for a spring boot application war file?
I have a spring boot application war file and is there any way to scan the vulnerablity of this war file or any tools available to scan the deployable war file to find the vulnerability
0
votes
1
answer
53
views
Hot to add a war dependency in maven without having it overlayed
We are developing a Java web application to be deployed as a war file in Tomcat9.
We want to have some other war files that need to be deployed separate war files due to the system architecture. They ...
1
vote
2
answers
1k
views
Spring4Shell- CVE-2022-22965 is the application vulnerable if using Java 8? [duplicate]
Is my system affected by spring4shell vulnerability if it uses Java 8?
Configuration
java 8
Spring version : 3.1.3.RELEASE
Packaged as executable WAR
Deployed on tomcat server
1
vote
1
answer
142
views
Set classpath in a container for a war file depoyed with tomcat
I have a war file that I deployed with Tomcat.
I have a Dockerfile and at the end I build a kubernetes pod.
The problem is that if my property files from my app do exist in the path: /usr/local/tomcat/...
-1
votes
1
answer
57
views
How to run a Spring Boot application previously deployed on an application server in docker on AWS? [closed]
I have a Spring Boot application that needs to be deployed as a docker container on AWS. In our old production environment we packaged the application as a WAR file and deployed it to an application ...
0
votes
0
answers
174
views
java.lang.NoSuchFieldError on apache.poi libraries in Websphere App Server 8.5.5
I'm encountering issues dealing with org.apache.poi libraries from this line XSSFWorkbook wb_template = new XSSFWorkbook();.
The initial error is java.lang.NoSuchFieldError: org/openxmlformats/schemas/...
0
votes
0
answers
11
views
deploy .war file in Tomcat 10 [duplicate]
I am trying to deploy .war file in Tomcat 10.0, it is not a servlet app.
First of all I tried with this example: https://tomcat.apache.org/tomcat-5.5-doc/appdev/sample/
I downloaded sample.war file ...
0
votes
0
answers
33
views
How to bundle war file containing rest code with jax-rs dependencies so that it runs on Tomcat?
I'm using a Gradle based-setup to build a REST web service (with Jax-Rs and glassfish.jersey dependencies). I'm using the Gradle-tomcat plugin (bmuschko-gradle-tomcat-plugin) to deploy it on tomcat ...
0
votes
1
answer
34
views
Maven Plugin: Manipulate resources during packaging
in my maven project, I've got a xml file in resources. Depending on some input parameter I want the file to be adapted before packaged into a jar or war. Of course, the original file shall not be ...
0
votes
0
answers
37
views
how to build and deploy a war file in cmd?
i would like to deploy manually the war file of my project on tomcat (inside my computer). what i did is build the war file with the command jar -cvf NAME.war *. when i place it inside the webapps ...
0
votes
0
answers
23
views
How to make M2E (Maven for eclipse) include required eclipse projects in WAR
I'm starting to use Maven (M2E) on Eclipse.
I have two projects
->Tools
->Main
The Main project requires the Tools project. I add "Tools" under the "Main"->"...
0
votes
1
answer
77
views
Project as dependency not packaged in .war file
I have a Jersey Tomcat project B that depends on another similar project A, I am developing on Eclipse.
When I run A on it's own, it runs with no problems. The export configuration for its build path ...
1
vote
0
answers
70
views
Is there a compatible webpack war plugin for webpack v5?
I need to utilize a plugin for webpack that creates a war file for my build outputs. I recently upgraded to webpack 5 and discovered that webpack-war-plugin is incompatible with webpack 5 because a ...
0
votes
0
answers
35
views
Status HTTP 404: with a Spring Boot api web service developed with Intellij via remote Tomcat server
I created a spring boot initializer type web service under Intellij.
I can access my api in localhost via the ide server.
Example of api: http://localhost:8088/indicatorMissing/api/listCircuits
But ...
0
votes
0
answers
50
views
maven assembly plugin war packaging unexpected output result
I tried using the maven war plugin but is very opinionated on the folder structure and I need specific files into specific folders, so I've looked into using maven assembly plugin with the war format ...
0
votes
0
answers
60
views
How to config and sync logs of two WAR files in a single log file using log4j 1.2.7?
I have multiple WAR files (WAR-A, WAR-B and WAR-C) for which I want to have all logs into a single log file "ABC.log". I have created three "log4j.xml" with the same configurations ...
0
votes
0
answers
163
views
Need Gradle task for side effects only, but I'm getting tons of warnings about missing implicit/explicit dependencies
As of upgrading to Gradle 7.x, I'm getting tons of these in my build:
Gradle detected a problem with the following location: '/Users/me/myapp/server/build/libs/myapp-server-1.0-SNAPSHOT.jar'. Reason: ...
0
votes
0
answers
52
views
How do I Configure pom file to generate war file
This is what I have to accomplisherror message I get after I put packaging war tag.image is a web based IDE what do I fill in instead of "insert your code here" and what necessary steps to ...