Questions about running Apache Tomcat 7 as an embedded server in another application.
Questions tagged [embedded-tomcat-7]
155 questions
0
votes
0 answers
WTP does not pick up JSP as servlet mapping
(I have tried looking for this particular scenario in different forums, but nobody seems to have posted this scenario.)
I have a web application in which I have the following servlet mapping:
test
…

Neel
- 2,100
- 5
- 24
- 47
0
votes
2 answers
Implement a URL Filter
Simple instance of Embedded Tomcat with a Servlet and a Filter:
Tomcat tomcat = new Tomcat();
Context rootCtx = tomcat.addContext("", base.getAbsolutePath());
FilterDef filterDefinition = new FilterDef();
…
user1191027
0
votes
0 answers
Why messages don't show up?
I have message property files in my Spring web application. The following is a related configuration:
@Bean
public MessageSource messageSource() {
ReloadableResourceBundleMessageSource messageSource = new…

vic
- 2,548
- 9
- 44
- 74
0
votes
1 answer
Embedded Tomcat without web.xml throws exception when using jstl
I have a Swing-App which starts an embedded tomcat7 server without web.xml. I load a jsp, which uses jstl. When I access the jsp I get this error in my Swing-App:
18.02.2014 22:32:54 org.apache.jasper.compiler.WebXml
WARNUNG: Internal Error:…

osigge
- 218
- 4
- 13
0
votes
1 answer
Error in running tomcat server for web application
I have installed tomcat server on my eclipse and started it but when i hit the url i am getting error. I have set the port number as 8080.
The error message is :
HTTP Status 404 - /Basic_Struts2_Ant/index.action
type Status report
message…

Akash Goswami
- 306
- 3
- 14
0
votes
1 answer
How do you programmatically configure static assets in Tomcat 8?
I'm programmatically (no web.xml) configuring a Tomcat 8 application and I'd like to load static assets (html, images, css, etc.) from the classpath.
I've done the equivalent for Jetty using ResourceHandler:
ResourceHandler resourceHandler = new…

digitalsanctum
- 3,261
- 4
- 29
- 43
0
votes
1 answer
Servlet api not loaded in tomcat plug-in
I tried to deploy an Spring application on tomcat7 through tomcat7-maven-plugin (tomcat7:deploy), but when to execute the application, I get this error :
INFO: validateJarFile(C:\Program Files
(x86)\apache-tomcat-7.0.47\webapps\MyApp\WEB-
…

Skizzo
- 2,883
- 8
- 52
- 99
0
votes
0 answers
spray-servlet: Issues when war is deployed to tomcat7
I have created a sample application based on akka and spray-servlet. The code and other details can be found at https://github.com/rajvaibhav/spray-tomcat-routing. I am using embedded tomcat for development purpose. The application runs as expected…

Vaibhav Raj
- 2,214
- 4
- 23
- 39
0
votes
0 answers
deploying another war in embedded jetty
I am a no bee to stack over flow. Apologize if i broke any rules.
I can start jetty embedded server but i want to deploy a war before starting the server in the same program. i kept my external war in another folder and i tried with the below…

mmk
- 1
- 1
0
votes
1 answer
Running mvn install with running tomcat plugin parallel
In the project there are unit tests and frontend html tests that need running webserver.
In order to mvn install pass well, I need both kind of these tests pass well.
I use embedded tomcat server, that is started via tomcat plugin for maven:
mvn…

Alexandr
- 9,213
- 12
- 62
- 102
0
votes
1 answer
Maven/Eclipse - Quick iteration acceptance Testing a project packaged as a WAR file
Eclipse makes working with multi module maven projects easy because you don't have to re-build and re-install a module before dependent modules will see changes to it. So you just change the code and eclipse updates the dependencies magically in the…

PiersyP
- 5,003
- 2
- 33
- 35
0
votes
1 answer
IntelliJ Idea 11: Updating Classical Application on Frame deactivation
I am using IntelliJ Idea with 11 Embedded Tomcat - the problem is that there is no settings for "Update classes on Frame deactivation" as it is not typical "Tomcat application". Is there a way to force Idea to show this setting?

Vojtěch
- 11,312
- 31
- 103
- 173
0
votes
2 answers
How do I install Tomcat service as Automatic (Delayed Start)?
I created an installer with install4j that calls the provided Tomcat service.bat file to create a Windows service.
That works fine, but is there anyway to modify the service.bat so by default the installed service is Automatic (Delayed Start) as…

Matthew Steven Monkan
- 8,170
- 4
- 53
- 71
0
votes
1 answer
Embedded Tomcat: Unable to locate Spring NamespaceHandler for XML schema namespace
I am trying to run my Embedded Tomcat Application and I am getting following error:
BeanDefinitionParsingException:
Configuration problem:
Unable to locate Spring NamespaceHandler for XML schema…

Vojtěch
- 11,312
- 31
- 103
- 173
0
votes
0 answers
Embedded Tomcat 7 does not found ServletContainerInitializer from servlet-api 3.x
I'm using the embedded Tomcat 7.0.40 for my unit tests. My webapp uses Servlet 3.x (with x>0).
I managed to deploy my webapp on the Tomcat.
// create the embedded Tomcat
Tomcat tomcat = new Tomcat();
// (...)
// deploy the WAR in the webApp…

user520481
- 51
- 1
- 5