Yes, looking at your binding I see why this comes up - the first <mapping> is for java.util.HashMap, which is a package that we can't use directly. As it says in the documentation for the <binding> element package attribute:
"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")."
We can't add stuff to the "java.util" package, so instead it winds up in the default package. If you reordered your <mapping> elements the classes would instead go into the package you're expecting automatically.
The file name conversion to a binding name is working as currently documented, but for beta 4 I think I'll change this to instead use only the base file name (with leading directory path information stripped off). This would make the added file names "JiBX_StcdbDatabaseModel_bindingFactory" rather than "JiBX_hawaii_stcdbeway_repository_src_java_com_stc_stcdbeway_repository_impl_StcdbDatabaseModel_bindingFactory", for instance, which seems more reasonable (especially since the same name string will be used for methods added to your classes).
- Dennis
Sudhendra Seshachala wrote:
I think I got it. Pretty simple one. It was just another ant task issue. Basically I have to give fully qualified package namw where the files will be generated.
Thanks Sudhi
-----Original Message-----
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 6:45 PM
To: Sudhendra Seshachala
Subject: Re: [jibx-users] Question of Compile time bindings and runtimebindigs
No, these should be automatic. If you can send me your binding definition file, the actual command you're using to run the binding compiler, and a zip file of the classes in your package after running the binding compiler I'll try to track down what's going wrong. Normally the name of your binding factory class is not going to be such a long string, so I think something strange is happening.
- Dennis
Sudhendra Seshachala wrote:
Do I need to set any property before compiling bindings to generate *bindingFactory.class and *MungeAdapter.class ?
Thanks Sudhi
-----Original Message----- From: Sudhendra Seshachala Sent: Friday, April 30, 2004 4:21 PM To: 'Dennis Sosnoski' Subject: RE: [jibx-users] Question of Compile time bindings and runtimebindigs
When I investigated the jar file and also compilation the following file is not getting generated "JiBX_hawaii_stcdbeway_repository_src_java_com_stc_stcdbeway_repository_impl_StcdbDatabaseModel_bindingFactory"
I believe this is what is causing the issue
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users