-
Jan 12th, 2010, 01:15 PM
#1
Problem with GA 1.0 Tutorial
I am in the process of learning Roo. I was going through the tutorial section 'Beginning With Roo: The Tutorial' in the 'Spring Roo - Reference Documentation' that was available in the download.
I was successful to the point of adding security... Immediately after doing 'security update' from the STS Roo Shell, an error appears in the STS Marker tab, indicating a problem with the webmvc-config.xml file. The red X also appears by the file.
The error is listed below:
Unexpected exception parsing XML document from file [C:/data/projects/roo-test/pizza/src/main/webapp/WEB-INF/spring/webmvc-config.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'org.springframework.web.servlet.handler.SimpleUrl HandlerMapping#pizza#src/main/webapp/WEB-INF/spring/webmvc-config.xml#20' is defined webmvc-config.xml /pizza/src/main/webapp/WEB-INF/spring Unknown Spring Beans Problem
After 'security setup', I ran the following in the STS Roo shell.
perform package
perform eclipse
Did a refresh in STS
Still had the problem.
Did a clean
Did another refresh in STS
Still had the problem.
So I exited STS, removed .metadata directory, invoked STS, import from existing project.
Still had the problem.
So it doesn't appear to be a state issue with STS.
I expected that Roo should have added a bean for the given class, ...SimpleUrlHandlerMapping. There is no bean with that class name in the file.
Is there a way in Roo to fix this problem. Do I have to add the missing bean manually... If so, it would be helpful to note that in the documentation and it would be helpful to have a listing of the bean definition.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules