Hi, thanks for the reply.
I've restarted the App Server and then I've looked into the server.log file.
It has this line:
config-property name='ConnectionURL'
type='java.lang.String'jdbc:mysql://10.90.31.14:3306/testB?useUnicode=trueamp;characterEncoding=UTF-8/config-property
But when I
mfps1810 wrote :
| But when I start my web app, it has loaded the database called 'test', not
'testB'.
|
|
What steps do you follow to verify that?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4200940#4200940
Reply to the post :
1. C:\jboss-4.2.2.GA\server\default\deploy\my-ds.xml
?xml version=1.0?
local-tx-datasource
jndi-nameimceDS/jndi-name
connection- urljdbc:mysql://10.90.31.14:3306/testB/connection-url
driver-classorg.gjt.mm.mysql.Driver/driver-class
user-nameroot/user-name
xxx
anonymous wrote : The database called test has been loaded, not the database
testB !
Let me be more clear :)
In your webapplication do you load the data and show it on the page? And this
data which is shown on the page belongs to the test database and not the
testB? If that's what is
Ok, I've seen the problem.
In every hbm.xml file, the catalog was referenced to the old database.
I've changed it and now it works correctly.
Thanks,
Manuel.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4200971#4200971
Reply to the post :
mfps1810 wrote :
|
| In every hbm.xml file, the catalog was referenced to the old database.
|
|
I have seen many users running into this specific issue :) That's the reason
why it's better to never set that catalog in hbm.xml. If for some reason,
someone else in a shared project
Thanks jaikiran,
Your last post has a very usefull explanation about why isn't good to use
'catalog' in hbm files.
Manuel.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4201032#4201032
Reply to the post :
Are you sure that the correct *-ds.xml file is in server/xxx/deploy? Did you
restart the app server?
Look in the server.log file for a line that looks like this:
2008-11-11 15:04:49,889 DEBUG [org.jboss.deployment.MainDeployer] Starting
deployment of package: