problem with API [message #68797] |
Mon, 22 August 2005 13:37 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fremen.k9.pl
Hi! I've made webinterface for reports (kind, params, format),
but for security i don't want to use brit-viewer, but do it myself.
Pages are in JSP, viewer as Servlets, but in line:
ReportEngine engine =3D new ReportEngine( config );
i've got expetion:
java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable
at reports.ReportServlet.run(ReportServlet.java:298)
I don't know what's wrong and how to avoid that.
I took code from example of using BIRT API.
Mirek
|
|
|
Re: problem with API [message #68816 is a reply to message #68797] |
Mon, 22 August 2005 14:27 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fremen.k9.pl
Ok. I found. It need more than engine and core .jar files,
but next problem, at:
report =3D engine.openReportDesign( name );
it stops... look like no excpetion throws (don't have any
info from try/catch, and no more code is processed)
Could anyone knows what's wrong?
It should be more tutorials and samples how to use BIRT
Fremen
|
|
|
Re: problem with API [message #68836 is a reply to message #68816] |
Mon, 22 August 2005 14:58 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Fremen
Can you post more of the code here?
Jason Weathresby
BIIRT PMC
"Fremen" <fremen@k9.pl> wrote in message
news:op.svwygaqgasjs9v@localhost.localdomain...
Ok. I found. It need more than engine and core .jar files,
but next problem, at:
report = engine.openReportDesign( name );
it stops... look like no excpetion throws (don't have any
info from try/catch, and no more code is processed)
Could anyone knows what's wrong?
It should be more tutorials and samples how to use BIRT
Fremen
|
|
|
Re: problem with API [message #69083 is a reply to message #68836] |
Tue, 23 August 2005 06:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fremen.k9.pl
On Mon, 22 Aug 2005 16:58:20 +0200, Jason Weathersby =
<jweathersby@actuate.com> wrote:
> Fremen
> Can you post more of the code here?
Code is almost the same like in example:
EngineConfig config =3D new EngineConfig( );
config.setEngineHome( "/home/fremen/eclipse/plugins/org.eclipse.birt.rep=
ort.viewer_1.0.1/birt/WEB-INF" =
);
HTMLEmitterConfig hc =3D new HTMLEmitterConfig( );
HTMLCompleteImageHandler imageHandler =3D new HTMLCompleteImageHandler( =
);
hc.setImageHandler( imageHandler );
config.setEmitterConfiguration( HTMLRenderOption.OUTPUT_FORMAT_HTML, hc =
);
ReportEngine engine =3D new ReportEngine( config );
IReportRunnable report =3D null;
try
{
report =3D engine.openReportDesign( name ); // <-- here it stops =
!!!
}
catch ( EngineException e )
{
System.err.println( "Report " + name + " not found!\n" );
engine.destroy( );
return;
}
Fremen
|
|
|
Re: problem with API [message #69226 is a reply to message #69083] |
Tue, 23 August 2005 16:52 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Fremen
Take a look at this zip file. It has a readme in it.
It uses ant to do the build, so I hope you have it.
Let me know if the test report runs.
Thanks
Jason Weathersby
BIRT PMC
"Fremen" <fremen@k9.pl> wrote in message
news:op.svx7anmoasjs9v@localhost.localdomain...
On Mon, 22 Aug 2005 16:58:20 +0200, Jason Weathersby
<jweathersby@actuate.com> wrote:
> Fremen
> Can you post more of the code here?
Code is almost the same like in example:
EngineConfig config = new EngineConfig( );
config.setEngineHome(
" /home/fremen/eclipse/plugins/org.eclipse.birt.report.viewer_ 1.0.1/birt/WEB-INF "
);
HTMLEmitterConfig hc = new HTMLEmitterConfig( );
HTMLCompleteImageHandler imageHandler = new HTMLCompleteImageHandler( );
hc.setImageHandler( imageHandler );
config.setEmitterConfiguration( HTMLRenderOption.OUTPUT_FORMAT_HTML, hc );
ReportEngine engine = new ReportEngine( config );
IReportRunnable report = null;
try
{
report = engine.openReportDesign( name ); // <-- here it stops !!!
}
catch ( EngineException e )
{
System.err.println( "Report " + name + " not found!\n" );
engine.destroy( );
return;
}
Fremen
|
|
|
Re: problem with API [message #69307 is a reply to message #69226] |
Tue, 23 August 2005 18:23 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: statineni.issintl.com
Hey Freeman,
Could you send me the servlet and jsp files you created.As iam about to do
the same and i need some guidence. The example BIRT provided is so huge
and hard to understand.I need a different one like if you already created
a webpage and if you are getting the parameters from it .
could you send it like attached to my email address.
statineni@issintl.com
Appreciate your help.
Thanks,
Sudha
|
|
|
|
Re: problem with API [message #69581 is a reply to message #69307] |
Thu, 25 August 2005 12:58 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fremen.k9.pl
Hi!
I discovered that:
- path statring with /eclipse/... must end with /WEB-INF/brit, not =
/WEB-INF,
- i didn't want to put full path to eclipse (on local disk, for secure),=
so i'd tried to put those in /webapps/my_reports/birt, but in this case
it won't work (my reports site won't start), but if you put this to =
tomcat/webapps/birt/
and set correct path, it should work without any problems,
- the problem can be missing some *.jar - but this errors should Tomcat =
=
show (expetion
for class not found)
- code is almost the same as this in example on BIRTs site, i only
do minor changes for my dirs, etc.
Fremen
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Powered by
FUDForum. Page generated in 0.03925 seconds