Building and Exporting BIRT 4.3.0 Viewer for Tomcat [message #1235557] |
Fri, 24 January 2014 12:01 |
Eclipse User |
|
|
|
Greetings All,
I quit trying to build BIRT 3.7.2. Jumped straight to BIRT 4.3.0. Much better.
- Using Eclipse Kepler 4.3
- Java 1.6
I followed the instructions for 3.7.1, modifying variables as errors arose.
So far I can build the viewservlets.jar without issue and export the RCP product without issue, containing any and all changes to the source code. When going on to try to export the web viewer I have 1 possible issue and one definite issue.
I have gotten to the export the 3.7 web viewer stage.
Issue 1: [Possible Issue]
Step 8 is creating the runtime jar. When exporting the org.eclipse.report.runtime jar I have this issue?!.
I had to change was the engine version number.
-DbuildOutputDir=C:\SWRI_eclipse_4_3\eclipse\plugins
-DbuildOutputDir.tmp=C:\SWRI_eclipse_4_3\eclipse\temp1222014
-DoutputDir=C:\SWRI_eclipse_4_3\eclipse\birtruntim31222014
-Dorg.eclipse.birt.report.engine=4.3.0.v201306080938
The ant build runs without a hitch and creates a jar, but I am getting a 3.7.0 runtime jar. Hmm is this correct? Could I just change the name perhaps?
Issue 2: [Definite Issue]
Step 9 running the WebViewerPackager.xml
I had to change the arguments. It did not like that ant Jar or the -f these are my ant build arguments
-Declipse.home=C:\SWRI_eclipse_4_3\eclipse -Dintegrate.dir=C:\SWRI_eclipse_4_3\eclipse
-Dorg.apache.axis=1.4.0.v201005080400 -Djavax.xml.rpc=1.1.0.v201005080400
-Djavax.xml.soap=1.2.0.v201005080501 -Dorg.apache.commons.discovery=0.2.0.v201004190315
-Dbuild.from.workspace=true -Dexport.dir=C:\SWRI_eclipse_4_3\eclipse\exported_viewer
I added the export.dir argument.
The build fails.
It first failed like this,(console output)
Buildfile: C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\WebViewerPackager.xml
init:
[delete] Deleting directory C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\birt_web
[copy] Copying 724 files to C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\birt_web
enginesdk:
[mkdir] Created dir: C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\birt_web\WEB-INF\platform
ExportEngineSDK:
BUILD FAILED
C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\WebViewerPackager.xml:275: The following error occurred while executing this line:
C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\WebViewerPackager.xml:446: C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\engine\lib does not exist.
Total time: 20 seconds
I added that folder to the build path and the build failed again....
Second Fail (console output)
Buildfile: C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\WebViewerPackager.xml
init:
[delete] Deleting directory C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\birt_web
[copy] Copying 724 files to C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\birt_web
enginesdk:
[mkdir] Created dir: C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\birt_web\WEB-INF\platform
ExportEngineSDK:
BUILD FAILED
C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\WebViewerPackager.xml:275: The following error occurred while executing this line:
C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.eclipse.birt.report.viewer\WebViewerPackager.xml:446: C:\Users\pbwhite\Desktop\VSS BIRT TEST SOURCE\viewer\org.apache.derby.core does not exist.
Total time: 20 seconds
I am guessing it will probably keep failing for one missing file after another. Is this the result of the runtime jar being 3.7.0 instead of 4.3.0 ?
Your guidance would be most appreciated. Thank you.
UPDATE - 7 FEB 2014
I have fixed all those problems and successfully completed the Ant Build for the WebViewerPackager.xml The new problem comes from trying to deploy on Tomcat 6.0.29. This is the stack trace from the apache localhost log
...
Feb 7, 2014 3:33:56 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 7, 2014 3:33:56 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 7, 2014 3:34:06 PM org.apache.catalina.core.StandardContext filterStop
FINE: Stopping filters
Feb 7, 2014 3:34:06 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class 'org.eclipse.birt.report.listener.ViewerServletContextListener'
Feb 7, 2014 3:34:06 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class 'org.eclipse.birt.report.listener.ViewerHttpSessionListener'
Feb 7, 2014 3:34:06 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 7, 2014 3:34:06 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.eclipse.birt.report.listener.ViewerServletContextListener
java.lang.NoClassDefFoundError: com/ibm/icu/util/UResourceBundle
at org.eclipse.birt.core.framework.osgi.OSGILauncher.doStartup(OSGILauncher.java:123)
at org.eclipse.birt.core.framework.osgi.OSGILauncher.access$0(OSGILauncher.java:94)
at org.eclipse.birt.core.framework.osgi.OSGILauncher$1.run(OSGILauncher.java:79)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:75)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:75)
at org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
at org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1023)
at org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.ibm.icu.util.UResourceBundle
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
... 20 more
Feb 7, 2014 3:34:06 PM org.apache.catalina.core.StandardContext filterStop
FINE: Stopping filters
Feb 7, 2014 3:34:43 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class 'org.eclipse.birt.report.listener.ViewerServletContextListener'
Feb 7, 2014 3:34:43 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class 'org.eclipse.birt.report.listener.ViewerHttpSessionListener'
Feb 7, 2014 3:34:43 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 7, 2014 3:34:43 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.eclipse.birt.report.listener.ViewerServletContextListener
java.lang.NoClassDefFoundError: com/ibm/icu/util/UResourceBundle
at org.eclipse.birt.core.framework.osgi.OSGILauncher.doStartup(OSGILauncher.java:123)
at org.eclipse.birt.core.framework.osgi.OSGILauncher.access$0(OSGILauncher.java:94)
at org.eclipse.birt.core.framework.osgi.OSGILauncher$1.run(OSGILauncher.java:79)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:75)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:75)
at org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
at org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1023)
at org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:624)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.ibm.icu.util.UResourceBundle
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
... 29 more
Feb 7, 2014 3:34:43 PM org.apache.catalina.core.StandardContext filterStop
FINE: Stopping filters
?!? Thanks
[Updated on: Fri, 07 February 2014 16:45] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03215 seconds