[#5296] - deploy-webapp-ce fails

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Hi,

when i try to install Jasper Server Reports with MySQL as backend its failing.

1. normal installation of 6.1 (with tomcat and psql bundled)
2. adopt default_master.properties with sample_conf/mysql_master.properties
3. create mysql database (after JasperReports-Server-CP-Install-Guide.pdf Chapter 4.2.2)
4. # js-ant import-minimal-ce (is working without any problem
5. # js-ant deploy-webapp-ce (fails)
5.1. had to create "/opt/jasperreports-server-cp-6.1.0/buildomatic/install_resources/war/jasperserver"
5.2 -->

[root@server buildomatic]# ./js-ant deploy-webapp-ce
Buildfile: /opt/jasperreports-server-cp-6.1.0/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.JSBasicDataSourceFactory
[echo] chkAndSetLocaleDbSettings: parse: scripts.properties for db commands
[echo] chkIfPackageManagedTomcat: check if package managed tomcat
[echo] using settings file: /opt/jasperreports-server-cp-6.1.0/buildomatic/build_conf/default/maven_settings.xml

init-source-paths:
[echo]
[echo] Property values (dev.xml:init-source-paths):
[echo] Source Paths:
[echo] js-path = ${js-base-path}
[echo] js-pro-path = ${js-pro-base-path}
[echo] Other Paths:
[echo] maven-localrepo-path = /root/.m2/repository
[echo]
[echo]

set-ce-webapp-name:
[copy] Copying 1 file to /opt/jasperreports-server-cp-6.1.0/buildomatic/build_conf/default
[copy] Copying 1 file to /opt/jasperreports-server-cp-6.1.0/buildomatic/build_conf/default/webapp/WEB-INF

deploy-jdbc-jar:
[echo] Copy JDBC drivers to the app-server
[echo] First copy jars
[echo] FROM the conf_source/db/app-srv-jdbc-drivers folder
[echo] TO the folder /opt/jasperreports-server-cp-6.1.0/apache-tomcat/lib
[echo] Did not need to delete an extra jdbc driver
[echo] About to copy JS repository JDBC driver (if it exists):
[echo] Copy jdbc driver from: /opt/jasperreports-server-cp-6.1.0/buildomatic/conf_source/db/mysql/jdbc/mariadb-java-client-1.1.2.jar
[echo] Copy jdbc driver to: /opt/jasperreports-server-cp-6.1.0/apache-tomcat/lib
[echo] Note: ji*-driver*.jar files are for internal use in JasperReports Server web application only. Those jar files won't get copied to app server jdbc directory

deploy-webapp:
[echo] For JDBC driver the artifactId and version properties are set:
[echo] maven.jdbc.artifactId=mariadb-java-client
[echo] maven.jdbc.version=1.1.2
[echo] Specified JDBC driver jar exists
[echo] About to copy JDBC driver for import-export config (if it exists):
[delete] Deleting directory /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver
[echo]
[echo] Property values (in app-server.xml: deploy-webapp):
[echo] jsEdition = ce
[echo] warSourceDir = /opt/jasperreports-server-cp-6.1.0/buildomatic/install_resources/war/jasperserver
[echo] warTargetDir = /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver
[echo] webAppName = jasperserver
[echo] webAppNameCE = jasperserver
[echo] webAppNamePro = jasperserver-pro
[echo] webAppNameSrc = jasperserver
[echo] webAppNameDel = jasperserver
[echo] warTargetDirDel = /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver
[echo]
[copy] Copied 1 empty directory to 1 empty directory under /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver
[echo] Filtering properties (cleaning out blank spaces)
[echo] chkIfPackageManagedTomcat: check if package managed tomcat
[echo] Tomcat DBCP Factory: com.jaspersoft.jasperserver.tomcat.jndi.JSBasicDataSourceFactory
[echo] chkAndSetLocaleDbSettings: parse: scripts.properties for db commands
[echo] chkIfPackageManagedTomcat: check if package managed tomcat
[echo] using settings file: /opt/jasperreports-server-cp-6.1.0/buildomatic/build_conf/default/maven_settings.xml

init-source-paths:
[echo]
[echo] Property values (dev.xml:init-source-paths):
[echo] Source Paths:
[echo] js-path = ${js-base-path}
[echo] js-pro-path = ${js-pro-base-path}
[echo] Other Paths:
[echo] maven-localrepo-path = /root/.m2/repository
[echo]
[echo]

deploy-webapp-datasource-configs:
[echo]
[echo] Property values (in app-server.xml: deploy-webapp):
[echo] jsEdition = ce
[echo] warSourceDir = /opt/jasperreports-server-cp-6.1.0/buildomatic/install_resources/war/jasperserver
[echo] warTargetDir = /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver
[echo] webAppName = jasperserver
[echo] webAppNameCE = jasperserver
[echo] webAppNamePro = jasperserver-pro
[echo] webAppNameSrc = jasperserver
[echo] webAppNameDel = jasperserver
[echo] warTargetDirDel = /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver
[copy] Copying 8 files to /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver

BUILD FAILED
/opt/jasperreports-server-cp-6.1.0/buildomatic/bin/app-server.xml:780: The following error occurred while executing this line:
/opt/jasperreports-server-cp-6.1.0/buildomatic/bin/app-server.xml:530: Replace: source file /opt/jasperreports-server-cp-6.1.0/apache-tomcat/webapps/jasperserver/WEB-INF/web.xml doesn't exist

Total time: 1 second
[root@server buildomatic]#

- config

[root@server buildomatic]# grep -vE '^#' default_master.properties
appServerType = tomcat6
appServerDir=/opt/jasperreports-server-cp-6.1.0/apache-tomcat
dbType=mysql
dbHost=127.0.0.1
dbUsername=user
dbPassword=mysecretpassword
dbPort=3306
webAppNameCE = jasperserver
preserve_master_properties_footer_comments_when_encrypting_buildomatic=true
[root@server buildomatic]#

Any idea why is it failing?

Many Thanks.

v6.1
bertconcepts's picture
Joined: Jul 28 2015 - 1:17am
Last seen: 6 years 10 months ago
Feedback