简体   繁体   English

使用myeclipse和jboss服务器运行jsf应用程序

[英]run jsf application with myeclipse and jboss server

I develop simple jsf login application,that use icefaces component but, when I tries to run it in jboss server I got following error. 我开发了使用icefaces组件的简单jsf登录应用程序,但是,当我尝试在jboss服务器中运行该应用程序时,出现以下错误。

Can't find TLD for location [ http://java.sun.com/jsf/core ]. 找不到位置的TLD [ http://java.sun.com/jsf/core ]。 JAR containing the TLD may not be in the classpath 包含TLD的JAR可能不在类路径中

Can't find TLD for location [ http://java.sun.com/jsf/html ]. 找不到位置的TLD [ http://java.sun.com/jsf/html ]。 JAR containing the TLD may not be in the classpath 包含TLD的JAR可能不在类路径中

You need to include the JSF implementation JAR's in the classpath. 您需要在类路径中包括JSF实现JAR。 As of now there are two choices: Sun Mojarra and Apache MyFaces . 到目前为止,有两个选择: Sun MojarraApache MyFaces I'd recommend to pick Mojarra. 我建议选择Mojarra。 You'll get two JAR files: jsf-api.jar and jsf-impl.jar . 您将获得两个JAR文件: jsf-api.jarjsf-impl.jar Put them in the classpath of the webapplication in question and this problem should go away. 将它们放在有问题的Web应用程序的类路径中,这个问题应该消失了。 The /WEB-INF/lib folder is by default covered by the webapp's classpath, so just drop those JAR's in that folder and redeploy. /WEB-INF/lib应用程序的类路径默认覆盖/WEB-INF/lib文件夹,因此只需将那些JAR放在该文件夹中并重新部署即可。

If you for instance already have done it, then there's likely means of classpath pollution with different versioned JAR files and/or a classpath cluttered with loose JAR file contents. 例如,如果您已经做过,那么很可能会使用不同版本的JAR文件和/或因松散的JAR文件内容而混乱的类路径来污染类路径。 You'll need to cleanup it. 您需要清理它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM