Problem running example in Rhino with SQL or Mongo #14

Open
scottbradley opened this Issue Mar 11, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@scottbradley

If I run the example wiki using rhino/narwhal by executing:

persvr example

it works fine. however, when i modify the page.js file to attempt to use either the SQL store or the Mongo store, i get errors.

SQL gives me this error:

TypeError: [JavaPackage org.persvr.store.SQLStore] is not a function, it is object

Mongo gives me this error:

Error: undefined failed to load file://...\example/lib/sys.js

All I have done is modify the page.js file by uncommenting the appropriate section to change the pageStore that is used...

I also get this error when I run the page through the browser:
"Error: You must assign a getDataModel method to the pintura config object in order to expose data"

@kriszyp

This comment has been minimized.

Show comment
Hide comment
@kriszyp

kriszyp Mar 12, 2011

Member

This is an issue with the packages/perstore/jars/pintura.jar not getting loaded. This is supposed to take place automatically, but apparently it is not for you. I'll see if I can reproduce this.

Member

kriszyp commented Mar 12, 2011

This is an issue with the packages/perstore/jars/pintura.jar not getting loaded. This is supposed to take place automatically, but apparently it is not for you. I'll see if I can reproduce this.

@kriszyp

This comment has been minimized.

Show comment
Hide comment
@kriszyp

kriszyp Mar 12, 2011

Member

Checked in kriszyp/narwhal@dc3482e to deal with the Rhino/SQL issue.

The Mongo store is built for Node, it will not run on Rhino.

Do you get the error about getDataModel on the example or the template?

Member

kriszyp commented Mar 12, 2011

Checked in kriszyp/narwhal@dc3482e to deal with the Rhino/SQL issue.

The Mongo store is built for Node, it will not run on Rhino.

Do you get the error about getDataModel on the example or the template?

@scottbradley

This comment has been minimized.

Show comment
Hide comment
@scottbradley

scottbradley Mar 12, 2011

Thanks Kris, I'll try it out today...I appreciate the quick response.
I got the getDataModel error when using the example through Rhino and attempting the SQL store.
Thanks again...
------Original Message------
From: kriszyp
To: scott@bradleytechconsulting.com
Subject: Re: [GitHub] Problem running example in Rhino with SQL or Mongo [kriszyp/pintura GH-14]
Sent: Mar 11, 2011 7:39 PM

Checked in kriszyp/narwhal@dc3482e to deal with the Rhino/SQL issue.

The Mongo store is built for Node, it will not run on Rhino.

Do you get the error about getDataModel on the example or the template?

https://github.com/kriszyp/pintura/issues/14#comment_862672

Sent via BlackBerry by AT&T

Thanks Kris, I'll try it out today...I appreciate the quick response.
I got the getDataModel error when using the example through Rhino and attempting the SQL store.
Thanks again...
------Original Message------
From: kriszyp
To: scott@bradleytechconsulting.com
Subject: Re: [GitHub] Problem running example in Rhino with SQL or Mongo [kriszyp/pintura GH-14]
Sent: Mar 11, 2011 7:39 PM

Checked in kriszyp/narwhal@dc3482e to deal with the Rhino/SQL issue.

The Mongo store is built for Node, it will not run on Rhino.

Do you get the error about getDataModel on the example or the template?

https://github.com/kriszyp/pintura/issues/14#comment_862672

Sent via BlackBerry by AT&T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment