Home » Eclipse Projects » Web Tools incubator » [JAX-WS] Unable to generate code from JAX-WS annotations
| | | |
Re: [JAX-WS] Unable to generate code from JAX-WS annotations [message #435136 is a reply to message #435134] |
Fri, 20 March 2009 20:11 |
Derek Palma Messages: 141 Registered: July 2009 |
Senior Member |
|
|
Hi Shane,
Ok, I seem to be getting code generation to happen. But now I see a problem
in the java2ws console output. I poked around and did not see an obvious way
to control this for java2ws. My IDE compiler compliance level is set to 1.6
globally and for the specific project. I am running on Linux x64 with
openjdk.
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO1
java2ws - Apache CXF 2.1.4
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO1
java2ws - Apache CXF 2.1.4
Derek
P.S. Thanks for your responsiveness. Let me buy you a drink at Eclipse Con
if you are there...
----------
1. ERROR in
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
(at line 15)
@XmlRootElement(name = "getString", namespace = "http://jaxws.test/")
^^^^^^^^^^^^^^^
Syntax error, annotations are only available if source level is 1.5
----------
2. ERROR in
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
(at line 16)
@XmlAccessorType(XmlAccessType.FIELD)
^^^^^^^^^^^^^^^^
Syntax error, annotations are only available if source level is 1.5
----------
3. ERROR in
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
(at line 17)
@XmlType(name = "getString", namespace = "http://jaxws.test/")
^^^^^^^^
Syntax error, annotations are only available if source level is 1.5
----------
3 problems (3 errors)
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO2
java2ws - Apache CXF 2.1.4
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO2
java2ws - Apache CXF 2.1.4
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO2
java2ws - Apache CXF 2.1.4
"Shane Clarke" <shane_clarke@hotmail.com> wrote in message
news:1bd6083099cadcee81f42df324c0653b$1@www.eclipse.org...
> Hi Derek,
>
> From your description it sounds like you've used Apache Axis as the Web
> Service Runtime in the wizard.
>
> When you open the wizard make sure you change the "Web Service Type" at
> the very top of the page to "Bottom up POJO Web Service". Or set this up
> in the preferences i mentioned in the last post.
>
> When you select your service implementation class using the browse button
> you should see the "Configuration" section just below that field and to
> the right of the slider change.
>
> The Web Service Runtime in that configuration should now read "Apache CXF
> 2.x"
>
>> 1) Under what specific circumstances will the classes be generated. Will
>> they only be generated when I run the wizard or each time I change and
>> cause a build of the POJO class?
>
> The classes are only generated when you run through the wizard.
>> I presume the wizard saves some information about the POJO that will be
>> treated as a web service implementation.
>
> An jaxws endpoint configuration is created in the spring configuration
> that's setup.
>
> Depending on the option in the preferences that'll either be a beans.xml
> file or a cxf-servlet.xml file.
>
> The location of that file will be in the /WebContent/WEB-INF/ directory.
>
>> 2) I also did not see any annotations get added to my POJO. Your note
>> indicates you expect the annotations to be added to my POJO source. I
>> presume you mean at least WebService and WebMethod.
>
> It will add @WebService, @WebMethod, @WebParam, @ResponseWrapper and
> @RequestWrapper depending on preferences and if they already exist in the
> code.
>
>> 3) Is there a log entry I can look for to see if everything worked fine
>> or not?
>
> Any errors that might occur are logged. Check the Window > Show View >
> General > Error Log.
>
> Also, the CXF Java2WS and WSDLJava tools logs output to the console view
> when run. So you should see that output if it runs correctly.
>
>> Note: I have not tried to deploy the web service yet so if the classes
>> are only generated at deployment this could be my problem. However, I
>> plan to use Spring in a mode where it uses the JAX-WS Endpoint API to
>> deploy services for internal testing. I can use a regular web app
>> container like Tomcat if this is required.
>
> No need to deploy to generate classes.
>
> Thanks,
> Shane
>
>
>
|
|
|
Re: [JAX-WS] Unable to generate code from JAX-WS annotations [message #435138 is a reply to message #435136] |
Fri, 20 March 2009 20:33 |
Derek Palma Messages: 141 Registered: July 2009 |
Senior Member |
|
|
I was able to get rid of the 1.5 compliance issue by doing a QuickFix from
the Problems pane. Where exactly is this configurated?
"Derek Palma" <derek.palma@gmail.com> wrote in message
news:gq0taf$smt$1@build.eclipse.org...
> Hi Shane,
>
> Ok, I seem to be getting code generation to happen. But now I see a
> problem in the java2ws console output. I poked around and did not see an
> obvious way to control this for java2ws. My IDE compiler compliance level
> is set to 1.6 globally and for the specific project. I am running on Linux
> x64 with openjdk.
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO1
> java2ws - Apache CXF 2.1.4
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO1
> java2ws - Apache CXF 2.1.4
>
> Derek
> P.S. Thanks for your responsiveness. Let me buy you a drink at Eclipse Con
> if you are there...
>
> ----------
> 1. ERROR in
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
> (at line 15)
> @XmlRootElement(name = "getString", namespace = "http://jaxws.test/")
> ^^^^^^^^^^^^^^^
> Syntax error, annotations are only available if source level is 1.5
> ----------
> 2. ERROR in
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
> (at line 16)
> @XmlAccessorType(XmlAccessType.FIELD)
> ^^^^^^^^^^^^^^^^
> Syntax error, annotations are only available if source level is 1.5
> ----------
> 3. ERROR in
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
> (at line 17)
> @XmlType(name = "getString", namespace = "http://jaxws.test/")
> ^^^^^^^^
> Syntax error, annotations are only available if source level is 1.5
> ----------
> 3 problems (3 errors)
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO2
> java2ws - Apache CXF 2.1.4
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO2
> java2ws - Apache CXF 2.1.4
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO2
> java2ws - Apache CXF 2.1.4
>
>
> "Shane Clarke" <shane_clarke@hotmail.com> wrote in message
> news:1bd6083099cadcee81f42df324c0653b$1@www.eclipse.org...
>> Hi Derek,
>>
>> From your description it sounds like you've used Apache Axis as the Web
>> Service Runtime in the wizard.
>>
>> When you open the wizard make sure you change the "Web Service Type" at
>> the very top of the page to "Bottom up POJO Web Service". Or set this up
>> in the preferences i mentioned in the last post.
>>
>> When you select your service implementation class using the browse button
>> you should see the "Configuration" section just below that field and to
>> the right of the slider change.
>>
>> The Web Service Runtime in that configuration should now read "Apache CXF
>> 2.x"
>>
>>> 1) Under what specific circumstances will the classes be generated. Will
>>> they only be generated when I run the wizard or each time I change and
>>> cause a build of the POJO class?
>>
>> The classes are only generated when you run through the wizard.
>>> I presume the wizard saves some information about the POJO that will be
>>> treated as a web service implementation.
>>
>> An jaxws endpoint configuration is created in the spring configuration
>> that's setup.
>>
>> Depending on the option in the preferences that'll either be a beans.xml
>> file or a cxf-servlet.xml file.
>>
>> The location of that file will be in the /WebContent/WEB-INF/ directory.
>>
>>> 2) I also did not see any annotations get added to my POJO. Your note
>>> indicates you expect the annotations to be added to my POJO source. I
>>> presume you mean at least WebService and WebMethod.
>>
>> It will add @WebService, @WebMethod, @WebParam, @ResponseWrapper and
>> @RequestWrapper depending on preferences and if they already exist in the
>> code.
>>
>>> 3) Is there a log entry I can look for to see if everything worked fine
>>> or not?
>>
>> Any errors that might occur are logged. Check the Window > Show View >
>> General > Error Log.
>>
>> Also, the CXF Java2WS and WSDLJava tools logs output to the console view
>> when run. So you should see that output if it runs correctly.
>>
>>> Note: I have not tried to deploy the web service yet so if the classes
>>> are only generated at deployment this could be my problem. However, I
>>> plan to use Spring in a mode where it uses the JAX-WS Endpoint API to
>>> deploy services for internal testing. I can use a regular web app
>>> container like Tomcat if this is required.
>>
>> No need to deploy to generate classes.
>>
>> Thanks,
>> Shane
>>
>>
>>
>
|
|
| | | | | |
Re: [JAX-WS] Unable to generate code from JAX-WS annotations [message #570158 is a reply to message #435134] |
Fri, 20 March 2009 20:11 |
Derek Palma Messages: 141 Registered: July 2009 |
Senior Member |
|
|
Hi Shane,
Ok, I seem to be getting code generation to happen. But now I see a problem
in the java2ws console output. I poked around and did not see an obvious way
to control this for java2ws. My IDE compiler compliance level is set to 1.6
globally and for the specific project. I am running on Linux x64 with
openjdk.
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO1
java2ws - Apache CXF 2.1.4
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO1
java2ws - Apache CXF 2.1.4
Derek
P.S. Thanks for your responsiveness. Let me buy you a drink at Eclipse Con
if you are there...
----------
1. ERROR in
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
(at line 15)
@XmlRootElement(name = "getString", namespace = "http://jaxws.test/")
^^^^^^^^^^^^^^^
Syntax error, annotations are only available if source level is 1.5
----------
2. ERROR in
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
(at line 16)
@XmlAccessorType(XmlAccessType.FIELD)
^^^^^^^^^^^^^^^^
Syntax error, annotations are only available if source level is 1.5
----------
3. ERROR in
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
(at line 17)
@XmlType(name = "getString", namespace = "http://jaxws.test/")
^^^^^^^^
Syntax error, annotations are only available if source level is 1.5
----------
3 problems (3 errors)
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO2
java2ws - Apache CXF 2.1.4
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO2
java2ws - Apache CXF 2.1.4
java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
/home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
/home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
/home/dpalma/eclipsedata/test/Test3/build/classes -o
pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
jaxb -wsdl -wrapperbean test.jaxws.POJO2
java2ws - Apache CXF 2.1.4
"Shane Clarke" <shane_clarke@hotmail.com> wrote in message
news:1bd6083099cadcee81f42df324c0653b$1@www.eclipse.org...
> Hi Derek,
>
> From your description it sounds like you've used Apache Axis as the Web
> Service Runtime in the wizard.
>
> When you open the wizard make sure you change the "Web Service Type" at
> the very top of the page to "Bottom up POJO Web Service". Or set this up
> in the preferences i mentioned in the last post.
>
> When you select your service implementation class using the browse button
> you should see the "Configuration" section just below that field and to
> the right of the slider change.
>
> The Web Service Runtime in that configuration should now read "Apache CXF
> 2.x"
>
>> 1) Under what specific circumstances will the classes be generated. Will
>> they only be generated when I run the wizard or each time I change and
>> cause a build of the POJO class?
>
> The classes are only generated when you run through the wizard.
>> I presume the wizard saves some information about the POJO that will be
>> treated as a web service implementation.
>
> An jaxws endpoint configuration is created in the spring configuration
> that's setup.
>
> Depending on the option in the preferences that'll either be a beans.xml
> file or a cxf-servlet.xml file.
>
> The location of that file will be in the /WebContent/WEB-INF/ directory.
>
>> 2) I also did not see any annotations get added to my POJO. Your note
>> indicates you expect the annotations to be added to my POJO source. I
>> presume you mean at least WebService and WebMethod.
>
> It will add @WebService, @WebMethod, @WebParam, @ResponseWrapper and
> @RequestWrapper depending on preferences and if they already exist in the
> code.
>
>> 3) Is there a log entry I can look for to see if everything worked fine
>> or not?
>
> Any errors that might occur are logged. Check the Window > Show View >
> General > Error Log.
>
> Also, the CXF Java2WS and WSDLJava tools logs output to the console view
> when run. So you should see that output if it runs correctly.
>
>> Note: I have not tried to deploy the web service yet so if the classes
>> are only generated at deployment this could be my problem. However, I
>> plan to use Spring in a mode where it uses the JAX-WS Endpoint API to
>> deploy services for internal testing. I can use a regular web app
>> container like Tomcat if this is required.
>
> No need to deploy to generate classes.
>
> Thanks,
> Shane
>
>
>
|
|
|
Re: [JAX-WS] Unable to generate code from JAX-WS annotations [message #570180 is a reply to message #435136] |
Fri, 20 March 2009 20:33 |
Derek Palma Messages: 141 Registered: July 2009 |
Senior Member |
|
|
I was able to get rid of the 1.5 compliance issue by doing a QuickFix from
the Problems pane. Where exactly is this configurated?
"Derek Palma" <derek.palma@gmail.com> wrote in message
news:gq0taf$smt$1@build.eclipse.org...
> Hi Shane,
>
> Ok, I seem to be getting code generation to happen. But now I see a
> problem in the java2ws console output. I poked around and did not see an
> obvious way to control this for java2ws. My IDE compiler compliance level
> is set to 1.6 globally and for the specific project. I am running on Linux
> x64 with openjdk.
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO1
> java2ws - Apache CXF 2.1.4
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo1.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO1
> java2ws - Apache CXF 2.1.4
>
> Derek
> P.S. Thanks for your responsiveness. Let me buy you a drink at Eclipse Con
> if you are there...
>
> ----------
> 1. ERROR in
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
> (at line 15)
> @XmlRootElement(name = "getString", namespace = "http://jaxws.test/")
> ^^^^^^^^^^^^^^^
> Syntax error, annotations are only available if source level is 1.5
> ----------
> 2. ERROR in
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
> (at line 16)
> @XmlAccessorType(XmlAccessType.FIELD)
> ^^^^^^^^^^^^^^^^
> Syntax error, annotations are only available if source level is 1.5
> ----------
> 3. ERROR in
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src/test/jaxws/G etString.java
> (at line 17)
> @XmlType(name = "getString", namespace = "http://jaxws.test/")
> ^^^^^^^^
> Syntax error, annotations are only available if source level is 1.5
> ----------
> 3 problems (3 errors)
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO2
> java2ws - Apache CXF 2.1.4
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO2
> java2ws - Apache CXF 2.1.4
>
> java2ws -cp /home/dpalma/eclipsedata/test/Test3/build/classes -s
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/src -d
> /home/dpalma/eclipsedata/test/Test3/.cxftmp/wsdl -classdir
> /home/dpalma/eclipsedata/test/Test3/build/classes -o
> pojo2.wsdl -createxsdimports -verbose -frontend jaxws -databinding
> jaxb -wsdl -wrapperbean test.jaxws.POJO2
> java2ws - Apache CXF 2.1.4
>
>
> "Shane Clarke" <shane_clarke@hotmail.com> wrote in message
> news:1bd6083099cadcee81f42df324c0653b$1@www.eclipse.org...
>> Hi Derek,
>>
>> From your description it sounds like you've used Apache Axis as the Web
>> Service Runtime in the wizard.
>>
>> When you open the wizard make sure you change the "Web Service Type" at
>> the very top of the page to "Bottom up POJO Web Service". Or set this up
>> in the preferences i mentioned in the last post.
>>
>> When you select your service implementation class using the browse button
>> you should see the "Configuration" section just below that field and to
>> the right of the slider change.
>>
>> The Web Service Runtime in that configuration should now read "Apache CXF
>> 2.x"
>>
>>> 1) Under what specific circumstances will the classes be generated. Will
>>> they only be generated when I run the wizard or each time I change and
>>> cause a build of the POJO class?
>>
>> The classes are only generated when you run through the wizard.
>>> I presume the wizard saves some information about the POJO that will be
>>> treated as a web service implementation.
>>
>> An jaxws endpoint configuration is created in the spring configuration
>> that's setup.
>>
>> Depending on the option in the preferences that'll either be a beans.xml
>> file or a cxf-servlet.xml file.
>>
>> The location of that file will be in the /WebContent/WEB-INF/ directory.
>>
>>> 2) I also did not see any annotations get added to my POJO. Your note
>>> indicates you expect the annotations to be added to my POJO source. I
>>> presume you mean at least WebService and WebMethod.
>>
>> It will add @WebService, @WebMethod, @WebParam, @ResponseWrapper and
>> @RequestWrapper depending on preferences and if they already exist in the
>> code.
>>
>>> 3) Is there a log entry I can look for to see if everything worked fine
>>> or not?
>>
>> Any errors that might occur are logged. Check the Window > Show View >
>> General > Error Log.
>>
>> Also, the CXF Java2WS and WSDLJava tools logs output to the console view
>> when run. So you should see that output if it runs correctly.
>>
>>> Note: I have not tried to deploy the web service yet so if the classes
>>> are only generated at deployment this could be my problem. However, I
>>> plan to use Spring in a mode where it uses the JAX-WS Endpoint API to
>>> deploy services for internal testing. I can use a regular web app
>>> container like Tomcat if this is required.
>>
>> No need to deploy to generate classes.
>>
>> Thanks,
>> Shane
>>
>>
>>
>
|
|
| | |
Goto Forum:
Current Time: Tue Oct 15 23:16:08 GMT 2024
Powered by FUDForum. Page generated in 0.05441 seconds
|