Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Pb porting to Debian
Pb porting to Debian [message #193077] Thu, 28 September 2006 08:14 Go to next message
tchule is currently offline tchuleFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

I have a Servlet using the report engine that i've developped on Windows
with Tomcat 5.5.17-1 and it works fine.

I'm trying now to use it on Debian, with the same version of Tomcat and I
can't run the Engine.

After adding all the rigths needed in the policy file, the rights on the
directories, ... I'm stuck with the access of the plugins.

I was using the 2.0.1 version with the plugins in WEB-INF/plugins, worked
fine on Windows but not on Debian.

I've upgraded to 2.1 and used the Factory method to access the engine.

Tried with the plugins in WEB-INF/plugins and
config.setEngineHome(getServletContext().getRealPath("/WEB-INF "));

Tried with the plugins in WEB-INF/Platform/plugins and
IPlatformContext context = new PlatformServletContext( sc );
config.setPlatformContext(context);

Each time, i have the "$NO-RB$ Can't startup the OSGI fr" exception or the
factory.createReportEngine(config)" that returns null.

I'm desesperating.

Is there a way to do that works in any case ?
Can this be a problem of case-sensitivity ?
Is there a way to specify "hard-coded" the path to the plugins ?
Is there a classpath of something that I can add ?

Thanks,

Tchule.
Re: Pb porting to Debian [message #193520 is a reply to message #193077] Mon, 02 October 2006 08:17 Go to previous messageGo to next message
tchule is currently offline tchuleFriend
Messages: 17
Registered: July 2009
Junior Member
Upgraded to 2.1.1, still not working.

I'm put the plugin files in /WEB-INF/platform in ma war file.

The code looks like this :

EngineConfig config = new EngineConfig();
config.setLogConfig(null, Level.FINE);
logger.info("config : " + config);

config.setEngineHome("");
IPlatformContext context = new PlatformServletContext(getServletContext());
config.setPlatformContext(context);

Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory)
Platform.createFactoryObject(IReportEngineFactory.EXTENSION_ REPORT_ENGINE_FACTORY);
logger.info("factory : " + factory);
engine = factory.createReportEngine(config);
logger.info("engine : " + engine);


Under Windows :
-----------------------------
INFO [GenerationRapportServlet] config : EngineConfig:
logLevel=FINE;org.eclipse.birt.report.engine.api.EngineConfi g.emitterConfigs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@136c55};logDest=<null>;
INFO [GenerationRapportServlet] factory :
org.eclipse.birt.report.engine.api.impl.ReportEngineFactory@c22978
INFO [GenerationRapportServlet] engine :
org.eclipse.birt.report.engine.api.impl.ReportEngine@15c30f6
-----------------------------

Under Debian :
-----------------------------
10-02@10:08:50 INFO (GenerationRapportServlet.java:81) - config :
EngineConfig:
logLevel=FINE;org.eclipse.birt.report.engine.api.EngineConfi g.emitterConfigs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@fae78f};logDest=<null>;
10-02@10:08:52 INFO (GenerationRapportServlet.java:89) - factory :
null
-----------------------------

Help needed please,

Thanks,

Tchule.
Re: Pb porting to Debian [message #193779 is a reply to message #193520] Tue, 03 October 2006 08:16 Go to previous messageGo to next message
tchule is currently offline tchuleFriend
Messages: 17
Registered: July 2009
Junior Member
Some more informations :

-----------------------
Under Windows
-----------------------

My logs :
----------
config : EngineConfig:
logLevel=FINEST;org.eclipse.birt.report.engine.api.EngineCon fig.emitterConfigs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@24c672};BIRT_HOME=;logDest=<null>;
config.getBIRTHome() :
config.getConfigMap() : {logLevel=FINEST,
org.eclipse.birt.report.engine.api.EngineConfig.emitterConfi gs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@24c672},
BIRT_HOME=, logDest=null}
config.getResourceLocator() : null
config.getResourcePath() : null
context : org.eclipse.birt.core.framework.PlatformServletContext@19bd735
context.getPlatform() : C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\generationRapport\WEB-INF\platform
factory :
org.eclipse.birt.report.engine.api.impl.ReportEngineFactory@c8ebd6
engine : org.eclipse.birt.report.engine.api.impl.ReportEngine@13f5a2f
homePath : C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\generationRapport\WEB-INF


The configuration directory in the deployed web-app contains :
------------------------------------------------------------ --
org.eclipse.core.runtime
org.eclipse.osgi
org.eclipse.update
1159862402041.log
config.ini

The log File :
--------------

