<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=iso-8859-1'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
Hi Mickael,<br><br>Just another thought. Is the MySQL database on localhost (same computer as the ipt)? As you get the error on "No Database connected", perhaps it is the permission settings for your database not allowing connections from the computer where you have installed the IPT. I am using a PostgreSQL (not on localhost) and saw this error message before I added the permissions for the computer running the ipt to connect to the database (hba.conf for PostgreSQL).<br><br>Dag Terje<br><br>PS. I agree with Jörg that a convenient way to keep the old data directory when upgrading the IPT would be cute.<br>PPS. And a convinient way to add a thematic extension to the DwC (for testing and demonstration) would also be very useful. I am thinking of the draft DwC germplasm extension - as well as a new draft for germplasm trait observation data I have started to work on. I assume this perhaps could be done as an addition in the IPT code somewhere around "WEB-INF/classes/org/gbif/provider/model/" ...?<br><br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><hr><b>From:</b> Holetschek, Jörg [mailto:j.holetschek@bgbm.org]<br><b>To:</b> 'Mickael Graf' [mailto:mickael.graf@nrm.se], "\"Markus Döring (GBIF)\"" [mailto:mdoering@gbif.org]<br><b>Cc:</b> ipt@lists.gbif.org [mailto:ipt@lists.gbif.org]<br><b>Sent:</b> Tue, 12 May 2009 13:55:36 +0200<br><b>Subject:</b> Re: [IPT] IPT connection problem<br><br>Dear Mickael,<br>
<br>
just a small hint... in a former version I also had some problems with SQL connections:<br>
<a href="http://code.google.com/p/gbif-providertoolkit/issues/detail?id=121" target="_blank">http://code.google.com/p/gbif-providertoolkit/issues/detail?id=121</a><br>
<br>
Maybe try to restart tomcat to make sure it's not the same problem.<br>
<br>
Just an idea,<br>
Jörg<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: <a href="mailto:ipt-bounces@lists.gbif.org">ipt-bounces@lists.gbif.org</a> [mailto:<a href="mailto:ipt-bounces@lists.gbif.org">ipt-bounces@lists.gbif.org</a>]Im<br>
Auftrag von Mickael Graf<br>
Gesendet: Dienstag, 12. Mai 2009 13:28<br>
An: "Markus Döring (GBIF)"<br>
Cc: <a href="mailto:ipt@lists.gbif.org">ipt@lists.gbif.org</a><br>
Betreff: Re: [IPT] IPT connection problem<br>
<br>
<br>
Markus,<br>
<br>
I undeployed RC1 and deployed RC2 and it creates a logfile ipt.log.<br>
But it doesn't log any error at all related to the connection problem.<br>
<br>
BTW, I never wrote it before but the message is "No Database connected.<br>
Please adjust connection parameters to use SQL sources"<br>
<br>
I send you the logfile in case of there is something useful in it.<br>
<br>
Cheers<br>
Mickaël<br>
<br>
On Tue, 2009-05-12 at 11:47 +0200, "Markus Döring (GBIF)" wrote:<br>
&gt; Mickael,<br>
&gt; the latest IPT war snapshot can be found here:<br>
&gt;<br>
&gt; <a href="ftp://ftp.gbif.org/projects/ipt/downloads/ipt-1.0RC2-SNAPSHOT.war" target="_blank">ftp://ftp.gbif.org/projects/ipt/downloads/ipt-1.0RC2-SNAPSHOT.war</a><br>
&gt;<br>
&gt; This version logs connection problems and also uses in addition to<br>
&gt; tomcat logging an ipt.log file inside the data/logging dir.<br>
&gt; It also shows a simple message if you configure a bad connection in<br>
&gt; the manager UI.<br>
&gt; If you have time, please use this to find out more about your mysql<br>
&gt; conenction problem.<br>
&gt;<br>
&gt; thanks,<br>
&gt; Markus<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On May 12, 2009, at 10:17 AM, Markus Döring (GBIF) wrote:<br>
&gt;<br>
&gt; &gt; Mickael,<br>
&gt; &gt; I looked at the source again and the IPT really doesn't log any<br>
&gt; &gt; errors when changing the db connection.<br>
&gt; &gt; This is obviously not very helpful, so I've updated the code already<br>
&gt; &gt; to do so. I will upload a new war file today, so if you like you can<br>
&gt; &gt; try this version and hopefully find the reason for your connection<br>
&gt; &gt; problem. Will post the links later.<br>
&gt; &gt;<br>
&gt; &gt; many thanks,<br>
&gt; &gt; Markus<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On May 11, 2009, at 6:03 PM, Tim Robertson wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Hej Mickael,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Can you please post the logs you get when you configure and save the<br>
&gt; &gt;&gt; database connection?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Many thanks,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Tim<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On 11 May 2009, at 14:36, Mickael Graf wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; Sorry for posting at the wrong place.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; The database name is correct, and IPT runs on the same server as the<br>
&gt; &gt;&gt;&gt; mysql database. This database works perfectly with our TAPIRLink<br>
&gt; &gt;&gt;&gt; provider.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; The MySQL server version is 5.0.45 and Connector/J has version<br>
&gt; &gt;&gt;&gt; 5.1.7. It<br>
&gt; &gt;&gt;&gt; has been tested against Java 1.6.0 (OpenJDK) and against Sun Java 6<br>
&gt; &gt;&gt;&gt; Update 12. None of this worked.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Cheers,<br>
&gt; &gt;&gt;&gt; Mickaël<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; On Mon, 2009-05-11 at 10:49 +0200, Tim Robertson wrote:<br>
&gt; &gt;&gt;&gt;&gt; Hi Mickael,<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Please always post questions to the list, to help us keep an FAQ up<br>
&gt; &gt;&gt;&gt;&gt; to<br>
&gt; &gt;&gt;&gt;&gt; date and allow for others to search etc.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; I have just tested it myself with the following:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Database connection URL: jdbc:mysql://localhost:3306/portal<br>
&gt; &gt;&gt;&gt;&gt; Database User: tim<br>
&gt; &gt;&gt;&gt;&gt; Database Password: password<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; and it worked... so, to get started debugging your issue may I<br>
&gt; &gt;&gt;&gt;&gt; please<br>
&gt; &gt;&gt;&gt;&gt; ask some basic questions:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; - You wrote "jdbc:mysql://localhost:3306/databasename" - is your<br>
&gt; &gt;&gt;&gt;&gt; database name correct?<br>
&gt; &gt;&gt;&gt;&gt; - You are running the IPT on the same machine as the database?<br>
&gt; &gt;&gt;&gt;&gt; - You are using mysql?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Cheers,<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Tim<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; On 11 May 2009, at 10:26, Mickael Graf wrote:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; Hi Tim,<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; I'm trying to create a resource in IPT but I encounter a problem<br>
&gt; &gt;&gt;&gt;&gt;&gt; while<br>
&gt; &gt;&gt;&gt;&gt;&gt; creating the link to the database: in "Source Data" it is written<br>
&gt; &gt;&gt;&gt;&gt;&gt; under<br>
&gt; &gt;&gt;&gt;&gt;&gt; "SQL Data Sources" I have the message "No Database connected.<br>
&gt; &gt;&gt;&gt;&gt;&gt; Please<br>
&gt; &gt;&gt;&gt;&gt;&gt; adjust connection parameters to use SQL sources" while it keeps my<br>
&gt; &gt;&gt;&gt;&gt;&gt; settings correctly. I hope I wrote the jdbc string well:<br>
&gt; &gt;&gt;&gt;&gt;&gt; jdbc:mysql://localhost:3306/databasename.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; I surprised because I am using the same parameters as with<br>
&gt; &gt;&gt;&gt;&gt;&gt; TAPIRLink<br>
&gt; &gt;&gt;&gt;&gt;&gt; in<br>
&gt; &gt;&gt;&gt;&gt;&gt; which I don't have any problem. I don't think I should make any<br>
&gt; &gt;&gt;&gt;&gt;&gt; changes<br>
&gt; &gt;&gt;&gt;&gt;&gt; in my grants on my database.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; Cheers,<br>
&gt; &gt;&gt;&gt;&gt;&gt; Mickaël<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; --<br>
&gt; &gt;&gt;&gt;&gt;&gt; ---------------------------------<br>
&gt; &gt;&gt;&gt;&gt;&gt; Mickaël Graf<br>
&gt; &gt;&gt;&gt;&gt;&gt; Database developper, GBIF Sweden - <a href="http://www.gbif.se" target="_blank">http://www.gbif.se</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; tel: +46 8 5195 4045<br>
&gt; &gt;&gt;&gt;&gt;&gt; mailto:<a href="mailto:mickael.graf@nrm.se">mickael.graf@nrm.se</a><br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; Swedish Museum of Natural History - <a href="http://www.nrm.se" target="_blank">http://www.nrm.se</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; Box 50007<br>
&gt; &gt;&gt;&gt;&gt;&gt; SE-104 05 Stockholm<br>
&gt; &gt;&gt;&gt;&gt;&gt; Sweden<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; --<br>
&gt; &gt;&gt;&gt; ---------------------------------<br>
&gt; &gt;&gt;&gt; Mickaël Graf<br>
&gt; &gt;&gt;&gt; Database developper, GBIF Sweden - <a href="http://www.gbif.se" target="_blank">http://www.gbif.se</a><br>
&gt; &gt;&gt;&gt; tel: +46 8 5195 4045<br>
&gt; &gt;&gt;&gt; mailto:<a href="mailto:mickael.graf@nrm.se">mickael.graf@nrm.se</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Swedish Museum of Natural History - <a href="http://www.nrm.se" target="_blank">http://www.nrm.se</a><br>
&gt; &gt;&gt;&gt; Box 50007<br>
&gt; &gt;&gt;&gt; SE-104 05 Stockholm<br>
&gt; &gt;&gt;&gt; Sweden<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; IPT mailing list<br>
&gt; &gt;&gt; <a href="mailto:IPT@lists.gbif.org">IPT@lists.gbif.org</a><br>
&gt; &gt;&gt; <a href="http://lists.gbif.org/mailman/listinfo/ipt" target="_blank">http://lists.gbif.org/mailman/listinfo/ipt</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt;<br>
--<br>
---------------------------------<br>
Mickaël Graf<br>
Database developper, GBIF Sweden - <a href="http://www.gbif.se" target="_blank">http://www.gbif.se</a><br>
tel: +46 8 5195 4045<br>
mailto:<a href="mailto:mickael.graf@nrm.se">mickael.graf@nrm.se</a><br>
<br>
Swedish Museum of Natural History - <a href="http://www.nrm.se" target="_blank">http://www.nrm.se</a><br>
Box 50007<br>
SE-104 05 Stockholm<br>
Sweden<br>
_______________________________________________<br>
IPT mailing list<br>
<a href="mailto:IPT@lists.gbif.org">IPT@lists.gbif.org</a><br>
<a href="http://lists.gbif.org/mailman/listinfo/ipt" target="_blank">http://lists.gbif.org/mailman/listinfo/ipt</a><br>
</blockquote><style>
</style>
</body></html>