Jasper server webapp dont start

0

Hi all,

i successfully install and deply jasperreports-server-cp-5.6.1-bin on AIX Version 6.1 with apache-tomcat-6.0.36

In the web manager of tomcat i see th application jasperserver but it is not running and if i try to start it the error

FAIL - Application at context path /jasperserver could not be started

is returned.

Here the last part of Catalina logfile

Nov 17, 2014 12:03:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 17, 2014 12:03:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jasperserver] startup failed due to previous errors
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/jasperserver] registered the JDBC driver [org.teiid.jdbc.TeiidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [olapCache] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [Thread-53] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [CascadeCacheCleaner] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [Scheduled-eviction-thread-0] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [BufferManager Cleaner] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [bitronix-task-scheduler] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [SessionMonitor] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [quartzScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [quartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [pool-8-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jasperserver] appears to have started a thread named [Thread-39] but has failed to stop it. This is very likely to create a memory leak.
Nov 17, 2014 12:03:26 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/jasperserver] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@614c614c]) and a value of type [org.springframework.security.context.SecurityContextImpl] (value [org.springframework.security.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Nov 17, 2014 12:04:19 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load org.infinispan.util.concurrent.BoundedConcurrentHashMap$Values.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
Throwable occurred: java.lang.IllegalStateException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1566)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    at org.infinispan.util.concurrent.BoundedConcurrentHashMap.values(BoundedConcurrentHashMap.java:2113)
    at org.infinispan.container.DefaultDataContainer.purgeExpired(DefaultDataContainer.java:189)
    at org.infinispan.eviction.EvictionManagerImpl.processEviction(EvictionManagerImpl.java:102)
    at org.infinispan.eviction.EvictionManagerImpl$ScheduledTask.run(EvictionManagerImpl.java:144)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:453)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:329)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:162)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:110)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:193)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:217)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
    at java.lang.Thread.run(Thread.java:736)

and the localhost logfile

Nov 17, 2014 12:03:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'jasperserver.root' = [/home/oracle/apachetomcat/apache-tomcat-6.0.36/webapps/jasperserver/]
Nov 17, 2014 12:03:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from [/home/oracle/apachetomcat/apache-tomcat-6.0.36/webapps/jasperserver/WEB-INF/log4j.properties]
Nov 17, 2014 12:03:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Nov 17, 2014 12:03:26 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.owasp.csrfguard.CsrfGuardServletContextListener
Throwable occurred: java.lang.RuntimeException: java.security.NoSuchProviderException: Provider SUN is not available
    at org.owasp.csrfguard.CsrfGuardServletContextListener.contextInitialized(CsrfGuardServletContextListener.java:40)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
    at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
    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.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    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:103)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:736)
Caused by: java.security.NoSuchProviderException: Provider SUN is not available
    at java.security.SecureRandom.getInstance(SecureRandom.java:212)
    at org.owasp.csrfguard.CsrfGuard.load(CsrfGuard.java:101)
    at org.owasp.csrfguard.CsrfGuardServletContextListener.contextInitialized(CsrfGuardServletContextListener.java:38)
    ... 23 more
Nov 17, 2014 12:03:26 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Nov 17, 2014 12:03:26 PM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j

Any help is well received, Thank you in advance.

pspjasper's picture
-17
Joined: Jul 18 2014 - 1:04am
Last seen: 5 months 2 weeks ago

1 Answer:

1

I found THE solution by myself here:

https://community.jaspersoft.com/questions/826486/updating-jasperreports-server-aixdb2tomcat

where they say to simply add the line 

org.owasp.csrfguard.PRNG.Provider=IBMJCE

in the file

WEB-INF/esapi/Owasp.CsrfGuard.properties

It is interesting to read about explaination.

pspjasper's picture
-17
Joined: Jul 18 2014 - 1:04am
Last seen: 5 months 2 weeks ago
Feedback
randomness