Я пробую простой пример сервлета по этой ссылке< /a> в RAD 8.5. Сервер приложений WAS 8.5.
Имя проекта — HelloWorld, а ухо — HelloWorldEAR. Когда я пытаюсь опубликовать ухо, я продолжаю получать эту ошибку:
The HelloWorld project is built with Java SDK 7, which is not compatible with the server running at Java SDK 6. Try publishing the application on a later version of WebSphere Application Server. Or try increasing the JRE of the server, if you are using WebSphere Application Server V8.5
Код web.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>HelloWorld</display-name>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>
<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>
</welcome-file-list>
</web-app>
Может ли кто-нибудь сказать мне, что я могу сделать, чтобы избавиться от этой проблемы?