JasperReport Server: installed but cannot start

0

Hi all,

I've installed JasperReport Server (tryed with 4.7 and 5 versions), but neither can start.

I've a 64 bit Centos 6.3, with java openjdk 1.6, tomcat 6.0.24 and mysql 5.1.66 with
jdbc connector 5.1.17. All working perferctly with an Alfresco share deployment
(6 core machine with 16 gb ram...).

The installation steps:

1. copied the mtsql connector jar (with version) in the directory
    buildomatic/conf_source/db/mysql/jdbc/ 


2. copied the example setup file in default_master.properties, with this content

appServerType = tomcat6
appServerDir =
CATALINA_HOME = /usr/share/tomcat6
CATALINA_BASE = /usr/share/tomcat6
dbType=mysql
dbHost=localhost
dbUsername=root
dbPassword=xxxxxxxxxxxxx

3. launched 

./js-install-ce.sh test 

with (tailed) output



pre-install-test-ce:
 
BUILD SUCCESSFUL
Total time: 1 second
Checking Ant return code: OK

4. launched 

./js-install-ce.sh

and, after few minutes, with this (tailed) output

install-normal-ce:
     [echo] Installation successfully completed!
 
BUILD SUCCESSFUL
Total time: 10 minutes 14 seconds
Checking Ant return code: OK
 
5. all files copied under /usr/share/tomcat6/webapps/jasperserver, and "tomcat" as owner

6. after starting the app in tomcat manager (with "FAIL - Application at context path /jasperserver could not be started"
in my browser), I cannot access the jasperserver url.

please, see the attached logfile.
 
any hint?
 
many thanks,
 
francesco

 

 

