axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Scheuerle (JIRA)" <>
Subject [jira] Created: (AXIS2-3735) JAX-WS: JAXBUtils should not load classes from nested packages
Date Sat, 12 Apr 2008 12:11:04 GMT
JAX-WS: JAXBUtils should not load classes from nested packages

                 Key: AXIS2-3735
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle

JAXBUtils is the utility class that loads and caches JAXBContext objects.  A two stage algorithm
is used.  
First, a JAXBContext.newInstance(packageContext) is attempted with the list of input packages.
Second, if the first initialization fails (i.e. due to missing ObjectFactory classes), then
JAXBContext attempts to finds the JAXB related classes in the packages and constructs JAXBContext
with the newInstance(Class[]) method.

During this second (fallback) step in the algorithm, JAXBUtils is incorrectly trying to load
classes in nested packages.  (For example, if the input package is "foo", the algorithm should
only consider the classes in "foo", but instead it is also considering the classes in "".
) This leads to failures.

I am correcting the finder algorithm in JAXBUtils and ClassFinderImpl.  

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message