[EJB 3.0] - No Dialect mapping for JDBC type
by akrishmohan
When I run this code,
.....
int id = 20; //Id is the primary key in the db table
Query query = em.createNativeQuery("select p.* from Person where p.id = " + id);
log.debug(query.getResultList());
.......
I get the following exception:
Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
at org.hibernate.dialect.TypeNames.get(TypeNames.java:56)
at org.hibernate.dialect.TypeNames.get(TypeNames.java:81)
at org.hibernate.dialect.Dialect.getHibernateTypeName(Dialect.java:217)
at org.hibernate.loader.custom.CustomLoader.getHibernateType(CustomLoader.java:176)
at org.hibernate.loader.custom.CustomLoader.autoDiscoverTypes(CustomLoader.java:146)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1678)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2145)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
at org.hibernate.loader.Loader.list(Loader.java:2024)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:118)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1684)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:164)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:53)
... 5 more
Any help will be appreciated.
Thanks
K
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989892#3989892
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989892
18Â years, 1Â month
[JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used
by kumachan
Thank you for the reply!
It is a server log when the following describe it in component.xml.
pageflow.jpdl.xml is in WEB-INF as well as component.xml.
## Server Log ##
09:43:57,119 INFO [Component] Component: pageflow, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pageflow
| 09:43:57,150 INFO [Component] Component: transition, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Transition
| 09:43:57,150 INFO [Component] Component: pooledTask, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PooledTask
| 09:43:57,181 INFO [Component] Component: taskInstance, scope: APPLICATION, type: JAVA_BEAN, class:org.jboss.seam.core.TaskInstance
| 09:43:57,181 INFO [Component] Component: processInstance, scope: APPLICATION, type: JAVA_BEAN, class:org.jboss.seam.core.ProcessInstance
| 09:43:57,197 INFO [Component] Component: taskInstanceList, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.TaskInstanceList
| 09:43:57,197 INFO [Component] Component: pooledTaskInstanceList, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PooledTaskInstanceList
| 09:43:57,213 INFO [Component] Component: taskInstanceListForType, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.TaskInstanceListForType
| 09:43:57,228 INFO [Component] Component: jbpmContext, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedJbpmContext
| 09:43:57,228 INFO [Component] Component: org.jboss.seam.core.jbpm, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Jbpm
| 09:43:57,260 INFO [Component] Component: register, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: ks.sample.RegisterAction, JNDI: ks/RegisterAction/local
| 09:43:57,291 INFO [Component] Component: user, scope: CONVERSATION, type: ENTITY_BEAN, class: ks.sample.User
| 09:43:57,291 INFO [Lifecycle] starting up: isUserInRole
| 09:43:57,291 INFO [Lifecycle] starting up: processInstance
| 09:43:57,291 INFO [Lifecycle] starting up: org.jboss.seam.core.jbpm
| 09:43:57,322 ERROR [[/ks]] Exception sending context initialized event to listener instance of class
| org.jboss.seam.servlet.SeamListener
| java.lang.IllegalArgumentException: pageflow resource not found: pageflow.jpdl.xml
| at org.jboss.seam.core.Jbpm.getPageflowDefinitionFromResourceJbpm.java:129)
| at org.jboss.seam.core.Jbpm.installPageflowDefinitionsJbpm.java:207)
| at org.jboss.seam.core.Jbpm.startup(Jbpm.java:64)
| 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.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1738)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1686)
| at org.jboss.seam.Component.newInstance(Component.java:1675)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:153)
| at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:127)
| at org.jboss.seam.init.Initialization.init(Initialization.java:338)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
| 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
|
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at rg.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 09:43:57,556 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
| 09:43:57,728 INFO [FacesConfigurator] Reading config jar:file:/C:/usr/local/jboss-4.0.5.GA/server/default/tmp/deploy/tmp44525ks.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
| 09:43:57,744 INFO [FacesConfigurator] Reading config jar:file:/C:/usr/local/jboss-4.0.5.GA/server/d
| efault/./tmp/deploy/tmp44525ks.ear-contents/ks-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
| 09:43:57,775 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 09:43:57,822 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : ja_JP
| 09:43:57,978 INFO [StartupServletContextListener] ServletContext 'C:\usr\local\jboss-4.0.5.GA\serve
| r\default\.\tmp\deploy\tmp44525ks.ear-contents\ks-exp.war\' initialized.
| 09:43:57,978 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
| 09:43:57,994 ERROR [StandardContext] Error listenerStart
| 09:43:57,994 ERROR [StandardContext] Context [/ks] startup failed due to previous errors
| 09:43:58,025 WARN [ServiceController] Problem starting service jboss.web.deployment:war=ks.war,id=1215219666
| org.jboss.deployment.DeploymentException: URL file:/C:/usr/local/jboss-4.0.5.GA/server/default/tmp/deploy/tmp44525ks.ear-contents/ks-exp.war/ deployment failed
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
|
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 09:43:58,197 ERROR [MainDeployer] Could not start deployment: file:/C:/usr/local/jboss-4.0.5.GA/server/default/tmp/deploy/tmp44525ks.ear-contents/ks.war
| org.jboss.deployment.DeploymentException: URL file:/C:/usr/local/jboss-4.0.5.GA/server/default/tmp/deploy/tmp44525ks.ear-contents/ks-exp.war/ deployment failed
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
|
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989891#3989891
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989891
18Â years, 1Â month
[JBoss Seam] - Seam generate-entities failing
by Azavia
Hi,
I'm trying to use the seam-gen tool, but am getting some errors.
When I go to generate entities from the database, i get the following:
C:\jboss-seam>seam generate-entities
| Buildfile: C:\jboss-seam\seam-gen\build.xml
|
| validate-workspace:
|
| validate-project:
|
| generate-entities:
| [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engi
| neering)
| [hibernate] 1. task: hbm2java (Generates a set of .java files)
| [hibernate] Nov 29, 2006 8:18:27 PM org.hibernate.cfg.Environment <clinit>
| [hibernate] INFO: Hibernate 3.2 cr4
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.Environment <clinit>
| [hibernate] INFO: hibernate.properties not found
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.Environment buildBytecodeP
| rovider
| [hibernate] INFO: Bytecode provider name : cglib
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.Environment <clinit>
| [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.connection.DriverManagerConnec
| tionProvider configure
| [hibernate] INFO: Using Hibernate built-in connection pool (not for production u
| se!)
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.connection.DriverManagerConnec
| tionProvider configure
| [hibernate] INFO: Hibernate connection pool size: 20
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.connection.DriverManagerConnec
| tionProvider configure
| [hibernate] INFO: autocommit mode: false
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.connection.DriverManagerConnec
| tionProvider configure
| [hibernate] INFO: using driver: org.postgresql.Driver at URL: jdbc:postgresql://
| localhost:5432/seam_test
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.connection.DriverManagerConnec
| tionProvider configure
| [hibernate] INFO: connection properties: {user=Brandon, password=****}
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: RDBMS: PostgreSQL, version: 8.2beta3
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.2
| devel JDBC3 with SSL (build 503)
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.dialect.Dialect <init>
| [hibernate] INFO: Using dialect: org.hibernate.dialect.PostgreSQLDialect
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.transaction.TransactionFactory
| Factory buildTransactionFactory
| [hibernate] INFO: Using default transaction strategy (direct JDBC transactions)
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.transaction.TransactionManager
| LookupFactory getTransactionManagerLookup
| [hibernate] INFO: No TransactionManagerLookup configured (in JTA environment, us
| e of read-write or transactional second-level cache is not recommended)
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Automatic flush during beforeCompletion(): disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Automatic session close at end of transaction: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: JDBC batch size: 15
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: JDBC batch updates for versioned data: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Scrollable result sets: enabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: JDBC3 getGeneratedKeys(): disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Connection release mode: auto
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Default batch fetch size: 1
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Generate SQL with comments: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Order SQL updates by primary key: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory createQuer
| yTranslatorFactory
| [hibernate] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFact
| ory
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.hql.ast.ASTQueryTranslatorFact
| ory <init>
| [hibernate] INFO: Using ASTQueryTranslatorFactory
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Query language substitutions: {}
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: JPA-QL strict compliance: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Second-level cache: enabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Query cache: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory createCach
| eProvider
| [hibernate] INFO: Cache provider: org.hibernate.cache.NoCacheProvider
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Optimize cache for minimal puts: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Structured second-level cache entries: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Statistics: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Deleted entity synthetic identifier rollback: disabled
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.SettingsFactory buildSetti
| ngs
| [hibernate] INFO: Default entity-mode: pojo
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.reveng.JDBCReader processP
| rimaryKey
| [hibernate] WARNING: The JDBC driver didn't report any primary key columns in pg
| _buffercache. Asking rev.eng. strategy
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.reveng.JDBCReader processP
| rimaryKey
| [hibernate] WARNING: Rev.eng. strategy did not report any primary key columns fo
| r pg_buffercache
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.reveng.JDBCReader processP
| rimaryKey
| [hibernate] WARNING: The JDBC driver didn't report any primary key columns in pg
| _freespacemap_pages. Asking rev.eng. strategy
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.reveng.JDBCReader processP
| rimaryKey
| [hibernate] WARNING: Rev.eng. strategy did not report any primary key columns fo
| r pg_freespacemap_pages
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.reveng.JDBCReader processP
| rimaryKey
| [hibernate] WARNING: The JDBC driver didn't report any primary key columns in pg
| _freespacemap_relations. Asking rev.eng. strategy
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.cfg.reveng.JDBCReader processP
| rimaryKey
| [hibernate] WARNING: Rev.eng. strategy did not report any primary key columns fo
| r pg_freespacemap_relations
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.connection.DriverManagerConnec
| tionProvider close
| [hibernate] INFO: cleaning up connection pool: jdbc:postgresql://localhost:5432/
| seam_test
| [hibernate] Nov 29, 2006 8:18:28 PM org.hibernate.tool.Version <clinit>
| [hibernate] INFO: Hibernate Tools 3.2.0.snapshotb9
| [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl
| [hibernate] Nov 29, 2006 8:18:29 PM freemarker.log.JDK14LoggerFactory$JDK14Logge
| r error
| [hibernate] SEVERE:
|
| [hibernate] Expression pojo.identifierProperty is undefined on line 47, column 8
| 5 in view/list.xhtml.ftl.
| [hibernate] The problematic instruction:
| [hibernate] ----------
| [hibernate] ==> ${pojo.identifierProperty.name} [on line 47, column 83 in view/l
| ist.xhtml.ftl]
| [hibernate] ----------
|
| [hibernate] Java backtrace for programmers:
| [hibernate] ----------
| [hibernate] freemarker.core.InvalidReferenceException: Expression pojo.identifie
| rProperty is undefined on line 47, column 85 in view/list.xhtml.ftl.
| [hibernate] at freemarker.core.TemplateObject.assertNonNull(TemplateObject.j
| ava:124)
| [hibernate] at freemarker.core.TemplateObject.invalidTypeException(TemplateO
| bject.java:134)
| [hibernate] at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
| [hibernate] at freemarker.core.Expression.getAsTemplateModel(Expression.java
| :89)
| [hibernate] at freemarker.core.Expression.getStringValue(Expression.java:93)
|
| [hibernate] at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
|
| [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
| [hibernate] at freemarker.core.MixedContent.accept(MixedContent.java:92)
| [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
| [hibernate] at freemarker.core.Environment.process(Environment.java:176)
| [hibernate] at freemarker.template.Template.process(Template.java:231)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(Templ
| ateHelper.java:245)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(Tem
| plateProducer.java:67)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplatePro
| ducer.java:28)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplatePro
| ducer.java:97)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericEx
| porter.java:84)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(Gene
| ricExporter.java:69)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(Generi
| cExporter.java:63)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExpor
| ter.java:41)
| [hibernate] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExpor
| ter.java:95)
| [hibernate] at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java
| :40)
| [hibernate] at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToo
| lTask.java:182)
| [hibernate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
| va:275)
| [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364)
| [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341)
| [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
| [hibernate] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
| a:1216)
| [hibernate] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
|
| [hibernate] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
| faultExecutor.java:40)
| [hibernate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
| )
| [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668)
| [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187)
| [hibernate] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
| [hibernate] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
| [hibernate] An exception occurred while running exporter #3:generic exportertemp
| late: view/list.xhtml.ftl
| [hibernate] To get the full stack trace run ant with -verbose
| [hibernate] org.hibernate.tool.hbm2x.ExporterException: Error while processing t
| emplate view/list.xhtml.ftl
| [hibernate] freemarker.core.InvalidReferenceException: Expression pojo.identifie
| rProperty is undefined on line 47, column 85 in view/list.xhtml.ftl.
|
| BUILD FAILED
| C:\jboss-seam\seam-gen\build.xml:639: org.hibernate.tool.hbm2x.ExporterException
| : Error while processing template view/list.xhtml.ftl
|
| Total time: 2 seconds
|
| C:\jboss-seam>
JBoss version is 4.0.5, Seam is whatever is the latest download.
Everything else has worked, like new-form, new-action, etc. I just am trying to get this to work.
Database is postgresql. I specified the jdbc url first as jdbc:postgresql:seam_test, then as jdbc:postgresql://localhost:5432/seam_test
Thanks,
Brandon
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989888#3989888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989888
18Â years, 1Â month