0 Replies Latest reply on Oct 29, 2008 1:44 PM by John Dubchak

    Enpoint.publish throws NoClassDefFoundError

    John Dubchak Newbie

      Hi,

      I recently installed JBossWS CXF stack with a new install of JBoss 4.2.3 AS to test some of the CXF integration functionality.

      One of the pieces of code we have is dependent upon CXF's ability to publish a webservice using the Endpoint.publish(address, impl) method.

      However, when this code is executed the following exception is thrown:

      java.lang.NoClassDefFoundError: org/mortbay/jetty/Connector
      11:44:44,739 ERROR [STDERR] at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:195)
      at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.retrieveEngine(JettyHTTPDestination.java:107)
      at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:135)
      at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDestination(JettyHTTPTransportFactory.java:123)
      at org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDestination(JettyHTTPTransportFactory.java:103)
      at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
      at org.apache.cxf.endpoint.ServerImpl.(ServerImpl.java:69)
      at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:115)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:160)
      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:322)
      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:244)
      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194)
      at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:84)
      at javax.xml.ws.Endpoint.publish(Endpoint.java:170)

      Any idea of this is supported and/or what I might be doing wrong?

      Thanks,
      John