I have a custom tag called InsertTag (almost identical to Java Petshop
InsertTag) that references another class, ScreenFlowManager...

44    screenManager =
(ScreenFlowManager)pageContext.getServletContext().
45      getAttribute(WebKeys.ScreenManagerKey);

The class compiles fine and both class are in the correct location in
the war file:

WEB-INF/classes/com/kiwiandy/framework/control/web/ScreenFlowManager.class
WEB-INF/classes/com/kiwiandy/framework/taglib/InsertTag.class

I've packaged the whole thing up in a .ear file which deploys fine in
JBoss2.2.2 with Tomcat3.2.2

However when I use a jsp file that references the tag, I get the
following (abbreviated) stack trace...

2001-07-02 11:11:52 - Ctx( /tutorial ): Exception in: R( /tutorial +
/template.jsp + null) - javax.servlet.ServletException:
com/kiwiandy/framework/control/web/ScreenFlowManager
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:40
....
Root cause:
java.lang.NoClassDefFoundError:
com/kiwiandy/framework/control/web/ScreenFlowManager
        at
com.kiwiandy.framework.taglib.InsertTag.doStartTag(InsertTag.java:44)   at
_0002ftemplate_0002ejsptemplate_jsp_0._jspService(_0002ftemplate_0002ejsptemplate_jsp_0.java:68)
....

The jsp file references the taglib.tld file which is also in the .war
file.

I have tried the same war file in plain old Tomcat 3.2.1 and it works
fine (except EJB references don't work too well!)

Cheers,
Andy Bryant

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to