Ola pessoal do GUJ, estou aprendendo a utilizar o BIRT juntamente com o Eclipse 3.2 em uma aplicação Web e com o jBoss.
implementei meu servlet mas quando criei um metodo especifico para retornar o engine:
public static ReportEngine executeEngine(ServletContext servletContext) throws EngineException {
//Engine Configuration - set and get temp dir, BIRT home, Servlet context
EngineConfig config = new EngineConfig();
// VERSAO WEB
// config.setEngineHome("");
config.setEngineHome(“C:/AmbienteJava/Tools/Birt/birt-runtime-2_1_1/ReportEngine”);
//IPlatformContext context = new PlatformServletContext( servletContext, engineHome );
IPlatformContext context = new PlatformServletContext( servletContext, “plugins” );
config.setEngineContext( context );
// VERSAO NAO WEB
//config.setEngineHome("C:/AmbienteJava/Tools/Birt/Runtime/birt-runtime-2_0_1/Report Engine");
//Create the report engine
ReportEngine engine = new ReportEngine( config );
return engine;
}
mas ocorre o erro :
org.eclipse.birt.core.exception.BirtException: $NO-RB$ Cant startup the OSGI framework
alguem pode me dizer o que estou fazendo de errado ou fornecer algum codigo fonte que seje melhor que o meu ?
valeu pessoal!