Can you share a sample that I can reproduce your error. It seems classloader
issue.

Juan

2011/3/14 azuniga <[email protected]>

> /**
>  *
>  */
> package com.gwt.ReportGeneration.server;
>
> import org.eclipse.birt.report.engine.api.EngineException;
> import com.google.gwt.user.server.rpc.RemoteServiceServlet;
> import com.gwt.ReportGeneration.client.ReportGenerationService;
>
> /**
>  * @author azuniga
>  *
>  */
> public class ReportGenerationServiceImpl extends RemoteServiceServlet
> implements ReportGenerationService {
>
>        /* (non-Javadoc)
>         * @see
>
> com.gwt.ReportGeneration.client.ReportGenerationService#executeReport(java.lang.String)
>         */
>        @Override
>        public void executeReport(String reportName) {
>                // TODO Auto-generated method stub
>
>        }
>
>        public String getReport(String reportName){
>                // create an execute report object to execute the report
>                ExecuteReport report = new ExecuteReport();
>
>                // run the report
>                try {
>                        report.runReport();
>                } catch (EngineException e) {
>                        System.out.println("****************");
>                        e.printStackTrace();
>                }
>
>                // return the string
>                return report.getOutStreamAsString();
>        }
>
>        public String getHTML(){
>                return null;
>        }
>
> }
>
> and my classpath
> <?xml version="1.0" encoding="UTF-8"?>
>
> <classpath>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/chartitemapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/com.ibm.icu_4.2.1.v20100412.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/chartengineapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/chartexamplescoreapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/commons-cli-1.0.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/coreapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/crosstabcoreapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/dataadapterapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/dataaggregationapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/dataextraction.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/dteapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/emitterconfig.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/engineapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/flute.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/js.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/modelapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/modelodaapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/odadesignapi.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/
> org.apache.commons.codec_1.3.0.v20100518-1140.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/
> org.eclipse.emf.common_2.6.0.v20100914-1218.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/
> org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/
> org.eclipse.emf.ecore_2.6.1.v20100914-1218.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/
> org.w3c.css.sac_1.3.0.v200805290154.jar"/>
>
>        <classpathentry exported="true" kind="lib" path="/goesrapps1/
> birt-runtime-2_6_1/ReportEngine/lib/scriptapi.jar"/>
>
>        <classpathentry kind="src" path="src"/>
>
>        <classpathentry kind="con"
> path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
>
>        <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER/
> org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/
> >
>
>        <classpathentry kind="output" path="war/WEB-INF/classes"/>
>
> </classpath>
>
>
>
> On Mar 11, 8:17 am, Juan Pablo Gardella <[email protected]>
> wrote:
> > 1) Can you post the code in
> > com.gwt.ReportGeneration.server.ReportGenerationServiceImpl.
> > getReport(ReportGenerationServiceImpl.java:31)?
> >
> > 2) Can you attach .classpath?
> >
> > Juan
> >
> > 2011/3/10 azuniga <[email protected]>
> >
> >
> >
> >
> >
> >
> >
> > > Is there a way to tell the GWT project which order to load the classes
> > > in development mode? I'm getting an error and I think its because
> > > there is a class conflict. I'm integrating BIRT with GWT and I have my
> > > jars on the server side and then I call the RPC and I get the error
> > > Could not initialize class
> > > org.eclipse.birt.chart.reportitem.i18n.Messages. I make sure that this
> > > jar is in the war>web-inf>lib folder but I still get this error. I
> > > have a post on the birt eclipse forums but I think this may have to be
> > > a gwt problem because when i run my birt code independently it runs
> > > fine. Here is my post in eclipse forums,
> >
> > >http://www.eclipse.org/forums/index.php?t=msg&th=205818&start=0&S=525.
> ..
> > > ,
> > > just for reference, and here is a similar bug with websphere,
> > >https://bugs.eclipse.org/bugs/show_bug.cgi?id=203703. Any help is much
> > > appreciated.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to