com.sample.test.webservices.impl.participant.Notify.class, reason why the last class parameter has a trailing comma
Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité 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. From: sumit.s...@cgifederal.com To: java-user@axis.apache.org Subject: WSImport w JDK 1.6.0_25 and Axis2 1.6.2: Generated stub fails compilation Date: Wed, 20 Mar 2013 15:21:41 +0000 Hi, I am using WSImport to generate the client stubs for a bunch of wsdl files. After the generation the code fails to compile. I am using this with Axis2 1.6.2. The following code block fails: If you notice: the line: 'com.sample.test.webservices.impl.participant.Notify.class,' ends with a comma that shouldn't be there. Ironically it only happens for 2 of the 10 or so wsdl files I have. Any information would be appreciated. private static final javax.xml.bind.JAXBContext wsContext; static { javax.xml.bind.JAXBContext jc; jc = null; try { jc = javax.xml.bind.JAXBContext.newInstance( com.sample.test.webservices.impl.participant.Add.class, com.sample.test.webservices.impl.participant.AddResponse.class, com.sample.test.webservices.exceptions.UnrecoverableFault.class, com.sample.test.webservices.exceptions.RecoverableFault.class, com.sample.test.webservices.impl.participant.Delete.class, com.sample.test.webservices.impl.participant.DeleteResponse.class, com.sample.test.webservices.impl.participant.Select.class, com.sample.test.webservices.impl.participant.SelectResponse.class, com.sample.test.webservices.impl.participant.AddChange.class, com.sample.test.webservices.impl.participant.AddChangeResponse.class, com.sample.test.webservices.impl.participant.Query.class, com.sample.test.webservices.impl.participant.QueryResponse.class, com.sample.test.webservices.impl.participant.Update.class, com.sample.test.webservices.impl.participant.UpdateResponse.class, com.sample.test.webservices.impl.participant.Change.class, com.sample.test.webservices.impl.participant.ChangeResponse.class, com.sample.test.webservices.impl.participant.Synchronize.class, com.sample.test.webservices.impl.participant.SynchronizeResponse.class, com.sample.test.webservices.impl.participant.Notify.class, ); } catch ( javax.xml.bind.JAXBException ex ) { System.err.println("Unable to create JAXBContext: " + ex.getMessage()); ex.printStackTrace(System.err); Runtime.getRuntime().exit(-1); } finally { wsContext = jc; } }