From open-jpa-dev-return-298-apmail-incubator-open-jpa-dev-archive=incubator.apache.org@incubator.apache.org Fri Aug 11 12:35:40 2006 Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 26663 invoked from network); 11 Aug 2006 12:35:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 12:35:40 -0000 Received: (qmail 59364 invoked by uid 500); 11 Aug 2006 12:35:39 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 59342 invoked by uid 500); 11 Aug 2006 12:35:39 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 59333 invoked by uid 99); 11 Aug 2006 12:35:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 05:35:39 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.251.13.221] (HELO smtp.pjm.com) (192.251.13.221) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 05:35:38 -0700 Received: from vams.smtp.pjm.com (localhost [127.0.0.1]) by smtp.pjm.com (Postfix) with SMTP id 00B18572EE for ; Fri, 11 Aug 2006 08:16:48 -0400 (EDT) Received: from PRIVATE by PRIVATE with ESMTP id DB61B572EE for ; Fri, 11 Aug 2006 08:16:47 -0400 (EDT) Received: from PRIVATE by PRIVATE with ESMTP id k7BCGls19239 for ; Fri, 11 Aug 2006 08:16:47 -0400 From: hornbn@pjm.com Received: from PRIVATE by PRIVATE with NetIQ MailMarshal 6.0 Service Pack 1a (v6,0,3,33) id ; Fri, 11 Aug 2006 08:16:47 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6BD40.02FD9E50" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: FW: [jira] Commented: (OPENJPA-8) java.util.MissingResourceException: system is missing product derivations Date: Fri, 11 Aug 2006 08:16:45 -0400 Message-ID: <98D8585D641AFB4488D1AE0E1B7D33FD03F026BA@ech03awp.corp.ds.pjm.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [jira] Commented: (OPENJPA-8) java.util.MissingResourceException: system is missing product derivations Thread-Index: Aca8x8sqBK8eFKWlSZiEkfZFXalADgAcgSAAAAFw/iA= To: X-AntiVirus: checked by VAMS X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6BD40.02FD9E50 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I forgot one piece of this. If the Enhancer classpath points to the lib with the jar files, this error will occur. I had to unpack all of the jars into a single directory and call that the classpath to get past this problem. =20 =20 -----Original Message----- From: Hornbeck, Neil=20 Sent: Friday, August 11, 2006 7:56 AM To: 'open-jpa-dev@incubator.apache.org' Subject: RE: [jira] Commented: (OPENJPA-8) java.util.MissingResourceException: system is missing product derivations Bryan, I am not so sure that I have a fix. I was using the ant task, and when I fixed this, other issues popped up. I am hesitant to publish a fix since I still don't know what the root cause was, and the fact that new problems popped up makes me doubt its value, but here it is. The 'fix' was to add the classpath to both the taskdef and the target: =20 =20 opja.cp referrences both the openjpa code and my code, it may be cleaner to create one classpath to the Enhancer code for the taskdef, and another classpath for source code that the target uses. I haven't tried this yet. =20 Neil =20 =20 -----Original Message----- From: Bryan Noll (JIRA) [mailto:jira@apache.org] Sent: Thursday, August 10, 2006 5:53 PM To: open-jpa-dev@incubator.apache.org Subject: [jira] Commented: (OPENJPA-8) java.util.MissingResourceException: system is missing product derivations [ http://issues.apache.org/jira/browse/OPENJPA-8?page=3Dcomments#action_124= 2 7355 ] =20 Bryan Noll commented on OPENJPA-8: ---------------------------------- Would you mind attaching your solution. I've run into the same problem... and it would be a time saving thing to havve a fix for it acceible here. Thanks. > java.util.MissingResourceException: system is missing product > derivations > ------------------------------------------------------------------------ - > > Key: OPENJPA-8 > URL: http://issues.apache.org/jira/browse/OPENJPA-8 > Project: OpenJPA > Issue Type: Bug > Environment: Windows 2000, using ant build. > Reporter: Neil Hornbeck > Priority: Blocker > > I am trying to run the openjpac from within ant. I am getting the > error that the file META-INF/services/org.apache.openjpa.conf.ProductDerivation is missing but it is right on the classpath that the Enhancer is running from. > +++ > [openjpac] java.lang.ExceptionInInitializerError > [openjpac] at org.apache.openjpa.conf.OpenJPAConfigurationImpl.(OpenJPAConfigura tionImpl.java:516) > [openjpac] at org.apache.openjpa.conf.OpenJPAConfigurationImpl.(OpenJPAConfigura tionImpl.java:165) > [openjpac] at org.apache.openjpa.conf.OpenJPAConfigurationImpl.(OpenJPAConfigura tionImpl.java:155) > [openjpac] at org.apache.openjpa.ant.PCEnhancerTask.newConfiguration(PCEnhancerTask.ja va:77) > [openjpac] at org.apache.openjpa.lib.ant.AbstractTask.getConfiguration(AbstractTask.ja va:89) > [openjpac] at org.apache.openjpa.ant.PCEnhancerTask.executeOn(PCEnhancerTask.java:84) > [openjpac] at org.apache.openjpa.lib.ant.AbstractTask.execute(AbstractTask.java:153) > [openjpac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > [openjpac] at org.apache.tools.ant.Task.perform(Task.java:364) > [openjpac] at org.apache.tools.ant.Target.execute(Target.java:341) > [openjpac] at org.apache.tools.ant.Target.performTasks(Target.java:369) > [openjpac] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > [openjpac] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > [openjpac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut or.java:40) > [openjpac] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) > [openjpac] at org.apache.tools.ant.Main.runBuild(Main.java:668) > [openjpac] at org.apache.tools.ant.Main.startAnt(Main.java:187) > [openjpac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > [openjpac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > [openjpac] Caused by: java.util.MissingResourceException: Your system > is missing product derivations. Product derivations provide > configuration options for supported da ta stores and specifications. You must have a META-INF/services/org.apache.openjpa.conf.ProductDerivation file in your classpath listing the available derivation classes , and some listed class must be instantiable. Typically this file is bundled as part of the distribution. Have you unbundled it, or unbundled its listed classes? > [openjpac] at org.apache.openjpa.conf.ProductDerivations.(ProductDerivations.j ava:53) > [openjpac] ... 19 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 ------_=_NextPart_001_01C6BD40.02FD9E50--