[jboss-cvs] JBossAS SVN: r105799 - branches/JBPAPP_5_1/server/src/main/org/jboss/deployment.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 8 08:25:32 EDT 2010


Author: darran.lofthouse at jboss.com
Date: 2010-06-08 08:25:32 -0400 (Tue, 08 Jun 2010)
New Revision: 105799

Modified:
   branches/JBPAPP_5_1/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java
Log:
[JBPAPP-4442] Deployment failing with ClassNotFoundException: Empty class name '' if Main-Class attribute present in Manifest but not specified.


Modified: branches/JBPAPP_5_1/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java
===================================================================
--- branches/JBPAPP_5_1/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java	2010-06-08 11:54:46 UTC (rev 105798)
+++ branches/JBPAPP_5_1/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java	2010-06-08 12:25:32 UTC (rev 105799)
@@ -78,7 +78,7 @@
       else
       {
          String mainClassName = getMainClassName(unit);
-         if (mainClassName != null)
+         if (mainClassName != null && mainClassName.length() > 0)
             processJBossClientMetaData(unit, finder, mainClassName);
          else
             processJBossMetaData(unit, finder);



More information about the jboss-cvs-commits mailing list