You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2014/08/27 21:13:58 UTC
[jira] [Closed] (TAP5-1582) IOC doesn't like tomcat multi-level
contexts
[ https://issues.apache.org/jira/browse/TAP5-1582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1582.
--------------------------------------
Resolution: Invalid
> IOC doesn't like tomcat multi-level contexts
> --------------------------------------------
>
> Key: TAP5-1582
> URL: https://issues.apache.org/jira/browse/TAP5-1582
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-ioc
> Affects Versions: 5.2
> Reporter: Richard Guest
> Labels: bulk-close-candidate
>
> Deploying a multi-level context webapp to tomcat.
> According to http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic_Application_Deployment the war should be named foo#bar.war, tomcat unpacks the war to webapps/foo#bar and serve the webapp from http://hostname:port/foo/bar
> However, tapestry IOC fails when attempting to use simple binding expressions, e.g. for "message:some-key":
> org.apache.tapestry5.ioc.internal.util.TapestryException: Could not convert 'message:some-key' into a component parameter binding: URI has a fragment component [at classpath:....]
> org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:82)
> ...
> java.lang.IllegalArgumentException: URI has a fragment component
> java.io.File.<init>(File.java:370)
> org.apache.tapestry5.ioc.services.ClassFabUtils.toFileFromFileProtocolURL(ClassFabUtils.java:340)
> ...
> It appears that java.net.URI considers #bar/WEB-INF/app.properties a "fragment" and that java.io.File(URI uri) barfs when fragment is set.
> Help...?
> I don't think I'm the only person who has experienced this - http://tapestry.1045711.n5.nabble.com/Multiple-level-context-path-not-working-in-tomcat-td2635336.html
> Let me know if there is any further information I can provide to clarify the issue.
> -- Rich
--
This message was sent by Atlassian JIRA
(v6.2#6252)