Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 24123 invoked from network); 28 Aug 2010 14:48:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Aug 2010 14:48:38 -0000 Received: (qmail 38855 invoked by uid 500); 28 Aug 2010 14:48:38 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 38063 invoked by uid 500); 28 Aug 2010 14:48:34 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 38039 invoked by uid 99); 28 Aug 2010 14:48:32 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Aug 2010 14:48:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Aug 2010 14:48:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7SElrpl014402 for ; Sat, 28 Aug 2010 14:47:54 GMT Message-ID: <27434561.50961283006873810.JavaMail.jira@thor> Date: Sat, 28 Aug 2010 10:47:53 -0400 (EDT) From: "Rich Scheuerle (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Created: (AXIS2-4803) JAXWS: A RequestWrapper or ResponseWrapper class may lack an @XmlRootElement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org JAXWS: A RequestWrapper or ResponseWrapper class may lack an @XmlRootElement ---------------------------------------------------------------------------- Key: AXIS2-4803 URL: https://issues.apache.org/jira/browse/AXIS2-4803 Project: Axis2 Issue Type: Bug Reporter: Rich Scheuerle Assignee: Rich Scheuerle Background: The JAX-WS @RequestWrapper and @ResponseWrapper annotations identify JAXB beans to marshal and unmarshal the data. The JAXB wrapper bean normally contains an @XmlRootElement annotation, which defines the xsd:element rendering of the data. However the @XmlRootElement is not required. Prior changes to the JAX-WS runtime have enabled support for wrappers with just the @XmlType annotation. The JAX-WS engine constructs a JAXBContext using the packages referenced by the web service when all of the referenced packages contain a JAXB ObjectFactory. This strategy assumes that each ObjectFactory will reference all of the beans representing root types and that all other necessary beans have an @XmlRootElement annotation. Problem: We encountered the following scenario: * The @RequestWrapper references a JAXB bean. * The wrapper bean does not have an @XmlRootElement, but it does have an @XmlType. * The ObjectFactory does not reference the wrapper bean. The current runtime fails to include the JAXB bean in its JAXBContext. This causes marshaling and unmarshaling failures. Solution: The JAXBUtils code constructs the JAXBContext. JAXBUtils has a list of all of the classes referenced by the web service. Code will be added to inspect the new JAXBContext to ensure that it contains all of the referenced classes. If it does not, the code will fall back to the pre-existing "construct JAXBContext using individual classes" algorithm. This is a small change. -- 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: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org