[TEEDA-483] viewRootPathを/view/appのようにすると、Pageクラス名から正しいHTMLが見つけられない問題を修正しました. Created: 02/Sep/08  Updated: 30/Oct/08  Resolved: 30/Oct/08

Status: Closed
Project: Teeda
Component/s: Teeda Extension
Affects Version/s: 1.0.13-sp3
Fix Version/s: 1.0.13-sp4, 1.1.0-alpha1

Type: Bug Priority: Major
Reporter: shot Assignee: shot
Resolution: Fixed Votes: 0
Labels: None


 Description   

teeda-html-exampleで、convention.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>
	<component class="org.seasar.framework.convention.impl.NamingConventionImpl">
		<initMethod name="addRootPackageName">
			<arg>"examples.teeda"</arg>
		</initMethod>
		<property name="viewRootPath">"/view/app"</property>
	</component>
</components>

次にHTMLの配置位置を/view/start/index.htmlといった位置から、/view/app/start/index.htmlに移動する.
すると、以下のような例外が出る.

DEBUG 2008-09-02 19:37:20,578 [http-8080-1] [ETDA0107]HTML(/view/start/index.html)が見つかりません。
org.seasar.teeda.extension.exception.HtmlNotFoundRuntimeExcpetion: [ETDA0107]HTML(/view/start/index.html)が見つかりません。
	at org.seasar.teeda.extension.html.impl.HtmlDescCacheImpl.createHtmlDescFromResource(HtmlDescCacheImpl.java:96)
	at org.seasar.teeda.extension.html.impl.HtmlDescCacheImpl.createHtmlDesc(HtmlDescCacheImpl.java:80)
	at org.seasar.teeda.extension.html.impl.TagProcessorCacheImpl.updateTagProcessor(TagProcessorCacheImpl.java:75)
	at org.seasar.teeda.extension.html.impl.HtmlViewHandler.restoreView(HtmlViewHandler.java:103)
	at org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.composeViewRoot(RestoreViewPhase.java:115)
	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:100)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.seasar.teeda.core.filter.RequestDumpFilter.doFilter(RequestDumpFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:79)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.seasar.teeda.extension.filter.MultipartFormDataFilter.doFilter(MultipartFormDataFilter.java:83)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)

原因はHtmlNavigationHandler.calcPathFromOutcome()のpathFirstの設定がおかしい模様.



 Comments   
Comment by shot [ 02/Sep/08 ]

Rev間違っていたのでReopen.

Comment by shot [ 02/Sep/08 ]

http://svn.seasar.org/browse/?view=rev&root=teeda&revision=4182で対応しました.

Comment by koichik [ 30/Oct/08 ]

トランクにマージしてなかったので再オープン.

Comment by koichik [ 30/Oct/08 ]

トランクにマージしたのでクローズ.
http://svn.seasar.org/browse/?view=rev&root=teeda&revision=4196

Generated at Mon May 20 19:32:23 JST 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.