[topicmapmail] Newbee: help!
Kal Ahmed
kal@techquila.com
24 Jul 2003 22:36:26 +0100
Hi Rolf,
The best place to ask questions on TM4J is the TM4J Users list:
https://lists.sourceforge.net/lists/listinfo/tm4j-users
In answer to your question, my guess is that System.getProperties() is
returning null. As you are using the in-memory topic map provider and
probably don't need to pass any initialisation parameters to the
provider, replace
Properties backendProps = System.getProperties();
with
Properties backendProps = new Properties();
BTW, the next version of TM4J should include some utility methods for
setting up topic map providers from an XML configuration file.
Hope this helps,
Kal
On Thu, 2003-07-24 at 21:47, Rolf Guescini wrote:
> Hi, I am trying to make TM4J work with Tomcat, but I am having some problems..
> I have no problems running TM4j at commandline, using som of Khal Ahmeds
> example java-files, but as soon as I try to use it with a jsp or a Bean
> I get this error:
>
> " TopicMapProviderException. Caused by: null"
>
> I think that the problem might lie within these lines:
>
>
> Properties backendProps = System.getProperties();
> String backendClassName
> ="org.tm4j.topicmap.memory.TopicMapProviderFactoryImpl";
> ParseTopicMap(inputAddress, backendClassName, backendProps);
>
> - and especially in the backendProps = System.getProperties() - bit..
>
> has anybody tried this combination before ?
>
> I would be so greatful if anybody had any suggestions to what the problem
> might be
>
> Greetings Rolf Guescini
> _______________________________________________
> topicmapmail mailing list
> topicmapmail@infoloom.com
> http://www.infoloom.com/mailman/listinfo/topicmapmail
--
Kal Ahmed, Techquila
Standards-based Information Management
e: kal@techquila.com
w: www.techquila.com
p: +44 7968 529531