Page 1 of 2 12 LastLast
Results 1 to 10 of 14

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

  1. #1

    Default 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. #2
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Quote 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
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  3. #3

    Default

    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

  4. #4
    Join Date
    Dec 2010
    Location
    Singapore
    Posts
    287

    Default

    Seems like you are missing the blazeds-common jar
    Amila Domingo

  5. #5

    Default

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

    any other jars needed?
    thanks

  6. #6

    Default

    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.

  7. #7

    Default

    i get the java.lang.NoClassDefFoundError: flex.messaging.AbstractFlexSessionProvider

    any idea?
    thanks

  8. #8
    Join Date
    Dec 2010
    Location
    Singapore
    Posts
    287

    Default

    Are you using blaze ds 3 or 4. AbstractFlexSessionProvider is a class that came with blazeds 4.
    Amila Domingo

  9. #9

    Default

    i am using blazeds 4

  10. #10

    Default

    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 at 01:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •