0 Replies Latest reply on Jul 28, 2008 8:25 AM by wernic

    CXF and JEE

    wernic

      My app uses CXF 2.1.1. When web.xml is declared as an J2EE app:

      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      ...
      </webapp>

      application is deployed sucessfully. When I switch to the JEE descriptor:
      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      ...
      </webapp>


      exception is thrown:
      Caused by: java.lang.ClassNotFoundException: org.apache.cxf.Bus from BaseClassLoader@15ce9f{VFSClassLoaderPolicy ...}
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:379)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:169)
       at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:207)
       ... 64 more


      CXF is bundled with application (I haven't try to use JBossWS and switch from Native to CXF backend).

      Any thoughts? Do I need to disable JBossWS? Or maybe using JBossWS with CXF backend is the only way?

      JBoss 5 CR1