Re: [Ikvm-developers] Problems Using Axis2 Stubs Via IKVM
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2011-10-14 05:40:35
|
Hi Milan,
I just downloaded axis2 1.6.1 and ran:
ikvmc -target:library axis2-kernel-1.6.1.jar commons-logging-1.1.1.jar
and then wrote a line of C# that calls org.apache.axis2.i18n.Messages.getMessage() and it worked fine.
Now, the resource it is complaining about in your case ('org.apache.axis2.i18n.resource') does not actually exist, but in my case (where it also tries to load this resource) it handles the exception and ignores it.
Without more information it's hard to say what's going wrong in your case.
Regards,
Jeroen
>
> -----Original Message-----
> From: Woelke, Milan [mailto:mw...@ps...]
> Sent: Thursday, October 13, 2011 21:35
> To: ikv...@li...
> Subject: [Ikvm-developers] Problems Using Axis2 Stubs Via IKVM
>
> 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.createConfiguration
> Context(AxisConfigurator axisConfigurator) in
> ConfigurationContextFactory.java:Zeile 64.
>
> bei
> org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
> ContextFromFileSystem(String path, String axis2xml) in
> ConfigurationContextFactory.java:Zeile 206.
>
> bei
> org.apache.axis2.client.ServiceClient.configureServiceClient(Configurati
> onContext 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
|