Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running example in Rhino with SQL or Mongo #14

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

Problem running example in Rhino with SQL or Mongo #14

scottbradley opened this issue Mar 11, 2011 · 3 comments

Comments

@scottbradley
Copy link

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
Copy link
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
Copy link
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
Copy link
Author

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: [email protected]
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants