You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by ruchi goel <Ru...@Sun.COM> on 2007/06/01 14:36:41 UTC
Re: error compiling jcr-mapping in Jackrabbit source tree
Christophe Lombart wrote:
> On 5/31/07, ruchi goel <Ru...@sun.com> wrote:
>>
>> Christophe Lombart wrote:
>> > Hi Ruchi,
>> >
>> > Sorry for the delay. It was a long wk here. I don't understand your
>> > compile
>> > issue. It is not necessary to download manually the JTA jar. It is a
>> > Jackrabbit dependency. Do you have in your m2 repo the following
>> folder
>> :
>> > repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1 ?
>> Yes, I have this.
>> >
>> > Did you run "mvn install" from the Jackrabbit home folder ?
>> I first tried mvn install from Jackrabbit home folder but it did not
>> create targets for jcr-mapping.
>
>
>
> Right. All projects in contrib are not installed auto.
>
> Then I tried building jcr-maping layer separately.
>
>
>
> Is it working now ?
>
No. I did svn update. I have in my m2 repo the following folder :
: repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1
Added following dependency in pom.xml
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.0.1B_spec</artifactId>
<version>1.0.1</version>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.0.1B_spec</artifactId>
<version>1.0.1</version>
<scope>test</scope>
</dependency>
Still I get the following error :
[INFO] Compilation failure
*E:\cms\JackrabbitNew\contrib\jackrabbit-jcr-mapping\jcr-mapping\src\main\java\org\apache\jackrabbit\ocm\transaction\jackrabbit\UserTransactionImpl.java:[22,25]
cannot find symbol
symbol : class UserTransaction
location: package javax.transaction
and similar errors. Basically compiler is not able to find
javax.transaction.
*
What is it that I am missing ?
regards,
Ruchi
Re: error compiling jcr-mapping in Jackrabbit source tree
Posted by Christophe Lombart <ch...@gmail.com>.
Check also if maven 2 is correctly installed.
thanks,
Christophe
On 6/6/07, Jukka Zitting <ju...@gmail.com> wrote:
>
> Hi,
>
> On 6/6/07, Christophe Lombart <ch...@gmail.com> wrote:
> > I made some tests on another pc and i can compile jackrabbit and the
> > jcr-mapping (ocm) subproject.
> > I didn't get the JTA dependency error. I'm just wondering if others have
> the
> > same problem ?
>
> I'm not seeing it either, "mvn install" works fine for me in jcr-mapping.
>
> Ruchi, perhaps there's something wrong with your enviroment. Can you
> try clearing your local Maven repository and getting a fresh checkout
> of jcr-mapping?
>
> BR,
>
> Jukka Zitting
>
Re: error compiling jcr-mapping in Jackrabbit source tree
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 6/6/07, Christophe Lombart <ch...@gmail.com> wrote:
> I made some tests on another pc and i can compile jackrabbit and the
> jcr-mapping (ocm) subproject.
> I didn't get the JTA dependency error. I'm just wondering if others have the
> same problem ?
I'm not seeing it either, "mvn install" works fine for me in jcr-mapping.
Ruchi, perhaps there's something wrong with your enviroment. Can you
try clearing your local Maven repository and getting a fresh checkout
of jcr-mapping?
BR,
Jukka Zitting
Re: error compiling jcr-mapping in Jackrabbit source tree
Posted by Christophe Lombart <ch...@gmail.com>.
Ruchi,
I made some tests on another pc and i can compile jackrabbit and the
jcr-mapping (ocm) subproject.
I didn't get the JTA dependency error. I'm just wondering if others have the
same problem ?
If you want, we can make a chat and try to review this issue together. Let
me know when you have time tommorow.
br,
christophe
On 6/1/07, ruchi goel < Ruchi.Goel@sun.com> wrote:
>
> Christophe Lombart wrote:
> > On 5/31/07, ruchi goel <Ru...@sun.com> wrote:
> >>
> >> Christophe Lombart wrote:
> >> > Hi Ruchi,
> >> >
> >> > Sorry for the delay. It was a long wk here. I don't understand your
> >> > compile
> >> > issue. It is not necessary to download manually the JTA jar. It is a
> >> > Jackrabbit dependency. Do you have in your m2 repo the following
> >> folder
> >> :
> >> > repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1 ?
> >> Yes, I have this.
> >> >
> >> > Did you run "mvn install" from the Jackrabbit home folder ?
> >> I first tried mvn install from Jackrabbit home folder but it did not
> >> create targets for jcr-mapping.
> >
> >
> >
> > Right. All projects in contrib are not installed auto.
> >
> > Then I tried building jcr-maping layer separately.
> >
> >
> >
> > Is it working now ?
> >
> No. I did svn update. I have in my m2 repo the following folder :
> : repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1
>
> Added following dependency in pom.xml
> <dependency>
> <groupId>org.apache.geronimo.specs</groupId>
> <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
> <version>1.0.1</version>
> </dependency>
>
>
> <!-- Test -->
> <dependency>
> <groupId>org.apache.geronimo.specs</groupId>
> <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
> <version>1.0.1</version>
> <scope>test</scope>
> </dependency>
>
>
> Still I get the following error :
>
> [INFO] Compilation failure
>
>
> *E:\cms\JackrabbitNew\contrib\jackrabbit-jcr-mapping\jcr-mapping\src\main\java\org\apache\jackrabbit\ocm\transaction\jackrabbit\UserTransactionImpl.java:[22,25]
> cannot find symbol
> symbol : class UserTransaction
> location: package javax.transaction
>
> and similar errors. Basically compiler is not able to find
> javax.transaction.
> *
>
> What is it that I am missing ?
>
> regards,
> Ruchi
>