错误:在Tomcat5.5下运行seam
oncetime2008
2007-07-19
本人正在学习jsf,最近看到了seam,觉得跟jsf配合应该很好,就看了下,不过在Tomcat下怎么也运行不了。
运行环境:Eclipse+Excadel,JDK6,Tomcat5.5。 运行框架:JSF1.2+Facelets。 PS:已经做了一个简单的JSF1.2+Facelets的小程序,可以正常运行,没有任何问题。 <------------------------------------------------------------------------> 问题一:我只是将jboss-seam-2.0.0.BETA1\下的8个jar拷贝到WEB-INF\lib下,其他什么都没改。出现如下错误,但还能运行。 严重: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext listenerStart 严重: Skipped installing application listeners due to previous error(s) 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext start 严重: Context [/JFace] startup failed due to previous errors 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.sun.faces.application.WebappLifecycleListener java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext listenerStart 严重: Skipped installing application listeners due to previous error(s) 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2007-7-27 13:40:55 org.apache.catalina.core.StandardContext start 严重: Context [/GodDog] startup failed due to previous errors <------------------------------------------------------------------------> 问题2:web.xml设置: <listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener> face-config设置: <lifecycle> <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener> </lifecycle> 再次运行,出现如下错误,程序不显示了,出现404错误。 严重: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile at org.jboss.seam.deployment.Scanner.<init>(Scanner.java:51) ... 2007-7-27 13:44:48 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2007-7-27 13:44:48 org.apache.catalina.core.StandardContext start 严重: Context [/WWW] startup failed due to previous errors 2007-7-27 13:44:48 org.apache.catalina.core.StandardContext listenerStop 严重: Exception sending context destroyed event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter at org.jboss.seam.core.Events.instance(Events.java:154) ... log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. ... 严重: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:44:56 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:44:56 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.sun.faces.application.WebappLifecycleListener java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:44:56 org.apache.catalina.core.StandardContext listenerStart 严重: Skipped installing application listeners due to previous error(s) 2007-7-27 13:44:56 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2007-7-27 13:44:56 org.apache.catalina.core.StandardContext start 严重: Context [/GodDog] startup failed due to previous errors <------------------------------------------------------------------------> 问题3:将jboss-seam-2.0.0.BETA1与jboss-seam-2.0.0.BETA1\lib下的所有jar文件拷贝到WEB-INF\lib下。运行出现如下错误,并且界面什么都不显示。空白。 严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener javax.faces.FacesException: Can't parse configuration file: jar:file:/D:/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/WWW/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml: Error at line 12 column 18: The content of element type "validator" must match "(description*,display-name*,icon*,validator-id,validator-class,attribute*,property*)". at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1587) ... 2007-7-27 13:44:48 org.jboss.seam.servlet.SeamListener contextInitialized 信息: Welcome to Seam 2.0.0.BETA1 2007-7-27 13:44:48 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:57:12 org.apache.catalina.core.StandardContext listenerStart 严重: Skipped installing application listeners due to previous error(s) 2007-7-27 13:57:12 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2007-7-27 13:57:12 org.apache.catalina.core.StandardContext start 严重: Context [/JFace] startup failed due to previous errors 2007-7-27 13:57:13 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:57:13 org.apache.catalina.core.StandardContext listenerStart 严重: Error configuring application listener of class com.sun.faces.application.WebappLifecycleListener java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) ... 2007-7-27 13:57:13 org.apache.catalina.core.StandardContext listenerStart 严重: Skipped installing application listeners due to previous error(s) <------------------------------------------------------------------------> 谁运行成功过,麻烦告诉一下,前几天弄了一整天,就是不成功,英文文档说可以在Tomcat5.5+上运行的。 |
|
oncetime2008
2007-07-20
将seam2.0全部jar拷贝到\lib下,并运行Tomcat6不报错,但连接到网页时出现错误,原因不明。
决定搁置seam一段时间,一是因为seam的jar包太乱,头都大了,二是因为自己始终不能运行seam,可能因为自己太笨了,当初想用jsf+seam+jpa的组合,感觉应该很好,现在不行了,只能用jsf+javabean+jpa了,不过还会关注seam的,谁让自己写不出来呢。 哪位在Tomcat下运成功了seam麻烦告诉一声怎么运行的,回帖,发邮件都行,谢谢了。 本帖已结束。 |
|
JeffreyHsu
2007-08-09
本群里的电子书 <jboss seam simplicity...>最后一章讲解如何
deploy to tomcat without ejb3 |
|
shaucle
2007-09-17
use embedded ejb
use seam-gen is recommended |
|
fangzhouxing
2007-11-14
我已经在Tomcat 5.5下配置和运行成功。
|
|
qtlove
2007-11-16
可以参考这篇文章:http://www.jbossseam.com/2007/11/16/seam-development-with-eclipse-and-tomcat/
|
|
xxqn
2007-11-23
比较保险的做法,先用seam自带的例子用ant发布一次,然后分析发布包,这要会少点问题。
|
|
onionppp
2007-12-17
fangzhouxing 写道 我已经在Tomcat 5.5下配置和运行成功。
能不能说下怎么弄的吗? |
|
fangzhouxing
2007-12-24
请参见:
http://fangzhouxing.iteye.com/blog/144659 |
相关讨论
相关资源推荐
- 《系统架构设计师教程(第2版)》第5章-软件工程基础知识-05-净室软件工程(CSE)
- 软考高级之系统架构师系列之软件开发模型
- 净室方法
- 软考之软件工程
- 净室规范和设计的盒子结构(2)
- java jndi jboss_java – 帮助在Tomcat 5.5.x中使用嵌入式JBoss配置JNDI
- idea环境下运行jsp出现:ClassNotFoundException、NoClassDefFoundError、xxx cannot be resolved to a type等错误的解决方案
- 一步步教你使用Eclipse和Tomcat进行Seam开发
- seam只能运行于JBoss Application Server吗?
- 配置jboss seam时需要注意的一点