I am trying to put together a simple example, and run across this error:
WARNING: Could not bind factory to JNDI
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
I know this i s a warning, but in a bit then I get this error:
INFO: schema export complete
Exception in thread "main" java.lang.UnsupportedOperationException
at org.hibernate.shards.session.ShardedSessionFactoryImpl.getCurrentSession(ShardedSessionFactoryImpl.java:288)
Of course hunting around I see that having a <session-factory name="shard1"> in my cfg.xml files means I am trying to bind something in JNDI. Of course i just want a simple stand alone example, where can I get a simple boot strapped JNDI tree, or can I turn this off somehow, or is there some good shards getting started guide that I missed that tells me to use some command line switch that hours of searching has failed to uncover.
Or do I just need to suck it up, and also have a JBoss process running.
|