[
http://mifosforge.jira.com/browse/MIFOS-4765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=65527#comment-65527
]
Adam Monsen edited comment on MIFOS-4765 at 2/22/11 10:22 AM:
--------------------------------------------------------------
I've debugged this and seen that this is because
org.eclipse.birt.core.framework.URLClassLoader's getFilePath() uses
URLDecoder.decode( path, "utf-8" ) on e.g.
{{/private/var/folders/So/SoDmUEwzGaG+wQFG9nqdXE+++TM/\-Tmp\-/jetty-0.0.0.0-8080-mifos.war-_mifos-any-/platform/plugins/org.eclipse.osgi_3.5.0.v20090520.jar}}
which removes the '\+' characters, and then the
org.eclipse.osgi_3.5.0.v20090520.jar can't be loaded.
Setting another WAR temp dir seems to solve this; I've tested it via
programmatic warCtx.setTempDirectory in a (to be extended) test case with the
MifosPackagedWARBasicTest / WARServerLauncher.
http://docs.codehaus.org/display/JETTY/Temporary+Directories
was (Author: vorburger):
I've debugged this and seen that this is because
org.eclipse.birt.core.framework.URLClassLoader's getFilePath() uses
URLDecoder.decode( path, "utf-8" ) on e.g.
/private/var/folders/So/SoDmUEwzGaG+wQFG9nqdXE+++TM/-Tmp-/jetty-0.0.0.0-8080-mifos.war-_mifos-any-/platform/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
which removes the '+' characters, and then the
org.eclipse.osgi_3.5.0.v20090520.jar can't be loaded.
Setting another WAR temp dir seems to solve this; I've tested it via
programmatic warCtx.setTempDirectory in a (to be extended) test case with the
MifosPackagedWARBasicTest / WARServerLauncher.
http://docs.codehaus.org/display/JETTY/Temporary+Directories
> BIRT: java.util.zip.ZipException: error in opening zip file
> -----------------------------------------------------------
>
> Key: MIFOS-4765
> URL: http://mifosforge.jira.com/browse/MIFOS-4765
> Project: mifos
> Issue Type: Dev Task
> Environment: Jetty v7.2.0
> Mac OS X 10.6.5 - Problem may be particular to Mac OS X, see description? Or
> have others seen this on other platforms as well?
> Reporter: Michael Vorburger
> Assignee: Michael Vorburger
> Priority: Critical
> Fix For: Release G
>
>
> This error occurs on start-up when the current mifos.war is deployed into a
> Jetty (e.g. v7.2.0) :
> {noformat}2011-02-20 01:47:54.952:INFO::Copying WEB-INF/lib
> jar:file:/Users/vorburger/bin/jetty-distribution-7.2.0.v20101020/webapps/mifos.war!/WEB-INF/lib/
> to
> /private/var/folders/So/SoDmUEwzGaG+wQFG9nqdXE+++TM/-Tmp-/jetty-0.0.0.0-8080-mifos.war-_mifos-any-/webinf/WEB-INF/lib
> 2011-02-20 01:48:03.458:INFO::Copying WEB-INF/classes from
> jar:file:/Users/vorburger/bin/jetty-distribution-7.2.0.v20101020/webapps/mifos.war!/WEB-INF/classes/
> to
> /private/var/folders/So/SoDmUEwzGaG+wQFG9nqdXE+++TM/-Tmp-/jetty-0.0.0.0-8080-mifos.war-_mifos-any-/webinf/WEB-INF/classes
> Feb 20, 2011 1:48:17 AM org.eclipse.birt.core.framework.URLClassLoader
> createLoader
> WARNING: can't load the class from
> file:/private/var/folders/So/SoDmUEwzGaG+wQFG9nqdXE+++TM/-Tmp-/jetty-0.0.0.0-8080-mifos.war-_mifos-any-/platform/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
> java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> at java.util.jar.JarFile.<init>(JarFile.java:135)
> at java.util.jar.JarFile.<init>(JarFile.java:72)
> at
> org.eclipse.birt.core.framework.URLClassLoader$JarLoader.<init>(URLClassLoader.java:367)
> at
> org.eclipse.birt.core.framework.URLClassLoader.createLoader(URLClassLoader.java:546)
> at
> org.eclipse.birt.core.framework.URLClassLoader.<init>(URLClassLoader.java:100)
> at
> org.eclipse.birt.core.framework.osgi.OSGILauncher$ChildFirstURLClassLoader.<init>(OSGILauncher.java:651)
> at
> org.eclipse.birt.core.framework.osgi.OSGILauncher.doStartup(OSGILauncher.java:140)
> at
> org.eclipse.birt.core.framework.osgi.OSGILauncher.access$0(OSGILauncher.java:94)
> at
> org.eclipse.birt.core.framework.osgi.OSGILauncher$1.run(OSGILauncher.java:79)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:75)
> at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
> 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.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:634)
> at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228)
> at
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1132)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:577)
> at
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:491)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
> at
> org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
> at
> org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:180)
> at
> org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:497)
> at
> org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:135)
> at
> org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileChanged(ScanningAppProvider.java:161)
> at
> org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileChanged(ScanningAppProvider.java:62)
> at org.eclipse.jetty.util.Scanner.reportChange(Scanner.java:490)
> at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:355)
> at org.eclipse.jetty.util.Scanner.scan(Scanner.java:306)
> at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:258)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> 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.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:634)
> at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228)
> at
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1132)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:577)
> at
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:491)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
> at
> org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
> at
> org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:180)
> at
> org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:497)
> at
> org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:135)
> at
> org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileChanged(ScanningAppProvider.java:161)
> at
> org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileChanged(ScanningAppProvider.java:62)
> at org.eclipse.jetty.util.Scanner.reportChange(Scanner.java:490)
> at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:355)
> at org.eclipse.jetty.util.Scanner.scan(Scanner.java:306)
> at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:258)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> 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)
> ... 21 more {noformat}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues