Empty report using scripted datasource - BIRT 2.1.3 [message #251779] |
Wed, 08 August 2007 14:46  |
Eclipse User |
|
|
|
Originally posted by: jens.neuhaus.gmx.de
Hi,
I was following the tutorial 'Scripted Datasources' and created a new
report, implemented a data provider class and tested it - locally in my
eclipse everything works fine: I see the report with three data rows, like
expected.
But when I copy the reportfile into the ${birt home}, the scriptclass-jar
into the ${birt home}/scriptlib and run the report on my tomcat, only the
header and footer of the report appear.
In the stdout of the tomcat the following warning is printed out:
08.08.2007 20:27:29 org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNUNG: Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
I copied the activation.jar and mail.jar to the tomcat/server/lib
directory and restarted the tomcat. That had no effect on the problem.
Because I'm a newbie in BIRT I do not have an idea, how to solve this
problem.
Do you have a suggestion? Are there any libs missing or is it more a
configuration prob?
Thanks for any help.
Greetings Jens
|
|
|
|
|
|
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #251858 is a reply to message #251822] |
Thu, 09 August 2007 10:18   |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Jens,
On the copy piece, I meant not to copy any additional files other than
your jar, your report design, and the WebViewerExample. You can set the
log level in web.xml
<context-param>
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
<param-value></param-value>
</context-param>
<!-- Report engine log level -->
<context-param>
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>WARNING</param-value>
</context-param>
Can you set yours to FINEST and then post the log?
Jason
Jens Neuhaus wrote:
> Jason,
>
> you wrote: "...Do not copy any files to address it."
>
> I ask: How do I alternatively deploy my local rptdesign reportfiles to
> my tomcat? I thought the easiest is, to copy it to the
> tomcat/webapps/birt_home.
> What do you suggest?
>
> you wrote "Is your class in a jar file? try the Web-inf/lib directory."
>
> me: "yes, the class is in a jar and the jar is in the web-inf/lib. but
> this has no effect on the result. the data section of the report is
> empty, again ;-)"
>
> I wonder, why I do not get any exceptions? Any further ideas?
> Thanks, Greetings Jens
>
|
|
|
|
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #251903 is a reply to message #251899] |
Thu, 09 August 2007 15:25   |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Jens,
There is a way to add a jar file pointer to the report, but the jar file
will then need to be put in the resource folder. The methods you used
should work. The only reason I can see this failing is that multiple
copies of your class are present or your class depends on other classes
that can not be found.
Send me your materials via email and I will have a look.
Jason
Jens Neuhaus wrote:
> Jason,
> i set the log level to 'FINEST' and you are right, i see an exception.
>
> in the meantime i searched in newsgroups about it and for me it seems to
> be, that the class could not be loaded by the classloader. I read in
> some threads, that the jar should be included in the classpath of the
> server. I put the path to my scriptlib.jar in the setclasspath.bat of
> the tomcat and checked that the jar is in place ( WEB-INF/lib of birt
> root and additionally the sriptlib folder) --> same error ;-(
>
> Do I need a lib definition in my report or anywhere else? If you think
> it could help you, I can send you my logs,report and lib file or web.xml
> per mail.
>
> Thanks for your help.
>
> Greetings Jens
>
> the stacktrace:
> 09.08.2007 20:42:30 org.eclipse.birt.core.script.JavascriptEvalUtil
> wrapRhinoException
> FEIN: Unexpected RhinoException. Source=DataSet[ResSet].__bm_OPEN,
> line=1, Script=
> __bm_OPEN()
>
> org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
> org.test.SimplePrint] is not a function. (DataSet[ResSet].__bm_OPEN#2)
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3240)
>
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3230)
>
> at
> org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime .java:3246)
> at
> org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntim e.java:3258)
> at
> org.mozilla.javascript.ScriptRuntime.notFunctionError(Script Runtime.java:3317)...
>
>
>
>
|
|
|
|
|
|
|
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #253227 is a reply to message #251974] |
Wed, 22 August 2007 06:13  |
Eclipse User |
|
|
|
Originally posted by: suryakant.in.ibm.com
Hello
I am also facing the same issue.
I am using scripted data source and i have tried putting the jars in the
lib directory but it doesnt seem to wrk.. if u get answers to ur issues
pls could u please let me know what all things i need to do to get my work
running
THank You
surya
|
|
|
Powered by
FUDForum. Page generated in 0.05147 seconds