The first error I just ignore, as it only seems to appear accompanying other errors. I suspect it is due to using J2SE 1.4 instead of 1.3. Each new version of Java deprecates things.
As for the latter, I suspect that you could possibly solve it by pointing to another J2EE library; or, upgrading to a different version of Tomcat.
Thanks erik777. I readed some other soure code which use jsp to access it's EJB(in JBoss.3.0TemplateAndExamples package). I found my web.xml and jboss-web.xml had some problems, after changed these problems and deploied again, it's works ok.