3 Replies Latest reply on May 21, 2010 7:20 AM by RicardoFressa

    Flex 3 + Java + BlazeDS

    RicardoFressa



      Hello, I'm trying to make the interaction between Flex 3 + Java + BlazeDS but unfortunately I'm not getting.

      I am using Eclipse Ganymede 3.4.2, the plug-in with the Flex SDK 3.2, and BlazeDS 3.2.0.3978

      What happens is an error that Flex 3 does not find the main file of my project, after I put the folders Libs Flex, and the new web.xml file in my project.

      HTTP Status 404 -

      -------------------------------------------------- ------------------------------

      type Status report

      message

      The description Requested resource () is not available.

      and the error console:

       

      May 20, 2010 9:02:13 PM org.apache.catalina.core.AprLifecycleListener init

      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Sy stem32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Common Files\Ahead\Lib\;C:\Program Files\Common Files\Ahead\Lib\;C:\Program Files\Common Files\Ahead\Lib\;C:\Program Files\Common Files\Ahead\Lib\

      May 20, 2010 9:02:13 PM org.apache.tomcat.util.digester.SetPropertiesRule begin

      WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Integra_java_flex_blazeds' did not find a matching property.

      May 20, 2010 9:02:13 PM org.apache.coyote.http11.Http11Protocol init

      INFO: Initializing Coyote HTTP/1.1 on http-8080

      May 20, 2010 9:02:13 PM org.apache.catalina.startup.Catalina load

      INFO: Initialization processed in 793 ms

      May 20, 2010 9:02:13 PM org.apache.catalina.core.StandardService start

      INFO: Starting service Catalina

      May 20, 2010 9:02:13 PM org.apache.catalina.core.StandardEngine start

      INFO: Starting Servlet Engine: Apache Tomcat/6.0.26

      May 20, 2010 9:02:13 PM org.apache.catalina.loader.WebappClassLoader validateJarFile

      INFO: validateJarFile(C:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\ wtpwebapps\Integra_java_flex_blazeds\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

      May 20, 2010 9:02:14 PM org.apache.catalina.core.StandardContext listenerStart

      SEVERE: Error configuring application listener of class flex.messaging.HttpFlexSession

      java.lang.ClassNotFoundException: flex.messaging.HttpFlexSession

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)

      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3915)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

      at org.apache.catalina.core.StandardService.start(StandardService.java:519)

      at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      May 20, 2010 9:02:14 PM org.apache.catalina.core.StandardContext listenerStart

      SEVERE: Skipped installing application listeners due to previous error(s)

      May 20, 2010 9:02:14 PM org.apache.catalina.core.StandardContext start

      SEVERE: Error listenerStart

      May 20, 2010 9:02:14 PM org.apache.catalina.core.StandardContext start

      SEVERE: Context [/Integra_java_flex_blazeds] startup failed due to previous errors


      Here is my web.xml

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

      <web-app>

       

          <display-name>BlazeDS</display-name>

          <description>BlazeDS Application</description>

       

          <!-- Http Flex Session attribute and binding listener support -->

          <listener>

              <listener-class>flex.messaging.HttpFlexSession</listener-class>

          </listener>

       

          <!-- MessageBroker Servlet -->

          <servlet>

              <servlet-name>MessageBrokerServlet</servlet-name>

              <display-name>MessageBrokerServlet</display-name>

              <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>

              <init-param>

                  <param-name>services.configuration.file</param-name>

                  <param-value>/WEB-INF/flex/services-config.xml</param-value>

             </init-param>

              <load-on-startup>1</load-on-startup>

          </servlet>

       

          <servlet-mapping>

              <servlet-name>MessageBrokerServlet</servlet-name>

              <url-pattern>/messagebroker/*</url-pattern>

          </servlet-mapping>

       

          <welcome-file-list>

              <welcome-file>Integra_java_flex_blazeds.html</welcome-file>

              <welcome-file>index.htm</welcome-file>

          </welcome-file-list>

       

          <!-- for WebSphere deployment, please uncomment -->

          <!--

          <resource-ref>

              <description>Flex Messaging WorkManager</description>

              <res-ref-name>wm/MessagingWorkManager</res-ref-name>

              <res-type>com.ibm.websphere.asynchbeans.WorkManager</res-type>

              <res-auth>Container</res-auth>

              <res-sharing-scope>Shareable</res-sharing-scope>

          </resource-ref>

          -->

       

      </web-app>