Errors setting up openjpa projects in Eclipse

2007-01-06 Thread Rahul Thakur

Hi,

I am just starting out with OpenJPA and tried generating and importing 
projects in an Eclipse workspace but I get to see the following errors 
for all the imported modules.


[snip - as copied from Problems view]

Severity and Description Path Resource Location Creation Time Id
Cannot nest output folder 'openjpa-examples/target/classes/META-INF' 
inside output folder 'openjpa-examples/target/classes'  openjpa-examples 
Build path 1168072979859 63185


[/snip]

Thanks in advance,

Rahul 



Re: Errors setting up openjpa projects in Eclipse

2007-01-06 Thread Igor Fedorenko
How do you "generate" Eclipse projects? "mvn eclipse:eclipse" from 
OpenJPA source root almost ;-) works for me. I manually fix 
openjpa-kernel/target/generated-sources source path after importing 
projects, but everything else seems to be handled properly.


Rahul Thakur wrote:

Hi,

I am just starting out with OpenJPA and tried generating and importing 
projects in an Eclipse workspace but I get to see the following errors 
for all the imported modules.


[snip - as copied from Problems view]

Severity and Description Path Resource Location Creation Time Id
Cannot nest output folder 'openjpa-examples/target/classes/META-INF' 
inside output folder 'openjpa-examples/target/classes'  openjpa-examples 
Build path 1168072979859 63185


[/snip]

Thanks in advance,

Rahul





Re: Errors setting up openjpa projects in Eclipse

2007-01-06 Thread Michael Dick

On 1/6/07, Igor Fedorenko <[EMAIL PROTECTED]> wrote:


How do you "generate" Eclipse projects? "mvn eclipse:eclipse" from
OpenJPA source root almost ;-) works for me. I manually fix
openjpa-kernel/target/generated-sources source path after importing
projects, but everything else seems to be handled properly.



This works for me. The only other thing you need to do is define a M2_REPO
classpath variable which points to your maven 2 repository.

Rahul Thakur wrote:

> Hi,
>
> I am just starting out with OpenJPA and tried generating and importing
> projects in an Eclipse workspace but I get to see the following errors
> for all the imported modules.
>
> [snip - as copied from Problems view]
>
> Severity and Description Path Resource Location Creation Time Id
> Cannot nest output folder 'openjpa-examples/target/classes/META-INF'
> inside output folder 'openjpa-examples/target/classes'  openjpa-examples
> Build path 1168072979859 63185
>



It looks like you have openjpa-examples/target/classes/ specified as a
source folder, and openjpa-examples/target/classes/META-INF specified as the
output folder.

Try using these

Source Folders :
   openjpa-examples/src/main/java
   openjpa-examples/src/test/java

Output Folder :
   openjpa-examples/target/classes

This is what maven should set up when you run mvn eclipse:eclipse.


[/snip]
>
> Thanks in advance,
>
> Rahul
>

--

-Michael Dick


Re: Errors setting up openjpa projects in Eclipse

2007-01-06 Thread Rahul Thakur

Hi,

The following snippet in the root pom.xml causes those folders to be 
added as source folders in Eclipse.


[snip from line: 202]

   ${basedir}/../openjpa-project/
   
   NOTICE.txt
   LICENSE.txt
   DISCLAIMER.txt
   
   META-INF
   
[/snip]

IMHO, as a work around these resources could be setup in a  
element which could be activated when a release JAR is built :-)


Cheers,

Rahul


- Original Message - 
From: "Michael Dick" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, January 07, 2007 9:39 AM
Subject: Re: Errors setting up openjpa projects in Eclipse



On 1/6/07, Igor Fedorenko <[EMAIL PROTECTED]> wrote:


How do you "generate" Eclipse projects? "mvn eclipse:eclipse" from
OpenJPA source root almost ;-) works for me. I manually fix
openjpa-kernel/target/generated-sources source path after importing
projects, but everything else seems to be handled properly.



This works for me. The only other thing you need to do is define a 
M2_REPO

classpath variable which points to your maven 2 repository.

Rahul Thakur wrote:

> Hi,
>
> I am just starting out with OpenJPA and tried generating and 
> importing
> projects in an Eclipse workspace but I get to see the following 
> errors

> for all the imported modules.
>
> [snip - as copied from Problems view]
>
> Severity and Description Path Resource Location Creation Time Id
> Cannot nest output folder 
> 'openjpa-examples/target/classes/META-INF'
> inside output folder 'openjpa-examples/target/classes' 
> openjpa-examples

> Build path 1168072979859 63185
>



It looks like you have openjpa-examples/target/classes/ specified as a
source folder, and openjpa-examples/target/classes/META-INF specified 
as the

output folder.

Try using these

Source Folders :
   openjpa-examples/src/main/java
   openjpa-examples/src/test/java

Output Folder :
   openjpa-examples/target/classes

This is what maven should set up when you run mvn eclipse:eclipse.


[/snip]
>
> Thanks in advance,
>
> Rahul
>

--

-Michael Dick





Re: Errors setting up openjpa projects in Eclipse

2007-01-06 Thread Rahul Thakur


May be the openjpa devs already aware that for module 'openjpa-kernel' 
the generated sources are not added correctly as Eclipse source folders. 
This could be to do with the javacc-maven-plugin.


Cheers,

Rahul

- Original Message - 
From: "Rahul Thakur" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, January 07, 2007 9:57 AM
Subject: Re: Errors setting up openjpa projects in Eclipse



Hi,

The following snippet in the root pom.xml causes those folders to be 
added as source folders in Eclipse.


[snip from line: 202]

   ${basedir}/../openjpa-project/
   
   NOTICE.txt
   LICENSE.txt
   DISCLAIMER.txt
   
   META-INF
   
[/snip]

IMHO, as a work around these resources could be setup in a  
element which could be activated when a release JAR is built :-)


Cheers,

Rahul


- Original Message - 
From: "Michael Dick" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, January 07, 2007 9:39 AM
Subject: Re: Errors setting up openjpa projects in Eclipse



On 1/6/07, Igor Fedorenko <[EMAIL PROTECTED]> wrote:


How do you "generate" Eclipse projects? "mvn eclipse:eclipse" from
OpenJPA source root almost ;-) works for me. I manually fix
openjpa-kernel/target/generated-sources source path after importing
projects, but everything else seems to be handled properly.



This works for me. The only other thing you need to do is define a 
M2_REPO

classpath variable which points to your maven 2 repository.

Rahul Thakur wrote:

> Hi,
>
> I am just starting out with OpenJPA and tried generating and 
> importing
> projects in an Eclipse workspace but I get to see the following 
> errors

> for all the imported modules.
>
> [snip - as copied from Problems view]
>
> Severity and Description Path Resource Location Creation Time Id
> Cannot nest output folder 
> 'openjpa-examples/target/classes/META-INF'
> inside output folder 'openjpa-examples/target/classes' 
> openjpa-examples

> Build path 1168072979859 63185
>



It looks like you have openjpa-examples/target/classes/ specified as 
a
source folder, and openjpa-examples/target/classes/META-INF specified 
as the

output folder.

Try using these

Source Folders :
   openjpa-examples/src/main/java
   openjpa-examples/src/test/java

Output Folder :
   openjpa-examples/target/classes

This is what maven should set up when you run mvn eclipse:eclipse.


[/snip]
>
> Thanks in advance,
>
> Rahul
>

--

-Michael Dick







Missing ProductDerivation resource error

2007-01-06 Thread Rahul Thakur

Hi,

I am trying to create an OpenJPA Maven2 plugin that runs to the 
PCEnchancer to start with, but when I attempt to run it I get an error 
complaining about missing resource ProductDerivation (attached below). 
The message indicates that it should have been installed as a part of 
the openjpa distribution which I installed into my local m2 repo from 
instructions in docs on openjpa site.


Do I need to explicitly specify one or am I missing something here?

TIA,

Rahul


[snip]
[DEBUG] Configuring mojo 
'org.codehaus.mojo:openjpa-maven-plugin:0.0.1-SNAPSHOT:enhance' -->
[DEBUG]   (f) classes = 
E:\continuum-key-based-refactor\continuum-model\target\classes
[DEBUG]   (f) classpathElements = 
[E:\continuum-key-based-refactor\continuum-model\target\classes, 
e:\repository\classworlds\classworlds\1.1\classworlds-1.1.jar,

e:\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-10\plexus-container-default-1.0-alpha-10.jar,e:\repository\net\java\dev\stax-utils\stax-utils\20060502\stax-utils-20060502.jar,e:\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar,e:\repository\org\codehaus\plexus\plexus-utils\1.2\plexus-utils-1.2.jar][DEBUG]
   (f) pluginArtifacts 
