tomcat 和 jboss

ITfuture
08-04-25 1 415

本人做了一个测试项目在tomcat下就能很好的发布运行。但是当你发布到jboss4.0系统就会出错
------------
21:54:06,843 INFO [Engine] StandardContext[/web-console]SystemFolder: Failed to init plugin, D:\Program%20Files\jboss-4.0.0\server\default\deploy\management\web-console.war\WEB-INF\classes\SystemFolder.bsh
21:54:07,203 INFO [TomcatDeployer] deploy, ctxPath=/TestEXT, warUrl=file:/D:/Program Files/jboss-4.0.0/server/default/deploy/TestEXT.war/
21:54:07,531 INFO [TomcatDeployer] deploy, ctxPath=/production, warUrl=file:/D:/Program Files/jboss-4.0.0/server/default/deploy/production.war/
21:54:17,687 ERROR [ActionServlet] Parsing error processing resource path /WEB-INF/struts-config.xml
java.io.FileNotFoundException: D:\Program%20Files\jboss-4.0.0\server\default\work\jboss.web\localhost\production\loader\org\apache\struts\resources\struts-config_1_2.dtd
at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:71)
at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:80)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
--------后略
他告诉我找不到struts-config_1_2.dtd 但是在D:\Program%20Files\jboss-4.0.0\server\default\work\jboss.web\localhost\production\loader\org\apache\struts\resources\下确实有这个文件。非常奇怪。本人只是为了学习jboss才会这么做,请各位高手帮忙看哈。谢谢了

banq
2008-04-28 12:37

>Parsing error processing resource path /WEB-INF/struts-config.xml java
显然struts-config.xml 格式有问题,使用eclipse开发,可以帮助你发现这些低级错误。