You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jerry Jalenak <Je...@LABONE.com> on 2003/08/06 22:02:02 UTC
Class Not Found Exception with Tiles controllClass
I'm getting a 'Class not found' exception when I try to use a
controllerClass in a Tiles definition....
<snip>
<definition
name="membersolutions.portalLayout.splitscreen"
path="/WEB-INF/tiles/commonLayouts/portalLayoutSplit.jsp" >
<put name="title" value="LabOne, Inc. -
MemberSolutions" />
<put name="stylesheet" value="memberSolutions" />
<put name="topFrame"
value="/WEB-INF/tiles/commonLayouts/static/topframe.jsp" />
<put name="leftFrame" value="" />
<put name="rightFrame" value="disclaimer.controller"
/>
<put name="bottomFrame"
value="/WEB-INF/tiles/commonLayouts/static/bottomframe.jsp" />
</definition >
<!-- -->
<definition
controllerClass="com.labone.membersolutions.framework.tiles.controller.NewsC
ontroller"
name="disclaimer.controller"
path="/WEB-INF/tiles/commonLayouts/static/disclaimer.jsp"/>
</snip>
The "NewsController" looks like this...
<snip>
package com.labone.membersolutions.framework.tiles.controller;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.tiles.ComponentContext;
import org.apache.struts.tiles.Controller;
public class NewsController implements Controller
{
public void perform(ComponentContext cc, HttpServletRequest request,
HttpServletResponse response, ServletContext sc)
{
request.setAttribute("MemberSolutionsNews", "this is the
daily news");
}
}
</snip>
I can't see the problem; I've checked the archives for similar issues but
didn't find anything. I'm using Struts 1.1 Final. Any ideas?
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
jerry.jalenak@labone.com
This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: securityincidentreporting@labone.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Class Not Found Exception with Tiles controllClass
Posted by David Graham <gr...@yahoo.com>.
What class is it not finding? Assuming everything compiles ok, this is a
runtime classpath problem.
David
--- Jerry Jalenak <Je...@LABONE.com> wrote:
> I'm getting a 'Class not found' exception when I try to use a
> controllerClass in a Tiles definition....
>
> <snip>
>
> <definition
> name="membersolutions.portalLayout.splitscreen"
> path="/WEB-INF/tiles/commonLayouts/portalLayoutSplit.jsp" >
> <put name="title" value="LabOne, Inc. -
> MemberSolutions" />
> <put name="stylesheet" value="memberSolutions" />
> <put name="topFrame"
> value="/WEB-INF/tiles/commonLayouts/static/topframe.jsp" />
> <put name="leftFrame" value="" />
> <put name="rightFrame" value="disclaimer.controller"
> />
> <put name="bottomFrame"
> value="/WEB-INF/tiles/commonLayouts/static/bottomframe.jsp" />
> </definition >
>
> <!-- -->
> <definition
>
>
controllerClass="com.labone.membersolutions.framework.tiles.controller.NewsC
> ontroller"
> name="disclaimer.controller"
> path="/WEB-INF/tiles/commonLayouts/static/disclaimer.jsp"/>
>
> </snip>
>
> The "NewsController" looks like this...
>
> <snip>
>
> package com.labone.membersolutions.framework.tiles.controller;
>
> import javax.servlet.ServletContext;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
>
> import org.apache.struts.tiles.ComponentContext;
> import org.apache.struts.tiles.Controller;
>
> public class NewsController implements Controller
> {
> public void perform(ComponentContext cc, HttpServletRequest request,
> HttpServletResponse response, ServletContext sc)
> {
> request.setAttribute("MemberSolutionsNews", "this is the
> daily news");
> }
> }
>
> </snip>
>
> I can't see the problem; I've checked the archives for similar issues
> but
> didn't find anything. I'm using Struts 1.1 Final. Any ideas?
>
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS 66219
> (913) 577-1496
>
> jerry.jalenak@labone.com
>
>
> This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual or
> entity to which it is addressed. If you are not the intended recipient
> or the person responsible for delivering the transmission to the
> intended recipient, be advised that you have received this transmission
> in error and that any use, dissemination, forwarding, printing, or
> copying of this information is strictly prohibited. If you have received
> this transmission in error, please immediately notify LabOne at the
> following email address: securityincidentreporting@labone.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org