Hello, i'm trying to use hibernate for a small project.
I'm using it with tomcat, i have followed these recommendations https://community.jboss.org/wiki/UsingHibernatewithTomcat
And it worked for a little.
I am using xml notation, but when i try to add to xmls the many-to-many / one-to-one information, it doesn't work and i can't figure why (i'm following the documentation), i can see only these errors:
On tomcat webapp manager
Code:
FAIL - Application at context path /elaborato could not be started
On catalina.out
Code:
ago 13, 2013 10:59:35 PM org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
ago 13, 2013 10:59:35 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.3.Final}
ago 13, 2013 10:59:35 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
ago 13, 2013 10:59:35 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
ago 13, 2013 10:59:35 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
ago 13, 2013 10:59:35 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
ago 13, 2013 10:59:35 PM org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: entities/Collegio.hbm.xml
ago 13, 2013 10:59:35 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
ago 13, 2013 10:59:35 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
ago 13, 2013 10:59:35 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/elaborato] startup failed due to previous errors
I'm using ant for compiling the classes (and it work) and for deploy automatically.
Please, help... it's since 2 days i can't move on...