Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:23:54+00:00 2026-05-13T18:23:54+00:00

I have a seam app and would like to use the MultiPowUploader ( http://www.element-it.com/multiple-file-upload/flash-uploader.aspx

  • 0

I have a seam app and would like to use the MultiPowUploader (http://www.element-it.com/multiple-file-upload/flash-uploader.aspx). They give some processing script files (.asp, .aspx, .php), including a .jsp. One should define a flashvar parameter with the relative path of the script. When I try to upload, I get the following errors:

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.commons.fileupload.FileItem resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.commons.fileupload.servlet.ServletFileUpload resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.apache.commons.fileupload.disk.DiskFileItemFactory resolves to a package

I included the commons-fileupload-1.2.1.jar. Even if this would work, I don’t think this is the best way to do it, having this in a .jsp when the app does not use any .jsp…

Any advice?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:23:54+00:00Added an answer on May 13, 2026 at 6:23 pm

    First of all, it’s indeed considered bad practice to write raw Java code down in a JSP file instead of a real Java class. You should in fact have used a Servlet for this.

    As to your problem, those compilation errors boils down to the particular classes being missed in the runtime classpath. I understand that it just works in your dev environment, is it true? Where have you actually included the JAR file? It ought to be in webapp’s /WEB-INF/lib to get it all to work, not somewhere outside such as in Appserver/lib or even more worse the JRE/lib.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SEAM app with some JPA/Hibernate entities. And I now wonder where
I have tried this approach/hack: http://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/ The problem is this leaves a faint seam.
I am developing a Seam-Jsfv1.2-EJB3 web app. I have a datatable and checkboxes in
We have a rather restrictive architecture where we have a portal-like Seam application which
I have a Seam 2.2 app running under JBoss5.1. In this application I have
I have a JSF/Seam web app which has a page with a form which,
I have a Java web app that I'm developing, using JBoss Seam as the
I have a seam 2.2 app. Basically I have a form with about 30
I would like to put some of the hibernate configuration in a property file
In my Seam application, I have a Seam component that returns a ( @Datamodel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.