2 Replies Latest reply on Nov 7, 2013 12:25 AM by srinu3669

    Exception while running spring war file in osgi container

    srinu3669

      Exception : Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface.....

       

      Description : I was trying to running spring application war file in fuse esb osgi container i got the above mentioned exception.

       

      Actually my spring application will give the output message as "Hello World". Normally this application is running in Tomcat server.

      after that I am creating this spring application as war file by using eclipse navigations steps  (file ---> Export ------> create war ---->) .after that i am trying to executing this war file by deploying in osgi container i got the above mention exception...

       

      Please give any suggestions how to execute spring war file in osgi container (or) is their any additional configuration i need to execute this spring war file..

       

      i attached my spring war file.. please look into and give any suggestions.

        • 1. Re: Exception while running spring war file in osgi container
          ffang

          Hi,

           

          Please take a look at this link [1] to know how to deploy war in OSGi container.

           

          [1]Pax Web Extender - War - OSGi-fy - OPS4J - OPS4J Wiki

           

          Freeman

          • 2. Re: Exception while running spring war file in osgi container
            srinu3669

            Hi Sir,

             

            Thanks for your reply... but i am new to osgi. i don't know how to create a war file that contains OSGi manifest  ( MANIFEST.MF) file in that bundle information. I read all the content in the link which your reply and i understood that if you run a war file in osgi container we need bundle information contains manifest file. but i am unable to create OSGi manifest file that contains bundle related information.

            And also please note that i want to run spring web application related war file. Not simple war file. for your clarity please check spring war file which I upload.

             

            If you don't mine please give any sample pom.xml that contains how to create a war file, in that war file contains how the bundle information will be created in  manifest file after war file created by using pom.xml.

             

            Please give any sample pom.xml file for my understanding.