[Seasar-user:2848] Re: [S2JSF] m:immediate の動作について
松山 大樹
t.matsuyama
2005年 11月 17日 (木) 09:33:29 JST
松山です。
> 尚、下記につきましては V1.0.9, V1.0.8 ともに試しましたが
> 問題無く動作するようです。
> 添付した add.html を Example の add.html を置き換えて
> 試してもらえますでしょうか?
試してみました。
オリジナルの(ダウンロードしたままの)Example だと問題なく動作
します。
その後、一度Tomcat を停止し、
1. add.dicon を以下の通り変更
-------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.3//EN"
"http://www.seasar.org/dtd/components23.dtd">
<components>
<component class="org.seasar.framework.container.autoregister.FileSystemComponentAutoRegister">
<property name="instanceDef">@[E-MAIL ADDRESS DELETED]</property>
<initMethod name="addClassPattern">
<arg>"examples.jsf"</arg>
<arg>".*Dto,.*Impl"</arg>
</initMethod>
</component>
</components>
-------------------------------------------------------------
2. app.dicon を以下の通り変更
-------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.3//EN"
"http://www.seasar.org/dtd/components23.dtd">
<components>
<include path="jsf.dicon"/>
<include path="examples/jsf/dicon/add.dicon"/>
</components>
-------------------------------------------------------------
3. WEB-INF/lib/s2-extension-2.3RC2.jar と、s2-framework-2.3RC2.jar を削除し、
Seasar2.3 付属のs2-extension-2.3.0.jar と、s2-framework-2.3.0.jar に置き換え。
4. 再ビルドし(Eclipse が勝手にやる)、Tomcat を起動。
5. add をクリックすると、以下のエラーが発生。
-------------------------------------------------------------
java.lang.NullPointerException
at org.seasar.jsf.taglib.S2ValidatorTag.setupAttributes(S2ValidatorTag.java:70)
at org.seasar.jsf.taglib.S2ValidatorTag.createValidator(S2ValidatorTag.java:62)
at javax.faces.webapp.ValidatorTag.doStartTag(ValidatorTag.java:55)
at org.seasar.jsf.processor.TagProcessorImpl.processIterationTag(TagProcessorImpl.java:240)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:200)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:181)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:210)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:202)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:181)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:210)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:202)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:181)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.InsertProcessor.process(InsertProcessor.java:63)
at org.seasar.jsf.processor.InsertProcessor.process(InsertProcessor.java:55)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:210)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:202)
at org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:78)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:210)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:202)
at org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:78)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:210)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:202)
at org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:78)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:210)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:202)
at org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:78)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processTag(TagProcessorImpl.java:210)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:202)
at org.seasar.jsf.processor.ElementProcessor.process(ElementProcessor.java:78)
at org.seasar.jsf.processor.TagProcessorImpl.processChildren(TagProcessorImpl.java:254)
at org.seasar.jsf.processor.TagProcessorImpl.processBodyTag(TagProcessorImpl.java:228)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:198)
at org.seasar.jsf.processor.TagProcessorImpl.process(TagProcessorImpl.java:181)
at org.seasar.jsf.processor.ViewProcessor.process(ViewProcessor.java:147)
at org.seasar.jsf.processor.ViewProcessor.process(ViewProcessor.java:145)
at org.seasar.jsf.runtime.ViewRendererImpl.renderView(ViewRendererImpl.java:79)
at org.seasar.jsf.application.S2ViewHandler.renderView(S2ViewHandler.java:104)
at org.seasar.jsf.lifecycle.LifecycleImpl.render(LifecycleImpl.java:196)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:60)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)
-------------------------------------------------------------
Tomcat のバージョンは、5.0.30、JDKのバージョンは1.4.2_09 です。
dicon ファイルの書き方がおかしければ、ご指摘ください。
よろしくお願いします。
--
::: 株式会社ワウワウ・コミュニケーションズ http://www.wowcom.co.jp/
::: ITシステム・インテグレートDiv.
::: Web・マーケティング&コマンドセンターUnit.
::: 松山 大樹 - [E-MAIL ADDRESS DELETED]
Seasar-user メーリングリストの案内