[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: RCP WebViewer + classloader + connection

You have to add the birt directory from the viewer plugin to your plugin ("myplugin.id.comes.here"

WebappAccessor.start (ViewerPlugin.WEBAPP_CONTEXT, "myplugin.id.comes.here", Path.EMPTY);

Then add the following dependencies
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.birt.report.viewer,
 org.eclipse.help.base,
 org.eclipse.help.appserver,
 org.eclipse.birt.chart.reportitem.ui,
 testdata,
 org.eclipse.birt.core,
 org.eclipse.birt.report.engine,
 org.eclipse.birt.data,
 org.eclipse.birt.report.data.adapter,
 org.eclipse.birt.chart.engine,
 org.eclipse.birt.report.model;bundle-version="[2.1.0,3.0.0)"

A better work around may be to just load the plugins you need in the report using script similar to this:
importPackage( Packages.org.eclipse.core.runtime );
mybundle = Platform.getBundle("my.test.pack");
gdc = mybundle.loadClass("my.test.pack.GetData");
gd = gdc.newInstance();
gd.myMethod();


Jason

Snjezana Peco wrote:
sorry
<your_workspace>/.metadata/.plugins/org.eclipse.tomcat
Snjezana Peco wrote:
<your_workspace>/.metadata/.plugins/com.rpc.core.tomcat
You can also try buddy classloading.

Snjeza

Georg Raffer wrote:
Hi Snjeza,

Thanks! I already tried this, but it didn't help.
Any ideas? Are there more dependencies required? Do you know where to find the embedded tomcat logfile?


bye, Georg