Marek Schmidt created JBSEAM-4894:
-------------------------------------
Summary: Seam2.3 Contactlist example doesn't work if deployed together
with the booking example on JBoss5
Key: JBSEAM-4894
URL:
https://issues.jboss.org/browse/JBSEAM-4894
Project: Seam 2
Issue Type: Bug
Components: Core
Environment: seam 2.3.0-SNAPSHOT r14273
Reporter: Marek Schmidt
Fix For: 2.3.0.BETA1
Deploying both booking and contactlist examples on JBoss AS 5.1 or EAP 5.1.2 leads to the
contactlist example not working. Deploying only the contactlist example works correctly.
it appears the namespace initialization is not working properly, as only the seam-ui is
initialized during the contactlist deployment:
{noformat}
[org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/ui,
package: org.jboss.seam.ui, prefix: org.jboss.seam.ui
{noformat}
instead of the expected full list
{noformat}
2012-01-30 17:08:58,138 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/async, package: org.jboss.seam.async, prefix:
org.jboss.seam.async
2012-01-30 17:08:58,139 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix:
org.jboss.seam.core.framework
2012-01-30 17:08:58,139 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix:
org.jboss.seam.theme
2012-01-30 17:08:58,139 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/security, package: org.jboss.seam.security.management,
prefix: org.jboss.seam.security
2012-01-30 17:08:58,139 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix:
org.jboss.seam.bpm
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix:
org.jboss.seam.mail
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix:
org.jboss.seam.security
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix:
org.jboss.seam.web
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix:
org.jboss.seam.captcha
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix:
org.jboss.seam.navigation
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix:
org.jboss.seam.core
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/international, package: org.jboss.seam.international,
prefix: org.jboss.seam.international
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/cache, package: org.jboss.seam.cache, prefix:
org.jboss.seam.cache
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/jmx, package: org.jboss.seam.jmx, prefix:
org.jboss.seam.jmx
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix:
org.jboss.seam.jms
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/ui, package: org.jboss.seam.ui, prefix: org.jboss.seam.ui
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/transaction, package: org.jboss.seam.transaction, prefix:
org.jboss.seam.transaction
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/security, package: org.jboss.seam.security.permission,
prefix: org.jboss.seam.security
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix:
org.jboss.seam.drools
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix:
org.jboss.seam.persistence
2012-01-30 17:08:58,140 DEBUG [org.jboss.seam.init.Initialization] (main) Namespace:
http://jboss.com/products/seam/document, package: org.jboss.seam.document, prefix:
org.jboss.seam.document
{noformat}
Debugging shows NamespaceDeploymentHandler doesn't see the @Namespace annotations
during the contactlist deployment in the postProcess method, which seems odd:
{noformat}
public void postProcess(ClassLoader classLoader)
{
for (FileDescriptor fileDescriptor : getResources())
{
String packageName = filenameToPackageName(fileDescriptor.getName());
Package pkg = getPackage(packageName, classLoader);
if (pkg == null)
{
log.warn("Cannot load package info for " + packageName);
}
else
{
// THIS is false for all except the org.jboss.seam.ui package during the
contactlist deployment
if (pkg.getAnnotation(Namespace.class) != null)
{
packages.add(pkg);
}
}
}
}
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira