[jboss-cvs] JBossAS SVN: r101287 - projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployment.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 22 18:21:44 EST 2010
Author: johnbailey
Date: 2010-02-22 18:21:43 -0500 (Mon, 22 Feb 2010)
New Revision: 101287
Modified:
projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployment/PersistenceUnitDeploymentFactory.java
Log:
[JBJPA-21] - Update exception messages to contain more detail.
Modified: projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployment/PersistenceUnitDeploymentFactory.java
===================================================================
--- projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployment/PersistenceUnitDeploymentFactory.java 2010-02-22 23:20:38 UTC (rev 101286)
+++ projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployment/PersistenceUnitDeploymentFactory.java 2010-02-22 23:21:43 UTC (rev 101287)
@@ -54,12 +54,12 @@
factory = factoryIterator.next();
if(factoryIterator.hasNext())
{
- throw new RuntimeException("More the one factories found, please ensure only one factory implementation is found on the classpath.");
+ throw new RuntimeException("More the one service found found for " + PersistenceUnitDeploymentFactory.class + ", please ensure only one factory implementation is found on the classpath. (JBJPA-21)");
}
}
else
{
- throw new RuntimeException("No factories found");
+ throw new RuntimeException("No service found for " + PersistenceUnitDeploymentFactory.class + " (JBJPA-21)");
}
return factory;
More information about the jboss-cvs-commits
mailing list