主题:jsp定义javabean报错
<2005-8-16 上午09时16分36秒 CST> <Error> <HTTP> <BEA-101020> <[ServletContext(id
=34432126,name=crmweb,context-path=/crmweb)] Servlet failed with Exception
weblogic.servlet.jsp.JspException: (line 10): class 'bean.C' co
uld not be loaded
at weblogic.servlet.jsp.JspLexer.jspException(Ljava.lang.String;)V(JspLe
xer.java:712)
at weblogic.servlet.jsp.JspLexer.processBeanTag(Ljava.util.Properties;Z)
V(JspLexer.java:1380)
at weblogic.servlet.jsp.JspLexer.mXML_OPEN_USEBEAN(Z)V(JspLexer.java:364
8)
at weblogic.servlet.jsp.JspLexer.mXML_THING(Z)V(JspLexer.java:1932)
at weblogic.servlet.jsp.JspLexer.mTOKEN(Z)V(JspLexer.java:1825)
at weblogic.servlet.jsp.JspLexer.nextToken()Lantlr.Token;(JspLexer.java:
1753)
at weblogic.servlet.jsp.JspLexer.parse()V(JspLexer.java:963)
at weblogic.servlet.jsp.JspParser.doit()V(JspParser.java:106)
at weblogic.servlet.jsp.JspParser.parse(Ljava.io.Reader;)V(JspParser.jav
a:230)
at weblogic.servlet.jsp.Jsp2Java.outputs([Ljava.lang.Object;)Ljava.util.
Enumeration;(Jsp2Java.java:125)
at weblogic.utils.compiler.CodeGenerator.generate([Ljava.lang.Object;)[L
java.lang.String;(CodeGenerator.java:258)
at weblogic.servlet.jsp.JspStub.compilePage(Lweblogic.servlet.internal.R
equestCallback;)V(JspStub.java:367)
at weblogic.servlet.jsp.JspStub.prepareServlet(Lweblogic.servlet.interna
l.RequestCallback;Z)V(JspStub.java:223)
at weblogic.servlet.jsp.JspStub.prepareServlet(Lweblogic.servlet.interna
l.RequestCallback;)V(JspStub.java:172)
at weblogic.servlet.internal.ServletStubImpl.getServlet(Lweblogic.servle
t.internal.RequestCallback;)Ljavax.servlet.Servlet;(ServletStubImpl.java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:362)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:446)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run()Ljava.lang.Object;(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.se
curity.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Objec
t;(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.ac
l.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSub
ject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:11
8)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogi
c.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponse
Impl;)V(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel
.ExecuteThread;)V(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest
;)V(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Sourc
e)
>
jsp文件中这样写的:
<jsp:useBean id="test" class="net.buffalo.demo.page.C" scope="session" />
C.java:
package bean;
public class C{
}
=34432126,name=crmweb,context-path=/crmweb)] Servlet failed with Exception
weblogic.servlet.jsp.JspException: (line 10): class 'bean.C' co
uld not be loaded
at weblogic.servlet.jsp.JspLexer.jspException(Ljava.lang.String;)V(JspLe
xer.java:712)
at weblogic.servlet.jsp.JspLexer.processBeanTag(Ljava.util.Properties;Z)
V(JspLexer.java:1380)
at weblogic.servlet.jsp.JspLexer.mXML_OPEN_USEBEAN(Z)V(JspLexer.java:364
8)
at weblogic.servlet.jsp.JspLexer.mXML_THING(Z)V(JspLexer.java:1932)
at weblogic.servlet.jsp.JspLexer.mTOKEN(Z)V(JspLexer.java:1825)
at weblogic.servlet.jsp.JspLexer.nextToken()Lantlr.Token;(JspLexer.java:
1753)
at weblogic.servlet.jsp.JspLexer.parse()V(JspLexer.java:963)
at weblogic.servlet.jsp.JspParser.doit()V(JspParser.java:106)
at weblogic.servlet.jsp.JspParser.parse(Ljava.io.Reader;)V(JspParser.jav
a:230)
at weblogic.servlet.jsp.Jsp2Java.outputs([Ljava.lang.Object;)Ljava.util.
Enumeration;(Jsp2Java.java:125)
at weblogic.utils.compiler.CodeGenerator.generate([Ljava.lang.Object;)[L
java.lang.String;(CodeGenerator.java:258)
at weblogic.servlet.jsp.JspStub.compilePage(Lweblogic.servlet.internal.R
equestCallback;)V(JspStub.java:367)
at weblogic.servlet.jsp.JspStub.prepareServlet(Lweblogic.servlet.interna
l.RequestCallback;Z)V(JspStub.java:223)
at weblogic.servlet.jsp.JspStub.prepareServlet(Lweblogic.servlet.interna
l.RequestCallback;)V(JspStub.java:172)
at weblogic.servlet.internal.ServletStubImpl.getServlet(Lweblogic.servle
t.internal.RequestCallback;)Ljavax.servlet.Servlet;(ServletStubImpl.java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:362)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:446)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run()Ljava.lang.Object;(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.se
curity.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Objec
t;(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.ac
l.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSub
ject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:11
8)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogi
c.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponse
Impl;)V(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel
.ExecuteThread;)V(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest
;)V(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Sourc
e)
>
jsp文件中这样写的:
<jsp:useBean id="test" class="net.buffalo.demo.page.C" scope="session" />
C.java:
package bean;
public class C{
}