Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Tomcat deployment fails(Tomcat 7, OpenJDK JRE 1.8.0_131, Ubuntu AWS)
Tomcat deployment fails [message #1767152] Sun, 02 July 2017 13:28 Go to next message
Eduardo Elgueta is currently offline Eduardo ElguetaFriend
Messages: 5
Registered: July 2017
Junior Member
Hello All,

I'm trying to deploy BIRT in an EC2 AWS instance running Ubuntu:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
:
:
:
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial


The java version:
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode) 


Tomcat:
Apache Tomcat/7.0.76


In the browser, when I try to access the app to see if it's working, I get the following error:
HTTP Status 404 - /birt-viewer/
type Status report
message /birt-viewer/
description The requested resource is not available.
Apache Tomcat/7.0.76

And the logs have this:
2017-07-02 13:06:25.617 +0000 INFO: org.apache.catalina.startup.HostConfig Deploying web application directory /opt/bonitabpm/server/webapps/birt-viewer
2017-07-02 13:06:29.636 +0000 SEVERE: org.apache.catalina.core.ContainerBase ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/birt-viewer]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
        at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:314)
        at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:268)
        at java.util.jar.JarVerifier.processEntry(JarVerifier.java:316)
        at java.util.jar.JarVerifier.update(JarVerifier.java:228)
        at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
        at java.util.jar.JarFile.getInputStream(JarFile.java:450)
        at org.apache.catalina.loader.WebappClassLoaderBase.findResourceInternal(WebappClassLoaderBase.java:3422)
        at org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappClassLoaderBase.java:1458)
        at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1686)
        at org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2272)
        at org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2262)
        at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2168)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2120)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1981)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1942)
        at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1927)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1332)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        ... 10 more

2017-07-02 13:06:29.637 +0000 SEVERE: org.apache.catalina.startup.HostConfig Error deploying web application directory /opt/bonitabpm/server/webapps/birt-viewer
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/birt-viewer]]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)

2017-07-02 13:06:29.637 +0000 INFO: org.apache.catalina.startup.HostConfig Deployment of web application directory /opt/bonitabpm/server/webapps/birt-viewer has finished in 4,020 ms


I've been googling for 2 days and I've found references to get rid of some files in the META_INF directory, but this deployment doesn't have that folder.

I tried deploying the birt.war archive, and I get the same results.

Any help, very welcomed.
Re: Tomcat deployment fails [message #1767414 is a reply to message #1767152] Wed, 05 July 2017 19:26 Go to previous messageGo to next message
Zorawar  B is currently offline Zorawar BFriend
Messages: 2
Registered: May 2017
Junior Member
What version of BIRT is being used?
Re: Tomcat deployment fails [message #1767640 is a reply to message #1767414] Sat, 08 July 2017 03:30 Go to previous messageGo to next message
Eduardo Elgueta is currently offline Eduardo ElguetaFriend
Messages: 5
Registered: July 2017
Junior Member
Zorawar,

Thank you. The problem was we were using a modified version packed with macOS zip utility. We unpacked and packed again with jar and it's almost working now.

Now the web app starts, but we get the following error:

- Fatal error occurred when try to startup report engine.
org.eclipse.birt.report.exception.ViewerException: Fatal error occurred when try to startup report engine.
	at org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:342)
	at org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1023)
	at org.eclipse.birt.report.servlet.ViewerServlet.__getContext(ViewerServlet.java:148)
	at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doGet(BirtSoapMessageDispatcherServlet.java:151)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

Re: Tomcat deployment fails [message #1770227 is a reply to message #1767640] Wed, 09 August 2017 08:53 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 1
Registered: August 2017
Junior Member
Hello,

I did have exactly the same error, but I don't see how it could be related to any MacOS version, as I just downloaded birt-runtime-4.6.0-20160607.zip, unzipped it and put the "WebViewerExemple" directory to the webapps directory as "birt-viewer".

I did have the same problem by copying birt.war to the webapps directory.

I do not understand your problem with "MacOS"-packaging you mentioned ...
Previous Topic:reportContext.getMessage null in DEV Enviroment
Next Topic:Tomcat Shutdown & TimerThread leak?
Goto Forum:
  


Current Time: Thu May 24 21:25:05 GMT 2018

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

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

Back to the top