We lose the "subdirectory per partner" preferences settings when we restart the server

openfor

We installed
m-e-c as2 1.0 build 17
build date 10.05.07 11:34

on linux system
CentOS release 5 (Final)
2.6.18-8.1.6.el5 #1 SMP Thu Jun 14 17:46:09 EDT 2007 i686 i686 i386 GNU/Linux

The problem is:
We set the option "Create subdirectory for receipt messages per partner" from the File->Preferences->Misc preferences menu.

When we stop and restart the mecas2 server we lose the "subdirectory per partner" setting.

So we have to re-setting manually the preference every time the mecas2 server comes down.

can someone help me ?
Thanks in advance for the help



heller
heller's picture
openfor, can you please

openfor,

can you please check your rights on the file system? These settings are stored (under linux) in the xml file ~/.java/.userPrefs. Do you have read/write access to this file?

Regards
Heller



openfor
openfor, can you please ..

We checked the rights for the following file
-rw-r--r-- 1 root root 0 12 set 16:40 prefs.tmp
-rw-r--r-- 1 root root 497 12 set 16:32 prefs.xml
in the
/root/.java/.userPrefs/de/mendelson/comm/as2
We are running the server as root user so we did'not expect
rights problems.

We have the same problem when we try to change the language because the entry in the prefs.xml

is not updated by the X11 server interface.

If we change manually the value from "en" to "de" (by means the "vi" editor command) the server restart in the correct germany language.

QUESTION:
Which is the entry and its value to set permanently the "subdirectory for receipt messages per parner" ?
We can manually add it via file editor in the prefs.xml.

This should be the solution while we'll continue to investigate the problem

Thanks for your help and collaboration
Regards
openfor



heller
heller's picture
openfor,

openfor,

the key is "receiptpartnersubdir", it should be set to "1" or "true", I am not sure.

Do you encounter this problem with other java software that uses the java.util.Prefs API?

Regards
Heller



openfor
Heller

Sorry but at the moment we don't use other java applications and we have not experiences.
Yesterday we made some other check with the following result: The prefs.xml was written by the previous version of mec-as2 that we had installed (the previous version without the "receiptpartnersubdir" option).

We removed all the
"/root/.java/.userPrefs/" and we restared the new server "m-e-c as2 1.0 build 17".

The new server created all the
"/root/.java/.userPrefs/de/mendelson/comm/as2" directory but it didn't create the prefs.xml file .

So the problem regards not only the update of the prefs.xml file but its creation too.

"m-e-c as2 1.0 build 17" seems only to read the file prefs.xml.
We copied manually the prefs.xml file into the "/root/.java/.userPrefs/de/mendelson/comm/as2".
We added manually the "receiptpartnersubdir" entry and now the server restart correctly configured.
Thanks to your aid we solved our restart problem

Now we'll investigate on the prefs.xml creation question.
Any idea and suggestion are welcomed.

We'll keep you updated

Thanks
openfor



heller
heller's picture
openfor,

openfor,

could this be a VM problem? The formerly version of m-e-c as2 has been shipped with a 1.5 VM, the m-e-c as2 b17 has been shipped and requires a 1.6 VM.
There is an issue with a xalan.jar being in your system classpath with VM 1.6 and the use of the java.util.Preferences API that prevents a write process on (only) linux. Could you please check this?

There is a way to enable the console for the server, please have a look at the thread http://www.mec-community.com/node/157.
This will help you on locating the problem.

Regards
Heller



heller
heller's picture
openfor, I think I found the

openfor,

I think I found the problem. We included xalan.jar and xerces.jar into the package. Please remove them and this will work fine on linux.

Regards
Heller



openfor
We solved the question

We solved the question installing the version m-e-c as2 1.0 build 19 that we installed last week.

I think the question is closed
Thanks for the help




© 1999-2008 mendelson-e-commerce GmbH. All right reserved.