Mysterious .war deployment problem
cincaipatron Oct 9, 2001 1:19 AMHi,
I'm experiencing weird problem, desperatly need help. I had
matashop.webtier.Tree, matashop.webtier.TreeBuilder, and
matashop.webtier.TreeBuilderImpl classes.
After sometime, I decided to switch those three classes under
matashop.util (so current structure is: matashop.util.Tree,
matashop.util.TreeBuilder, matashop.util.TreeBuilderImpl).
A class (matashop.util.CategoryTreePrinter) uses those three classes.
A JSP (ShowCategories.jsp) uses matashop.util.CategoryTreePrinter.
However, each time I deployed my ear (consists of jar and war), and
access JSP which uses matashop.util.CategoryTreePrinter, I got this
exception (my platform is win2k) :
========================================================================
javax.servlet.ServletException: matashop/webtier/TreeBuilder
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service HttpServlet.java:853)
etc...
Root cause:
java.lang.NoClassDefFoundError: matashop/webtier/TreeBuilder
at catalog._0002fcatalog_0002fShowCategories_0002ejspShowCategories_jsp_0._jspService(_0002fcatalog_0002fShowCategories_0002ejspShowCategories_jsp_0.java:191)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
etc...
================================================================================================
I've check tomcat log, jboss log, it seems classpath is ok to me (I don't post here
rightnow cause it's too long, but I'll put some part here if some of you think it's
needed). I even clean tomcat/work, jboss/tmp/deploy, but it's just the same, I still
got the same exception. I've rebuild all classes.
I once suspect maybe the .war problem, so I tried to remove matashop.util.CategoryTreePrinter
from the .war, and I got expected response when I access ShowCategories.jsp --
complaining couldn't find matashop.util.CategoryTreePrinter. So I believe my
.war is correct.
Please help me, I've been working on this issues for days :(((((((((
-- Verdi March --