[Ikvm-developers] Problems Using Axis2 Stubs Via IKVM
Brought to you by:
jfrijters
|
From: Woelke, M. <mw...@ps...> - 2011-10-13 20:06:30
|
Hi there, I am trying to use some axis2 stubs from within .NET. The reason for that is that the parser is more fault tolerant then the .NET parser. Anyways, basically its looking fine. Unfortunately I get a problem with the i18n resources which are included to the axis2 jars. I get the following exception: System.TypeInitializationException: Der Typeninitialisierer für "org.apache.axis2.i18n.Messages" hat eine Ausnahme verursacht. ---> System.TypeInitializationException: Der Typeninitialisierer für "org.apache.axis2.i18n.MessagesConstants" hat eine Ausnahme verursacht. ---> java.util.MissingResourceException: Cannot find resource 'org.apache.axis2.i18n.resource' --- Ende der internen Ausnahmestapelüberwachung --- bei org.apache.axis2.i18n.Messages..cctor() in Messages.java:Zeile 30. --- Ende der internen Ausnahmestapelüberwachung --- bei org.apache.axis2.i18n.Messages.getMessage(String key, String arg0) bei org.apache.axis2.engine.AxisConfiguration.engageModule(String moduleref) in AxisConfiguration.java:Zeile 510. bei org.apache.axis2.engine.AxisConfiguration.engageGlobalModules() in AxisConfiguration.java:Zeile 637. bei org.apache.axis2.deployment.DeploymentEngine.engageModules() in DeploymentEngine.java:Zeile 678. bei org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath() in DeploymentEngine.java:Zeile 169. bei org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration() in FileSystemConfigurator.java:Zeile 137. bei org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(AxisConfigurator axisConfigurator) in ConfigurationContextFactory.java:Zeile 64. bei org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(String path, String axis2xml) in ConfigurationContextFactory.java:Zeile 206. bei org.apache.axis2.client.ServiceClient.configureServiceClient(ConfigurationContext configContext, AxisService axisService) in ServiceClient.java:Zeile 150. bei org.apache.axis2.client.ServiceClient..ctor(ConfigurationContext configContext, AxisService axisService) in ServiceClient.java:Zeile 144. I tried to specify the resource when compiling the jars to dlls but it didn't work, so I guess I'm missing something. Is there anyone out there who already was working with axis2 and ikvm? Anyone can tell me how to specify the resources correctly? Im using the latest IKVM version on a win7 64bit OS. .NET is up-to-date as well. Any help or even just comments are highly appreciated. Thanx in advance. Best regards, Milan Wölke |