Skip to main content



      Home
Home » Archived » BIRT » EJB problem
EJB problem [message #204355] Fri, 01 December 2006 08:26
Eclipse UserFriend
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;
}
Previous Topic:Is there any restirction in BIRT, so that we can use only one calendar picker
Next Topic:Setting the images in ReportBuilder
Goto Forum:
  


Current Time: Thu Jun 05 00:37:09 EDT 2025

Powered by FUDForum. Page generated in 0.03719 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top