i am migrating an application from jboss 4.0.2 to 5.1.0-GA on RHEL 5.6
I am experiencing the following issue:
08:55:38,355 WARN [WarBasedSOAPHelper] EL Unable to initialize Axis2 Configuration
org.apache.axis2.AxisFault: System can not find the given axis2.xml vfsmemory://95w43i-wiqxgw-hf2hwkye-1-hf2hy3i6-2c/client_repo/conf/axis2.xml
The code calling the createConfigurationContextFromFileSystem method is:
URL base_path = this.getClass().getClassLoader().getResource("");
String client_repo = base_path + "client_repo";
String axis2_config = base_path + "client_repo/conf/axis2.xml";
configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(client_repo.toString().replaceAll("file:", ""), axis2_config.toString().replaceAll("file:", ""));
When looking for this folder it can not be found on the whole linux filesystem. I assume that those vfs folders (e.g. 95w43i-wiqxgw-hf2hwkye-1-hf2hy3i6-2c) are stored under ../server/xx/tmp right?
I am thinking that the temp folder is just not created due to some other reason, but i can´t figure out why. Making a folder in memory that later cannot be found? I don´t get it. Maybe some classloading issue?
Do i need to configure something special when using axis webservice?
Any help would be welcome.
We figured it out. The problem was that in jboss 5 a virtual file system is introduced. In the code the axis configuration file lookup needed to be changed from file to vfsfile in here: replaceAll("file:", ""), axis2_config.toString().replaceAll("file:", ""));