axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Scheuerle (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/AXIS2-3735
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


Background:
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.

Problem:
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 "foo.bar".
) This leads to failures.

Solution:
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message