Home
Analytics
Deploying birt-controls-lib
lenburt
<p>Hello - i am using the rotated text object found in this somewhat dated library but it works fine in my 4.2.2 Development environment. I now need to deploy it to the runtime engine which we are using under JBoss. We are initializing and invoking the engine directly from our Java application - that is, not using the BIRT WebViewer. I have tried copying the two plugin jar files to various directories but the report is still failing with a somewhat cryptic stack trace. I will continue to experiment but i thought someone may have figured this out already.</p>
<p> </p>
<p>regards, len</p>
Find more posts tagged with
Comments
JFreeman
<p>What is the stack trace you are receiving?</p>
<p> </p>
<p>I believe the jar for the library should be placed into the lib directory where the birt runtime jars reside.</p>
lenburt
<p>Here is the stack trace...i am assuming that the Rotated Text object is causing this but i am not 100% sure...i tried putting the plugin jars in the same place as the BIRT runtime but under JBoss, it is not always clear where the deployed jars end up.</p>
<p> </p>
<p>Caused by: java.lang.NullPointerException<br>
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:973)<br>
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localizeForeign(LocalizedContentVisitor.java:588)<br>
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:173)<br>
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:37)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)<br>
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)</p>
JFreeman
<p>In order to verify it is the text rotation object, could you comment out the code for that in your report and republish/run it?</p>
<p> </p>
<p>It would be good to verify it is indeed the text rotation causing the issue before spending too much time digging into the error from that angle.</p>
micajblock
<p>Remember that when you deploy you need only one jar (not the one with 'ui' in it). That is because the UI jar files are never deployed. </p>
lenburt
<p>Yes - thanks i was wondering about the UI jar. I ended up getting this to work by putting the plugin jar at the same place as the BIRT runtine in our build structure. It was picked up and included in the ear which was then deployed to a Jboss location. The barcode then displayed properly in our document. -- thanks.</p>
JFreeman
<p>I'm glad to hear you got it working.</p>
<p>Let us know if you have additional questions.</p>