Re: [Resteasy-users] RESTEasy 3.x with JBoss AS 6.x

2013-08-19 Thread Daniel Kirkdorffer
Hi Bill, 

I've got a version that I can run in Tomcat, so I'm trying to figure out how to 
adjust it to run in JBoss AS 6, which is ultimately where I need it to run. It 
isn't clear to me what I need to do though. Documentation just says to use an 
empty web.xml, but I need it for advance config. I'm using Maven so, what 
should my WAR include? How do I get JBoss to use JAX-RS 2.0 libraries? 

Thanks, 

Dan 



--- 
Daniel Kirkdorffer 
danki...@comcast.net 
- Original Message -
From: "Bill Burke"  
To: resteasy-users@lists.sourceforge.net 
Sent: Monday, August 19, 2013 1:49:55 PM 
Subject: Re: [Resteasy-users] RESTEasy 3.x with JBoss AS 6.x 

Resteasy 3 should work. What is your problem? 

On 8/19/2013 4:36 PM, Daniel Kirkdorffer wrote: 
> I'm trying to determine how to get a JAX-RS 2.0 RESTEasy based web 
> service (within a WAR) configured for deployment on JBoss AS 6, but I'm 
> having trouble finding information about how to do so. 
> 
> Is this a supported configuration, or do I have to use JAX-RS 1.x if I'm 
> running against JBoss AS 6? 
> 
> Any help would be appreciated. 
> 
> Thanks, 
> 
> Dan 
> 
> --- 
> /Daniel Kirkdorffer/ 
> /danki...@comcast.net/  
> 
> 
> 
> --
>  
> Introducing Performance Central, a new site from SourceForge and 
> AppDynamics. Performance Central is your source for news, insights, 
> analysis and resources for efficient Application Performance Management. 
> Visit us today! 
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk 
> 
> 
> 
> ___ 
> Resteasy-users mailing list 
> Resteasy-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/resteasy-users 
> 

-- 
Bill Burke 
JBoss, a division of Red Hat 
http://bill.burkecentral.com 

-- 
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today! 
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk 
___ 
Resteasy-users mailing list 
Resteasy-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/resteasy-users 
--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] RESTEasy 3.x with JBoss AS 6.x

2013-08-19 Thread Bill Burke
Resteasy 3 should work. What is your problem?

On 8/19/2013 4:36 PM, Daniel Kirkdorffer wrote:
> I'm trying to determine how to get a JAX-RS 2.0 RESTEasy based web
> service (within a WAR) configured for deployment on JBoss AS 6, but I'm
> having trouble finding information about how to do so.
>
> Is this a supported configuration, or do I have to use JAX-RS 1.x if I'm
> running against JBoss AS 6?
>
> Any help would be appreciated.
>
> Thanks,
>
> Dan
>
> ---
> /Daniel Kirkdorffer/
> /danki...@comcast.net/ 
>
>
>
> --
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>
>
>
> ___
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


[Resteasy-users] RESTEasy 3.x with JBoss AS 6.x

2013-08-19 Thread Daniel Kirkdorffer
I'm trying to determine how to get a JAX-RS 2.0 RESTEasy based web service 
(within a WAR) configured for deployment on JBoss AS 6, but I'm having trouble 
finding information about how to do so. 

Is this a supported configuration, or do I have to use JAX-RS 1.x if I'm 
running against JBoss AS 6? 

Any help would be appreciated. 

Thanks, 

Dan 



--- 
Daniel Kirkdorffer 
danki...@comcast.net 
--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] RestEasy and refresh tokens?

2013-08-19 Thread Bill Burke
They haven't been implemented yet, sorry.  We're kind of limited with 
what we can do with refresh tokens as the AS7 OAuth2 integration is not 
a full-fledged auth-server that is aware of oauth.  It is bascially a 
small layer on top of JBoss Login Modules so there's a limited amount of 
information we can store.  So any implementation of refresh tokens would 
have to put a lot of trust in the OAuth client.

BTW, we're taking this OAuth/SSO stuff and starting a new project:

jboss.org/keycloak

It will take what we have in Resteasy to a new level.  We're also 
implementing a full auth-server that will also support social logins 
(Facebook et. al.)

The links for the source, wiki, and email lists are live if you want to 
participate in discussions, but we don't plan on an initial release 
until September/October.




On 8/19/2013 10:28 AM, Doug Toppin wrote:
> As I understand it, refresh tokens can be requested along with a token
> after authentication and can be used to automatically continue a session
> when the token expires.  I see a few references in the RestEasy
> 3.0.2.Final code to them (getters and setters) but I don't see them
> actually be used.   Are refresh tokens as defined by the OAuth2 spec
> fully implemented?
>
> Doug
>
>
>
> --
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>
>
>
> ___
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


[Resteasy-users] RestEasy and refresh tokens?

2013-08-19 Thread Doug Toppin
As I understand it, refresh tokens can be requested along with a token
after authentication and can be used to automatically continue a session
when the token expires.  I see a few references in the RestEasy 3.0.2.Final
code to them (getters and setters) but I don't see them actually be used.
Are refresh tokens as defined by the OAuth2 spec fully implemented?

Doug
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] Versions...

2013-08-19 Thread Bill Burke
If I knew, i'd tell you...but I don't...I've requested it be available 
for EAP 6.1

On 8/19/2013 9:25 AM, Friso Vrolijken wrote:
> Hi all,
>
> Does anybody know when a RestEasy 3.x version will be available in a standard 
> JBoss EAP release?
>
> Groeten,
>
> Friso
>
> --
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> ___
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] handling polymorphic rest request

2013-08-19 Thread Friso Vrolijken
Hi Jason,

First I'd ask myself if I'd really want this. The basic idea behind REST is 
that you address a resource, for which you might have several representations. 
Does not sound like you're doing that. 

If you find that you indeed need to do that, I suppose the easiest solution 
would be to have your method return a Response. 

Something like: 
  return Response.ok(A).build(); 
or: 
  return Response.ok(Bs).build(); 

Would do the trick, assuming that A and B have known representations.

Groeten,

Friso



-Oorspronkelijk bericht-
Van: Jason Novotny [mailto:jason.novo...@gmail.com] 
Verzonden: woensdag 14 augustus 2013 10:52
Aan: resteasy-users@lists.sourceforge.net
Onderwerp: [Resteasy-users] handling polymorphic rest request

Hi,

 I'm using RESTeasy with jackson and making a rest POST that either returns 
an object of type A or returns a list of objects of type B. How can I handle 
both of these cases? Do I need to override 
org.jboss.resteasy.client.core.BaseClientResponse? Any example would be much 
appreciated.

 Thanks, Jason



--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


[Resteasy-users] Versions...

2013-08-19 Thread Friso Vrolijken
Hi all,

Does anybody know when a RestEasy 3.x version will be available in a standard 
JBoss EAP release?

Groeten,

Friso

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] Classpath issue with Jackson 2

2013-08-19 Thread Bill Burke
In JAX-RS 2.0 clients do not scan your classpath for classes annotated 
with @Provider.  So you have to manually register the JAckson2 provider.

Resteasy does provide a way to package up built-in providers.  If there 
is a META-INF/services/javax.ws.rs.ext.Providers file, resteasy will 
register all classes listed in this file. This is a resteasy specific thing.

So, what you could do instead is load the resteasy integration for Jackson2:

 
 org.jboss.resteasy
 resteasy-jackson2-provider
 provided
 

On 8/19/2013 8:47 AM, Juergen Zimmermann wrote:
> I’m using WF 8.0.0.Alpha4 and upgraded RESTEasy to 3.0.3. No I changed
> my maven dependencies to exclude
>
> org.codehaus.jackson from org.jboss.resteasy:resteasy-jackson-provider,
> and I added this dependency:
>
> 
>
>  com.fasterxml.jackson.jaxrs
>
>  jackson-jaxrs-json-provider
>
>  provided
>
> 
>
> However, I’m getting the following classpath issue on the invoking
> (test) client side. Any hint is appreciated.
>
> The stacktrace:
>
> javax.ws.rs.ProcessingException: Unable to invoke request
>
>  at
> org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:238)
>
>  at
> org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:388)
>
>  at
> org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.post(ClientInvocationBuilder.java:195)
>
>  at
> de.shop.kundenverwaltung.rest.KundeResourceTest.createPrivatkunde(KundeResourceTest.java:310)
>
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>  at java.lang.reflect.Method.invoke(Method.java:491)
>
>  at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>
>  at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>
>  at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>
>  at
> org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
>
>  at
> org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
>
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>  at java.lang.reflect.Method.invoke(Method.java:491)
>
>  at
> org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
>
>  at
> org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
>
>  at
> org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
>
>  at
> org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
>
>  at
> org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
>
>  at
> org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
>
>  at
> org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)
>
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>  at java.lang.reflect.Method.invoke(Method.java:491)
>
>  at
> org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
>
>  at
> org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
>
>  at
> org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
>
>  at
> org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
>
>  at
> org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
>
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>  at java.la

[Resteasy-users] Classpath issue with Jackson 2

2013-08-19 Thread Juergen Zimmermann
I'm using WF 8.0.0.Alpha4 and upgraded RESTEasy to 3.0.3. No I changed my
maven dependencies to exclude

org.codehaus.jackson from org.jboss.resteasy:resteasy-jackson-provider, and
I added this dependency:



com.fasterxml.jackson.jaxrs

jackson-jaxrs-json-provider

provided



 

However, I'm getting the following classpath issue on the invoking (test)
client side. Any hint is appreciated.

 

The stacktrace:

javax.ws.rs.ProcessingException: Unable to invoke request

at
org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(Apach
eHttpClient4Engine.java:238)

at
org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvoc
ation.java:388)

at
org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.post(Client
InvocationBuilder.java:195)

at
de.shop.kundenverwaltung.rest.KundeResourceTest.createPrivatkunde(KundeResou
rceTest.java:310)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

at java.lang.reflect.Method.invoke(Method.java:491)

at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.
java:47)

at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.j
ava:12)

at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.ja
va:44)

at
org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)

at
org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute
(LocalTestExecuter.java:60)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

at java.lang.reflect.Method.invoke(Method.java:491)

at
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContext
Impl.java:99)

at
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.jav
a:81)

at
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

at
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

at
org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

at
org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execut
e(ClientTestExecuter.java:53)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

at java.lang.reflect.Method.invoke(Method.java:491)

at
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContext
Impl.java:99)

at
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.jav
a:81)

at
org.jboss.arquillian.container.test.impl.client.ContainerEventController.cre
ateContext(ContainerEventController.java:142)

at
org.jboss.arquillian.container.test.impl.client.ContainerEventController.cre
ateTestContext(ContainerEventController.java:129)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

at java.lang.reflect.Method.invoke(Method.java:491)

at
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

at
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.jav
a:88)

at
org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestCont
extHandler.java:89)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

at java.lang.reflect.Method.invoke(Method.java:491)

at
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

at
org.jbos