struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Dumoulin <cedric.dumou...@lifl.fr>
Subject Re: tiles Definitions
Date Tue, 06 Nov 2001 16:51:07 GMT

  Do you have tiles.jar and commons-*.jar files in the lib directory of your
webapps ?
  (i.e. under /tiles-tut/WEB-INF/lib/ )

    Cedric

Peter Georgiou wrote:

> Hi Cedric
>
> You are right, the servlet is not getting loaded.  I am using jaxp1.1.jar,
> and I also tried xerces, but still get the same error.  Below is the
> relevant part of my servlet.log file:  Don't know what to do about this????
>
> Peter
>
> 2001-11-06 16:34:58 StandardWrapper[/tiles-tut:default]: Loading container
> servlet default
> 2001-11-06 16:34:58 default: init
> 2001-11-06 16:34:58 StandardWrapper[/tiles-tut:invoker]: Loading container
> servlet invoker
> 2001-11-06 16:34:58 invoker: init
> 2001-11-06 16:34:58 StandardWrapper[/tiles-tut:action]: Marking servlet
> action as unavailable
> 2001-11-06 16:34:58 StandardContext[/tiles-tut]: Servlet /tiles-tut threw
> load() exception
> javax.servlet.ServletException: Wrapper cannot find servlet class
> org.apache.struts.action.ActionComponentServlet or a class it depends on
>  at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
>  at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
>  at org.apache.catalina.core.StandardContext.start(Unknown Source)
>  at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
>  at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
>  at org.apache.catalina.core.StandardHost.install(Unknown Source)
>  at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
>  at org.apache.catalina.startup.HostConfig.start(Unknown Source)
>  at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source)
>  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> Source)
>  at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>  at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>  at org.apache.catalina.core.StandardEngine.start(Unknown Source)
>  at org.apache.catalina.core.StandardService.start(Unknown Source)
>  at org.apache.catalina.core.StandardServer.start(Unknown Source)
>  at org.apache.catalina.startup.Catalina.start(Unknown Source)
>  at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>  at org.apache.catalina.startup.Catalina.process(Unknown Source)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
> ----- Root Cause -----
> java.lang.ClassNotFoundException:
> org.apache.struts.action.ActionComponentServlet
>  at org.apache.catalina.loader.WebappClassLoader.loadClass(Unknown Source)
>  at org.apache.catalina.loader.WebappClassLoader.loadClass(Unknown Source)
>  at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
>  at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
>  at org.apache.catalina.core.StandardContext.start(Unknown Source)
>  at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
>  at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
>  at org.apache.catalina.core.StandardHost.install(Unknown Source)
>  at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
>  at org.apache.catalina.startup.HostConfig.start(Unknown Source)
>  at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source)
>  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> Source)
>  at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>  at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>  at org.apache.catalina.core.StandardEngine.start(Unknown Source)
>  at org.apache.catalina.core.StandardService.start(Unknown Source)
>  at org.apache.catalina.core.StandardServer.start(Unknown Source)
>  at org.apache.catalina.startup.Catalina.start(Unknown Source)
>  at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>  at org.apache.catalina.startup.Catalina.process(Unknown Source)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
> ----- Original Message -----
> From: Cedric Dumoulin <cedric.dumoulin@lifl.fr>
> To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> Sent: Tuesday, November 06, 2001 3:16 PM
> Subject: Re: tiles Definitions
>
> >
> >   It looks like the servlet failed to start. Can you check the console
> output or
> > servlet log ?
> >   A common problem is a bad xml parser version. "common-digester.jar "
> require a
> > jaxp1.1 compliant parser.
> >
> >   Cedric
> >
> > Peter Georgiou wrote:
> >
> > > Hi and thanks for your reply.  I've changed the Servlet in my web.xml
> file
> > > to a type ActionComponentServlet, I've restarted the server, but I still
> get
> > > the same error.  You said: "There may be other install considerations as
> > > well"  What might these be?
> > >
> > > Thanks
> > >
> > > Peter
> > >
> > > > I think you want your servlet class to be
> > > > ActionComponentServlet.  There may be other install
> > > > considerations as well.
> > > >
> > > > Sandeep
> > > > --- Peter Georgiou <petertalker@btinternet.com> wrote:
> > > > > Hi
> > > > >
> > > > > I'm going through the Tiles tutorial and have
> > > > > reached the section on
> > > > > definitions where I have encountered problems.  I
> > > > > have created the following
> > > > > .jsp:
> > > > >
> > > > > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles"
> > > > > %>
> > > > > <tiles:insert definition="myFirstDefinition"
> > > > >                    flush="true">
> > > > >   <tiles:put name="title"
> > > > >              value="My First Definition With
> > > > > Overloaded Title" />
> > > > > </tiles:insert>
> > > > >
> > > > > have created the following componentDefinitions.xml
> > > > > file:
> > > > >
> > > > > <!-- html definition Mappings  -->
> > > > > <component-definitions>
> > > > >   <!-- Definition description  -->
> > > > >   <definition name="myFirstDefinition"
> > > > > path="/layout/classicLayout.jsp">
> > > > >           <put name="title"  value="My First
> > > > > Definition Page" />
> > > > >           <put name="header"
> > > > > value="/common/header.jsp" />
> > > > >           <put name="footer"
> > > > > value="/common/footer.jsp" />
> > > > >           <put name="menu"
> > > > > value="/common/menu.jsp" />
> > > > >           <put name="body"
> > > > > value="/basic/hello.jsp" />
> > > > >   </definition>
> > > > > </component-definitions>
> > > > >
> > > > > I've added the following to my web.xml file:
> > > > >
> > > > >
> > > > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > > >     <init-param>
> > > > >       <param-name>definitions-config</param-name>
> > > > >
> > > > >
> > > > <param-value>/WEB-INF/componentDefinitions.xml</param-value>
> > > > >     </init-param>
> > > > >     <init-param>
> > > > >       <param-name>definitions-debug</param-name>
> > > > >       <param-value>1</param-value>
> > > > >     </init-param>
> > > > >
> > > > > and I've restarted the server.  However, when I try
> > > > > to load my .jsp I get
> > > > > the following error:
> > > > >
> > > > > javax.servlet.ServletException: Can't get
> > > > > definitions factory from context.
> > > > >  at
> > > > >
> > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
> > > > > Source)
> > > > >  at
> > > > >
> > > >
> org.apache.jsp.definitionPage$jsp._jspService(definitionPage$jsp.java:127)
> > > > >
> > > > > Does anyone know what this problem might be?
> > > > >
> > > > > Thanks
> > > > >
> > > > > Peter
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > > > For additional commands, e-mail:
> > > > > <mailto:struts-user-help@jakarta.apache.org>
> > > > >
> > > >
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Find a job, post your resume.
> > > > http://careers.yahoo.com
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <mailto:struts-user-help@jakarta.apache.org>
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message