tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kallen McInerney <kall...@marketamerica.com>
Subject RE: Tuscany on Glassfish
Date Fri, 29 Jun 2012 22:30:33 GMT
Yes I did include Wink and Tuscany in the WAR to start with.  I was migrating from the embedded
Jetty implementation to Glassfish so had something to compare against.  Started debugging
into Wink and from what I could tell it was a classloader issue.  Again probably my inexperience
with glassfish but hopefully it will get someone else over the hump.

From: Raymond Feng [mailto:enjoyjava@gmail.com]
Sent: Thursday, June 28, 2012 3:04 PM
To: user@tuscany.apache.org
Subject: Re: Tuscany on Glassfish

Did you use Tuscany as part of the WAR for your web application when you hit the NPE? I assume
you need to make sure the wink jars are available withTuscany jars.


On Jun 28, 2012, at 2:07 PM, Kallen McInerney wrote:

Had some difficulty getting Tuscany 2.0 Beta 3 running on Glassfish 3.1.2 using Wink for the
REST bindings.  I was hitting an issue it seemed others were getting with Apache Wink throwing
the exception below.

at org.apache.wink.common.internal.http.Accept.valueOf(Accept.java:139)
at org.apache.wink.server.internal.contexts.HttpHeadersImpl.getAcceptHeader(HttpHeadersImpl.java:151)
at org.apache.wink.server.internal.contexts.HttpHeadersImpl.getAcceptableMediaTypes(HttpHeadersImpl.java:105)
I'm new to Glassfish but just wanted to leave my workaround here since it seems no one had
an answer for it.  You need to place Wink and its dependencies (i.e. slf4j) in your glassfish
"libs" directory (i.e. \glassfish3\glassfish\lib).  If you don't the constructor of org.apache.wink.common.internal.runtime.RuntimeDelegateImpl
never gets hit and along with it the header delegates never init.

Someone no doubt has a better solution but thought I'd pass it on.

Kallen McInerney
Principal Engineer
Email: kallenm@shop.com<mailto:kallenm@shop.com>
Phone: (831) 531-4811
Skype: kallen.mcinerney

A Market America Company

Shop Smart, Save Big(tm)
Join us on Facebook<http://www.facebook.com/Shop.com>.
Follow us on Twitter<http://twitter.com/shopcom>.
Read The Shopping Vine<http://theshoppingvine.com/>.

View raw message