[Ikvm-developers] providing .NET implementation for java classes
Brought to you by:
jfrijters
|
From: harri k. <har...@gm...> - 2011-01-20 10:26:41
|
Hello,
I have crosscompiled several java packages for .NET and I can use them from
my .NET code.
I am trying to provide my own logger implementation for
org.apache.commons.logging.Log
I have written a .NET class that implements the interface and am trying to
force-feed it in as follows:
//public class ApacheLogger : org.apache.commons.logging.Log
java.lang.System.setProperty("org.apache.commons.logging.Log",
"ContentWrangler.Server.ApacheLogger");
Initialising an object that makes use of the said logger will however throw
an exception, deepest one of them is:
Message:
User-specified log class 'ContentWrangler.Server.ApacheLogger' cannot be
found or is not useable.
StackTrace:
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(String name)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(String
name)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Class
clazz)
at org.apache.commons.logging.LogFactory.getLog(Class clazz)
at org.apache.fop.apps.FopFactory..cctor()
{"User-specified log class 'ContentWrangler.Server.ApacheLogger' cannot be
found or is not useable."}
I am obviously missing something - does anyone spot what it is? Should I
create a java stub of the .NET class I want to use?
Cheers,
Harri
--
View this message in context: http://old.nabble.com/providing-.NET-implementation-for-java-classes-tp30701642p30701642.html
Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
|