|
|
|
Re: PPT download from server - error [message #444081 is a reply to message #443291] |
Fri, 31 July 2009 16:29 |
|
Tero,
Are you using JBoss integration? What version of BIRT is this? I
remember there being an issue with background images in previous
versions of BIRT. Can you try to put an image in the resource folder
and then just putting the image name in the background?
Jason
Tero wrote:
> Hello,
>
> Is there a possibility to use something like file:\\xyz or url(xyz)
> within the Master Page "Background image" ?
>
> I am thinking about that because after changing from
> "C:\folder1\forlder2\backroung.png" to the relative
> "/forlder2/backroung.png" the error is:
>
> 31-Jul-2009 10:59:34
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea
> createBackgroundImage
> WARNING: no protocol: /forlder2/backroung.png
> java.net.MalformedURLException: no protocol: /forlder2/backroung.png
> at java.net.URL.<init>(URL.java:567)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:266)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
>
> at org.eclipse.birt.report.engine.layout.html.buffer...
> ..
> ..
>
> 1- when using the complete path ("C:\folder1\forlder2\backroung.png")
> the viewer displays the background and when trying to download the
> report it generates the error described in my post above (unknown
> protocol: c).
> 2- when using relative path ("/forlder2/backroung.png") the viewer does
> not display the background (but all the rest of the report) and when
> trying to download the report it generates the error above (no protocol).
> The funniest with the second point is that I am using a relative path
> for an image within the report and that is displaying perfectly in the
> viewer, so why not the background?!
>
> Thanks for any idea,
> Tero
>
|
|
|
|
Re: PPT download from server - error [message #480568 is a reply to message #480556] |
Mon, 17 August 2009 16:32 |
|
Tero,
Try one of the following.
Put the image in the resource folder and in the beforeFactory add the
following:
reportContext.getDesignHandle().findMasterPage("myMasterPage ").setProperty("backgroundImage",
"yourbackgroundimage.png" );
or
go to the advanced properties on the master page and change the
background image from c:\myimage\... to file://c:\myimage\..
You can also try option 2 with option 1. Instead of setting the image
to a file in your resource set it to a url http://.. or file://
Jason
Tero wrote:
> Jason Weathersby wrote:
>
>> Tero,
>
>> Are you using JBoss integration? What version of BIRT is this? I
>> remember there being an issue with background images in previous
>> versions of BIRT. Can you try to put an image in the resource folder
>> and then just putting the image name in the background?
>
>> Jason
>
> Hello Jason,
>
> I am not sure if I am using the JBoss integration... at least not in an
> active way. I included it while installing/configuring Eclipse.
>
> Version: 2.5.0.v20090611-7m9a4FTy215N3qZ5UkRE
> Build id: v20090617-0630
>
>> ... in the resource folder ...
> You mean in webapps/
> -RepContainer/
> --reps/
> ---MYRep.rptdesign
> --resources/
> ---backroung.png
> ?
>
> I tried that and the background is not showing while displaying and
> again the error while downloading:
>
> 17-Aug-2009 16:55:55
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea
> createBackgroundImage
> WARNING: no protocol: backroung.png
> java.net.MalformedURLException: no protocol: backroung.png
> at java.net.URL.<init>(URL.java:567)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:266)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.flush(ContainerBufferNode.java:48)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endRow(HTMLPageBuffer.java:206)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endContainer(HTMLPageBuffer.java:140)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.TableBreak Buffer.endContainer(TableBreakBuffer.java:355)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.en d(HTMLStackingLM.java:42)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:136)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layou tChildren(HTMLTableLM.java:112)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:135)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:525)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:220)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1461)
>
> at
> org.eclipse.birt.report.service.BirtViewerReportService.rend erReport(BirtViewerReportService.java:369)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtRenderRepo rtActionHandler.__execute(BirtRenderReportActionHandler.java :65)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.doService(FramesetFragment.java:222)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.service(FramesetFragment.java:86)
>
> at
> org.eclipse.birt.report.servlet.ViewerServlet.__doGet(Viewer Servlet.java:181)
>
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:532)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter. java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java :290)
> at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleReques t(BaseFilter.java:390)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(A uthenticatorBase.java:433)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
>
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
> at java.lang.Thread.run(Thread.java:595)
> 17-Aug-2009 16:55:56 org.eclipse.birt.report.engine.api.impl.RenderTask
> render
> SEVERE: An error happened while running the report. Cause:
> java.lang.NullPointerException
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.cr eateBackgroundImage(PageArea.java:286)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.in itialize(PageArea.java:241)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.cr eateNewPage(RootArea.java:92)
>
> at
> org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.in itialize(RootArea.java:83)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.setConta iner(LayoutEngine.java:284)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine._startCo ntainer(LayoutEngine.java:324)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startCon tainer(LayoutEngine.java:278)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter .startPage(ContentEmitterAdapter.java:65)
>
> at
> org.eclipse.birt.report.engine.nLayout.LayoutEngine.startPag e(LayoutEngine.java:446)
>
> at
> org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.st artContent(ContentEmitterUtil.java:47)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.PageNode.s tart(PageNode.java:49)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.start(ContainerBufferNode.java:79)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.ContainerB ufferNode.flush(ContainerBufferNode.java:48)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endRow(HTMLPageBuffer.java:206)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBu ffer.endContainer(HTMLPageBuffer.java:140)
>
> at
> org.eclipse.birt.report.engine.layout.html.buffer.TableBreak Buffer.endContainer(TableBreakBuffer.java:355)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.en d(HTMLStackingLM.java:42)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:136)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.la youtChildren(HTMLStackingLM.java:26)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layou tChildren(HTMLTableLM.java:112)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.la yout(HTMLAbstractLM.java:135)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:69)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.render(RenderTask.java:525)
>
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:220)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(ReportEngineService.java:1461)
>
> at
> org.eclipse.birt.report.service.BirtViewerReportService.rend erReport(BirtViewerReportService.java:369)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtRenderRepo rtActionHandler.__execute(BirtRenderReportActionHandler.java :65)
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.doService(FramesetFragment.java:222)
>
> at
> org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragment.service(FramesetFragment.java:86)
>
> at
> org.eclipse.birt.report.servlet.ViewerServlet.__doGet(Viewer Servlet.java:181)
>
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:532)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:83)
>
> at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.ja va:40)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter. java:90)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter. java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.ja va:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter. java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java :290)
> at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleReques t(BaseFilter.java:390)
>
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.ja va:56)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter. java:53)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(S eamFilter.java:69)
>
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:1 58)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(A uthenticatorBase.java:433)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
>
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
> at java.lang.Thread.run(Thread.java:595)
>
>
> Thanks,
> Tero
>
|
|
|
|
Re: PPT download from server - error [message #481135 is a reply to message #480842] |
Wed, 19 August 2009 17:36 |
|
Tero,
Can you post an example report with the problem? Also check your
preferences and see if you have set the resource folder for your design
environment.
Jason
tero wrote:
> Jason Weathersby wrote:
>
>> Tero,
>
>> Try one of the following.
>> Put the image in the resource folder and in the beforeFactory add the
>> following:
>
>>
> reportContext.getDesignHandle().findMasterPage("myMasterPage ").setProperty("backgroundImage",
>
>> "yourbackgroundimage.png" );
>
>> or
>
>> go to the advanced properties on the master page and change the
>> background image from c:myimage... to file://c:myimage..
>
>> You can also try option 2 with option 1. Instead of setting the image
>> to a file in your resource set it to a url http://.. or file://
>
>> Jason
>
> Thanks Jason,
>
> That did work (option 1). For the records: the first attempts kept
> bringing the same error message, therefore I search within the "XML
> Source" view for "background.png" and found an old style I did in the
> past using that file as background and even if that style was not in use
> (!) only after deleting it I was able to get the report running (and
> been able to download it as a PPT ! great).
>
> That's for the background picture in the master page. For the other
> pictures I am using throughout the report the "relative path"
> resources/picname.png which is not recognized by the "preview" tab and
> that's the only drawback here (any way to solve this?). Only within a
> table where I try to use the relative path for a background for the
> header this is not working (not in the preview nor in the deployed
> version and again causing that "java.net.MalformedURLException: no
> protocol: resources/background.png" error when trying to download)
>
> Regards,
> Tero
>
|
|
|
|
Re: PPT download from server - error [message #481338 is a reply to message #481270] |
Thu, 20 August 2009 14:37 |
|
Thanks Tero. It should not be complicated. If you create a resources
directory in the project and set the preference to point to it, you
should be able to just specify the name. Then in deployment set the
resource folder (relative) in the web.xml to point to a directory you
create under the webviewer.
Jason
tero wrote:
> Jason Weathersby wrote:
>
>> Tero,
>
>> Can you post an example report with the problem? Also check your
>> preferences and see if you have set the resource folder for your
>> design environment.
>
>> Jason
> ____________________________________________________________ __________
>
> Hi Jason,
>
> the resource folder is: <Current Project Folder>
>
> I guess this get complicated because the report is living in one project
> and the pages displaying it in another?
>
> I will build an (small) example report with the issue above and post it
> here.
>
> Thanks!
> Tero
>
|
|
|
Powered by
FUDForum. Page generated in 0.03780 seconds