Struts2、Spring、および JPA を使用する Web アプリケーションがあります。アプリでは、注釈を使用しています。アプリケーションを eclipse にデプロイする場合、それを仮想アプリケーションとしてデプロイすると(サーバーを右クリックし、プロパティを選択し、WebLogic を選択し、公開モードを選択します) 、アプリケーションは正常に動作します。このオプションは _auto_generated_ear ファイルを生成し、アプリケーションを正常に実行します。 展開されたアーカイブとして展開するか、管理コンソールを使用してアプリケーションを .war ファイルとして手動で展開すると、次のエラー メッセージが表示されます。
[[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.apache.struts2.dispatcher.Dispatcher - アクションまたは結果が見つかりません: /eServices/login.action There名前空間 [/] およびコンテキスト パス [/eServices] に関連付けられたアクション名 [login] にマップされたアクションはありません。- [不明な場所] com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) の org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63) の org.apache.struts2.impl. StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37) com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:552) org.apache .struts2.dispatcher.ng.
これについて、WebLogic の専門家が正しい方向を教えてくれますか? WebLogic で実行されている Struts2 のコンベンション プラグインに問題はありますか? どんな助けでも大歓迎です。前もって感謝します。
更新しました:
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>eServices</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Needed to manage the Java based @Configuration classes for Spring -->
<context-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>com.ceiwc.es.config</param-value>
</context-param>
<!-- Handles Strut2 URL requests -->
<filter>
<filter-name>struts2</filter-name>
<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>
<session-config>
<session-timeout>20</session-timeout>
</session-config>
</web-app>
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>
<!-- Struts Constants that override the struts.properties file -->
<constant name="struts.devMode" value="false" />
<constant name="struts.custom.i18n.resources" value="global" />
<constant name="struts.ui.theme" value="simple" />
</struts>