Skip to main content



      Home
Home » Archived » BIRT » Empty report using scripted datasource - BIRT 2.1.3
Empty report using scripted datasource - BIRT 2.1.3 [message #251779] Wed, 08 August 2007 14:46 Go to next message
Eclipse UserFriend
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 #251786 is a reply to message #251779] Wed, 08 August 2007 15:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Jens,

That is a known warning. Do not copy any files to address it.
Is your class in a jar file? try the Web-inf/lib directory.

Jason

Jens Neuhaus wrote:
> 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 #251809 is a reply to message #251786] Wed, 08 August 2007 16:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jens.neuhaus.gmx.de

Jason,

You wrote : "Do not copy any files to address it."

I only copied the .rptdesign file from my local eclipse to the
tomcat/webapps/birt directory. Is that wrong? What other possiblities i
have to deploy new reports to my tomcat?

..."Is your class in a jar file? try the Web-inf/lib directory."

Yes, my class is in a jar and i copied this jar to the web-inf/lib
directory, too. - no effect ;-(

I wonder, why i do not get any exceptions. Any any ideas, why the data
section of the report (when running on tomcat) is empty?

Thanks a lot, Jason.

Greetings Jens
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #251822 is a reply to message #251786] Wed, 08 August 2007 17:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jens.neuhaus.gmx.de

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 #251858 is a reply to message #251822] Thu, 09 August 2007 10:18 Go to previous messageGo to next message
Eclipse UserFriend
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 #251899 is a reply to message #251858] Thu, 09 August 2007 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jens.neuhaus.gmx.de

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 #251903 is a reply to message #251899] Thu, 09 August 2007 15:25 Go to previous messageGo to next message
Eclipse UserFriend
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 #251907 is a reply to message #251903] Thu, 09 August 2007 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jens.neuhaus.gmx.de

Jason,

can you send me a mail to jens.neuhaus@gmx.de and i will answer.

Thanks Jens
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #251911 is a reply to message #251903] Thu, 09 August 2007 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jens.neuhaus.gmx.de

Jason,

can you send me a mail to jens.neuhaus@gmx.de and i will answer.

Thank you, Jens
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #251944 is a reply to message #251911] Fri, 10 August 2007 03:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jens.neuhaus.gmx.de

I sent the mail...
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #251974 is a reply to message #251944] Fri, 10 August 2007 10:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

I am looking at it.

Jens Neuhaus wrote:
> I sent the mail...
>
Re: Empty report using scripted datasource - BIRT 2.1.3 [message #253227 is a reply to message #251974] Wed, 22 August 2007 06:13 Go to previous message
Eclipse UserFriend
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
Previous Topic:Birt 2.2 problem with loading ReportEngine in Tomcat
Next Topic:[birt-report-designer-dev]Viewing report in web-viewer
Goto Forum:
  


Current Time: Tue Sep 23 18:36:18 EDT 2025

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

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

Back to the top