Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo 3.6.4 + Apache CXF 3.1.4 = ClassNotFound(When deploying a service a ClassNotFoundException is thrown)
Virgo 3.6.4 + Apache CXF 3.1.4 = ClassNotFound [message #1737321] Thu, 07 July 2016 09:48 Go to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
I'm trying to deploy a service in Virgo using CXF.

When I try this, I get a ClassNotFoundException for "org.springframework.util.ClassUtils" from the user region BundleLoader.

The class is in the jar that comes with the release: repository/ext/org.springframework.core_3.1.0.RELEASE.jar

And the package is defined as an optional dependency in "org.apache.cxf.cxf-core":

org.springframework.util;version="[3.1,5)";resolution:=optional

Where can I look now?
Re: Virgo 3.6.4 + Apache CXF 3.1.4 = ClassNotFound [message #1737324 is a reply to message #1737321] Thu, 07 July 2016 10:08 Go to previous messageGo to next message
GianMaria Romanato is currently offline GianMaria RomanatoFriend
Messages: 57
Registered: November 2015
Member
Hi Bill,

a colleague of mine successfully used CXF in Virgo by packaging it as nested Jars within the bundle containing the WebServices code.

He went for this approach because he had to support both Virgo and another commercial Application Server that does not include the Spring Jars out of the box and he wanted to have a portable solution that would work in both containers .

I am attaching here an extract from his bundle MANIFEST.MF file. I removed some imports that I believe were unrelated to CXF but the sample below may still include unnecessary dependencies (or I may have deleted too many). In any case, while this is not what you are trying to do, I hope it may help you in finding out whether you have all of the required dependencies in place.

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-SymbolicName: whatever
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: acme
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: 
 javax.activation,
 javax.annotation,
 javax.annotation.security;version="1.1.0",
 javax.crypto,
 javax.jws,
 javax.jws.soap,
 javax.management,
 javax.naming,
 javax.persistence;version="2.1",
 javax.persistence.criteria;version="2.1.0",
 javax.persistence.metamodel;version="2.1.0",
 javax.persistence.spi;version="2.1.0",
 javax.security.auth,
 javax.security.auth.callback,
 javax.security.auth.login,
 javax.servlet,
 javax.servlet.http,
 javax.ws.rs;version="1.1.0",
 javax.ws.rs.core;version="1.1.0",
 javax.ws.rs.ext;version="1.1.0",
 javax.wsdl;version="1.6.0",
 javax.wsdl.extensions;version="1.6.0",
 javax.wsdl.extensions.http;version="1.6.0",
 javax.wsdl.extensions.mime;version="1.6.0",
 javax.wsdl.extensions.schema;version="1.6.0",
 javax.wsdl.extensions.soap;version="1.6.0",
 javax.wsdl.extensions.soap12;version="1.6.0",
 javax.wsdl.factory;version="1.6.0",
 javax.wsdl.xml;version="1.6.0",
 javax.xml,
 javax.xml.bind;version="2.0.0",
 javax.xml.bind.annotation;version="2.0.0",
 javax.xml.bind.annotation.adapters;version="2.0.0",
 javax.xml.bind.attachment;version="2.0.0",
 javax.xml.bind.helpers;version="2.0.0",
 javax.xml.bind.util;version="2.0.0",
 javax.xml.datatype,
 javax.xml.namespace,
 javax.xml.parsers,
 javax.xml.soap,
 javax.xml.stream,
 javax.xml.stream.events,
 javax.xml.stream.util,
 javax.xml.transform,
 javax.xml.transform.dom,
 javax.xml.transform.sax,
 javax.xml.transform.stax,
 javax.xml.transform.stream,
 javax.xml.validation,
 javax.xml.ws,
 javax.xml.ws.handler,
 javax.xml.ws.handler.soap,
 javax.xml.ws.http,
 javax.xml.ws.soap,
 javax.xml.ws.spi,
 javax.xml.ws.spi.http;resolution:=optional,
 javax.xml.ws.wsaddressing,
 javax.xml.xpath,
 junit.framework;version="3.8.1";resolution:=optional,
 org.w3c.dom,
 org.w3c.dom.ls,
 org.xml.sax
Bundle-ClassPath: .,
 lib/spring-core-3.2.6.RELEASE.jar,
 lib/spring-aop-3.2.6.RELEASE.jar,
 lib/spring-beans-3.2.6.RELEASE.jar,
 lib/spring-context-3.2.6.RELEASE.jar,
 lib/spring-expression-3.2.6.RELEASE.jar,
 lib/spring-web-3.2.6.RELEASE.jar,
 lib/cxf-core-3.0.3.jar,
 lib/cxf-rt-transports-http-3.0.3.jar,
 lib/neethi-3.0.3.jar,
 lib/xmlschema-core-2.1.0.jar,
 lib/cxf-rt-frontend-jaxws-3.0.3.jar,
 lib/cxf-rt-wsdl-3.0.3.jar,
 lib/cxf-rt-bindings-soap-3.0.3.jar,
 lib/wss4j-bindings-2.0.2.jar,
 lib/wss4j-policy-2.0.2.jar,
 lib/wss4j-ws-security-common-2.0.2.jar,
 lib/wss4j-ws-security-dom-2.0.2.jar,
 lib/wss4j-ws-security-policy-stax-2.0.2.jar,
 lib/wss4j-ws-security-stax-2.0.2.jar,
 lib/woodstox-core-asl-4.4.1.jar,
 lib/stax2-api-3.1.4.jar,
 lib/cxf-rt-databinding-jaxb-3.0.3.jar,
 lib/cxf-rt-frontend-simple-3.0.3.jar,
 lib/geronimo-addressing.jar,
 lib/xmlsec-2.0.2.jar,
 lib/cxf-rt-ws-security-3.0.3.jar,
 lib/jasypt-1.9.2.jar,
 lib/commons-codec-1.10.jar

Re: Virgo 3.6.4 + Apache CXF 3.1.4 = ClassNotFound [message #1737325 is a reply to message #1737321] Thu, 07 July 2016 10:26 Go to previous message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Bill,

you could also have a look at Violetas post: https://www.eclipse.org/forums/index.php?t=msg&th=206714&goto=662338&#msg_662338

Regards,
florian

[Updated on: Thu, 07 July 2016 10:27]

Report message to a moderator

Previous Topic:How to modify a web app context path at runtime?
Next Topic:Virgo upgrade from 3.6.3 on Java 7 to 3.6.4 on Java 8
Goto Forum:
  


Current Time: Sat Dec 07 08:33:59 GMT 2024

Powered by FUDForum. Page generated in 0.02817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top