users@jaxb.java.net

Re: Problems Deploying FCS with Tomcat

From: Marcus Walls <marcus.walls_at_aspective.com>
Date: Wed, 12 Mar 2003 09:27:29 +0000

Problem solved, although I'm a little confused.

I think I was trying to solve too many problems at once, and my various
solutions all conflicted with each other.

Clearing out my ${CATALINA_HOME}shared\lib directory and adding the
following JARS to my WEB-INF\lib worked fine:

  dom.jar
  jaxb-api.jar
  jaxb-libs.jar
  jaxb-ri.jar
  jaxb-xjc.jar
  jaxp-api.jar
  jax-qname.jar
  namespace.jar
  sax.jar
  xercesImpl.jar

I'm a bit confused though, as I expected to have problems with these
JARs not being in the JWSDP directory structure, but I'm not complaining.

However, this same approach doesn't appear to work in WebSphere but I'll
post something separate about that to avoid confusion.

Marcus



-----Original Message-----
From: Bhakti Mehta [mailto:Bhakti.Mehta_at_Sun.COM]
Sent: Tuesday, March 11, 2003 7:11 PM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: Problems Deploying FCS with Tomcat


Hi Marcus,
JAXB1.0 fcs is bundled as part of JWSDP1.1 .
 The changes to the instructions from beta to fcs would be that the jars
are now located in
 wspack1.1/jaxb-1.0
 wspack1.1/jaxp-1.2.2
wspack1.1/jwsdp-shared
So you may need to overwrite your jars from beta with the jars from
these folders.
Also the rest of the instructions especially placing the bgm.ser and the
jaxb.properties files in the jar
files still hold good.

Have you tried deploying the war on Tomcat which is bundled with the
JWSDP1.1? That should work.
 Incase you can send in some code or your war file I would be glad to
try it with Tomcat 4.1.8 and/or the JWSDP and let you know.

Regards,
Bhakti

Marcus Walls wrote:

>I'm attempting to upgrade my JAXB 1.0 BETA application to work
>with JAXB 1.0 FCS and have run into some problems.
>
>I'm getting the following stack-trace when I deploy my app into
>Tomcat 4.1.18 which was working fine before the upgrade:
>
>
>javax.xml.bind.JAXBException: Provider com.sun.xml.bind.ContextFactory
could not be instantiated: java.lang.reflect.InvocationTargetException
> - with linked exception:
>[java.lang.reflect.InvocationTargetException]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:105)
> at
javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:200)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:126)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:274)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:231)
>
>
>I followed the instructions at
http://java.sun.com/xml/jaxb/jaxbWithTomcat.html
>but I'm not convinced that they've been updated for the FCS release.
>
>Has anybody got this working with Tomcat at all?
>
>Thanks
>
>Marcus
>
>