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] Updated: (AXIS2-1805) JAX-WS JAXBContext construction with package contextPath
Date Fri, 01 Dec 2006 21:52:24 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-1805?page=all ]

Rich Scheuerle updated AXIS2-1805:
----------------------------------

    Description: 
There are two ways to construct a JAXBContext..
   1) newInstance constructor that takes an Class[] of all of the JAXB classes.
    2) newInstance constructor tha takes a String that is a colon separated list of packages.

Currently jaxws does (1), which is error prone.  

However we encountered problems in the past using (2).  We think the problems with (2) were
due to the fact that wsgen does not generate ObjectFactory classes in each package.


Solution: Change the code to look for ObjectFactory and packageinfo in each package.  If they
exist use approach (2) otherwise fallback to approach (1).



  was:
There are two ways to construct a JAXBContext..
   1) newInstance constructor that takes an Class[] of all of the JAXB classes.
    2) newInstance constructor tha takes a String that is a colon separated list of packages.

Currently jaxws does (1), which is error prone.  

However we encountered problems in the past using (2).  We think the problems with (2) were
due to the fact that wsgen does not generate ObjectFactory classes in each package.

This issue is opened to investigate possible solutions.  Here are some ideas:

A)  Write a test that deliberately removes the ObjectFactory and packageinfo from a JAXB package
and verify that (2) does not work.

B)  Change the code to look for ObjectFactory and packageinfo in each package.  If they exist
use approach (2) otherwise fallback to approach (1).




> JAX-WS JAXBContext construction with package contextPath
> --------------------------------------------------------
>
>                 Key: AXIS2-1805
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1805
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>            Reporter: Rich Scheuerle
>         Attachments: JAXBUtils.java
>
>
> There are two ways to construct a JAXBContext..
>    1) newInstance constructor that takes an Class[] of all of the JAXB classes.
>     2) newInstance constructor tha takes a String that is a colon separated list of packages.
> Currently jaxws does (1), which is error prone.  
> However we encountered problems in the past using (2).  We think the problems with (2)
were due to the fact that wsgen does not generate ObjectFactory classes in each package.
> Solution: Change the code to look for ObjectFactory and packageinfo in each package.
 If they exist use approach (2) otherwise fallback to approach (1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
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