From users-return-11703-apmail-openjpa-users-archive=openjpa.apache.org@openjpa.apache.org Sun Dec 21 17:20:23 2014 Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FEC810FD4 for ; Sun, 21 Dec 2014 17:20:23 +0000 (UTC) Received: (qmail 50306 invoked by uid 500); 21 Dec 2014 17:20:22 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 50252 invoked by uid 500); 21 Dec 2014 17:20:22 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 50240 invoked by uid 99); 21 Dec 2014 17:20:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Dec 2014 17:20:21 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of curtisr7@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Dec 2014 17:19:55 +0000 Received: by mail-ob0-f170.google.com with SMTP id wp18so18552210obc.1 for ; Sun, 21 Dec 2014 09:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FhFna4NOI+85ZC5ttOpoleSht9eOFkIK5+ff/D7b4CA=; b=0WxQB5TE8oeA0JmdcuhOZQoVpTcJzKlVCDu2s0l9CJzXplN7b8FlmDmPkAO75s9OY1 xXHiCo8lzq3fZltY2ikVzFSlGcmKVRKKSjuz/nwldFvVgRtcVxPXBaVU7OjEbMe2G0E1 FkqoGjQtKPxx8xC/06gumILjKUkGv6A502Sq1xWqloV9oca5jjavN5OffuZN/qBxmXKt 5Y8BSLds1mScy2yjup69My4z8WyW5o+Ed/HId02sZ7alQeyCOmfaWFb+3qnQa4Ox3ySX Wr222l8eqxkLZ/RGIEg1u25vklkaaQPdMK3xnZ72a9hYVE+ZZYlW5rDUcQpGHDPMZi9P ZXnA== MIME-Version: 1.0 X-Received: by 10.182.118.169 with SMTP id kn9mr10732099obb.57.1419182349600; Sun, 21 Dec 2014 09:19:09 -0800 (PST) Received: by 10.60.167.136 with HTTP; Sun, 21 Dec 2014 09:19:09 -0800 (PST) In-Reply-To: <54966ED1.6050101@trentonadams.ca> References: <5490CC82.4010204@trentonadams.ca> <5490E54D.5000601@trentonadams.ca> <5490F9A8.9050309@trentonadams.ca> <54966ED1.6050101@trentonadams.ca> Date: Sun, 21 Dec 2014 11:19:09 -0600 Message-ID: Subject: Re: ClassCastException on maven enhancing From: Rick Curtis To: users Content-Type: multipart/alternative; boundary=089e0149cdc8d1cd8b050abd232e X-Virus-Checked: Checked by ClamAV on apache.org --089e0149cdc8d1cd8b050abd232e Content-Type: text/plain; charset=ISO-8859-1 > Seems like maybe an openjpa maven plugin bug? I would guess that the openjpa maven plugin class dependencies are conflicting with the tomcat6 dependencies. Can you run mvn install followed by mvn tomcat6:deploy? On Sun, Dec 21, 2014 at 12:55 AM, Trenton D. Adams wrote: > > On 2014-12-16 8:34 PM, Trenton D. Adams wrote: > >> The following now works. >> mvn install tomcat6:deploy >> > > Correction, this works... > mvn tomcat6:deploy > > As does... > mvn tomcat6:undeploy tomcat6:deploy > > But this does not... > mvn install tomcat6:deploy > > Which fails with the previously mentioned error of... > [ERROR] Failed to execute goal org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance > (enhancer) on project webdirectory: Execution enhancer of goal > org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed: > org.apache.openjpa.persistence.PersistenceProductDerivation:java.lang.ClassCastException: > org.apache.xerces.parsers.XML11Configuration cannot be cast to > org.apache.xerces.xni.parser.XMLParserConfiguration -> [Help 1] > > Any ideas on why an "install" would make it fail, even though install is > presumably a requirement of tomcat6:deploy anyhow? > > Seems like maybe an openjpa maven plugin bug? > -- *Rick Curtis* --089e0149cdc8d1cd8b050abd232e--