Hi, Try adding the "resources" directory which contains some generated artifacts to the classpath. It is at the same level as the "src" directory.
Upul On 8/4/07, New AxisU <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am using axis2 1.3 RC2 (maybe I'll try RC3 while waiting for an answer) > ... I dowloaded xmlbeans-2.3.0 and I put the following jars into NetBeans > "compile with these jars" and "run with these jars" lists. Am I using the > right version of xmlbeans? When I try to run my client I get "Cannot load > SchemaTypeSystem. Unable to load class with name > schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder" > > > I am pretty confused about this architecturally (?) because that looks > like some kind of generated file but it isn't in with any of th e source > made by Axis2 from WSDL2Java. > > So what am I doing wrong? Am I missing something that must also be on the > classpath? > > -------------- > error output > -------------- > > init: > deps-jar: > Deleted 1 out of date files in 1 seconds > Compiling 1 source file to D:\My > Documents\ABC\Data\NetBeans\Axis2RandQuote3\build\classes > compile: > run: > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.abc.quote.GetQuoteResponseDocument$Factory.newInstance( > GetQuoteResponseDocument.java:112) > at org.abc.quote.client.RandomQuoteClient.getQuote( > RandomQuoteClient.java :26) > at org.abc.quote.client.RandomQuoteClient.main( > RandomQuoteClient.java:40) > Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. > Unable to load class with name > schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder. > Make sure the generated binary files are on the classpath. > at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader( > XmlBeans.java:783) > at org.abc.quote.GetQuoteResponseDocument.<clinit>( > GetQuoteResponseDocument.java:19) > ... 3 more > Caused by: java.lang.ClassNotFoundException: > schemaorg_apache_xmlbeans.system.sD1970CAD33749EE685B296B2397B2093.TypeSystemHolder > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged (Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java :276) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader( > XmlBeans.java:769) > ... 4 more > Java Result: 1 > BUILD SUCCESSFUL (total time: 3 seconds) > > ------ > jars in classpath > ------ > jsr173_1.0_api.jar > resolver.jar > xbean.jar > xbean_xpath.jar > xmlbeans-qname.jar > xmlpublic.jar > > activation-1.1.jar > activemq-core-4.1.1.jar > annogen-0.1.0.jar > axiom-api-SNAPSHOT.jar > axiom-dom-SNAPSHOT.jar > axiom-impl-SNAPSHOT.jar > axis2-adb-1.3-RC2.jar > axis2-adb-codegen-1.3-RC2.jar > axis2-codegen-1.3-RC2.jar > axis2-fastinfoset-1.3-RC2.jar > axis2-java2wsdl-1.3-RC2.jar > axis2-jaxbri-1.3-RC2.jar > axis2-jaxws-1.3-RC2.jar > axis2-jaxws-api-1.3-RC2.jar > axis2-jibx-1.3-RC2.jar > axis2-json-1.3-RC2.jar > axis2-kernel-1.3-RC2.jar > axis2-metadata-1.3-RC2.jar > axis2-saaj-1.3-RC2.jar > axis2-saaj-api-1.3-RC2.jar > axis2-spring-1.3-RC2.jar > axis2-xmlbeans-1.3-RC2.jar > backport-util-concurrent-2.2.jar > commons-codec-1.3.jar > commons-fileupload-1.1.1.jar > commons-httpclient-3.0.1.jar > commons-io-1.1.jar > commons-logging-1.1.jar > geronimo-jms_1.1_spec-1.1.jar > httpcore-4.0-alpha5.jar > httpcore-nio-4.0-alpha5.jar > httpcore-niossl-4.0-alpha5.jar > jalopy-1.5rc3.jar > jaxb-api-2.0.jar > jaxb-impl-2.0.5.jar > jaxb-xjc-2.0.5.jar > jaxen-1.1.1.jar > jettison-1.0-RC1.jar > jibx-bind-1.1.5.jar > jibx-run-1.1.5.jar > log4j-1.2.13.jar > mail-1.4.jar > neethi-SNAPSHOT.jar > servlet-api-2.3.jar > stax-api-1.0.1.jar > woden-1.0-incubating-SNAPSHOT.jar > wsdl4j-1.6.2.jar > wstx-asl-3.2.1.jar > xalan-2.7.0.jar > xbean-2.2.0.jar > xercesImpl-2.6.2.jar > xml-apis-1.3.03.jar > XmlSchema-SNAPSHOT.jar > > > >
