Как говорится в этом вопросе, Tomcat v7.0 не читает context.xml. Я добавил в папку src так, чтобы это было в пути к классу. Но, все еще не читая его. Но я могу запустить свое приложение, если я использую Grid Server вместо Tomcat. Я пропустил что-то другое, кроме добавления context.xml в папку src? (У меня динамический проект).Tomcat v7.0 server does'nt читает context.xml
Вот web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>REST_TEST</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
Кроме того, здесь есть что-то:
@ApplicationPath("rs")
public class RestTestApp extends ResourceConfig {
public RestTestApp() {
super();
register(HttpMethodOverrideFilter.class);
packages(true, "com.thd.mm.pc.resttest", "com.fasterxml.jackson.jaxrs" );
}
}
Спасибо! Оно работало завораживающе – user3528213