Erro com hibernate

1 resposta
D

bom dia… estou com esse erro … alguem pode me ajudar?

2012-01-07 08:25:23,018 WARN Worker-247 org.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.getNameParser(Unknown Source)

at org.hibernate.util.NamingHelper.bind(NamingHelper.java:75)

at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:113)

at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:378)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)

at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)

at org.hibernate.console.ConsoleConfiguration$4.execute(ConsoleConfiguration.java:245)

at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)

at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)

at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:240)

at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)

at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)

at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)

at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

1 Resposta

rafaduka
Criado 7 de janeiro de 2012
Ultima resposta 7 de jan. de 2012
Respostas 1
Participantes 2