From: Steve L. (JIRA) <ji...@sm...> - 2008-02-14 15:50:05
|
[ http://jira.smartfrog.org/jira/browse/SFOS-666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Loughran resolved SFOS-666. --------------------------------- Fix Version/s: 3.12.022 (was: 3.12.x) Compatibility: backwards compatible (was: unknown) Resolution: Fixed marking as fixed; reopen if not > "wrong class found for attribute" error in listener, context and servlet. > ------------------------------------------------------------------------- > > Key: SFOS-666 > URL: http://jira.smartfrog.org/jira/browse/SFOS-666 > Project: SmartFrog > Issue Type: Bug > Components: _service_www > Affects Versions: 3.12.018 > Reporter: Rebeca Campos > Assignee: Steve Loughran > Fix For: 3.12.022 > > > #include "/org/smartfrog/components.sf" > #include "/org/smartfrog/services/jetty/components.sf" > #include "/org/smartfrog/services/www/components.sf" > sfConfig extends Compound{ > jettyhome "/home/rebeca/scratch/jetty"; > > tempdir "/home/rebeca/scratch/jetty/tmp"; > > myServer extends CoreJettyServer{ > jettyhome LAZY PARENT:jettyhome; > } > > myListener extends JettySocketConnector{ > server LAZY PARENT:myServer; > } > > myServlets extends ServletContext{ > resourceBase LAZY PARENT:tempdir; > contextPath "/"; > server LAZY PARENT:myServer; > } > > myServlet extends Servlet{ > name "TestServlet"; > pathSpec "/test/*"; > context LAZY PARENT:myServlets; > contextPath "/test"; > className "com.hp.sup.testBasicApp.http.TestServlet"; > } > } > _____________________________________________________________________________________ > myListener: > * Attribute: applicationServerContextSchema > * Tags: [] > * Value: > LAZY ASSERT {server APPLY {sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement"; > name "server"; > optional false; > binding "anyBinding"; > class "org.smartfrog.sfcore.componentdescription.ComponentDescription"; > }; > absolutePath APPLY {sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement"; > name "absolutePath"; > optional true; > binding "anyBinding"; > class "java.lang.String"; > }; > sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckAssertions"; > } > * Value resolved: > Failed to resolve (applicationServerContextSchema): SmartFrogAssertionResolutionException:: , source: HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myListener, path(120): HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myListener HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myListener , depth: 0, error in schema: wrong class found for attribute 'server', expected: org.smartfrog.sfcore.componentdescription.ComponentDescription, found: org.smartfrog.services.jetty.JettyImpl during phase assertion or schema evaluation or construction > + Value class:class org.smartfrog.sfcore.reference.AssertReference > + Solved Value class:class not found > + StackTrace: > SmartFrogAssertionResolutionException:: , source: HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myListener, path(120): HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myListener HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myListener , depth: 0, error in schema: wrong class found for attribute 'server', expected: org.smartfrog.sfcore.componentdescription.ComponentDescription, found: org.smartfrog.services.jetty.JettyImpl during phase assertion or schema evaluation or construction > at org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement.checkSchemaClass(CheckSchemaElement.java:92) > at org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement.doFunction(CheckSchemaElement.java:205) > at org.smartfrog.sfcore.languages.sf.functions.BaseFunction.doit(BaseFunction.java:61) > at org.smartfrog.sfcore.reference.ApplyReference.resolve(ApplyReference.java:143) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:626) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:594) > at org.smartfrog.sfcore.reference.HereReferencePart.resolve(HereReferencePart.java:164) > at org.smartfrog.sfcore.reference.Reference.resolve(Reference.java:459) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:626) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:594) > at org.smartfrog.sfcore.reference.AssertReference.resolve(AssertReference.java:202) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:337) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:298) > at org.smartfrog.sfcore.reference.HereReferencePart.resolve(HereReferencePart.java:212) > at org.smartfrog.sfcore.reference.Reference.resolve(Reference.java:488) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:337) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:298) > at org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl.sfResolve(RemoteReferenceResolverHelperImpl.java:89) > at org.smartfrog.services.management.DeployTreePanel.sfResolve(DeployTreePanel.java:526) > at org.smartfrog.services.management.DeployTreePanel.resolveAttrib(DeployTreePanel.java:405) > at org.smartfrog.services.management.DeployTreePanel.table_mouseClicked(DeployTreePanel.java:378) > at org.smartfrog.services.management.DeployTreePanel$3.mouseReleased(DeployTreePanel.java:184) > at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232) > at java.awt.Component.processMouseEvent(Component.java:5517) > at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) > at java.awt.Component.processEvent(Component.java:5282) > at java.awt.Container.processEvent(Container.java:1966) > at java.awt.Component.dispatchEventImpl(Component.java:3984) > at java.awt.Container.dispatchEventImpl(Container.java:2024) > at java.awt.Component.dispatchEvent(Component.java:3819) > at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) > at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) > at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) > at java.awt.Container.dispatchEventImpl(Container.java:2010) > at java.awt.Window.dispatchEventImpl(Window.java:1791) > at java.awt.Component.dispatchEvent(Component.java:3819) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > _______________________________________________________________________________________ > myServlets: > * Attribute: applicationServerContextSchema > * Tags: [] > * Value: > LAZY ASSERT {server APPLY {sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement"; > name "server"; > optional false; > binding "anyBinding"; > class "org.smartfrog.sfcore.componentdescription.ComponentDescription"; > }; > absolutePath APPLY {sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement"; > name "absolutePath"; > optional true; > binding "anyBinding"; > class "java.lang.String"; > }; > sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckAssertions"; > } > * Value resolved: > Failed to resolve (applicationServerContextSchema): SmartFrogAssertionResolutionException:: , source: HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlets, path(120): HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlets HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlets , depth: 0, error in schema: wrong class found for attribute 'server', expected: org.smartfrog.sfcore.componentdescription.ComponentDescription, found: org.smartfrog.services.jetty.JettyImpl during phase assertion or schema evaluation or construction > + Value class:class org.smartfrog.sfcore.reference.AssertReference > + Solved Value class:class not found > + StackTrace: > SmartFrogAssertionResolutionException:: , source: HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlets, path(120): HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlets HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlets , depth: 0, error in schema: wrong class found for attribute 'server', expected: org.smartfrog.sfcore.componentdescription.ComponentDescription, found: org.smartfrog.services.jetty.JettyImpl during phase assertion or schema evaluation or construction > at org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement.checkSchemaClass(CheckSchemaElement.java:92) > at org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement.doFunction(CheckSchemaElement.java:205) > at org.smartfrog.sfcore.languages.sf.functions.BaseFunction.doit(BaseFunction.java:61) > at org.smartfrog.sfcore.reference.ApplyReference.resolve(ApplyReference.java:143) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:626) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:594) > at org.smartfrog.sfcore.reference.HereReferencePart.resolve(HereReferencePart.java:164) > at org.smartfrog.sfcore.reference.Reference.resolve(Reference.java:459) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:626) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:594) > at org.smartfrog.sfcore.reference.AssertReference.resolve(AssertReference.java:202) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:337) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:298) > at org.smartfrog.sfcore.reference.HereReferencePart.resolve(HereReferencePart.java:212) > at org.smartfrog.sfcore.reference.Reference.resolve(Reference.java:488) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:337) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:298) > at org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl.sfResolve(RemoteReferenceResolverHelperImpl.java:89) > at org.smartfrog.services.management.DeployTreePanel.sfResolve(DeployTreePanel.java:526) > at org.smartfrog.services.management.DeployTreePanel.resolveAttrib(DeployTreePanel.java:405) > at org.smartfrog.services.management.DeployTreePanel.table_mouseClicked(DeployTreePanel.java:378) > at org.smartfrog.services.management.DeployTreePanel$3.mouseReleased(DeployTreePanel.java:184) > at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232) > at java.awt.Component.processMouseEvent(Component.java:5517) > at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) > at java.awt.Component.processEvent(Component.java:5282) > at java.awt.Container.processEvent(Container.java:1966) > at java.awt.Component.dispatchEventImpl(Component.java:3984) > at java.awt.Container.dispatchEventImpl(Container.java:2024) > at java.awt.Component.dispatchEvent(Component.java:3819) > at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) > at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) > at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) > at java.awt.Container.dispatchEventImpl(Container.java:2010) > at java.awt.Window.dispatchEventImpl(Window.java:1791) > at java.awt.Component.dispatchEvent(Component.java:3819) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > ___________________________________________________________________________________________ > myServlet: > * Attribute: servletContextComponentSchema > * Tags: [] > * Value: > LAZY ASSERT {context APPLY {sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement"; > name "context"; > optional false; > binding "anyBinding"; > class "org.smartfrog.sfcore.componentdescription.ComponentDescription"; > }; > sfFunctionClass "org.smartfrog.sfcore.languages.sf.functions.CheckAssertions"; > } > * Value resolved: > Failed to resolve (servletContextComponentSchema): SmartFrogAssertionResolutionException:: , source: HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlet, path(118): HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlet HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlet , depth: 0, error in schema: wrong class found for attribute 'context', expected: org.smartfrog.sfcore.componentdescription.ComponentDescription, found: org.smartfrog.services.www.context.ServletContextImpl during phase assertion or schema evaluation or construction > + Value class:class org.smartfrog.sfcore.reference.AssertReference > + Solved Value class:class not found > + StackTrace: > SmartFrogAssertionResolutionException:: , source: HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlet, path(118): HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlet HOST blr17c2s3e0.sup.hpl.hp.com:rootProcess:TEST:myServlet , depth: 0, error in schema: wrong class found for attribute 'context', expected: org.smartfrog.sfcore.componentdescription.ComponentDescription, found: org.smartfrog.services.www.context.ServletContextImpl during phase assertion or schema evaluation or construction > at org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement.checkSchemaClass(CheckSchemaElement.java:92) > at org.smartfrog.sfcore.languages.sf.functions.CheckSchemaElement.doFunction(CheckSchemaElement.java:205) > at org.smartfrog.sfcore.languages.sf.functions.BaseFunction.doit(BaseFunction.java:61) > at org.smartfrog.sfcore.reference.ApplyReference.resolve(ApplyReference.java:143) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:626) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:594) > at org.smartfrog.sfcore.reference.HereReferencePart.resolve(HereReferencePart.java:164) > at org.smartfrog.sfcore.reference.Reference.resolve(Reference.java:459) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:626) > at org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfResolve(ComponentDescriptionImpl.java:594) > at org.smartfrog.sfcore.reference.AssertReference.resolve(AssertReference.java:202) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:337) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:298) > at org.smartfrog.sfcore.reference.HereReferencePart.resolve(HereReferencePart.java:212) > at org.smartfrog.sfcore.reference.Reference.resolve(Reference.java:488) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:337) > at org.smartfrog.sfcore.prim.PrimImpl.sfResolve(PrimImpl.java:298) > at org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl.sfResolve(RemoteReferenceResolverHelperImpl.java:89) > at org.smartfrog.services.management.DeployTreePanel.sfResolve(DeployTreePanel.java:526) > at org.smartfrog.services.management.DeployTreePanel.resolveAttrib(DeployTreePanel.java:405) > at org.smartfrog.services.management.DeployTreePanel.table_mouseClicked(DeployTreePanel.java:378) > at org.smartfrog.services.management.DeployTreePanel$3.mouseReleased(DeployTreePanel.java:184) > at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232) > at java.awt.Component.processMouseEvent(Component.java:5517) > at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) > at java.awt.Component.processEvent(Component.java:5282) > at java.awt.Container.processEvent(Container.java:1966) > at java.awt.Component.dispatchEventImpl(Component.java:3984) > at java.awt.Container.dispatchEventImpl(Container.java:2024) > at java.awt.Component.dispatchEvent(Component.java:3819) > at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) > at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) > at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) > at java.awt.Container.dispatchEventImpl(Container.java:2010) > at java.awt.Window.dispatchEventImpl(Window.java:1791) > at java.awt.Component.dispatchEvent(Component.java:3819) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.smartfrog.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |