You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Abhishek Jain <ma...@gmail.com> on 2016/09/02 22:01:59 UTC

Automatic Persistence - POJOs and XMLs for couchbase

Hi,

If somebody worked with Automatic Persistence for POJOs and XMLs creation
for couchbase, please let me know the procedure for the same. (Although I
have been successfully able to create the POJOs and XMLs for H2 database as
mentioned in the Automatic Persistence section)

I am getting the following error, though I have copied the simba license in
the  classpath also.

[image: Inline image 1]


Regards
Abhishek

Re: Automatic Persistence - POJOs and XMLs for couchbase

Posted by Abhishek Jain <ma...@gmail.com>.
Thanks Andrey,Alexey and Val,

The issue got resolved. The issue was with the enterprise version of
couchbase 4.5.0. I removed it and installed the couchbase community version
4.1.0. And I am able to generate the pojos and xml files.

I appreciate all of yours great efforts.

Regards
Abhishek

On Tue, Sep 6, 2016 at 6:11 AM, Andrey Novikov <an...@apache.org> wrote:

> Hi, Abhishek Jain.
>
> I successfully connect to couchbase using Simba couchbase JDBC driver.
>
> For do this you need:
> * create folder for driver jars in $IGNITE_HOME/libs (for example:
> couchbase-driver)
> * copy all jars from Driver folder in Simba_Couchbase_JDBC.zip
> * copy SimbaCouchbaseJDBCDriver.lic
>
> I was able to load schemas, but loading table or view failed. Possible
> problem in JDBC driver which is not have receiving metadata for tables.
>
> Can you please try to load table or view too?
>
>
>
> --
> View this message in context: http://apache-ignite-users.705
> 18.x6.nabble.com/Automatic-Persistence-POJOs-and-XMLs-for-
> couchbase-tp7492p7546.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Automatic Persistence - POJOs and XMLs for couchbase

Posted by Andrey Novikov <an...@apache.org>.
Hi, Abhishek Jain.

I successfully connect to couchbase using Simba couchbase JDBC driver. 

For do this you need: 
* create folder for driver jars in $IGNITE_HOME/libs (for example:
couchbase-driver)
* copy all jars from Driver folder in Simba_Couchbase_JDBC.zip
* copy SimbaCouchbaseJDBCDriver.lic

I was able to load schemas, but loading table or view failed. Possible
problem in JDBC driver which is not have receiving metadata for tables.

Can you please try to load table or view too?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Automatic-Persistence-POJOs-and-XMLs-for-couchbase-tp7492p7546.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Automatic Persistence - POJOs and XMLs for couchbase

Posted by Alexey Kuznetsov <ak...@gridgain.com>.
Hi, Abhishek Jain.

Actually schema utility loads jdbc driver jar via class loader.
And in this case I think license file is not loaded.
I will take a look (on Monday) at couchbase if it has trial version.

Meanwhile could you try to put license file inside jdbc driver jar (it is a
zip archive actually) and try again?

On Sat, Sep 3, 2016 at 10:44 AM, Abhishek Jain <ma...@gmail.com>
wrote:

> Thanks Val for replying soon. I will check with couchbase.
>
> As per their documentation, the license file should be in the same folder
> where the driver jar file is saved and I did so but of no help.
>
> Regards
> Abhishek
>
>
> On Fri, Sep 2, 2016 at 6:53 PM, vkulichenko <valentin.kulichenko@gmail.com
> > wrote:
>
>> Hi,
>>
>> It looks like the misuse of Couchbase - the driver can't connect to the
>> server due to a licensing issue. You should refer to Couchbase docs and
>> figure out where the license file should be located. I'm unfortunately not
>> an expert, so can't help more.
>>
>> -Val
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.705
>> 18.x6.nabble.com/Automatic-Persistence-POJOs-and-XMLs-for-co
>> uchbase-tp7492p7494.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>


-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Re: Automatic Persistence - POJOs and XMLs for couchbase

Posted by Abhishek Jain <ma...@gmail.com>.
Thanks Val for replying soon. I will check with couchbase.

As per their documentation, the license file should be in the same folder
where the driver jar file is saved and I did so but of no help.

Regards
Abhishek


On Fri, Sep 2, 2016 at 6:53 PM, vkulichenko <va...@gmail.com>
wrote:

> Hi,
>
> It looks like the misuse of Couchbase - the driver can't connect to the
> server due to a licensing issue. You should refer to Couchbase docs and
> figure out where the license file should be located. I'm unfortunately not
> an expert, so can't help more.
>
> -Val
>
>
>
> --
> View this message in context: http://apache-ignite-users.705
> 18.x6.nabble.com/Automatic-Persistence-POJOs-and-XMLs-for-
> couchbase-tp7492p7494.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Automatic Persistence - POJOs and XMLs for couchbase

Posted by vkulichenko <va...@gmail.com>.
Hi,

It looks like the misuse of Couchbase - the driver can't connect to the
server due to a licensing issue. You should refer to Couchbase docs and
figure out where the license file should be located. I'm unfortunately not
an expert, so can't help more.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Automatic-Persistence-POJOs-and-XMLs-for-couchbase-tp7492p7494.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.