• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

JSF / CRUD - Transaction aborted

 
Greenhorn
Posts: 10
Netbeans IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
I have created a very simple CRUD program using NetBeans 7.0, JSF 2.0 and Glassfish 3.1, have not edited a single line. it connects to a very simple MySQL database, the program works great until I try to create a new entry in table1, I receive a "Transaction aborted" message.

I whipped up a another quick CRUD prog, using another simple DB using the exact same methods, and it works great, whats going on here?, what should I be looking for. I even tried a new JNDI and restarting MySQL and Glassfish, but no go.

Someone please help, my last question fell off into a black hole some months ago without an answer. please Help
 
Saloon Keeper
Posts: 28070
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's not much we can do to help. We need some details. Preferably just enough to get an idea of how you're trying to do this without actually burying us in so much trivia we can't read it. Which is always a challenge.
 
Roy Dellray
Greenhorn
Posts: 10
Netbeans IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok,
table1: ID - pk int nn ai, Date - date nn, Hour - int(2) nn, Minute - int(2) nn, Message - varchar(255) nn, Frequency - varchar(20) nn, fk_Frequency to table2 Frequency on update cascade on delete cascade
table2: Frequency - pk nn varchar(20)
Where pk - primary key, nn - not null, fk - foreign key, ai - auto increment.
Frequency table is 1 to many non-identifying relationship to Alert table.
Process: Created web app project, created entity classes from db (JNDI - mysql using root), created jsf pages from entities, deploy, run.
Other simpler one works, this one doesnt ?
 
Always! Wait. Never. Shut up. Look at this tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic