クラスのアプリケーション リスナーの構成でエラーが表示される
これは実際に私のエラーです
**
SEVERE: クラス org.springframework.web.context.ContextLoaderListener のアプリケーション リスナーの構成エラー java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
** java.lang.ClassLoader.findBootstrapClass(Native Method) で java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:927) で java.lang.ClassLoader.loadClass(ClassLoader.java:298) で java.lang.ClassLoader でorg.apache.catalina.loader の java.lang.ClassLoader.loadClass(ClassLoader.java:248) の .loadClass(ClassLoader.java:296) WebappClassLoader.loadClass(WebappClassLoader.java:1626) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532) org org.apache.catalina の .apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)。org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) の core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133) org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) のorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) で org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) で org.apache.catalina.core.ContainerBase java.util.concurrent.FutureTask の $StartChild.call(ContainerBase.java:1549) $Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) の java. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:662) で強いテキスト
**
**重大: クラス org.springframework.web.context.request.RequestContextListener java.lang.NoClassDefFoundError のアプリケーション リスナーの構成エラー: javax/servlet/ServletRequestListener
* * java.lang.ClassLoader.findBootstrapClass(Native Method) で java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:927) で java.lang.ClassLoader.loadClass(ClassLoader.java:298) で java.lang.ClassLoader.loadClass (ClassLoader.java:296) で sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) で java.lang.ClassLoader.loadClass(ClassLoader.java:248) で org.apache.catalina.loader.WebappClassLoader. loadClass(WebappClassLoader.java:1626) の org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) の org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532) の org.apache org.apache.catalina.core.DefaultInstanceManager の .catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)。org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) の newInstance(DefaultInstanceManager.java:133) org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) の org.apache .catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1549) で java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) で java.util.concurrent.FutureTask.run(FutureTask.java:138) で java.util.concurrent で。 ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) で java.lang.Thread.run(Thread.java:662) で662)662)133) org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) で org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) で org.apache.catalina.util.LifecycleBase .start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) ) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) で java.util.concurrent.FutureTask.run(FutureTask.java:138) で java.util.concurrent.ThreadPoolExecutor$Worker.runTask( ThreadPoolExecutor.java:886) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) で java.lang.Thread.run(Thread.java:662) で133) org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) で org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) で org.apache.catalina.util.LifecycleBase .start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) ) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) で java.util.concurrent.FutureTask.run(FutureTask.java:138) で java.util.concurrent.ThreadPoolExecutor$Worker.runTask( ThreadPoolExecutor.java:886) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) で java.lang.Thread.run(Thread.java:662) でlistenerStart(StandardContext.java:4727) org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) org.apache .catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun (FutureTask.java:303) で java.util.concurrent.FutureTask.run(FutureTask.java:138) で java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) で java.util.concurrent で。 java.lang.Thread.run(Thread.java:662) の ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)listenerStart(StandardContext.java:4727) org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) org.apache .catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun (FutureTask.java:303) で java.util.concurrent.FutureTask.run(FutureTask.java:138) で java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) で java.util.concurrent で。 java.lang.Thread.run(Thread.java:662) の ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) の startInternal(StandardContext.java:5285) org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) の org .apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) で java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) で java.util.concurrent.FutureTask.run(FutureTask) .java:138) で java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) で java.lang.Thread で。実行 (Thread.java:662)org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) の startInternal(StandardContext.java:5285) org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) の org .apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) で java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) で java.util.concurrent.FutureTask.run(FutureTask) .java:138) で java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) で java.lang.Thread で。実行 (Thread.java:662)1559) org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) で java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) で java.util.concurrent.FutureTask で.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java. lang.Thread.run(Thread.java:662)1559) org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) で java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) で java.util.concurrent.FutureTask で.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java. lang.Thread.run(Thread.java:662)908) java.lang.Thread.run(Thread.java:662) で908) java.lang.Thread.run(Thread.java:662) で
これが私の
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
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/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<description>iSAS</description>
<filter>
<filter-name>struts2</filter-name>
<!-- <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> -->
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
と私
Struts.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default" extends="struts-default">
<result-types>
<result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/>
</result-types>
<action name="userRegistration_*" method="{1}" class="userRegistration">
<result name="SUCCESS" type="tiles">isas.user.registration</result>
<result name="ERROR" type="tiles">isas.errorPage</result>
<result name="input" type="tiles">isas.user.registration</result>
</action>
</package>
</struts>
ここでは、以前は spring-2.5.6 jar を使用していましたが、代わりに spring-1.0.2.jar を使用しています。このエラーに必要な正確な jar ファイルを知る必要があります。