Skip to content

perstore/util/settings.js: cannot find local.json when deploying to Tomcat under RIngoJS #44

@allencblee

Description

@allencblee

When using ringojs and deploying the war to servlet container like tomcat, the following error appears:

JavaException: java.io.FileNotFoundException: /Applications/springsource/sts-3.1.0.RELEASE/STS.app/Contents/MacOS/local.json (No such file or directory) trying to load local.json, make sure local.json is in your current working directory (perstore/util/settings.js#19)
at perstore/util/settings.js:19
at perstore/store/filesystem.js:13 (anonymous)
at pintura/media/html.js:5

It's because perstore/util/settings.js assumes that local.json is in the current working directory. However, when using an application server, the work directory is the directory of the app server, not the directory of the war.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions