You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by newcxfusr <pr...@gmail.com> on 2015/01/26 06:44:04 UTC
CXFNonSpringServlet at the end ask for spring JAR
Hi all,
I am trying to create webservice without Spring, I am using
CXFNonSpringServlet with below code.
// You can als use the simple frontend API to do this
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
factory.setBus(bus);
factory.setServiceBean(new SoapPortImpl());
factory.setAddress("/Greeter");
factory.create();
I am getting below error for spring jar. the whole concept is not to use
spring.
*java.lang.NoSuchMethodError:
org.springframework.util.ClassUtils.isCglibProxyClass*
I am sorry for bugging again, I tried this weblogic 12.1.2 and cxf 3.0.1
and it was working but some how i missplaced the jar i used and now neither
working
I am using below jars
--
View this message in context: http://cxf.547215.n5.nabble.com/CXFNonSpringServlet-at-the-end-ask-for-spring-JAR-tp5753510.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: CXFNonSpringServlet at the end ask for spring JAR
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
I'm not sure a servlet is even used in this case, but what is likely
happening is that Spring is on the classpath somewhere, and an internal
CXF class helper links against the wrong version.
There was a JIRA issue opened recently to have a property to protect
against such cases, a new system property is available starting from CXF
3.0.4-SNAPSHOT and CXF 2.7.15-SNAPSHOT,
"org.apache.cxf.useSpringClassHelpers" with a false value would ensure
no Spring interference occurs...
HTH, Sergey
On 26/01/15 05:44, newcxfusr wrote:
> Hi all,
>
> I am trying to create webservice without Spring, I am using
> CXFNonSpringServlet with below code.
>
>
> // You can als use the simple frontend API to do this
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setBus(bus);
> factory.setServiceBean(new SoapPortImpl());
> factory.setAddress("/Greeter");
> factory.create();
>
> I am getting below error for spring jar. the whole concept is not to use
> spring.
>
> *java.lang.NoSuchMethodError:
> org.springframework.util.ClassUtils.isCglibProxyClass*
> I am sorry for bugging again, I tried this weblogic 12.1.2 and cxf 3.0.1
> and it was working but some how i missplaced the jar i used and now neither
> working
>
> I am using below jars
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXFNonSpringServlet-at-the-end-ask-for-spring-JAR-tp5753510.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>