WFLYSRV0059 / JBAS015960: Class Path entry ... does not point to a valid jar for a Class-Path reference for jars in WEB-INF/lib in JBoss EAP 6
Issue
- Getting numerous Class Path entry / Class Path reference errors in a deployed war
- I am deploying a web app to JBoss EAP 6 and getting numerous Class Path errors
20:26:49,697 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry freemarker-2.3.15.jar in /content/example_webapp.war does not point to a valid jar for a Class-Path reference.
20:26:49,697 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jaxen-1.1.1.jar in /content/example_webapp.war does not point to a valid jar for a Class-Path reference.
...
In JBoss EAP 7
WARN WFLYSRV0059: Class Path entry freemarker-2.3.15.jar in /content/example_webapp.war does not point to a valid jar for a Class-Path reference.
- I created the war using a standard maven project based on the
jboss-helloworldquickstart. The application itself uses
a number of libraries includng Spring, Spring JMS, and Tibco. The project POM build section includes the maven war plugin and has theaddClasspathattribute set totruewhich should force the generation of a correctMANIFEST.MF:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>${version.war.plugin}</version>
<configuration>
<!-- Java EE 6 doesn't require web.xml, Maven needs to catch up! -->
<failOnMissingWebXml>false</failOnMissingWebXml>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
- I checked the deployed war before the server starts and
MANIFESt.MFis present indispatcher_web/META-INF, and whose contents are shown below. All of the jars referenced in the war are included, and each has the maven version numbers appended to the name. Furthermore, all of these same jars are present inexample_webapp.war/WEB-INF/libwith the exact same names.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
