[
https://jira.jboss.org/jira/browse/JBDS-507?page=com.atlassian.jira.plugi...
]
Frank Bommeli commented on JBDS-507:
------------------------------------
Sorry, but the bug is not fixed at all!
I'm under Ubuntu 9.04, Seam 2.2.0, Seam Tools 3.1.0 M2, Java 6, JBoss 5.
first, some observations.
Make the tutorial as described here
http://docs.jboss.org/tools/3.1.0.M2/en/seam/html_single/index.html#crud_...
You can't generate the entities.
From what I can see of the above comments, you tested the bug on a
Window environment, maybe it only works on Windows?
What is strange is that the db
can be pinged and that from the db perspective, one can connect and see the db content.
I guess the problem is that hibernate is not aware of the presence of the driver. I should
be possible to have a quick workaround if we know were to copy the driver jar.
Steps to reproduce:
1. Seam Generate Entities
If you here check the settings, you can test the db connection which is OK (settings
-> connection profile : edit -> Driver Properties -> Test connection)
2. Next
3. Refresh
The database schema gives Error: Couldn't connect to database
4. If you now add by hand the schema : (Include -> Edit Schema Field e.g. TEST for the
schema name)
5. You got a Hibernate error message
Can't generate seam entities
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database
driverclass (com.mysql.jdbc.Driver)
Problems while loading database driverclass (com.mysql.jdbc.Driver)
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading
database driverclass (com.mysql.jdbc.Driver)
Problems while loading database driverclass (com.mysql.jdbc.Driver)
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
com.mysql.jdbc.Driver
Stack trace from eclipse log file:
!SUBENTRY 2 org.hibernate.eclipse.console 4 666 2009-08-26 10:37:42.180
!MESSAGE java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
!STACK 0
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
at
org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:458)
at org.hibernate.console.ConsoleConfiguration.access$1(ConsoleConfiguration.java:454)
at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:298)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:270)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.buildConfiguration(CodeGenerationLaunchDelegate.java:271)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:214)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:136)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
at
org.jboss.tools.seam.ui.wizard.SeamGenerateEnitiesWizard$1.execute(SeamGenerateEnitiesWizard.java:338)
at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
at org.jboss.tools.seam.ui.wizard.SeamBaseWizard$1.execute(SeamBaseWizard.java:77)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)
at org.jboss.tools.seam.ui.wizard.SeamBaseWizard.performFinish(SeamBaseWizard.java:66)
at
org.jboss.tools.seam.ui.wizard.SeamGenerateEnitiesWizard.performFinish(SeamGenerateEnitiesWizard.java:376)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:135)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Seam generate-entities wizard fails
-----------------------------------
Key: JBDS-507
URL:
https://jira.jboss.org/jira/browse/JBDS-507
Project: JBoss Developer Studio
Issue Type: Bug
Components: seam
Affects Versions: 1.1.0.GA, 2.0.0.beta1
Environment: JDK 5, 6
Fedora 9 x86
EAP 4.3.GA_CP03_FP01
Reporter: Jozef Hartinger
Assignee: Anton Klimkovich
Priority: Blocker
Fix For: 2.0.0.cr2
Attachments: jbds-11-jdk6-Ear-generate-entities.txt
Generating entities does not work in new-ly created seam web project (both EAR and WAR).
I am using "Reverse engineer from database" option and in next step selecting
all the tables - using standard seam testing tables (Person, Vehicle). After this step the
wizard fails with an attached error.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira