Showing posts with label spring. Show all posts
Showing posts with label spring. Show all posts

Tuesday, January 7, 2014

java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]



Spring Configuration Problem

Below Configuration i have done in web.xml file.  I got exception while starting server. I posted exception following :



      dispatcher
      org.springframework.web.servlet.DispatcherServlet
      1
 

 
      dispatcher
      *.htm
 

 
 
      contextConfigLocation
          /WEB-INF/spring-beans.xml     
 


Exception :

Jan 08, 2014 7:38:06 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet dispatcher
java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]


Solution :

Then i added below in web.xml file. Its worked fine.

 
       
        org.springframework.web.context.ContextLoaderListener
       

 
 

Friday, October 25, 2013

Hibernate Bug Fixes


Hibernate Bug Fixes

 Hi Buddies,

                   I hope you know all posting more variety of hot topics. Now i came up with an idea to share my technical experience with you all. So posting every challenge in separate post is getting difficult. Now i shared one document which i will update frequently that document. Please click the link below.

Saturday, February 4, 2012

hibernate operation ERROR schema does not exist

i did one example in spring,hibernate,postgresql. i created one database and 
schema name is "test". this is the first time i am working with different schema name.
i created hbm.xml and java class file for that database tables. i run the application
everything works fine but when i try to save data to a table is shows an error 
"schema does not exist".
 
 
still now i didnt see these type error and i search more about this.i found one
solution for this. you have to check following  steps are done in your application or
not.
 
 
 
1. check hbm.xml file for correspoding table involved in save transaction whether
the schema name is specified in their or not.
 
eg. 
    
    
 
 
2. check whether below two lines added in your hibernate.cfg.xml file
 
test
create    
 
 
maximum this will work surely.... if anyone found any other solution... post ur comments....