Posted By:
Amarender_Reddy
Posted On:
Friday, July 13, 2007 03:56 AM
Hi, I am using Spring injection to connect to the Datasource. I am also using org.apache.log4j.Logger in my application. But it seems like I am missing something in the application which results in either the Spring or loggers to work. Can someone suggest me where the error is? The following is a brief desc of my files: <?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8&qu
More>>
Hi,
I am using Spring injection to connect to the Datasource.
I am also using org.apache.log4j.Logger in my application.
But it seems like I am missing something in the application which results in either the Spring or loggers to work.
Can someone suggest me where the error is? The following is a brief desc of my files:
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
Announcement
log4jConfigLocation
/WEB-INF/conf/log4j.xml
webAppRootKey
D:/Honeywell
contextConfigLocation
/WEB-INF/applicationContext.xml
org.springframework.web.context.ContextLoaderListener
org.springframework.web.util.Log4jConfigListener
context
context
org.springframework.web.context.ContextLoaderServlet
1
context
/context
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
http://java.sun.com/portlet
/WEB-INF/tld/std-portlet.tld
http://java.sun.com/jstl/fmt
/WEB-INF/tld/fmt.tld
ABC Datasource
jdbc/honey123
javax.sql.DataSource
Container
Shareable
With these settings I always see the
ApplicationContext
as null.
Thanks,
Amar