Attachments: 
francesco.taurino's picture
Joined: Jan 9 2013 - 3:05am
Last seen: 4 years 3 months ago
Do you see anything in the Tomcat log? catalina.out
marianol - 6 years 10 months ago
hi, these are the lines in catalina.out 194 INFO: Deploying web application directory jasperserver 195 Jan 10, 2013 12:15:52 PM org.apache.catalina.core.NamingContextListener addResource196 WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundExcep tion: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 197 Jan 10, 2013 12:15:52 PM org.apache.catalina.core.NamingContextListener addResource198 WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundExcep tion: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 199 Jan 10, 2013 12:15:52 PM org.apache.catalina.core.NamingContextListener addResource200 WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundExcep tion: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 201 Jan 10, 2013 12:15:52 PM org.apache.catalina.core.StandardContext start 202 SEVERE: Error listenerStart 203 Jan 10, 2013 12:15:52 PM org.apache.catalina.core.StandardContext start 204 SEVERE: Context [/jasperserver] startup failed due to previous errors 205 Jan 10, 2013 12:38:45 PM org.apache.catalina.core.NamingContextListener addResource206 WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundExcep tion: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 207 Jan 10, 2013 12:38:45 PM org.apache.catalina.core.NamingContextListener addResource208 WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundExcep tion: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 209 Jan 10, 2013 12:38:45 PM org.apache.catalina.core.NamingContextListener addResource 210 WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundExcep tion: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 211 2013-01-10 12:38:47,483 ERROR ContextLoader,http-8080-2:307 - Context initialization failed 212 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeSource' defined in ServletContext resource [/WEB-INF/applicatio nContext-themes.xml]: Cannot resolve reference to bean 'themeCache' while setting bean property 'themeCache'; nested exception is org.springframework.beans. factory.BeanCreationException: Error creating bean with name 'themeCache' defined in ServletContext resource [/WEB-INF/applicationContext-themes.xml]: Canno t resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception is org.springframework.beans.facto ry.BeanCreationException: Error creating bean with name 'hibernateRepositoryService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: C annot resolve reference to bean 'accessContext' while setting bean property 'accessContext'; nested exception is org.springframework.beans.factory.BeanCreat ionException: Error creating bean with name 'accessContext' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot reso lve reference to bean 'loggingContextProvider' while setting bean property 'loggingContextProvider'; nested exception is org.springframework.beans.factory.B eanCreationException: Error creating bean with name 'loggingContextProvider' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging. xml]: Cannot resolve reference to bean 'loggingEventsService' while setting bean property 'loggingService'; nested exception is org.springframework.beans.fa ctory.BeanCreationException: Error creating bean with name 'loggingEventsService' defined in ServletContext resource [/WEB-INF/applicationContext-events-log ging.xml]: Cannot resolve reference to bean 'accessService' while setting bean property 'routingMap' with key [TypedStringValue: value [com.jaspersoft.jaspe rserver.api.logging.access.domain.AccessEvent], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error crea ting bean with name 'accessService' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 's essionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bea n with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setti ng bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defin ed in ServletContext resource [/WEB-INF/applicationContext-webapp.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 213 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) 214 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) 215 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360) 216 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118) 217 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) 218 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 219 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) 220 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) 221 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) 222 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 223 at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1097) 224 at org.springframework.ui.context.support.UiApplicationContextUtils.initThemeSource(UiApplicationContextUtils.java:58) 225 at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.onRefresh(AbstractRefreshableWebApplicationContext.java:179) 226 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:458) 227 at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384) 228 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) 229 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) 230 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) 231 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) 232 at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1251) 233 at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:613) 234 at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) 235 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 236 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 237 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 238 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 239 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 240 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 241 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558) 242 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 243 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 244 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 245 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) 246 at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:865) 247 at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) 248 at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555) 249 at java.lang.Thread.run(Thread.java:679) 250 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeCache' defined in ServletContext resource [/WEB-INF/ applicationContext-themes.xml]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested excepti on is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'accessContext' while setting bean property 'accessContext'; nested exception is org.sp ringframework.beans.factory.BeanCreationException: Error creating bean with name 'accessContext' defined in ServletContext resource [/WEB-INF/applicationCon text-events-logging.xml]: Cannot resolve reference to bean 'loggingContextProvider' while setting bean property 'loggingContextProvider'; nested exception i s org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingContextProvider' defined in ServletContext resource [/WEB-I NF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'loggingEventsService' while setting bean property 'loggingService'; nested exce ption is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingEventsService' defined in ServletContext resource [/ WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'accessService' while setting bean property 'routingMap' with key [TypedStr ingValue: value [com.jaspersoft.jasperserver.api.logging.access.domain.AccessEvent], target type [null]]; nested exception is org.springframework.beans.fact ory.BeanCreationException: Error creating bean with name 'accessService' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml] : Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.Bean CreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve refer ence to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creat ing bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext-webapp.xml]: Invocation of init method failed; nested except ion is javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp. dbcp.BasicDataSourceFactory]251 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)252 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)253 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)254 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)255 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)256 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)257 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)258 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)259 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)260 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) 261 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322262 ... 36 more 263 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryService' defined in ServletContext res ource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'accessContext' while setting bean property 'accessContext'; nested exception is o rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accessContext' defined in ServletContext resource [/WEB-INF/applicati onContext-events-logging.xml]: Cannot resolve reference to bean 'loggingContextProvider' while setting bean property 'loggingContextProvider'; nested except ion is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingContextProvider' defined in ServletContext resource [/ WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'loggingEventsService' while setting bean property 'loggingService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingEventsService' defined in ServletContext resour ce [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'accessService' while setting bean property 'routingMap' with key [Typ edStringValue: value [com.jaspersoft.jasperserver.api.logging.access.domain.AccessEvent], target type [null]]; nested exception is org.springframework.beans .factory.BeanCreationException: Error creating bean with name 'accessService' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging .xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory .BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext-webapp.xml]: Invocation of init method failed; nested e xception is javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat. dbcp.dbcp.BasicDataSourceFactory] 264 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) 265 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) 266 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360) 267 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118) 268 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) 269 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 270 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) 271 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) 272 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) 273 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) 274 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) 275 ... 46 more ) 276 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accessContext' defined in ServletContext resource [/WEB-I NF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'loggingContextProvider' while setting bean property 'loggingContextProvider'; n ested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingContextProvider' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'loggingEventsService' while setting bean property 'loggingServ ice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingEventsService' defined in ServletCo ntext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'accessService' while setting bean property 'routingMap' w ith key [TypedStringValue: value [com.jaspersoft.jasperserver.api.logging.access.domain.AccessEvent], target type [null]]; nested exception is org.springfra mework.beans.factory.BeanCreationException: Error creating bean with name 'accessService' defined in ServletContext resource [/WEB-INF/applicationContext-ev ents-logging.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.b eans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Can not resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationExcep tion: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext-webapp.xml]: Invocation of init method fail ed; nested exception is javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.ap ache.tomcat.dbcp.dbcp.BasicDataSourceFactory] 277 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) 278 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) 279 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360) 280 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118) 281 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) 282 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 283 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) 284 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) 285 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) 286 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) 287 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) 288 ... 56 more @ any ideas? thanks! francesco
francesco.taurino - 6 years 10 months ago
during the setup phase, with mysql or postgresql, databases are created and all files are copied in the webapps dir of tomcat6....
francesco.taurino - 6 years 10 months ago
show 2 more...
error is reproducible. with mysql (5.1) or postgresql (8.4 and 9.2), on centos 6 64 bit, with tomcat 6 and java (openjdk) 1.6. these stacks works with alfresco, but not with jasperreports server...
francesco.taurino - 6 years 10 months ago
Same problem, osx tomcat server 6.0.35 (installed from macports). There is a problem with dbcp, I think jasper reports uses tomcat-dbcp.jar, and nowadays we're supposed to use commons-dbcp.jar or something like that. I don't really understand it. My other webapps work.
jabraham - 6 years 9 months ago

0 Answers:

No answers yet
Feedback
randomness