Hibernate + CloudSQL = javax.naming.NamingException

46 views
Skip to first unread message

fabio.bozzo

unread,
Mar 27, 2012, 8:34:01 AM3/27/12
to google-a...@googlegroups.com
Hi I am trying to use Spring + Hibernate for working with GAE+CloudSQL.

A 500 error broke my app: java.lang.NoClassDefFoundError: javax/naming/NamingException

I know javax.naming package is off-limits on AppEngine, but.... how can I get a workaround? 

Hibernate breaks on SessionFactoryImpl, at this method:

public Reference getReference() throws NamingException {
log.debug("Returning a Reference to the SessionFactory");
return new Reference(
SessionFactoryImpl.class.getName(),
   new StringRefAddr("uuid", uuid),
   SessionFactoryObjectFactory.class.getName(),
   null
);
}

It's not my code. How can I make it work?
Reply all
Reply to author
Forward
0 new messages