[ 
http://mifosforge.jira.com/browse/MIFOS-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=69158#comment-69158
 ] 

Michael Vorburger commented on MIFOS-5118:
------------------------------------------

OK, same approach as done in MIFOS-5119 once again here in order to patch 
BIRT... coreapi_MIFOS-5119-MIFOS-5118.jar, removed PlatformServletContext.class 
& PlatformServletContext$1.class, added 
http://dev.eclipse.org/viewcvs/viewvc.cgi/source/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformServletContext.java?view=co&revision=1.15&root=BIRT_Project&pathrev=BIRT_2_5_0_Branch
 in 
reporting/src/main/java/org/eclipse/birt/core/framework/PlatformServletContext.java

Then changed line 88 of PlatformServletContext from

{code}if ( platform == null ){code}

to

{code}if ( platform == null  ||  !new File(platform).exists()){code}

That does the trick - I've verified it by rebuilding a WAR and deploy on Tomcat 
(and checking that it still works on Jetty).
                
> BIRT broken on Tomcat 7.0.21
> ----------------------------
>
>                 Key: MIFOS-5118
>                 URL: http://mifosforge.jira.com/browse/MIFOS-5118
>             Project: mifos
>          Issue Type: Bug
>          Components: Reports Module
>            Reporter: Michael Vorburger
>            Assignee: Michael Vorburger
>            Priority: Major
>
> org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
>       at org.eclipse.birt.core.framework.Platform.startup(Platform.java:91)
>       at 
> org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:321)
>       at 
> org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
>       at 
> org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
>       at 
> org.mifos.reports.MifosViewerServletContextListener.contextInitialized(MifosViewerServletContextListener.java:69)
>       at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
>       at 
> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
>       at 
> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>       at java.lang.Thread.run(Thread.java:679)
> Caused by: org.eclipse.birt.core.exception.CoreException
>       at 
> org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:90)
>       at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
>       ... 12 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://mifosforge.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to