Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UploadBean with JBoss Problem

843840Apr 17 2008
Dear Experts

I am currently creating a web page which allows the customers to upload csv file.
I serached through the net and found that people are using "UploadBean" for this thus I downloaded the uploadbean jar file and imported it to my Jboss library.

My jsp code is :
<%String uploadDir = "C:/EVS Temp";%>
<jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
  <jsp:setProperty name="upBean" property="folderstore" value="<%=uploadDir%>" />
</jsp:useBean>
Followed by a save button.

But I got the error message like this:
 An error occurred at line: 27 in the jsp file: /meter/meter_uploadMeterList.jsp
javazoom.upload.UploadBean cannot be resolved to a type

26: <%String uploadDir = "C:/EVS Temp"; %>
27: <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
28:   <jsp:setProperty name="upBean" property="folderstore" value="<%=uploadDir%>" />
29: </jsp:useBean>


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
I understand that this uploadBean problem has been asked many times. But I dont think those answers can solve my problem as they was not using JBoss.

On the Uploadbean Support site, they said uploadbean is not tested with JBoss.
http://www.javazoom.net/jzservlets/uploadbean/documentation/software.html

Any idea for this?

Thanks alot.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2008
Added on Apr 17 2008
0 comments
202 views