users@jaxb.java.net

Re: java.lang.reflect.Proxy: NoClassDefFoundError

From: Ed Mooney <Ed.Mooney_at_sun.com>
Date: Wed, 11 Jun 2003 12:23:41 -0400

Hi Marcus,

J2SE v1.3.1 has always been the minimum requirement for JAXB 1.0. JAXB's
dependence on java.lang.reflect.Proxy is new in 1.0.1. Is there any
reason to hope Websphere may support v1.3.1?

Regards,
--
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Marcus Walls wrote:
> I'm having problems getting 1.0.1 working on WebSphere 3.5.5.
>
> I've been working with 1.0.1 and Tomcat happily since it was released and decided to upgrade my WebSphere instance to the 1.0.1 release today, and it fell at the first hurdle.
>
> 1.0 FCS was working fine with my WebSphere instance, but now with 1.0.1 it can't seem to find java.lang.reflect.Proxy.  I discovered that this is a JDK1.3 class, and WebSphere only supports 1.2.
>
> Does this mean that 1.0.1 is no longer supporting JDK1.2 and thus won't work on WebSphere, or is this merely a bug?
>
> My application ultimately needs to ship on WebSphere 3 and thus this is a showstopper for me.  Is there a workaround?
>
> I've included a partial stack-trace in case it's any use.
>
> Thanks
>
> Marcus
>
> java.lang.NoClassDefFoundError: java/lang/reflect/Proxy
>  at com.sun.xml.bind.ProxyGroup.unwrap(ProxyGroup.java:231)
>  at com.aspective.common.xml.jaxb.impl.runtime.ValidationContext.validate(ValidationContext.java:78)
>  at com.aspective.common.xml.jaxb.impl.runtime.ValidatorImpl.validate(ValidatorImpl.java:114)
>  at com.aspective.common.xml.jaxb.impl.runtime.ValidatorImpl.validateRoot(ValidatorImpl.java:89)
>  at com.aspective.common.xml.JAXB.applyValidator(JAXB.java:459)
>  at com.aspective.common.xml.JAXB.validate(JAXB.java:363)