RS service method accepting 2 parameters

2015-12-16 Thread Maxim Solodovnik
Hello All, I'm currently trying to write RS service accepting 2 objects of different types as parameters: ex. code: @WebService(serviceName="org.apache.openmeetings.webservice.UserWebService") @Features(features = "org.apache.cxf.feature.LoggingFeature") @Produces({MediaType.APPLICATION_JSON}) @

Re: RS service method accepting 2 parameters

2015-12-16 Thread Maxim Solodovnik
ng ParamConverterProvider if values are not > String and the beans do not override toString() > > HTH, Sergey > > > > > It has to be MultivaluedMap, JAX-RS > > On 16/12/15 10:04, Maxim Solodovnik wrote: > >> Hello All, >> >> I'm currentl

Re: RS service method accepting 2 parameters

2015-12-21 Thread Maxim Solodovnik
a method signature with multiple @FormParam() parameters, and use a > proxy based API, so in this case by registering a custom > MyParamConverterProvider you can get that to/from String conversion code > moved out of the beans to this provider... > > Thanks, Sergey > > >

Unit-testing jaxrs:server created by spring

2015-12-28 Thread Maxim Solodovnik
Hello, I'm trying to add automatic tests to our build. our applicationContext.xml contains our tests are subclasses of AbstractJUnit4SpringContextTests according to the logs server is starting: 17:16:26.901 [main] INFO org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to

javax.xml.ws.Service getPort without interface

2016-03-31 Thread Maxim Solodovnik
Hello All, I wonder is it possible to getPort of javax.xml.ws.Service without interface? Maybe via some trick? :) -- WBR Maxim aka solomax

Re: javax.xml.ws.Service getPort without interface

2016-04-01 Thread Maxim Solodovnik
Is it absolutely impossible? I believe it is really weird limitation :(( On Thu, Mar 31, 2016 at 11:49 PM, Maxim Solodovnik wrote: > Hello All, > > I wonder is it possible to getPort of javax.xml.ws.Service without > interface? > Maybe via some trick? :) > > -- >

Re: javax.xml.ws.Service getPort without interface

2016-04-01 Thread Maxim Solodovnik
> On Mar 31, 2016, at 1:49 PM, Maxim Solodovnik > wrote: > > > > I wonder is it possible to getPort of javax.xml.ws.Service without > > interface? > > Maybe via some trick? :) > > What would the return be? The point of the getPort is to provide a > usable object

Page with list of all services

2016-08-18 Thread Maxim Solodovnik
Hello, recently I find out the list of all REST/SOAP services is not available anymore (CXF 3.1.7) It was working some time ago Should I make any changes to make it work again? I tried to add cxf-rt-rs-service-description-3.1.7.jar as dependency, but it doesn't help :( Thanks a lot for your hel

Re: Page with list of all services

2016-08-18 Thread Maxim Solodovnik
empty bus reference in > the Service list formatter - it looks like you may be seeing such a case > too. So in 3.1.8-SNAPSHOT I added the code that checks a default bus in > such cases in the services page formatter > > Can you please check 3.1.8-SNAPSHOT ? > > Thanks, Serge

Re: Page with list of all services

