Re: NoClassDefFoundError even though jar file is present

2005-12-09 Thread jeff . mullen
--
|
>
|

 |
>  |Kurt Edegger
<[EMAIL PROTECTED]>
 |
>
|

 |
>  |Please respond to "MyFaces Discussion"

   |
>  |Sent by Kurt Edegger
<[EMAIL PROTECTED]>
 |
>  >--
--
|
>
>|--->
>|   |
>|   |
>|--->
>  >--
--
---|
>
|

|
>  |  To:   MyFaces Discussion

  |
>  |
cc:

 |
>  |  Subject:  Re: StartupServletContextListener crashes
Tomcat
container
|
>  >--
--
---|
>
>
>
>Jeff,
>
>the error message just say that the exception occured in
>FacesServler.service but doesn't tell you anything about the
reason.
>If you'd like to find out, you have to look into tomcat's
log file for
>some stacktrace telling you what caused the crash.
>
>But anyway, since you are having trouble to get "the whole
JSF thing"
>running, I'd recommend you to give it a fresh start and look
into one of
>the different tutorials or quickstart applications like
Equinox or
>AppFuse. You can find them at https://equinox.dev.java.net/
and
>https://appfuse.dev.java.net/ respectively.
>Once these apps are running, you know your setup is fine and
can start
>developing your own application.
>
>Hope that helps,
>
> Kurt
>
>on 12/8/2005 7:57 AM [EMAIL PROTECTED] stated:
>> Kurt,
>>
>> Thanks for your response. I had unzipped the file in the
wrong place.
>>
>> I have followed the instructions in the two links you sent
me and have
>> conquered this problem to arrive at another one, which may
or may not
>> be related. With the following JSP code
>>
>>
>> <%@ page contentType="text/html" %>
>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
>>
>> 
>>
>>  From: 
>>
>> 
>>
>>
>> I get the following error
>> javax.servlet.ServletException:
>> org/apache/commons/el/ExpressionEvaluatorImpl
>> javax.faces.webapp.FacesServlet.service
(FacesServlet.java:121)
>>
>> The difference (and source of joy) is that now I am at
least getting this
>> in the browser instead of in the startup panel in Tomcat.
>> My web.xml file is still as below and my newly cleaned lib
directories
>are
>>
>> common\lib
>>   jasper-compiler-jdt.jar
>>   jasper-compiler.jar
>>   jasper-runtime.jar
>>   jsp-api.jar
>>   naming-factory-dbcp.jar
>>   naming-factory.jar
>>   naming-resources.jar
>>   sample_app_1_0_2.jar
>>   servlet-api.jar
>>   standard.jar
>>
>> sample\WEB-INF\lib
>>   commons-beanutils.jar
>>   commons-collections.jar
>>   commons-digester.jar
>>   commons-el.jar
>>   commons-logging.jar
>>   custom_jsf_lib_1_0_2.jar
>>   jstl.jar
>>   myfaces-all.jar
>>   myfaces-api.jar
>>   myfaces-impl.jar
>>   struts.jar
>>
>>
>> Is this error still connected to the ServletContext
problem from before?
>>
>> Thanks again
>> Jeff
>>
>>
>>
>>
>>
>> Message from Kurt Edegger <[EMAIL PROTECTED]> received
on 12/07/2005
>> 06:24 PM
>> |+--+>
>> ||  |    |
>> ||  12/07/2005  ||
>> ||   06:24 PM   ||
>> ||  ||
>> ||  ||
>> |+--+>
>>
>>
--
--|
>
>>   |
>|
>>   |Kurt Edegger <[EMAIL PROTECTED]>
>|
>>   |
>|
>>   |Please respond to "MyFaces Discussion"

>|
>>   |Sent by Kurt Edegger <[EMAIL PROTECTED]>
>|
>>
>>
--
--|
>
>>
>> |--->
>> |   |
>> |   |
>> |---

NoClassDefFoundError even though jar file is present

