Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Problem with generating entity from table
Problem with generating entity from table [message #617643] Mon, 02 November 2009 01:48 Go to next message
Ludovic  is currently offline Ludovic
Messages: 7
Registered: November 2009
Junior Member
Hello,

I am creating a project in galileo, with dali 2.2. I also use EclipseLink and Glassfish as a server. The project is jpa enabled, with a pesistence.xml file. I use the wizard to generate the entities from tables.

I may see the tables of my schema in the wizard. In fact everything goes fine up to the finish.

The only thing is that no code is generated and I can't find any message of why it failed.

Any help would be appreciated. If it's not the right place to ask, don't hesitate to tell me.

thanks

Ludovic
Re: Problem with generating entity from table [message #617668 is a reply to message #617643] Thu, 05 November 2009 17:25 Go to previous messageGo to next message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Please open the Error Log view and report any errors that might have been logged on the Finish. I'm guessing that there is something being sent to the log that might help us diagnose the problem.

Thanks,
Neil
Re: Problem with generating entity from table [message #617672 is a reply to message #617668] Fri, 06 November 2009 03:50 Go to previous message
Ludovic  is currently offline Ludovic
Messages: 7
Registered: November 2009
Junior Member
yes there is this exception:
Quote:
> org.eclipse.core.runtime.CoreException: Unable to find JPA entities generation templates in pluginorg.eclipse.jpt.gen
> at org.eclipse.jpt.gen.internal2.PackageGenerator2.generateClas s(PackageGenerator2.java:202)
> at org.eclipse.jpt.gen.internal2.PackageGenerator2.generateInte rnal(PackageGenerator2.java:112)
> at org.eclipse.jpt.gen.internal2.PackageGenerator2.doGenerate(P ackageGenerator2.java:92)
> at org.eclipse.jpt.gen.internal2.PackageGenerator2.generate(Pac kageGenerator2.java:73)
> at org.eclipse.jpt.ui.internal.wizards.gen.GenerateEntitiesFrom SchemaWizard$GenerateEntitiesJob.runInWorkspace(GenerateEnti tiesFromSchemaWizard.java:254)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: java.lang.NoSuchMethodError: org.apache.log4j.Logger.debug(Ljava/lang/Object;Ljava/lang/T hrowable;)V
> at org.apache.velocity.runtime.log.Log4JLogChute.log(Log4JLogCh ute.java:183)
> at org.apache.velocity.runtime.log.HoldingLogChute.transferTo(H oldingLogChute.java:115)
> at org.apache.velocity.runtime.log.LogManager.updateLog(LogMana ger.java:216)
> at org.apache.velocity.runtime.RuntimeInstance.initializeLog(Ru ntimeInstance.java:728)
> at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInst ance.java:240)
> at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInst ance.java:534)
> at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.j ava:144)
> at org.eclipse.jpt.gen.internal2.PackageGenerator2.generateClas s(PackageGenerator2.java:188)
> ... 6 more


it seems that the log4j jar is missing. Is it at the plugin level?

thanks

Ludovic
Previous Topic:Extensibility of GenerateEntityWizard and GenerateEntityFromShemaWizard
Next Topic:Problem with generating entity from table
Goto Forum:
  


Current Time: Wed Sep 17 17:52:23 GMT 2014

Powered by FUDForum. Page generated in 0.02107 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software