[JBoss Tools (users)] - Re: Hibernate Configurations problem
by asookazian
here is my .classpath file contents:
<?xml version="1.0" encoding="UTF-8"?>
| <classpath>
| <classpathentry kind="src" output="classes/model" path="src/model"/>
| <classpathentry kind="src" output="classes/action" path="src/action"/>
| <classpathentry kind="src" output="classes/test" path="src/test"/>
| <classpathentry kind="src" output="classes/dao" path="src/dao"/>
| <classpathentry kind="src" output="classes/util" path="src/util"/>
| <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
| <classpathentry kind="lib" path="bootstrap"/>
| <classpathentry kind="lib" path="lib/hibernate-validator.jar"/>
| <classpathentry kind="lib" path="lib/hibernate3.jar"/>
| <classpathentry kind="lib" path="lib/hibernate-annotations.jar"/>
| <classpathentry kind="lib" path="lib/hibernate-commons-annotations.jar"/>
| <classpathentry kind="lib" path="lib/hibernate-entitymanager.jar"/>
| <classpathentry kind="lib" path="lib/jboss-seam.jar" sourcepath="lib/src/jboss-seam-sources.jar"/>
| <classpathentry kind="lib" path="lib/jboss-seam-debug.jar"/>
| <classpathentry kind="lib" path="lib/jboss-cache.jar"/>
| <classpathentry kind="lib" path="lib/jbpm-jpdl.jar"/>
| <classpathentry kind="lib" path="lib/antlr.jar"/>
| <classpathentry kind="lib" path="lib/jgroups.jar"/>
| <classpathentry kind="lib" path="lib/jsf-facelets.jar"/>
| <classpathentry kind="lib" path="lib/jstl.jar"/>
| <classpathentry kind="lib" path="lib/jsf-api.jar"/>
| <classpathentry kind="lib" path="lib/servlet-api.jar"/>
| <classpathentry kind="lib" path="lib/testng.jar"/>
| <classpathentry kind="lib" path="lib/jboss-el.jar"/>
| <classpathentry kind="lib" path="lib/el-api.jar"/>
| <classpathentry kind="lib" path="lib/mvel14.jar"/>
| <classpathentry kind="lib" path="lib/drools-core.jar"/>
| <classpathentry kind="lib" path="lib/drools-compiler.jar"/>
| <classpathentry kind="lib" path="lib/janino.jar"/>
| <classpathentry kind="lib" path="lib/antlr-runtime.jar"/>
| <classpathentry kind="lib" path="lib/mail.jar"/>
| <classpathentry kind="lib" path="lib/persistence-api.jar"/>
| <classpathentry kind="lib" path="lib/ejb-api.jar"/>
| <classpathentry kind="lib" path="lib/jsr250-api.jar"/>
| <classpathentry kind="lib" path="lib/jta.jar"/>
| <classpathentry kind="lib" path="lib/core.jar"/>
| <classpathentry kind="lib" path="lib/jboss-embedded-api.jar"/>
| <classpathentry kind="lib" path="lib/hibernate-search.jar"/>
| <classpathentry kind="lib" path="lib/sqljdbc.jar"/>
| <classpathentry kind="lib" path="lib/lucene-core.jar"/>
| <classpathentry kind="lib" path="lib/jcifs-1.2.17.jar"/>
| <classpathentry kind="lib" path="lib/v20070621-common.jar"/>
| <classpathentry kind="lib" path="lib/v20080929-cadils.jar"/>
| <classpathentry kind="lib" path="lib/richfaces-api-3.2.1.GA.jar"/>
| <classpathentry kind="output" path="test-build"/>
| </classpath>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216646#4216646
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216646
15 years, 10 months
[JBoss Tools (users)] - seam-gen IDE vs Console
by digit-x
Hi,
i'm running into problems using seam-gen on the console and importing the project into eclipse afterwards (eclipse ganymede with jboss tools 2.1GA and seam 2.1) - it simply does not compile properly.
What i do is run seam-gen from console:
seam setup -> create-project -> generate
No problems until here - just a few warnings regarding to not existing unique keys within two tables. In case i deploy from console everything is fine.
Afterwards i import the project within eclipse, which works fine.
Deploying fails with the following error messages:
|
| 16:58:49,937 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#seamingo state=Create
| javax.persistence.PersistenceException: [PersistenceUnit: seamingo] Unable to build EntityManagerFactory
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
| at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:311)
| 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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
| at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:547)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.hibernate.HibernateException: Wrong column type in appserver.bibl for column bib_art. Found: char, expected: varchar(2)
| at org.hibernate.mapping.Table.validateColumns(Table.java:284)
| at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1116)
| at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:139)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:349)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
| at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
| ... 50 more
|
Any ideas?
thx a lot
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216643#4216643
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216643
15 years, 10 months