|
Re: developer [message #542696 is a reply to message #542497] |
Fri, 25 June 2010 16:10 |
|
Amit,
Are you sure you have the same Viewer deployed in both environments?
Jason
On 6/25/2010 2:09 AM, Amit Pandya wrote:
> Hi, I am new in BIRT.I found an error when running birt report on
> tomcat. I have created rptdesign page from my eclispse and deploy this
> on application on localhost. In my application there are many simple
> reports and some having charts. All reports including charts are running
> properly on tomcat6.0 from my localhost. But when i move it to UAT that
> time all reports that have charts are giving me error. and others are
> running properly. i am giving u strack trace here. Can anyone help me.
> Thanks in advance.
>
> type Exception report
>
> message
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
> javax.servlet.ServletException: Servlet execution threw an exception
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
>
>
> root cause
> java.lang.NoClassDefFoundError: Could not initialize class
> org.eclipse.birt.chart.model.impl.SerializerImpl
> org.eclipse.birt.chart.reportitem.ChartReportItemFactoryBase
> .createSerializer(ChartReportItemFactoryBase.java:51)
> org.eclipse.birt.chart.reportitem.ChartReportItemUtil.instan
> ceSerializer(ChartReportItemUtil.java:279)
> org.eclipse.birt.chart.reportitem.ChartReportItemImpl.<init
> >(ChartReportItemImpl.java:151)
> org.eclipse.birt.chart.reportitem.ChartReportItemFactoryImpl
> .newReportItem(ChartReportItemFactoryImpl.java:48)
> org.eclipse.birt.report.model.extension.PeerExtensibilityPro
> vider.initializeReportItem(PeerExtensibilityProvider.java:51 0)
> org.eclipse.birt.report.model.elements.ExtendedItem.initiali
> zeReportItem(ExtendedItem.java:305)
> org.eclipse.birt.report.model.elements.ExtendedItem.doCheck(
> ExtendedItem.java:642)
> org.eclipse.birt.report.model.elements.ExtendedItem.checkCom
> patibility(ExtendedItem.java:604)
> org.eclipse.birt.report.model.parser.ModuleParserHandler.han
> dleExtendedItemCompatibility(ModuleParserHandler.java:436)
> org.eclipse.birt.report.model.parser.ModuleParserHandler.end
> Document(ModuleParserHandler.java:398)
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> .endDocument(Unknown Source)
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> cannerImpl.scanDocument(Unknown Source)
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> n.parse(Unknown Source)
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> n.parse(Unknown Source)
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown Source)
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> .parse(Unknown Source)
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA
> XParser.parse(Unknown Source)
> javax.xml.parsers.SAXParser.parse(Unknown Source)
> org.eclipse.birt.report.model.parser.ModuleReader.readModule
> (ModuleReader.java:94)
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig
> nReader.java:88)
> org.eclipse.birt.report.model.core.DesignSessionImpl.openDes
> ign(DesignSessionImpl.java:314)
> org.eclipse.birt.report.model.api.SessionHandleImpl.openDesi
> gn(SessionHandleImpl.java:294)
> org.eclipse.birt.report.engine.parser.ReportParser.getDesign
> Handle(ReportParser.java:158)
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.g
> etReportDesignHandle(ReportEngineHelper.java:254)
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o
> penReportDesign(ReportEngineHelper.java:273)
> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep
> ortDesign(ReportEngine.java:581)
> org.eclipse.birt.report.service.ReportEngineService.openRepo
> rtDesign(ReportEngineService.java:379)
> org.eclipse.birt.report.utility.BirtUtility.getRunnableFromD
> esignFile(BirtUtility.java:594)
> org.eclipse.birt.report.context.ViewerAttributeBean.getDesig
> nHandle(ViewerAttributeBean.java:654)
> org.eclipse.birt.report.context.ViewerAttributeBean.__init(V
> iewerAttributeBean.java:231)
> org.eclipse.birt.report.context.BaseAttributeBean.init(BaseA
> ttributeBean.java:233)
> org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:116)
>
> org.eclipse.birt.report.context.BirtContext.__init(BirtConte xt.java:44)
> org.eclipse.birt.report.context.BaseContext.<init>(BaseContext.java:69)
> org.eclipse.birt.report.context.BirtContext.<init>(BirtContext.java:30)
> org.eclipse.birt.report.servlet.ViewerServlet.__getContext(V
> iewerServlet.java:150)
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.doGet(BirtSoapMessageDispatcherServlet.java:151)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> org.apache.axis.transport.http.AxisServletBase.service(AxisS
> ervletBase.java:327)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.service(BirtSoapMessageDispatcherServlet.java:122)
> org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
>
>
> Amit Pandya
|
|
|
|
Re: developer [message #542788 is a reply to message #542786] |
Sat, 26 June 2010 03:53 |
|
On 6/25/2010 11:28 PM, Amit Pandya wrote:
> Hi Jason,
> Thanks for reply. Yes i have copy paste the same application from
> localhost to UAT. And for Ensuring i have used eclipse also there on UAT
> and then in eclipse in preview and run birt viewer i can see the chart.
> But when i tried that rptdesign page from application it is giving me
> error. But when i see other rptdesign pages which do not contain charts
> Are running properly within the application. I have copied same
> application at same location and all the common jar files in the tomcat
> 6.0 lib folder. According to you what should be the reason.
Are the plugins in the WEB-INF/platform/plugins directory the same. The
error is complaining about the SerializerImpl class which depends on
EMF. I would guess that either you web-inf/lib jars do not match your
plugins or multiple copies of one of the classes is in you classpath.
Jason
|
|
|
|
Re: developer [message #543149 is a reply to message #543041] |
Mon, 28 June 2010 14:41 |
|
If you download the BIRT runtime it will have the WebViewerExample
directory which shows what jars should be in the WEB-INF/lib and what
plugins should be in WEB-INF/platform/plugins.
If you wrote your own servlet (Not using the BIRT Viewer) you would
include the jars from birt-runtime-2_5_2\ReportEngine\lib in your
WEB-INF/lib and the plugins from birt-runtime-2_5_2\ReportEngine\plugins
would be in the WEB-INF/platform/plugins directory. You also need the
configuration directory here
birt-runtime-2_5_2\ReportEngine\configuration in the WEB-INF/platform
directory. On a new app it should only contain config.ini.
Jason
On 6/28/2010 5:32 AM, Amit Pandya wrote:
> Hi Jason,
> My issue is not resolved but I think you are right. my plugins are in
> the web-ibf/platform/plugins directory. So Which zar file i specially
> check so i can resolve the issue. i am list down here . Zar files in my
> tomcat 6.0 lib folder
> [LIB] commons-fileupload-1.2.1.jar
> [LIB] commons-io-1.3.2.jar
> [LIB] mailapi.jar
> [LIB] Oracle.jar
> [LIB] poi-3.0.2.jar
> [LIB] poi-contrib-3.0.2.jar
> [LIB] poi-scratchpad-3.0.2.jar
> [LIB] pop3.jar
> [LIB] smtp.jar
> activation.jar
> annotations-api.jar
> commons-beanutils.jar
> commons-beanutils-bean-collections.jar
> commons-beanutils-core.jar
> commons-cli-1.0.jar
> commons-collections-3.2.1.jar
> commons-collections-3.2.1-javadoc.jar
> commons-collections-3.2.1-sources.jar
> commons-collections-testframework-3.2.1.jar
> commons-digester-1.8.jar
> commons-el.jar
> commons-fileupload-1.2.jar
> commons-io-1.3.1.jar
> commons-jexl-1.1.jar
> commons-logging-1.1.1.jar
> commons-logging-1.1.1-javadoc.jar
> commons-logging-1.1.1-sources.jar
> commons-logging-adapters-1.1.1.jar
> commons-logging-api-1.1.1.jar
> commons-logging-api-1.1.jar
> commons-logging-tests.jar
> el-api.jar
> jasper.jar
> jasper-el.jar
> jasper-jdt.jar
> jsp-api.jar
> jstl.jar
> mysql-connector-java-5.0.6-bin.jar
> ojdbc14.jar
> servlet-api.jar
> sqljdbc.jar
> standard.jar
> tomcat-coyote.jar
> tomcat-dbcp.jar
> tomcat-i18n-es.jar
> tomcat-i18n-fr.jar
> tomcat-i18n-ja.jar
> And other zar files which are in web-ibf/platform/plugins directory are
> different which is same as web viewer example given with Birt runtime.
> So now can u able to tell me the reason. Thanks a lot dude.
|
|
|
|
Re: developer [message #543793 is a reply to message #543635] |
Wed, 30 June 2010 14:53 |
|
Amit,
What version of BIRT are you using? Are you using the Viewer or did you
write your own servlet?
Jason
On 6/30/2010 3:07 AM, Amit Pandya wrote:
> Hi Jason,
> I don't know so much about what u r saying. Can u tell me this thing in
> any simple way. I am very much confused. i am alone here in IT team and
> no one here to guide me so please can u give me any soruce project for
> example so i can see that and understand. or give any link so i can
> download that example from there.
>
> Thanks & Regards
> Amit Pandya
|
|
|
Re: developer [message #543904 is a reply to message #543793] |
Thu, 01 July 2010 03:16 |
Amit Pandya Messages: 6 Registered: June 2010 |
Junior Member |
|
|
Hi Jason,
I am using Birt 2.5. I have downloaded eclipse-reporting-galileo-SR2-win32.zip and birt-runtime-2_5_2.zip from eclipse site. from birt runtime i got weviewer example. I did not write any servlet. I even don't know how to write sevlet for birt. So can u suggest me where should i find study material regarding this. i Know only thing is how to design rptdesign page using eclipse (drag and drop features) and then create datasoruce and dataset from there. And use them in chart and report. That's it. I don't know anything more about. Actually i am a java developer but in java till now i have developed only one project so i even don't know so much about java. So as per my requirement can u suggest me the website or any study material. So it will be helpful for me.
Thanks & Regars
Amit Pandya
[Updated on: Thu, 01 July 2010 03:16] Report message to a moderator
|
|
|
Re: developer [message #544074 is a reply to message #543904] |
Thu, 01 July 2010 13:55 |
|
Amit,
I believe you have read the install page:
http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php
Here is the usage page:
http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p
Birt exchange also has a lot of examples. For instance look at this
article that talks about deployment to JBoss.
http://www.birt-exchange.org/org/devshare/deploying-birt-rep orts/1055-using-the-birt-viewer-with-jboss/
Can you try re-deploying the Viewer? For example in the Runtime
download just copy the WebViewerExample directory to the tomcat deploy
directory. Or rename the directory to BirtViewer and then copy it to
the deploy directory and then startup tomcat and enter the url.
http://localhost:8080/BirtViewer
Jason
On 6/30/2010 11:16 PM, Amit Pandya wrote:
> Hi Jason,
> I am using Birt 2.5. I have downloaded
> eclipse-reporting-galileo-SR2-win32.zip and birt-runtime-2_5_2.zip from
> eclipse site. from birt runtime i got weviewer example. I did not write
> any servlet. I even don't know how to write sevlet for birt. So can u
> suggest me where should i find study material regarding this. i Know
> only thing is how to design rptdesign page using eclipse (drag and drop
> features) and then create datasoruce and dataset from there. And use
> them in chart and report. That's it. I don't know anything more about.
> Actually i am a java developer but in java till now i have developed
> only one project so i even don't know so much about java. So as per my
> requirement can u suggest me the website or any study material. So it
> will be helpful for me.
>
> Thanks & Regars Amit Pandya
|
|
|
|
Re: developer [message #546345 is a reply to message #546179] |
Mon, 12 July 2010 13:54 |
|
Can you open a bug for this?
You can take a look at this bug entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=307341
But It does not sound like the same problem.
Jason
On 7/11/2010 10:28 PM, wg24@hotmail.com wrote:
> Hi,
>
> I had the same case as Amit.
>
> I am using birt-runtime-2_5_2. I make the folder WebViewerExample into a
> war file and deployed to Weblogic.
>
> It went on well when I deployed it on my own local server but when I
> tried to deploy it to another server using the same war file, the
> charting failed to be display.
>
> Having error "java.lang.NoClassDefFoundError:
> org/eclipse/birt/chart/model/impl/SerializerImpl"
>
> Any idea what happen? I checked all the libraries, plugins and
> configurations, it is the same as both servers.
>
> Pls help. Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03974 seconds