I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before?
Hi Aaron,
The missing jar is here:
http://oodt.jpl.nasa.gov/download/private/com/oracle/ojdbc/14/
If you download ojdbc-14.jar to a local directory and run
mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc - Dversion=14 -Dpackaging=jar -Dfile=ojdbc-14.jar -Dpackaging=jar - DgeneratePom=true -DcreateChecksum=true
this should get it working for you.
Im guessing one of the repositories this is usually pulled down from is offline for some reason.
Cheers
Dave Martin
On 26 Aug 2009, at 08:04, Aaron Steele wrote:
I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before? _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
Thanks Dave! I have added the Oracle JDBC jar also to the GBIF maven repository, so there is one more potential source now. I have to admit due to the lack of an oracle installation to test with I havent tried the IPT with Oracle yet. From Oracles download site there are 2 other jdbc drivers for java5 available that might also be worth trying if anyone has access to Oracle. Id be glad to know which driver works best with most oracle versions.
Markus
On Aug 26, 2009, at 8:14, Dave Martin wrote:
Hi Aaron,
The missing jar is here:
http://oodt.jpl.nasa.gov/download/private/com/oracle/ojdbc/14/
If you download ojdbc-14.jar to a local directory and run
mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc - Dversion=14 -Dpackaging=jar -Dfile=ojdbc-14.jar -Dpackaging=jar - DgeneratePom=true -DcreateChecksum=true
this should get it working for you.
Im guessing one of the repositories this is usually pulled down from is offline for some reason.
Cheers
Dave Martin
On 26 Aug 2009, at 08:04, Aaron Steele wrote:
I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before? _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
Thanks for the fast response! The missing JAR error has been resolved, but a new error has emerged. Basically the constructor SQLException(java.lang.String,java.lang.ClassNotFoundException) can't be found. Here's the Maven output for the test task in pom.xml:
FWIW, I'm running Maven on Mac OS X with Java 1.5.
Hi Aaron,
http://java.sun.com/j2se/1.5.0/docs/api/java/sql/SQLException.html http://java.sun.com/javase/6/docs/api/java/sql/SQLException.html
SQLException(String reason, Throwable cause) was added in Java 6
I have this in my .bashrc on the mac to quickly change between versions:
#JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home export JAVA_HOME
Cheers
Tim
On Aug 26, 2009, at 1:01 PM, Aaron Steele wrote:
Thanks for the fast response! The missing JAR error has been resolved, but a new error has emerged. Basically the constructor SQLException(java.lang.String,java.lang.ClassNotFoundException) can't be found. Here's the Maven output for the test task in pom.xml:
FWIW, I'm running Maven on Mac OS X with Java 1.5.
SQLException(String reason, Throwable cause) was added in Java 6.
I discovered the same and modified my working copy of DataResource.java to be Java 1.5 compliant. Is there a reason for for this 1.5 incompatibility?
Also, do we have documentation for setting up Eclipse for IPT development? Here's how I've set things up in Eclipse so far:
1) SVN checkout of trunk/gbif-providertool
2) Command line 'mvn eclipse:eclipse' fails (http://txtb.in/4d6). The workaround is setting the filtering property to true on line 260 of pom.xml, although I'm not sure what the implications are for this change.
3) Command line 'mvn -Declipse.workspace=~/Projects/Workspace eclipse:configure-workspace' results in .classpath errors (http://txtb.in/4d9). The workaround is deleting the 'output' properties from the following classpath entires in the .classpath file: <classpathentry kind="src" path="src/main/webapp/data" /> <classpathentry kind="src" path="src/main/webapp/WEB-INF/pages" />
Finally, running command line 'mvn' results in a build failure due to 69 test errors:
As an experiment, I disabled Maven tests via command line 'mvn -Dmaven.test.skip=true' which results in the following new errors:
Basically the error is a BeanDefinitionStoreException that's thrown by Jetty while initializing the Spring root WebApplicationContext. It happens because of an invalid bean definition named 'cfg' in applicationContext.xml that can't resolve placeholder 'ipt.datadir', though I haven't figured out why the placeholder is causing problems yet.
On Wed, Aug 26, 2009 at 3:45 PM, Aaron Steeleeightysteele@gmail.com wrote:
SQLException(String reason, Throwable cause) was added in Java 6.
I discovered the same and modified my working copy of DataResource.java to be Java 1.5 compliant. Is there a reason for for this 1.5 incompatibility?
Also, do we have documentation for setting up Eclipse for IPT development? Here's how I've set things up in Eclipse so far:
SVN checkout of trunk/gbif-providertool
Command line 'mvn eclipse:eclipse' fails (http://txtb.in/4d6). The
workaround is setting the filtering property to true on line 260 of pom.xml, although I'm not sure what the implications are for this change.
- Command line 'mvn -Declipse.workspace=~/Projects/Workspace
eclipse:configure-workspace' results in .classpath errors (http://txtb.in/4d9). The workaround is deleting the 'output' properties from the following classpath entires in the .classpath file:
<classpathentry kind="src" path="src/main/webapp/data" /> <classpathentry kind="src" path="src/main/webapp/WEB-INF/pages" />
Finally, running command line 'mvn' results in a build failure due to 69 test errors:
no reason for being java6 only, really not intended. The POM specifies to build java5 classes and my eclipse compiler settings actually say java5 compliant. But thats not true as you have found out. When I use java5 as the default compiler in eclipse I see the DataResource class is in trouble.
The SQLException is old, but unfortunately not the specific constructor: http://java.sun.com/j2se/1.4.2/docs/api/java/sql/SQLException.html
I have fixed DataResource and comitted it to the trunk. That was all there is to make it java5 compliant again.
The stupid maven doesnt find the symbol/class error doesnt occurr here. really strange. I always had the feeling this is because of the WAR overlays and the AppFuse framework. Maybe its time to get rid of it and keep the IPT independant of AppFuse - but that is a bit of work...
Ah, and Ive changed the POM profiles so that: - by default no tests are run, so $mvn should work now to get jetty up and running - a new profile -P test is added that uses the gbif test registry and does run all tests
Markus
On Aug 27, 2009, at 0:45, Aaron Steele wrote:
SQLException(String reason, Throwable cause) was added in Java 6.
I discovered the same and modified my working copy of DataResource.java to be Java 1.5 compliant. Is there a reason for for this 1.5 incompatibility?
Also, do we have documentation for setting up Eclipse for IPT development? Here's how I've set things up in Eclipse so far:
SVN checkout of trunk/gbif-providertool
Command line 'mvn eclipse:eclipse' fails (http://txtb.in/4d6). The
workaround is setting the filtering property to true on line 260 of pom.xml, although I'm not sure what the implications are for this change.
- Command line 'mvn -Declipse.workspace=~/Projects/Workspace
eclipse:configure-workspace' results in .classpath errors (http://txtb.in/4d9). The workaround is deleting the 'output' properties from the following classpath entires in the .classpath file:
<classpathentry kind="src" path="src/main/webapp/data" /> <classpathentry kind="src" path="src/main/webapp/WEB-INF/pages" />
Finally, running command line 'mvn' results in a build failure due to 69 test errors:
Dear Tim, Markus, et al,
I'm trying to publish a resource on our IPT installation (http://de.mirror.gbif.org/ipt/manage/resource.html?resource_id=12). The progress symbol is shown for a second or two, then everyhting's the same as before.
In the tomcat log, I find two errors: WARN TP-Processor3-HttpBaseManager.registerResource(121) | Organisation is not registered. Cannot register resources WARN TP-Processor3-OccResourceManagerHibernate.updateRegistry(148) | Failed to communicate with registry
Is there something I need to do before? Or is the second error the cause for the first one?
Cheers from Berlin, Jorg
-----Ursprungliche Nachricht----- Von: ipt-bounces@lists.gbif.org [mailto:ipt-bounces@lists.gbif.org]Im Auftrag von Dave Martin Gesendet: Mittwoch, 26. August 2009 08:14 An: Aaron Steele Cc: ipt@lists.gbif.org Betreff: Re: [IPT] IPT Maven build error
Hi Aaron,
The missing jar is here:
http://oodt.jpl.nasa.gov/download/private/com/oracle/ojdbc/14/
If you download ojdbc-14.jar to a local directory and run
mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc - Dversion=14 -Dpackaging=jar -Dfile=ojdbc-14.jar -Dpackaging=jar - DgeneratePom=true -DcreateChecksum=true
this should get it working for you.
Im guessing one of the repositories this is usually pulled down from is offline for some reason.
Cheers
Dave Martin
On 26 Aug 2009, at 08:04, Aaron Steele wrote:
I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before? _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
_______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
Jörg, Jose and Tim are still on holidays and Im leaving to cal tomorrow. we try out best to track that down next week, sorry.
which registry do you use? the regular or development one? Markus
On Aug 27, 2009, at 12:40, Holetschek, Jörg wrote:
Dear Tim, Markus, et al,
I'm trying to publish a resource on our IPT installation (http://de.mirror.gbif.org/ipt/manage/resource.html?resource_id=12 ). The progress symbol is shown for a second or two, then everyhting's the same as before.
In the tomcat log, I find two errors: WARN TP-Processor3-HttpBaseManager.registerResource(121) | Organisation is not registered. Cannot register resources WARN TP-Processor3-OccResourceManagerHibernate.updateRegistry(148) | Failed to communicate with registry
Is there something I need to do before? Or is the second error the cause for the first one?
Cheers from Berlin, Jorg
-----Ursprungliche Nachricht----- Von: ipt-bounces@lists.gbif.org [mailto:ipt-bounces@lists.gbif.org]Im Auftrag von Dave Martin Gesendet: Mittwoch, 26. August 2009 08:14 An: Aaron Steele Cc: ipt@lists.gbif.org Betreff: Re: [IPT] IPT Maven build error
Hi Aaron,
The missing jar is here:
http://oodt.jpl.nasa.gov/download/private/com/oracle/ojdbc/14/
If you download ojdbc-14.jar to a local directory and run
mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc - Dversion=14 -Dpackaging=jar -Dfile=ojdbc-14.jar -Dpackaging=jar - DgeneratePom=true -DcreateChecksum=true
this should get it working for you.
Im guessing one of the repositories this is usually pulled down from is offline for some reason.
Cheers
Dave Martin
On 26 Aug 2009, at 08:04, Aaron Steele wrote:
I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before? _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
Markus,
the one that is used by default - haven't changed anything in the configuration. The ipt.properties file reads: registryUrl=http://gbrds.gbif.org/registry.
Cheers, Jörg
-----Ursprüngliche Nachricht----- Von: "Markus Döring (GBIF)" [mailto:mdoering@gbif.org] Gesendet: Freitag, 28. August 2009 18:08 An: =?ISO-8859-1?Q?=22Holetschek@ns.gbif.org; Holetschek, Jörg Cc: ipt@lists.gbif.org; Jose Cuadra Morales Betreff: Re: [IPT] Publishing a resource
Jörg, Jose and Tim are still on holidays and Im leaving to cal tomorrow. we try out best to track that down next week, sorry.
which registry do you use? the regular or development one? Markus
On Aug 27, 2009, at 12:40, Holetschek, Jörg wrote:
Dear Tim, Markus, et al,
I'm trying to publish a resource on our IPT installation (http://de.mirror.gbif.org/ipt/manage/resource.html?resource_id=12 ). The progress symbol is shown for a second or two, then everyhting's the same as before.
In the tomcat log, I find two errors: WARN TP-Processor3-HttpBaseManager.registerResource(121) | Organisation is not registered. Cannot register resources WARN TP-Processor3-OccResourceManagerHibernate.updateRegistry(148) | Failed to communicate with registry
Is there something I need to do before? Or is the second error the cause for the first one?
Cheers from Berlin, Jorg
-----Ursprungliche Nachricht----- Von: ipt-bounces@lists.gbif.org [mailto:ipt-bounces@lists.gbif.org]Im Auftrag von Dave Martin Gesendet: Mittwoch, 26. August 2009 08:14 An: Aaron Steele Cc: ipt@lists.gbif.org Betreff: Re: [IPT] IPT Maven build error
Hi Aaron,
The missing jar is here:
http://oodt.jpl.nasa.gov/download/private/com/oracle/ojdbc/14/
If you download ojdbc-14.jar to a local directory and run
mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc - Dversion=14 -Dpackaging=jar -Dfile=ojdbc-14.jar -Dpackaging=jar - DgeneratePom=true -DcreateChecksum=true
this should get it working for you.
Im guessing one of the repositories this is usually pulled down from is offline for some reason.
Cheers
Dave Martin
On 26 Aug 2009, at 08:04, Aaron Steele wrote:
I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before? _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
Hi Jörg,
Might I suggest trying to re-register BGBM's organisation by going into Admin --> Configuration --> Organisation and choose the BGBM from the drop down list and requesting the password?
In this case Markus is going to receive it so he might send it to you, and then try to register again the resources, once you can re-register the organisation.
I hope this helps.
Best Regards, José
On Aug 31, 2009, at 11:11 AM, Holetschek, Jörg wrote:
Markus,
the one that is used by default - haven't changed anything in the configuration. The ipt.properties file reads: registryUrl=http://gbrds.gbif.org/registry.
Cheers, Jörg
-----Ursprüngliche Nachricht----- Von: "Markus Döring (GBIF)" [mailto:mdoering@gbif.org] Gesendet: Freitag, 28. August 2009 18:08 An: =?ISO-8859-1?Q?=22Holetschek@ns.gbif.org; Holetschek, Jörg Cc: ipt@lists.gbif.org; Jose Cuadra Morales Betreff: Re: [IPT] Publishing a resource
Jörg, Jose and Tim are still on holidays and Im leaving to cal tomorrow. we try out best to track that down next week, sorry.
which registry do you use? the regular or development one? Markus
On Aug 27, 2009, at 12:40, Holetschek, Jörg wrote:
Dear Tim, Markus, et al,
I'm trying to publish a resource on our IPT installation (http://de.mirror.gbif.org/ipt/manage/resource.html?resource_id=12 ). The progress symbol is shown for a second or two, then everyhting's the same as before.
In the tomcat log, I find two errors: WARN TP-Processor3-HttpBaseManager.registerResource(121) | Organisation is not registered. Cannot register resources WARN TP-Processor3-OccResourceManagerHibernate.updateRegistry(148) | Failed to communicate with registry
Is there something I need to do before? Or is the second error the cause for the first one?
Cheers from Berlin, Jorg
-----Ursprungliche Nachricht----- Von: ipt-bounces@lists.gbif.org [mailto:ipt-bounces@lists.gbif.org]Im Auftrag von Dave Martin Gesendet: Mittwoch, 26. August 2009 08:14 An: Aaron Steele Cc: ipt@lists.gbif.org Betreff: Re: [IPT] IPT Maven build error
Hi Aaron,
The missing jar is here:
http://oodt.jpl.nasa.gov/download/private/com/oracle/ojdbc/14/
If you download ojdbc-14.jar to a local directory and run
mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc - Dversion=14 -Dpackaging=jar -Dfile=ojdbc-14.jar -Dpackaging=jar - DgeneratePom=true -DcreateChecksum=true
this should get it working for you.
Im guessing one of the repositories this is usually pulled down from is offline for some reason.
Cheers
Dave Martin
On 26 Aug 2009, at 08:04, Aaron Steele wrote:
I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before? _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
Dear José,
I entered the password and tried to publish the resource again. This time I get "There has been a publishign error. Please try again later. Reason: timeout".
Cheers, Jörg
-----Ursprüngliche Nachricht----- Von: "José Cuadra (GBIF)" [mailto:jcuadra@gbif.org] Gesendet: Mittwoch, 2. September 2009 12:33 An: =?ISO-8859-1?Q?=22Holetschek@ns.gbif.org; Holetschek, Jörg Cc: "'"Markus Döring (GBIF)"'"; ipt@lists.gbif.org Betreff: Re: AW: [IPT] Publishing a resource
Hi Jörg,
Might I suggest trying to re-register BGBM's organisation by going into Admin --> Configuration --> Organisation and choose the BGBM from the drop down list and requesting the password?
In this case Markus is going to receive it so he might send it to you, and then try to register again the resources, once you can re-register the organisation.
I hope this helps.
Best Regards, José
On Aug 31, 2009, at 11:11 AM, Holetschek, Jörg wrote:
Markus,
the one that is used by default - haven't changed anything in the configuration. The ipt.properties file reads: registryUrl=http://gbrds.gbif.org/registry.
Cheers, Jörg
-----Ursprüngliche Nachricht----- Von: "Markus Döring (GBIF)" [mailto:mdoering@gbif.org] Gesendet: Freitag, 28. August 2009 18:08 An: =?ISO-8859-1?Q?=22Holetschek@ns.gbif.org; Holetschek, Jörg Cc: ipt@lists.gbif.org; Jose Cuadra Morales Betreff: Re: [IPT] Publishing a resource
Jörg, Jose and Tim are still on holidays and Im leaving to cal tomorrow. we try out best to track that down next week, sorry.
which registry do you use? the regular or development one? Markus
On Aug 27, 2009, at 12:40, Holetschek, Jörg wrote:
Dear Tim, Markus, et al,
I'm trying to publish a resource on our IPT installation (http://de.mirror.gbif.org/ipt/manage/resource.html?resource_id=12 ). The progress symbol is shown for a second or two, then everyhting's the same as before.
In the tomcat log, I find two errors: WARN TP-Processor3-HttpBaseManager.registerResource(121) | Organisation is not registered. Cannot register resources WARN TP-Processor3-OccResourceManagerHibernate.updateRegistry(148) | Failed to communicate with registry
Is there something I need to do before? Or is the second error the cause for the first one?
Cheers from Berlin, Jorg
-----Ursprungliche Nachricht----- Von: ipt-bounces@lists.gbif.org [mailto:ipt-bounces@lists.gbif.org]Im Auftrag von Dave Martin Gesendet: Mittwoch, 26. August 2009 08:14 An: Aaron Steele Cc: ipt@lists.gbif.org Betreff: Re: [IPT] IPT Maven build error
Hi Aaron,
The missing jar is here:
http://oodt.jpl.nasa.gov/download/private/com/oracle/ojdbc/14/
If you download ojdbc-14.jar to a local directory and run
mvn install:install-file -DgroupId=ojdbc -DartifactId=ojdbc - Dversion=14 -Dpackaging=jar -Dfile=ojdbc-14.jar -Dpackaging=jar - DgeneratePom=true -DcreateChecksum=true
this should get it working for you.
Im guessing one of the repositories this is usually pulled down from is offline for some reason.
Cheers
Dave Martin
On 26 Aug 2009, at 08:04, Aaron Steele wrote:
I'm having problems building gbif-providertool/pom.xml via Maven in r1442 of trunk. Here is the Maven output for the test task in pom.xml:
This doesn't appear to be a known issue. Has anyone run into this before? _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt _______________________________________________ IPT mailing list IPT@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ipt
participants (5)
-
"José Cuadra (GBIF)"
-
"Markus Döring (GBIF)"
-
Aaron Steele
-
Dave Martin
-
Holetschek, Jörg
-
Tim Robertson