• 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

No access to classes

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I'm running Tomcat 5.5.12 and I'm having issues when attempting to instantiate my own classes.

My source is located in c:\testapps. Jsp's are working just fine. My class is in the usual, c:\testapps\WEB-INF\classes. My CLASSPATH includes the pre-stated path to the class. The class in question (SiteParams.class) fails on this line...

SiteParams sp = new SiteParams();

The error message is as follows:

"SiteParams cannot be resolved to a type"

by the way, this class has worked fine in other hosting environments. This is the first time that I've set up Tomcat locally.

Any ideas as to what I'm missing?

Thanks
D.B.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your class in a package?

Thee has been a tightning of the spec for JREs starting with version 1.4.1.
Starting with this version, you can't import a non-packged class (default package) from a packaged one.
 
reply
    Bookmark Topic Watch Topic
  • New Topic