Sunday, April 17, 2022

Installing Maven in AWS EC2 instances

 Following are the set of commands need to be executed sequentially to install maven.

  • sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
  • sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
  • sudo yum install -y apache-maven
  • mvn –version

Thursday, April 7, 2022

 Issue:


Description:


Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.


Reason: Failed to determine suitable jdbc url



Action:


Consider the following:

If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).


<Apr 6, 2022 6:15:45 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "35635055073500" for task "12". Error is: "weblogic.application.ModuleException: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine suitable jdbc url"

weblogic.application.ModuleException: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine suitable jdbc url

at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)

at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:216)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:211)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)

Truncated. see log file for complete stacktrace

Caused By: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine suitable jdbc url

at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineUrl(DataSourceProperties.java:283)

at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:176)

at com.alticeusa.adminconsole.admin.PrimaryHeimdallConfig.primaryDataSource(PrimaryHeimdallConfig.java:40)

at com.alticeusa.adminconsole.admin.PrimaryHeimdallConfig$$EnhancerBySpringCGLIB$$29fd0dc9.CGLIB$primaryDataSource$1(<generated>)

at com.alticeusa.adminconsole.admin.PrimaryHeimdallConfig$$EnhancerBySpringCGLIB$$29fd0dc9$$FastClassBySpringCGLIB$$b7c64311.invoke(<generated>)

Truncated. see log file for complete stacktrace

<Apr 6, 2022 6:15:45 PM EDT> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 9 task for the application "admin-console-app".> 

<Apr 6, 2022 6:15:45 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "admin-console-app".> 

<Apr 6, 2022 6:15:45 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004

weblogic.application.ModuleException: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine suitable jdbc url:org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.DataSourceBeanCreationException:Failed to determine suitable jdbc url

at org.springframework.boot.autoconfigure.jdbc.DataSo



Solution: