Showing posts with label praveenskr89. Show all posts
Showing posts with label praveenskr89. 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
       

 
 

Saturday, October 26, 2013

Java DB Bug Fix







Java Derby Bug Fix
Hi Buddies,
                 I came up through some exception while running Java Derby Database. The exception is as follows,

 Bug 1

Exception in thread "main" java.lang.ExceptionInInitializerError
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:141)
>         at org.apache.derby.impl.tools.ij.util.loadDriver(Unknown Source)
>         at org.apache.derby.impl.tools.ij.util.loadDriverIfKnown(Unknown Source)
>         at org.apache.derby.impl.tools.ij.util.startJBMS(Unknown Source)
>         at org.apache.derby.impl.tools.ij.util.startJBMS(Unknown Source)
>         at org.apache.derby.impl.tools.ij.ConnectionEnv.init(Unknown Source)
>         at org.apache.derby.impl.tools.ij.utilMain.(Unknown Source)
>         at org.apache.derby.impl.tools.ij.utilMain14.(Unknown Source)
>         at org.apache.derby.impl.tools.ij.Main14.getutilMain(Unknown Source)
>         at org.apache.derby.impl.tools.ij.Main.(Unknown Source)
>         at org.apache.derby.impl.tools.ij.Main14.(Unknown Source)
>         at org.apache.derby.impl.tools.ij.Main14.getMain(Unknown Source)
>         at org.apache.derby.impl.tools.ij.Main.mainCore(Unknown Source)
>         at org.apache.derby.impl.tools.ij.Main14.main(Unknown Source)
>         at org.apache.derby.tools.ij.main(Unknown Source)
 
 
Solution :
          While installing JDK7 java derby will also installed and configured. But i explicitly configure different version java derby in class path. That's why the exception thrown. When i deleted class path which i configure explicitly its working fine.
 

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.

Wednesday, November 28, 2012

Thursday, November 8, 2012

How to send any size of files through gmail


   How to send any size of files through gmail?

 

 Steps to follow :

1. Upload the file to Google Drive.
2. After Uploaded, Right click on the uploaded file and goto share and click "Email as attachment" option.
3. one new window will come, there you can specify the recipient email id.


Its very simple and very useful one to all.

 

 



Wednesday, November 7, 2012

SVN Repository Plugin for eclipse


SVN Repository Plugin for eclipse
Hi guys,
yesterday i tried with project locker(online SVN repository). i created one free account and created one project also. i tried to synchronize with my eclipse and online svn. for that i need SVN repository plugin in eclipse. so i tried to install in my eclipse. it tooks too much time and its not installed also. so i downloaded direct plugin from one site and pasted those files in corresponding folders(plugins, features) in eclipse folder. click here to download svn plugin for eclipse http://www.mediafire.com/?ndg89i3csj9xund

java parse error web.xml in tomcat



Java parse error web.xml in tomcat


Hi Guys,

Here i want to share some experience about basic error which we will get frequently.....
I have created one web application using servlet and jsp. And i exported that project into war file and i deployed in tomcat 6.0. the application is not deploying and when i try to run from browser its showing "requested resource not found".... i dont know what thats the problem. i cant figure it out.... after trial and error method, i just came to know i created that project in Servlet3.0 version. so Tomcat 6.0 is not supporting that... thats why i got that error. after i changed into servlet 2.3 version its worked fine.

Saturday, November 3, 2012

How to convert mail to document and store in google drive


How to convert mail to document and store in google drive

Goto Settings --> Labs --> Enable the feature as shown in the below image.

This features will enable one button in each and every mail. So from now you can convert your mail to document and share to anyone. its a great feature.


How to get preview pane in Gmail


How to get preview pane in Gmail :

Goto Setting --> Labs --> Enable feature as shown in the below image.

this feature is very simple and very useful and handy.