EJB problem [message #204355] |
Fri, 01 December 2006 08:26 |
Eclipse User |
|
|
|
Originally posted by: akimaki23.gmail.com
Hi,
i'm having trouble running the below code. it works fine outside BIRT but
when i try to put that in a DataSetHandler then the viewer stops with
"java.lang.ClassCastException: java.lang.NoClassDefFoundError"
from the logs it stops when i try to lookup the bean. any way to find out
more details of that exception since it doesn't throw any for me?
thanks
---
public void open(IDataSetInstance dataSet) {
FirstPassed fp;
try {
BasicConfigurator.configure(new FileAppender(new SimpleLayout(),
"c:\\logbrt.txt", false));
log.info("start");
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
env.put(Context.PROVIDER_URL, "jnp://budtst001.bud.slr.com:1099");
Context jndiContext = new InitialContext(env);
log.info("looking up bean");
fp = (FirstPassed) jndiContext.lookup("ejb/sfdmreports/FirstPassed");
log.info("bean found");
} catch (Exception e) {
log.error(e.getCause().toString());
StackTraceElement[] msgs = e.getStackTrace();
for (int i = 0; i < msgs.length; ++i) {
log.error(msgs[i].toString());
}
return;
}
|
|
|
Powered by
FUDForum. Page generated in 0.03719 seconds