Hi,
we are considering to use Jboss 4.0 (using Hibernate) in our future
developements. We have successfully compiled and executed a small java app
using just Hibernate. However, we have been unable to port that small app to
Hibernate on Jboss.
Using the JBoss 4.0 manual, and googling around, I think we have correctly
configured and deployed our app in Jboss (then, maybe not, because it's not
working). However, when we try to execute a simple query, this is the resulting
error:
12:00:23,651 ERROR [LogInterceptor] EJBException in method: public abstract
java.util.List
com.aitanasbs.conexion400.interfaces.Fachada.getArticulos(java.lang.String)
throws java.rmi.RemoteException:
| javax.ejb.EJBException: in expected: ob [from CdCliente ob where
ob.CdClienteApellidos like '%Rafael%']
We have both tried to connect to a MySQL and a DB2-400 database, and we are
always getting the same error. Could anybody help us to find what the problem
is? :-(
This is the code that executes the query (we are using the classes created by
the Eclipse plug-in Hibernate Synchronizer):
Context ctx = new InitialContext();
| SessionFactory factory =
(SessionFactory)ctx.lookup("java:/hibernate/SessionFactory");
| Session hsession = factory.openSession();
| return hsession.find("from CdCliente ob where ob.CdClienteApellidos like
'%Rafael%'");
|
We are using MySQL 4.1 + JBoss 4.0 on Windows, and developing with JBoss-IDE.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865013#3865013
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865013
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user