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

  • SEARCH
  • Home
  • 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 749331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:25:20+00:00 2026-05-14T14:25:20+00:00

We have a large web app installation, using Apache/Tomcat/Jasper and jboss. In development environment,

  • 0

We have a large web app installation, using Apache/Tomcat/Jasper and jboss. In development environment, JSPs are compiled on the fly. Unfortunately, there is one package in particular that the on-the-fly compilation cannot seem to import. For some of the classes, using fully-qualified references rather than imports works, but not for all. All the classes in question are in a single jar (nonEjb.jar). Pre-compiling the JSPs works fine, but it’s of course very painful to have to do that every time we need to change one of the affected files. This problem has existed for quite some time, and I’d really like to resolve it as I’m set to do some work in the affected area.

Here is a small test page. It fails for the first import. The two classes being imported are very similar, the only significant difference is their package placement. (And yes, I’ve verified that the package declarations are correct for both classes.)

<%@ page contentType="text/html; charset=utf-8" %>
<%@ page errorPage="/error.jsp" %>

<%@ page import="com.elementk.lms.product.otr.OtrProviderType" %>
<%@ page import="com.elementk.lms.product.course.CourseType" %>

<html>
<body>
<hr>
Displaying the page...
<br>
<%= OtrProviderType.B24x7_PROVIDER.getId() %> value
<br>
<%= CourseType.SELF_STUDY.getId() %> value
</hr>
</body>
<html>

Result:

09 Mar 2010 21:29:40,555 ERROR [K] [RequestTimingFilter.doFilter:65] Unable to compile class for JSP:

An error occurred at line: 6 in the generated java file
The import com.elementk.lms.product.otr cannot be resolved

I get the same error if I remove the import and fully-qualify the reference (as com.elementk.lms.product.org.OtrProviderType).

What might be causing the JSP compiler to locate one of the classes but not the other?

  • 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-14T14:25:21+00:00Added an answer on May 14, 2026 at 2:25 pm

    We finally determined why this was happening. Apparently, the on-the-fly compiler doesn’t differentiate case, and the package com.elementk.lms.product contains a class named Otr. The compiler couldn’t tell the difference between the package “com.elementk.lms.product.otr” and the class “com.elementk.lms.product.Otr”. This explains why the error message only cites “com.elementk.lms.product.otr” even when the originating import was “com.elementk.lms.product.otr.OtrProviderType”.

    We had to repair by essentially avoiding the problem: we renamed the package.

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

Sidebar

Related Questions

I have an existing large(ish) PHP web app (using Apache and MySQL) which now
I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that
I've done lots of java web development using jsps and servlets, and I have
I have a large web app, and I think there are a bunch of
I have a large url that I am encoding using System.Web.HttpUtility.UrlEncode. When I encode
I have a large web app in vb.net 4.0. Its default namespace is configured
Some colleagues of mine have a large Java web app that uses a search
I have a web app that allows you to paste a large number of
Let's say you have a big web app with large visits, but you don't
I have a web app that contains a slide show with about 10 large

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.