Jump to content
We've recently updated our Privacy Statement, available here ×

CentOS 7: js-ant import-minimal-ce > fails to install


pablo_qc

Recommended Posts

Hi,

I am attempting to install JasperReports Server on a CentOS 7 box.  I tried the auto installer but that failed with the same error I'm getting while attempting to install it manually

The failure happens during the import-minimal-ce step.  Everything before this step works fine.  Below is a transcript of the session.  I have google'd around and I've seen people suggest the hostname is missing in /etc/hosts  That's not the situation here.  I'm including my /etc/hosts too. 

Any help would be greatly appreciated!  Thank you.

-pablo

Error Log

# ./js-ant import-minimal-ceBuildfile: /opt/jasperreports-server-cp-5.6.1/buildomatic/build.xml                                                                                [echo] Filtering properties (cleaning out blank spaces)                                                                                       [echo] chkIfPackageManagedTomcat: check if package managed tomcat                                                                             [echo] Tomcat DBCP Factory: com.jaspersoft.jasperserver.tomcat.jndi.JSCommonsBasicDataSourceFactory                                           [echo] chkAndSetLocaleDbSettings: dbType is postgresql                                                                                        [echo] chkAndSetLocaleDbSettings: db.set.lc_collate and db.set.lc_ctype are NOT both set                                                      [echo] chkAndSetLocaleDbSettings: parse: scripts.properties for db commands                                                                   [echo] chkIfPackageManagedTomcat: check if package managed tomcat                                                                             [echo] using settings file: /opt/jasperreports-server-cp-5.6.1/buildomatic/build_conf/default/maven_settings.xml                                                                                                                                                                       import-minimal-ce:                                                                                                                                 [echo]                                                                                                                                        [echo] Property values (in install.xml):                                                                                                      [echo]  archiveArg = --input-zip=/opt/jasperreports-server-cp-5.6.1/buildomatic/install_resources/export/js-catalog-minimal-ce.zip            [echo]  dbType = postgresql     [echo]  jdbcJar = postgresql-9.3-1101.jdbc41.jar     [echo]  currentConf = /opt/jasperreports-server-cp-5.6.1/buildomatic/build_conf/default     [echo]  importExportConfig = /opt/jasperreports-server-cp-5.6.1/buildomatic/conf_source/ieCe     [echo]       [echo] Validating JasperServer database connection at jdbc:postgresql://lab-db-cluster:5432/jasperserver. Phase: [import-export-test]     [echo] For JDBC driver the artifactId and version properties are set:     [echo]   maven.jdbc.artifactId=postgresql     [echo]   maven.jdbc.version=9.3-1101.jdbc41     [echo]   Specified JDBC driver jar exists[advanced-sql] Executing commands[advanced-sql] 1 of 1 SQL statements executed successfully     [echo] Connection OK     [java] First resource path:/opt/jasperreports-server-cp-5.6.1/buildomatic/conf_source/ieCe/applicationContext-themes.xml     [java] Started to load resources     [java] Resource name: applicationContext.xml     [java] Resource name: applicationContext-cascade.xml     [java] Resource name: applicationContext-data-snapshots.xml     [java] Resource name: applicationContext-events-logging.xml     [java] Resource name: applicationContext-export-config.xml     [java] Resource name: applicationContext-export-import.xml     [java] Resource name: applicationContext-logging.xml     [java] Resource name: applicationContext-olap-connection.xml     [java] Resource name: applicationContext-report-scheduling.xml     [java] Resource name: applicationContext-search.xml     [java] Resource name: applicationContext-security.xml     [java] Resource name: applicationContext-themes.xml     [java] Resource name: applicationContext-virtual-data-source.xml     [java] Creating ActionModelService object.     [java] Creating action model infrastructure.     [java] Imported tenant organizations     [java] Tenant not found with Tenant ID "organizations"BUILD FAILED/opt/jasperreports-server-cp-5.6.1/buildomatic/bin/import-export.xml:277: The following error occurred while executing this line:/opt/jasperreports-server-cp-5.6.1/buildomatic/bin/import-export.xml:158: Java returned: 255# ./js-ant import-minimal-ceBuildfile: /opt/jasperreports-server-cp-5.6.1/buildomatic/build.xml                                                                                [echo] Filtering properties (cleaning out blank spaces)                                                                                       [echo] chkIfPackageManagedTomcat: check if package managed tomcat                                                                             [echo] Tomcat DBCP Factory: com.jaspersoft.jasperserver.tomcat.jndi.JSCommonsBasicDataSourceFactory                                           [echo] chkAndSetLocaleDbSettings: dbType is postgresql                                                                                        [echo] chkAndSetLocaleDbSettings: db.set.lc_collate and db.set.lc_ctype are NOT both set                                                      [echo] chkAndSetLocaleDbSettings: parse: scripts.properties for db commands                                                                   [echo] chkIfPackageManagedTomcat: check if package managed tomcat                                                                             [echo] using settings file: /opt/jasperreports-server-cp-5.6.1/buildomatic/build_conf/default/maven_settings.xml                                                                                                                                                                       import-minimal-ce:                                                                                                                                 [echo]                                                                                                                                        [echo] Property values (in install.xml):                                                                                                      [echo]  archiveArg = --input-zip=/opt/jasperreports-server-cp-5.6.1/buildomatic/install_resources/export/js-catalog-minimal-ce.zip            [echo]  dbType = postgresql     [echo]  jdbcJar = postgresql-9.3-1101.jdbc41.jar     [echo]  currentConf = /opt/jasperreports-server-cp-5.6.1/buildomatic/build_conf/default     [echo]  importExportConfig = /opt/jasperreports-server-cp-5.6.1/buildomatic/conf_source/ieCe     [echo]       [echo] Validating JasperServer database connection at jdbc:postgresql://lab-db-cluster:5432/jasperserver. Phase: [import-export-test]     [echo] For JDBC driver the artifactId and version properties are set:     [echo]   maven.jdbc.artifactId=postgresql     [echo]   maven.jdbc.version=9.3-1101.jdbc41     [echo]   Specified JDBC driver jar exists[advanced-sql] Executing commands[advanced-sql] 1 of 1 SQL statements executed successfully     [echo] Connection OK     [java] First resource path:/opt/jasperreports-server-cp-5.6.1/buildomatic/conf_source/ieCe/applicationContext-themes.xml     [java] Started to load resources     [java] Resource name: applicationContext.xml     [java] Resource name: applicationContext-cascade.xml     [java] Resource name: applicationContext-data-snapshots.xml     [java] Resource name: applicationContext-events-logging.xml     [java] Resource name: applicationContext-export-config.xml     [java] Resource name: applicationContext-export-import.xml     [java] Resource name: applicationContext-logging.xml     [java] Resource name: applicationContext-olap-connection.xml     [java] Resource name: applicationContext-report-scheduling.xml     [java] Resource name: applicationContext-search.xml     [java] Resource name: applicationContext-security.xml     [java] Resource name: applicationContext-themes.xml     [java] Resource name: applicationContext-virtual-data-source.xml     [java] Creating ActionModelService object.     [java] Creating action model infrastructure.     [java] Imported tenant organizations     [java] Tenant not found with Tenant ID "organizations"BUILD FAILED/opt/jasperreports-server-cp-5.6.1/buildomatic/bin/import-export.xml:277: The following error occurred while executing this line:/opt/jasperreports-server-cp-5.6.1/buildomatic/bin/import-export.xml:158: Java returned: 255