2005-12-09 Thread jeff . mullen
http://java.sun.com/jsf/core"; prefix="f" %>
>
> 
>
>  From: 
>
> 
>
>
> I get the following error
> javax.servlet.ServletException:
> org/apache/commons/el/ExpressionEvaluatorImpl
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
>
> The difference (and source of joy) is that now I am at least getting this
> in the browser instead of in the startup panel in Tomcat.
> My web.xml file is still as below and my newly cleaned lib directories
are
>
> common\lib
>   jasper-compiler-jdt.jar
>   jasper-compiler.jar
>   jasper-runtime.jar
>   jsp-api.jar
>   naming-factory-dbcp.jar
>   naming-factory.jar
>   naming-resources.jar
>   sample_app_1_0_2.jar
>   servlet-api.jar
>   standard.jar
>
> sample\WEB-INF\lib
>   commons-beanutils.jar
>   commons-collections.jar
>   commons-digester.jar
>   commons-el.jar
>   commons-logging.jar
>   custom_jsf_lib_1_0_2.jar
>   jstl.jar
>   myfaces-all.jar
>   myfaces-api.jar
>   myfaces-impl.jar
>   struts.jar
>
>
> Is this error still connected to the ServletContext problem from before?
>
> Thanks again
> Jeff
>
>
>
>
>
> Message from Kurt Edegger <[EMAIL PROTECTED]> received on 12/07/2005
> 06:24 PM
> |+--+>
> ||  ||
> ||  12/07/2005  ||
> ||   06:24 PM   ||
> ||  ||
> ||  ||
> |+--+>
>
>|

>   |
|
>   |Kurt Edegger <[EMAIL PROTECTED]>
|
>   |
|
>   |Please respond to "MyFaces Discussion" 
|
>   |Sent by Kurt Edegger <[EMAIL PROTECTED]>
|
>
>--------|

>
> |--->
> |   |
> |   |
> |--->
>
>---|

>   |
|
>   |  To:   MyFaces Discussion , Jeff
Mullen/USCRC/[EMAIL PROTECTED]   |
>   |  cc:
|
>   |  Subject:  Re: StartupServletContextListener crashes Tomcat
container |
>
>---|

>
>
>
> Hi,
>
> please make sure that you inluded the myfaces libraries to your webapp,
> since
> they are not in your common\lib.
> The following links explain how to get started with myfaces (which is
just
> an
> implementation of JSF):
>
> http://wiki.apache.org/myfaces/Installation_and_Configuration
> http://wiki.apache.org/myfaces/Getting_Started
>
> Take care,
>
>Kurt
>
> Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
>
>
>>Greetings
>>
>>I just joined this list tonight, as I have only started messing around
>>witth Java Server Faces and Tomcat.
>>I am working through some tutorials very slowly and I seem to be able to
>>work the JSP side of things
>>fairly well, but I cannot get Java Server Faces to work at all. I will
>
> skip
>
>>the tortuous details of how I got
>>to this point and simply say that I get the following error when I try to
>>add the StartupServletContextListener
>>to the web.xml file
>>
>>
>>Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
>>SEVERE: Error listenerStart
>>Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
>>SEVERE: Context [/samples] startup failed due to previous errors
>>
>>
>>
>>Relevant info:
>>  Apache/Tomcat version 5.5.12
>>  MyFaces 1.1.1
>>
>>Included in common\lib
>>  commons-beanutils.jar
>>  commons-collections.jar
>>  commons-digester.jar
>>  commons-el.jar
>>  commons-logging.jar
>>  custom_jsf_lib_1_0_2.jar
>>  jasper-compiler-jdt.jar
>>  jasper-compiler.jar
>>  jasper-runtime.jar
>>  jsf-api.jar
>>  jsf-impl.jar
>>  jsp-api.jar
>>  jstl.jar

Re: StartupServletContextListener crashes Tomcat container

2005-12-08 Thread jeff . mullen

Kurt,

Thanks for your response. I had unzipped the file in the wrong place.

I have followed the instructions in the two links you sent me and have
conquered this problem to arrive at another one, which may or may not
be related. With the following JSP code


<%@ page contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>


   
 From: 
   



I get the following error
javax.servlet.ServletException:
org/apache/commons/el/ExpressionEvaluatorImpl
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)

The difference (and source of joy) is that now I am at least getting this
in the browser instead of in the startup panel in Tomcat.
My web.xml file is still as below and my newly cleaned lib directories are

