Questions about running Apache Tomcat 7 as an embedded server in another application.
Questions tagged [embedded-tomcat-7]
155 questions
0
votes
1 answer
Guice Servlet with Embedded Tomcat
I am trying to introduce Guice(v3.0) in my project. I am using embedded tomcat(v7.0.34) and Jersey(v1.18) to host rest services.
Before introducing any Guice dependency injection I had the following configuration
//Main Class
Context context =…

user959135
- 31
- 5
0
votes
1 answer
How to run spring-boot embedded tomcat with tiles in eclipse?
I have got a spring-boot application packaged as an executable warfile, supporting embedded tomcat with spring mvc, jsp and tiles.
When starting the built webapplication in a shell with java -jar app.war, I get the service running successfully.…

guido
- 18,864
- 6
- 70
- 95
0
votes
1 answer
Unable to deploy spring boot project on tomcat 7.0.21 version
I have deploying maven project on two tomcat version i.e 7.0.21 and 7.0.56.on 7.0.56 version it work fine and on 7.0.21 getting issue.
org.springframework.boot
…

Charnjeet Singh
- 3,056
- 6
- 35
- 65
0
votes
1 answer
Configure eclipse tomcat to run multiple web application
I am using Eclipse and configured tomcat in eclipse. I want to run Tomcat in debug mode from Eclipse. I have two application under my server.
tomcat-instance
> site1
> site2
I want these two application to start when I run tomcat in debug/start…

MAK Ripon
- 1,065
- 4
- 14
- 27
0
votes
1 answer
How can I configure embedded tomcat to listen to port 80 and 8443?
I am using embedded Tomcat with Spring and I configured it programmatically to listen to port 8443 for https and it works. Below is my code snippet from my Apllication.java file. How can I configure it to also listen to port 80 for http…

Rania
- 11
- 3
0
votes
1 answer
When I run grails run-app command I get Caching deactivated failed to create cache
I'm using Grails 2.3.5 on Windows and have created the project using grails create-app command from the command line. When I run grails run-app --verbose from the command line I get the exception below.
Caching deactivated: failed to create cache…

Shawn H
- 13
- 4
0
votes
1 answer
Configuring Logging for Grails Standalone App Runner
I am writing a Grails app and would like to use the Grails Standalone App Runner that packages your Grails app into a fat JAR with an embedded Tomcat container.
I would like to configure logging for the embedded Tomcat container will use to store…

smeeb
- 27,777
- 57
- 250
- 447
0
votes
0 answers
Embedded tomcat app with maven works with mvn tomcat7:run, but the jar produced from mvn package does not
I am trying to follow this to make my webapp into a jar file. If I do mvn tomcat7:run the app works great. But if I use mvn package to generate the jar file and execute the jar every page has a 404 error saying The requested resource is not…

akee
- 13
- 3
0
votes
1 answer
Port forward requests from 80 to respective ports
I have many spring boot jars running in different ports. Say 9087-9090. I have a domain say
mydomain.com.
I can access mydomain.com:9087/ and use the application. Also mydomain.com:9088/ and use another application but how can i use them just like…

Vinodh Thiagarajan
- 758
- 3
- 9
- 19
0
votes
1 answer
Loading resources in Tomcat
I am trying a simple web application in tomcat 7. It has a javascript call in the index.html which loads a properties file. Using the below code to make a get call,
var req = new XMLHttpRequest();
req.open("GET",…

Victor
- 1,207
- 2
- 13
- 21
0
votes
1 answer
Eclipse dynamic web project not running on tomcat server
I've installed a Tomcat server to my Eclipse (Kepler), so why does it need an internet connection when I run a dynamic web project?

suma
- 13
- 3
0
votes
1 answer
Eclipse/Tomcat publishing unnecessary/problematic dependencies
So first off, a little background.
I am working on converting an Eclipse Java Web Project to Gradle. We use the Vaadin framework and currently manage the project with Ant/Maven/Ivy. We have another project that contains common code that the web…

asymptoticFault
- 4,491
- 2
- 19
- 24
0
votes
1 answer
Embedded Tomcat doesn't execute jsf pages
SOLVED: I used the wrong namespace, see explanation after this post.
When trying to run embedded tomcat and navigating to a jsf page, the jsf tags are simply rendered into the page and they doesn't get executed.
EDIT:
I added this maven project…

user2706510
- 141
- 1
- 9
0
votes
0 answers
Embedded Tomcat, Jersey, and WebApplicationInitializer not loading
I am attempting to embed tomcat in my existing Jersey web application.
I am able to get Tomcat running no problem, and even loading my JSP's from the webapp dir. The issue is getting it to see my WebApplicationInitializer class like it does in the…

sierratrailrunner
- 33
- 5
0
votes
2 answers
How to run a main after embedded tomcat is run
There is a java webapp with an embedded tomcat 7 that is built with this instructions (Using tomcat7-maven-plugin).
this webapp is launching with a jar file like this: java -jar webapp.jar
Question: How to run a main class after launching this…

Amin Sh
- 2,684
- 2
- 27
- 42