We are running the Birt 2.2.1.1. We have played around with
deploying the engine as a servlet, but had trouble with it. We finally decided
to use the approach where we state the directory path for the engine home.
When we run it with our code with the following command, it works great...
...
config.setEngineHome("D:/birt-runtime-2_2_1_1/report_engine");
try {
Platform.startup(config);
}
catch (Exception ex) {
ex.printStackTrace();
}
...
However when we move the Birt report engine to a server for
deployment, we obviously can't use the "D:" drive, so we set the
engine home to the following, we get an error...
...
config.setEngineHome("/app/birt-runtime-2_2_1_1/report_engine");
try {
Platform.startup(config);
}
catch (Exception ex) {
ex.printStackTrace();
}
...
Here's the error...
10:06:23,240 ERROR [STDERR]
org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
10:06:23,240 ERROR [STDERR] at org.eclipse.birt.core.framework.Platform.startup(Platform.java:90)
10:06:23,243 ERROR [STDERR] Caused by:
org.eclipse.birt.core.exception.BirtException: Could not start the Framework -
/app/birt-runtime-2_2_1_1/report_engine/app/birt-runtime-2_2_1_1/report_engine
10:06:23,243 ERROR [STDERR] at
org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:87)
10:06:23,243 ERROR [STDERR] at
org.eclipse.birt.core.framework.Platform.startup(Platform.java:78)
10:06:23,243 ERROR [STDERR] ... 32 more
I'm not understanding why its repeating the engine home in
the error message? Anybody know what's going on.
Thanks,
Dennis