The code for the Version class in the codegen module is generated by an invocation of the maven-antrun-plugin plugin during the generate-test-sources phase. Please have a look at the pom.xml file. Note that this class has nothing to do with the version service that is part of the distribution.
Andreas On Thu, Apr 16, 2009 at 13:39, Martin Gainty <mgai...@hotmail.com> wrote: > Good Morning Glenn/Andreas > > noting the version of Version.java from the distro located t > http://people.apache.org/~gdaniels/stagingRepo/org/apache/axis2/distribution/1.5/ > > package sample.axisversion; > public class Version { > public String getVersion() throws Exception { > return "Hi - the Axis2 version is " + > org.apache.axis2.Version.getVersionText(); > } > } > > i see this error in /modules/codegen/target/surefire-reports/ > TEST-org.apache.axis2.wsdl.codegen.XML2JavaMappingTest.xml > > <testcase time="0.11" > classname="org.apache.axis2.wsdl.codegen.XML2JavaMappingTest" > name="testVersion"> > <error message="sample.axisversion.xsd.Version" > type="java.lang.ClassNotFoundException">java.lang.ClassNotFoundException: > sample.axisversion.xsd.Version > 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:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:169) > at > org.apache.axis2.wsdl.codegen.XML2JavaMappingTest.testVersion(XML2JavaMappingTest.java:22) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > </error> > </testcase> > > seems like the package sample.axisversion.xsd.Version > is not the actual java class version located at > sample.axisversion.Version > > Martin > ______________________________________________ > Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note > de déni et de confidentialité > > This message is confidential. If you should not be the intended receiver, > then we ask politely to report. Each unauthorized forwarding or > manufacturing of a copy is inadmissible. This message serves only for the > exchange of information and has no legal binding effect. Due to the easy > manipulation of emails we cannot take responsibility over the the contents. > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > >> Date: Wed, 15 Apr 2009 12:32:32 -0400 >> To: axis-dev@ws.apache.org; axis-u...@ws.apache.org >> Subject: [ANNOUNCE] Axis2 1.5 Release Candidate ready for testing >> From: g...@thoughtcraft.com >> >> Hi all! >> >> After a failed set of attempts to use the Maven release plugin, I've built >> and uploaded a Release Candidate for Axis2 1.5. Please check it out, kick >> the tires, etc. If I don't hear anything back in the next day or so I'll >> start a VOTE to release these bits as 1.5. >> >> You can find the distribution files in here: >> >> >> http://people.apache.org/~gdaniels/stagingRepo/org/apache/axis2/distribution/1.5/ >> >> And the M2 repository with everything is of course: >> >> http://people.apache.org/~gdaniels/stagingRepo >> >> Thanks, >> --Glen > > ________________________________ > Windows Live™: Life without walls. Check it out.