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,756
questions
0
votes
0
answers
17
views
Oracle Weblogic: Application never RUNNING, always STARTING in and no errors in logs
After adding the war to the Weblogic 12 console, we always see STARTING status in server, and when checking the server logs we see no errors. The status of the war in console is NEW, not even deployed ...
0
votes
1
answer
21
views
Where can I find a list of TomEE 9.x / tomcat 10.0 provided jars?
I am using TomEE webprofile. When building a WAR file for deployment, my POM includes "provided" dependencies. So, for example, the jakarta.platform is "provided". But also, I ...
1
vote
1
answer
28
views
Deploying WAR with multi-version jar fails
I am currently constrained to JDK17. I build with maven and a dependency requires a further jar of jackson 2.15.0 which jar is a multi-release with versions for Java 11, 17 and 19. I am building a ...
0
votes
1
answer
22
views
How to fix mbeans javax.management.InstanceAlreadyExistsException
We are deploying vendor provided WAR files inside Wildlfly an we get the below error. This error is occurring only when the second war file is getting deployed.
We understand that there is duplicate. ...
1
vote
1
answer
33
views
Deploy springboot to WebSphere
I am trying to deploy my spring boot application on WebSphere 9 but is giving me:
Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /test
My pom is
<project xmlns="http://...
0
votes
0
answers
7
views
Wildfly 29 - War artifact doesn't work in a Remote Virtual Machine but it does in a local environment
I have a wildfly 29 built in my local environment, with Windows 11 in which I deploy an application that logs in through JAAS and if the login is successful it redirects me to the application, ...
0
votes
1
answer
24
views
Spring Boot - Create a Deployable War File - Warning
In the Spring Boot documentation there is a warning (https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle//#howto.traditional-deployment.war):
Because Spring WebFlux does not strictly ...
0
votes
0
answers
20
views
How can I Export an imported dynamic web project as a WAR file using Eclipse IDE?
maybe could sound like an obvious question but I'm stuck with this problem since long time ago.
I have bunch of working dynamic web projects to import in Eclipse and I usually import them like File -&...
0
votes
0
answers
24
views
Set up 2 webapp in same war file
Our Angular project is currently deloyed with a war to websphere server. The Angular project is built into css, htmls and index.html. These files are put under the webapp folder and maven build/...
0
votes
0
answers
21
views
build config error: file does not exist when building a .war file
I'm trying to build a war file for my java project by using gradle task. However,I feep getting this error, but I do have ajc.options in my project, What did I do wrong?
Working Directory: C:\Users\...
0
votes
0
answers
30
views
Task :app:compileJava FAILED: file does not exist
I'm trying to build a war file for my java project by using gradle task. However,I feep getting this error, but I do have ajc.options in my project, What did I do wrong?
Working Directory: C:\Users\...
0
votes
1
answer
51
views
How to adapt this Angular-SpringBoot-Maven build to a WAR for Tomcat?
There's a very elegant solution put forth by Marco Molteni for building a web-app with an Angular front end and a Spring Boot backend with one Maven build. Unlike some other solutions, it doesn't ...
0
votes
0
answers
36
views
Java/Tomcat. After some time there are exceptions of Class loading
Upon deployment my application works but after some time it happens that there are java.lang.NoClassDefFoundError at javax/imageio/impl/IIOInvalidTreeException at com.github.jaiimageio.impl.plugins....
1
vote
2
answers
74
views
How to Import Spring Boot (Maven project) war file in Eclipse for edit files
I have Spring Boot war file (Maven project). I want to import war file in Eclipse but it only open packages but no Java files are loaded but I want to edit those files.
I tried to import as web (war ...
0
votes
2
answers
56
views
Shared war between virtual hosts
I am running Tomcat 8.5 on a windows server. I have setup a virtual host in the server.xml so that I now have domain1.com which goes to the defaultapp and domain2.com which goes to the virtual host. ...
0
votes
1
answer
37
views
Why there is no WAR file under my Java project upon export?
I am trying to build my project using the WAR in Java, but it is not visible upon exporting, I can't find the same problem as mine. Does anyone encountered this issue and how did you resolved?
Please ...
0
votes
0
answers
50
views
Gradle plugin for Tomcat 10 With Spring Boot 3 and Spring Security 6
I was earlier using Spring Boot 2.6.6 and Tomcat 8. Now I upgraded to Spring Boot 3.1.3 and Spring Security 6. The plugin used earlier was com.bmuschko:gradle-tomcat-plugin:2.7.0 but it has support ...
0
votes
0
answers
14
views
Package individual files into WAR
Not sure Ant can do this. I have an existing WAR project that can be packaged with existing Ant script (not written by me). The WAR package works fine as it is on Tomcat.
Now I want another separate ...
0
votes
0
answers
110
views
Deployed war file not working in external tomcat 10: unable to start web server in deploying war file in webapps folder
Deployed war file not working in external tomcat 10
It's just a simple test with jsp page and spring boot
Software:
Eclispe IDE (ultima versione)
Java 17
Tomcat 10
SpringBoot 3.1
Maven
Details
-0....
0
votes
0
answers
11
views
gradle war plugin: make jar instead of classes for WEB-INF/lib?
gradle war plugin:
src/main/java/
webapp/
Currently class files are put under WEB-INF/classes.
Is there an option to create jar from class files and put it under WEB-INF/lib?
The reason for ...
0
votes
0
answers
46
views
Why do we need to reconfigure with SpringBootServletInitializer to build war for external Tomcat
1- I am adding below configurations in Spring Boot application to build war file to deploy on external tomcat server and I am able to build successfully.
2 - But my problem is I am unable to run ...
0
votes
1
answer
107
views
Open Liberty EAR Deploy: NoClassDefFoundError. Server does not load libraries in Web Application WEB-INF/lib folder
Trying to deploy a legacy enterprise application to Open Liberty 23.0.03 (until now, it was working Webshpere 8.5).
The EAR structure:
Starting the server and trying to inizilice spring context and ...
0
votes
0
answers
30
views
invalid header field error while running in appace tomcat a war file
I have build a web app from eclipse and it got successfully get the war file and run as server using tomcat 9. It is also run from eclipse and api response is also as expected. But if I run directly ...
0
votes
0
answers
20
views
Troubleshooting Tomcat Deployment Issues with WAR Files"
I am trying to deploy my application to Tomcat and using the war file. I have extended application with springboot servelet and also add the tag in the property and started the external Tomcat. After ...
1
vote
1
answer
16
views
Intellij: save tomcat path in exported run configuration
I'm trying to copy an IntelliJ Tomcat Run Config between 2 linux VMs, but the Application server path doesn't get saved.
Is there a way to save the path to the Application server in the Run Config xml?...
0
votes
0
answers
29
views
Communication between two spring controllers from different spring applications deployed into single tomcat server
I have few spring applications deployed into single tomcat server. Those applications are part of single WAR. Each application has it's own dispatcher servlet with respective controllers behind of it.
...
0
votes
0
answers
11
views
Gradlew war creation not including env variables
I am developing a backend application in Kotlin with Ktor and using Intellij. When deploying it, I use ./gradlew war to create a war file.
Until now, this worked perfectly until we moved some secret ...
0
votes
1
answer
123
views
The process cannot access the file because it is being used by another process when bulding project using maven
Have a problem with bulding multiple project using maven.
Java 1.8.361 (but trying 1.8.202 too)
Getting this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war (...
-1
votes
1
answer
138
views
Extracting java source code from WAR files
Is there a way to extract java source code from WAR files?
I have tried using different mechanisms to extract the source code, but it yielded no desired results. I used command prompt it seems there ...
0
votes
1
answer
51
views
Places to host Java WAR projects for a portfolio? Cheap or Free
Does anybody know of any sites that let you host java .war project files for free or cheap?
I want to host some applications for a portfolio, so I'm not looking for the most robust service.
I'm aware ...
0
votes
0
answers
445
views
ERROR [io.undertow.request] (default task-175) UT005023: Exception handling request to /App/Loginaction: java.lang. NullPointerException
I am encountering an error after successfully deploying my .war file and accessing the web page. The page loads successfully, but upon entering my username and password, I receive an error. Can anyone ...
0
votes
0
answers
23
views
Communication between 2 wars in the same Java Servlet Container
How do I call a war endpoint from a war that is running in the same server? The same way a client would do or is there any way of doing this interaction more "light" (without involving HTTP)....
0
votes
0
answers
17
views
Catalina folders handling with two different users
I have two users in a Linux environment.
Let's say: prod and run. They have different responsibilities.
prod installs a java war based application with an external Tomcat. And it also updates this ...
0
votes
0
answers
14
views
WAF FILE could not EXPORT due to no WEB PROJECT option found
I was trying to create a war file on spring tool suite 4 (windows version). But as I was about to export the it to the local file system, I couldn't find the web project (wiseai-console) option of the ...
0
votes
0
answers
13
views
How to add same Dependencies to two different War - Gradle
I am working on Project where we are creating different artifacts with Jar and wars. I have situatuon where I need to create separate War file as mentioned in the code with name "email" task....
0
votes
1
answer
102
views
logging.config in application.properties gets not picked up
currently, I am working on a Spring Boot application that I bundle and deploy as a war to a Tomcat Servlet Container.
I want to configure log4j2. When I include a file named log4j2.xml the ...
-1
votes
1
answer
153
views
Deployed SpringBoot War file in tomcat is not working [closed]
I have deployed WAR file in tomcat server. It was successfully deployed as bellow,
enter image description here
But when I click my-app link(Deployed) in tomcat page, the bellow 404 message comes ...
0
votes
1
answer
443
views
Tomcat external server doesn't start my spring boot application with /jdk17 and /windows 11
Tomcat external server runs, but doesn't start my spring-boot application, even when I check the logs I don't see the spring-boot log Started this one : I tried many solution and I mentioned everythin ...
3
votes
3
answers
264
views
How to use OpenJDK JOL (or similar tool) in WAR on WildFly to measure object size?
We have a Java EE application on WildFly 26 and OpenJDK 1.8, deployed as EAR and containing a JSF application in a WAR file.
I like to measure the size of a list of HttpSession objects, so I need ...
1
vote
0
answers
107
views
"HTTP Status 404 – Not Found" after deploying Spring Boot WAR file to Heroku
As a follow-up to this question, I deployed my Java Spring Boot app as a WAR file to Heroku via mvn clean heroku:deploy-war. The deployment was successful. However, when I open the URL via heroku open,...
0
votes
0
answers
54
views
How can I run my Spring Boot web application in exploded mode in java?
I want to made my spring boot application to be exploded so I can make changes in the code and watch it at the moment. I try it a lot of method but any of them works.. I need some help with this. ...
0
votes
1
answer
130
views
After wildfly18->26 java8->17 ear->war upgrade wildfly doesn't use ejb-jar.xml's MDB settings
My wildfly26.1.3 doesn't start. Failed with this exception:
Exception:
15:26:45,329 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0215: Failed to resume activity org.jboss.as.ejb3....
0
votes
0
answers
80
views
tomcat is responding The requested resource is not available
I have installed tomcat 10.1.8 when i put my war file inside webapps i get "The origin server did not find a current representation for the target resource or is not willing to disclose that one ...
0
votes
0
answers
86
views
Uncaught TypeError: Cannot read properties of undefined (reading 'Component')
getting 404 error
war packaging through mvn package command.
local it is working, when we deploy to tomcat screen is not loading.
routing..
<Route path='/demo/:id' exact component={demo}/>
...
0
votes
0
answers
256
views
Intellij Smart Tomcat Plugin
I was using the SmartTomcat plugin on Intellij Community Edition, I set the deployment directory to the wtpwebapps in the Tomcat 9 folder, and after running the smart tomcat configuration, I was able ...
0
votes
2
answers
640
views
Spring Boot accessing JSP directly from URL works from within IDE but does not work after packaging as WAR
I have a spring boot project based on Maven.
When I Run/ Debug this project from within the VS code, and check the URL http://localhost:8080/employeeView.jsp, I get the desired results.
But when I try ...
0
votes
0
answers
63
views
Eclipse won't allow me to select Dynamic Web Module in Project Facets
I'm new to Eclipse, and trying to enable "Dynamic Web Module" within Project Facets. Every time I select it and then apply, it simply unchecks itself. I've tried different versions of it, ...
0
votes
0
answers
112
views
spring boot thymeleaf project not running as war in external tomcat
I've developed project in Spring Boot Thymeleaf. When I packaging as war, it seems all good, but when I run it on Tomcat it doesn't start.
First, I added in pom as
<packaging>war</packaging&...
0
votes
0
answers
59
views
Wildfly CI/CD on Jenkins
I am trying to build a pipeline for using Jenkins for CI/CD of a JAVAEE/Wildfly
maven application. So, for that I am using the wildfly-deployer plugin on jenkins, and there is this step where to Copy ...
1
vote
1
answer
69
views
Can we make build of Angular project using Apache Ant build.xml?
I am trying to build of the Angular project using Apache Ant via build.xml but I could not find anything on internet, is it even possible to make build of Angular project using Apache Ant via build....