All Questions
Tagged with deployment java
2,475
questions
618
votes
9
answers
385k
views
.war vs .ear file
What is the difference between a .war and .ear file?
207
votes
27
answers
334k
views
Causes of getting a java.lang.VerifyError
I'm investigating the following java.lang.VerifyError:
java.lang.VerifyError: (class: be/post/ehr/wfm/application/serviceorganization/report/DisplayReportServlet, method: getMonthData signature: (...
135
votes
3
answers
175k
views
How to specify maven's distributionManagement organisation wide?
I'm trying to figure out how to organize many (around 50+) maven2 projects, so that they can deploy into a central nexus repository. When using the mvn deploy goal, one does need to specify the target ...
125
votes
9
answers
523k
views
Can not deserialize instance of java.lang.String out of START_OBJECT token
I'm running into an issue where my deployable jar hits an exception that doesn't happen when I run this locally in IntelliJ.
Exception:
Receiving an event {id=2, socket=0c317829-69bf-43d6-b598-...
92
votes
3
answers
168k
views
repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter
I'm having a problem while deploying and here is the error message I get:
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ core ---
[INFO] -------------------------------------------...
88
votes
6
answers
116k
views
Java Jar file: use resource errors: URI is not hierarchical
I have deployed my app to jar file. When I need to copy data from one file of resource to outside of jar file, I do this code:
URL resourceUrl = getClass().getResource("/resource/data.sav");
File src ...
71
votes
13
answers
52k
views
Embed a JRE in a Windows executable?
Suppose I want to distribute a Java application.
Suppose I want to distribute it as a single executable. I could easily build a .jar with both the application and all its external dependencies in a ...
58
votes
18
answers
22k
views
Best practices for deploying Java webapps with minimal downtime?
When deploying a large Java webapp (>100 MB .war) I'm currently use the following deployment process:
The application .war file is expanded locally on the development machine.
The expanded ...
55
votes
6
answers
49k
views
Can Maven collect all the dependent JARs for a project to help with application deployment?
I'm just starting to use Maven, (evaluating it, really) and I need to be able to quickly generate a JAR file for my application and a directory with all the dependencies (for example, lib) so that I ...
52
votes
4
answers
40k
views
What is the Python equivalent of Tomcat?
This question likely betrays a misconception, but I'm curious what the "Tomcat" of the Python world is.
All of my web programming experience is in Java (or Groovy) so I think in Java terms. And when ...
48
votes
3
answers
2k
views
How do I upgrade to jlink (JDK 9+) from Java Web Start (JDK 8) for an auto-updating application?
Java 8 and prior versions have Java Web Start, which auto-updates the application when we change it. Oracle has recommended that users migrate to jlink, as that is the new Oracle technology. So far, ...
47
votes
16
answers
112k
views
Deploying a WAR file gives me a 404 Status Code on Tomcat?
I am fairly new to Tomcat. I just managed to build a project and exported it as a WAR file. I tried manually copying a WAR file to the Tomcat folder then restarting. It created the folder structure ...
45
votes
5
answers
66k
views
How do I include a dependency's test jar into a Maven project's deployment?
I have two projects, foo and foo-web under the com.example group. foo-web depends on foo.
To be able to develop the UI part of the application without depending on external services, dummy DAOs were ...
45
votes
9
answers
63k
views
Create Windows Installer for Java Programs [closed]
I'm a Java beginner.
I already created a simple GUI application that display will "hello world" label.
But, how can I create an installer from .java or .jar for windows.
Let's say that I have ...
42
votes
8
answers
104k
views
Ant error when trying to build file, can't find tools.jar?
When I run ant it says:
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
Buildfile: build.xml does not exist!
Build failed
What package can I use to ...
41
votes
5
answers
16k
views
maven profiles or spring profiles?
a lot java applications are build with maven. maven has Profiles concept, it is really handy to build release package for different environments. e.g. dev/test/prod using different path / jndiname / ...
40
votes
4
answers
133k
views
How to resolve Error listenerStart when deploying web-app in Tomcat 5.5?
I've deployed an Apache Wicket web-application that uses Spring and Hibernate to my Tomcat 5.5 instance. When I navigate to the Tomcat Manager interface I see that the web-application I deployed is ...
40
votes
4
answers
77k
views
JBoss AS 7 not accepting remote connections
I am using JBoss AS 7 and trying to connect to my application using the IP (from a computer in the intranet). It is not working. If I test from the computer which has the server I can see the system ...
39
votes
14
answers
184k
views
Deployment error:Starting of Tomcat failed, the server port 8080 is already in use
When I run my Java project using Netbeans I get the following error:
Deployment error:
Starting of Tomcat failed, the server port 8080 is already in use.
See the server log for details.
at ...
39
votes
6
answers
85k
views
Where and how to deploy a Java Spring Boot application for free? [closed]
I want to know where and how can I deploy a Java web application made with Spring Boot or an app built with servlets or JSP.
Consider me a beginner in this topic. If you have suggestions about what I ...
36
votes
4
answers
76k
views
How to deploy a JAX-RS application?
The JAX-RS 1.1 specification says on page 6:
If no Application subclass is present
the added servlet MUST be named:
javax.ws.rs.core.Application
What is the added servlet? Could it be an ...
34
votes
2
answers
50k
views
When and why would I need a jboss-deployment-structure.xml for a Spring application?
I am trying to understand how to use JBoss EAP6 with Spring applications. I have a sample OpenShift application and it contains a jboss-deployment-structure.xml file.
I found some documentation about ...
32
votes
5
answers
89k
views
How to manually deploy a web service on Tomcat 6?
I'm learning how to develop SOAP web services with Java.
So far now I've been following this excellent tutorial
http://web.archive.org/web/20120626005333/http://java.sun.com/developer/...
32
votes
3
answers
52k
views
Configure Tomcat to use properties file to load DB connection information
What are the accepted practices for creating a Tomcat deployment that reads configuration parameters from a properties file?
It would be nice to be able to deliver a WAR file and specify that the ...
30
votes
8
answers
64k
views
Java, JPA, Glassfish, Invalid resource : jdbc/__default__pm
I use Glassfish 3.1.2.2 (build 5), JPA, EclipseLink, MySQL
I created MySQL pool via Glassfish admin panel. Ping to MySQL from GF admin panel is ok.
I created app with persistence.xml:
<?xml ...
28
votes
7
answers
24k
views
How to deploy a java applet for today's browsers (applet, embed, object)?
How do i deploy a java applet for modern browsers?
I know there are somehow 3 possibilities but nobody tells me which one to prefer and how to use them.
Does somebody have any resources on that? i ...
28
votes
8
answers
54k
views
Creating an installer for Java desktop application
I know this question has been asked many a times and all the time there is an answer which says about using an executable jar or making an .exe using launch4j or similar app.
I may sound like a ...
26
votes
4
answers
67k
views
java.lang.VerifyError: Expecting a stackmap frame
Is there a way to load a custom HttpServlet to GAE? I uploaded a project that included an HttpServlet in the .server package and added it to the web.xml...
<servlet>
<servlet-name>...
26
votes
9
answers
23k
views
Automated Deployment solution for multiple Java web-apps
I'm looking for solutions, preferably open source, that can manage deployments of multiple interdependent java web-applications.
The solution requires an ability to create and store a release ...
26
votes
3
answers
10k
views
Deploy WAR or "fat" JAR?
I'm noticing a lot of projects (DropWizard, Grails, etc.) starting to embrace the notion of a "fat" JAR (using an embedded web server like Jetty or Tomcat) vs. the traditional WAR deploy. Both methods ...
26
votes
5
answers
12k
views
How do I make a Java app self-update?
Problem: I have a standalone Java app (henceforth known as "the agent") that runs as a service on internal company servers. It acts as a remote agent for some central servers. As the agent gets ...
25
votes
2
answers
7k
views
How to Deploy my Open Source Projects using Maven's Central Repository? [closed]
Is there anything I could do to get my own open source stuff into Maven's Central repository?
I've wondered many times how I could get my own projects into Maven's Central repository. I was asking ...
25
votes
3
answers
29k
views
Java vs C++ Qt : what choice for a gentle deployment? [closed]
I need a bit of wisdom from the stackoverflow.
I'm going to developp a GUI application which will process xml data via forms. I have selected two options : Java (swing or swt) or Qt.
I've already ...
25
votes
2
answers
23k
views
How to write Kafka consumers - single threaded vs multi threaded
I have written a single Kafka consumer (using Spring Kafka), that reads from a single topic and is a part of a consumer group. Once a message is consumed, it will perform all downstream operations and ...
24
votes
4
answers
72k
views
What is the project directory structure for a standalone Java SE application?
What is the standard project directory structure of a standalone Java SE (Command Line based) application?
src folder will contain all my .java files in properly organized packages. Other than that ...
24
votes
1
answer
32k
views
Is it possible to deploy an exploded war file (unzipped war) in JBoss AS 7
I Have no problem in deploying an 'app.war' file when copied into the below deployments folder :
"jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments"; JBoss7 would deploy it properly.
...
24
votes
8
answers
46k
views
Running java without installing jre?
As asked and answered here, python has a useful way of deployment without installers. Can Java do the same thing?
Is there any way to run Java's jar file without installing jre?
Is there a tool ...
24
votes
5
answers
25k
views
Maven deploy jar with dependencies to repo
I can deploy a jar by using the following in my pom.xml and running mvn deploy:
<distributionManagement>
<repository>
<id>releases</id>
<url>http:...
23
votes
4
answers
68k
views
WARNING The requested profile "projectname" could not be activated because it does not exist
I get this WARNING when I try to build my maven project. I have searched google but with no luck. This is really annoying since I wanna release my project but it wont work with this warning (I think). ...
23
votes
2
answers
20k
views
Why it is necessary to extend`SpringBootServletInitializer` while deploying it to an external tomcat
Why should we extend SpringBootServletInitializer in order to run a SpringBoot application to a external tomcat?
If without extending SpringBootServletInitializer it runs on embedded tomcat then why ...
22
votes
13
answers
11k
views
Play Framework application deployment
it's been a long time working on a play app & now comes the time to deploye it. that my first time so i'm kind of lost. which hosting compagny is the best & offer good pricing ?
21
votes
7
answers
2k
views
Configure Eclipse to pre-bundle App Engine classes into a single JAR for faster warm-up
After some discussion with a colleague from another company that also uses App Engine, he told me that he managed to cut down his app warm up time from ~15 seconds to ~5 seconds using the following ...
20
votes
3
answers
21k
views
Netbeans Maven Project Not adding Main Class to Manifest
I am having a similar problem to this question. I have tried all the suggestions listed and am still at a loss. My issue is that I am trying to build a maven project and distribute it to other ...
20
votes
2
answers
8k
views
Creating load balancer failed Reason: Default VPC not found
i m trying to deploy my app spring boot to aws elastic beanstalk , but i got these errors:
20
votes
7
answers
93k
views
Invalid initial heap size. Could not create the Java virtual machine
I've faced the next problem:
I'm trying to start Tomcat manually via startup.bat, but it seems not to show any results, then I've tried to run shutdown.bat and the console shows next:
D:\apache-...
20
votes
2
answers
19k
views
How to use maven plugin tomcat7:run with multiple contexts (WARs)?
I've been using mvn tomcat7-maven-plugin:run -am -pl :foo successfully to run just a single project at a time in Tomcat like is shown here. Now I'd like to have multiple modules run under the same ...
19
votes
3
answers
13k
views
Bundle native dependencies in runnable .jar with Maven
I have a project managed in Maven that has some native dependencies (LWJGL).
Everything works fine in development, but now I want to set up Maven so that it will build a runnable .jar file that I can ...
19
votes
3
answers
13k
views
Is it possible to use multiple ehcache.xml (in different projects, same war)?
I have a services project and a web project. I need to have eh-cache in both projects.
The idea is that if the service project is updated, it's cache-related changes (like keys and invalidation rules)...
19
votes
2
answers
2k
views
How does Jetty deployment on Azure App Service work?
I have a Java web app that I run on an Azure App Service instance. To deploy it, I use a Bitbucket repo with a .war file inside it. When I commit a new .war file to this repo, it is supposed to be ...