!SESSION 2006-10-03 10:00:03.363
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -clean

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:03.363
!MESSAGE Bundle org.junit not found.


-----------------------
Under Debian
-----------------------


My logs :
----------
config : EngineConfig:
logLevel=FINEST;org.eclipse.birt.report.engine.api.EngineCon fig.emitterConfigs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@92eb76};BIRT_HOME=;logDest=<null>;
config.getBIRTHome() :
config.getConfigMap() : {logLevel=FINEST,
org.eclipse.birt.report.engine.api.EngineConfig.emitterConfi gs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@92eb76},
BIRT_HOME=, logDest=null}
config.getResourceLocator() : null
config.getResourcePath() : null
context : org.eclipse.birt.core.framework.PlatformServletContext@e59e40
context.getPlatform() :
/var/lib/tomcat5.5/webapps/generationRapport/WEB-INF/platfor m
factory : null

The configuration directory in the deployed web-app contains :
------------------------------------------------------------ --
org.eclipse.osgi
1159862403014.log
config.ini


The log File :
--------------

!SESSION 2006-10-03 10:00:03.739
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=motif, NL=fr_FR
Command-line arguments: -clean

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:03.740
!MESSAGE Bundle org.junit not found.

!ENTRY org.eclipse.equinox.common 4 0 2006-10-03 10:00:03.998
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.runtime.Activator.start() of bundle
org.eclipse.equinox.common.

... Followed by 95Ko of exceptions like this :

Caused by: java.lang.LinkageError:
org/eclipse/osgi/framework/internal/core/Framework$5
at
org.eclipse.osgi.framework.internal.core.Framework.getDataFi le(Framework.java:1253)
Root exception:
java.lang.LinkageError:
org/eclipse/osgi/framework/internal/core/Framework$5
at
org.eclipse.osgi.framework.internal.core.Framework.getDataFi le(Framework.java:1253)


java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)


!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:04.137
!MESSAGE Bundle
initial@reference :file:plugins/org.eclipse.equinox.common_3.2.0.v20060601a.ja r/
[1] is not active.

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:04.137
!MESSAGE Bundle
initial@reference:file:plugins/org.eclipse.core.jobs_3.2.0.v20060601a.jar/
[2] is not active.

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:04.138
!MESSAGE Bundle
initial@reference :file:plugins/org.eclipse.equinox.registry_3.2.0.v20060601.j ar/
[4] is not active.

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:04.138
!MESSAGE Bundle
initial@reference :file:plugins/org.eclipse.equinox.preferences_3.2.0.v2006060 1.jar/
[5] is not active.

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:04.139
!MESSAGE Bundle
initial@reference :file:plugins/org.eclipse.core.runtime_3.2.0.v20060601b.jar/
[7] is not active.

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:04.139
!MESSAGE Bundle
initial@reference :file:plugins/org.eclipse.update.configurator_3.2.0.v2006051 1.jar/
[8] is not active.

!ENTRY org.eclipse.osgi 4 0 2006-10-03 10:00:04.140
!MESSAGE Bundle
initial@reference :file:plugins/org.eclipse.birt.core_2.1.1.v20060926-0959.jar /
[11] is not active.



Help Still needed,

Thanks,

Tchule.
Re: Pb porting to Debian [message #194044 is a reply to message #193779] Wed, 04 October 2006 07:43 Go to previous messageGo to next message
tchule is currently offline tchuleFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

Someone hearing me ? Am I talking alone ? ^^

I really need some hints on how to use BIRT Report Engine on Tomcat on
Linux, does someone else have the same problems ? Is there a way (even a
dirty hack) to make things work ?

Tchule.
!!! Problem Identified !!! [message #194365 is a reply to message #194044] Thu, 05 October 2006 09:22 Go to previous message
tchule is currently offline tchuleFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

Tested the WebViewer birt.war file under Tomcat and it works.

Tried to rebuild the birt.war file plus my project by copying all the
needed files in my Eclipse project ... and it don't works.

Tried to rebuild exactly the birt.war file using my ant task ... and it
works.

Tried to add little by little more things in the archive, and I've finally
found the problem.

It seems that adding a "classes" directory under "WEB-INF" (even if empty)
breaks something in the OSGI Classloader under Debian.

Tchule.
Previous Topic:How does context.getChartInstance().getBlock().getBounds().setHeight(900) work?
Next Topic:java.lang.NullPointerException when opening report in BIRT 2.1.1
Goto Forum:
  


Current Time: Tue Apr 23 06:17:13 GMT 2024

Powered by FUDForum. Page generated in 0.03561 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top