Announcement Announcement Module
Collapse
No announcement yet.
Newbie problem with security setup. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Newbie problem with security setup.

    Hi,

    I have started to learn the Spring Roo and almost went through the http://static.springsource.org/sprin...beginning.html tutorial, but I failed at security setup command. I checked the topic http://forum.springsource.org/showth...A-1-0-Tutorial, but it seems I have some another error and it didn't help me.

    After typing security setup and hit ENTER I got the error:

    Updating status for VMware vFabric tc Server Developer Edition v2.7... has encountered a problem.
    An internal error occurred during: "Updating status for VMware vFabric tc Server Developer Edition v2.7...".
    java.lang.IndexOutOfBoundsException
    and when I use Run on Server I have in the console:
    Code:
    INFO: Initializing Spring root WebApplicationContext
    2012-10-02 10:38:29,153 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
    org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
    Offending resource: file [C:\Users\JTOPOLSKI\Desktop\spring-tool-suite-3.0.0.RELEASE-e4.2-win32-x86_64\springsource\vfabric-tc-server-developer-2.7.1.RELEASE\spring-insight-instance\wtpwebapps\pizza\WEB-INF\classes\META-INF\spring\applicationContext-security.xml]
    
    	at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
    	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
    	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1416)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1409)
    //... needed to shorten my post
    paź 02, 2012 10:38:29 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
    Offending resource: file [C:\Users\JTOPOLSKI\Desktop\spring-tool-suite-3.0.0.RELEASE-e4.2-win32-x86_64\springsource\vfabric-tc-server-developer-2.7.1.RELEASE\spring-insight-instance\wtpwebapps\pizza\WEB-INF\classes\META-INF\spring\applicationContext-security.xml]
    
    	at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
    	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
    	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1416)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1409)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
    	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
    	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
    	//... needed to shorten my post
    paź 02, 2012 10:38:29 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    paź 02, 2012 10:38:29 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/pizza] startup failed due to previous errors
    paź 02, 2012 10:38:29 AM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    paź 02, 2012 10:38:29 AM org.apache.catalina.core.StandardContext listenerStop
    SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
    	at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)
    	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1040)
    	at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)
    	at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:556)
    	at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)
    	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)
    	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
    	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    	//... needed to shorten my post
    INFO: Server startup in 13117 ms
    and the pizzashop doesn't display (404 error). I am using STS 3.0.0 and Spring Roo 1.2.2.

    Thanks.
    Last edited by jajcek; Oct 2nd, 2012, 04:57 AM.

  • #2
    I have noticed that I have some error in pom.xml (but I didn't modify anything there manually). It says:

    ArtifactTransferException: Failure to transfer org.springframework.security:spring-security-acl:jar:3.1.0.RELEASE from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.security:spring-security-acl:jar:3.1.0.RELEASE from/to central (http://repo.maven.apache.org/maven2): C:\Users\JTOPOLSKI\.m2\repository\org\springframew ork\security\spring-security-acl\3.1.0.RELEASE\spring-security-acl-3.1.0.RELEASE.jar.ahc7b7dccb28e634b65 (The system cannot find the file specified)
    Missing artifact org.springframework.security:spring-security-acl:jar:3.1.0.RELEASE

    Comment


    • #3
      Test next:

      Execute

      mvn -U clean compile

      To force update from remote repositories.

      Comment

      Working...
      X