Author | Message |
---|---|
hiran
Posts: 15
|
Posted 15:32 Apr 15, 2011 |
HI, My eclipse got messed up.So I deleted my eclipse and reinstalled again and followed the exact steps .When I am running my project I am getting 404 error.Can anyone please help me.Attached are the screenshots of my error |
hiran
Posts: 15
|
Posted 15:34 Apr 15, 2011 |
While I am running in the browser. I am getting the following error |
ruchabhatt
Posts: 12
|
Posted 15:37 Apr 15, 2011 |
try by deleting csns-data.xml and other 3 csns -- .xml files. |
hiran
Posts: 15
|
Posted 15:42 Apr 15, 2011 |
Hi Rucha Still I am getting the same error can . |
cysun
Posts: 2935
|
Posted 16:01 Apr 15, 2011 |
And refresh the project after deleting those files. |
hiran
Posts: 15
|
Posted 16:03 Apr 15, 2011 |
I refreshed professor still I am getting the same error |
revatiy
Posts: 15
|
Posted 16:05 Apr 15, 2011 |
i) delete whole csns project from eclipse and also from directory hierarchy i.e from your workspace directory. ii)go to svn repository check out the trunk again for csns project. iii) after that go to pgAdmin delete database csns.and then do as following:( try to follow video for these steps) After the project is checked out, create a PostgreSQL database for CSNS, then use the following two SQL scripts under the db folder of the project to populate the database:
Copy build.properties.sample to build.properties, and modify build.properties according to your setup. Create an Ant Builder for the project by right clicking on the project, then select Properties -> Builders -> New -> Ant Builder. In the Builder Properties window,
This is better way instead of deleting eclipse as csns project is messed up but not the eclipse. To check whether eclipse is working , you can create small webTest project. if it works then eclipse is working fine. |
hiran
Posts: 15
|
Posted 16:33 Apr 15, 2011 |
Hi, I did many changes to my repository.Earlier my project was running fine.While I was committing all the changes by mistake i committed everything .So I reverted all the changes then it gave me many errors.So I deleted entire eclipse and created again.Will it cause any problems. |
hiran
Posts: 15
|
Posted 16:38 Apr 15, 2011 |
Hi Revathi, Yes I did all the steps eventhough I am getting the same error |
hiran
Posts: 15
|
Posted 16:46 Apr 15, 2011 |
I deleted csns-*.xml files from WEB-INF folder but it still throws this exception when i am trying to start the server :
SEVERE: Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/${app.name}-data.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [int] for property 'initialSize'; nested exception is java.lang.NumberFormatException: For input string: "${dbcp.initialSize}"
Thanks for the help.
|
revatiy
Posts: 15
|
Posted 16:50 Apr 15, 2011 |
okay..I was getting same errors.In my case I was restarting tomcat server again and again..so it got messed up. Try closing eclipse and restarting it again. do not restart tomcat if it is already started when you run the project. Try it. |
hiran
Posts: 15
|
Posted 16:59 Apr 15, 2011 |
Hi Revathi, I restarted again but still it is giving the same exception Thank you |
hiran
Posts: 15
|
Posted 17:28 Apr 15, 2011 |
Hi Revathi, I deleted my entire project again and created.Now its working fine. Thank you |