[jboss-user] [EJB 3.0] - JspTagException in links.jsp and $Proxy97 not found running

cscs010 do-not-reply at jboss.com
Wed Mar 14 16:53:51 EDT 2007


Hi everyone,

I am relatively new to JBOSS (4.0.5) and am trying to run the DukesBank example on a SUSE LINUX system (running on z/os).
i finally got the example working on WINDOWS after a few modifications, but I never encountered this particular problem on Windows and cannot
find anything about it as pertains to the DukesBank example, although i saw that there might be some type of jndi error.
 the HSQL database looks okay on the Linux system and as I stated, all is working fine on Windows.

after i sign on with id=200, password=j2ee, i get the following error in the browser about links.jsp. 
      
 Your request cannot be completed. The server got the following error: 
javax.servlet.jsp.JspTagException: Exception in JSP: /template/links.jsp:33 30: 31: 32: 33: 34: 35: 36: Stacktrace: 

i did not change anything in links.jsp - these are the tags provided:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:useBean id="customerBean" class="com.sun.ebank.web.CustomerBean" scope="request"/>
<jsp:setProperty name="customerBean" property="customer" value="${pageContext.request.userPrincipal.name}"/>
<c:set var="accounts" value="${customerBean.accounts}" />
<c:forEach items="${accounts}" begin="0" end="0" var="ad">
<c:set var="accountId" value="${ad.accountId}" />
</c:forEach>

however, the log also shows that $PROXY97 cannot be found.

      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlkerThread.java:112)
        at java.lang.Thread.run(Thread.java:799)
15:04:24,022 ERROR [STDERR] Debug: Couldn't create transaction bean.Unexperror; nested exception is:
        java.lang.NoClassDefFoundError: $Proxy97
15:04:24,022 ERROR [STDERR] Debug: hack - added customerBean to request
15:04:24,023 ERROR [STDERR] Debug: /main
15:04:24,023 ERROR [STDERR] Debug: Forwarding to template.
15:04:24,032 ERROR [[jsp]] Servlet.service() for servlet jsp threw excepti
java.lang.NullPointerException
        at com.sun.ebank.web.CustomerBean.getAccounts(CustomerBean.java:11
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessojava:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethosorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:314
        at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:1
        at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressiuatorImpl.java:263)
        at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressiuatorImpl.java:190)
        at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PtextImpl.java:917)
        at org.apache.jsp.template.links_jsp._jspx_meth_c_set_0(links_jsp.61)
        at org.apache.jsp.template.links_jsp._jspService(links_jsp.java:84
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletW.java:334)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.14)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:26
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilteicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicilterChain.java:173)
     

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028159#4028159

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028159



More information about the jboss-user mailing list