users@jaxb.java.net

Re: Unable to locate jaxb.properties

From: Ajit, Padmalatha <PAjit_at_cvs.com>
Date: Tue, 08 Apr 2003 10:25:50 -0400

Bhakti
Thankyou very much for your suggestions.
I got it to work by adding ClassLoader class() as mentioned in the thread,
creating a jar only with jaxb.properties and bgm.ser and adding it to the
WEB-INF/lib directory.
Also, creating another jar file with all the compiled classes and adding it
to the classpath. I had to do this because of Struts as it was not allowing
me to include jar with compiled classes in the WEB-INF/lib directory of
Weblogic.
- Padma

-----Original Message-----
From: Bhakti Mehta [mailto:Bhakti.Mehta_at_Sun.COM]
Sent: Friday, April 04, 2003 4:06 PM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: Unable to locate jaxb.properties


Padma,
Pls can you try this.
After compiling jaxb generated code and pls can you copy the
jaxb.properties and bgm.ser along with the compiled classes and jar
them and place that jar in the WEB-INF/lib of weblogic.
Also see this thread where someone has got it working with weblogic.
http://forum.java.sun.com/thread.jsp?forum=34&thread=344619
Hope that helps
Regards,
Bhakti
Padma Ajit wrote:

>Hello
>
>I am using JAXB 1.0. I am trying to execute Web App. under Weblogic server.
>
>I am getting the following error :
>
>javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package
some.package.name
> at
javax.xml.bind.ContextFinder.searchcontextPathContextFinder.java:176
>)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:126)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:274)
>
>I tried to put the jaxb.properties in classpath and also under WEB-INF/lib
directory, but no luck.
>The war file contains the properties file in current package path.
>I create a new instance as follows -
>JAXBContext jc = JAXBContext.newInstance("some.package.name");
>
>Any solution to this error will be appreciated.
>Thanks
>Padma
>
>