=[net.sourceforge.serp:serp:jar:1.11.0:runtime,commons-collections:commons-collections:jar:3.2:runtime,org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:runtime,org.apache.openjpa:openjpa-lib:jar:0.9.7-incubating-SNAPSHOT:runtime,commons-logging:commons-logging:jar:1.0.4:runtime,
 
ant:ant:jar:1.6.5:runtime,org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.0.1:runtime,commons-lang:commons-lang:jar:2.1:runtime,
 
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1:runtime,org.apache.openjpa:openjpa-kernel:jar:0.9.7-incubating-SNAPSHOT:runtime,commons-pool:commons-pool:jar:1.3:runtime,
 log4j:log4j:jar:1.2
.13:runtime,org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-15:runtime,org.apache.maven:maven-artifact:jar:2.0.4:runtime,
 
org.apache.maven:maven-plugin-api:jar:2.0:runtime,org.codehaus.plexus:plexus-utils:jar:1.3:runtime][DEBUG]
   (f) toolProperties = 
{addDefaultConstructor=false,enforcePropertyRestrictions=true}[DEBUG] -- end 
configuration --[INFO] [openjpa:enhance][INFO] running OpenJPA Enhancer 
Mojo...[DEBUG] Classes Dir is 
:E:\continuum-key-based-refactor\continuum-model\target\classes[DEBUG] 
Executing command line:[DEBUG] java 
-cpE:\continuum-key-based-refactor\continuum-model\target\classes;e:\repository\classworlds\classworlds\1.1\classworlds-1.1.jar;e:\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-10\plexus-container-default-1.0-alpha-10.jar;e:\repository\net\java\dev\stax-utils\stax-utils\20060502\stax-utils-20060502.jar;e:\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;e:\repository\org\codehaus\plexus\plexus-utils\1.2\plexus-utils
-1.2.jar;E:\repository\net\sourceforge\serp\serp\1.11.0\serp-1.11.0.jar;E:\repository\commons-collections\commons-collections\3.2\commons-collections-3.2.jar;E:\repository\org\apache\geronimo\specs\geronimo-jta_1.0.1B_spec\1.0.1\geronimo-jta_1.0.1B_spec-1.0.1.jar;E:\repository\org\apache\openjpa\openjpa-lib\0.9.7-incubating-SNAPSHOT\openjpa-lib-0.9.7-incubating-SNAPSHOT.jar;E:\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;E:\repository\ant\ant\1.6.5\ant-1.6.5.jar;E:\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.0.1\geronimo-jms_1.1_spec-1.0.1.jar;E:\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;E:\repository\org\apache\geronimo\specs\geronimo-j2ee-connector_1.5_spec\1.0.1\geronimo-j2ee-connector_1.5_spec-1.0.1.jar;E:\repository\org\apache\openjpa\openjpa-kernel\0.9.7-incubating-SNAPSHOT\openjpa-kernel-0.9.7-incubating-SNAPSHOT.jar;E:\repository\commons-pool\commons-pool\1.3\commons-pool-1.3.jar;E:\repository\log4j\l
og4j\1.2.13\log4j-1.2.13.jar;D:\rnd\apps\maven-2.0.4\core\plexus-container-default-1.0-alpha-9.jar;D:\rnd\apps\maven-2.0.4\lib\maven-artifact-2.0.4.jar;D:\rnd\apps\maven-2.0.4\lib\maven-plugin-api-2.0.4.jar;D:\rnd\apps\maven-2.0.4\core\plexus-utils-1.1.jarorg.apache.openjpa.enhance.PCEnhancer
 -addDefaultConstructorfalse -enforcePropertyRestrictions 
trueE:\continuum-key-based-refactor\continuum-model\target\classes\META-INF\package.jdo[DEBUG] Exit 
code: 1[DEBUG] [DEBUG]  Standard output from the Open JPA Enhancer tool:[DEBUG] 
[INFO][DEBUG] [ERROR] [ERROR]  Standard 
error from the OpenJPA Enhancer tool:[ERROR] [ERROR] Exception in thread 
"main" java.lang.ExceptionInInitializerError
atorg.apache.openjpa.conf.BrokerFactoryValue.(BrokerFactoryValue.java:47)
atorg.apache.openjpa.conf.OpenJPAConfigurationImpl.(OpenJPAConfigurationImpl.java:178)
ator
g.apache.openjpa.conf.OpenJPAConfigurationImpl.(OpenJPAConfigurationImpl.java:154)atorg.apache.openjpa.conf.OpenJPAConfigurationImpl.(OpenJPAConfigurationImpl.java:145)atorg.apac