axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r722237 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
Date Mon, 01 Dec 2008 21:24:27 GMT
Author: veithen
Date: Mon Dec  1 13:24:27 2008
New Revision: 722237

URL: http://svn.apache.org/viewvc?rev=722237&view=rev
Log:
AXIS2-4139: Use the right classloader to load the POJO class(es). Fixes a regression introduced
in r652280.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java?rev=722237&r1=722236&r2=722237&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
Mon Dec  1 13:24:27 2008
@@ -72,7 +72,7 @@
                 Thread.currentThread().setContextClassLoader(classLoader);
                 String className = file.getName();
                 className = className.replaceAll(".class", "");
-                Class clazz = Class.forName(className);
+                Class clazz = Loader.loadClass(className);
                 log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_POJO,
                         className,
                         deploymentFileData.getFile().getAbsolutePath()));
@@ -151,7 +151,7 @@
                     Thread.currentThread().setContextClassLoader(classLoader);
                     className = className.replaceAll(".class", "");
                     className = className.replaceAll("/", ".");
-                    Class clazz = Class.forName(className);
+                    Class clazz = Loader.loadClass(className);
 
                     /**
                      * Schema generation done in two stage 1. Load all the methods and



Mime
View raw message