Re: [RomaFramework-dev] Exception while starting blog
Brought to you by:
lvca
|
From: Massimiliano L. <kri...@gm...> - 2006-05-16 15:36:29
|
Ok..i tested the monitoring setting one field with the annotation: @MonitoringField(enabled=3DAnnotationConstants.FALSE) and works...that attribute is ignored as espected. I have a question, do you think i can generalize saying that once I don't want an attribute to be monitorable i don't want to monitor his getter and setter methods as well(whether it has any)? On 5/16/06, Luca Garulli <l.g...@pr...> wrote: > Yes, > the version of "blog2" project you have doesn't declare the ComponentFact= ory. > > Add these lines in applicationContext.xml > > <bean abstract=3D"false" autowire=3D"default" > class=3D"org.romaframework.aspect.view.echo2.component.DefaultComponentFa= ctory" > dependency-check=3D"default" id=3D"ComponentFactory" lazy-init=3D"def= ault" > singleton=3D"true"> > </bean> > > bye, > Luca Garulli > Blogging on: http://zion-city.blogspot.com > http://www.RomaFramework.org - The new way to build Java applications > http://www.Pro-Netics.com (member of Orixo.com - The XML business allianc= e) > http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solution > > On Tue, May 16, 2006 16:27, Massimiliano Loconte said: > > Hi, Luca i've just updated svn an recompiled with ant install, after > > refreshing in eclipse and starting the blog2 test application i get > > the following exception: > > > > 16:23:30,485 INFO [SocketListener] Started SocketListener on 0.0.0.0:8= 080 > > 16:23:30,485 WARN [Server] EXCEPTION > > org.mortbay.util.MultiException[org.springframework.beans.factory.BeanD= efinitionStoreException: > > Line 134 in XML document from ServletContext resource > > [/WEB-INF/applicationContext.xml] is invalid; nested exception is > > org.xml.sax.SAXParseException: Attribute value "ComponentFactory" of > > type ID must be unique within the document.] > > at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) > > at org.mortbay.util.Container.start(Container.java:72) > > at org.mortbay.jetty.Server.main(Server.java:460) > > org.springframework.beans.factory.BeanDefinitionStoreException: Line > > 134 in XML document from ServletContext resource > > [/WEB-INF/applicationContext.xml] is invalid; nested exception is > > org.xml.sax.SAXParseException: Attribute value "ComponentFactory" of > > type ID must be unique within the document. > > org.xml.sax.SAXParseException: Attribute value "ComponentFactory" of > > type ID must be unique within the document. > > at > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn= own > > Source) > > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Sourc= e) > > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown So= urce) > > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown So= urce) > > at > > org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute(Unknown > > Source) > > at > > org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidat= e(Unknown > > Source) > > at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(= Unknown > > Source) > > at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknow= n > > Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(= Unknown > > Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi= spatcher.dispatch(Unknown > > Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn= own > > Source) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Sou= rce) > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Sou= rce) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Sourc= e) > > at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) > > at > > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanD= efinitions(XmlBeanDefinitionReader.java:161) > > at > > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.= loadBeanDefinitions(AbstractBeanDefinitionReader.java:125) > > at > > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.= loadBeanDefinitions(AbstractBeanDefinitionReader.java:141) > > at > > org.springframework.web.context.support.XmlWebApplicationContext.loadBe= anDefinitions(XmlWebApplicationContext.java:126) > > at > > org.springframework.web.context.support.XmlWebApplicationContext.loadBe= anDefinitions(XmlWebApplicationContext.java:94) > > at > > org.springframework.context.support.AbstractRefreshableApplicationConte= xt.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) > > at > > org.springframework.context.support.AbstractApplicationContext.refresh(= AbstractApplicationContext.java:268) > > at > > org.springframework.web.context.support.AbstractRefreshableWebApplicati= onContext.refresh(AbstractRefreshableWebApplicationContext.java:134) > > at > > org.springframework.web.context.ContextLoader.createWebApplicationConte= xt(ContextLoader.java:230) > > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext= (ContextLoader.java:156) > > at > > org.springframework.web.context.ContextLoaderListener.contextInitialize= d(ContextLoaderListener.java:48) > > at > > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationC= ontext.java:495) > > at org.mortbay.util.Container.start(Container.java:72) > > at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) > > at org.mortbay.util.Container.start(Container.java:72) > > at org.mortbay.jetty.Server.main(Server.java:460) > > > > > > Maybe something wrong in a xml file? > > > > Massimiliano Loconte. > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, securit= y? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=12164= 2 > > _______________________________________________ > > RomaFramework-development mailing list > > Rom...@li... > > https://lists.sourceforge.net/lists/listinfo/romaframework-development > > > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > RomaFramework-development mailing list > Rom...@li... > https://lists.sourceforge.net/lists/listinfo/romaframework-development > |