I'm using the following set of dependencies with Hibernate validator
successfully:

                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                        <version>1.6.1</version>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.16</version>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                        <version>1.6.1</version>
                </dependency>

Since you're using Maven, you shouldn't have slf4j jars in your
webapp/WEB-INF/lib dir, as Maven will put them in
target/[build-name]/WEB-INF/lib.

/dmc

On Sat, Dec 25, 2010 at 5:31 AM, branni <[email protected]> wrote:
> Hi,
> I'd like to use hibernate with gwt and maven, but I get an exception
> this point:
>
> new Configuration().configure().buildSessionFactory();
>
> ------------------
> Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at com.google.gwt.dev.shell.jetty.JettyLauncher
> $WebAppContextWithReload
> $WebAppClassLoaderExtension.findClass(JettyLauncher.java:354)
>        at
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
> 366)
>        at
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
> 337)
>
> --------------------
>
> The sl4f-jar is in my webapp/WEB-INF/lib folder....
>
> My maven dependencies:
>
> <dependency>
>                        <groupId>org.slf4j</groupId>
>                        <artifactId>slf4j-simple</artifactId>
>                        <version>1.6.1</version>
>                </dependency>
>                <dependency>
>                        <groupId>org.slf4j</groupId>
>                        <artifactId>slf4j-log4j12</artifactId>
>                        <version>1.6.1</version>
>                </dependency>
>                <dependency>
>                        <groupId>org.slf4j</groupId>
>                        <artifactId>slf4j-api</artifactId>
>                        <version>1.6.1</version>
>                </dependency>
>                <dependency>
>                        <groupId>org.slf4j</groupId>
>                        <artifactId>jul-to-slf4j</artifactId>
>                        <version>1.6.1</version>
>                </dependency>
>
> Any tips?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to