users@jersey.java.net

Re: [Jersey] JSP Compilation Workaround? Version? IDE?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 16 Jun 2008 10:55:44 +0200

Hi Pam,

I have just tested with NB 6.1 and the latest Jersey 0.8 and got things
working with Tomcat 6.0.16

Part of the issue may be that NB shipped Jersey 0.7 version may be
conflicting with Jersey 0.8 so one needs to be careful what libraries
are included. In addition there is a JSP jar conflict bug with the NB
Jersey 0.7 configuration that causes things to fail (a fix will be
pushed to the next NBs patch release). A work around (although i have
not tested it) is to edit the "Jersey (JSR-311 RI) Libraries"
(Tools->Libraries) and remove the "jsp-api-2.0-20040521.jar" entry.

I have attached my simple 6.1 web application. If you load into NBs you
will need to resolve the the Jersey 0.8 libraries for:

   asm-3.1.jar
   jersey.jar
   jsr311-api.jar

It also depends on the NB JSTL 1.1 library, which should not have to be
resolved.

Hope this helps,
Paul.


Pam Holzner wrote:
> I'm really excited about this project and yet frustrated by it too.
> When it works, it's beautiful. I love the idea of using exactly the
> same code for doing work via a website or a webservice. But often as
> not, the code *isn't* working for me.
>
> Specifically, I am now running into the problem of tomcat 6.0.16
> complaining that it can't compile the jsps. I briefly had success with
> using the Tomcat admin to upload the war file to tomcat but now even
> that is failing. (and I swear I didn't change a thing)
>
> Does anyone know of a workaround? I've tried getting rid of
> jsp-api-2.0-20040521.jar. I've tried copying the jsp-api.jar from
> tomcat and placing in the jersey libs named jsp-api-2.0-20040521.jar.
> Neither of these has worked (obviously or I wouldn't be typing away). I
> tried these based on posts on the web by people having the same problem.
>
> I'm using a snapshot of 0.8. Would it be better to fall back to 0.7?
> And I'm using NetBeans 6.1. I'm not using NetBeans to create RESTFUL
> web services or to test them, since I thought that might be causing the
> problem.
>
> What IDE are you all using? I understand using Maven to manage
> dependencies but surely you are using some kind of IDE?
>
> Any advice would be appreciated. Thanks,
> Pam
>
>
> ------------------------------------------------------------------------
> Search that pays you back! Introducing Live Search cashback. Search Now!
> <http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109