[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2395) Remove Hiberate Dependency
by Jason Holmes (JIRA)
Remove Hiberate Dependency
--------------------------
Key: JBSEAM-2395
URL: http://jira.jboss.com/jira/browse/JBSEAM-2395
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 2.0.1.CR1
Reporter: Jason Holmes
Fix For: 2.0.1.GA
I just upgraded to 2.0.1.CR1 from the 2.0.0.GA release. I'm having a problem with running tests in Seam.
We're not using hibernate at all in this portion of our web-app, it's all done via webservices. So there is no need for me to include the hibernate jars.
However, upon startup of the container with SeamTest I'm getting errors when Seam attempts to load the HibernateEntityLoader. It throws java.lang.NoClassDefFoundError: org/hibernate/Session
I don't see this error during my jboss deploy because I have hibernate already on the classpath for other ears.
And if anybody finds this bug instead of the forum post, here's a hack to fix it
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
/**
* At the moment the folks at JBoss decided that Hibernate should be required
* on the classpath.
*
* This fixes that
*
* @author Jason Holmes
*
*/
@Deprecated
@Name("org.jboss.seam.ui.hibernateEntityLoader")
@Install(precedence = Install.MOCK)
@Scope(ScopeType.STATELESS)
public class HibernateEntityLoader {
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2235) Making Seam work with urlrewritefilter's outbound-rules
by Adam Warski (JIRA)
Making Seam work with urlrewritefilter's outbound-rules
--------------------------------------------------------
Key: JBSEAM-2235
URL: http://jira.jboss.com/jira/browse/JBSEAM-2235
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 2.0.0.GA
Reporter: Adam Warski
Currently, it is not possible to use urlrewritefilter to handle outbound-rules which depend on query parameters, and thus have full support for "friendly" urls.
The fix is quite simple; attached you'll find the modified org.jboss.seam.ui.util.ViewUrlBuilder class, which is modified in 2 places:
- lines 27-29 of the constructor are changed not to call httpServletResponse.encodeURL().
- the method getEncodedUrl() is overriden, so that is encodes the URL (when the parameters are known).
With these changed, not only links generated by <s:link> will be translated, but also any redirects from navigation rules in pages.xml will be correct.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month