For example if I have schema something like this?
<xsd:simpleType name="Example2">
<xsd:restriction base="com.mine.Validator">
<method value="doSomethingHere(${value});" />
</xsd:restriction>
</xsd:simpleType>
Is there a way for me to plugin my "com.mine.Validator" class into castor
framework so that validation of this simpelType will be given to my
validator?
--ekiM
R&D Hummingbird Core Services
613.548.4355 x1535 | 613.548.7801
-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED]
Sent: Monday, September 06, 2004 5:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-user] how to switch on debug (tried a couple of things)
Maximilian Haeussler wrote:
>
> Hi,
>
> I think I forgot something fundamental here, it can't be that
> difficult to activate the debug mode of castor, trying now for one day:
>
> a) I have a castor.properties files in the current dir and in the
> classpath with org.exolab.castor.debug=true
> b) I've modified the castor.properties inside the castor-jar-file
> c) I do "Unmarshaller u = new Unmarshaller(); u.setDebug(true);"
> d) I have a castorbuilder.properties file in the current dir with
> org.exolab.castor.debug=true
> e) the dir where the properties-file is located is placed before the
> castor.jar file in the classpath
> g) I do this:
> LocalConfiguration.getInstance().getProperties().setProperty("org.exol
> ab.castor.debug",
> "true");
> but when I do this afterwards, I get a "false":
> logger.debug(Boolean.toString(LocalConfiguration.getInstance().debug()
> ));
> How come????
>
> has someone any ideas? I'm stuck, though this is supposed to be a very
> simple thing... I had the debug mode already running and used it
> often... I don't get it...WHAT THE HECK could be the problem here???
> :-) I don't remember what I changed recently.
Max,
All of the options above will enable debugging for Castor XML. If you're
trying to enable debugging for Castor JDO, it can be enabled by placing the
log4j.properties file from src/etc/ in the CLASSPATH so that Log4J can find
it and begin outputting the logging statements. Be aware that you may want
to alter the log4j.properties file to change the level and to output the
logging statements to your desired location. Currently
src/etc/log4j.properties is set up to output the INFO level to both the
console and to a log file named castor.log.
BTW, I just checked in a change to the Ant build descriptor to include the
log4j.properties file inside of the jar file from now on.
Bruce
--
perl -e 'print
unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user