Hi Colm,

I got an error when I try to install the rutime with Eclipse

--------------------------
Java Virtual Machine Launcher
Could not find the main class:
org.apache.cxf.tools.wsdlto.WSDLToJava. Program will exit.
--------------------------

It's under Windows 10.


I'll see if I can find an other solution.

Thanks,
Bertrand

Le 14/09/2018 à 17:34, Colm O hEigeartaigh a écrit :
Could you test it with one of the latest releases (CXF 3.2.6 / 3.1.16) in
case it's a bug that has been subsequently fixed?

Colm.

On Fri, Sep 14, 2018 at 3:06 PM Bertrand TROLARD <bertrand.trol...@erdil.fr>
wrote:

Hi,

I got a problem with a REST service when I use CXF 3.x, it's working
fine with CXF 2.7.
"No message body writer has been found for class java.lang.Integer"

Response-Code: 500
Content-Type: text/plain
Headers: {Content-Type=[plain/text], Date=[Fri, 14 Sep 2018 13:41:18 GMT]}
Payload: No message body writer has been found for class
java.lang.Integer, ContentType: plain/text


I got this error with this function :
      @POST
      @Path("/state/")
      public int getStateBatchResult(@QueryParam("uid") String id);


I use SPRING to define the service
      <jaxrs:server xmlns:tns="http://www.xxx/AnalyzeRESTService";
id="restServer" address="/asynchrone" serviceName="tns:AnalyzeREST" >
          <jaxrs:serviceBeans>
              <ref bean="serviceImplCXF"/>
          </jaxrs:serviceBeans>
          <jaxrs:features>
              <bean class="org.apache.cxf.feature.LoggingFeature" />
          </jaxrs:features>
          <jaxrs:dataBinding>
              <bean class="org.apache.cxf.jaxb.JAXBDataBinding"/>
          </jaxrs:dataBinding>
      </jaxrs:server>

but we have no problem with this one :
      @POST
      @Path("/result/")
      @Produces({"plain/text"})
      public DataHandler getBatchResultDH(@QueryParam("uid") String id,
              @QueryParam("comp") int typeCompression);


I test it with eclipse, Java 8, CXF 3.1.4 or 3.0.16

Do I miss some dependencies or something else ?

Thanks,
Bertrand



--
Cordialement,
_______________________________
Bertrand TROLARD
Tél. : (+33) (0)3 81 25 29 86

https://www.erdil.fr/ <https://www.erdil.fr>
https://twitter.com/erdil_sa <http://twitter.com/erdil_sa>

<https://www.erdil.fr/>
6, rue Sophie GERMAIN
25000 Besançon
_______________________________________________________________________________________________________________________________________________________________________
Conformément au RGPD <https://eur-lex.europa.eu/legal-content/FR/TXT/?uri=CELEX:32016R0679> et aux mentions légales ERDIL <https://www.erdil.fr/terms-and-conditions>, vous pouvez exercer vos droits (information, accès, rectification, suppression, limitation, portabilité) concernant *vos données personnelles* sur simple demande adressée à : *dpd.rgpd...@erdil.fr*
_______________________________________________________________________________________________________________________________________________________________________

Reply via email to