|
Re: Error deploying Birt Viewer on Tomcat [message #642270 is a reply to message #642249] |
Tue, 30 November 2010 16:15 |
|
Do you have anything in this directory
WEB-INF\platform\configuration
other than the config.ini?
Jason
On 11/30/2010 10:07 AM, pellianna@gmail.com wrote:
> Hi,
>
> I am having problems deploying the birt viewer on tomcat 6, on our Linux
> Server. I followed the instructions here:
>
> http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php
>
> I first tried it on a tomcat installed on my windows pc, and it worked
> as expected, I was able to see the sample report, no errors. Then I did
> the same on the server. here are the steps:
>
> 1. copied the WebViewerExample directory into the webapps folder in Tomcat
> 2.added the commons-logging.1.1.1.jar to the
> WebViewerExample/WEB-INF/lib directory
> 3. restarted Tomcat
> 4. Clicked on WebViewerExample in the Tomcat manager. This displayed the
> page where it says:
>
> BIRT viewer has been installed.
>
>
>
> Thank you for your choosing BIRT (Business Intelligence Reporting Tool).
>
> Viewer Version : 2.6.0
>
> Engine Version: 2.6.0
>
> JRE version: 1.6.0_12
>
> View Example
> 5. Clicked on "View example" and got the following error:
>
> - Fatal error occurred when try to startup report engine.
>
> org.eclipse.birt.report.exception.ViewerException: Fatal error occurred
> when try to startup report engine. at
> org.eclipse.birt.report.service.ReportEngineService.setEngin
> eContext(ReportEngineService.java:326) at
> org.eclipse.birt.report.service.BirtViewerReportService.setC
> ontext(BirtViewerReportService.java:1022) at
> org.eclipse.birt.report.servlet.ViewerServlet.__getContext(V
> iewerServlet.java:148) at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.doGet(BirtSoapMessageDispatcherServlet.java:151) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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.apache.catalina.core.StandardWrapperValve.invoke(Standar
> dWrapperValve.java:233) at
> org.apache.catalina.core.StandardContextValve.invoke(Standar
> dContextValve.java:191) 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:619)
>
> The catalina.out logfile doesn't say more than this.
>
> Does anybody have an idea of what could be wrong? Please note that
> tomcat on my pc is out of the box, I haven't changed anything, whereas
> the tomcat on the server has been installed by our system administrator,
> and I don't know whether he configured anything that could be causing
> the problem...
>
> Thanks
> Anna
>
|
|
|
|
Re: Error deploying Birt Viewer on Tomcat [message #642571 is a reply to message #642410] |
Wed, 01 December 2010 19:26 |
|
The warning and error are separate. Do the user who starts tomcat have
write permission to the configuration directory?
Jason
On 12/1/2010 4:01 AM, Anna wrote:
> Hi Jason
>
> thanks for your reply. The configuration directory only contains the
> config.ini file.
>
> If I stop and start tomcat I actually see an error message in
> catalina.out, even before I click on the WebViewerExample:
>
> org.eclipse.birt.report.exception.ViewerException: Fatal error occurred
> when try to startup report engine.
> at org.eclipse.birt.report.service.ReportEngineService.setEngin
> eContext(ReportEngineService.java:326)
> at org.eclipse.birt.report.service.BirtViewerReportService.setC
> ontext(BirtViewerReportService.java:1022)
> at org.eclipse.birt.report.listener.ViewerServletContextListene
> r.contextInitialized(ViewerServletContextListener.java:62)
> at org.apache.catalina.core.StandardContext.listenerStart(Stand
> ardContext.java:3843)
> at org.apache.catalina.core.StandardContext.start(StandardConte
> xt.java:4342)
> at org.apache.catalina.core.ContainerBase.addChildInternal(Cont
> ainerBase.java:791)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBas e.java:771)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost. java:525)
> at org.apache.catalina.startup.HostConfig.deployDirectory(HostC
> onfig.java:926)
> at org.apache.catalina.startup.HostConfig.deployDirectories(Hos
> tConfig.java:889)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig .java:492)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java :1149)
> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostCo
> nfig.java:311)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSupport.java:117)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1053)
> at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
> at org.apache.catalina.core.StandardService.start(StandardServi
> ce.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578 )
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
> Dec 1, 2010 9:54:47 AM org.apache.coyote.http11.Http11Protocol start
>
>
> Also, there is a warning when I click on the link for the example:
>
> WARNING: Unable to find required classes (javax.activation.DataHandler
> and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>
> but I get this on my pc too and it still works.
>
> Thanks again
> Anna
|
|
|
|
Re: Error deploying Birt Viewer on Tomcat [message #642756 is a reply to message #642672] |
Thu, 02 December 2010 15:38 |
|
Can you create a jsp page at the top level of the BIRT Viewer with the
following content:
<%@ page import="java.io.File;" %>
<%= System.getProperty("java.version")%>
<br>
<%= application.getAttribute( "javax.servlet.context.tempdir" )%>
<br>
<%= application.getRealPath("/WEB-INF/Platform/") %>
<br>
<%
File tst = new File(application.getRealPath("/WEB-INF/Platform/"));
if( tst.canWrite()){
%>
Platform Writable
<%
}else{
%>
Platform Not Writable
<%
}
%>
<br>
<%
File tst2 = new
File(application.getRealPath("/WEB-INF/Platform/configuration "));
if( tst2.canWrite()){
%>
Configuration Writable
<%
}else{
%>
Configuration Not Writable
<%
}
%>
Run it and post the results?
Jason
On 12/2/2010 4:59 AM, Anna wrote:
> Hi Jason
>
> yes, it all belongs to the same user.
>
> Thanks
> Anna
|
|
|
|
|
Re: Error deploying Birt Viewer on Tomcat [message #642794 is a reply to message #642773] |
Thu, 02 December 2010 17:14 |
|
Anna,
Any chance you could try the 2.6.1 viewer?
I am not certain this will make a difference but could you give it a
try. You and another user are having the same issue and it appears both
are using 2.6.0.
Jason
On 12/2/2010 11:29 AM, Anna wrote:
> Hi Jason
>
> I think there were typos in the JSP...unix is case sensitive, so I put
> Platform lowercase and removed the empty space under configuration. Now
> the code is:
>
> <%@ page import="java.io.File;" %>
> <%= System.getProperty("java.version")%>
> <br>
> <%= application.getAttribute( "javax.servlet.context.tempdir" )%>
> <br>
> <%= application.getRealPath("/WEB-INF/Platform/") %>
> <br>
> <%
> File tst = new File(application.getRealPath("/WEB-INF/platform/"));
> if( tst.canWrite()){
> %>
> Platform Writable
> <%
> }else{
> %>
> Platform Not Writable
> <%
> }
> %>
> <br>
> <%
> File tst2 = new
> File(application.getRealPath("/WEB-INF/platform/configuration/ "));
> if( tst2.canWrite()){
> %>
> Configuration Writable
> <%
> }else{
> %>
> Configuration Not Writable
> <%
> }
> %>
>
> and I get:
>
> 1.6.0_12 /netfs/data/avalon_03d/server/apache-tomcat-6.0.18/work/Cata
> lina/localhost/WebViewerExample2
> /CHBS/apps/avalonws/server/apache-tomcat-6.0.18/temp/15-WebV
> iewerExample2/WEB-INF/Platform Platform Writable Configuration Writable
> Kind regards
> Anna
|
|
|
|
|
Re: Error deploying Birt Viewer on Tomcat [message #643621 is a reply to message #643588] |
Tue, 07 December 2010 16:07 |
|
did you find the app that causes the birt-viewer to fail?
If you undeploy it and deploy the birt-viewer does it work?
if it does and then you redeploy the app does the viewer stop working?
Also you can set the log level for the viewer to fine in the web.xml but
this may not help if the viewer does not start at all.
Jason
On 12/7/2010 10:16 AM, Anna wrote:
> Hi
>
> I just found out that if I undeploy one of the applications that are
> already in tomcat, birt-viewer works.
>
> I made a copy of my tomcat installation on the same server, changed the
> port numbers, undeployed everything but birt-viewer, then one by one
> deployed everything again. This way I am pretty sure that it's one of
> the other applications that causes the problem, but only to birt-viewer.
> It doesn't cause any issues to the other ones.
>
> I know it's difficult for anyone to try and troubleshoot this....but
> maybe someone could give me a hint on how to go about it? If there is a
> conflict of some sort shouldn't this be visible in a log file?
>
> Thanks
> Anna
|
|
|
|
Re: Error deploying Birt Viewer on Tomcat [message #643693 is a reply to message #643625] |
Tue, 07 December 2010 21:51 |
|
It would go in the log file under the logs directory of the viewer, but
it might not right anything to it if the engine never starts.
Jason
On 12/7/2010 11:44 AM, Anna wrote:
> Hi Jason
>
> yes, I know which application is causing the issue. If I undeploy it and
> restart Tomcat, birt-viewer works. If I deploy it again, and restart, I
> get again the error above and birt-viewer doesn't start.
>
> I have done this several times, I am pretty sure this is the problem.
>
> I will try to change the logging level as you suggested. Where would the
> additional info go, catalina.out, or does birt write other log files?
>
> I didn't think this type of conflict could happen...
>
> Thanks
> Anna
|
|
|
|
Powered by
FUDForum. Page generated in 0.04532 seconds