posted 11 years ago
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.
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.
trying to decode a woman mind....
Alessandro Ilardo
Ranch Hand
Posts: 218
posted 11 years ago
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.
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.
trying to decode a woman mind....
posted 11 years ago
Alessandro,
I'm just linking to the JBoss thread in case anyone reading this wants to follow the topic over there.
I'm just linking to the JBoss thread in case anyone reading this wants to follow the topic over there.
[OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2

Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |