You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/01/15 08:19:34 UTC
[jira] Commented: (TAPESTRY-2045) NoClassDefFound exception thrown
when injecting DataTypeAnalyzer into a page
[ https://issues.apache.org/jira/browse/TAPESTRY-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558945#action_12558945 ]
Howard M. Lewis Ship commented on TAPESTRY-2045:
------------------------------------------------
Exception is pretty clear:
"Service interface org.apache.tapestry.services.DataTypeAnalyzer is matched by 2 services: DataTypeAnalyzer, DefaultDataTypeAnalyzer. Automatic dependency resolution requires that exactly one service implement the interface."
Inside TapestryModule:
@Marker(Primary.class)
public DataTypeAnalyzer build(List<DataTypeAnalyzer> configuration)
{
return _chainBuilder.build(DataTypeAnalyzer.class, configuration);
}
Changing Start.java to:
public class Start
{
@Inject @Primary
private DataTypeAnalyzer _analyzer;
}
And all is well.
> NoClassDefFound exception thrown when injecting DataTypeAnalyzer into a page
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-2045
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2045
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.8
> Environment: OS: OSX 10.5
> java version: 1.5.0_13
> Reporter: Robert Zeigler
> Attachments: transformationtest.tgz
>
>
> While attempting to upgrade my application from 5.0.6 to 5.0.7, I found several tests broken (and the application broken, as well), with a "NoClassDefFound" error, whenever any of the test pages (or application pages) referenced a particular page. The issue appears to be a broken transformation when injecting the DataTypeAnalyzer service (possibly others?).
> I will attach a project with a single test case which illustrates the issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org