Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
Manish S.
Manish Sridharan wrote:Quite agree JNDI would be a better way to go for it. Perhaps you can have a look on this link :Configure JNDI with Spring
Thanks,
Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
Manish S.
Manish Sridharan wrote:Just had a glance on the stack trace. it seems either jndi is not initialized properly or it has not retrieved properly in the application. You can try following things to check that.
1. Try changing to
I think forward slash might not be required.
2. Create simple main class and try to get datasource object directly from jndi. Try with runtime debugging, it will give lot more information on the jndi.
Another important thing, please initialize log4j properties file and set it to debug level for spring classes. this will give you more logging information where in spring it has failed.
I generally attached the spring source code while debugging to see where the application is failing.
Thanks
Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
Manish S.