0 Replies Latest reply on May 31, 2011 7:20 AM by kgcounts

    Cannot create class of type 'flex.samples.factories.SpringFactory'

    kgcounts

      I have an application that is trying to use BlazeDS.  I am using Flash Builder 4 Plug-in on RSA 7.5.5.  Any help would be apprecialted!

       

      Here is the relevant lines in the services-config.xml:

       

      <factories>

       

      <factory id="spring" class="flex.samples.factories.SpringFactory"/>

       

      </factories>

       

       

      I have the flex.samples.factories.SpringFactory in the web projects src folder and verified that it is getting compiled and the class exists in the WEB-INF/classes folder.

       

      Here is the full stack trace:

      [5/31/11 8:54:44:530 CDT] 00000018 SystemErr     R **** MessageBrokerServlet failed to initialize due to runtime exception: [1]flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
      at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
      at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
      at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
      at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
      at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
      at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
      at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
      at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
      at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
      at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
      at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
      at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
      at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
      at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
      at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
      at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
      at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
      [0]flex.messaging.config.ConfigurationException: An error occurred trying to construct FlexFactory 'flex.samples.factories.SpringFactory'.   The underlying cause is: 'flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.'.
      at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:72)
      at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
      at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
      at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
      at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
      at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
      at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
      at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
      at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
      at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
      at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
      at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
      at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
      at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
      at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
      Caused by: flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
      at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
      at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
      at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
      ... 27 more