Can you resolve your problem? If yes, what was the problem?

Juan

2011/3/14 azuniga <alessandro.zun...@gmail.com>

> I was trying to make a small sample to send to you since I can't send
> most of my source code but while trying to recreate the issue with a
> sample application i was unable to. It sounds strange but now the
> program doesn't complain about the missing class, but I do get
> warnings about jar files. I think that its the reason why it now
> works, but I would still like to find out how to solve the class
> loading error, as I may eventually re-encounter it. So I will try and
> get you a project that produces that error. Here are the warnings I
> get:
>
> [WARN] Server class
> 'org.eclipse.birt.report.engine.api.EngineException' could not be
> found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/engineapi.jar' to the web app classpath for this
> session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class 'org.eclipse.birt.core.exception.BirtException'
> could not be found in the web app, but was found on the system
> classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/coreapi.jar' to the web app classpath for this
> session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class 'org.mozilla.javascript.Context' could not be
> found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/js.jar' to the web app classpath for this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.report.engine.api.script.element.IScriptAPIFactory'
> could not be found in the web app, but was found on the system
> classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/scriptapi.jar' to the web app classpath for this
> session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class 'com.ibm.icu.text.SimpleDateFormat' could not be
> found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/gwt-2.1.0/gwt-
> dev.jar' to the web app classpath for this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.report.model.api.DesignFileException' could not be
> found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/modelapi.jar' to the web app classpath for this
> session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.chart.computation.IChartComputationFactory' could
> not be found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/chartengineapi.jar' to the web app classpath for this
> session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.chart.reportitem.api.ChartItemUtil' could not be
> found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/chartitemapi.jar' to the web app classpath for this
> session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.data.engine.api.aggregation.IAggrFunction' could not
> be found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/dteapi.jar' to the web app classpath for this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class 'org.eclipse.emf.ecore.EObject' could not be found
> in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/org.eclipse.emf.ecore_2.6.1.v20100914-1218.jar' to
> the web app classpath for this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class 'org.eclipse.emf.common.notify.Notifier' could not
> be found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/org.eclipse.emf.common_2.6.0.v20100914-1218.jar' to
> the web app classpath for this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.report.item.crosstab.core.de.CrosstabItemFactory'
> could not be found in the web app, but was found on the system
> classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/crosstabcoreapi.jar' to the web app classpath for
> this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl' could not be
> found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846.jar'
> to the web app classpath for this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.chart.examples.radar.model.RadarModelLoader' could
> not be found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/chartexamplescoreapi.jar' to the web app classpath
> for this session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
> [WARN] Server class
> 'org.eclipse.birt.report.data.adapter.api.AdapterException' could not
> be found in the web app, but was found on the system classpath
>   [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/
> ReportEngine/lib/dataadapterapi.jar' to the web app classpath for this
> session
>   For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/
> webAppClassPath.html
>
> On Mar 14, 5:31 pm, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
> wrote:
> > Can you share a sample that I can reproduce your error. It seems
> classloader
> > issue.
> >
> > Juan
> >
> > 2011/3/14 azuniga <alessandro.zun...@gmail.com>
> >
> > > /**
> > >  *
> > >  */
> > > 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 <gardellajuanpa...@gmail.com>
> > > 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 <alessandro.zun...@gmail.com>
> >
> > > > > 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
> > > google-web-toolkit@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > > 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
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > 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 google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to