-
1. Re: seam without hibernate is impossible?
luxspes Aug 8, 2008 8:22 PM (in response to deanhiller2000)Well if you do this, Hibernate it is pretty much deactivated, but you still will get this exception if you delete all hibernate jars:
java.lang.RuntimeException: Could not create Component: org.jboss.seam.core.validators at org.jboss.seam.init.Initialization.addComponent(Initialization.java:989) at org.jboss.seam.init.Initialization.installComponents(Initialization.java:911) at org.jboss.seam.init.Initialization.init(Initialization.java:589) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: org/hibernate/validator/ClassValidator at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2395) at java.lang.Class.privateGetPublicMethods(Class.java:2519) at java.lang.Class.getMethods(Class.java:1406) at org.jboss.seam.Component.hasAnnotation(Component.java:1070) at org.jboss.seam.Component.<init>(Component.java:229) at org.jboss.seam.Component.<init>(Component.java:217) at org.jboss.seam.init.Initialization.addComponent(Initialization.java:974) ... 18 more
-
2. Re: seam without hibernate is impossible?
luxspes Aug 8, 2008 8:30 PM (in response to deanhiller2000)It seems the Seam component org.jboss.seam.core.validators points to the classorg.jboss.seam.core.Validators...
Mmmm... I think this class should implement and interface, so that it could be possible to replace it with one that doesn't use org.hibernate.validator.ClassValidator I guess with that we could say that Seam can be used in a 100% free of Hibernate way (Let me say that I love Hibernate, but sometimes, for really simple projects, or for projects full of interactions with stored procedures , it might be overkill or innapropiate).
-
3. Re: seam without hibernate is impossible?
luxspes Aug 8, 2008 8:36 PM (in response to deanhiller2000)Yes, copied back in to WEB-INF\lib the file hibernate-validator.jar and now it working, 99% without hibernate.
-
4. Re: seam without hibernate is impossible?
svadu Aug 9, 2008 2:24 AM (in response to deanhiller2000)IMHO, hibernate validator is supposed to work with other JPA providers. I don't think it's really a roadblock here.
-
5. Re: seam without hibernate is impossible?
pmuir Aug 9, 2008 7:49 PM (in response to deanhiller2000)Yeah, HV should work with any JPA, however last I checked it hard a hard dependency on Hibernate Core (raise that on the Hibernate forum for Hardy to look at).
I'm happy to remove the hard dependency in Seam, please file a JIRA issue.
-
6. Re: seam without hibernate is impossible?
luxspes Aug 9, 2008 8:29 PM (in response to deanhiller2000)
Pete Muir wrote on Aug 09, 2008 19:49:
I'm happy to remove the hard dependency in Seam, please file a JIRA issue.
Here it is: JBSEAM-3247