You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Kwan, Kenneth Y" <Ke...@pccw.com> on 2001/02/07 09:48:38 UTC
Servlet preLoad difference between IBM JDK & Sun JDK
Recently I have tried IBM JDK1.3 to run my tomcat and everything seems ok.
However, when I wanted to pre-load a servlet from a package, I found that
the behavior of IBM’s JDK & Sun’s JDK are different where IBM’s only
works with <package>.<class> while Sun’s is <package>/<class>. Can anyone
advise which is correct?
*** Cut from my web.xml ***
1) Using Sun’s JDK
<servlet>
<servlet-name>
MyInit
</servlet-name>
<servlet-class>
Pkg/MyInit <------------------diff in here
</servlet-class>
<load-on-startup>
1
</load-on-startup>
</servlet>
2) Using IBM’s JDK
<servlet>
<servlet-name>
MyInit
</servlet-name>
<servlet-class>
Pkg.MyInit <------------------diff in here
</servlet-class>
<load-on-startup>
1
</load-on-startup>
</servlet>
Thanks
Kenneth