Stop & restart Resin after any changes, and you shouldn't see this problem. Other Resin users may be able to elaborate on the best development setup.
Cheers,
Scott
Todd Breiholz wrote:
I'm just starting out with WebWork and am having a problem. I get a ClassCastException when my login page loads.
Here is the exception:
java.lang.ClassCastException: webwork.util.ValueStack
at webwork.util.ValueStack.getStack(ValueStack.java:58)
at webwork.view.taglib.WebWorkTagSupport.getStack(WebWorkTagSupport.java:45)
at webwork.view.taglib.IfTag.doStartTag(IfTag.java:38)
at _login__jsp._jspService(/login.jsp:7)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:497)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:225)
at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:106)
at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:83)
at webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:491)
Resin 2.1.6 (built Fri Nov 8 08:18:18 PST 2002)
and here is my login.jsp:
<%@ taglib uri="webwork" prefix="ww" %>
<%@ taglib uri="webwork" prefix="ui" %>
<div align="center">
<form action="<ww:url page="login.action"/>" method="POST">
<ww:if test="hasErrorMessages == true">
ERROR:<BR>
<ww:iterator value="errorMessages">
<FONT COLOR=red><ww:property/></FONT><BR>
</ww:iterator>
</ww:if>
<table border="0">
<tr>
<td>Username:</td>
<td><input type="input" name="username"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="input" name="password"></td>
</tr>
<tr>
<td colspan="2">
<input type="Submit" name="Login">
</td>
</tr>
</table>
</form>
</div>
I am accessing this page as the result of an action (i.e. Click <a href='<ww:url page="/viewlogin.action"/>'>here</a> to login)
I think I must be missing a configuration element or something. Any help would be appreciated.
Thanks
Todd
-- ATLASSIAN - http://www.atlassian.com Expert J2EE Software, Services and Support ------------------------------------------------------- Need a simple, powerful way to track and manage issues? Try JIRA - http://www.atlassian.com/software/jira
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork