With "Server Locations" = "Use Tomcat installation", Eclipse will
pollute your TomEE installation area - this may not be what you want...
With "Server Locations" = "Workspace Metadata", all you need to do is
copy tomee.xml to the "Servers/TomEE at localhost" project in your
Eclipse workspace.
See http://tomee.apache.org/tomee-and-eclipse.html, section Workspace
Metadata Installation for more details.
Best regards,
Harald
Am 07.12.2012 23:56, schrieb bibhas:
I have tracked down the root cause. The problem happens only when I start
TomEE from Eclipse. If I start it from command line, my data source
definition works just fine.
It appears that when I run TomEE from command line, it uses configuration
files from
<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf. To
change this, I had to take these steps in Eclipse:
1. Remove all deployed projects from the server.
2. Open server settings and from "Server Locations" choose "Use Tomcat
installation". This section is greyed out if you have at least one project
still deployed to the server. So, make sure you have done step #1.
3. Restart the server and redeploy the application. Now, my application is
finding the data source.
--
View this message in context:
http://openejb.979440.n4.nabble.com/How-to-configure-MySQL-data-source-tp4659201p4659252.html
Sent from the OpenEJB User mailing list archive at Nabble.com.