Giter VIP home page Giter VIP logo

Comments (5)

mikecroft avatar mikecroft commented on July 26, 2024

The problem here is due to permissions. Payara makes a backup of the domain.xml so that you always have a copy to restore to if something goes wrong. The default temporary directory is /tmp, so if it doesn't have write permissions there, or on the original domain.xml, you might see an error like this.

You can change the temp directory by setting -Djava.io.tmpdir=/my/new/path which may help. If not, please upload the log file and I'll take a closer look.

from payara-examples.

mikecroft avatar mikecroft commented on July 26, 2024

Could I also ask exactly what the symptoms were? You say you couldn't make it work, but how did it fail? Did Payara Micro completely fail to start, or did it start with the default domain.xml?

from payara-examples.

pmarijan avatar pmarijan commented on July 26, 2024

Payara Micro started but with error I posted above and it didn't fail completely...I hadn't checked if it started with default domain.xml.

Solution you suggested worked, I just added System.setProperty("java.io.tmpdir", "/my/folder"); at the beginning of my application.

from payara-examples.

mikecroft avatar mikecroft commented on July 26, 2024

Excellent, thanks!

from payara-examples.

kissoid avatar kissoid commented on July 26, 2024

i have same problem and i will try to change temp folder.

from payara-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.