Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Are ScriptLibs Entries Relevant in a deployed environment?
lenburt
Hello there -- i have been developing some Java code that will sit behind some report elements and it is working fine in the development environment by specifying the dependent jar files in the Report Resources tab.
My question is whether these settings are relevant at all in the runtime environment?....in my case our application is running under WebLogic and we are invoking the 2.6.1 report engine. The documentation i have found indicated that the jar files just need to be in the startup classpath for the app server but i have not been able to get that to work so far....any ideas?
thx, len
(example of the XML in my report)
<list-property name="scriptLibs">
<structure>
<property name="name">lib/core-global.jar</property>
</structure>
<structure>
<property name="name">lib/docPrepUtils.jar</property>
</structure>
<structure>
<property name="name">lib/ec-business.jar</property>
</structure>
<structure>
<property name="name">lib/ec-common.jar</property>
</structure>
<structure>
<property name="name">lib/eci-common.jar</property>
</structure>
<structure>
<property name="name">lib/eci-ext.jar</property>
</structure>
</list-property>
Find more posts tagged with
Comments
JasonW
In BIRT 3.7 and greater you could just add these to the WEB-INF/lib directory. In 2.6 if you are using the engine api, you need to set:
//Where config is the EngineConfig and scriptlibClassPath is fully qualified classpath string of the jars.
config.setProperty( EngineConstants.WEBAPP_CLASSPATH_KEY,
scriptlibClassPath );
If you are using the viewer add them to the scriptlib directory in the viewer or set the web.xml setting for scriptlib.
Jason
lenburt
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="92200" data-time="1324337535" data-date="19 December 2011 - 04:32 PM"><p>
In BIRT 3.7 and greater you could just add these to the WEB-INF/lib directory. In 2.6 if you are using the engine api, you need to set:<br />
<br />
//Where config is the EngineConfig and scriptlibClassPath is fully qualified classpath string of the jars.<br />
config.setProperty( EngineConstants.WEBAPP_CLASSPATH_KEY,<br />
scriptlibClassPath );<br />
<br />
If you are using the viewer add them to the scriptlib directory in the viewer or set the web.xml setting for scriptlib.<br />
<br />
Jason<br /></p></blockquote>
lenburt
Thanks Jason...we are running the Engine under 2.6.1 now, but have plans to move to 3.7 -- sounds like we should probably do that now so we do not have to solve the problem twice. Is it a fair assumption that in June there will be a new release of BIRT? If so, is there a forum where i could find a description of the expected changes with the next release?
thx, len
JasonW
Yes we release every June. The project plan is located here:
http://wiki.eclipse.org/BIRT_Project_Plan
If you move to to 3.7 make sure to remove the setBIRTHome call.
Jason