Package was introduced with jdk 1.2. The information you get through Package.getPackage() is supplied by the classloader which loaded the class that call this method. If the calling class is found throug the classpath, the system classloader should be used, otherwise the tomcat classloader is used. AFAIK Tomcat is backward compatible with jdk 1.1 and doesn't know about the Package class. May be you can change the configuration, so your calling class is found through the system classloader. > -----Urspr�ngliche Nachricht----- > Von: Toby Piper [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 2. November 2000 21:02 > An: Tomcat User Group > Betreff: Package.getPackage <snip/> > I want to get the package version of my code and when I do: > > packRPC = Package.getPackage("com.mycompany.rpc"); > > I get back a null pointer. <snip/>