/etc/hosts

# cat /etc/hosts127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4::1         localhost localhost.localdomain localhost6 localhost6.localdomain6## Databases#10.131.0.11     labdb01 lab-db-0110.131.0.12     labdb02 lab-db-0210.131.0.13     labdb03 lab-db-0310.131.0.14     labdb04 lab-db-04## Database Pools#10.131.0.30     labdbcluster lab-db-cluster10.131.0.31     labdbprx01 lab-db-rpx-0110.131.0.32     labdbprx02 lab-db-rpx-02## Jasper Server(s)#10.131.0.50     labjspcluster lab-jsp-cluster10.131.0.51     labjsp01 lab-jsp-0110.131.0.52     labjsp02 lab-jsp-02

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

This is the output when I ran ant with -d

BUILD FAILED/opt/jasperreports-server-cp-5.6.1/buildomatic/bin/import-export.xml:277: The following error occurred while executing this line:/opt/jasperreports-server-cp-5.6.1/buildomatic/bin/import-export.xml:158: Java returned: 255        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:606)        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)        at org.apache.tools.ant.Task.perform(Task.java:348)        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:606)        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)        at org.apache.tools.ant.Task.perform(Task.java:348)        at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:606)        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)        at org.apache.tools.ant.Task.perform(Task.java:348)        at org.apache.tools.ant.Target.execute(Target.java:435)        at org.apache.tools.ant.Target.performTasks(Target.java:456)        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)        at org.apache.tools.ant.Main.runBuild(Main.java:851)        at org.apache.tools.ant.Main.startAnt(Main.java:235)        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Link to comment
Share on other sites

  • 2 years later...

Is there any actual fix for this? Should I ignore the errors I see on startup that pertain to this? 

2017-03-08 10:46:47,202 ERROR ContextLoader,localhost-startStop-2:331 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeSource' defined in ServletContext resource [/WEB-INF/applicationContext-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]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception 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.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accessContext' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'loggingContextProvider' while setting bean property 'loggingContextProvider'; nested 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 'loggingService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingEventsService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'routingMapCe' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'accessService' while setting constructor argument with key [TypedStringValue: value [com.jaspersoft.jasperserver.api.logging.access.domain.AccessEvent], target type [class java.lang.Class]]; 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 'userAuthorityService' while setting bean property 'persistentUserResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userAuthorityService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cann
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...