Jboss部署 console口信息:
Buildfile: D:\eclipse3.6\plugins\org.eclipse.jst.server.generic.jboss_1.6.1.v200904151730\buildfiles\jboss323.xml
deploy.j2ee.web:
[jar] Building jar: E:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\JNDI_TEST.war
[move] Moving 1 file to G:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\server\default\deploy
BUILD SUCCESSFUL
JBoss部署项目时 因项目中有javaee.jar,访问前台页面时报错:
java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to javax.servlet.http.HttpServletRequest
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:73)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
此项目部署在Tomcat上可用(含javaee.jar)。 删除javaee.jar后,JBOSS部署成功,页面可以成功访问。删掉后,在Tomcat上部署同样可用。
SSH项目在TOMCAT下部署
Caused by: java.lang.ClassNotFoundException: javax.transaction.TransactionManager
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
在JBOSS下部署
Caused by: java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
解决办法: TOMCAT下部署加上jta.jar和slf4j.jar ok 】
##为什么用jta里的TransactionManager,而javaee里的TransactionManager没用?##
JBOSS下部署 加入log4j-over-slf4j.jar,删除log4j.jar,报如下错误:
Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.