Thanks for the prompt response.

I have explicitly removed the spring maven dependencies. I had a set of
pretty sophisticated services running (based on CXF's
SecurityTokenService), with spring-web as a mvn dependency. I had a basic
web-service that allowed me to publish STS instances. This endpoint was
published via a cxf-servlet.xml:
jaxws:endpoint id="STSPublish"
implementor="org.forgerock.openam.sts.publish.web.STSPublishImpl"
                    address="/sts_publish">
    </jaxws:endpoint>

We are already using Guice in our project, and I would prefer not to
include Spring - fewer moving parts = less complexity. When the wsdl
corresponding to this service was hit, in a .war without Spring jars, I
would get the NoClassDefFoundError mentioned in the previous post. It
appears that the cxf-servlet.xml file has to have a <beans> root element,
which may be responsible for pulling in Spring, so I tried to publish the
same service programmatically, but I appear to get the same error.

Thanks for your help.

Dirk


On Thu, Mar 7, 2013 at 11:16 AM, Jose María Zaragoza [via CXF] <
[email protected]> wrote:

> >
> > java.lang.ClassNotFoundException:
> > org.springframework.context.ApplicationListener
> >
>
>
> Which  Spring JAR do you have added to your project ? Or mvn dependencies
> ...
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://cxf.547215.n5.nabble.com/JaxWsServerFactoryBean-without-Spring-tp5724258p5724260.html
>  To unsubscribe from JaxWsServerFactoryBean without Spring, click 
> here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5724258&code=ZGlyay5ob2dhbkBmb3JnZXJvY2suY29tfDU3MjQyNTh8NDEzODQ2MjQw>
> .
> NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://cxf.547215.n5.nabble.com/JaxWsServerFactoryBean-without-Spring-tp5724258p5724271.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to