common\lib
  jasper-compiler-jdt.jar
  jasper-compiler.jar
  jasper-runtime.jar
  jsp-api.jar
  naming-factory-dbcp.jar
  naming-factory.jar
  naming-resources.jar
  sample_app_1_0_2.jar
  servlet-api.jar
  standard.jar

sample\WEB-INF\lib
  commons-beanutils.jar
  commons-collections.jar
  commons-digester.jar
  commons-el.jar
  commons-logging.jar
  custom_jsf_lib_1_0_2.jar
  jstl.jar
  myfaces-all.jar
  myfaces-api.jar
  myfaces-impl.jar
  struts.jar


Is this error still connected to the ServletContext problem from before?

Thanks again
Jeff





Message from Kurt Edegger <[EMAIL PROTECTED]> received on 12/07/2005
06:24 PM
|+--+>
||  ||
||  12/07/2005  ||
||   06:24 PM   ||
||  ||
||  ||
|+--+>
  
>|
  | 
   |
  |Kurt Edegger <[EMAIL PROTECTED]> 
   |
  | 
   |
  |Please respond to "MyFaces Discussion" 
   |
  |Sent by Kurt Edegger <[EMAIL PROTECTED]> 
   |
  
>|

|--->
|   |
|   |
|--->
  
>---|
  |     
  |
  |  To:   MyFaces Discussion , Jeff 
Mullen/USCRC/[EMAIL PROTECTED]   |
  |  cc:
  |
  |  Subject:  Re: StartupServletContextListener crashes Tomcat container   
  |
  
>---|



Hi,

please make sure that you inluded the myfaces libraries to your webapp,
since
they are not in your common\lib.
The following links explain how to get started with myfaces (which is just
an
implementation of JSF):

http://wiki.apache.org/myfaces/Installation_and_Configuration
http://wiki.apache.org/myfaces/Getting_Started

Take care,

   Kurt

Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:

> Greetings
>
> I just joined this list tonight, as I have only started messing around
> witth Java Server Faces and Tomcat.
> I am working through some tutorials very slowly and I seem to be able to
> work the JSP side of things
> fairly well, but I cannot get Java Server Faces to work at all. I will
skip
> the tortuous details of how I got
> to this point and simply say that I get the following error when I try to
> add the StartupServletContextListener
> to the web.xml file
>
>
> Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/samples] startup failed due to previous errors
>
>
>
> Relevant info:
>   Apache/Tomcat version 5.5.12
>   MyFaces 1.

StartupServletContextListener crashes Tomcat container

2005-12-07 Thread jeff . mullen
Greetings

I just joined this list tonight, as I have only started messing around
witth Java Server Faces and Tomcat.
I am working through some tutorials very slowly and I seem to be able to
work the JSP side of things
fairly well, but I cannot get Java Server Faces to work at all. I will skip
the tortuous details of how I got
to this point and simply say that I get the following error when I try to
add the StartupServletContextListener
to the web.xml file


Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/samples] startup failed due to previous errors



Relevant info:
  Apache/Tomcat version 5.5.12
  MyFaces 1.1.1

Included in common\lib
  commons-beanutils.jar
  commons-collections.jar
  commons-digester.jar
  commons-el.jar
  commons-logging.jar
  custom_jsf_lib_1_0_2.jar
  jasper-compiler-jdt.jar
  jasper-compiler.jar
  jasper-runtime.jar
  jsf-api.jar
  jsf-impl.jar
  jsp-api.jar
  jstl.jar
  naming-factory-dbcp.jar
  naming-factory.jar
  naming-resources.jar
  sample_app_1_0_2.jar
  servlet-api.jar
  standard.jar
  struts.jar



web.xml file
--


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">




javax.faces.STATE_SAVING_METHOD
server
  





org.apache.myfaces.webapp.StartupServletContextListener




  
FacesServlet
javax.faces.webapp.FacesServlet
1
  

  
FacesServlet
*.faces
  








---


As I point out above, starting Tomcat works until I add the 
node. Without it, or so I gather from
googling this all day, the faces page won't work, but the server starts up
at least.

So, what exactly am I missing? (I hope this is enough info)

Thanks
Jeff