Tomek, I'm unable to replicate the problem so far. I'm also testing on Windows but Sun JDK 1.5.0_10-b02. One thing I did notice that you will need to add JPA spec jar to the classpath you pass to wsgen. What's the exact command you are executing?
Jarek On 10/5/07, Tomasz Mazan <[EMAIL PROTECTED]> wrote: > > > Jarek Gawor-2 wrote: > > > > Tomek, > > > > You mean it worked before and it doesn't work? Or it's a different > > annotated class? Can you send the class that generates this error? > > > > Btw, I've found this: > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6543269. Might be a > > bug somewhere in Glassfish libraries that we use. > > > > Jarek > > > > On 10/4/07, Tomasz Mazan <[EMAIL PROTECTED]> wrote: > >> > >> I try to use jaxws-tools.bat wsgen to generate WSDL file from my web > >> service > >> (I've succesfully generated using com.sun.tools.ws.ant.WsGen included in > >> Geronimo 2.0.1, but now I got exception > >> > >> [exec] Using GERONIMO_BASE: D:\SERVER\geronimo-tomcat > >> [exec] Using GERONIMO_HOME: D:\SERVER\geronimo-tomcat > >> [exec] Using GERONIMO_TMPDIR: var\temp > >> [exec] Using JRE_HOME: C:\DEV\SDK\jdk1.5.0_09\jre > >> [exec] Problem encountered during annotation processing; > >> [exec] see stacktrace below for more information. > >> [exec] java.lang.NullPointerException > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.isSubtype(WebServiceAP.java:416) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.isRemote(WebServiceAP.java:411) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalType(WebServiceVisitor.java:811) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalMethod(WebServiceVisitor.java:642) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.methodsAreLegal(WebServiceVisitor.java:622) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalImplementation(WebServiceVisitor.java:540) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:350) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:143) > >> [exec] at > >> com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:345) > >> [exec] at > >> com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:230) > >> [exec] at > >> com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60) > >> [exec] at com.sun.tools.apt.comp.Apt.main(Apt.java:454) > >> [exec] at > >> com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448) > >> [exec] at com.sun.tools.apt.main.Main.compile(Main.java:1075) > >> [exec] at com.sun.tools.apt.main.Main.compile(Main.java:938) > >> [exec] at com.sun.tools.apt.Main.processing(Main.java:95) > >> [exec] at com.sun.tools.apt.Main.process(Main.java:85) > >> [exec] at com.sun.tools.apt.Main.process(Main.java:67) > >> [exec] at > >> com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:603) > >> [exec] at > >> com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536) > >> [exec] at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54) > >> [exec] at > >> com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:42) > >> [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> [exec] at > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > >> [exec] error: compilation failed, errors should have been reported > >> [exec] at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > >> [exec] at java.lang.reflect.Method.invoke(Method.java:585) > >> [exec] at > >> org.apache.geronimo.jaxws.builder.JAXWSTools.invoke(JAXWSTools.java:190) > >> [exec] at > >> org.apache.geronimo.jaxws.builder.JAXWSTools.invoke(JAXWSTools.java:174) > >> [exec] at > >> org.apache.geronimo.jaxws.builder.JAXWSTools.invokeWsgen(JAXWSTools.java:161) > >> [exec] at > >> org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.java:64) > >> [exec] > >> > >> Could anyone help ? > >> -- > >> View this message in context: > >> http://www.nabble.com/Exception-while-generating-WSDL-in-Geronimo-2.0.2-tf4572394s134.html#a13051525 > >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >> > >> > > > > > > Class contains nothing special : > > @WebService(serviceName = "Core", portName = "PanelServices") > @Stateless(name = "PanelService") @TransactionAttribute(value = > TransactionAttributeType.NOT_SUPPORTED) > public class PanelService { > > /** > * Manager to serve request to CORE > */ > @EJB > private CoreManagerLocal coreManagerLocal = null; > > /** > * Default constructor > */ > public PanelService() {} > > @WebMethod(operationName = "createCustomer") > public CustomerBean createCustomer(@WebParam(name = "identifier") > String > identifier) { > //some code > } > > ... > > } > > I think it could be bug in libraries, but it has been fixed since June 07 > > Thank in advance > Beniamin > -- > View this message in context: > http://www.nabble.com/Exception-while-generating-WSDL-in-Geronimo-2.0.2-tf4572394s134.html#a13055242 > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >
