• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class path error

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

/summary.jsp.java:747: Class Item not found. (JSP page line 329)

/summary.jsp.java:747: 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.

My CLASSPATH is
$J2EE_HOME/applications/mixer/WEB-INF/classes:$J2EE_HOME/applications/mixer/WEB-INF/lib/servlet.jar

Thanks in advance,
joey
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's here
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic