Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
102 votes
3 answers
150k views

How do I update a Tomcat webapp without restarting the entire service?

I'm new to Tomcat. We have a dev machine with about 5 apps running. Even though it's dev, it's used by our clients pretty heavily during testing. So say we need to make one small change on one ...
cbmeeks's user avatar
  • 11.4k
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 ...
knorv's user avatar
  • 49.7k
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 ...
Eric Wilson's user avatar
  • 58.9k
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 ...
Legend's user avatar
  • 116k
41 votes
8 answers
114k views

How to deploy war file to tomcat using command prompt?

I have created a war file and put into tomcat/webapps. How to deploy a war file to tomcat using command prompt?
user3607853's user avatar
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 ...
John's user avatar
  • 2,581
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 ...
user660450's user avatar
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/...
opensas's user avatar
  • 62.2k
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 ...
jW.'s user avatar
  • 9,300
29 votes
9 answers
34k views

The username you provided is not allowed to use the text-based Tomcat Manager (error 403) when deploying on remote Tomcat8 using Jenkins

I am trying to deploy a WAR on the remote Tomcat (Remote Machine) using Jenkins deploy to container Plugin. I have done the following configuration in tomcat-users.xml <user username="deployer&...
harshlal028's user avatar
  • 1,579
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 ...
AdjustingForInflation's user avatar
24 votes
4 answers
69k views

How to deploy Java web application project from Eclipse to live Tomcat server?

I have developed an web application using HTML, Java Servlet and all. While developing I was using Tomcat to deploy it in order to test it. Now my development is done and I want to make it live. For ...
mahesh's user avatar
  • 4,723
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 ...
Mehraj Malik's user avatar
  • 15.4k
22 votes
6 answers
51k views

Stop a web application tomcat from command line

I'm writing a bash script that automatically deploys an application to a tomcat server. How can I stop the application from bash / command line?
Michael Küller's user avatar
22 votes
6 answers
15k views

The simplest way to deploy to production with builds

I must confess I'm new to maven world after years of living in the world of monstrous debuild/ant/makefile chimeric constructions. I just don't have yet that very feeling which helps seasoned ...
shabunc's user avatar
  • 24.3k
21 votes
1 answer
20k views

Eclipse on-click deploy to remote Tomcat

I've been looking for this all-over the internet and somehow I can't find a easy way to do it. What I need is really simple and I believe that many of you probably do it already: - I develop Java ...
dev.pt's user avatar
  • 365
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-...
John Smith's user avatar
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 ...
mckamey's user avatar
  • 17.5k
19 votes
6 answers
14k views

Why does tomcat replace context.xml on redeploy?

Documentation says if you have a context file here: $CATALINA_HOME/conf/Catalina/localhost/myapp.xml it will NOT be replaced by a context file here: mywebapp.war/META-INF/context.xml It is written ...
artemb's user avatar
  • 9,311
18 votes
6 answers
28k views

Deployment of war file on Tomcat

Is there a way to deploy a given war file on Tomcat server? I want to do this without using the web interface.
Milhous's user avatar
  • 14.6k
18 votes
3 answers
6k views

Best deployment strategy for PlayFramework applications?

This question is server oriented. I have a hosted server (a rather small one, 1,6Ghz atom, 2Go, 200 GO) with a couple (4 or 5) play apps and more coming. Most of these apps have a real small usage, ...
i.am.michiel's user avatar
  • 10.4k
17 votes
7 answers
150k views

FAIL - Application at context path /Hello could not be started

I'm trying to deploy new web application in Tomcat 6.0, but whenever I click on start button, I repeatedly getting FAIL - Application at context path /Hello could not be started. Other deployed ...
Dusk's user avatar
  • 2,201
15 votes
8 answers
31k views

Deployment Assembly: The currently displayed page contains invalid values

I imported a Java Web application from Sourceforge, and I did three working weeks efforts to get rid off all red crosses attached to the project name and packages, but now I couldn't make the ...
user1968576's user avatar
15 votes
3 answers
930 views

Deploy Only Diffs in Webapp with Maven to Remote Server

I am using cargo:deploy with maven to deploy applications to servers. This works well, but I recently tried using CloudBees. They have a similar plugin for their infrastructure. However, it deploys ...
Mark's user avatar
  • 1,238
14 votes
5 answers
66k views

How can I deploy an Angular 2 application on tomcat server (Windows Server 2012)

I'm new in AngularJS 2 framework and I'm stuck! I want to deploy an application (quickstart for example) on a Windows Server 2012. I have already installed Apache tomcat on it. What I did : I used ...
altd's user avatar
  • 181
14 votes
8 answers
26k views

Is there a way to enforce a deployment order in tomcat6?

I have 3 wars in my webapp folder. Two of them are built on services of the third one. I'm in a testing environment, i.e. I don't have control over their architectures, so I'm no able to change a ...
wleao's user avatar
  • 2,336
14 votes
6 answers
15k views

Deploy a war to tomcat

In the past 10 years or so, I had the opportunity to deploy web applications into a tomcat countless times. I also wrote several scripts trying to do that automatically, but never managed to ...
krakover's user avatar
  • 3,009
14 votes
3 answers
11k views

Is hosting a Netty Server inside Tomcat feasible/desirable?

We building a Netty/NIO based service, and I'm considering the deployment of this service to our production environment. Our standard way of deploying services is as WARs, to be deployed inside ...
14 votes
2 answers
13k views

Deploy angular application on Apache Tomcat 404 deep links issue

I'm trying to figure out the way how to setup Apache Tomcat server to serve angular application with deep links. For example: A static server routinely returns index.html when it receives a request ...
Ante Vuletic Antic's user avatar
14 votes
1 answer
26k views

IntelliJ web application context path

In my IntelliJ web app, I have set the application context to myapp as shown below When I set the Application context, it doesn't seem to have any effect. I was expecting the app to be deployed to ...
Jeff Storey's user avatar
  • 56.9k
14 votes
4 answers
14k views

How to disable specific apps from starting during Tomcat startup?

My company is preparing a new production box while the current one is running. I would like to proactively install applications in Tomcat container of the new production box but would like to keep ...
BobbyF's user avatar
  • 141
13 votes
4 answers
11k views

Deploy war on Tomcat without the war name in the URL

I built a war file called myapp.war and deployed it on Tomcat. I've changed the port from 8080 to 80 so I can then get to it at example.com/myapp (where example.com is my host). How can I get ...
George's user avatar
  • 133
13 votes
2 answers
52k views

How to deploy a Eclipse Java Web Dynamic Project on Amazon EC2?

I'm trying to create a web project that is able to communicate with Amazon RDS. I know how to make a localhost project connect to a RDS with JDBC. However, the problem is that I never tried to deploy ...
user1157751's user avatar
  • 2,457
13 votes
2 answers
27k views

Java Web Project not building correctly

I've got a Java Web Project which I'm deploying to a Tomcat embedded in Eclipse's Servers Plugin, alas, when I navigate to the location of that webapp after publishing/starting the server, the .class ...
Dennis Röttger's user avatar
13 votes
6 answers
23k views

War deployment on Tomcat takes ages

I have a Grails application, built to a war file (~30mb). When I attempt to deploy the war file on Tomcat 6 via the application manager, it takes upwards of 10 minutes to deploy, or hangs indefinitely....
Thody's user avatar
  • 1,980
12 votes
2 answers
21k views

Changing the context path of deployed (Spring Boot) war on a container tomcat server. So it is not demo-0.01-SNAPSHOT

I have tried to deploy my site using many configurations to make it change from the war name being deployed. Is there a way to do this easily. The deployment will to a tomcat sitting somewhere else. e....
Denis's user avatar
  • 191
12 votes
7 answers
19k views

Can't get Jenkins to start using Tomcat

I'm having a problem trying to deploy Jenkins war to Tomcat. I'm using CentOS with Java 1.6.0_28, Tomcat 6.0.24 and last version of jenkins as of January 21, 2014. I think the problem is more ...
Reydel Leon's user avatar
  • 1,075
12 votes
1 answer
27k views

Tomcat Intellij Idea: Remote deploy

RackSpace Cloud Server Ubuntu-12.04, Intellij Idea-11.1.2, Windows-8, Tomcat-7.0.26, JDK-6. On Intellij Idea when i try to run jsf project on my remote Tomcat 7 server it says: Error running ...
Ömer Faruk Almalı's user avatar
12 votes
1 answer
5k views

JSF managed bean causing java.io.NotSerializableException during Tomcat deployment

At deployment of my webApplication on Tomcat 7 I am getting the console output below. After restarting the server twice or three times it works without exceptions. I am using JSF, Tomcat and an RMI ...
Sven's user avatar
  • 6,318
12 votes
3 answers
39k views

How to Deploy to Intellij IDEA Tomcat Folder?

I use Intellij IDEA 11.1.2 Ultimate Edition. I run Tomcat 6 from Intellij IDEA. Beside my .war application I have another folder that has static HTML files. When I run tomcat manually from command ...
kamaci's user avatar
  • 74.3k
12 votes
2 answers
12k views

FAIL - Failed to deploy application at context path /ROOT. Deploy plugin of jenkins failling to deploy

Attempting to set up jenkins and its container deploy plugin. However, I am receiving the following stacktrace : ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception org....
NimChimpsky's user avatar
11 votes
8 answers
61k views

How to deploy to Tomcat from NetBeans?

I've added Tomcat in the "Tools > Servers" menu and as you can see it appears in the list of servers: But when I try to run my project, I cannot select Tomcat! The drop-down with servers is empty. I ...
deamon's user avatar
  • 91.3k
11 votes
3 answers
44k views

How to set context path in Tomcat so one could enter the site without appending the deployed folder name?

I read about this on Tomcat guide here and some SO questions. And I think I'm pretty much doing the same thing. But in some way cannot manage to succeed. First of all I have to say that my ...
doctrey's user avatar
  • 1,227
11 votes
5 answers
10k views

Best way to deploy large *.war to tomcat

During development I frequently have to deploy a large war-file (~45 MB) to a remote test server, normally I copy the file with scp to the server. The WEB-INF/lib folder makes up the largest part of ...
Alex's user avatar
  • 4,063
11 votes
2 answers
4k views

How to deploy multiple Grails apps on one Tomcat + Apache?

I've read the several questions on StackOverflow and googled several hours but I can't find a complete and clear answer to my problem of deploying multiple Grails apps on one tomcat 5.5 (with Apache). ...
Jörg Rech's user avatar
  • 1,219
10 votes
4 answers
41k views

how to deploy reactJS application on Tomcat Server

I am new in reactjs, I want to deploy my reactjs application on tomcat server instead of running on react server which is default port is 3000. I run the npm serve command for running the npm local ...
Pravin Abhale's user avatar
10 votes
3 answers
60k views

Change Tomcat Address on my localhost

On my Tomcat, I have an HTML page. I need to type the following address to make it run: http://127.0.0.1:8080/BiddingSystem/BiddingSystem.html but I want it to be accessed using this address: www....
Noor's user avatar
  • 20k
10 votes
3 answers
85k views

How to deploy war files to tomcat manually?

I have a war at location "C:\Documents and Settings\myProj.war". The web project is also available at "C:\Documents and Settings\myProj". I want to deploy this to one tomcat. location of the ...
Patan's user avatar
  • 17.7k
10 votes
4 answers
96k views

Deploying a WAR in Tomcat / Eclipse

I use Tomcat 6.0 and Eclipse 3.0 under Linux and I try to deploy a WAR in Tomcat. The problem is that the server is managed by Eclipse and I have some Eclipse project deployed. I tried to modify the ...
Loïc Guillois's user avatar

1
2 3 4 5
19