Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

The value for the useBean class attribute project1.class1 is invalid

Posted on 2007-10-19
5
Medium Priority
?
1,343 Views
Last Modified: 2008-01-09
Hi Experts
I want execute jsp pages in my desktop.
I have Apachi Tomcat 5.5.12 .

when I Open jsp page . I have this error:
 (The value for the useBean class attribute project1.class1 is invalid)

org.apache.jasper.JasperException: /project1/web1/jsp1.jsp(8,0) The value for the useBean class attribute project1.class1 is invalid.
      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
      org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1223)
      org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
      org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
      org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
      org.apache.jasper.compiler.Generator.generate(Generator.java:3284)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802

 Please help me.
0
Comment
Question by:Farzadmehr
  • 3
  • 2
5 Comments
 
LVL 28

Expert Comment

by:rrz
ID: 20109434
Please show your useBean tag.  Did you put your bean in a package ?
0
 

Author Comment

by:Farzadmehr
ID: 20109557
<%@ page contentType="text/html; charset=windows-1256" %>
<html>
<head>
<title>
jsp2
</title>
</head>
<jsp:useBean id="bean0" scope="session" class="project1.class1" />
<jsp:setProperty name="bean0" property="*" />
<body bgcolor="#ffffff">
<h1>
<% out.print(bean0.gettext()); %>
</h1>
</body>
</html>

yes it is in a package
0
 
LVL 28

Expert Comment

by:rrz
ID: 20109669
Where did you put the file     class1.class   ?
Is this the path  ?
<yourTomcatHome>/webapps/<yourContext>/WEB-INF/classes/project1/class1.class  
0
 

Author Comment

by:Farzadmehr
ID: 20110426
D:\Tomcat 5.5\webapps\ROOT\project1\web1\WEB-INF\classes\project1
0
 
LVL 28

Accepted Solution

by:
rrz earned 1800 total points
ID: 20110718
I think you have the file structure wrong.  
Try putting it  at this path.
D:\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\project1\class1.class
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a matter of fact, Outlook OST files are of much importance in relation to Exchange mailbox. OST files are independent as they are simply copy of data of a user’s mailbox on Exchange Server. Though, if the server’s status is changed or it is dama…
A quick solution showing how to control and open a POS Cash Register Drawer using VBA with MS Access.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question