|
Re: Problem in previewing report in Birt designer 3.7 in Eclipse Indigo [message #870810 is a reply to message #870632] |
Wed, 09 May 2012 18:35 |
|
Can you try the allinone download?
http://download.eclipse.org/birt/downloads/
Jason
On 5/9/2012 3:17 AM, Ashish Nayal wrote:
> I have developed a report using BIRT Report Designer Release Build:
> 3.7.2 in Eclipse Indigo
> I have installed Birt in Eclipse using following url:Install New
> Software->BIrt URL
>
> Birt URL:BIRT Update Site
>
> But when I preview the report in eclipse it is giving following error:
>
> Error:
>
> HTTP ERROR 500
> Problem accessing /viewer/run. Reason:
> javax/servlet/ServletConfig
>
> Caused by:
> java.lang.LinkageError: javax/servlet/ServletConfig
> at
> org.eclipse.birt.report.utility.ParameterAccessor.initParameters(ParameterAccessor.java:1460)
>
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.init(BirtSoapMessageDispatcherServlet.java:102)
>
> at
> org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.initializeDelegate(ServletManager.java:195)
>
> at
> org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:179)
>
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:317)
>
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:322)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:924)
>
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>
>
|
|
|
|
|
Re: Problem in previewing report in Birt designer 3.7 in Eclipse Indigo [message #871078 is a reply to message #870953] |
Thu, 10 May 2012 17:49 |
|
Do you have the birt viewer in a separate context than where that jsp
page is at? If so make sure tomcat has cross context enabled:
http://www.coderanch.com/t/536694/Tomcat/Setting-up-CrossContext-configuration-Tomcat
and do the following:
this can be done by copying the birt.tld file to your WEB-INF/tlds
directory and copying coreapi.jar, modelapi,jar, viewerservlets.jar,
engineapi.jar, and com.ibm.icu_version.jar from the Viewer libs
directory to the new context/web-inf/lib directory. Add the following
reference to your web.xml
<jsp-config>
<taglib>
<taglib-uri>/birt.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/birt.tld</taglib-location>
</taglib>
</jsp-config>
Using this approach reports are referenced in relation to the BIRT
Viewer not the new context. You can get the individual jars from the
osgi runtime download or just copy
org.eclipse.birt.runtime_3.7.2.version.jar
viewerservlets.jar
com.ibm.icu_version.jar
If the jsp is not in a separate context remove the baseURL attribute.
Jason
On 5/10/2012 6:47 AM, Ashish Nayal wrote:
> Please let me know what configuration to do in web.xml or if any other
> libraries or files to be added to view report at run time
|
|
|
|
Re: Problem in previewing report in Birt designer 3.7 in Eclipse Indigo [message #871252 is a reply to message #871136] |
Fri, 11 May 2012 16:13 |
|
If looks like you ware writing your own app and need to reference the
BIRT viewer in another context. Copy the WebViewerExample directory
from the birt runtime download to your webapps directory in your tomcat
install. Rename it to BirtViewer.
Add
<Context path="/BirtViewer" docBase="BirtViewer"
debug="5" reloadable="true" crossContext="true">
to your server config and set the baseURL attribute in your app jsp page
to /BirtViewer. Restart tomcat and try that.
Bear in mind that the report needs to be under the BirtViewer.
Jason
On 5/11/2012 1:55 AM, Ashish Nayal wrote:
> I have added the jars as per you instructions.
>
> Do we have to also configure birt viewer in tomcat.if so,how to do it.
>
> i am running my application in eclipse using tomcat 6.0 server,so i am
> not clear what
> about the context which is same as birt viewer or not:as i am executing
> the application at this url:
>
> localhost:8080/fert_abc
>
> I have modified the server.xml as:
>
> <Context path="/fert_abc" debug="0" crossContext="true"/>
> Is this what u were telling me to do.
>
> Please tell me if there are any more changes i have to do as mu report
> is still not displaying
>
>
> My web.xml is as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app>
> <display-name>fert_abc</display-name>
> <listener>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>
> </listener>
> <listener>
> <listener-class>
> org.springframework.web.util.IntrospectorCleanupListener</listener-class>
> </listener>
> <context-param>
> <description>
> This context parameter specifies the name and location of the Tiles
> Definitions file.
> </description>
> <param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
>
> <param-value>/WEB-INF/classes/tiles.xml</param-value>
> </context-param>
>
> <listener>
> <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
>
> </listener>
> <filter>
> <filter-name>struts2</filter-name>
> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
>
> </filter>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
> <jsp-config>
> <taglib>
> <taglib-uri>/birt.tld</taglib-uri>
> <taglib-location>/WEB-INF/tld/birt.tld</taglib-location>
> </taglib>
> </jsp-config>
> </web-app>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03796 seconds