2016-08-18 Thread Maxim Solodovnik
CXFServlet /services/* SOAP services are configured in spring config, REST are configured via annotations I'm using java only no XML approach :) What am I missing? On Fri, Aug 19, 2016 at 8:29 AM, Maxim Solodovnik wrote: > Thanks for the quic

Re: Page with list of all services

2016-08-19 Thread Maxim Solodovnik
3.1.8-SNAPSHOT > > Cheers, Sergey > > On 19/08/16 04:15, Maxim Solodovnik wrote: > >> hmm, >> >> just have tested, not working :( details: >> >> libraries in classpath >> webapps/openmeetings/WEB-INF/lib/cxf-core-3.1.8-SNAPSHOT.jar >> webapps/ope

Re: Page with list of all services

2016-08-19 Thread Maxim Solodovnik
rvices page ? > > Is there an easy way for me to reproduce it with open meetings ? > > Cheers, Sergey > > > On 19/08/16 12:35, Maxim Solodovnik wrote: > >> just have tried: >> >> webapps/openmeetings/WEB-INF/lib/cxf-core-3.1.8-SNAPSHOT.jar >>

Re: Page with list of all services

2016-08-19 Thread Maxim Solodovnik
( On Fri, Aug 19, 2016 at 8:22 PM, Sergey Beryozkin wrote: > Hi Max > On 19/08/16 13:56, Maxim Solodovnik wrote: > >> you can download binary snapshot from here >> https://builds.apache.org/view/M-R/view/OpenMeetings/job/ >> Openmeetings%203.2.x/146/ >> extr

Re: Page with list of all services

2016-08-19 Thread Maxim Solodovnik
the trailing slash you > should see the services pages - can you try it please or may be update > CalendarWebService to listen on something more specific than "/" ? > > Thanks, Sergey > > > > On 19/08/16 16:07, Maxim Solodovnik wrote: > >> for some unkn

Re: Page with list of all services

2016-08-19 Thread Maxim Solodovnik
Beryozkin wrote: > Hmm..., > > On 19/08/16 16:51, Maxim Solodovnik wrote: > >> Actually I can see no difference between >> http://localhost:5080/openmeetings/services >> and >> http://localhost:5080/openmeetings/services/ >> >> The weird thing is: Calen

Re: Page with list of all services

2016-08-19 Thread Maxim Solodovnik
ppen. > > In meantime, it probably makes sense to enforce CXF to treat path "/" a > bot more carefully (if the last segment is services) > > (P.S - Max lets sync on Monday, by the way, believe it or not - I have a > question specifically for you, please join #apache-cxf at f

Re: Page with list of all services

2016-08-19 Thread Maxim Solodovnik
/openmeetings/services/ WADL : http://localhost:5080/openmeetings/services/?_wadl is it what expected? On Fri, Aug 19, 2016 at 11:55 PM, Sergey Beryozkin wrote: > Hi > On 19/08/16 17:50, Maxim Solodovnik wrote: > >> you are right >> both >> http://localhost:5080/openmeetin

Re: Page with list of all services

2016-08-20 Thread Maxim Solodovnik
n have one JAX-RS endpoint per one root resource, ex, one > per calendar, one per other root resource, etc. > > Cheers, Sergey > > On 20/08/16 04:19, Maxim Solodovnik wrote: > >> both 3.1.7 and 3.1.8-SNAPSHOT behave the same >> >> http://localhost:5080/o

Re: Page with list of all services

2016-08-20 Thread Maxim Solodovnik
ess="/" > > (you can have many jaxrs endpoints which is usually equivalent to having a > single jaxrs:endpoint with many root resources but offers more flexibility) > > or a different servlet pattern (as in the demo I mentioned, where I had > /app/*) having a single "/serv

Re: Page with list of all services

2016-09-20 Thread Maxim Solodovnik
Hello Sergey, Any progress on this issue? On Sun, Aug 21, 2016 at 12:54 PM, Maxim Solodovnik wrote: > Please let me know when it's time to test it :) > > On Sun, Aug 21, 2016 at 1:51 AM, Sergey Beryozkin > wrote: > >> Yes, as I said I'll have a look at c

Re: Page with list of all services

2016-12-07 Thread Maxim Solodovnik
rns a services page then we can break the > code which may be already depending on what I described above. > > It's proving a bit more sensitive than I thought. So I guess if it is to > be done than only optionally (CXFServlet will need to have a specific > parameter allowing for it)

Re: Page with list of all services

2016-12-09 Thread Maxim Solodovnik
Beryozkin wrote: > Hi Max - > > Sorry - hard to prioritize - but believe me, the previous mail from you in > this thread was in my InBox, not in less important folders :-). Still an > open issue as far as I'm concerned > > Cheers, Sergey > > On 08/12/16 05:24, Maxim Sol

Jaxrs provider to serialize outgoing payload

2017-01-26 Thread Maxim Solodovnik
Hello All, I have implemented custom ParamProvider [1] and set it in jaxrs:server [2] It works as expected to convert Incoming parameters for example here [3] But it is not used while writing output JSON :( adding additional provider as follows Also has no effect "serializeAsArray" not wor

Re: Jaxrs provider to serialize outgoing payload

2017-01-26 Thread Maxim Solodovnik
thParam, etc, but not the in > parameter which represents the body, again, it will be MBR which will read > it. > > ParamConverterProvider can be used on the client side to convert the > parameters in the out flow > > HTH, Sergey > > On 26/01/17 16:45, Maxim Solodovnik

Re: Jaxrs provider to serialize outgoing payload

2017-01-26 Thread Maxim Solodovnik
s dedicated to a simple conversion of request URI or > header parameters (@PathParam, QueryParam, MatrixParam, Cookie, > HeaderParam) only > > > Cheers, Sergey > > On 26/01/17 17:05, Maxim Solodovnik wrote: > >> So I need to create the class like this: >> htt

Re: Jaxrs provider to serialize outgoing payload

2017-01-26 Thread Maxim Solodovnik
nds on what type is returned, what media type > is set as a response content type, can you provide more info ? > > Cheers, Sergey > > On 26/01/17 17:19, Maxim Solodovnik wrote: > >> I have added following bean to my Spring config: >> > class="org.apache.o

Re: Jaxrs provider to serialize outgoing payload

2017-01-26 Thread Maxim Solodovnik
it a try please > > Cheers, Sergey > > On 26/01/17 17:28, Maxim Solodovnik wrote: > >> Sure, >> >> Here is the service/method: [1] >> It is annotated with >> @Produces({MediaType.APPLICATION_JSON}) >> >> Method returns List >> >> B

Re: Jaxrs provider to serialize outgoing payload

2017-01-26 Thread Maxim Solodovnik
Should I add this bean to section? WBR, Maxim (from mobile, sorry for the typos) On Jan 27, 2017 00:35, "Maxim Solodovnik" wrote: MessageBodyWriter> doesn't work :(( Can I set breakpoint somewhere to debug this? On Fri, Jan 27, 2017 at 12:30 AM, Sergey Beryozkin wrote:

Re: Jaxrs provider to serialize outgoing payload

2017-01-26 Thread Maxim Solodovnik
> > Thanks, Sergey > > On 26/01/17 17:42, Maxim Solodovnik wrote: > >> Should I add this bean to section? >> >> WBR, Maxim >> (from mobile, sorry for the typos) >> >> On Jan 27, 2017 00:35, "Maxim Solodovnik" wrote: >> >> Mes

CXF and web app spring beans

2017-04-18 Thread Maxim Solodovnik
Hello All, I recently noticed weird thing (cxf 3.1.11) I have java-first jax-ws/jax-rs services described as spring beans: [1] [2] And Wicket based spring web application also using same spring beans The problem is: beans are not shared between CXF and web app, it seems I have 2 set of beans Is i

Re: CXF and web app spring beans

2017-04-19 Thread Maxim Solodovnik
Thanks a lot for the quick response :) Just have tried to remove config-location param and got: [WARN] [http-nio-0.0.0.0-5080-exec-1] org.apache.cxf.transport.servlet.ServletController - Can't find the the request for http://localhost:5080/openmeetings/services/user/login's Observer 404 No servic

Re: CXF and web app spring beans

2017-04-19 Thread Maxim Solodovnik
Other beans being created and works as expected I'll try to change code and add ContextLoaderListener will report back On Wed, Apr 19, 2017 at 6:23 PM, Dennis Kieselhorst wrote: > Looks like ContextLoaderListener is not defined, is it? > http://docs.spring.io/spring/docs/current/spring-framework

Re: CXF and web app spring beans

2017-04-19 Thread Maxim Solodovnik
ContextLoaderListener seems to be in conflict with current bean initializer :( Is there any way to do the same (i.e. set CXFServlet) other way? On Wed, Apr 19, 2017 at 6:43 PM, Maxim Solodovnik wrote: > Other beans being created and works as expected > I'll try to change c

Re: sources of cxf-2.6.2.jar?

2017-05-10 Thread Maxim Solodovnik
Here are some sources: http://repo1.maven.org/maven2/org/apache/cxf/cxf-bundle/2.6.2/ On Wed, May 10, 2017 at 5:03 PM, John D. Ament wrote: > You should be able to browse all of the source code on github if you're > unable to locate it - https://github.com/apache/cxf/tree/cxf-2.6.2 > > > > On Wed

Tomcat 9.0.1 start in CXF tests

2017-11-08 Thread Maxim Solodovnik
Hello, Recently I found an issue with running Tomcat to perform web-services tests There were no issues until I have updated to Tomcat 9.0.1 The code to start Tomcat was taken from https://github.com/apache/cxf/blob/master/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/tomcat/Ab

Re: Tomcat 9.0.1 start in CXF tests

2017-11-08 Thread Maxim Solodovnik
e simplest case, is it enough just to add a .getConnector() call, > without having to set up a Connector explicitly as in your code ? > > Cheers. Sergey > > On 08/11/17 13:58, Maxim Solodovnik wrote: > >> Hello, >> >> Recently I found an issue with running Tomca

Re: Tomcat 9.0.1 start in CXF tests

2017-11-08 Thread Maxim Solodovnik
BTW, maybe you have examples for CXF under java9? :) On Wed, Nov 8, 2017 at 10:39 PM, Maxim Solodovnik wrote: > Yep :) > This was was my initial fix > > But then I got recommendations from Konstantin and refactor a little bit :) > > On Wed, Nov 8, 2017 at 10:37 PM, Sergey

Re: Tomcat 9.0.1 start in CXF tests

2017-11-08 Thread Maxim Solodovnik
Thanks :) On Wed, Nov 8, 2017 at 11:54 PM, Sergey Beryozkin wrote: > Hi Max > > I'm not sure we've ever updated the start up code of the demos to work > with Jetty 9, may be Dan knows... > > Sergey > On 08/11/17 15:40, Maxim Solodovnik wrote: > >> BT

Re: Remove obsolete RxJava code and keep RxJava2 only one

2017-11-15 Thread Maxim Solodovnik
Well known issue :)) It is easy to add something to open source project and really hard to remove : you can start a VOTE : On Wed, Nov 15, 2017 at 11:53 PM, Sergey Beryozkin wrote: > Hi Christian > > Thanks, I'd rather just remove it, but given that RxJava was introduced on > the user re

jaxrs:server is it possible to set output format

2014-04-19 Thread Maxim Solodovnik
Hello All, I would like to set output format based on URL i.e. if request received at http://localhost:8080/app/json/user the response should be in JSON format I have tried to set up 2 jaxrs:server Unfortunately no matter what URL am I accessing I get XML response :( userWe

Re: jaxrs:server is it possible to set output format

2014-04-21 Thread Maxim Solodovnik
Additional info: CXF version 2.7.11 On Sun, Apr 20, 2014 at 11:27 AM, Maxim Solodovnik wrote: > Hello All, > > I would like to set output format based on URL i.e. if request received at > http://localhost:8080/app/json/user the response should be in JSON format > I have tr

Re: jaxrs:server is it possible to set output format

2014-04-23 Thread Maxim Solodovnik
rote: > Hi > > Generally speaking you do noty have to set up multiple endpoints to get > multiple formats supported. > > Can you confirm please you have > > Accept: application/json > > as part of > > http://localhost:8080/app/json/user > > Sergey > &g

WSDL and methods mapping to the same URL

2014-10-11 Thread Maxim Solodovnik
Hello All, I'm trying to move from Axis2 to cxf 3.0.x and make this move invisible to end-users Previously I had WSDL URL: services/UserService?wsdl method URL: services/UserService/getSession (I know the methods need to be renamed, but currently I don't want to break any client API) Is it possib

Re: Mailing List

2014-10-15 Thread Maxim Solodovnik
please visit this page http://openmeetings.apache.org/mail-lists.html to Unsubscribe On 16 October 2014 03:46, Graeme Dougal wrote: > Hi > > Can you please remove me from this email list please > > Sent from my iPhone > -- WBR Maxim aka solomax

Re: Overlapping classes causing class loader issues.

2014-11-10 Thread Maxim Solodovnik
You can fix it by adding "excludes" block to your dependencies WBR, Max (from mobile) On Nov 11, 2014 11:30 AM, "pg" wrote: > Hi All, > > We are using apache cxf for REST and SOAP services. With the dependencies > getting included for apache cxf, they are causing class loading issues with > some

Re: Overlapping classes causing class loader issues.

2014-11-10 Thread Maxim Solodovnik
this need to be resolved based on your needs :( I was able to resolve conflicts in our project: http://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/pom.xml On 11 November 2014 11:47, pg wrote: > I have already tried that, but problem is impact of these inclusions. Ex: I > have tried

UnsupportedOperationException after upgrading to 3.1.0

2015-05-12 Thread Maxim Solodovnik
Hello All, Recently I have upgraded to CXF 3.1.0, unfortunately I got weird error on endpoint creation: Caused by: javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375) ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Maxim Solodovnik
Anyone, please? java version "1.7.0_76" Java(TM) SE Runtime Environment (build 1.7.0_76-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode) Maybe XML is wrong for 3.1.0? On Wed, May 13, 2015 at 11:40 AM, Maxim Solodovnik wrote: > Hello All, > &

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Maxim Solodovnik
nder if > it still needs to implemented as it appears some consumer of this List > does prefer to use retainAll() as an alternative to a sequence of > Collection calls that can lead to the same result... > > Dan, what do you think ? > > Cheers, Sergey > > > &

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Maxim Solodovnik
I'll try, thanks! What is the recommended spring version? On Thu, May 14, 2015 at 3:07 PM, Sergey Beryozkin wrote: > I'm actually not sure, Dan may know; > > Can you experiment with increasing a Spring version ? > > Sergey > > On 14/05/15 09:59, Maxim Solo

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Maxim Solodovnik
know; >> >> Can you experiment with increasing a Spring version ? >> >> Sergey >> On 14/05/15 09:59, Maxim Solodovnik wrote: >> >>> Hello Sergey! >>> Thanks for the answer >>> >>> is there any workaround for this issue? >>&

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Maxim Solodovnik
to see where the null is coming from. I can > tell you it has to do with the parameters to one of your methods, but > that’s all I can see from the trace. > > Dan > > > > > On May 13, 2015, at 1:40 AM, Maxim Solodovnik > wrote: > > > > Hello All

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Maxim Solodovnik
dClass and > figure trace up the stack to see where the null is coming from. I can > tell you it has to do with the parameters to one of your methods, but > that’s all I can see from the trace. > > > > Dan > > > > > > > >> On May 13, 2015

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-15 Thread Maxim Solodovnik
Hello All, The issue was not connected to the spring version and was caused by missing default constructors in some classes. Thanks for the help with catching this! On Fri, May 15, 2015 at 12:13 PM, Maxim Solodovnik wrote: > One of the classes had no default constructor, this causes addit

Java-first incomplete wsdl generated

2015-09-19 Thread Maxim Solodovnik
Hello All, I'm trying to create SOAP/JSON web service using java-first approach. I would like to minimize xml files, interfaces being created and other stuff not related to the service code. The application is spring based, endpoint is defined here [1] webservice is defined here [2] the issue is:

Re: Java-first incomplete wsdl generated

2015-09-19 Thread Maxim Solodovnik
forgot to mention: CXF 3.1.2 On Sat, Sep 19, 2015 at 8:12 PM, Maxim Solodovnik wrote: > Hello All, > > I'm trying to create SOAP/JSON web service using java-first approach. > I would like to minimize xml files, interfaces being created and other > stuff not related to the

Re: Java-first incomplete wsdl generated

2015-10-27 Thread Maxim Solodovnik
/TestWebService.java WSDL don't look like WSDL :((( what I'm I doing wrong? On Sat, Sep 19, 2015 at 10:38 PM, Maxim Solodovnik wrote: > forgot to mention: CXF 3.1.2 > > On Sat, Sep 19, 2015 at 8:12 PM, Maxim Solodovnik > wrote: > >> Hello All, >> >> I

Re: Java-first incomplete wsdl generated

2015-10-27 Thread Maxim Solodovnik
wsdl:include line. > > The easiest way to fix it would be to remove those two attributes from > there and add a @WebService annotation on the impl bean that provides the > names. Alternatively, define the namespace in the applicationCOntext.xml > and prefix those names correctly.

CXF 3.4.3 and jakarta jars

2021-04-02 Thread Maxim Solodovnik
Hello All, Recently I've updated to recent CXF (3.4.3) and TIKA Both have dependency on org.glassfish.jaxb:jaxb-runtime So I tried to switch to jakarta.xml.bind-api After the code was modified I got errors on startup (stacktrace below) Is it possible to start with jakarta jars? SEVERE: Allocat

Re: CXF 3.4.3 and jakarta jars

2021-05-13 Thread Maxim Solodovnik
Hello Dennis, Thanks for the answer and sorry for the long response :( Yes we are using Java11 the full dependencies list can be found here https://openmeetings.apache.org/openmeetings-web/dependencies.html The problem was resolved by patching org.apache.tika:tika-parsers dependency by excluding

Re: Advice porting CXF JAX-RS services to run in servlet container

2022-02-09 Thread Maxim Solodovnik
Hello Lewis, cxf users@ list is very silent :) what issues are you observing? While migrating our project I find out it is impossible to have "xml-free" CXF :) (it was long time ago) So we still have "cxf-servlet.xml" in our source tree: [1] and it is referenced in web.xml [2] everything seems t

Re: Advice porting CXF JAX-RS services to run in servlet container

2022-02-10 Thread Maxim Solodovnik
from mobile (sorry for typos ;) On Thu, Feb 10, 2022, 23:53 Lewis John McGibbney wrote: > Hi Maxim, > Thanks for your response. See inline below > > On 2022/02/10 03:11:59 Maxim Solodovnik wrote: > > Hello Lewis, > > > > cxf users@ list is very silent :) >