You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Mike Rheinheimer (JIRA)" <ji...@apache.org> on 2007/01/17 04:21:27 UTC
[jira] Created: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
jaxws should detect default sub-package for JAXB context
--------------------------------------------------------
Key: AXIS2-1989
URL: https://issues.apache.org/jira/browse/AXIS2-1989
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: jaxws
Reporter: Mike Rheinheimer
Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Updated: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Nikhil Thaker (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikhil Thaker updated AXIS2-1989:
---------------------------------
Attachment: classFinder_patch.txt
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: classFinder_patch.txt, jaxbutils_patch.txt, patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Closed: (AXIS2-1989) jaxws should detect default sub-package
for JAXB context
Posted by "Nikhil Thaker (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikhil Thaker closed AXIS2-1989.
--------------------------------
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: classFinder_patch.txt, jaxbutils_patch.txt, patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
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
[jira] Resolved: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Nikhil Thaker (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikhil Thaker resolved AXIS2-1989.
----------------------------------
Resolution: Fixed
Revision # 497676
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: classFinder_patch.txt, jaxbutils_patch.txt, patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
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
[jira] Commented: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465916 ]
Mike Rheinheimer commented on AXIS2-1989:
-----------------------------------------
AHA! Found two problems that need to be resolved:
1. The second line in JAXBUtils.getClassesFromJar may throw a ClassCastException, which trickles up too far.
2. The JAXBUtils.getAllClassesFromPackage should be a best-effort method. Currently, it can throw a ClassNotFound exception,
thus not return its classes object, thus too few classes are populated into the list for use by the JAXBContext.
The attached patch fixes 2. It does NOT fix 1, but rather has a hack in it to protect callers from the ClassCastException it may throw.
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: jaxbutils_patch.txt, patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Commented: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Nikhil Thaker (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466557 ]
Nikhil Thaker commented on AXIS2-1989:
--------------------------------------
Adding code to separate reading of jar files from JAXBUtils. Introducing factory call in JAXBUtill that will use the new ClassFinder interface to read the classes from jar file.
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: jaxbutils_patch.txt, patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Assigned: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Nikhil Thaker (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikhil Thaker reassigned AXIS2-1989:
------------------------------------
Assignee: Nikhil Thaker
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Commented: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Nikhil Thaker (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465860 ]
Nikhil Thaker commented on AXIS2-1989:
--------------------------------------
Based on my conversation with Rich, I have reolved the first problem where in we where getting wrong defualt for ResponseWrapper annotation. I will check in the patch to fix that issue.
The next problem is to make sure that we do not get OperationDescription for constructors defined in a Bean. Dustin has provided that fix and has already been checked.
I will perform test with both these patches to see if Unmarshalling exception still persists.
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Commented: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465571 ]
Rich Scheuerle commented on AXIS2-1989:
---------------------------------------
We may take a different approach. This patch may not be ready yet.
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Attachments: patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Commented: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466108 ]
Mike Rheinheimer commented on AXIS2-1989:
-----------------------------------------
Nikhil says jaxbutils_patch.txt was applied in SVN rev 497827
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: jaxbutils_patch.txt, patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Updated: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Rheinheimer updated AXIS2-1989:
------------------------------------
Attachment: patch.txt
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Attachments: patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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
[jira] Updated: (AXIS2-1989) jaxws should detect default
sub-package for JAXB context
Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Rheinheimer updated AXIS2-1989:
------------------------------------
Attachment: jaxbutils_patch.txt
> jaxws should detect default sub-package for JAXB context
> --------------------------------------------------------
>
> Key: AXIS2-1989
> URL: https://issues.apache.org/jira/browse/AXIS2-1989
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Mike Rheinheimer
> Assigned To: Nikhil Thaker
> Attachments: jaxbutils_patch.txt, patch.txt
>
>
> Generated server code may or may not have an ObjectFactory class. Also, generated server code may or may not have @RequestWrapper or @ResponseWrapper annotations. If the ObjectFactory class is missing, and the @RequestWrapper and/or @ResponseWrapper annotation is missing, the jaxws code currently throws exception:
> javax.xml.bind.UnmarshalException: unexpected element (uri:"http://sample.namespace.org", local:"returnArrayOfString"). Expected elements are (none)
> As I understand, the JAXWS code now has JAXBUtils.getClassesFromJarFile(). This new method, in conjunction with the attached patch, should get us the default wrapper class(es) in the absence of the annotations and ObjectFactory class.
> I hope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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