Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7BF770F8 for ; Thu, 8 Sep 2011 13:10:36 +0000 (UTC) Received: (qmail 77554 invoked by uid 500); 8 Sep 2011 13:10:34 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 77037 invoked by uid 500); 8 Sep 2011 13:10:24 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 77011 invoked by uid 99); 8 Sep 2011 13:10:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 13:10:22 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.146.183.187] (HELO nm13.bullet.mail.ukl.yahoo.com) (217.146.183.187) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Sep 2011 13:10:13 +0000 Received: from [217.146.183.215] by nm13.bullet.mail.ukl.yahoo.com with NNFMP; 08 Sep 2011 13:09:52 -0000 Received: from [217.146.183.62] by tm8.bullet.mail.ukl.yahoo.com with NNFMP; 08 Sep 2011 13:09:52 -0000 Received: from [127.0.0.1] by omp1031.mail.ukl.yahoo.com with NNFMP; 08 Sep 2011 13:09:52 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 93880.184.bm@omp1031.mail.ukl.yahoo.com Received: (qmail 21465 invoked by uid 60001); 8 Sep 2011 13:09:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1315487391; bh=D5QS6S0PgWKkd4rOZkCd5mRi7y5JxH1u2YQTnoG8/vY=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=O+ZAGlshbzUliK3Iadu7uVXJG6kWbtogZQuGMHO+/c6NLpahINMNyK7/pXv73FgjJqaF3Qh5RxzmZj42XVG9JcXRwIeSpWG8cxnU2OpLQlq+F8HnMigs8xHsWFob0vP1aaoUjih3v4yxWzPDNjs/0s9KV24/lR8Gl//mAVHUsWk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=vigqyuMsARg5igO7yy5ZlYGMqnJ/JY9NBGADCyEbuAOFTL0JWYu4nNMeHj0RODGxonuSXSJrCANI4ds3V8NaWX7Y7kfwVTXGIEtR+jXU1Y2XPrWRa+GuRKtu82/kMkSyhx6KLq9/EPG/YidZwkgN1rTPNwBxzatDL/ry8vARDmQ=; X-YMail-OSG: XdVQK68VM1kAKHQA5NFvA0pANHIud_a_ufrKoEjbYfC0eEp RHFCSGdKYshGEPnqsORsfOnIbbFh7HnhFPrcgJIWjMYmNb10VEaIOMwxEr6H MdTcO6xNZqrduH62sludLr6sW1MMDYSdLTVHeGT4TqS70DQwGJoxu26xbgig OcM8K3nDubfJvLfVq6jmS3_Ps4nGywHfx6l7FaRjKQGux1.b29f1WTMGlHAP pTdx2Vrlsak.m7HP4PGiy9qemioyEFmbFcIGaOPAXIF7wNs_NOm7o7AubluC 1I6Z8Z2vHuvKPqlAYJqFdYVr9brGNWVQSL5lGfKnk6aMedMU3wfqUL1H95.U irz2w0ybdMx9O.V8aGnsupdBokUghUfbCadpkvTTkx3OzIlQJ7OkhXV0fyn0 h5Zvte7YJsxda8l4GtMw- Received: from [217.5.150.53] by web27808.mail.ukl.yahoo.com via HTTP; Thu, 08 Sep 2011 14:09:51 BST X-Mailer: YahooMailClassic/14.0.5 YahooMailWebService/0.8.113.315625 Message-ID: <1315487391.20307.YahooMailClassic@web27808.mail.ukl.yahoo.com> Date: Thu, 8 Sep 2011 14:09:51 +0100 (BST) From: Thomas Chang Subject: Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath To: Maven Users List In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-522504470-1315487391=:20307" X-Virus-Checked: Checked by ClamAV on apache.org --0-522504470-1315487391=:20307 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, You are right. After I move the dependency into the plugin section, it work= s. Many thanks! Thomas --- Wayne Fay schrieb am Mi, 7.9.2011: Von: Wayne Fay Betreff: Re: Get "java.lang.NoClassDefFoundError" though the class is in th= e classpath An: "Maven Users List" Datum: Mittwoch, 7. September, 2011 16:18 Uhr > I know the class "com.sun.mirror.apt.AnnotationProcessorFactory" is in th= e tools.jar so I've add the dependency in the pom.xml as follow: > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 C:/Program Files/Java/jdk1.7.0/= lib/tools.jar > > As I run mvn dependency:build-classpath to check the included jars I can = see the tools.jar in included. You probably don't want this in your build classpath but perhaps added to the classpath of the jaxws plugin, right? Move the dependency there and try again with mvn -X to see the full classpath used for that plugin execution. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --0-522504470-1315487391=:20307--