I have installed oracle 11gXE and through cmd prompt i got connected to database.

In the configuration.xml file I gave the following code.
<bean id="dataSource"...