Я запускаю Oracle Weblogic Server 12c R2 (12.2.1) в Eclipse, его можно синхронизировать, но некоторые из них ниже. Я добавил библиотеку Джерси 1.17, не уверен, что это слишком старая версия. Но я могу найти правильную ссылку для загрузки для последней.Сервер Weblogic и проблема с сервлетом Джерси
一月 24, 2016 11:20:39 上午 weblogic.wsee.runtime.JMSStoreRoutableIDMapper onFailure
INFO: Destination Failure for weblogic.wsee.BufferedRequestQueue due to exception: While trying to lookup 'weblogic.wsee.BufferedRequestQueue' didn't find subcontext 'wsee'. Resolved 'weblogic'
一月 24, 2016 11:20:39 上午 weblogic.wsee.runtime.JMSStoreRoutableIDMapper onFailure
INFO: Destination Failure for weblogic.wsee.BufferedResponseQueue due to exception: While trying to lookup 'weblogic.wsee.BufferedResponseQueue' didn't find subcontext 'wsee'. Resolved 'weblogic'
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192509> <Changing servlet class from com.sun.jersey.spi.container.servlet.ServletContainer (web.xml) to org.glassfish.jersey.servlet.ServletContainer.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.ResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.ApplicationAdapter because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.server.impl.application.DeferredResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.ClassNamesResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.DefaultResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.PackagesResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.servlet.WebAppResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.ClasspathResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192510> <Cannot add Jersey servlet for application class com.sun.jersey.api.core.ScanningResourceConfig because ApplicationPath annotation is not set on it.>
<Jan 24, 2016 11:21:15 AM EST> <Warning> <JAXRSIntegration> <BEA-2192511> <The list of resource packages: org.codehaus.jackson.jaxrs;com.sun.jersey.server.impl.application>
Может кто-то помочь выяснить, как это исправить?
web.xml является:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>com.youtube.rest</display-name>
<welcome-file-list>
<welcome-file>readme.html</welcome-file>
<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>
</welcome-file-list>
<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>com.youtube.rest</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey REST Service</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
</web-app>
readme.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>Read Me</h1>
</body>
</html>