Skip to main content



      Home
Home » Archived » BIRT » Jason,Aric...Integration Problem
Jason,Aric...Integration Problem [message #108927] Fri, 13 January 2006 10:24 Go to next message
Eclipse UserFriend
Originally posted by: to.sreddy.gmail.com

Jason,Aric
I am trying to integrate BIRT M03 viewer to WSAD 5.0 .
I have downloaded birt.war file and unzipped into BirtProject(the project
name in my WSAD)/Webcontent then set the class loader policy
I copied RunReport.java(Modefied the path for EngineHome)and Index.jsp
into my JavaSource and WebContent folders.
Now if i try to run the Index.jsp in the server, its displaying the page
as below.

Thank you for your choosing BIRT (Business Intelligence Reporting Tool).

Viewer Version : 1.0.1

Engine Version: 1.0.1

View Example

If i click on the link "View Example"
Page Cannot found with following error
E SRVE0026E: [Servlet Error]-[ViewerServlet]:
java.lang.UnsupportedClassVersionError:
org/eclipse/birt/report/viewer/servlets/ViewerServlet (Unsupported
major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at
java.security.SecureClassLoader.defineClass(SecureClassLoade r.java(Compiled
Code))
at
com.ibm.ws.classloader.CompoundClassLoader._defineClass(Comp oundClassLoader.java:381)
at
com.ibm.ws.classloader.CompoundClassLoader.findClass(Compoun dClassLoader.java:348)
at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(Compoun dClassLoader.java:262)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at
com.ibm.ws.classloader.ReloadableClassLoader.loadClass(Reloa dableClassLoader.java:76)
at java.beans.Beans.instantiate(Beans.java:216)
at java.beans.Beans.instantiate(Beans.java:77)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServ let(WebAppServletManager.java:224)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServl etReference(WebAppServletManager.java:382)
at
com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(We bApp.java:589)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.c alculateInfo(WebAppRequestDispatcherInfo.java:177)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init >(WebAppRequestDispatcherInfo.java:59)
at
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(W ebApp.java:1415)
at
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(W ebApp.java:1376)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHo ok(WebAppInvoker.java:196)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.ha ndleInvocation(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatch ByURI(ServletRequestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.se rvice(OSEListener.java:331)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Ht tpConnection.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConn ection.java:432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
This is the code in my jsp calling the .rptdesign
<p><a href="<%= request.getContextPath( ) +
" /frameset?__report=new_report.rptdesign&sample=my+parame ter " %>">View
Example</a>
and new_report.rptdesign is in my Web-Inf folder.
When i start my server, i have the following messages on my server.

[1/13/06 9:55:22:889 EST] 1c4d4768 ApplicationMg A WSVR0200I: Starting
application: BIRTProject
[1/13/06 9:55:23:089 EST] 1c4d4768 WebContainer A SRVE0169I: Loading Web
Module: Eclipse BIRT Report Viewer.
[1/13/06 9:55:23:109 EST] 1c4d4768 WebGroup I SRVE0180I: [Eclipse
BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: JSP 1.2 Processor: init
[1/13/06 9:55:23:219 EST] 1c4d4768 WebGroup I SRVE0180I: [Eclipse
BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: SimpleFileServlet: init
[1/13/06 9:55:23:230 EST] 1c4d4768 WebGroup I SRVE0180I: [Eclipse
BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: InvokerServlet: init
[1/13/06 9:55:23:230 EST] 1c4d4768 ApplicationMg A WSVR0221I: Application
started: BIRTProject
[1/13/06 9:55:23:260 EST] 1c4d4768 HttpTransport A SRVE0171I: Transport
http is listening on port 9,080.
[1/13/06 9:55:25:254 EST] 1c4d4768 HttpTransport A SRVE0171I: Transport
https is listening on port 9,443.
[1/13/06 9:55:25:334 EST] 1c4d4768 RMIConnectorC A ADMC0026I: RMI
Connector available at port 2809
[1/13/06 9:55:25:385 EST] 1c4d4768 WsServer A WSVR0001I: Server
server1 open for e-business
[1/13/06 9:55:29:324 EST] 6ab3077e WebGroup I SRVE0180I: [Eclipse
BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: /index.jsp: init
Does it mean that i have every thing required in my project?
Did you change anything in your
WSAD-->Window-->Java-->Compiler-->JdkComliance
-->InstalledJREs ???
It looks like some version contravention, do u have any idea?
How did you call RunReport from ur JSP? What are the parameters you passed
to call the RunReport.run().?
RunReport.java should be run from Command Prompt by passing the params,
how did u call that in WSAD?
Thanks.
Srini
Re: Jason,Aric...Integration Problem [message #108973 is a reply to message #108927] Fri, 13 January 2006 10:57 Go to previous messageGo to next message
Eclipse UserFriend
Srini,

I have seen this error with mismatched versions of Java.
A couple of questions for you. Do you need to use RunReport?
Can you deploy birt.war and just use the built in viewer?
The reason I ask this is that we are updating that example.
If you dont want to use the built in viewer look at ReportRunner.java in the
org.eclipse.birt.report.engine.api package. You will need to download it
from CVS.
BTW you may want to try the Web Viewer Example directory, which is already
unzipped instead
of the Birt.war.
One final thing, I would probably use RC instead of M3.

Jason



"srini" <to.sreddy@gmail.com> wrote in message
news:cb7c15dc19ccff008a78818263219604$1@www.eclipse.org...
> Jason,Aric
> I am trying to integrate BIRT M03 viewer to WSAD 5.0 .
> I have downloaded birt.war file and unzipped into BirtProject(the project
> name in my WSAD)/Webcontent then set the class loader policy
> I copied RunReport.java(Modefied the path for EngineHome)and Index.jsp
> into my JavaSource and WebContent folders.
> Now if i try to run the Index.jsp in the server, its displaying the page
> as below.
>
> Thank you for your choosing BIRT (Business Intelligence Reporting Tool).
>
> Viewer Version : 1.0.1
>
> Engine Version: 1.0.1
>
> View Example
> If i click on the link "View Example" Page Cannot found with following
> error
> E SRVE0026E: [Servlet Error]-[ViewerServlet]:
> java.lang.UnsupportedClassVersionError:
> org/eclipse/birt/report/viewer/servlets/ViewerServlet (Unsupported
> major.minor version 48.0)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java(Compiled
> Code))
> at
> com.ibm.ws.classloader.CompoundClassLoader._defineClass(Comp oundClassLoader.java:381)
> at
> com.ibm.ws.classloader.CompoundClassLoader.findClass(Compoun dClassLoader.java:348)
> at
> com.ibm.ws.classloader.CompoundClassLoader.loadClass(Compoun dClassLoader.java:262)
> at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
> at
> com.ibm.ws.classloader.ReloadableClassLoader.loadClass(Reloa dableClassLoader.java:76)
> at java.beans.Beans.instantiate(Beans.java:216)
> at java.beans.Beans.instantiate(Beans.java:77)
> at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServ let(WebAppServletManager.java:224)
> at
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServl etReference(WebAppServletManager.java:382)
> at
> com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(We bApp.java:589)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.c alculateInfo(WebAppRequestDispatcherInfo.java:177)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init >(WebAppRequestDispatcherInfo.java:59)
> at
> com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(W ebApp.java:1415)
> at
> com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(W ebApp.java:1376)
> at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHo ok(WebAppInvoker.java:196)
> at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.ha ndleInvocation(CachedInvocation.java:71)
> at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatch ByURI(ServletRequestProcessor.java:182)
> at
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.se rvice(OSEListener.java:331)
> at
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Ht tpConnection.java:56)
> at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConn ection.java:432)
> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
> This is the code in my jsp calling the .rptdesign
> <p><a href="<%= request.getContextPath( ) +
> " /frameset?__report=new_report.rptdesign&sample=my+parame ter " %>">View
> Example</a> and new_report.rptdesign is in my Web-Inf folder.
> When i start my server, i have the following messages on my server.
> [1/13/06 9:55:22:889 EST] 1c4d4768 ApplicationMg A WSVR0200I: Starting
> application: BIRTProject
> [1/13/06 9:55:23:089 EST] 1c4d4768 WebContainer A SRVE0169I: Loading Web
> Module: Eclipse BIRT Report Viewer.
> [1/13/06 9:55:23:109 EST] 1c4d4768 WebGroup I SRVE0180I: [Eclipse
> BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: JSP 1.2 Processor: init
> [1/13/06 9:55:23:219 EST] 1c4d4768 WebGroup I SRVE0180I: [Eclipse
> BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: SimpleFileServlet: init
> [1/13/06 9:55:23:230 EST] 1c4d4768 WebGroup I SRVE0180I: [Eclipse
> BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: InvokerServlet: init
> [1/13/06 9:55:23:230 EST] 1c4d4768 ApplicationMg A WSVR0221I: Application
> started: BIRTProject
> [1/13/06 9:55:23:260 EST] 1c4d4768 HttpTransport A SRVE0171I: Transport
> http is listening on port 9,080.
> [1/13/06 9:55:25:254 EST] 1c4d4768 HttpTransport A SRVE0171I: Transport
> https is listening on port 9,443.
> [1/13/06 9:55:25:334 EST] 1c4d4768 RMIConnectorC A ADMC0026I: RMI
> Connector available at port 2809
> [1/13/06 9:55:25:385 EST] 1c4d4768 WsServer A WSVR0001I: Server
> server1 open for e-business
> [1/13/06 9:55:29:324 EST] 6ab3077e WebGroup I SRVE0180I: [Eclipse
> BIRT Report Viewer] [/BIRTPrj] [Servlet.LOG]: /index.jsp: init
> Does it mean that i have every thing required in my project?
> Did you change anything in your
> WSAD-->Window-->Java-->Compiler-->JdkComliance
> -->InstalledJREs ???
> It looks like some version contravention, do u have any idea?
> How did you call RunReport from ur JSP? What are the parameters you passed
> to call the RunReport.run().?
> RunReport.java should be run from Command Prompt by passing the params,
> how did u call that in WSAD?
> Thanks.
> Srini
>
Re: Jason,Aric...Integration Problem [message #109096 is a reply to message #108973] Fri, 13 January 2006 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: to.sreddy.gmail.com

Jason,
My intention to integrate BIRT with WSAD is , based on some input
parameters (like Dates,ID and name etc)given by the user
system has to generate a pdf/html report and the user should be able to
save it if he want to.This enire thing should be go through WSAD which
i am using as IDE or webserver.Is it possible?
Now, answers to ur qns:
I am able to import the Birt.war into my WSAD and see all the directory
structure like common,css,images,jslayout,parameter,plugin,webinf
.So far i could not use the built in viewer.
I dont mind if i use RunReport or ReportRunner.java, but i have to
generate the reports.
Right now i can create my own reports in BIRT Designer and format it,
finally i got the myReport.rptdesign file from BIRT Designer.
What i have to do after this point?please keep in mind that i am using
WSAD not the apache,eclipse.
Thanks,
Srini
Re: Jason,Aric...Integration Problem [message #109166 is a reply to message #109096] Fri, 13 January 2006 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Srini,

I am not that familar with WASD.
Lets try to get deployment squared away first and then look at ultimately
how you want to run it.
Initially you were having a problem when you clicked on view report example.
Instead of using the
birt.war, try using the Web Viewer Example directory. Rename it to
something like viewer. Note the index.jsp and
all directories in the war file are under this directory.

Jason

"srini" <to.sreddy@gmail.com> wrote in message
news:66781da7fab281487a29eb206ba9015c$1@www.eclipse.org...
> Jason,
> My intention to integrate BIRT with WSAD is , based on some input
> parameters (like Dates,ID and name etc)given by the user
> system has to generate a pdf/html report and the user should be able to
> save it if he want to.This enire thing should be go through WSAD which i
> am using as IDE or webserver.Is it possible?
> Now, answers to ur qns:
> I am able to import the Birt.war into my WSAD and see all the directory
> structure like common,css,images,jslayout,parameter,plugin,webinf
> .So far i could not use the built in viewer.
> I dont mind if i use RunReport or ReportRunner.java, but i have to
> generate the reports.
> Right now i can create my own reports in BIRT Designer and format it,
> finally i got the myReport.rptdesign file from BIRT Designer.
> What i have to do after this point?please keep in mind that i am using
> WSAD not the apache,eclipse.
> Thanks,
> Srini
>
Re: Jason,Aric...Integration Problem [message #112246 is a reply to message #109166] Fri, 20 January 2006 09:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: to.sreddy.gmail.com

Aric,Jason,
what is the difference between using webviewer example folder and birt.war?
I find no difference in file structure.
Even if i use webviewer example folder, do i have to use the
RunReport.java to call the .rptfile?
I have a question on setting the Engine home.
I have unzipped birt-runtime-2.0M3.zip to my local folder "C:\BIRTRunTime2"
In this case my Engine Home is going to be
"C:\BIRTRunTime2\birt-runtime-1_0_1\Report Engine"
or do i need to use the eclipse one?
i.e //config.setEngineHome(
" c:\\eclipse3.1\\eclipse\\plugins\\org.eclipse.birt.report.vi ewer_1.0.1\\birt "
);
Aric....do i need to modifyany thing in the RunReport.java and in my WSAD
settings?
Thanks
Srini
Re: Jason,Aric...Integration Problem [message #112284 is a reply to message #112246] Fri, 20 January 2006 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Srini,

There is no difference between birt.war and the viewer example, but birt.war
does not have
the required additional files from the web site( ie iText, prototype.js or
the axis jars). So if you use birt.war
you need to extract it, add the required files.
If you use the Viewer Example there is no need to use RunReport.java. The
Viewer has the engine already embedded.
You would use C:\BIRTRunTime2\birt-runtime-1_0_1\Report Engine" as your
Engine Home if you are using Java code like
RunReport.java.

Jason

"srini" <to.sreddy@gmail.com> wrote in message
news:cd79f77f1918ed4779bc1e82973a4c75$1@www.eclipse.org...
> Aric,Jason,
> what is the difference between using webviewer example folder and
> birt.war?
> I find no difference in file structure.
> Even if i use webviewer example folder, do i have to use the
> RunReport.java to call the .rptfile?
> I have a question on setting the Engine home.
> I have unzipped birt-runtime-2.0M3.zip to my local folder
> "C:\BIRTRunTime2"
> In this case my Engine Home is going to be
> "C:\BIRTRunTime2\birt-runtime-1_0_1\Report Engine" or do i need to use the
> eclipse one?
> i.e //config.setEngineHome(
> " c:\\eclipse3.1\\eclipse\\plugins\\org.eclipse.birt.report.vi ewer_1.0.1\\birt "
> );
> Aric....do i need to modifyany thing in the RunReport.java and in my WSAD
> settings?
> Thanks
> Srini
>
>
Re: Jason,Aric...Integration Problem [message #112322 is a reply to message #112284] Fri, 20 January 2006 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: to.sreddy.gmail.com

I did't see the iText,prototype.js or the axis jars in the webviewer
example folder, i just imported that folder in to my web project
could not see all those files. Any ways , after importing webviewer
example folder, how to view the reports?am i missing any thing?
srini
Re: Jason,Aric...Integration Problem [message #112368 is a reply to message #112322] Fri, 20 January 2006 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Srini,
Currently we can not package the external files.
Listed below are the steps to deploy to Tomcat. Index.jsp has a link to the
test report.
Just change the URL to the report you want.

1 - Copy the Web Viewer Example directory to Webapps under Tomcat.

2 - Rename the Web Viewer Example directory to birt.

3 - Copy itext-1.3.jar file to the
/birt/plugins/org.eclipse.birt.report.engine.pdf/lib

4 - Copy prototype.js to
/birt.war/plugins/org.eclipse.birt.report.viewer/birt/ajax/l ib directory.

5 - Copy the following six jars to the birt.war/WEB-INF/lib directory.

axis.jar
axis-ant.jar
commons-discovery-0.2.jar
jaxrpc.jar
saaj.jar
wsdl4j-1.5.1.jar

Start up Tomcat and enter the URL to BIRT (ie http://localhost:8080/birt)
and run the test report.

"srini" <to.sreddy@gmail.com> wrote in message
news:b02f558cab2fc7104c53f7c968cb1ade$1@www.eclipse.org...
>I did't see the iText,prototype.js or the axis jars in the webviewer
>example folder, i just imported that folder in to my web project
> could not see all those files. Any ways , after importing webviewer
> example folder, how to view the reports?am i missing any thing?
> srini
>
Re: Jason,Aric...Integration Problem [message #113111 is a reply to message #112368] Mon, 23 January 2006 06:55 Go to previous message
Eclipse UserFriend
Originally posted by: maspeli.deloitte.co.uk

My reports are still empty. :-(

> 4 - Copy prototype.js to
> /birt.war/plugins/org.eclipse.birt.report.viewer/birt/ajax/l ib directory.

This doesn't exist in the 2.0RC2 runtime I downloaded. :-(

I have Webapps/birt/ajax/lib, and I have org.eclipse.birt.report.viewer in
the Eclipse plugins directory. Putting prototype.js in birt/ajax/lib and
copying org.eclipse.birt.report.viewer from eclipse/plugins to
Webapps/birt/plugins makes no difference.

> 5 - Copy the following six jars to the birt.war/WEB-INF/lib directory.
> Start up Tomcat and enter the URL to BIRT (ie http://localhost:8080/birt)
> and run the test report.

This is still empty for me.

It would be incredibly nice if someone that does have this working could put
up a tarball of the entire Webapps/birt directory somewhere. Unofficial, I
understand, but at least then we could be sure we're using the same version
:-/

Martin
Previous Topic:Integration problem
Next Topic:How to sort table dynamically?
Goto Forum:
  


Current Time: Mon Sep 22 19:19:40 EDT 2025

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

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

Back to the top