You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Simon Laws <si...@googlemail.com> on 2010/09/06 17:32:12 UTC
Trying to get binding-rest-runtime to compile in my eclipse workspace
I'm on Eclipse 3.5.1 and neither wink nor binding-rest-runtime compile
in myworkspace. The thing that I notice is that while they have a
maven dependency on wink-server and Eclipse recognizes that there is
an OSGi dependency and the dependency looks correct, as do these
module manifests, wink-server is not included as a dependency (plugin
or otherwise) of either of these projects. Hence Eclipse reports
compilation errors as it can't access the classes in wink-server. Is
there anything odd about the OSGi-ness of these two modules? Anything
else I need to be doing?
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com
Re: Trying to get binding-rest-runtime to compile in my eclipse workspace
Posted by Simon Laws <si...@googlemail.com>.
On Mon, Sep 6, 2010 at 6:48 PM, Luciano Resende <lu...@gmail.com> wrote:
> On Mon, Sep 6, 2010 at 8:32 AM, Simon Laws <si...@googlemail.com> wrote:
>> I'm on Eclipse 3.5.1 and neither wink nor binding-rest-runtime compile
>> in myworkspace. The thing that I notice is that while they have a
>> maven dependency on wink-server and Eclipse recognizes that there is
>> an OSGi dependency and the dependency looks correct, as do these
>> module manifests, wink-server is not included as a dependency (plugin
>> or otherwise) of either of these projects. Hence Eclipse reports
>> compilation errors as it can't access the classes in wink-server. Is
>> there anything odd about the OSGi-ness of these two modules? Anything
>> else I need to be doing?
>>
>> Simon
>>
>
> Have you updated your target platform ?
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>
Hi Luciano
Yep, done that.
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com
Re: Trying to get binding-rest-runtime to compile in my eclipse workspace
Posted by Luciano Resende <lu...@gmail.com>.
On Mon, Sep 6, 2010 at 8:32 AM, Simon Laws <si...@googlemail.com> wrote:
> I'm on Eclipse 3.5.1 and neither wink nor binding-rest-runtime compile
> in myworkspace. The thing that I notice is that while they have a
> maven dependency on wink-server and Eclipse recognizes that there is
> an OSGi dependency and the dependency looks correct, as do these
> module manifests, wink-server is not included as a dependency (plugin
> or otherwise) of either of these projects. Hence Eclipse reports
> compilation errors as it can't access the classes in wink-server. Is
> there anything odd about the OSGi-ness of these two modules? Anything
> else I need to be doing?
>
> Simon
>
Have you updated your target platform ?
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: Trying to get binding-rest-runtime to compile in my eclipse workspace
Posted by Simon Laws <si...@googlemail.com>.
I'm also getting a failure in samples/helloworld-jaxrs as follows
<p>Problem accessing /helloworld-jaxrs/rest/world. Reason:
<pre> DeploymentConfiguration</pre></p><h3>Caused by:</h3><pre>java.lang.NoC
assDefFoundError: DeploymentConfiguration
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoad
r.java:392)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoad
r.java:363)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.wink.common.internal.utils.ClassUtils$1.run(ClassUtils.ja
a:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.wink.common.internal.utils.ClassUtils.loadClass(ClassUtil
.java:66)
at org.apache.wink.server.internal.servlet.RestServlet.createDeployment
onfiguration(RestServlet.java:188)
at org.apache.wink.server.internal.servlet.RestServlet.getDeploymentCon
iguration(RestServlet.java:136)
at org.apache.wink.server.internal.servlet.RestServlet.createRequestPro
essor(RestServlet.java:121)
at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet
I can see wink-server-1.1.1-incubating.jar in the lib dir of the generated war.
There's something I'm not seeing here.
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com