In my components.xml file, I changed from the EJB component to the
Microcontainer component...
Now I am getting the following exception:
| 16:23:09,077 DEBUG org.jboss.kernel.KernelFactory.(assembleNewKernel:86) -
Starting JBoss Kernel construction...
| 16:23:09,202 DEBUG org.jboss.kernel.KernelFactory.(assembleNewKernel:112) -
Completed JBoss Kernel construction. Durati
| on: 125 milliseconds
| 16:23:09,249 DEBUG org.jboss.seam.Component.(debug:84) - instantiating Seam
component: org.jboss.seam.core.hibernate
| 16:23:09,295 INFO org.hibernate.cfg.annotations.Version.(info:94) -
Hibernate Annotations 3.2.0.CR1
| 16:23:09,311 INFO org.hibernate.cfg.Environment.(info:94) - Hibernate 3.2
cr2
| 16:23:09,327 INFO org.hibernate.cfg.Environment.(info:94) -
hibernate.properties not found
| 16:23:09,327 INFO org.hibernate.cfg.Environment.(info:94) - Bytecode
provider name : cglib
| 16:23:09,342 INFO org.hibernate.cfg.Environment.(info:94) - using JDK 1.4
java.sql.Timestamp handling
| 16:23:09,467 INFO org.hibernate.cfg.Configuration.(info:94) - configuring
from resource: /hibernate.cfg.xml
| 16:23:09,467 INFO org.hibernate.cfg.Configuration.(info:94) -
Configuration resource: /hibernate.cfg.xml
| 16:23:09,639 INFO org.hibernate.cfg.Configuration.(info:94) - Configured
SessionFactory: java:/appssoSessionFactory
| 16:23:09,749 INFO org.hibernate.cfg.AnnotationBinder.(info:94) - Binding
entity from annotated class: com.evergreen.use
| rlinks.orm.User
| 16:23:09,827 INFO org.hibernate.cfg.annotations.EntityBinder.(info:94) -
Bind entity com.evergreen.userlinks.orm.User o
| n table user
| org.hibernate.AnnotationException: @Temporal should be set on a
java.util.Date or java.util.Calendar property: com.everg
| reen.userlinks.orm.User.createDate
| at
org.hibernate.cfg.annotations.SimpleValueBinder.setType(SimpleValueBinder.java:88)
| at
org.hibernate.cfg.annotations.PropertyBinder.bind(PropertyBinder.java:111)
| at
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1521)
| at
org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:699)
| at
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:353)
| at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:265)
| at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1205)
| at org.jboss.seam.core.Hibernate.startup(Hibernate.java:69)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| at
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
| at org.jboss.seam.Component.newInstance(Component.java:1312)
| at org.jboss.seam.Component.getInstance(Component.java:1263)
| at org.jboss.seam.Component.getInstance(Component.java:1253)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
| at
org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104)
| at org.jboss.seam.init.Initialization.init(Initialization.java:196)
| at org.jboss.seam.mock.SeamTest.init(SeamTest.java:321)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at
org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
| at
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:318)
| at
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:152)
| at
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
| at org.testng.TestRunner.privateRun(TestRunner.java:682)
| at org.testng.TestRunner.run(TestRunner.java:566)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:220)
| at org.testng.SuiteRunner.run(SuiteRunner.java:146)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:676)
| at
org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:64)
| at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
| at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
|
I am using the Alpha8 patch2 release of JBoss Embeddable EJB3 container
(jboss-EJB-3.0_Embeddable_ALPHA_8-patch2) via:
| jboss-EJB-3.0_Embeddable_ALPHA_8-patch2
|
I've seen the org.hibernate.AnnotationException: anonymous wrote : @Temporal
should be set on a error before in the container (JBoss application server) I
can't quite remember how/why it went away. Has anbody else seen this error
message for the @Timestamp annotations? If so, how did you solve it?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953833#3953833
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953833
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user