[
https://issues.jboss.org/browse/SEAMFACES-169?page=com.atlassian.jira.plu...
]
Thomas Andraschko edited comment on SEAMFACES-169 at 7/5/11 4:35 PM:
---------------------------------------------------------------------
Checking if the iterator has items in getListeners works very well:
Iterator<?> iter = getBeanManager().getBeans(clazz).iterator(); \\
if (iter.hasNext()) { \\
Bean<? extends T> bean = (Bean<? extends T>) iter.next(); \\
CreationalContext<? extends T> context =
getBeanManager().createCreationalContext(bean); \\
T listener = (T) getBeanManager().getReference(bean, clazz, context); \\
listeners.add(listener); \\
}
was (Author: zoigl):
Checking if the iterator has items in getListeners works very well:
Iterator<?> iter = getBeanManager().getBeans(clazz).iterator();
if (iter.hasNext()) {
Bean<? extends T> bean = (Bean<? extends T>) iter.next();
CreationalContext<? extends T> context =
getBeanManager().createCreationalContext(bean);
T listener = (T) getBeanManager().getReference(bean, clazz, context);
listeners.add(listener);
}
Seam Faces does not work with OWB
---------------------------------
Key: SEAMFACES-169
URL:
https://issues.jboss.org/browse/SEAMFACES-169
Project: Seam Faces
Issue Type: Bug
Components: Build & Distribution, CDI Integration
Affects Versions: 3.0.1
Environment: Tomcat 7, OWB 1.1.0, MyFaces 2.0.5 or 2.1.0, SeamFaces 3.0.1,
SeamPersistence 3.0.0, SeamXmlConfig 3.0.0
Reporter: Thomas Andraschko
Labels: MyFaces, OWB
SeamFaces does not work with OWB.
Following exception occurs:
07.06.2011 13:25:17 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
SCHWERWIEGEND: An error occured while initializing MyFaces: null
java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796)
at java.util.HashMap$KeyIterator.next(HashMap.java:828)
at org.jboss.seam.faces.event.AbstractListener.getListeners(AbstractListener.java:25)
at
org.jboss.seam.faces.event.DelegatingSystemEventListener.getEventListeners(DelegatingSystemEventListener.java:43)
at
org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:34)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:43)
at
org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2105)
at org.apache.myfaces.application.ApplicationImpl.access$000(ApplicationImpl.java:118)
at
org.apache.myfaces.application.ApplicationImpl$SystemListenerEntry.publish(ApplicationImpl.java:2292)
at
org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:537)
at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:329)
at
org.apache.myfaces.webapp.AbstractFacesInitializer._dispatchApplicationEvent(AbstractFacesInitializer.java:248)
at
org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:140)
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4521)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
07.06.2011 13:25:17 org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Error listenerStart
07.06.2011 13:25:17 org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Context [/my-webapp] startup failed due to previous errors
07.06.2011 13:25:17 org.apache.webbeans.web.lifecycle.WebContainerLifecycle
afterStopApplication
INFO: OpenWebBeans Container was stopped for context path, [/my-webapp]
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira