logo       

Re: JSP Engine will not compile: msg#00112

java.jetty.support

Subject: Re: JSP Engine will not compile

Hi,

I think I've tried every combination of everything - I have it working
fine doing the following (though there is no guarantee that everything
is needed).

Jetty - I haven't touched
WAR - in WEB-INF/lib I added now org.apache.jasper.jar (taken from
Jetty) and servlet.jar
JBOSS - in $DOMAIN/lib I added org.apache.jasper.jar and servlet.jar
(removing javax.servlet.jar)

I guess, in theory, I shouldn't need to add anything to WEB-INF lib?

Keep me posted and thanks for the prompt replies (I honestly thought I
was going mad, no-one else reported a problem).

Charlene

--- In jetty-support@xxxxxxxxxxxxxxx, Jules Gosnell <jules@xxxx> wrote:
> Thanks, Charlene,
>
> I had Cocoon working in JBoss/Jetty a while ago, but haven't tried it
> since. Something must have shifted underneath me. I will try to find
> time to sort it out this weekend.
>
> Jules
>
>
> charlene_ml wrote:
>
> >Hi,
> >
> >I'm using Cocoon2.0.3 so I don't know if it's JSPGenerator
> >(org.apache.cocoon.generation.JspGenerator) could have an impact here
> >(I posted to Cocoon and non-one confirmed that they had it working in
> >Jetty) in case Jasper bundled with Jetty has a conflict.
> >The only Jasper classes in the classpath are certainly only in
> >jbossweb.sar directory.
> >
> >I tried one suggestion to replace org.apache.jasper.jar with
> >jasper-runtime.jar and jasper-compiler.jar but in the logs I could see
> >that the jasper and javax servlet classes weren't found in the import.
> >
> >I also see the 'abstract' exception if a JSP fails compilation, the
> >errors are fixed and then it is re-deployed. But if I then clean out
> >the /tmp/Jetty_0_0_0_0_port__ directory then it works.
> >
> >So, on to your question, :-), yes i can confirm that it will only work
> >if I replace javax.servlet.jar(30th Sept - 74473) with
> >servlet.jar(11th - Aug 80054) - else I get that strange 'abstract'
> >exception.
> >
> >As I said, it works in TomCat so that's why my line of enquiry is here
> >in the Jetty support group, I hope that's ok.
> >
> >Regards
> >
> >Charlene
> >
> >
> >--- In jetty-support@xxxx, Jules Gosnell <jules@xxxx> wrote:
> >
> >>Charlene Mitchell wrote:
> >>
> >>>Hi,
> >>>
> >>>It said in the FAQ to post if things didn't work the
> >>>same in Jetty as they do in TomCat, so here's a follow
> >>>up.
> >>>
> >>>If I delete javax.servlet.jar and replace it with
> >>>servlet.jar, jasper-compile.jar and jasper-runtime.jar
> >>>then it *does* work ok.
> >>>
> >>interesting...
> >>
> >>Can you confirm that you have to replace our javax.servlet.jar
with the
> >>TC servlet.jar to get it to work. We'll take a look at it. Thanks for
> >>reporting this.
> >>
> >>Jules
> >>
> >>>But it proves that Jetty doesn't work the same as
> >>>TomCat after all.
> >>>
> >>>Regards
> >>>
> >>>Charlene
> >>>
> >>>
> >>> --- Charlene Mitchell <charlene_ml@xxxx>
> >>>wrote: > Hi,
> >>>
> >>>>I'm trying to get a simple jsp to work in Cocoon
> >>>>2.0.3
> >>>>deployed in Jetty (JBoss3.0.3/JBossWeb)
> >>>>
> >>>>But I cannot get the jsp to display/compile (it is
> >>>>even just pure simple HTML content at the moment!!)
> >>>>
> >>>>In the error log I can see the following:
> >>>>
> >>>>/tmp/Jetty_0_0_0_0_10201__/docs/test$jsp.java:9:
> >>>>class org.apache.jsp.test$jsp must be declared
> >>>>abstract. It does not define java.util.List
> >>>>getIncludes() from class
> >>>>org.apache.jasper.runtime.HttpJspBase.
> >>>>public class test$jsp extends HttpJspBase {
> >>>>
> >>>>It -does- work ok with the JBoss3.0.3/TomCat4.1.12
> >>>>bundle but doesn't work with Jetty.
> >>>>
> >>>>Any idea? (I alread searched many mailing lists,
> >>>>FAQ's
> >>>>etc but no joy)
> >>>>
> >>>>Thanks
> >>>>
> >>>>Charlene
> >>>>
> >>>
> >>>__________________________________________________
> >>>Do You Yahoo!?
> >>>Everything you'll ever need on one web page
> >>>from News and Sport to Email and Music Charts
> >>>http://uk.my.yahoo.com
> >>>
> >>>
> >>>For the latest information about Jetty, please see
> >>>
> >http://jetty.mortbay.org
> >
> >>>
> >>>
> >>>Your use of Yahoo! Groups is subject to
> >>>
> >http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> >For the latest information about Jetty, please see
http://jetty.mortbay.org
> >
> >
> >
> >Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
>
>
>
>
> ________________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs SkyScan
> service. For more information on a proactive anti-virus service working
> around the clock, around the globe, visit http://www.messagelabs.com
> ________________________________________________________________________


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM
---------------------------------------------------------------------~->

For the latest information about Jetty, please see http://jetty.mortbay.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise