Hi,
can somebody please create a Jira issue and provide all information from
here at the newly created issue.
Kind Regards
Werner
On 14.02.2014 21:22, Dmytro Shyshchenko wrote:
Hello Werner,
I do also had the same problem, as Jeff described. If you try to
generate classes from .xsd without castor.jar on your class-path (using
Ant or command line), you will get:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.<init>(SchemaUnmarshaller.java:229)
at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.<init>(SchemaUnmarshaller.java:158)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:663)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:611)
at
org.exolab.castor.builder.SourceGeneratorMain.main(SourceGeneratorMain.java:332)
Caused by: org.exolab.castor.xml.schema.SimpleTypesFactoryException:
Error: The schema built in types could not be loaded or created.;
org.castor.core.util.PropertiesException: Could not find configured
class:
org.castor.mapping.loaderFactories[0]=org.castor.mapping.JDOMappingLoaderFactory
at
org.exolab.castor.xml.schema.SimpleTypesFactory.loadTypesDefinitions(SimpleTypesFactory.java:433)
at
org.exolab.castor.xml.schema.SimpleTypesFactory.<init>(SimpleTypesFactory.java:169)
at org.exolab.castor.xml.schema.Schema.<clinit>(Schema.java:111)
.....
In order to generate classes from .xsd with version 1.3.3, you will need
just everything on your class-path:
<pathelement location="${castor}"/>
<pathelement location="${castorCore}"/>
<pathelement location="${castorXML}"/>
<pathelement location="${castorGen}"/>
<pathelement location="${castorSchema}"/>
<pathelement location="${commonsLogging}"/>
<pathelement location="${commonsLang}"/>
or do re-packaging, as Jeff has proposed.
Just try it your self!
Best regards,
Dmytro
On Fri, Feb 14, 2014 at 7:58 PM, Werner Guttmann <[email protected]
<mailto:[email protected]>> wrote:
Hi Jeff,
you should NOT have the castor-1.3.3 JAR on your classpath, anyhow,
as you apparently decided to use the individual Castor modules
(core, xml, ...).
Can you please remove the Über-JAR, and your problems should be gone.
Kind regards
Werner
On 28.01.2014 20:17, Jeff J Li wrote:
There are packaging issues with the following three jar files in the
_castor_ 1.3.3 GA version from the link
_http://dist.codehaus.org/__castor/1.3.3/castor-1.3.3.zip_
<http://dist.codehaus.org/castor/1.3.3/castor-1.3.3.zip_>__..
castor-1.3.3-core.jar
castor-1.3.3-xml.jar
castor-1.3.3.jar
Those three files cannot be placed in the CLASSPATH at the same time
because they are sealed packages as showing in the manifest
files and
they also contain duplicate compiled classes. Some classes in the
package org.castor.mapping are duplicated in both
_castor_-1.3.3-xml.jar
and _castor_-1.3.3.jar. The packaging issue will case java security
sealing violation.
The _castor_-1.3.3-core.jar, and _castor_-1.3.3-xml.jar cannot
be used
without the _castor_-1.3.3.jar. The reason is that the
_castor_-1.3.3-xml.jar misses some compiled classes which are
available
in _castor_-1.3.3.jar, such as AbstractMappingLoaderFactory.__class,
JDOMappingLoaderFactory.class, XMLMappingLoaderFactory.class in the
org.castor.mapping package.
User may have to re-assembly those the jar files such as replacing
everything in the package org.castor.mapping in the
_castor_-1.3.3-xml.jar with the package org.castor.mapping in the
_castor_-1.3.3.jar.
I believe this needs to be repackaging and released to users.
Regards,
------------------------------__------------------------------__------------
*Jeff Li , Software Architect*
DataStageConnectivity and XML
Information Management
Phone: (561) 862-3614
E-mail: [email protected] <mailto:[email protected]>
------------------------------__------------------------------__---------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/__manage_email
<http://xircles.codehaus.org/manage_email>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email