On Tue, May 15, 2001 at 04:11:27PM -0700, <enter name here> wrote:
> > > 4) *** RMI ServerException Stack Trace ( this is thrown and the
> connection
> > > is NOT returned to the pool )
> > >     This is thrown when I try to call DatabaseUtility.closeConnection(
> > > connection ); (notice I catch _everything_ in that method) and is _not_
> > > thrown in the DatabaseUtility, but seems like it is thrown on the
> attempt to
> > > call the method.
> > > java.rmi.ServerException: Transaction rolled
> > > back:com/bebee/recommender/utility/DatabaseUtility
> > > at
> org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:300)
> >
> > Ok, you're missing out some details.  Are you calling an EJB from a
> servlet?
> >
> > You haven't mentioned anything about what this EJB is doing.  What are you
> > doing with transactions?  Are you getting the connection in the servlet
> > and trying to close it from the EJB or something?
> 
> 
> A servlet calls the bean it only passes primitive types (int, float, etc)
> into the bean, the bean gets its own connections from the pool and closes
> everything itself - the servlet simply determines which bean to call and
> gets form parameters to pass into the bean, the results are returned from
> the bean and are formatted into HTML to display them. The results may be Map
> objects, or primitive types

Ok, that should be fine.

> This is, in fact not a transactional bean. All it does is retrieves data
> from the database and shoves it into a Map to return. It is a session bean
> because some of the lookups are a little complex (do not map directly to a
> table)  -- and some of them require multiple row lookups - which you cannot
> do with entity beans.

Looking at the TxInterceptorBMT code, I suspect that you are getting a
NoClassDefFoundError for the DatabaseUtility class.  Do you have that class
in your ejb-jar?

Try catching Throwable around the call to DatabaseUtility and printing the
stacktrace.

Toby.

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to