error.CannotStartupOSGIPlatform
Hi,<br />
<br />
I'm trying to use BIRT 4.2 in a web application that runs on JBoss AS 5.<br />
<br />
I am using report engine API for report generation.<br />
<br />
The problem is that it only works one time (For the first time the report is generating fine). The next time when I try to render a report I get an exception on:<br />
<br />
<strong class='bbc'>Code: [Select all] [Show/ hide]Platform.startup(engineConfig);</strong><br />
<br />
With the exception:<br />
<br />
<strong class='bbc'>Config is EngineConfig: org.eclipse.birt.report.engine.api.EngineConfig.emitterConfigs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@12fe3bb};<br />
12:14:21,657 ERROR [STDERR] org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform<br />
12:14:21,658 ERROR [STDERR] at org.eclipse.birt.core.framework.Platform.startup(Platform.java:81)<br />
12:14:21,658 ERROR [STDERR] at com.mm.gip.engine.birt_engine.generateReport(birt_engine.java:52)<br />
12:14:21,658 ERROR [STDERR] at com.mm.gip.bean.FinishBean.generateReport(FinishBean.java:23)<br />
12:14:21,658 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
12:14:21,658 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
12:14:21,658 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
12:14:21,658 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)<br />
12:14:21,658 ERROR [STDERR] at org.apache.el.parser.AstValue.invoke(AstValue.java:170)<br />
12:14:21,658 ERROR [STDERR] at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)<br />
12:14:21,658 ERROR [STDERR] at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)<br />
12:14:21,658 ERROR [STDERR] at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)<br />
12:14:21,658 ERROR [STDERR] at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)<br />
12:14:21,659 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UICommand.java:387)<br />
12:14:21,659 ERROR [STDERR] at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)<br />
12:14:21,659 ERROR [STDERR] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)<br />
12:14:21,659 ERROR [STDERR] at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)<br />
12:14:21,659 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)<br />
12:14:21,659 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)<br />
12:14:21,659 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)<br />
12:14:21,659 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br />
12:14:21,659 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
12:14:21,659 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)<br />
12:14:21,659 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br />
12:14:21,659 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
12:14:21,659 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)<br />
12:14:21,659 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br />
12:14:21,660 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)<br />
12:14:21,660 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)<br />
12:14:21,660 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)<br />
12:14:21,660 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)<br />
12:14:21,660 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br />
12:14:21,660 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br />
12:14:21,660 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)<br />
12:14:21,660 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br />
12:14:21,660 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)<br />
12:14:21,660 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)<br />
12:14:21,660 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)<br />
12:14:21,660 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br />
12:14:21,660 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)<br />
12:14:21,661 ERROR [STDERR] Caused by: org.eclipse.birt.core.framework.FrameworkException: Cant register the ExtensionRegistry classpath<br />
12:14:21,661 ERROR [STDERR] at org.eclipse.birt.core.framework.jar.ServiceLauncher.startup(ServiceLauncher.java:99)<br />
12:14:21,661 ERROR [STDERR] at org.eclipse.birt.core.framework.Platform.startup(Platform.java:75)<br />
12:14:21,661 ERROR [STDERR] ... 38 more<br />
12:14:21,661 ERROR [STDERR] Caused by: org.eclipse.core.runtime.CoreException: Extension registry provider is already set.<br />
12:14:21,661 ERROR [STDERR] at org.eclipse.core.internal.registry.RegistryProviderFactory.setDefault(RegistryProviderFactory.java:31)<br />
12:14:21,661 ERROR [STDERR] at org.eclipse.core.runtime.RegistryFactory.setDefaultRegistryProvider(RegistryFactory.java:129)<br />
12:14:21,661 ERROR [STDERR] at org.eclipse.birt.core.framework.jar.ServiceLauncher.startup(ServiceLauncher.java:84)<br />
12:14:21,661 ERROR [STDERR] ... 39 more</strong><br />
<br />
<br />
PFA the engine file? Is their any issue with engine file?<br />
<br />
i'm definitely sure that the ReportEngine/lib jars were in my WEB-INF/lib folder..except <strong class='bbc'>org.apache.xerces</strong>, <strong class='bbc'>org.apache.resolver </strong>and <strong class='bbc'>org.apache.serializer </strong><br />
<br />
Anyone have any idea of why this happens and how to solve it?<br />
Thanks in advance!