Just add another dependency like:

<dependency>
 <groupId>org.apache.cxf</groupId>
 <artifactId>cxf-rt-javascript</artifactId>
<version>${cxf.version}</version>
</dependency>


That should be it. maven should then add that to the package and it should be automatically picked up.

Dan



On Jul 17, 2008, at 3:47 AM, Andrew Clegg wrote:

2008/7/16 Daniel Kulp <[EMAIL PROTECTED]>:

Well, couple questions:
1) Are you using a 2.1.x version of CXF or 2.0.x? The javascript stuff
is only in 2.1.x.

2.1.1

2) In your war or tomcat setup, are you using the big CXF bundle jar or individual modules? If using modules, is the cxf-rt-javascript jar in
there?

I think this might be the problem, I'm using a Maven-based setup based
on that in Glen Mazza's tutorial at
http://www.jroller.com/gmazza/date/20080417 . This contains a whole
bunch of jars in WEB-INF/lib but that isn't one of them. I didn't put
them there myself, I'm assuming Maven did -- how can I tell Maven that
I need this functionality too so it gets the right jar for me? (It
seems to defeat the point of Maven slightly if I have to put it there
myself...)

3) Are you completely using spring context listeners or just the minimal
cxf-servlet?  If using a full spring context, are you including
META-INF/cxf/cxf-extension-javascript-client.xml ?

My cxf-servlet is pretty minimal, just contains two endpoint entries.
I can post it if that would be useful, but it sounds like you've hit
the nail on the head already.

Thanks for your help,

Andrew.

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to