[Persistence, JBoss/CMP, Hibernate, Database] - Oracle sequences not being found
by steve_of_AR
I'm getting validation exceptions from Hibernate during deployment of my (seam-gen generated) app, saying it can't find my sequences in Oracle, but the sequences are there. From the log I can see it's trying qualified and unqualified names, either should be fine.
Entity
| @Id
| @SequenceGenerator(name = "analysesGenerator", sequenceName = "SEQUENCE_ANALYSES")
| @GeneratedValue(strategy = SEQUENCE, generator = "analysesGenerator")
| @Column(name = "ANALYSIS_ID", unique = true, nullable = false, precision = 22, scale = 0)
| @NotNull
| public BigDecimal getAnalysisId() {
| return this.analysisId;
| }
Exception during deployment:
Deployment log
| 09:53:32,006 INFO [DatabaseMetadata] table not found: JANUS.SEQUENCE_ANALYSES
| 09:53:32,009 INFO [DatabaseMetadata] table not found: SEQUENCE_ANALYSES
| 09:53:32,015 WARN [ServiceController] Problem starting service persistence.units:ear=Janus.ear,unitName=Janus
| javax.persistence.PersistenceException: org.hibernate.HibernateException: Missing sequence or table: JANUS.SEQUENCE_ANALYSES
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
|
|
However the sequences are certainly there:
| > SELECT JANUS.SEQUENCE_ANALYSES.nextval FROM Dual
|
| NEXTVAL
| ----------------------
| 2
|
|
I can turn off hibernate validation, but then I get validation exceptions when I try to save a record from a form. If I turn off sequence generation altogether (making the user enter the pk values manually), the records save just fine - but obviously users won't tolerate this.
PS: Here's another user that seems to have the identical problem, on the hibernate forums recently:
http://forum.hibernate.org/viewtopic.php?t=971878&highlight=hibernateexce...
Anybody have any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045549#4045549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045549
19 years, 1 month
[Installation, Configuration & Deployment] - Unable to install with jems 1.2.0 with headless mode
by jkuang
I am trying to install the jems using the commmand line. But I am getting the following error. The java jvm version is 1.5.0_06-b05.
The command used is:
java -jar jems-installer-1.2.0.GA.jar -installGroup ejb3 installpath=/home/jkuang/jboss-4.0.5.GA
I just need to install jboss with ejb3 and seam package.
Thanks
-- Jin
[peng-dyn1]/home/jkuang/jems-installer % java -jar jems-installer-1.2.0.GA.jar -installGroup ejb3 installpath=/home/jkuang/jboss-4.0.5.GA
Looking for auto install resource...
/res/jbossauto-install.xml URL: jar:file:/home/jkuang/jems-installer/jems-installer-1.2.0.GA.jar!/res/jbossauto-install.xml
PackageListener, install.log=/tmp/jems-install.log
Cannot create log: /tmp/jems-install.log
[ Starting automated installation ]
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xb6e9fcd1, pid=31793, tid=2378402736
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# V [libjvm.so+0x3c9cd1]
#
[ Starting to unpack ]
# An error report file with more information is saved as hs_err_pid31793.log
[thread -2070991952 also had an error]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045543#4045543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045543
19 years, 1 month