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 685B41044C for ; Wed, 17 Dec 2014 00:22:26 +0000 (UTC) Received: (qmail 17433 invoked by uid 500); 17 Dec 2014 00:22:25 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 17389 invoked by uid 500); 17 Dec 2014 00:22:25 -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 17378 invoked by uid 99); 17 Dec 2014 00:22:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 00:22:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS,T_FROM_12LTRDOM X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trent@trentonadams.ca designates 209.141.41.105 as permitted sender) Received: from [209.141.41.105] (HELO mail3.adamsbros.org) (209.141.41.105) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 00:21:57 +0000 Received: from tdanas.local (d75-158-234-217.abhsia.telus.net [75.158.234.217]) by mail3.adamsbros.org (Postfix) with ESMTP id 1D3A6295 for ; Tue, 16 Dec 2014 17:20:44 -0700 (MST) Received: from [192.168.8.4] (tda-desktop [192.168.8.4]) by tdanas.local (Postfix) with ESMTP id 3BED5DF239 for ; Tue, 16 Dec 2014 17:22:34 -0700 (MST) Message-ID: <5490CC82.4010204@trentonadams.ca> Date: Tue, 16 Dec 2014 17:21:22 -0700 From: "Trenton D. Adams" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: users@openjpa.apache.org Subject: ClassCastException on maven enhancing Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Good day, I have a maven build. When I run "mvn install" my unit tests run just fine, as does the enhancer... [INFO] --- openjpa-maven-plugin:1.1:enhance (enhancer) @ webdirectory --- 66 athome INFO [main] openjpa.Tool - Enhancer running on type "ca.tnt.athome.Town". 190 athome INFO [main] openjpa.Tool - Enhancer running on type "ca.tnt.athome.HouseListing". But, when I run "mvn install tomcat:deploy", the enhancer plugin tries to run again, and this... [INFO] --- openjpa-maven-plugin:1.1:enhance (enhancer) @ webdirectory --- An error occurred while attempting to determine the version of "file:/home/trenta/LocalDocuments/development/java/athome/web-directory/target/classes/META-INF/persistence.xml". [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.535 s [INFO] Finished at: 2014-12-16T17:18:11-07:00 [INFO] Final Memory: 13M/218M [INFO] ------------------------------------------------------------------------ [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] I've been googling, and trying to debug this for awhile, and just don't know what it is. Any ideas? Maven plugin configuration below. org.codehaus.mojo openjpa-maven-plugin 1.1 **/entities/*.class **/entities/XML*.class true true enhancer process-classes enhance org.apache.openjpa openjpa-all 2.3.0