I definitely have all the classes in the classpath. I can see all the handler classes in the jar files. It may have something to do with classloader issue. Due to weblogic issues, I placed the "C:\Apps\apache-cxf-2.0.1-incubator\lib\cxf-2.0.1-incubator.jar" this path in front of my classpath. Rest all the jars from CXF library distribution has been copied over to WEB-INF/lib.
I did follow the tutorial and that's how I have configured my project. Sushil > -----Original Message----- > From: Dale Peakall [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 11, 2007 10:24 AM > To: [email protected] > Subject: Re: NameSpaceHandling error > > From the Java documentation for "NoClassDefFoundException": > "The searched-for class definition existed when the currently > executing class was compiled, but the definition can no > longer be found." > > Looks like you're missing a Jar file. Please make sure > you're including all the Jars referenced here: > http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html > > Sureka, Sushil wrote: > > I am afraid we will have to abandon our effort to get CXF in our > > project if we can not go past this issue. > > > > If any one has any suggestion, please advise Thanks > > > > > > > >> -----Original Message----- > >> From: Sureka, Sushil [mailto:[EMAIL PROTECTED] > >> Sent: Monday, September 10, 2007 4:57 PM > >> To: [email protected] > >> Subject: NameSpaceHandling error > >> > >> I am just trying to do a very simple web service using Spring > >> but have run into an issue. I get the following excpetion > >> when weblogic is starting up > >> > >> SEVERE: Context initialization failed > >> org.springframework.beans.factory.parsing.BeanDefinitionParsin > >> gException > >> : Config > >> uration problem: Unable to locate NamespaceHandler for > >> namespace [http://cxf.apa che.org/jaxws] Offending resource: > >> ServletContext resource [/WEB-INF/beans.xml] > >> > >> at > >> > org.springframework.beans.factory.parsing.FailFastProblemReporter.err > >> or(FailFastProblemReporter.java:68) > >> at > >> > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderC > >> ontext.java:85) > >> at > >> > org.springframework.beans.factory.parsing.ReaderContext.error(ReaderC > >> ontext.java:80) > >> at > >> > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.er > >> ror(BeanDefinitionParserDelegate.java:261) > >> at > >> > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa > >> rseCustomElement(BeanDefinitionParserDelegate.java:1111) > >> at > >> > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa > >> rseCustomElement(BeanDefinitionParserDelegate.java:1104) > >> at > >> > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe > >> .......................... > >> > >> > >> There are number of warnings on these lines before the actual > >> error occurs > >> WARNING: Ignoring namespace handler > >> [org.apache.cxf.binding.soap.spring.Namespac > >> eHandler]: problem with handler class file or dependent class > >> java.lang.NoClassDefFoundError: > >> org/apache/cxf/binding/soap/spring/NamespaceHand > >> ler : org/springframework/beans/factory/xml/NamespaceHandlerSupport > >> at > >> > java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.securit > >> y.ProtectionDomain;)Ljava.lang.Class;(Unknown Source) > >> at > >> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 > >> > >> > >> Here is the simple bean.xml file > >> <beans xmlns="http://www.springframework.org/schema/beans" > >> > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> > >> xmlns:jaxws="http://cxf.apache.org/jaxws" > >> > >> xsi:schemaLocation=" > >> > >> http://www.springframework.org/schema/beans > >> http://www.springframework.org/schema/beans/spring-beans.xsd > >> > >> http://cxf.apache.org/jaxws > http://cxf.apache.org/schemas/jaxws.xsd"> > >> > >> <import resource="classpath:META-INF/cxf/cxf.xml" /> > >> > >> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> > >> > >> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> > >> > >> <jaxws:endpoint > >> > >> id="helloWorld" > >> > >> implementor="demo.spring.HelloWorldImpl" > >> > >> address="/HelloWorld" /> > >> > >> </beans> > >> > >> > >> > >> Any idea what am I doing wrong here. (I did append the cxf > >> jar in front of weblogic classpath to get rid of portType not > >> found error). I'm using weblogic 9.2 > >> > >> Thanks > >> > >> Sushil > >> > >> > >> > >
