Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Deploying birt in tomcat(the test report is not displayed)
Deploying birt in tomcat [message #1220513] Thu, 12 December 2013 09:32 Go to next message
michel ingwat is currently offline michel ingwat
Messages: 8
Registered: December 2013
Junior Member
Hey,
I'm beginer with birt using.
I followed the tutorial on how to install birt viewer in tomcat at http://www.eclipse.org/birt/phoenix/...iewerSetup.php. I have installed the folder "WebViewerExample" in "webapps" of the server tomcat and rename it "birt-viewer" and it well appear in the server tree, I also have the page which confirm that I have installed the viewer.
The problem is that when I want to test the "View example" link to know if the viewer is properly installed I have the 404 error saying that the ressource is not avaible.
Here the ressource might be the report "test.rptdesign" which is in the folder that I have copied in the "webapps" folder.

May be you have experiment this error. Please help.
Re: Deploying birt in tomcat [message #1220559 is a reply to message #1220513] Thu, 12 December 2013 14:35 Go to previous messageGo to next message
michel ingwat is currently offline michel ingwat
Messages: 8
Registered: December 2013
Junior Member
I'm on Windows 7.
Actually, the first error before the one I exposed appeared only one time and was the following (it's in french):
Quote:
type Rapport d''exception

message Erreur à l'instantiation de la classe servlet org.eclipse.birt.report.servlet.ViewerServlet

description Le serveur a rencontré une erreur interne qui l''a empêché de satisfaire la requête.

exception

javax.servlet.ServletException: Erreur à l'instantiation de la classe servlet org.eclipse.birt.report.servlet.ViewerServlet
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

cause mère

java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45)
org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
java.security.AccessController.doPrivileged(Native Method)
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
org.apache.axis.transport.http.AxisServletBase.<clinit>(AxisServletBase.java:58)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)


I've just copy the commons-logging.1.1.1.jar into the /lib folder in tomcat. That avoid the previous error and show this other one:
Quote:
type Rapport d''exception

message /webcontent/birt/pages/layout/FramesetFragment.jsp (line: 1, column: 5) Tag &lt;%-- non terminé

description Le serveur a rencontré une erreur interne qui l''a empêché de satisfaire la requête.

exception

org.apache.jasper.JasperException: /webcontent/birt/pages/layout/FramesetFragment.jsp (line: 1, column: 5) Tag &lt;%-- non terminé
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:133)
org.apache.jasper.compiler.Parser.parseComment(Parser.java:615)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1425)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.service(FramesetFragment.java:98)
org.eclipse.birt.report.servlet.ViewerServlet.__doGet(ViewerServlet.java:181)
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doGet(BirtSoapMessageDispatcherServlet.java:146)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:112)
org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)

note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/7.0.32.


Please help.
Re: Deploying birt in tomcat [message #1220826 is a reply to message #1220559] Fri, 13 December 2013 22:04 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1639
Registered: July 2009
Senior Member

Can you attach your framesetFragment.jsp page? It looks as if you might have a JSP tag that isn't ended properly. If you didn't edit the JSP page, you might just try redownloading it and trying again.

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Re: Deploying birt in tomcat [message #1220957 is a reply to message #1220826] Mon, 16 December 2013 11:08 Go to previous messageGo to next message
michel ingwat is currently offline michel ingwat
Messages: 8
Registered: December 2013
Junior Member
This is the framesetFragmentpage attached. I did not edit it, but after the error message I checked and I thought there was no problem. please see by yourself.
I will also try to download it again or may be another version or the birt viewer
Re: Deploying birt in tomcat [message #1221294 is a reply to message #1220957] Tue, 17 December 2013 10:29 Go to previous messageGo to next message
michel ingwat is currently offline michel ingwat
Messages: 8
Registered: December 2013
Junior Member
It's OK now. Thanks to Michael Williams.
I've just remove the wrong tags and now it works!
Re: Deploying birt in tomcat [message #1221309 is a reply to message #1221294] Tue, 17 December 2013 11:28 Go to previous messageGo to next message
michel ingwat is currently offline michel ingwat
Messages: 8
Registered: December 2013
Junior Member
actually it works, but, the /frameset mapping does not display the report, I can display the report only with the /run mapping or the /preview mapping of Servlets of birtviewer.
May be its because of what I've remove: I've removed from the FramesetFragment.jsp the comments like:
Quote:
<%-----------------------------------------------------------------------------
Copyright (c) 2004 Actuate Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html

Contributors:
Actuate Corporation - Initial implementation.
-----------------------------------------------------------------------------%>

Quote:
<%-----------------------------------------------------------------------------
Expected java beans
-----------------------------------------------------------------------------%>

Quote:
<%-----------------------------------------------------------------------------
Viewer root fragment
-----------------------------------------------------------------------------%>


certainly, the problem is that I shoul have complete the "expected java beans" and the "viewer root fragment" and not remove it. but I don't know how!
If you can help please
Re: Deploying birt in tomcat [message #1222223 is a reply to message #1220513] Thu, 19 December 2013 23:24 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1639
Registered: July 2009
Senior Member

Try this one. When I opened in Notepad++, one of the end tags wasn't being recognized. I re-saved the file in utf-8 encoding in notepad and reopened with Notepad++ and the tag was now recognized. Let me know. Did you ever try re-downloading?

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:BIRT runtime error
Next Topic:Crosstab hiding of columns and rows does not reflect when export to excel/pdf
Goto Forum:
  


Current Time: Fri Oct 24 12:06:12 GMT 2014

Powered by FUDForum. Page generated in 0.03570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software