[
http://jira.jboss.com/jira/browse/JBSEAM-2395?page=all ]
Pete Muir closed JBSEAM-2395.
-----------------------------
Resolution: Done
Assignee: Pete Muir
Oops. Fixed in CVS, thanks!
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
Assigned To: Pete Muir
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