Hello, I'm new to this, but am porting a preexisting code base that worked with the M2 release, so have working code to go from.
Anyway, I've added all the new libs and am trying to get my generation to work again with the new libs. When I run our old command line program to do the generation with the XSD2JavaGenerator, I get this error: ----------------- C:\dmstrunk\dmsbuild\tools>xsdgenerate.bat Exception in thread "main" java.lang.NoClassDefFoundError: commonj/sdo/helper/XSDHelper Exception in thread "main" java.lang.NoClassDefFoundError: commonj/sdo/helper/XSDHelper ----------------- Here is my batch file for further help so you can see I have the classes included in the class path correctly: ---------------- @echo off set CP=%~dp0\..\dms\lib\tuscany-sdo-impl-1.0-incubating-beta1.jar set CP=%CP%;%~dp0\..\dms\lib\stax-api-1.0.1.jar set CP=%CP%;%~dp0\..\dms\lib\wstx-asl-3.2.0.jar set CP=%CP%;%~dp0\..\dms\lib\tuscany-sdo-impl-1.0-incubating-beta1.jar set CP=%CP%;%~dp0\..\dms\lib\sdo-api-r2.1.1-1.0-incubating-beta1.jar set CP=%CP%;%~dp0\..\dms\lib\tuscany-sdo-tools-1.0-incubating-beta1.jar set CP=%CP%;%~dp0\..\dms\lib\common-2.2.2.jar set CP=%CP%;%~dp0\..\dms\lib\ecore-2.2.2.jar set CP=%CP%;%~dp0\..\dms\lib\ecore-xmi-2.2.2.jar set CP=%CP%;%~dp0\..\dms\lib\xsd-2.2.2.jar set CP=%CP%;%~dp0\..\dms\lib\codegen-2.2.2.jar set CP=%CP%;%~dp0\..\dms\lib\codegen-ecore-2.2.2.jar set CP=%CP%;%~dp0\..\dms\lib\ecore-change-2.2.2.jar set GENERATOR=org.apache.tuscany.sdo.generate.XSD2JavaGenerator rem copy \com.pervasive.dms\dms\src\com\pervasive\dms\*.xsd java -classpath %CP% %GENERATOR% -noEmf -noInterfaces -targetDirectory . %~dp0\..\dms\src\com\pervasive\dms\Common.xsd java -classpath %CP% %GENERATOR% -noEmf -noInterfaces -prefix BatchResult -targetDirectory . %~dp0\..\dms\src\com\pervasive\dms\BatchResponse.xsd rem /com.pervasive.dms/dms/src Common.xsd ----------------- If I then turn on verbose mode for java, I get this output that tells me it can't find XSDHelper class, but from the class path, it should be found. ----------------- [Loaded java.security.Policy$UnsupportedEmptyCollection from shared objects file] [Loaded java.io.FilePermissionCollection from shared objects file] [Loaded java.security.AllPermission from shared objects file] [Loaded java.security.UnresolvedPermission from shared objects file] [Loaded java.security.BasicPermissionCollection from shared objects file] [Loaded java.security.Principal from shared objects file] [Loaded java.security.cert.Certificate from shared objects file] [Loaded org.apache.tuscany.sdo.generate.JavaGenerator from file:/C:/dmstrunk/dmsbuild/dms/lib/tuscany-sdo-tools-1.0-i bating-beta1.jar] [Loaded org.apache.tuscany.sdo.generate.XSD2JavaGenerator from file:/C:/dmstrunk/dmsbuild/dms/lib/tuscany-sdo-tools-1 incubating-beta1.jar] [Loaded java.lang.IllegalArgumentException from shared objects file] [Loaded org.eclipse.emf.common.util.Monitor from file:/C:/dmstrunk/dmsbuild/dms/lib/common-2.2.2.jar] [Loaded org.eclipse.emf.common.notify.Notifier from file:/C:/dmstrunk/dmsbuild/dms/lib/common-2.2.2.jar] [Loaded org.eclipse.emf.ecore.EObject from file:/C:/dmstrunk/dmsbuild/dms/lib/ecore-2.2.2.jar] [Loaded org.eclipse.emf.ecore.EModelElement from file:/C:/dmstrunk/dmsbuild/dms/lib/ecore-2.2.2.jar] [Loaded org.eclipse.emf.ecore.ENamedElement from file:/C:/dmstrunk/dmsbuild/dms/lib/ecore-2.2.2.jar] [Loaded org.eclipse.emf.ecore.EPackage from file:/C:/dmstrunk/dmsbuild/dms/lib/ecore-2.2.2.jar] [Loaded org.eclipse.emf.ecore.EPackage$Registry from file:/C:/dmstrunk/dmsbuild/dms/lib/ecore-2.2.2.jar] [Loaded org.eclipse.emf.ecore.util.ExtendedMetaData from file:/C:/dmstrunk/dmsbuild/dms/lib/ecore-2.2.2.jar] Exception in thread "main" java.lang.NoClassDefFoundError: commonj/sdo/helper/XSDHelper [Loaded java.util.AbstractList$Itr from shared objects file] [Loaded java.util.IdentityHashMap$KeySet from shared objects file] [Loaded java.util.IdentityHashMap$IdentityHashMapIterator from shared objects file] [Loaded java.util.IdentityHashMap$KeyIterator from shared objects file] [Loaded java.io.DeleteOnExitHook from shared objects file] [Loaded java.util.LinkedHashSet from shared objects file] [Loaded java.util.HashMap$KeySet from shared objects file] [Loaded java.util.LinkedHashMap$LinkedHashIterator from shared objects file] [Loaded java.util.LinkedHashMap$KeyIterator from shared objects file] Exception in thread "main" java.lang.NoClassDefFoundError: commonj/sdo/helper/XSDHelper C:\dmstrunk\dmsbuild\tools> ----------------- Any help or suggestions would be greatly appreciated... Thanks, Sam Griffith Developer Pervasive Software --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
