2 Replies Latest reply on Mar 25, 2008 3:44 AM by jmark.floranet

    Marking servlet MessageBrokerServlet as unavailable

    jmark.floranet
      I'm trying the example from http://weblogs.macromedia.com/dharfleet/archives/2006/07/integrating_jav.cfm "Integrating Java and Flex with a simple RPC example" and i got the following issue:

      2008-03-21 16:07:41 StandardContext[/WebTest]Marking servlet MessageBrokerServlet as unavailable
      2008-03-21 16:07:41 StandardContext[/WebTest]Servlet /WebTest threw load() exception
      javax.servlet.UnavailableException: Error instantiating application scoped instance of type 'europe.pt.EchoService' for destination 'echoService'.
      at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:154)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1038)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4017)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
      at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:121)
      at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
      at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
      at org.apache.catalina.core.StandardService.start(StandardService.java:480)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

      2008-03-21 16:07:43 StandardContext[/manager]HTMLManager: init: Associated with Deployer 'localhost'
      2008-03-21 16:07:43 StandardContext[/manager]HTMLManager: init: Global resources are available
      2008-03-21 16:07:43 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
      2008-03-21 16:08:42 StandardWrapperValve[MessageBrokerServlet]: Servlet MessageBrokerServlet is currently unavailable
      2008-03-21 16:14:00 StandardWrapperValve[MessageBrokerServlet]: Servlet MessageBrokerServlet is currently unavailable
      2008-03-21 16:18:11 StandardWrapperValve[MessageBrokerServlet]: Servlet MessageBrokerServlet is currently unavailable

      Can anybody point me the cause?
      Thanks....