• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

jboss - mysql Table not found in statement

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I'm trying to establish a connection from an EJB module running on Jboss 4 to a Mysql 5 database.





When I try to run the modue from a simple client I get the following error:
Exception is caught: EJBException:; nested exception is:
javax.ejb.EJBException: ejbCreate: Tabella non trovata in statement [insert into savingsaccount values ( ? , ? , ? , ? )]

It basically says that the table has not been found in the statement.
The query shoulb be ok, I did some test in the mysql client. It may not have the default database set. But in the jdbc parameters it has it (after the url).

Does anyone have an idea on what my problem is?
Thank in advance.
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I partially solved my problem, which was related to JBoss datasource configuration.

http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources

Partially because the ejb correclty connects to MySQL, but I've got an error from the JBoss init, so I'm going to continue this topic on JBoss forum.
 
author & internet detective
Posts: 41998
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alessandro,
I'm just linking to the JBoss thread in case anyone reading this wants to follow the topic over there.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic