Announcement Announcement Module
Collapse
No announcement yet.
ClassNotFoundException: org.springframework.flex.config.xml.FlexNamespaceH andler Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ClassNotFoundException: org.springframework.flex.config.xml.FlexNamespaceH andler

    hi guys

    I am using spring blazeds integration 1.5.0.M1 with spring 3.0

    This is my flex servlet

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:flex="http://www.springframework.org/schema/flex"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/flex
    http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">

    <flex:message-broker>
    <flex:message-service
    default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" />
    <flex:secured />
    </flex:message-broker>

    ....and so on..


    I have spring-flex-core-1.5.0.M1-sources.jar and spring-integration-core-1.0.3.RELEASE.jar in my classpath. (do i need anything else?)

    when my server starts i get this error on the above flex servlet

    org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/flex-servlet.xml];

    nested exception is org.springframework.beans.FatalBeanException: NamespaceHandler class [org.springframework.flex.config.xml.FlexNamespaceH andler] for namespace [http://www.springframework.org/schema/flex] not found;
    nested exception is java.lang.ClassNotFoundException: org.springframework.flex.config.xml.FlexNamespaceH andler
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:412)

    am i missing something?

    Thanks

  • #2
    Originally posted by jaggernat View Post

    I have spring-flex-core-1.5.0.M1-sources.jar and spring-integration-core-1.0.3.RELEASE.jar in my classpath. (do i need anything else?)
    This error always indicates that either you don't have the spring-flex library on the classpath, or you've got multiple versions of it on the classpath.

    Why do you have the -sources jar in your classpath? That doesn't belong there. It should just be spring-flex-core-1.5.0.M1.jar

    Comment


    • #3
      Thanks for the reply.

      I added the spring-flex-core-1.5.0.M1.jar and (removed the sources jar)

      But now i get
      org.springframework.beans.FatalBeanException: Required type class not found; nested exception is java.lang.ClassNotFoundException: flex.messaging.config.ConfigMap
      at org.springframework.beans.factory.config.CustomEdi torConfigurer.postProcessBeanFactory(CustomEditorC onfigurer.java:214)

      any thing i should look for?

      thanks

      Comment


      • #4
        Seems like you are missing the blazeds-common jar

        Comment


        • #5
          got the blazeds commons jar and now i get
          >>NoClassDefFoundError: flex.messaging.security.LoginCommand

          any other jars needed?
          thanks

          Comment


          • #6
            added blazeds-core-3.0.jar and solved that problem.
            Is there any place where developers can locate all the jars at once rather than hunting around for dependencies.

            thanks.

            Comment


            • #7
              i get the java.lang.NoClassDefFoundError: flex.messaging.AbstractFlexSessionProvider

              any idea?
              thanks

              Comment


              • #8
                Are you using blaze ds 3 or 4. AbstractFlexSessionProvider is a class that came with blazeds 4.

                Comment


                • #9
                  i am using blazeds 4

                  Comment


                  • #10
                    ok my bad, i should not have had blazeds-core-3.0 and blazeds-comon-3.0
                    since i am using blazeds 4. so i made the changes,this is what i have so far

                    flex-messaging-common.jar (ver 4)
                    flex-messaging-core.jar (ver 4)
                    flex-messaging-remoting.jar (ver 4)
                    spring-flex-core.jar (ver 1.5.0.M1)
                    spring-integration-core.jar (ver 1.0.3)

                    and the errror i get now is >>>ClassNotFoundException: org.springframework.security.web.authentication.se ssion.SessionFixationProtectionStrategy

                    I am using spring security 3.0 aswell (with spring 3.0)
                    I googled around for the SessionFixationProtectionStrategy
                    error and found that others have also had issue with this when using with spring security.

                    I am finding the solution, if anyone already knows the solution i will appreciate if you can please share it.

                    thanks.
                    Last edited by jaggernat; Jan 15th, 2011, 02:33 PM.

                    Comment


                    • #11
                      Add spring-security-web-3.0.3.RELEASE.jar

                      you can decide which version to add
                      Last edited by amiladomingo; Jan 15th, 2011, 02:35 PM. Reason: version info

                      Comment


                      • #12
                        looks like issue is fixed in this jira
                        https://jira.springsource.org/browse/FLEX-65

                        not sure what i am missing.

                        Comment


                        • #13
                          I had to add the cglib.jar and its dependencies and it works.
                          So Spring BlazeDS 1.5 with Spring 3.x and Spring Security 3.x and BlazeDS 4.x sucessfully set up.

                          thanks soooo much everyone.

                          Comment


                          • #14
                            BlazeDS Integration without all that is needed?

                            Originally posted by jaggernat View Post
                            added blazeds-core-3.0.jar and solved that problem.
                            Is there any place where developers can locate all the jars at once rather than hunting around for dependencies.

                            thanks.
                            Update Maven Dependencies shows...

                            2/20/11 5:56:15 AM CST: [WARN] The POM for com.adobe.blazeds:blazeds-core:jar:4.0.0.14931 is missing, no dependency information available
                            2/20/11 5:56:17 AM CST: [WARN] The POM for com.adobe.blazeds:blazeds-common:jar:4.0.0.14931 is missing, no dependency information available
                            2/20/11 5:56:18 AM CST: [WARN] The POM for com.adobe.blazeds:blazeds-proxy:jar:4.0.0.14931 is missing, no dependency information available
                            2/20/11 5:56:23 AM CST: [WARN] The POM for com.adobe.blazeds:blazeds-remoting:jar:4.0.0.14931 is missing, no dependency information available

                            Comment

                            Working...
                            X