compile with verification for s2s
Xjc -nv -Xverification -extension CustMetaSchema.xsd
compile proposal printing
Xjc -b nihbindings.xjb phs398schema.xsd
Installed JAXB (from sun http://java.sun.com/webapps/download/DisplayLinks)
NOTES:
Actually, when creating classes, just do step d and skip step c. then just copy the schedule directory.
If I were using another schema, say protocol.irb, I would have a protocol directory instead of a schedule directory.
Here’s what happens.
xjc –d src –p edu.mit.coeus.utils.xml.bean irb.xsd
this will create classes from the irb schema in the bean directory.
It will also create an impl directory, and this will contain helper classes for the irb classes.
It will also create an impl/runtime which contains common classes for xjc stuff
src is where the resulting classes go
So….
xjc –d src –p edu.mit.coeus.utils.xml.bean.schedule –use-runtime edu.mit.coeus.utils.xml.bean.impl.runtime irb.xsd
this will create the irb schema classes in the bean.schedule directory.
It will also create a schedule/impl directory.
It will not recreate the impl/runtime directory – but will use the existing one in the bean/impl/runtime
SUMMARY OF THE CLASSES CREATED BY XJC AND HOW WE USE THEM
We put all the XJC classes in the bean directory
Impl directory contains classes that are implementation classes used by the xjc bean clases
Runtime directory contains common classes used by impl stuff
We write classes in the generator directory are classes that use the xjc objects
xml
bean
nih …
common - xjc generated classes from common schema
impl - helper classes
nih - xjc generated classes from nih schema
impl - helper classes
rar - xjc generated classes from research related schema
impl - helper classes
phs398 - xjc generated classes from phs398 schema
impl - helper classes
schedule - xjc generated classes from schema
impl - helper classes
impl
runtime – common helper classes for impl stuff
SWITCHED TO USING NEWER XJC COMPILER ON MAR 1
Need the jar files from the newer jaxb version…
copy 3 jar files from jaxb/lib folder to coeus40_vss/web_inf/lib folder
jaxb-api.jar
jaxb-impl.jar
jaxb-libs.jar
jax-qname.jar
(I don’t think I need jaxb-xjc.jar, but check it)
copy jax-qname.jar and namespace.jar from jwsdp-1.3\jwsdp-shared\lib to coeus40_vss/web_inf/lib
need to have these jar files in tomcat web-inf/lib
jaxb-api.jar
jaxb-impl.jar
jaxb-libs.jar
jax-qname.jar