Hi

answers inline

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-18 16:55 GMT+01:00 ihunter <[email protected]>:
> I have a legacy OpenEJB app I'm trying to get running under TomEE, and my
> current issue relates to reading in WebServices via the TomEE apache-cxf
> libraries.
>
> I get an apparently recursive stack trace on startup like so:-
>
> SEVERE: Error deploying JAX-WS Web Service for EJB LicenseServiceBean
> java.lang.StackOverflowError
>         at java.lang.Class.privateGetDeclaredFields(Unknown Source)
>         at java.lang.Class.getDeclaredFields(Unknown Source)
>         at 
> org.apache.cxf.common.util.ReflectionUtil$6.run(ReflectionUtil.java:119)
>         at 
> org.apache.cxf.common.util.ReflectionUtil$6.run(ReflectionUtil.java:118)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.apache.cxf.common.util.ReflectionUtil.getDeclaredFields(ReflectionUtil.java:117)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:339)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:272)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:222)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:212)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:352)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:272)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:222)
>         at
> org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:212)
>         ...
>         ...
>
> Q1: Has anybody seen this before and provide some insight?
>

related to jaxb not cxf directly, is your jaxb mapping working with
version used by tomee (= was the previous jaxb too tolerant?). Do you
provide jaxb (you shouldnt)?

> Q2: I have removed various EJB refs. from the EJBs, and it changes location
> of the error to another EJB -but doesn't solve it. Can anybody tell me what
> sort of EJB/WS issueI might be looking for here?
>

Not sure i fully get it, but if the error is related to jaxb
"touching" the object is enough.

> Q3: I have a notion that upgrading CXF (all the cxf-rt-*.jars) to a later
> version within my TomEE might help. Is this likely to cause more problems?
>

cxf 2.7 shouldn't be used in tomee if you don't exactly know what you
do + tomee is relatively up to date so I'd say don't do it.

> [BTW: The app. does load and run successfully in an older open-ejb (3.1.4),
> and we need to upgrade]
>
> Any help/pointers much appreciated.

if you handle to share something reproducing it  (a maven project
reproducing the issue with a mvn tomee:run) we could surely help you

>
> Thanks
> Ian Hunter
>
>
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/Problem-with-Apache-CXF-libs-tp4667867.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to