![]() ![]() Same result after modifying the context.xml must be something else going on. ![]() ![]() This seems to be the problem when accessing the same DataSource in code: When I test the connection in Eclipse when creating the DataSource, the ping works. Attached screen shot shows the url correct when created by the wizard. This is the tutorial I used to create the DataSource with the wizard provided by Eclipse:Ĭom.servlet.ServletContainer ĭo I need to modify the context.xml to use this DataSource created with the wizard? I added a resource-ref to the web.xml although the tutorial I was following did not indicate that was necessary. I have created and used a DataSource in Java code that worked using the instructions at. Īt .list(NamingContext.java:370)Īt .list(NamingContext.java:394)Īt .list(SelectorContext.java:352)Īt (InitialContext.java:436)Īt _Utils.MySqlConn(MySql_Utils.java:20)Īt .V1_status.returnDatabaseStatus(V1_status.java:38) However, when I try to use that DataSource programmatically, I get the attached StackTrace ( not allowed to attach StackTrace as it is in a. When I create a DataSource in Eclipse, I can successfully ping the database. MySql: 5.6.17 and using mysql-connector-java-5.1.33-bin.jarĮclipse: Eclipse Java EE IDE for Web Developers Version: Indigo Service Release 2 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |