List Info

Thread: RE: web.xml & FacesContext




RE: web.xml & FacesContext
user name
2007-08-30 09:23:43
No we're on java version 1.5.0

-----Original Message-----
From: mwessendorfgmail.com [mailto:mwessendorfgmail.com] On Behalf Of
Matthias Wessendorf
Sent: 30 August 2007 15:18
To: MyFaces Discussion
Subject: Re: [Trinidad] web.xml & FacesContext

are you on java 1.4 ?

the "UnsupportedClassVersionError" makes me
thinking this...

On 8/30/07, Darren McEntee <darren.McEnteeamt-sybex.com> wrote:
>
>
>
>
> Thank for the reply Simon.
>
>
>
> I originally used:
>
> http://SERVE
R_NAME:port/APPNAME/PAGE.jsp
>
>
>
> I now use:
>
> http:/
/SERVER_NAME:9191/APPNAME/faces/PAGE.jsp
>
>
>
> and get this instead of the FacesContext error :
>
>   org.apache.jasper.JasperException:
> java.lang.UnsupportedClassVersionError: Bad version
number
> in .class file
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServl
etWrapper.ja
va:384)
>
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl
et.java:297)
>
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java
:247)
>
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

>        
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>
>
>
>
>
>
>
>  ________________________________
>
>
> From: Simon Lessard [mailto:simon.lessard.3gmail.com]
>  Sent: 30 August 2007 14:13
>  To: MyFaces Discussion
>  Subject: Re: [Trinidad] web.xml & FacesContext
>
>
>
>
> ****** This Message Originated From The Internet Please
Be Aware Of
> Suspicious Attachments And Content ******
>
>
>
>
>
>
>
> Hello Darren,
>
>  What URL did you use to access your page? That kind of
error
sometimes
> happens when you use /faces/ mapping (which you use),
but forget to
add it
> to the URL, thus accessing the JSP page directly,
resulting in JSF tag
> execution without prior FacesContext initialization
(done by the
> FacesServlet).
>
>
>  Regards,
>
>  ~ Simon
>
>
> On 8/30/07, Darren McEntee <darren.McEnteeamt-sybex.com> wrote:
>
>
>
>
> Hi Guys,
>
>
>
> I am deploying a Trinidad application to a sun app
server, and after i
> deploy the WAR i get this error:
>
>   javax.servlet.ServletException: Cannot find
FacesContext
>
>
>
org.apache.jasper.runtime.PageContextImpl.doHandlePageExcept
ion(PageCont
extImpl.java:830)
>
>
org.apache.jasper.runtime.PageContextImpl.handlePageExceptio
n(PageContex
tImpl.java:763)
>
>
org.apache.jsp.BGHome_jsp._jspService(BGHome_jsp.java:91)
>
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja
va:105)
>
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:860
>
>
> ...
>
>
>
> My web.xml seems to be correct (attached), and the
application works
fine on
> my local dev machine.
>
>
>
> Am I missing anything?
>
> Any ideas?
>
>
>
> Thanks.
>
> Darren.
>
>
>
>
>
>
>
>  P Please consider the environment before printing this
email
>
>
>
_________________________________________________________
>
>  1. The information contained in this E-mail, including
any files
> transmitted with it, is confidential and may be legally
privileged.
This
> E-mail is intended only for the personal attention of
the stated
> addressee(s). Any access to this E-mail, including any
files
transmitted
> with it, by any other person is unauthorised. If you
are not an
addressee,
> you must not disclose, copy, circulate or in any other
way use or rely
on
> the information contained in this E-mail or any files
transmitted with
it.
> Such unauthorised use may be unlawful. If you have
received this
E-mail in
> error, please inform the sender immediately and delete
it and all
copies
> from your system. You may not forward this E-mail
without the
permission of
> the sender.
>
>  2. The views expressed in this E-mail are those of the
author, and do
not
> necessarily represent the views of AMT-SYBEX. Internet
communications
are
> not secure and AMT-SYBEX cannot, therefore, accept
legal
responsibility for
> the contents of this message nor for any damage caused
by viruses.
>
>
>
> AMT-SYBEX Limited is a UK company, registration number
GB03036807 at
address
> The Spirella Building, Bridge Road, Letchworth, SG6
4ET.
>
>
> AMT-SYBEX (NI) Limited is a UK company, registration
number NI024104
at
> address Edgewater Office Park, Edgewater Rd, Belfast,
BT3 9JQ.
>  For more information on the AMT-SYBEX Group visit
http://www.amt-sybex.com

> 
_________________________________________________________
>
>
>
>
>
>
>
>
>
>
>
>
>
> P Please consider the environment before printing this
email
>
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matth
iaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Re: web.xml & FacesContext
user name
2007-08-30 09:37:21
Hi Darren,

Try a clean, rebuild and redeploy. Also check if you don't have some libraries twice in the classpath.


~ Simon

On 8/30/07, Darren McEntee < darren.McEnteeamt-sybex.com">darren.McEnteeamt-sybex.com> wrote:
No we're on java version 1.5.0

-----Original Message-----
From: mwessendorfgmail.com">mwessendorfgmail.com [mailto: mwessendorfgmail.com">mwessendorfgmail.com] On Behalf Of
Matthias Wessendorf
Sent: 30 August 2007 15:18
To: MyFaces Discussion
Subject: Re: [Trinidad] web.xml & FacesContext

are you on java 1.4 ?

the "UnsupportedClassVersionError" makes me thinking this...

On 8/30/07, Darren McEntee < darren.McEnteeamt-sybex.com">darren.McEnteeamt-sybex.com> wrote:
>;
>
>
>
> Thank for the reply Simon.
>;
>
>
> I originally used:
>
> http://SERVER_NAME:port/APPNAME/PAGE.jsp
&gt;
>
&gt;
> I now use:
>
> http://SERVER_NAME:9191/APPNAME/faces/PAGE.jsp
>
>
>
> and get this instead of the FacesContext error :
>
>; &nbsp; org.apache.jasper.JasperException:
> java.lang.UnsupportedClassVersionError : Bad version number
>; in .class file
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:384)
&gt;
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :297)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>  ; &nbsp; &nbsp; &nbsp; sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
&gt;
>
>;
>
>
>
>
>
>&nbsp; ________________________________
&gt;
>
&gt; From: Simon Lessard [mailto: simon.lessard.3gmail.com"> simon.lessard.3gmail.com]
; Sent: 30 August 2007 14:13
>  ;To: MyFaces Discussion
 Subject: Re: [Trinidad] web.xml & FacesContext
>
>;
>
>
> ****** This Message Originated From The Internet Please Be Aware Of
> Suspicious Attachments And Content ******
>;
>
>
>
>
>
>
&gt; Hello Darren,
&gt;
>&nbsp; What URL did you use to access your page? That kind of error
sometimes
>; happens when you use /faces/ mapping (which you use), but forget to
add it
> to the URL, thus accessing the JSP page directly, resulting in JSF tag
> execution without prior FacesContext initialization (done by the
> FacesServlet).
>
&gt;
>&nbsp; Regards,
>
 ~ Simon
>
>
> On 8/30/07, Darren McEntee < darren.McEnteeamt-sybex.com">darren.McEnteeamt-sybex.com> wrote:
&gt;
>
&gt;
>
>; Hi Guys,
>
>
>
> I am deploying a Trinidad application to a sun app server, and after i
> deploy the WAR i get this error:
>;
;  javax.servlet.ServletException : Cannot find FacesContext
>
>;
>
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
extImpl.java:830)
&gt;
>
org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContex
tImpl.java:763)
>
> org.apache.jsp.BGHome_jsp._jspService(BGHome_jsp.java:91)
>
&gt; org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
>
>; javax.servlet.http.HttpServlet.service (HttpServlet.java:860
>;
>
> ...
>
&gt;
>
&gt; My web.xml seems to be correct (attached), and the application works
fine on
> my local dev machine.
&gt;
>
&gt;
> Am I missing anything?
>
> Any ideas?
>;
>
>
> Thanks.
&gt;
> Darren.
&gt;
>
>;
>
>
>
>
> &nbsp;P Please consider the environment before printing this email
&gt;
>
>; _________________________________________________________
>
&gt; &nbsp;1. The information contained in this E-mail, including any files
> transmitted with it, is confidential and may be legally privileged.
This
&gt; E-mail is intended only for the personal attention of the stated
>; addressee(s). Any access to this E-mail, including any files
transmitted
>; with it, by any other person is unauthorised. If you are not an
addressee,
> you must not disclose, copy, circulate or in any other way use or rely
on
&gt; the information contained in this E-mail or any files transmitted with
it.
&gt; Such unauthorised use may be unlawful. If you have received this
E-mail in
> error, please inform the sender immediately and delete it and all
copies
> from your system. You may not forward this E-mail without the
permission of
> the sender.
&gt;
>&nbsp; 2. The views expressed in this E-mail are those of the author, and do
not
&gt; necessarily represent the views of AMT-SYBEX. Internet communications
are
&gt; not secure and AMT-SYBEX cannot, therefore, accept legal
responsibility for
> the contents of this message nor for any damage caused by viruses.
>
>
>
> AMT-SYBEX Limited is a UK company, registration number GB03036807 at
address
> The Spirella Building, Bridge Road, Letchworth, SG6 4ET.
>
>
> AMT-SYBEX (NI) Limited is a UK company, registration number NI024104
at
> address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
>&nbsp; For more information on the AMT-SYBEX Group visit
http://www.amt-sybex.com
>&nbsp; _________________________________________________________
>
&gt;
>
>;
>
>
>
>
>
>
&gt;
>
&gt;
> P Please consider the environment before printing this email
>
>
>


--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )