my dog learned polymorphism*
The moose likes Other Java Products and Servers and the fly likes class path error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "class path error" Watch "class path error" New topic

class path error

Joey Batac

Joined: Jun 15, 2005
Posts: 7
I get the error:

500 Internal Server Error
Error parsing JSP page /go/summary.jsp
Syntax error in source
error: File ./Item.class does not contain type Item as expected, but type com.calculate.sum.Item. Please remove the file, or make sure it appears in the correct subdirectory of the class path.

/ Class Item not found. (JSP page line 329)

/ Class Item not found. (JSP page line 329)

At first I was using JDK 1.3 tried in OC4J.
Then i tried to use JDK 1.4 where i made a restart.
Version errors occured that force me to revert to JDK 1.3
And then this error occured.


Thanks in advance,
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9044
Do you have a package statement in your Item class? Is your Item class in a subdirectory corresponding to the package statement (com/calculate/sum/Item)?

This doesn't sound like an Orion specific issue. In fact, it sounds like you're using OC4J rather than Orion. (It doesn't sound like an OC4J specific issue either).

I think I'll move this to the JSP forum for you.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9044
It's here
wood burning stoves
subject: class path error
Similar Threads
files in WEB-INF/classes not found?
class path error
Can you help a STRUTS newbie?
Struts2 Action Mapping Problem - No configuration found for the specified action
Usebean Error in JSP