mbourassa1 Posted October 18, 2018 Share Posted October 18, 2018 I have installed tomcat 9 and MySql 8.0.I would like to install jasper server 7.1 with js-install-ce.batWhen I execute js-install-ce.bat test, I get this error: [Could not connect: Access denied for user 'root'@'localhost' (using password: NO)]I think the problem is with the '(using password: NO)' because the user 'root' have a password.If I use an other user who have no password, I get a build sucessfully.What I need to do for Using password: Yes ?Thank you Here is the complete error:E:jasperreports-server-cp-7.1.0-binbuildomatic>js-install-ce.bat testWriting to log file: logs/js-install-ce_2018-10-18_04-34_16961.log----------------------------------------------------------------------Running JasperReports Server install script at 2018-10-18_04-34----------------------------------------------------------------------[test]Running pre-install-test-ce Ant task----------------------------------------------------------------------Buildfile: E:jasperreports-server-cp-7.1.0-binbuildomaticbuild.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: parse: scripts.properties for db commands [echo] chkIfPackageManagedTomcat: check if package managed tomcat [taskdef] Could not load definitions from resource org/jacoco/ant/antlib.xml. It could not be found. [echo] using settings file: E:/jasperreports-server-cp-7.1.0-bin/buildomatic/build_conf/default/maven_settings.xmltest-ce-all-props: [echo] Checking properties: [echo] dbType=mysql [echo] dbHost=localhost [echo] dbUsername=root [echo] dbPassword=********** [echo] dbPort=3306 [echo] js.dbName=jasperserver [echo] sugarcrm.dbName=sugarcrm [echo] foodmart.dbName=foodmart [echo] webAppNameCE=jasperserver [echo] appServerType=tomcat [echo] appServerDir=E:apache-tomcat-9.0.12check-dbtype-ce:test-appServerType-ce:do-install-upgrade-test: [echo] Checking DBMS host and port: [echo] About to validate port: localhost:3306 [echo] Port 3306 is OK [echo] Done validating port: localhost:3306 [echo] Validating administrative database connection at jdbc:mysql://localhost:3306/mysql. Phase: [test] [echo] For JDBC driver the artifactId and version properties are set: [echo] maven.jdbc.artifactId=mariadb-java-client [echo] maven.jdbc.version=1.6.3 [echo] Specified JDBC driver jar exists[advanced-sql] Failed to connect: Could not connect: Access denied for user 'root'@'localhost' (using password: NO) [echo] Connection failed: [echo] SQLState: 28000 [echo] Vendor specific error code: 1045 [echo] Message: [Could not connect: Access denied for user 'root'@'localhost' (using password: NO)]BUILD FAILEDE:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:490: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:371: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticconf_sourcedbmysqldb.xml:70: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:408: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:465: Invalid username/password combination: [root/jasperadmin]. Treating problem with JDBC connection as unrecoverableTotal time: 1 secondChecking Ant return code: OK---------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
mbourassa1 Posted October 18, 2018 Author Share Posted October 18, 2018 Here is the complete error:E:jasperreports-server-cp-7.1.0-binbuildomatic>js-install-ce.bat testWriting to log file: logs/js-install-ce_2018-10-18_04-34_16961.log----------------------------------------------------------------------Running JasperReports Server install script at 2018-10-18_04-34----------------------------------------------------------------------[test]Running pre-install-test-ce Ant task----------------------------------------------------------------------Buildfile: E:jasperreports-server-cp-7.1.0-binbuildomaticbuild.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: parse: scripts.properties for db commands [echo] chkIfPackageManagedTomcat: check if package managed tomcat [taskdef] Could not load definitions from resource org/jacoco/ant/antlib.xml. It could not be found. [echo] using settings file: E:/jasperreports-server-cp-7.1.0-bin/buildomatic/build_conf/default/maven_settings.xmltest-ce-all-props: [echo] Checking properties: [echo] dbType=mysql [echo] dbHost=localhost [echo] dbUsername=root [echo] dbPassword=********** [echo] dbPort=3306 [echo] js.dbName=jasperserver [echo] sugarcrm.dbName=sugarcrm [echo] foodmart.dbName=foodmart [echo] webAppNameCE=jasperserver [echo] appServerType=tomcat [echo] appServerDir=E:apache-tomcat-9.0.12check-dbtype-ce:test-appServerType-ce:do-install-upgrade-test: [echo] Checking DBMS host and port: [echo] About to validate port: localhost:3306 [echo] Port 3306 is OK [echo] Done validating port: localhost:3306 [echo] Validating administrative database connection at jdbc:mysql://localhost:3306/mysql. Phase: [test] [echo] For JDBC driver the artifactId and version properties are set: [echo] maven.jdbc.artifactId=mariadb-java-client [echo] maven.jdbc.version=1.6.3 [echo] Specified JDBC driver jar exists[advanced-sql] Failed to connect: Could not connect: Access denied for user 'root'@'localhost' (using password: NO) [echo] Connection failed: [echo] SQLState: 28000 [echo] Vendor specific error code: 1045 [echo] Message: [Could not connect: Access denied for user 'root'@'localhost' (using password: NO)]BUILD FAILEDE:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:490: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:371: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticconf_sourcedbmysqldb.xml:70: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:408: The following error occurred while executing this line:E:jasperreports-server-cp-7.1.0-binbuildomaticbinvalidation.xml:465: Invalid username/password combination: [root/jasperadmin]. Treating problem with JDBC connection as unrecoverableTotal time: 1 secondChecking Ant return code: OK---------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
hozawa Posted October 20, 2018 Share Posted October 20, 2018 Yes, check if there's a "root" user in your mysql with access "localhost" and the root user has password. Link to comment Share on other sites More sharing options...
vrenaud Posted November 27, 2018 Share Posted November 27, 2018 Hi @mbourassa1,Did you fixed you problem?I have the same issue...I checked that root user exist as localhost and has a password and everything is ok but I still have the same error message. Thanks for your help. Link to comment Share on other sites More sharing options...
vrenaud Posted November 27, 2018 Share Posted November 27, 2018 Just for others,I've uninstall basic mysql to install mariadb-server and it worked perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now