users@jaxb.java.net

RE: Re: classloaders and jaxb.properties..

From: Malachi de Aelfweald <malachid_at_temporal-wave.com>
Date: Thu, 13 Nov 2003 07:53:08 -0800

Easy enough to find out.

System.out.println("Using: " +
Thread.currentThread().getContextClassLoader());

Should be pretty obvious at that point if it is the correct class
loader.

I am a little curious though. I am using it from a JNLP loaded JAR with
no problems. I wonder why yours isn't working.

And you have verified that your jaxb.properties is in
posb/operations/jaxb/wxml?

How are you creating your jar?

Malachi

-----Original Message-----
From: Andrew.Ferguson_at_arm.com [mailto:Andrew.Ferguson_at_arm.com]
Sent: Thursday, November 13, 2003 6:58 AM
To: users_at_jaxb.dev.java.net
Subject: Re: classloaders and jaxb.properties..


hi,

>Try doing:
> jc = JAXBContext.newInstance( "posb.operations.jaxb.wxml");
>
>instead. I have that working in a JAR via JNLP just fine. The problem
>you
>MIGHT be having is that Thread (ie, your current thread) is not loaded
>from
>the jar, but from rt.jar....? Try just getting rid of the classloader
>portion.

thanks, i've tried this though and it doesn't seem to work either :(

I think the current thread really must be loaded from the current jar
since
the class is only in that jar.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net