[JBoss JIRA] Created: (WELDX-126) BeanManagerProvider system does not function on Jetty
by Lincoln Baxter III (JIRA)
BeanManagerProvider system does not function on Jetty
-----------------------------------------------------
Key: WELDX-126
URL: https://jira.jboss.org/browse/WELDX-126
Project: Weld Extensions
Issue Type: Bug
Affects Versions: 1.0.0.Alpha2
Environment: Jetty 7.1.x
Reporter: Lincoln Baxter III
Attachments: jetty-env.xml, JettyJndiBeanManagerProvider.java, org.jboss.weld.extensions.beanManager.BeanManagerProvider, web.xml
Because Jetty forces the user to define their own JDNI binding for the Bean Manager, the provider system currently has no way of locating this definition.
http://docs.jboss.org/weld/reference/1.0.0/en-US/html/environments.html#d...
The documentation is out of date, since the package names of required classes were changed during the eclipse ownership change:
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
<Configure id="webAppCtx" class="org.eclipse.jetty.webapp.WebAppContext">
<New id="BeanManager" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg> <Ref id="webAppCtx"/> </Arg>
<Arg>BeanManager</Arg>
<Arg>
<New class="javax.naming.Reference">
<Arg>javax.enterprise.inject.spi.BeanManager</Arg>
<Arg>org.jboss.weld.resources.ManagerObjectFactory</Arg>
<Arg/>
</New>
</Arg>
</New>
</Configure>
This documentation is also incomplete, since a <resource-ref> must be included in the web.xml:
<resource-ref>
<res-ref-name>BeanManager</res-ref-name>
<res-type>javax.enterprise.inject.spi.BeanManager</res-type>
<res-auth>Container</res-auth>
</resource-ref>
See attached JettyJndiBeanManagerProvider for solution - this provider must also be registered in:
/META-INF/services/org.jboss.weld.extensions.beanManager.BeanManagerProvider
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (WELD-451) Allow including the cid in the url to be configurable in <redirect /> in pages.xml
by Samuel Mendenhall (JIRA)
Allow including the cid in the url to be configurable in <redirect /> in pages.xml
----------------------------------------------------------------------------------
Key: WELD-451
URL: https://jira.jboss.org/jira/browse/WELD-451
Project: Weld
Issue Type: Feature Request
Components: Web Tier integration (JSF, JSP, EL and Servlet)
Affects Versions: 1.0.1.CR2
Reporter: Samuel Mendenhall
Priority: Minor
Fix For: 1.0.1.GA
In org.jboss.seam.faces.Navigator.java the includeConversationId variable is currently hardcoded to true.
protected void redirect(String viewId, Map<String, Object> parameters, boolean includePageParams)
{
if ( Strings.isEmpty(viewId) )
{
viewId = Pages.getCurrentViewId();
}
if ( log.isDebugEnabled() ) log.debug("redirecting to: " + viewId);
FacesManager.instance().redirect(viewId, parameters, true, includePageParams);
}
This should be made configurable so that one can redirect and optionally have the cid not included ie.
<redirect view-id="/somePage.xhtml" includeConversationId="false" />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months