[Seasar-user:11597] トランザクション制御の設定につきまして

Yamada [E-MAIL ADDRESS DELETED]
2007年 11月 10日 (土) 14:05:02 JST


はじめての投稿です。
山田と申します。

早速ですが、トランザクション制御の設定について教えてください。

Chura Project にてプロジェクトを作成後
トランザクション制御の設定を行おうと
customizer.dicon に
<include path="j2ee.dicon"/>
を追加し
pageCustomizer に
<initMethod name="addAspectCustomizer">
  <arg>"j2ee.requiredTx"</arg>
  <arg>"do.*, initialize, prerender"</arg>
</initMethod>
を追加しました。

customizer.diconは次の通りです。
--- ここから customizer.dicon ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN"
	"http://www.seasar.org/dtd/components24.dtd">
<components>
  <include path="default-customizer.dicon"/>
  <include path="j2ee.dicon"/>

  <component name="pageCustomizer"
class="org.seasar.framework.container.customizer.CustomizerChain">
    <initMethod name="addCustomizer">
      <arg>traceCustomizer</arg>
    </initMethod>
    <initMethod name="addCustomizer">
      <arg>
        <component
class="org.seasar.framework.container.customizer.AspectCustomizer">
          <initMethod name="addInterceptorName">
            <arg>"app_aop.appFacesExceptionThrowsInterceptor"</arg>
          </initMethod>
          <property name="pointcut">"do.*, initialize, prerender"</property>
        </component>
      </arg>
    </initMethod>
    <initMethod name="addAspectCustomizer">
      <arg>"j2ee.requiredTx"</arg>
      <arg>"do.*, initialize, prerender"</arg>
    </initMethod>
  </component>
  <component name="actionCustomizer"
class="org.seasar.framework.container.customizer.CustomizerChain">

以下省略
--- customizer.dicon ここまで ---

その後、TOMCATを起動し、htmlを表示しようとしたところエラーが表示されました。

--- ここから エラーログ ---
2007-11-10 13:31:13,734 [http-8080-1] DEBUG
org.seasar.framework.container.hotdeploy.HotdeployBehavior - HOT
deployを開始します
2007-11-10 13:31:14,140 [http-8080-1] DEBUG
org.seasar.framework.container.util.S2ContainerUtil -
クラス(test.web.error.ErrorPage[error_errorPage])のコンポーネント定義を登録します
2007-11-10 13:31:14,156 [http-8080-1] DEBUG
org.seasar.teeda.extension.util.TeedaExtensionErrorPageManagerImpl -
[ESSR0073]OGNLで例外が発生しました。理由は[ESSR0046]コンポーネント(j2ee)が見つかりません
org.seasar.framework.exception.OgnlRuntimeException:
[ESSR0073]OGNLで例外が発生しました。理由は[ESSR0046]コンポーネント(j2ee)が見つかりません
	at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:103)
	at org.seasar.framework.container.ognl.OgnlExpression.evaluate(OgnlExpression.java:64)
	at org.seasar.framework.container.impl.ArgDefImpl.getValue(ArgDefImpl.java:60)
	at org.seasar.framework.container.impl.AspectDefImpl.getAspect(AspectDefImpl.java:81)
	at org.seasar.framework.container.util.AopProxyUtil.getAspects(AopProxyUtil.java:61)
	at org.seasar.framework.container.util.AopProxyUtil.getConcreteClass(AopProxyUtil.java:51)
	at org.seasar.framework.container.impl.ComponentDefImpl.getConcreteClass(ComponentDefImpl.java:140)
	at org.seasar.framework.container.impl.ComponentDefImpl.init(ComponentDefImpl.java:235)
	at org.seasar.framework.container.hotdeploy.HotdeployBehavior.getComponentDef(HotdeployBehavior.java:154)
	at org.seasar.framework.container.impl.S2ContainerBehavior$DefaultProvider.acquireFromHasComponentDef(S2ContainerBehavior.java:172)
	at org.seasar.framework.container.impl.S2ContainerBehavior.acquireFromHasComponentDef(S2ContainerBehavior.java:86)
	at org.seasar.framework.container.impl.S2ContainerImpl.hasComponentDef(S2ContainerImpl.java:456)
	at org.seasar.teeda.extension.html.impl.PageDescCacheImpl.createPageDesc(PageDescCacheImpl.java:70)
	at org.seasar.teeda.extension.html.impl.TagProcessorCacheImpl.updateTagProcessor(TagProcessorCacheImpl.java:82)
	at org.seasar.teeda.extension.html.impl.HtmlViewHandler.restoreView(HtmlViewHandler.java:104)
	at org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.composeViewRoot(RestoreViewPhase.java:113)
	at org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.executePhase(RestoreViewPhase.java:81)
	at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)
	at org.seasar.teeda.core.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:68)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:77)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.seasar.framework.container.ComponentNotFoundRuntimeException:
[ESSR0046]コンポーネント(j2ee)が見つかりません
	at org.seasar.framework.container.impl.S2ContainerBehavior$DefaultProvider.acquireFromGetComponentDef(S2ContainerBehavior.java:165)
	at org.seasar.framework.container.impl.S2ContainerBehavior$DefaultProvider.acquireFromGetComponent(S2ContainerBehavior.java:158)
	at org.seasar.framework.container.impl.S2ContainerBehavior.acquireFromGetComponent(S2ContainerBehavior.java:62)
	at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(S2ContainerImpl.java:124)
	at org.seasar.framework.container.ognl.S2ContainerPropertyAccessor.getProperty(S2ContainerPropertyAccessor.java:36)
	at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1758)
	at ognl.ASTProperty.getValueBody(ASTProperty.java:92)
	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
	at ognl.SimpleNode.getValue(SimpleNode.java:211)
	at ognl.ASTChain.getValueBody(ASTChain.java:109)
	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
	at ognl.SimpleNode.getValue(SimpleNode.java:211)
	at ognl.Ognl.getValue(Ognl.java:333)
	at ognl.Ognl.getValue(Ognl.java:310)
	at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:95)
	... 40 more
2007-11-10 13:31:14,359 [http-8080-1] DEBUG
org.seasar.framework.container.hotdeploy.HotdeployBehavior - HOT
deployを終了しました
--- エラーログ ここまで ---

WEB-INF/lib/ に s2-extension-2.4.18-rc1.jar は存在しているので
j2ee.dicon は存在しています。

customizer.dicon 以外に記述が必要なのでしょうか?

以上、よろしくお願いいたします。



Seasar-user メーリングリストの案内