Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 42201 invoked from network); 19 Jan 2009 07:36:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2009 07:36:20 -0000 Received: (qmail 91304 invoked by uid 500); 19 Jan 2009 07:36:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 91285 invoked by uid 500); 19 Jan 2009 07:36:20 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 91274 invoked by uid 99); 19 Jan 2009 07:36:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jan 2009 23:36:20 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2009 07:36:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8106F234C485 for ; Sun, 18 Jan 2009 23:35:59 -0800 (PST) Message-ID: <1706948653.1232350559514.JavaMail.jira@brutus> Date: Sun, 18 Jan 2009 23:35:59 -0800 (PST) From: "Forrest Xia (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-1992) cxf tools should honor "java.home" property to search javac for compiling generated java beans. In-Reply-To: <1603778653.1232349719485.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Forrest Xia updated CXF-1992: ----------------------------- Attachment: cxf-1992.patch a patch to honor java.home to use the javac in it. Please review and help commit. thanks! > cxf tools should honor "java.home" property to search javac for compiling generated java beans. > ----------------------------------------------------------------------------------------------- > > Key: CXF-1992 > URL: https://issues.apache.org/jira/browse/CXF-1992 > Project: CXF > Issue Type: Bug > Affects Versions: 2.1.3 > Environment: jdk 1.6 > ubuntu 8.04 > Reporter: Forrest Xia > Fix For: 2.1.4 > > Attachments: cxf-1992.patch > > > When I am using cxf tools to generate web service artifacts, if choosing to compile generated java beans, my system initially shown me a error msg like this: > "Syntax error, annotations are only available if source level is 5.0" > After studying for a while, found out it's caused by incorrect javac used for compilation. > Current cxf tooling Compiler.java assume to use the "javac" on the PATH variable, it doesn't honor JAVA_HOME setting when setted for excuting cxf tools. > I think it might be better to check to use "javac" in the JAVA_HOME path, then use the one in the PATH variable. > Make sense? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.