Hello again and thanks. ant target works, the different jarfile does in principle as well, would need the full cp though incuding the reference to commons-codec library.
I got my stuff and will continue working my way through to make my databases and tenant dbs crypto-ready ! Thanks & regards Carsten 2012/11/18 Jacques Le Roux <[email protected]> > I'm not quite sure because there is any documentation but you might also > be interested by the gen-kek ant target > > We asked for details, still waiting > http://markmail.org/message/546ktszoki7aahy2 ... > > Adam? > > Jacques > > From: "Adrian Crum" <[email protected]> > > Try using ofbiz-base.jar instead of ofbiz.jar. > > > > -Adrian > > > > On 11/17/2012 5:05 PM, Carsten Schinzer wrote: > >> Hello all, > >> > >> > >> I do have issues with this as follows: > >> > >> After downloading the latest trunk for my monthly merge release I do > find > >> issues with my tenant data sources as the framework complains, kekText > was > >> too short (not to say NULL). Digging deeper I finally found out that it > >> should be possible to generate respective keys for each delegator using > >> org.ofbiz.crypto.Main class which is designed to be a standalone > >> commandline class. So I invoked it as : > >> > >>> java -cp ofbiz.jar org.ofbiz.base.crypto.Main -kek > >> Exception in thread "main" java.lang.NoClassDefFoundError: > >> org/ofbiz/base/crypto > >> /Main > >> Caused by: java.lang.ClassNotFoundException: org.ofbiz.base.crypto.Main > >> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > >> at java.security.AccessController.doPrivileged(Native Method) > >> at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > >> at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > >> Could not find the main class: org.ofbiz.base.crypto.Main. Program will > >> exit. > >> Now this is surprising as this class definitely is in the respective > >> package and jar file. > >> Anything I am not seeing here? > >> > >> Running this very class directly off my Eclipse IDE results in the same > >> Exception by the way. > >> > >> On top of this, the documentation available on this important feature is > >> extremely slim (to say the least), however any tenant setup from before > >> this commit will not be able to run any more apparently. So I find it > would > >> be good to release such features only *with* sufficient documentation, > at > >> least on the JIRA. > >> > >> Adam's comment on > >> > http://mail-archives.apache.org/mod_mbox/ofbiz-dev/201205.mbox/%[email protected]%3E > >> underlines this and I would be happy to help, however without an even > >> initial howto and working code I do have difficulty to provide that. > >> > >> Also: Is the a JIRA reference for this feature enhancement? > >> > >> Kind regards > >> > >> > >> Carsten > >> > > >
