Specs:
- Netbeans 7.3
- JDK 6
- Java EE 5
- JSF 2
- Server: Weblogic 11g (10.3.6)
Hi, programmers. I'm working with JDBC Modules and Descriptors in my Web Application. At first, NetBeans was creating the datasource file needed to register the database in the server and deploy it. But when i wanted to deploy the WAR file by myself in the server the JDBC Connection wasn't there. It doesn't recognize the JNDI.
I have a XML called "data-source-1-jdbc" which i copied from an old version of the project (NetBeans doesn't create the file nomore, i don't know why) to let Weblogic automatically create the JDBC Datasource, but what should i do to let Weblogic take this jdbc datasource and deploy it with my [Java Web App] ?
I just read this tutorial : http://docs.oracle.com/cd/E15051_01/wls/docs103/jdbc_admin/packagedjdbc.html
There's a tag called "Module" that does what i want. Like this:
<module>
<name> MyFile </name>
<path> {File Path} </path>
</module>
But it is just for the weblogic-application.xml, which is a file used in Enterprise Applications (EAR) not in WAR's. In my Java Web i just have these:
- web.xml
- weblogic.xml
I already tried using the <module>
tag in weblogic.xml but it doesn't work.
All i want is avoid to manually create the connection in the server and instead use that xml as the configuration file when i deploy my application.
So, how do you make this work?