JBoss Community

Classpath issue JBoss 7.0.2 Final

created by ashman in JBoss AS 7 Development - View the full discussion

Hi everyone,


As a total newbie, this is my first post, so please be kind!

 

I am trying to upgrade a project which is currently running on JBoss 4.0.5 to JBoss 7.0.2 Final. I am getting some classpath issues, and it has been driving me nuts. I have read other posts regarding similar issues, but anything I have tries just simply hasn't worked.

 

I have an EAR file with several WARs inside. When I try and deploy the EAR file I am getting several  "Class Path entry does not point to a valid jar for a Class-Path reference" errors:

 

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry log4j.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/commons-logging.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry log4j-core.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/commons-logging.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry activation.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/mail.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-beanutils.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.ejb3.deployment.processors.dd.SecurityRoleRefDDProcessor] (MSC service thread 1-2) security-role-ref for message driven beans isn't yet implemented

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-collections.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-dbcp.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-digester.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-logging.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-pool.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-validator.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.

18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry jakarta-oro.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.



It looks like the  libraries log4j.jar, log4j-core.jar, activation.jar etc. cannot be referenced from commons-logging.jar,mail.jar and struts.jar. The weird thing is that all there jars are all in the same WEB-INF/lib folder in the WAR. I have tried adding the offending jars to the manifest classpath...no joy. Have tried to add them as dependencies (org.apache.log4j, org.apache.commons.logging etc.) in the manifest...no joy.



What am I doing wrong?



The directory structure in the WAR is as follows:



LmsWeb

     common

     css

     images

     js

     licensee

     META-INF

     test

     WEB-INF

          classes

          lib 



 

All these libraries (except jboss-ejb-api_3.1_spec-1.0.1.Final.jar) have been here within this structure, and the application runs fine under 4.0.5.



Any help would be appreciated!



Regards,

Ash



               commons-beansutil.jar

               commons-collections.jar

               commons-dbcp.jar

               commons-digester.jar

               commons-fileupload.jar

               commons-lang.jar

               commons-logging.jar

               commons-pool.jar

               commons-resources.jar

               commons-validator.jar

               jakarta-oro.jar

               javax.servlet.jar

               javax.servlet.jap.jar

               jboss-ejb-api_3.1_spec-1.0.1.Final.jar#####

               log4j.jar

               mail.jar

               struts.jar

               tiles.jar#########################

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community