Thread: [RomaFramework-dev] Exception while starting blog
Brought to you by:
lvca
|
From: Massimiliano L. <kri...@gm...> - 2006-05-16 14:27:45
|
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:8080 16:23:30,485 WARN [Server] EXCEPTION org.mortbay.util.MultiException[org.springframework.beans.factory.BeanDefin= itionStoreException: 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.] =09at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) =09at org.mortbay.util.Container.start(Container.java:72) =09at 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. =09at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un= known Source) =09at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) =09at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) =09at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) =09at org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute(Unkno= wn Source) =09at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValid= ate(Unknown Source) =09at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) =09at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc= e) =09at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen= t(Unknown Source) =09at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent= Dispatcher.dispatch(Unknown Source) =09at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un= known Source) =09at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) =09at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) =09at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) =09at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) =09at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) =09at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) =09at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea= nDefinitions(XmlBeanDefinitionReader.java:161) =09at org.springframework.beans.factory.support.AbstractBeanDefinitionReade= r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125) =09at org.springframework.beans.factory.support.AbstractBeanDefinitionReade= r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141) =09at org.springframework.web.context.support.XmlWebApplicationContext.load= BeanDefinitions(XmlWebApplicationContext.java:126) =09at org.springframework.web.context.support.XmlWebApplicationContext.load= BeanDefinitions(XmlWebApplicationContext.java:94) =09at org.springframework.context.support.AbstractRefreshableApplicationCon= text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) =09at org.springframework.context.support.AbstractApplicationContext.refres= h(AbstractApplicationContext.java:268) =09at org.springframework.web.context.support.AbstractRefreshableWebApplica= tionContext.refresh(AbstractRefreshableWebApplicationContext.java:134) =09at org.springframework.web.context.ContextLoader.createWebApplicationCon= text(ContextLoader.java:230) =09at org.springframework.web.context.ContextLoader.initWebApplicationConte= xt(ContextLoader.java:156) =09at org.springframework.web.context.ContextLoaderListener.contextInitiali= zed(ContextLoaderListener.java:48) =09at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicatio= nContext.java:495) =09at org.mortbay.util.Container.start(Container.java:72) =09at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) =09at org.mortbay.util.Container.start(Container.java:72) =09at org.mortbay.jetty.Server.main(Server.java:460) Maybe something wrong in a xml file? Massimiliano Loconte. |
|
From: Luca G. <l.g...@pr...> - 2006-05-16 14:40:01
|
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 Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 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(Unkno=
wn
> Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
> 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 Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 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 Source)
> 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
>
|
|
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 > |
|
From: Luca G. <l.g...@pr...> - 2006-05-16 15:45:51
|
Yes, @MinitoringField annotation applies to field and getters. @MonitoringAction, instead, is for methods. So you should disable field/getter/setter for MinitoringField.enabled=3D=3Dfalse and all methods for MinitoringAction.enabled=3D=3Dfalse. 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 17:36, Massimiliano Loconte said: > 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 >> ComponentFactory. >> >> Add these lines in applicationContext.xml >> >> <bean abstract=3D"false" autowire=3D"default" >> class=3D"org.romaframework.aspect.view.echo2.component.DefaultComponen= tFactory" >> dependency-check=3D"default" id=3D"ComponentFactory" lazy-init=3D"= default" >> 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 >> alliance) >> http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solutio= n >> >> 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:8080 >> > 16:23:30,485 WARN [Server] EXCEPTION >> > org.mortbay.util.MultiException[org.springframework.beans.factory.Be= anDefinitionStoreException: >> > 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(U= nknown >> > Source) >> > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown >> Source) >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown >> Source) >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown >> Source) >> > at >> > org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute(Unkn= own >> > Source) >> > at >> > org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndVali= date(Unknown >> > Source) >> > at >> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown >> > Source) >> > at >> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown >> > Source) >> > at >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEleme= nt(Unknown >> > Source) >> > at >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConten= tDispatcher.dispatch(Unknown >> > Source) >> > at >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U= nknown >> > Source) >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >> Source) >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >> Source) >> > 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 >> Source) >> > at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) >> > at >> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBe= anDefinitions(XmlBeanDefinitionReader.java:161) >> > at >> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead= er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125) >> > at >> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead= er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141) >> > at >> > org.springframework.web.context.support.XmlWebApplicationContext.loa= dBeanDefinitions(XmlWebApplicationContext.java:126) >> > at >> > org.springframework.web.context.support.XmlWebApplicationContext.loa= dBeanDefinitions(XmlWebApplicationContext.java:94) >> > at >> > org.springframework.context.support.AbstractRefreshableApplicationCo= ntext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) >> > at >> > org.springframework.context.support.AbstractApplicationContext.refre= sh(AbstractApplicationContext.java:268) >> > at >> > org.springframework.web.context.support.AbstractRefreshableWebApplic= ationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) >> > at >> > org.springframework.web.context.ContextLoader.createWebApplicationCo= ntext(ContextLoader.java:230) >> > at >> > org.springframework.web.context.ContextLoader.initWebApplicationCont= ext(ContextLoader.java:156) >> > at >> > org.springframework.web.context.ContextLoaderListener.contextInitial= ized(ContextLoaderListener.java:48) >> > at >> > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicati= onContext.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. |
|
From: Massimiliano L. <kri...@gm...> - 2006-05-16 16:12:44
|
Ok..It's done, now it completely avoids to monitorn unwanted fields
(and their accessors methods) or methods. Last question is: do I have
to read the annotation:
@MonitoringClass(enabled=3DAnnotationConstants.TRUE)?
I tried to read it in the monitorObject method of the
JmxMonitornAspect class in this way:
public void monitorObject(Object iObj) throws MonitoringException {
// REGISTER THE OBJECT PASSED AS PARAMETER INTO THE MBEANSERVER
=09
=09SchemaClass cls =3D ObjectContext.getInstance().getComponent(
=09 SchemaManager.class).getClassInfo(iObj.getClass().getSimpleN=
ame());
=09
=09boolean enabled =3D
(Boolean)cls.getFeature(MonitoringAspect.ASPECT_NAME, "enabled");
=09if(enabled){
=09=09agent.registerMBeans(iObj);
=09}
}
but i get an exception when i click on the create button:
18:07:04,170 INFO [Controller] [Controller.executeAction] Executing
action: create (action:public void
org.romaframework.module.crud.CRUDMain.create() throws
java.lang.SecurityException,java.lang.NoSuchMethodException,java.lang.Illeg=
alArgumentException,java.lang.InstantiationException,java.lang.IllegalAcces=
sException,java.lang.reflect.InvocationTargetException)
on object it.blog2.view.domain.blog.BlogMain@153113d...
18:07:04,170 WARN [Controller] [Controller.executeAction] error on
execution of method: create
java.lang.ClassCastException: java.lang.Byte
=09at org.romaframework.aspect.monitoring.jmx.JmxMonitoringAspect.monitorOb=
ject(JmxMonitoringAspect.java:47)
=09at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:20)
=09at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:24)
=09at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
=09at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
=09at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou=
rce)
........
........
do I have to read it? I think it should have a sense but I wonder why
that class cast exception...
On 5/16/06, Luca Garulli <l.g...@pr...> wrote:
> Yes,
> @MinitoringField annotation applies to field and getters.
> @MonitoringAction, instead, is for methods.
>
> So you should disable field/getter/setter for
> MinitoringField.enabled=3D=3Dfalse and all methods for
> MinitoringAction.enabled=3D=3Dfalse.
>
> 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 17:36, Massimiliano Loconte said:
> > 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
> >> ComponentFactory.
> >>
> >> Add these lines in applicationContext.xml
> >>
> >> <bean abstract=3D"false" autowire=3D"default"
> >> class=3D"org.romaframework.aspect.view.echo2.component.DefaultComponen=
tFactory"
> >> dependency-check=3D"default" id=3D"ComponentFactory" lazy-init=3D"=
default"
> >> 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
> >> alliance)
> >> http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solutio=
n
> >>
> >> 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:8080
> >> > 16:23:30,485 WARN [Server] EXCEPTION
> >> > org.mortbay.util.MultiException[org.springframework.beans.factory.Be=
anDefinitionStoreException:
> >> > 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(U=
nknown
> >> > Source)
> >> > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> >> Source)
> >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> >> Source)
> >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> >> Source)
> >> > at
> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute(Unkn=
own
> >> > Source)
> >> > at
> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndVali=
date(Unknown
> >> > Source)
> >> > at
> >> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
> >> > Source)
> >> > at
> >> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
> >> > Source)
> >> > at
> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEleme=
nt(Unknown
> >> > Source)
> >> > at
> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConten=
tDispatcher.dispatch(Unknown
> >> > Source)
> >> > at
> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U=
nknown
> >> > Source)
> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> >> Source)
> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> >> Source)
> >> > 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
> >> Source)
> >> > at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
> >> > at
> >> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBe=
anDefinitions(XmlBeanDefinitionReader.java:161)
> >> > at
> >> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead=
er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
> >> > at
> >> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead=
er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
> >> > at
> >> > org.springframework.web.context.support.XmlWebApplicationContext.loa=
dBeanDefinitions(XmlWebApplicationContext.java:126)
> >> > at
> >> > org.springframework.web.context.support.XmlWebApplicationContext.loa=
dBeanDefinitions(XmlWebApplicationContext.java:94)
> >> > at
> >> > org.springframework.context.support.AbstractRefreshableApplicationCo=
ntext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
> >> > at
> >> > org.springframework.context.support.AbstractApplicationContext.refre=
sh(AbstractApplicationContext.java:268)
> >> > at
> >> > org.springframework.web.context.support.AbstractRefreshableWebApplic=
ationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
> >> > at
> >> > org.springframework.web.context.ContextLoader.createWebApplicationCo=
ntext(ContextLoader.java:230)
> >> > at
> >> > org.springframework.web.context.ContextLoader.initWebApplicationCont=
ext(ContextLoader.java:156)
> >> > at
> >> > org.springframework.web.context.ContextLoaderListener.contextInitial=
ized(ContextLoaderListener.java:48)
> >> > at
> >> > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicati=
onContext.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, 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
>
|
|
From: Luca G. <l.g...@pr...> - 2006-05-16 16:58:31
|
Hi Massimiliano, it's better to use MonitoringFeatures.ENABLED constant instead of "enabled" directly. Please replace it in all sources. For the problem you've signaled...I resolved on the fly (revision 200)...it was a bug. Now should works ;-) However...Good work Massimiliano! I hope to include the Monitoring Aspect in the next DEMO and, surely, in a next TUTORIAL ;-) Mhmhm... Rather...Do you want to write it yourself? :-D 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 18:12, Massimiliano Loconte said: > Ok..It's done, now it completely avoids to monitorn unwanted fields > (and their accessors methods) or methods. Last question is: do I have > to read the annotation: > > @MonitoringClass(enabled=3DAnnotationConstants.TRUE)? > > I tried to read it in the monitorObject method of the > JmxMonitornAspect class in this way: > > public void monitorObject(Object iObj) throws MonitoringException { > > // REGISTER THE OBJECT PASSED AS PARAMETER INTO THE MBEANSERVER > > SchemaClass cls =3D ObjectContext.getInstance().getComponent( > SchemaManager.class).getClassInfo(iObj.getClass().getSimpl= eName()); > > boolean enabled (Boolean)cls.getFeature(MonitoringAspect.ASPECT_NAME, > "enabled"); > > if(enabled){ > agent.registerMBeans(iObj); > } > } > > but i get an exception when i click on the create button: > > 18:07:04,170 INFO [Controller] [Controller.executeAction] Executing > action: create (action:public void > org.romaframework.module.crud.CRUDMain.create() throws > java.lang.SecurityException,java.lang.NoSuchMethodException,java.lang.I= llegalArgumentException,java.lang.InstantiationException,java.lang.Illega= lAccessException,java.lang.reflect.InvocationTargetException) > on object it.blog2.view.domain.blog.BlogMain@153113d... > 18:07:04,170 WARN [Controller] [Controller.executeAction] error on > execution of method: create > java.lang.ClassCastException: java.lang.Byte > at > org.romaframework.aspect.monitoring.jmx.JmxMonitoringAspect.monitorObje= ct(JmxMonitoringAspect.java:47) > at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:20) > at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:24) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Metho= d) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Sourc= e) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown > Source) > ........ > ........ > > do I have to read it? I think it should have a sense but I wonder why > that class cast exception... > > > On 5/16/06, Luca Garulli <l.g...@pr...> wrote: >> Yes, >> @MinitoringField annotation applies to field and getters. >> @MonitoringAction, instead, is for methods. >> >> So you should disable field/getter/setter for >> MinitoringField.enabled=3D=3Dfalse and all methods for >> MinitoringAction.enabled=3D=3Dfalse. >> >> 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 >> alliance) >> http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solutio= n >> >> On Tue, May 16, 2006 17:36, Massimiliano Loconte said: >> > 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 hi= s >> > 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 >> >> ComponentFactory. >> >> >> >> Add these lines in applicationContext.xml >> >> >> >> <bean abstract=3D"false" autowire=3D"default" >> >> class=3D"org.romaframework.aspect.view.echo2.component.DefaultCompo= nentFactory" >> >> dependency-check=3D"default" id=3D"ComponentFactory" >> lazy-init=3D"default" >> >> singleton=3D"true"> >> >> </bean> >> >> >> >> bye, >> >> Luca Garulli >> >> Blogging on: http://zion-city.blogspot.com >> >> http://www.RomaFramework.org - The new way to build Java applicatio= ns >> >> http://www.Pro-Netics.com (member of Orixo.com - The XML business >> >> alliance) >> >> 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 g= et >> >> > the following exception: >> >> > >> >> > 16:23:30,485 INFO [SocketListener] Started SocketListener on >> >> 0.0.0.0:8080 >> >> > 16:23:30,485 WARN [Server] EXCEPTION >> >> > org.mortbay.util.MultiException[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.] >> >> > 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.createSAXParseExceptio= n(Unknown >> >> > Source) >> >> > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown >> >> Source) >> >> > at >> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown >> >> Source) >> >> > at >> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown >> >> Source) >> >> > at >> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute(U= nknown >> >> > Source) >> >> > at >> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndV= alidate(Unknown >> >> > Source) >> >> > at >> >> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unkno= wn >> >> > Source) >> >> > at >> >> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown >> >> > Source) >> >> > at >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEl= ement(Unknown >> >> > Source) >> >> > at >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCon= tentDispatcher.dispatch(Unknown >> >> > Source) >> >> > at >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocumen= t(Unknown >> >> > Source) >> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unkno= wn >> >> Source) >> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unkno= wn >> >> Source) >> >> > 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 >> >> Source) >> >> > at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) >> >> > at >> >> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loa= dBeanDefinitions(XmlBeanDefinitionReader.java:161) >> >> > at >> >> > org.springframework.beans.factory.support.AbstractBeanDefinitionR= eader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125) >> >> > at >> >> > org.springframework.beans.factory.support.AbstractBeanDefinitionR= eader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141) >> >> > at >> >> > org.springframework.web.context.support.XmlWebApplicationContext.= loadBeanDefinitions(XmlWebApplicationContext.java:126) >> >> > at >> >> > org.springframework.web.context.support.XmlWebApplicationContext.= loadBeanDefinitions(XmlWebApplicationContext.java:94) >> >> > at >> >> > org.springframework.context.support.AbstractRefreshableApplicatio= nContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89= ) >> >> > at >> >> > org.springframework.context.support.AbstractApplicationContext.re= fresh(AbstractApplicationContext.java:268) >> >> > at >> >> > org.springframework.web.context.support.AbstractRefreshableWebApp= licationContext.refresh(AbstractRefreshableWebApplicationContext.java:134= ) >> >> > at >> >> > org.springframework.web.context.ContextLoader.createWebApplicatio= nContext(ContextLoader.java:230) >> >> > at >> >> > org.springframework.web.context.ContextLoader.initWebApplicationC= ontext(ContextLoader.java:156) >> >> > at >> >> > org.springframework.web.context.ContextLoaderListener.contextInit= ialized(ContextLoaderListener.java:48) >> >> > at >> >> > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplic= ationContext.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. >> |
|
From: Massimiliano L. <kri...@gm...> - 2006-05-16 17:16:42
|
You mean something like: boolean enabled =3D (Boolean)cls.getFeature(MonitoringAspect.ASPECT_NAME,MonitoringFeatures.ENA= BLED); ? For the tutorial, yeah i could write myself...you have to give me directives first ^^ Massimiliano. On 5/16/06, Luca Garulli <l.g...@pr...> wrote: > Hi Massimiliano, > it's better to use MonitoringFeatures.ENABLED constant instead of > "enabled" directly. Please replace it in all sources. > > For the problem you've signaled...I resolved on the fly (revision > 200)...it was a bug. > > Now should works ;-) > > However...Good work Massimiliano! I hope to include the Monitoring Aspect > in the next DEMO and, surely, in a next TUTORIAL ;-) > > Mhmhm... Rather...Do you want to write it yourself? :-D > > 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 18:12, Massimiliano Loconte said: > > Ok..It's done, now it completely avoids to monitorn unwanted fields > > (and their accessors methods) or methods. Last question is: do I have > > to read the annotation: > > > > @MonitoringClass(enabled=3DAnnotationConstants.TRUE)? > > > > I tried to read it in the monitorObject method of the > > JmxMonitornAspect class in this way: > > > > public void monitorObject(Object iObj) throws MonitoringException { > > > > // REGISTER THE OBJECT PASSED AS PARAMETER INTO THE MBEANSERVER > > > > SchemaClass cls =3D ObjectContext.getInstance().getComponent( > > SchemaManager.class).getClassInfo(iObj.getClass().get= SimpleName()); > > > > boolean enabled (Boolean)cls.getFeature(MonitoringAspect.ASPECT_N= AME, > > "enabled"); > > > > if(enabled){ > > agent.registerMBeans(iObj); > > } > > } > > > > but i get an exception when i click on the create button: > > > > 18:07:04,170 INFO [Controller] [Controller.executeAction] Executing > > action: create (action:public void > > org.romaframework.module.crud.CRUDMain.create() throws > > java.lang.SecurityException,java.lang.NoSuchMethodException,java.lang.I= llegalArgumentException,java.lang.InstantiationException,java.lang.IllegalA= ccessException,java.lang.reflect.InvocationTargetException) > > on object it.blog2.view.domain.blog.BlogMain@153113d... > > 18:07:04,170 WARN [Controller] [Controller.executeAction] error on > > execution of method: create > > java.lang.ClassCastException: java.lang.Byte > > at > > org.romaframework.aspect.monitoring.jmx.JmxMonitoringAspect.monitorObje= ct(JmxMonitoringAspect.java:47) > > at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:20= ) > > at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:24= ) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native = Method) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown = Source) > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unkn= own > > Source) > > ........ > > ........ > > > > do I have to read it? I think it should have a sense but I wonder why > > that class cast exception... > > > > > > On 5/16/06, Luca Garulli <l.g...@pr...> wrote: > >> Yes, > >> @MinitoringField annotation applies to field and getters. > >> @MonitoringAction, instead, is for methods. > >> > >> So you should disable field/getter/setter for > >> MinitoringField.enabled=3D=3Dfalse and all methods for > >> MinitoringAction.enabled=3D=3Dfalse. > >> > >> 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 > >> alliance) > >> http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solutio= n > >> > >> On Tue, May 16, 2006 17:36, Massimiliano Loconte said: > >> > 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 hi= s > >> > 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 > >> >> ComponentFactory. > >> >> > >> >> Add these lines in applicationContext.xml > >> >> > >> >> <bean abstract=3D"false" autowire=3D"default" > >> >> class=3D"org.romaframework.aspect.view.echo2.component.DefaultCompo= nentFactory" > >> >> dependency-check=3D"default" id=3D"ComponentFactory" > >> lazy-init=3D"default" > >> >> singleton=3D"true"> > >> >> </bean> > >> >> > >> >> bye, > >> >> Luca Garulli > >> >> Blogging on: http://zion-city.blogspot.com > >> >> http://www.RomaFramework.org - The new way to build Java applicatio= ns > >> >> http://www.Pro-Netics.com (member of Orixo.com - The XML business > >> >> alliance) > >> >> 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 g= et > >> >> > the following exception: > >> >> > > >> >> > 16:23:30,485 INFO [SocketListener] Started SocketListener on > >> >> 0.0.0.0:8080 > >> >> > 16:23:30,485 WARN [Server] EXCEPTION > >> >> > org.mortbay.util.MultiException[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.] > >> >> > 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.createSAXParseExceptio= n(Unknown > >> >> > Source) > >> >> > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown > >> >> Source) > >> >> > at > >> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > >> >> Source) > >> >> > at > >> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > >> >> Source) > >> >> > at > >> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute(U= nknown > >> >> > Source) > >> >> > at > >> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndV= alidate(Unknown > >> >> > Source) > >> >> > at > >> >> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unkno= wn > >> >> > Source) > >> >> > at > >> >> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown > >> >> > Source) > >> >> > at > >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEl= ement(Unknown > >> >> > Source) > >> >> > at > >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCon= tentDispatcher.dispatch(Unknown > >> >> > Source) > >> >> > at > >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocumen= t(Unknown > >> >> > Source) > >> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unkno= wn > >> >> Source) > >> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unkno= wn > >> >> Source) > >> >> > 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 > >> >> Source) > >> >> > at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) > >> >> > at > >> >> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loa= dBeanDefinitions(XmlBeanDefinitionReader.java:161) > >> >> > at > >> >> > org.springframework.beans.factory.support.AbstractBeanDefinitionR= eader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125) > >> >> > at > >> >> > org.springframework.beans.factory.support.AbstractBeanDefinitionR= eader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141) > >> >> > at > >> >> > org.springframework.web.context.support.XmlWebApplicationContext.= loadBeanDefinitions(XmlWebApplicationContext.java:126) > >> >> > at > >> >> > org.springframework.web.context.support.XmlWebApplicationContext.= loadBeanDefinitions(XmlWebApplicationContext.java:94) > >> >> > at > >> >> > org.springframework.context.support.AbstractRefreshableApplicatio= nContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) > >> >> > at > >> >> > org.springframework.context.support.AbstractApplicationContext.re= fresh(AbstractApplicationContext.java:268) > >> >> > at > >> >> > org.springframework.web.context.support.AbstractRefreshableWebApp= licationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) > >> >> > at > >> >> > org.springframework.web.context.ContextLoader.createWebApplicatio= nContext(ContextLoader.java:230) > >> >> > at > >> >> > org.springframework.web.context.ContextLoader.initWebApplicationC= ontext(ContextLoader.java:156) > >> >> > at > >> >> > org.springframework.web.context.ContextLoaderListener.contextInit= ialized(ContextLoaderListener.java:48) > >> >> > at > >> >> > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplic= ationContext.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, 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 > |
|
From: Massimiliano L. <kri...@gm...> - 2006-05-16 17:27:52
|
Ok now everything works!! ;) If i put @MonitoringClass(enabled=3DAnnotationConstants.FALSE) the object is completely ignored by monitoring ^^ (I'm happy...seems like i finished) Massimiliano. On 5/16/06, Massimiliano Loconte <kri...@gm...> wrote: > You mean something like: > > boolean enabled =3D > (Boolean)cls.getFeature(MonitoringAspect.ASPECT_NAME,MonitoringFeatures.E= NABLED); > ? > > For the tutorial, yeah i could write myself...you have to give me > directives first ^^ > > Massimiliano. > > On 5/16/06, Luca Garulli <l.g...@pr...> wrote: > > Hi Massimiliano, > > it's better to use MonitoringFeatures.ENABLED constant instead of > > "enabled" directly. Please replace it in all sources. > > > > For the problem you've signaled...I resolved on the fly (revision > > 200)...it was a bug. > > > > Now should works ;-) > > > > However...Good work Massimiliano! I hope to include the Monitoring Aspe= ct > > in the next DEMO and, surely, in a next TUTORIAL ;-) > > > > Mhmhm... Rather...Do you want to write it yourself? :-D > > > > 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 allia= nce) > > http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solution > > > > On Tue, May 16, 2006 18:12, Massimiliano Loconte said: > > > Ok..It's done, now it completely avoids to monitorn unwanted fields > > > (and their accessors methods) or methods. Last question is: do I have > > > to read the annotation: > > > > > > @MonitoringClass(enabled=3DAnnotationConstants.TRUE)? > > > > > > I tried to read it in the monitorObject method of the > > > JmxMonitornAspect class in this way: > > > > > > public void monitorObject(Object iObj) throws MonitoringException { > > > > > > // REGISTER THE OBJECT PASSED AS PARAMETER INTO THE MBEANSERVER > > > > > > SchemaClass cls =3D ObjectContext.getInstance().getComponent( > > > SchemaManager.class).getClassInfo(iObj.getClass().g= etSimpleName()); > > > > > > boolean enabled (Boolean)cls.getFeature(MonitoringAspect.ASPECT= _NAME, > > > "enabled"); > > > > > > if(enabled){ > > > agent.registerMBeans(iObj); > > > } > > > } > > > > > > but i get an exception when i click on the create button: > > > > > > 18:07:04,170 INFO [Controller] [Controller.executeAction] Executing > > > action: create (action:public void > > > org.romaframework.module.crud.CRUDMain.create() throws > > > java.lang.SecurityException,java.lang.NoSuchMethodException,java.lang= .IllegalArgumentException,java.lang.InstantiationException,java.lang.Illega= lAccessException,java.lang.reflect.InvocationTargetException) > > > on object it.blog2.view.domain.blog.BlogMain@153113d... > > > 18:07:04,170 WARN [Controller] [Controller.executeAction] error on > > > execution of method: create > > > java.lang.ClassCastException: java.lang.Byte > > > at > > > org.romaframework.aspect.monitoring.jmx.JmxMonitoringAspect.monitorOb= ject(JmxMonitoringAspect.java:47) > > > at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:= 20) > > > at it.blog2.view.domain.blog.BlogCreate.<init>(BlogCreate.java:= 24) > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ= e Method) > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow= n Source) > > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un= known > > > Source) > > > ........ > > > ........ > > > > > > do I have to read it? I think it should have a sense but I wonder why > > > that class cast exception... > > > > > > > > > On 5/16/06, Luca Garulli <l.g...@pr...> wrote: > > >> Yes, > > >> @MinitoringField annotation applies to field and getters. > > >> @MonitoringAction, instead, is for methods. > > >> > > >> So you should disable field/getter/setter for > > >> MinitoringField.enabled=3D=3Dfalse and all methods for > > >> MinitoringAction.enabled=3D=3Dfalse. > > >> > > >> bye, > > >> Luca Garulli > > >> Blogging on: http://zion-city.blogspot.com > > >> http://www.RomaFramework.org - The new way to build Java application= s > > >> http://www.Pro-Netics.com (member of Orixo.com - The XML business > > >> alliance) > > >> http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solut= ion > > >> > > >> On Tue, May 16, 2006 17:36, Massimiliano Loconte said: > > >> > 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 > > >> >> ComponentFactory. > > >> >> > > >> >> Add these lines in applicationContext.xml > > >> >> > > >> >> <bean abstract=3D"false" autowire=3D"default" > > >> >> class=3D"org.romaframework.aspect.view.echo2.component.DefaultCom= ponentFactory" > > >> >> dependency-check=3D"default" id=3D"ComponentFactory" > > >> lazy-init=3D"default" > > >> >> singleton=3D"true"> > > >> >> </bean> > > >> >> > > >> >> bye, > > >> >> Luca Garulli > > >> >> Blogging on: http://zion-city.blogspot.com > > >> >> http://www.RomaFramework.org - The new way to build Java applicat= ions > > >> >> http://www.Pro-Netics.com (member of Orixo.com - The XML business > > >> >> alliance) > > >> >> 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:8080 > > >> >> > 16:23:30,485 WARN [Server] EXCEPTION > > >> >> > org.mortbay.util.MultiException[org.springframework.beans.facto= ry.BeanDefinitionStoreException: > > >> >> > Line 134 in XML document from ServletContext resource > > >> >> > [/WEB-INF/applicationContext.xml] is invalid; nested exception = is > > >> >> > org.xml.sax.SAXParseException: Attribute value "ComponentFactor= y" > > >> of > > >> >> > type ID must be unique within the document.] > > >> >> > at org.mortbay.http.HttpServer.doStart(HttpServer.java:68= 6) > > >> >> > 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 "ComponentFactor= y" > > >> of > > >> >> > type ID must be unique within the document. > > >> >> > org.xml.sax.SAXParseException: Attribute value "ComponentFactor= y" > > >> of > > >> >> > type ID must be unique within the document. > > >> >> > at > > >> >> > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcept= ion(Unknown > > >> >> > Source) > > >> >> > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unkno= wn > > >> >> Source) > > >> >> > at > > >> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > >> >> Source) > > >> >> > at > > >> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > >> >> Source) > > >> >> > at > > >> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute= (Unknown > > >> >> > Source) > > >> >> > at > > >> >> > org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAn= dValidate(Unknown > > >> >> > Source) > > >> >> > at > > >> >> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unk= nown > > >> >> > Source) > > >> >> > at > > >> >> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown > > >> >> > Source) > > >> >> > at > > >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStart= Element(Unknown > > >> >> > Source) > > >> >> > at > > >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentC= ontentDispatcher.dispatch(Unknown > > >> >> > Source) > > >> >> > at > > >> >> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocum= ent(Unknown > > >> >> > Source) > > >> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unk= nown > > >> >> Source) > > >> >> > at org.apache.xerces.parsers.XML11Configuration.parse(Unk= nown > > >> >> Source) > > >> >> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Sour= ce) > > >> >> > at org.apache.xerces.parsers.DOMParser.parse(Unknown Sour= ce) > > >> >> > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unkno= wn > > >> >> Source) > > >> >> > at javax.xml.parsers.DocumentBuilder.parse(Unknown Source= ) > > >> >> > at > > >> >> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.l= oadBeanDefinitions(XmlBeanDefinitionReader.java:161) > > >> >> > at > > >> >> > org.springframework.beans.factory.support.AbstractBeanDefinitio= nReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125) > > >> >> > at > > >> >> > org.springframework.beans.factory.support.AbstractBeanDefinitio= nReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141) > > >> >> > at > > >> >> > org.springframework.web.context.support.XmlWebApplicationContex= t.loadBeanDefinitions(XmlWebApplicationContext.java:126) > > >> >> > at > > >> >> > org.springframework.web.context.support.XmlWebApplicationContex= t.loadBeanDefinitions(XmlWebApplicationContext.java:94) > > >> >> > at > > >> >> > org.springframework.context.support.AbstractRefreshableApplicat= ionContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89= ) > > >> >> > at > > >> >> > org.springframework.context.support.AbstractApplicationContext.= refresh(AbstractApplicationContext.java:268) > > >> >> > at > > >> >> > org.springframework.web.context.support.AbstractRefreshableWebA= pplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134= ) > > >> >> > at > > >> >> > org.springframework.web.context.ContextLoader.createWebApplicat= ionContext(ContextLoader.java:230) > > >> >> > at > > >> >> > org.springframework.web.context.ContextLoader.initWebApplicatio= nContext(ContextLoader.java:156) > > >> >> > at > > >> >> > org.springframework.web.context.ContextLoaderListener.contextIn= itialized(ContextLoaderListener.java:48) > > >> >> > at > > >> >> > org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebAppl= icationContext.java:495) > > >> >> > at org.mortbay.util.Container.start(Container.java:72) > > >> >> > at org.mortbay.http.HttpServer.doStart(HttpServer.java:70= 8) > > >> >> > 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?cmdlnk&kid=120709&bid&3057&dat=121642 > > _______________________________________________ > > RomaFramework-development mailing list > > Rom...@li... > > https://lists.sourceforge.net/lists/listinfo/romaframework-development > > > |
|
From: Valerio De C. <val...@gm...> - 2006-05-16 19:15:15
|
MjAwNi81LzE2LCBNYXNzaW1pbGlhbm8gTG9jb250ZSA8a3Jpc2FvcmVAZ21haWwuY29tPjoKPgo+ IE9rIG5vdyBldmVyeXRoaW5nIHdvcmtzISEgOykKCgpIaSBNYXNzaW1pbGlhbm8sCkkgd2lsbCBo ZWxwIHlvdSB3aXRoIHRoZSBKTVgtY29kZSBtYW50YWluaW5nIChzdWNoIHdyaXRlIGNvbW1lbnRz LCBqYXZhZG9jcwpjb21tZW50ZXMsIGV0Yy4uLikKCkhvd2V2ZXIgSSBuZWVkIGEgcmFwaWQgZXhw bGFuYXRpb24gYWJvdXQgaG93IHRoaXMgbW9kdWxlIHdvcmtzISA7KQoKU28gd2UgY2FuIGZvcm1h bGl6ZSB0aGUgY29tbWVudHMsIGFuZCB3cml0ZSBUT0RPcyBhbmQgQlVHRklYIHJlcXVlc3RzLi4u ISA7KQoKQ2hlZXJzLApWYWxlcmlvCgotLSAKIlRvIGVyciBpcyBodW1hbiwgYnV0IGZvciBhIHJl YWwgZGlzYXN0ZXIgeW91IG5lZWQgYSBjb21wdXRlci4iCgpodHRwOi8vdmFsZXJpby5kZWNhcm9s aXMuZ29vZ2xlcGFnZXMuY29tCnZhbGVyaW8uZGVjYXJvbGlzQGdtYWlsLmNvbQo= |
|
From: Massimiliano L. <kri...@gm...> - 2006-05-16 19:23:01
|
Hi Valerio, I have already commented something, also javadocs and so on, I didn't understand what you want me to help with :) Sorry but I'm not yet fully integrated in complex software developing. This one with Roma was my first try. (It'll be my thesis at the university.= ) See ya Massimiliano On 5/16/06, Valerio De Carolis <val...@gm...> wrote: > 2006/5/16, Massimiliano Loconte <kri...@gm...>: > > Ok now everything works!! ;) > > Hi Massimiliano, > I will help you with the JMX-code mantaining (such write comments, javado= cs > commentes, etc...) > > However I need a rapid explanation about how this module works! ;) > > So we can formalize the comments, and write TODOs and BUGFIX requests...!= ;) > > Cheers, > Valerio > > -- > "To err is human, but for a real disaster you need a computer." > > http://valerio.decarolis.googlepages.com > val...@gm... |
|
From: Valerio De C. <val...@gm...> - 2006-05-16 19:48:49
|
MjAwNi81LzE2LCBNYXNzaW1pbGlhbm8gTG9jb250ZSA8a3Jpc2FvcmVAZ21haWwuY29tPjoKPgo+ IEhpIFZhbGVyaW8sCj4KPiBJIGhhdmUgYWxyZWFkeSBjb21tZW50ZWQgc29tZXRoaW5nLCBhbHNv IGphdmFkb2NzIGFuZCBzbyBvbiwgSSBkaWRuJ3QKPiB1bmRlcnN0YW5kIHdoYXQgeW91IHdhbnQg bWUgdG8gaGVscCB3aXRoIDopCgoKT3BzLCBzb3JyeSBNYXggYnV0IEkgdXBkYXRlZCB0aGUgc291 cmNlcyBvbmx5IHRoaXMgZXZlbmluZy4uCgpTb3JyeSBidXQgSSdtIG5vdCB5ZXQgZnVsbHkgaW50 ZWdyYXRlZCBpbiBjb21wbGV4IHNvZnR3YXJlIGRldmVsb3BpbmcuCj4gVGhpcyBvbmUgd2l0aCBS b21hIHdhcyBteSBmaXJzdCB0cnkuIChJdCdsbCBiZSBteSB0aGVzaXMgYXQgdGhlCj4gdW5pdmVy c2l0eS4pCgoKRG9uJ3Qgd29ycnksIEknbSBub3QgYXQgdW5pdmVyaXNpdHksIGhvd2V2ZXIgdGhl IGNvbW1lbnRzIHlvdSBhZGRlZCBhcmUgZ29vZAphbmQgZXhwbGFpbiBob3cgdGhlIG1ldGhvZHMg d29ya3MuLi4KCkp1c3QgYSBxdWVzdGlvbiwgdGhlIEpNWCBhc3BlY3QgcHJvdmlkZSB0aGUgY2xh c3NpYyBKTVggaW50ZWZhY2Ugd2hpY2ggY2FuCmJlIHZpZXdlZCB3aXRoIGFueSBKTVgtY2xpZW50 PwoKCj4gU2VlIHlhCgoKVmFsZXJpbwoKLS0gCiJUbyBlcnIgaXMgaHVtYW4sIGJ1dCBmb3IgYSBy ZWFsIGRpc2FzdGVyIHlvdSBuZWVkIGEgY29tcHV0ZXIuIgoKaHR0cDovL3ZhbGVyaW8uZGVjYXJv bGlzLmdvb2dsZXBhZ2VzLmNvbQp2YWxlcmlvLmRlY2Fyb2xpc0BnbWFpbC5jb20K |
|
From: Massimiliano L. <kri...@gm...> - 2006-05-16 19:58:15
|
The Jmx aspect provides a html adaptor (I chose the one from the open source project MX4J) allowing the interaction with the exposed MBeans. You can choose to start it or not just changing a flag in the MonitoringAspect class. Hope I've answered to your question adequatetly Massimiliano :) On 5/16/06, Valerio De Carolis <val...@gm...> wrote: > 2006/5/16, Massimiliano Loconte <kri...@gm...>: > > > Hi Valerio, > > > > I have already commented something, also javadocs and so on, I didn't > > understand what you want me to help with :) > > > Ops, sorry Max but I updated the sources only this evening.. > > > Sorry but I'm not yet fully integrated in complex software developing. > > This one with Roma was my first try. (It'll be my thesis at the > university.) > > > Don't worry, I'm not at univerisity, however the comments you added are g= ood > and explain how the methods works... > > Just a question, the JMX aspect provide the classic JMX inteface which ca= n > be viewed with any JMX-client? > > > See ya > > Valerio > > > -- > "To err is human, but for a real disaster you need a computer." > > http://valerio.decarolis.googlepages.com > val...@gm... |