我正在尝试使用 Java 和 Stripes 框架开始开发。我的 web.xml 文件中有以下内容
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>
<filter>
<filter-name>StripesFilter</filter-name>
<filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
<init-param>
<param-name>ActionResolver.Packages</param-name>
<param-value>
pdapm.action
</param-value>
</init-param>
<init-param>
<param-name>Extension.Packages</param-name>
<param-value>
pdapm.extensions, org.stripesbook.reload.extensions
</param-value>
</init-param>
</filter>
<filter>
<filter-name>DynamicMappingFilter</filter-name>
<filter-class>net.sourceforge.stripes.controller.DynamicMappingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>DynamicMappingFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
我收到错误:
The requested resource ... is not available.
有什么我需要添加或我应该尝试修复与 tomcat 相关的任何内容。我将tomcat插件用于xampp。我是初学者,所以这可能是一个简单的错误或跳过了一步。我只是在寻找正确方向的推动力。
[21:44:14] WARN net.sourceforge.stripes.util.ResolverUtil - Could not examine class
'pdapm/action/BaseActionBean.class' due to a java.lang.UnsupportedClassVersionError
with message: Bad version number in .class file (unable to load class
pdapm.action.BaseActionBean)
[21:44:14] WARN net.sourceforge.stripes.util.ResolverUtil - Could not examine class
'pdapm/action/HomeActionBean.class' due to a java.lang.UnsupportedClassVersionError
with message: Bad version number in .class file (unable to load class
pdapm.action.HomeActionBean)