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.
Venkatesh Prasad Ranganath wrote:
Following is a snippet from the doc for "binding"
package - Java package used for created binding factory class. By default this is the same package as the class associated with the first *mapping* child element. If present, the value must be a Java package name (as in "org.jibx.runtime").
I specified package in two binding files and it complained. The situation was binding file A dealt with class in a package X in working directory M (binding package spec="X"), file B dealt with classes in package Y in working directory M and a package Z in working directory N (binding package spec="Y"). The complain was that Factory class for the second binding could not be found in directory N/Y. However, if I remove the package spec in the second binding file, things worked fine. Is this something that I am messing up? Or an issue in JiBX?
- Venkatesh
-------------------------------------------------------
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
--
Venkatesh Prasad Ranganath, Dept. Computing and Information Science, Kansas State University, US. web: http://www.cis.ksu.edu/~rvprasad
-------------------------------------------------------
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
