maven


Spring ROO database reverse engineering with renamed context file


My requirement is quite simple. I recently created a jsf-primefaces-spring-roo-eclipselink multi module archetype and distributed it across my team here. With Spring ROO enabled, it makes our life easier to do all database reverse engineering and all is happy and well.
When I created the archetype, I used an applicationContext.xml file in the model tier to do ROO DB reverse engineering. I then tried to change the name of the context file to applicationContext-model.xml because I used another context in the web tier. Now after renaming this context file, when I do a 'database reverse engineer --schema ', I get 'unable-to-obtain-connection' when I tab for autocomplete in the roo shell. Also when I enter my schema name manually after --schema, I get this error:
File 'C:\TestWorkspace\TT\TT-model\src\main\resources\META-INF\spring\applicationContext.xml' does not exist
Obviously ROO doesn't seem so happy with the context file rename. May I know how I could tell ROO to take the new context file name to do the database reverse engineering?
Thanks for your help.
Regards
Basith
Since Roo wants a context file in the path 'src\main\resources\META-INF\spring\applicationContext.xml', I usually change the name of the other context files if I need to avoid collisions.
For instance, try to rename the application context file that you have in the web tier.

Related Links

File name too long on docker
Cannot (apt-get) install packages inside docker
Maven install-plugin does not use versions-plugin updated version
Maven XTEXT 2.10 external Lexer
Why is the forEach tag not working with Tomcat but all is fine with Jetty?
Could not resolve dependencies for project com.packtpub.rest-with-spring:rest-with-spring-all:war:
How to configure Jenkins when using Cucumber and Testlink?
Maven, Ant (or Apache Thrift) times out during make. Where to place proxy settings?
How to set default values for missing environment variables in maven pom
failed to get report for ru.yandex.qatools.allure:allure-maven-plugin: Unable to load the mojo 'aggregate'
Is it possible to create a Maven archetype just for some packages?
Building/Packaging SOA using maven in Jenkins
Why are my webResources not packaged if I run mvn clean install?
Spring Boot Maven Plugin - Define working directory
Detach application from gitlab runner
Maven add my own information during build to MANIFEST.MF file

Categories

HOME
clips
keycloak
json.net
syntax
bpmn
rdf
sqlite3
multiple-records
gitpitch
google-translate
modx-revolution
php-7.1
after-effects
ef-migrations
sms-gateway
code-review
grails3
nas
functional-testing
tar
sox
extjs5
tibco-mdm
shopware
microsoft-sync-framework
buildbot
underflow
spark-jobserver
elasticsearch-net
opentype
jaxb2
c++-amp
gsoap
siesta-swift
copying
usbserial
y86
adobe-premiere
bitbucket-pipelines
serve
jna
greenrobot-eventbus
ensembles
outlook-api
s
hibernate-tools
komodoedit
winscp-net
composite-key
dtexec
namecoin
color-profile
visual-c++-2008
etsy
ready-api
rhino-servicebus
hsv
execute
intel-fortran
census
jsapi
kineticjs
facebook-graph-api-v2.4
oxwall
websocket4net
openlaszlo
apc
dataservice
bulkloader
eclipse-memory-analyzer
spring-validator
lcs
ocunit
labwindows
postgresql-performance
code-cleanup
custom-backend
django-tagging
appender
lpeg
google-friend-connect
h.323
coda-slider
ext3
bespin

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App