E ae galera!
Alguem pode me ajudar? Ja aconteceu com alguem?
Qdo eu inicio o TOMCAT e subo a minha aplicação ocorre o erro abaixo:
[code]30/09/2007 14:02:55 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class br.com.leadertech.jsf.util.StartupCommonBF
java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode
-[IDENT] IdentNode: ‘u’ {originalText=u}
at br.com.leadertech.util.InicializarSistema.inicializar(InicializarSistema.java:43)
at br.com.leadertech.jsf.util.StartupCommonBF.contextInitialized(StartupCommonBF.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
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:566)
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)
30/09/2007 14:02:55 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart[/code]
O erro ocorre na linha abaixo:
[code]public synchronized static void inicializar() {
try {
EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(“PU”);
CommonBusinessFactory.setEntityManagerFactory(entityManagerFactory);
BusinessFactory.setBusinessFactoryClassName(CommonBusinessFactory.class.getName());
}catch (Exception e){
//log.fatal("Erro ao carregar o banco de dados!");
throw new IllegalStateException(e.getMessage());
}
}[/code]
Valeu!