openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Thakur" <rahul.thakur.x...@gmail.com>
Subject Re: Missing ProductDerivation resource error
Date Tue, 09 Jan 2007 19:03:53 GMT
duh! silly me :p

Thanks for spotting that, Marc! BTW, looks like the enhancer mojo worked 
on that class .....yay! now's time to clean it up a bit!

Would you guys be OK if I start a new module for OpenJPA maven plugin 
under Mojo sandbox?

Thanks again for the help!

Cheers,
Rahul


----- Original Message ----- 
From: "Marc Prud'hommeaux" <mprudhom@apache.org>
To: <open-jpa-dev@incubator.apache.org>
Sent: Tuesday, January 09, 2007 9:58 PM
Subject: Re: Missing ProductDerivation resource error


> Rahul-
>
> Did you misspell "apache" in 
> "org.apacha.maven.continuum.model.project.Schedule"?
>
>
>
>
> On Jan 9, 2007, at 12:53 AM, Rahul Thakur wrote:
>
>> okies, my work is progressing in trickles as I am squeezing some 
>> time outside work :-)
>>
>> Here's the latest issue while trying to process a bunch of .class 
>> files with Enhancer. It seems my orm.xml is missing something that 
>> is causing the PersistenceMetaDataFactory parse operation to fail, 
>> but not sure what. I have setup only one very basic persistent 
>> entity to get started with. Any ideas? I tried googling for some 
>> orm.xml samples but not many examples.
>>
>> TIA,
>> Rahul
>>
>> [snip]
>> [ERROR]  Standard error from the OpenJPA Enhancer tool:
>> [ERROR] --------------------
>> [ERROR] 109  openjpa  INFO   [main] openjpa.Tool - Enhancer running 
>> on type "class org.apache.maven.continuum.model.project.Schedule".
>> Exception in thread "main" <0|false|0.9.7-incubating-SNAPSHOT> 
>> org.apache.openjpa.util.GeneralException: org.xml.sax.SAXException: 
>> file:/E:/continuum-key-based-r
>> efactor/continuum-model/target/classes/META-INF/orm.xml [Location: 
>> Line: 7, C: 94]: Type 
>> "org.apacha.maven.continuum.model.project.Schedule" could not be 
>> instant
>> iated.
>>        at 
>> org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML 
>> (PersistenceMetaDataFactory.java:231)
>>        at 
>> org.apache.openjpa.persistence.PersistenceMetaDataFactory.load 
>> (PersistenceMetaDataFactory.java:180)
>>        at 
>> org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal 
>> (MetaDataRepository.java:414)
>>        at org.apache.openjpa.meta.MetaDataRepository.getMetaData 
>> (MetaDataRepository.java:272)
>>        at org.apache.openjpa.enhance.PCEnhancer.<init> 
>> (PCEnhancer.java:186)
>>        at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java: 
>> 3680)
>>        at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java: 
>> 3635)
>>        at org.apache.openjpa.enhance.PCEnhancer.main 
>> (PCEnhancer.java:3607)
>> Caused by: java.io.IOException: org.xml.sax.SAXException: file:/E:/ 
>> continuum-key-based-refactor/continuum-model/target/classes/META- 
>> INF/orm.xml [Location: Line:
>> 7, C: 94]: Type "org.apacha.maven.continuum.model.project.Schedule" 
>> could not be instantiated.
>>        at 
>> org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource 
>> (XMLMetaDataParser.java:373)
>>        at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse 
>> (XMLMetaDataParser.java:312)
>>        at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse 
>> (XMLMetaDataParser.java:289)
>>        at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse 
>> (XMLMetaDataParser.java:263)
>>        at 
>> org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML 
>> (PersistenceMetaDataFactory.java:229)
>>        ... 7 more
>> Caused by: org.xml.sax.SAXException: file:/E:/continuum-key-based- 
>> refactor/continuum-model/target/classes/META-INF/orm.xml [Location: 
>> Line: 7, C: 94]: Type "org.
>> apacha.maven.continuum.model.project.Schedule" could not be 
>> instantiated.
>>        at org.apache.openjpa.lib.meta.XMLMetaDataParser.getException 
>> (XMLMetaDataParser.java:649)
>>        at org.apache.openjpa.lib.meta.CFMetaDataParser.classForName 
>> (CFMetaDataParser.java:281)
>>        at 
>> org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.classForNa 
>> me(XMLPersistenceMetaDataParser.java:1642)
>>        at 
>> org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.startClass 
>> (XMLPersistenceMetaDataParser.java:713)
>>        at org.apache.openjpa.lib.meta.CFMetaDataParser.startElement 
>> (CFMetaDataParser.java:102)
>>        at org.apache.openjpa.lib.meta.XMLMetaDataParser.startElement 
>> (XMLMetaDataParser.java:426)
>>        at 
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElem 
>> ent(AbstractSAXParser.java:533)
>>        at 
>> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEle 
>> ment(XMLSchemaValidator.java:708)
>>        at 
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanS 
>> tartElement(XMLNSDocumentScannerImpl.java:330)
>>        at 
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl 
>> $FragmentContentDispatcher.dispatch 
>> (XMLDocumentFragmentScannerImpl.java:1693)
>>        at 
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl 
>> .scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>>        at 
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
>> (XML11Configuration.java:834)
>>        at 
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
>> (XML11Configuration.java:764)
>>        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse 
>> (XMLParser.java:148)
>>        at 
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse 
>> (AbstractSAXParser.java:1242)
>>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>>        at 
>> org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource 
>> (XMLMetaDataParser.java:370)
>>        ... 11 more
>>
>> [ERROR] --------------------
>> 
>> INFO]  ----------------------------------------------------------------------
>> --
>> [ERROR] BUILD ERROR
>> 
>> INFO]  ----------------------------------------------------------------------
>> --
>> [INFO] The OpenJPA Enhancer tool exited with a non-null exit code.
>> 
>> INFO]  ----------------------------------------------------------------------
>> --
>> [DEBUG] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: The OpenJPA 
>> Enhancer tool exited with a non-null exit code.
>>        at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
>> (DefaultLifecycleExecutor.java:559)
>>        at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneG 
>> oal(DefaultLifecycleExecutor.java:488)
>>        at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
>> (DefaultLifecycleExecutor.java:458)
>>        at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand 
>> leFailures(DefaultLifecycleExecutor.java:306)
>>        at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment 
>> s(DefaultLifecycleExecutor.java:273)
>>        at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
>> (DefaultLifecycleExecutor.java:140)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
>> 322)
>>        at 
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke 
>> (NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke 
>> (DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        at org.codehaus.classworlds.Launcher.launchEnhanced 
>> (Launcher.java:315)
>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>        at org.codehaus.classworlds.Launcher.mainWithExitCode 
>> (Launcher.java:430)
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: The 
>> OpenJPA Enhancer tool exited with a non-null exit code.
>>        at org.codehaus.mojo.openjpa.OpenJpaEnhancerMojo.enhance 
>> (OpenJpaEnhancerMojo.java:254)
>>        at org.codehaus.mojo.openjpa.OpenJpaEnhancerMojo.execute 
>> (OpenJpaEnhancerMojo.java:130)
>>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
>> (DefaultPluginManager.java:412)
>>        at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
>> (DefaultLifecycleExecutor.java:534)
>>        ... 16 more
>> 
>> INFO]  ----------------------------------------------------------------------
>> --
>> [INFO] Total time: 11 seconds
>> [INFO] Finished at: Tue Jan 09 21:43:49 NZDT 2007
>> [INFO] Final Memory: 11M/20M
>> 
>> INFO]  ----------------------------------------------------------------------
>> --
>> [/snip]
>>
>>
>>
>>
>>
>> ----- Original Message ----- From: "Rahul Thakur" 
>> <rahul.thakur.xdev@gmail.com>
>> To: <open-jpa-dev@incubator.apache.org>
>> Sent: Tuesday, January 09, 2007 8:16 AM
>> Subject: Re: Missing ProductDerivation resource error
>>
>>
>>> Thanks Michael, Kevin,
>>>
>>> I think I am making some progress on the Maven plugin.
>>>
>>> If possible, having one of you guys around on IRC would be a big 
>>> help for quick questions (I promise to keep them limited) ;-)
>>>
>>> Thanks again,
>>> Rahul
>>>
>>> ----- Original Message ----- From: "Kevin Sutter" 
>>> <kwsutter@gmail.com>
>>> To: <open-jpa-dev@incubator.apache.org>
>>> Sent: Tuesday, January 09, 2007 7:50 AM
>>> Subject: Re: Missing ProductDerivation resource error
>>>
>>>
>>>> Rahul,
>>>> You are referencing old documentation.  Please use the following 
>>>> links for
>>>> the current OpenJPA documentation.  Thank you.
>>>>
>>>> http://cwiki.apache.org/confluence/display/openjpa/OpenJPA 
>>>> +Documentation
>>>>
>>>> Mike has answered the specific question about "jdo" support in 
>>>> OpenJPA in
>>>> the previous reply.
>>>>
>>>> Kevin
>>>>
>>
> 


Mime
View raw message