You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Davor Hrg (JIRA)" <de...@tapestry.apache.org> on 2007/06/12 08:19:25 UTC
[jira] Reopened: (TAPESTRY-1559) application package initializer
removed while merging svn
[ https://issues.apache.org/jira/browse/TAPESTRY-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davor Hrg reopened TAPESTRY-1559:
---------------------------------
A simplest example app using application-root-package.entities for hibernate entities fails.
reason is that tapestry-hibernate fails because it depends on ApplicationGlobals to provide the value for root-package:
an extract from HibernateModule:
public static void contributeHibernateSessionSource(Configuration<String> configuration,
ApplicationGlobals globals)
{
configuration.add(globals.getApplicationRootPackage() + ".entities");
}
Application globals returns null which is expected since following code was removed from InternalModeule.contributeApplicationInitializer:
ApplicationInitializerFilter setApplicationPackage = new ApplicationInitializerFilter()
{
public void initializeApplication(Context context, ApplicationInitializer initializer)
{
String packageName = context
.getInitParameter(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM);
applicationGlobals.store(packageName);
_componentClassResolver.setApplicationPackage(packageName);
initializer.initializeApplication(context);
}
};
configuration.add("SetApplicationPackage", setApplicationPackage, "before:*.*");
> application package initializer removed while merging svn
> ---------------------------------------------------------
>
> Key: TAPESTRY-1559
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1559
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.5
> Environment: any
> Reporter: Davor Hrg
> Assignee: Howard M. Lewis Ship
>
> revision: #536053 (Marge changes from the temporary branch)
> a chunk of code was removed from
> org.apache.tapestry.internal.services.InternalModule#contributeApplicationInitializer
> this code was responsible for setting TAPESTRY_APP_PACKAGE_PARAM to ApplicationGlobals
> this will cause problems, I noticed because my entities weren't recognized ba tapestry-hibernate
> the problematic code is clearly visible in the diff, so I'll omit a patch...
> perhaps the revision shoould be checked for any other deleted code
> that might cause problems....
--
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