You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/01/25 20:04:00 UTC
svn commit: r499914 -
/webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java
Author: danj
Date: Thu Jan 25 11:03:59 2007
New Revision: 499914
URL: http://svn.apache.org/viewvc?view=rev&rev=499914
Log:
Fix for MUSE-187
Modified:
webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java
Modified: webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java?view=diff&rev=499914&r1=499913&r2=499914
==============================================================================
--- webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java (original)
+++ webservices/muse/trunk/modules/muse-platform-axis2/src/org/apache/muse/core/platform/axis2/AxisEnvironment.java Thu Jan 25 11:03:59 2007
@@ -193,6 +193,20 @@
return dom;
}
+ protected File createRealDirectory()
+ {
+ //
+ // where are we? this is the path of the service installation,
+ // not of the Axis2 WAR, so we need to go up two levels to
+ // WEB-INF/classes
+ //
+ MessageContext context = MessageContext.getCurrentMessageContext();
+ String axisServicePath = context.getAxisService().getFileName().getFile();
+ File axisServiceDir = new File(axisServicePath);
+ File webInfDir = axisServiceDir.getParentFile().getParentFile();
+ return new File(webInfDir, _CLASSES);
+ }
+
/**
*
* This constructor determines the value of the "real directory" - where
@@ -204,21 +218,12 @@
{
MessageHeaders wsa = convertContext();
addAddressingContext(wsa);
-
+
MessageContext context = MessageContext.getCurrentMessageContext();
-
- //
- // where are we? this is the path of the service installation,
- // not of the Axis2 WAR, so we need to go up two levels to
- // WEB-INF/classes
- //
- String axisServicePath = context.getAxisService().getFileName().getFile();
- File axisServiceDir = new File(axisServicePath);
- File webInfDir = axisServiceDir.getParentFile().getParentFile();
- _realDirectory = new File(webInfDir, _CLASSES);
-
String address = context.getTo().getAddress();
setDefaultURI(getDeploymentURI(address));
+
+ _realDirectory = createRealDirectory();
}
public EndpointReference getDeploymentEPR()
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org