Issue #11 resolved

Error on Writing conf.xml

rider_pie
created an issue

Hi, after I've pushed save button on Config->General I got the error: <Error>

GRAVE: The RuntimeException could not be mapped to a response, re-throwing to t e HTTP container javax.xml.bind.DataBindingException: javax.xml.bind.MarshalException - with linked exception: [java.io.FileNotFoundException: C:\Documents%20and%20Settings\Administrator.scm\config\config.xml (Impossibile trovare il percorso specificato)] at javax.xml.bind.JAXB._marshal(Unknown Source) at javax.xml.bind.JAXB.marshal(Unknown Source) at sonia.scm.api.rest.resources.ConfigurationResource.setConfig(Configu ationResource.java:153) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMet odDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchP ovider.java:186) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodD spatcher.dispatch(ResourceJavaMethodDispatcher.java:70) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMetho Rule.java:279) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resour eClassRule.java:86)

</Error>

But scm-server write correctly files like repositories.xml in the same folder. Is it possible change the path of the .scm folder before the server starts?

Comments (3)

  1. Sebastian Sdorra repo owner
    • changed status to open

    You can change the directory with the environment variable SCM_HOME or the Java system property scm.home. For scm-server just edit the scm-server/bin/scm-server.bat. Search the the following line:

    set EXTRA_JVM_ARGUMENTS=

    and change this line to:

    set EXTRA_JVM_ARGUMENTS=-Dscm.home="C:\Documents and Settings\your\directory"

  2. Log in to comment