geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Mazan <win...@wp.pl>
Subject Re: Exception while generating WSDL in Geronimo 2.0.2
Date Wed, 10 Oct 2007 10:56:57 GMT



Jarek Gawor-2 wrote:
> 
> Ok. I'm still unable to replicate. Here's what I'm doing:
> 
> jaxws-tools.bat wsgen -verbose -r wsdl -s src  -d target -keep
> -wsdl:Xsoap1.2 -extension -cp
> ..\geronimo-jpa_3.0_spec-1.1.jar;..\test.jar
> org.apache.greeter_control.Foo
> 
> and my Foo.java looks like:
> 
> @WebService(serviceName = "Core", portName = "PanelServices")
> @Stateless(name = "PanelService") @TransactionAttribute(value =
> TransactionAttributeType.NOT_SUPPORTED)
> public class Foo {
> 
>        @PersistenceContext(unitName="travel")
>        EntityManager em;
> 
>        @EJB
>        private Object coreManagerLocal = null;
> 
>        @WebMethod(operationName = "createCustomer")
>        public FooBean createCustomer(@WebParam(name = "identifier") String
> identifier) {
>            return null;
>        }
> 
>     public static class FooBean {
>     }
> }
> 
> and that works fine for me. Does your PanelService.java contain any
> more methods annotated with @WebMethod? If not, are there any
> annotations on FooBean?
> 
> Jarek
> 
> On 10/8/07, Tomasz Mazan <wind22@wp.pl> wrote:
>>
>>
>>
>> Jarek Gawor-2 wrote:
>> >
>> > 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
>> >
>> >
>>
>> I was executing jaxws-tools using ant target:
>>
>>                 <exec executable="cmd">
>>                         <arg value="/c"/>
>>                         <arg
>> value="${geronimo-test.home}/bin/jaxws-tools.bat wsgen"/>
>>                         <arg line="-classpath ${build.dir}"/>
>>                         <arg line="-d ${build.dir}"/>
>>                         <arg line="-r ${src-gen-wsdl.dir}"/>
>>                         <arg line="-s ${src-gen-java.dir}"/>
>>                         <arg line="-keep"/>
>>                         <arg line="-verbose"/>
>>                         <arg line="-wsdl:Xsoap1.2"/>
>>                         <arg line="-extension"/>
>>                         <arg line="myapplication.myService"/>
>>                 </exec>
>> --
>> View this message in context:
>> http://www.nabble.com/Exception-while-generating-WSDL-in-Geronimo-2.0.2-tf4572394s134.html#a13096574
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

OK. it's working. I have to add to my classpath: openjpa spec and jar with
classes that are used in webservice, but error message was not clear.

Thanks
Beniamin

-- 
View this message in context: http://www.nabble.com/Exception-while-generating-WSDL-in-Geronimo-2.0.2-tf4572394s134.html#a13133602
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message