axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r189709 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentEngine.java /webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentParser.java
Date Thu, 09 Jun 2005 05:25:39 GMT
Author: deepal
Date: Wed Jun  8 22:25:37 2005
New Revision: 189709

URL: http://svn.apache.org/viewcvs?rev=189709&view=rev
Log:
Fixed a bug when loading a messageReceiver

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentEngine.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentParser.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentEngine.java?rev=189709&r1=189708&r2=189709&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentEngine.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentEngine.java
Wed Jun  8 22:25:37 2005
@@ -370,7 +370,6 @@
 
     private void addnewService(ServiceDescription serviceMetaData) throws AxisFault {
         try {
-            currentArchiveFile.setClassLoader();
             loadServiceProperties(serviceMetaData);
             axisConfig.addService(serviceMetaData);
 
@@ -493,7 +492,7 @@
 
 
     private void addNewModule(ModuleDescription moduelmetada) throws AxisFault {
-        currentArchiveFile.setClassLoader();
+       // currentArchiveFile.setClassLoader();
         Flow inflow = moduelmetada.getInFlow();
         if (inflow != null) {
             addFlowHandlers(inflow);
@@ -536,6 +535,11 @@
             for (int i = 0; i < wsToDeploy.size(); i++) {
                 currentArchiveFile = (ArchiveFileData) wsToDeploy.get(i);
                 int type = currentArchiveFile.getType();
+                try {
+                    currentArchiveFile.setClassLoader();
+                } catch (AxisFault axisFault) {
+                    log.info("Setting Class Loader  " +axisFault);
+                }
                 ArchiveReader archiveReader = new ArchiveReader();
                 String serviceStatus = "";
                 switch (type) {
@@ -548,10 +552,12 @@
                         } catch (DeploymentException de) {
                             log.info("Invalid service" + currentArchiveFile.getName());
                             log.info("DeploymentException  " + de);
+                            de.printStackTrace();
                             serviceStatus = "Error:\n" + de.getMessage();
                         } catch (AxisFault axisFault) {
                             log.info("Invalid service" + currentArchiveFile.getName());
                             log.info("AxisFault  " + axisFault);
+                            axisFault.printStackTrace();
                             serviceStatus = "Error:\n" + axisFault.getMessage();
                         } catch (Exception e) {
                             log.info("Invalid service" + currentArchiveFile.getName());

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentParser.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentParser.java?rev=189709&r1=189708&r2=189709&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentParser.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentParser.java
Wed Jun  8 22:25:37 2005
@@ -742,8 +742,9 @@
                             if (CLASSNAME.equals(attname)) {
                                 try {
                                     Class messageReceiver = null;
-                                    ClassLoader loader1 =
-                                            Thread.currentThread().getContextClassLoader();
+                                    ClassLoader loader1= dpengine.getCurrentFileItem().getClassLoader();
+                                   // ClassLoader loader1 =
+                                     //       Thread.currentThread().getContextClassLoader();
                                     if (attvalue != null && !"".equals(attvalue))
{
                                         messageReceiver = Class.forName(attvalue, true, loader1);
                                         operation.setMessageReciever(
@@ -751,13 +752,13 @@
                                     }
                                 } catch (ClassNotFoundException e) {
                                     throw new DeploymentException(
-                                            "Error in loading messageRecivers " + e.getMessage());
+                                            "Error in loading messageRecivers " + e);
                                 } catch (IllegalAccessException e) {
                                     throw new DeploymentException(
-                                            "Error in loading messageRecivers " + e.getMessage());
+                                            "Error in loading messageRecivers " + e);
                                 } catch (InstantiationException e) {
                                     throw new DeploymentException(
-                                            "Error in loading messageRecivers " + e.getMessage());
+                                            "Error in loading messageRecivers " + e);
                                 }
                             } else {
                                 throw new UnsupportedOperationException(



Mime
View raw message