Venkatesh Prasad Ranganath wrote:
The class should be generated relative to the same root as the first mapping class (root meaning the directory corresponding to the default package, with the actual package represented by a subtree under the root - so if your first mapped class is a.b.C and is relative to the root /X/Y/Z the path to that file would be /X/Y/Z/a/b/C.class. The binding factory should then also be in that package and directory.Dennis Sosnoski wrote:
I don't understand the reference to different working directories, unless you mean that these are separate directories in the classpath. I don't know that anyone has really tried working with this case of having a binding use classes from two separate root directories in the classpath. Still, it should work.
The "complaint" you mentioned sounds like a runtime problem. Is that correct? If so, are you sure your classpath at runtime matches the classpath you used while binding (so that the expected factory class can be found within the appropriate package)?
- Dennis
It's a compile time complaint - a file not found exception. The exact error message is given below.
org.jibx.runtime.JiBXException: Error writing to file
Root cause: java.io.FileNotFoundException: /N/Y/JiBX_slicerConfig_JiBXBindingFactory.class (No such file or directory)
I think that the directory in which the class corresponding to the first mapping of a binding occurs is used as the root for the package. Instead, shouldn't it be relative to the working directory. It may be true as changing the working directory in which the compiler executes does not have an effect on the location into which the BindingFactory.class is written into.
- Dennis
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
