Details
Description
Specifying a component-type specification-path="/com/mycompany/mycomponent.jwc" in the application specification for a component located in a java package leads to the exception listed below. On the other hand, the same specification within a library-specification works as expected, using the path as the classpath NOT as the context.
Error message:
Could not parse specification context:/com/mycompany/mycomponent.jwc.
Resource at context:/com/mycompany/mycomponent.jwc does not exist.
org.apache.tapestry.ApplicationRuntimeException
Could not parse specification context:/com/mycompany/mycomponent.jwc.
org.apache.tapestry.util.xml.DocumentParseException
Resource at context:/com/mycompany/mycomponent.jwc does not exist.
documentLocation: context:/com/mycompany/mycomponent.jwc
Partial Stack Trace:
org.apache.tapestry.parse.SpecificationParser.parse(SpecificationParser.java:676)
org.apache.tapestry.parse.SpecificationParser.parseComponentSpecification(SpecificationParser.java:643)
org.apache.tapestry.engine.DefaultSpecificationSource.parseSpecification(DefaultSpecificationSource.java:204)
org.apache.tapestry.engine.DefaultSpecificationSource.getComponentSpecification(DefaultSpecificationSource.java:316)
org.apache.tapestry.engine.Namespace.locateComponentSpecification(Namespace.java:327)
org.apache.tapestry.engine.Namespace.getComponentSpecification(Namespace.java:243)
org.apache.tapestry.resolver.ComponentSpecificationResolver.resolve(ComponentSpecificationResolver.java:201)
org.apache.tapestry.engine.DefaultTemplateSource$ParserDelegate.getAllowBody(DefaultTemplateSource.java:180)
org.apache.tapestry.parse.TemplateParser.processComponentStart(TemplateParser.java:1108)
org.apache.tapestry.parse.TemplateParser.startTag(TemplateParser.java:986)
org.apache.tapestry.parse.TemplateParser.parse(TemplateParser.java:629)
org.apache.tapestry.parse.TemplateParser.parse(TemplateParser.java:460)
org.apache.tapestry.engine.DefaultTemplateSource.constructTemplateInstance(DefaultTemplateSource.java:483)
org.apache.tapestry.engine.DefaultTemplateSource.parseTemplate(DefaultTemplateSource.java:457)
org.apache.tapestry.engine.DefaultTemplateSource.getOrParseTemplate(DefaultTemplateSource.java:430)
...