You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by dgodbey <dg...@YAHOO.COM> on 2009/07/16 20:04:42 UTC
Problem with javax.transaction.jta and ivy roundup
I've hit a brick wall since geebis ivy repo went down. Google roundup is an
adequate replacement for geebis except for this problem: java transaction
api jar file.
I'm using ibibio and google roundup together because neither of them has the
complete set of dependencies I need.
In a nutshell, this
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/javax.transaction/jta/
won't come down via packager. It will come down from ibiblio, but not if I
use a chain resolver including ivyroundup packager. Doesn't matter which
order I put the repos. Can anyone verify or tell me what I'm doing wrong?
ivysettings file:
<?xml version="1.0"?>
<!-- $Id: ivysettings.xml 921 2009-03-29 16:31:04Z dgodbey2 $ -->
<ivysettings>
<settings defaultResolver="${default-resolver}"/>
<resolvers>
<chain name="local-ivyroundup-resolver" returnFirst="true">
<ibiblio name="ibiblio" m2compatible="true" />
<packager name="ivyroundup"
buildRoot="${user.home}/.ivy2/packager/build"
resourceCache="${user.home}/.ivy2/packager/cache"
resourceURL="http://repo1.maven.org/maven2">
<ivy
pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml"/>
<artifact
pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml"/>
</packager>
</chain>
</resolvers>
</ivysettings>
ivy.xml file with all other dependencies removed:
<?xml version="1.0"?>
<!-- $Id: ivy.xml 6260 2009-03-29 17:45:03Z dgodbey2 $ -->
<ivy-module version="2.0">
<info organisation="Indyne" module="Exchange Integration"/>
<configurations>
<conf name="default" description="Default configuration."/>
<conf name="log4j" description="Give me the log4j12 only."/>
</configurations>
<dependencies>
<dependency org="javax.transaction" name="jta" rev="1.1"
conf="default" transitive="false"/>
</dependencies>
</ivy-module>
When I run ivy resolve, I get this exception.
[ivy:resolve] --- Nested Exception ---
[ivy:resolve] java.io.FileNotFoundException:
/home/djg/.ivy2/packager/build/javax.transaction/jta/1.1/packager.xml (No
such file or directory)
[ivy:resolve] at java.io.FileInputStream.open(Native Method)
[ivy:resolve] at java.io.FileInputStream.<init>(FileInputStream.java:106)
[ivy:resolve] at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:176)
[ivy:resolve] at
org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:709)
[ivy:resolve] at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:333)
[ivy:resolve] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[ivy:resolve] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
Source)
[ivy:resolve] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Any help most appreciated.
Dave
--
View this message in context: http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24521540.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Problem with javax.transaction.jta and ivy roundup
Posted by Joshua Tharp <jo...@alumni.calpoly.edu>.
The default Ivy settings uses a chain resolver to set precedence. If you
haven't reordered that...
On Thu, Jul 16, 2009 at 2:14 PM, Archie Cobbs <ar...@gmail.com>wrote:
> Not sure why ivy is not respecting your resolver ordering... are you also
> setting defaultResolver to ibibilio?
>
> I don't really use maven so I'm not much help with anything maven related.
>
> You can read about resourceURL
> here<
> http://ant.apache.org/ivy/history/latest-milestone/resolver/packager.html
> >.
> It is very simple, it just points to a directory.
>
> -Archie
>
> On Thu, Jul 16, 2009 at 3:42 PM, dgodbey <dg...@yahoo.com> wrote:
>
> >
> > Archie,
> > I really appreciate you working with me on this.
> >
> > I guess I misunderstand how this works. My ivysettings file has the
> ibiblio
> > repo listed ABOVE the packager repo. It makes no difference where I put
> it.
> > To force ivy to get jta from iblio I have to comment out packager. And
> for
> > the resourceURL attribute, what is that supposed to look like? I tried
> > variations on ibiblio:
> > resourceURL="
> >
> http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[module]-[revision].jar<http://repo1.maven.org/maven2/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/%5Bmodule%5D-%5Brevision%5D.jar>
> <
> http://repo1.maven.org/maven2/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/%5Bmodule%5D-%5Brevision%5D.jar
> >
> > ",
> > but I just can't figure it out. Can I use maven2? How?
> > Thanks,
> > Dave
> >
> >
> > Archie Cobbs-3 wrote:
> > >
> > > On Thu, Jul 16, 2009 at 2:27 PM, dgodbey <dg...@yahoo.com> wrote:
> > >
> > >> Do you know how I can force ivy to get the jta libraries from ibilio
> > >> where
> > >> manual clicking is not necessary and ignore packager?
> > >>
> > >
> > > You can make ibiblio higher precedence in ivy's resolver list, but of
> > > course
> > > then that would apply to all modules.
> > >
> > > You could also set up your own local packager respository containing
> only
> > > jta and put the archives on a local machine, where your local version
> of
> > > packager.xml would point to.
> > >
> > > Finally, you could use the resourceURL attribute and put the jta
> archives
> > > there (on some local server).
> > >
> > > -Archie
> > >
> > > --
> > > Archie L. Cobbs
> > >
> > >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24524097.html
> > Sent from the ivy-user mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Archie L. Cobbs
>
Re: Problem with javax.transaction.jta and ivy roundup
Posted by Archie Cobbs <ar...@gmail.com>.
Not sure why ivy is not respecting your resolver ordering... are you also
setting defaultResolver to ibibilio?
I don't really use maven so I'm not much help with anything maven related.
You can read about resourceURL
here<http://ant.apache.org/ivy/history/latest-milestone/resolver/packager.html>.
It is very simple, it just points to a directory.
-Archie
On Thu, Jul 16, 2009 at 3:42 PM, dgodbey <dg...@yahoo.com> wrote:
>
> Archie,
> I really appreciate you working with me on this.
>
> I guess I misunderstand how this works. My ivysettings file has the ibiblio
> repo listed ABOVE the packager repo. It makes no difference where I put it.
> To force ivy to get jta from iblio I have to comment out packager. And for
> the resourceURL attribute, what is that supposed to look like? I tried
> variations on ibiblio:
> resourceURL="
> http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[module]-[revision].jar<http://repo1.maven.org/maven2/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/%5Bmodule%5D-%5Brevision%5D.jar>
> ",
> but I just can't figure it out. Can I use maven2? How?
> Thanks,
> Dave
>
>
> Archie Cobbs-3 wrote:
> >
> > On Thu, Jul 16, 2009 at 2:27 PM, dgodbey <dg...@yahoo.com> wrote:
> >
> >> Do you know how I can force ivy to get the jta libraries from ibilio
> >> where
> >> manual clicking is not necessary and ignore packager?
> >>
> >
> > You can make ibiblio higher precedence in ivy's resolver list, but of
> > course
> > then that would apply to all modules.
> >
> > You could also set up your own local packager respository containing only
> > jta and put the archives on a local machine, where your local version of
> > packager.xml would point to.
> >
> > Finally, you could use the resourceURL attribute and put the jta archives
> > there (on some local server).
> >
> > -Archie
> >
> > --
> > Archie L. Cobbs
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24524097.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
--
Archie L. Cobbs
Re: Problem with javax.transaction.jta and ivy roundup
Posted by dgodbey <dg...@YAHOO.COM>.
Archie,
I really appreciate you working with me on this.
I guess I misunderstand how this works. My ivysettings file has the ibiblio
repo listed ABOVE the packager repo. It makes no difference where I put it.
To force ivy to get jta from iblio I have to comment out packager. And for
the resourceURL attribute, what is that supposed to look like? I tried
variations on ibiblio:
resourceURL="http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[module]-[revision].jar",
but I just can't figure it out. Can I use maven2? How?
Thanks,
Dave
Archie Cobbs-3 wrote:
>
> On Thu, Jul 16, 2009 at 2:27 PM, dgodbey <dg...@yahoo.com> wrote:
>
>> Do you know how I can force ivy to get the jta libraries from ibilio
>> where
>> manual clicking is not necessary and ignore packager?
>>
>
> You can make ibiblio higher precedence in ivy's resolver list, but of
> course
> then that would apply to all modules.
>
> You could also set up your own local packager respository containing only
> jta and put the archives on a local machine, where your local version of
> packager.xml would point to.
>
> Finally, you could use the resourceURL attribute and put the jta archives
> there (on some local server).
>
> -Archie
>
> --
> Archie L. Cobbs
>
>
--
View this message in context: http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24524097.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Problem with javax.transaction.jta and ivy roundup
Posted by Archie Cobbs <ar...@gmail.com>.
On Thu, Jul 16, 2009 at 2:27 PM, dgodbey <dg...@yahoo.com> wrote:
> Do you know how I can force ivy to get the jta libraries from ibilio where
> manual clicking is not necessary and ignore packager?
>
You can make ibiblio higher precedence in ivy's resolver list, but of course
then that would apply to all modules.
You could also set up your own local packager respository containing only
jta and put the archives on a local machine, where your local version of
packager.xml would point to.
Finally, you could use the resourceURL attribute and put the jta archives
there (on some local server).
-Archie
--
Archie L. Cobbs
Re: Problem with javax.transaction.jta and ivy roundup
Posted by dgodbey <dg...@YAHOO.COM>.
Archie,
Right, the manually downloaded problem! That was it.
Do you know how I can force ivy to get the jta libraries from ibilio where
manual clicking is not necessary and ignore packager?
Thanks,
Dave
Archie Cobbs-3 wrote:
>
> I'm not sure why you are getting that particular error.. however, for one
> thing, your resourceURL attribute is not valid and is only slowing you
> down
> by causing download attempts that will always fail.
>
>
> http://ant.apache.org/ivy/history/latest-milestone/resolver/packager.html
>
> You also know about the manually downloaded
> modules<http://code.google.com/p/ivyroundup/wiki/ManuallyDownloadedSoftware>,
> of which jta is one, right?
>
> Can you put together a self-contained, minimal test case (in a zip or tgz
> file)?
>
> -Archie
>
> On Thu, Jul 16, 2009 at 1:04 PM, dgodbey <dg...@yahoo.com> wrote:
>
>>
>> I've hit a brick wall since geebis ivy repo went down. Google roundup is
>> an
>> adequate replacement for geebis except for this problem: java transaction
>> api jar file.
>>
>> I'm using ibibio and google roundup together because neither of them has
>> the
>> complete set of dependencies I need.
>>
>> In a nutshell, this
>>
>> http://ivyroundup.googlecode.com/svn/trunk/repo/modules/javax.transaction/jta/
>> won't come down via packager. It will come down from ibiblio, but not if
>> I
>> use a chain resolver including ivyroundup packager. Doesn't matter which
>> order I put the repos. Can anyone verify or tell me what I'm doing wrong?
>>
>> ivysettings file:
>> <?xml version="1.0"?>
>> <!-- $Id: ivysettings.xml 921 2009-03-29 16:31:04Z dgodbey2 $ -->
>> <ivysettings>
>> <settings defaultResolver="${default-resolver}"/>
>> <resolvers>
>> <chain name="local-ivyroundup-resolver" returnFirst="true">
>> <ibiblio name="ibiblio" m2compatible="true" />
>> <packager name="ivyroundup"
>> buildRoot="${user.home}/.ivy2/packager/build"
>> resourceCache="${user.home}/.ivy2/packager/cache"
>> resourceURL="http://repo1.maven.org/maven2">
>> <ivy
>> pattern="
>> http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml<http://ivyroundup.googlecode.com/svn/trunk/repo/modules/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/ivy.xml>
>> "/>
>> <artifact
>> pattern="
>> http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml<http://ivyroundup.googlecode.com/svn/trunk/repo/modules/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/packager.xml>
>> "/>
>> </packager>
>> </chain>
>> </resolvers>
>> </ivysettings>
>>
>> ivy.xml file with all other dependencies removed:
>> <?xml version="1.0"?>
>> <!-- $Id: ivy.xml 6260 2009-03-29 17:45:03Z dgodbey2 $ -->
>> <ivy-module version="2.0">
>> <info organisation="Indyne" module="Exchange Integration"/>
>> <configurations>
>> <conf name="default" description="Default configuration."/>
>> <conf name="log4j" description="Give me the log4j12 only."/>
>> </configurations>
>> <dependencies>
>> <dependency org="javax.transaction" name="jta" rev="1.1"
>> conf="default" transitive="false"/>
>> </dependencies>
>> </ivy-module>
>>
>> When I run ivy resolve, I get this exception.
>>
>> [ivy:resolve] --- Nested Exception ---
>> [ivy:resolve] java.io.FileNotFoundException:
>> /home/djg/.ivy2/packager/build/javax.transaction/jta/1.1/packager.xml (No
>> such file or directory)
>> [ivy:resolve] at java.io.FileInputStream.open(Native Method)
>> [ivy:resolve] at
>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>> [ivy:resolve] at
>>
>> org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:176)
>> [ivy:resolve] at
>> org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:709)
>> [ivy:resolve] at
>> org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:333)
>> [ivy:resolve] at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>> [ivy:resolve] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
>> Source)
>> [ivy:resolve] at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> Any help most appreciated.
>> Dave
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24521540.html
>> Sent from the ivy-user mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Archie L. Cobbs
>
>
--
View this message in context: http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24522897.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Problem with javax.transaction.jta and ivy roundup
Posted by Archie Cobbs <ar...@gmail.com>.
I'm not sure why you are getting that particular error.. however, for one
thing, your resourceURL attribute is not valid and is only slowing you down
by causing download attempts that will always fail.
http://ant.apache.org/ivy/history/latest-milestone/resolver/packager.html
You also know about the manually downloaded
modules<http://code.google.com/p/ivyroundup/wiki/ManuallyDownloadedSoftware>,
of which jta is one, right?
Can you put together a self-contained, minimal test case (in a zip or tgz
file)?
-Archie
On Thu, Jul 16, 2009 at 1:04 PM, dgodbey <dg...@yahoo.com> wrote:
>
> I've hit a brick wall since geebis ivy repo went down. Google roundup is an
> adequate replacement for geebis except for this problem: java transaction
> api jar file.
>
> I'm using ibibio and google roundup together because neither of them has
> the
> complete set of dependencies I need.
>
> In a nutshell, this
>
> http://ivyroundup.googlecode.com/svn/trunk/repo/modules/javax.transaction/jta/
> won't come down via packager. It will come down from ibiblio, but not if I
> use a chain resolver including ivyroundup packager. Doesn't matter which
> order I put the repos. Can anyone verify or tell me what I'm doing wrong?
>
> ivysettings file:
> <?xml version="1.0"?>
> <!-- $Id: ivysettings.xml 921 2009-03-29 16:31:04Z dgodbey2 $ -->
> <ivysettings>
> <settings defaultResolver="${default-resolver}"/>
> <resolvers>
> <chain name="local-ivyroundup-resolver" returnFirst="true">
> <ibiblio name="ibiblio" m2compatible="true" />
> <packager name="ivyroundup"
> buildRoot="${user.home}/.ivy2/packager/build"
> resourceCache="${user.home}/.ivy2/packager/cache"
> resourceURL="http://repo1.maven.org/maven2">
> <ivy
> pattern="
> http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml<http://ivyroundup.googlecode.com/svn/trunk/repo/modules/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/ivy.xml>
> "/>
> <artifact
> pattern="
> http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml<http://ivyroundup.googlecode.com/svn/trunk/repo/modules/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/packager.xml>
> "/>
> </packager>
> </chain>
> </resolvers>
> </ivysettings>
>
> ivy.xml file with all other dependencies removed:
> <?xml version="1.0"?>
> <!-- $Id: ivy.xml 6260 2009-03-29 17:45:03Z dgodbey2 $ -->
> <ivy-module version="2.0">
> <info organisation="Indyne" module="Exchange Integration"/>
> <configurations>
> <conf name="default" description="Default configuration."/>
> <conf name="log4j" description="Give me the log4j12 only."/>
> </configurations>
> <dependencies>
> <dependency org="javax.transaction" name="jta" rev="1.1"
> conf="default" transitive="false"/>
> </dependencies>
> </ivy-module>
>
> When I run ivy resolve, I get this exception.
>
> [ivy:resolve] --- Nested Exception ---
> [ivy:resolve] java.io.FileNotFoundException:
> /home/djg/.ivy2/packager/build/javax.transaction/jta/1.1/packager.xml (No
> such file or directory)
> [ivy:resolve] at java.io.FileInputStream.open(Native Method)
> [ivy:resolve] at java.io.FileInputStream.<init>(FileInputStream.java:106)
> [ivy:resolve] at
>
> org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:176)
> [ivy:resolve] at
> org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:709)
> [ivy:resolve] at
> org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:333)
> [ivy:resolve] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> [ivy:resolve] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> Source)
> [ivy:resolve] at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> Any help most appreciated.
> Dave
> --
> View this message in context:
> http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24521540.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
--
Archie L. Cobbs
Re: Problem with javax.transaction.jta and ivy roundup
Posted by dgodbey <dg...@YAHOO.COM>.
I think this is the relevant problem:
[ivy:resolve] :::: WARNINGS
[ivy:resolve] [FAILED ]
javax.transaction#jta;1.1!javadoc.zip(javadoc): The following error occurred
while executing this line:
[ivy:resolve]
/home/djg/.ivy2/packager/build/javax.transaction/jta/1.1/packager-output.xml:39:
java.io.FileNotFoundException: /tmp/jta-1_1-classes.zip
(No such file or directory) (1828ms)
[ivy:resolve] [FAILED ] javax.transaction#jta;1.1!jta.jar: The
following error occurred while executing this line:
[ivy:resolve]
/home/djg/.ivy2/packager/build/javax.transaction/jta/1.1/packager-output.xml:39:
java.io.FileNotFoundException: /tmp/jta-1_1-classes.zip
(No such file or directory) (773ms)
Doesn't seem to be saving a file to the tmp directory. I ran against a file
that works, and packager put a bunch of stuff inside packager/build/...
directory, including archive, artifacts, etc. I set
preserveBuildDirectories=true, and I can see that for jta it is missing all
of the archives and artifacts etc. I even tried to chmod /tmp to 777 in
anticipation that for this archive it was trying to use the tmp directory
and didn't have permissions..., didn't help.
HELP!
--
View this message in context: http://www.nabble.com/Problem-with-javax.transaction.jta-and-ivy-roundup-tp24521540p24522632.html
Sent from the ivy-user mailing list archive at Nabble.com.