我有一个项目是使用SSH框架,采用最常规的技术开发(没有使用web service)。 数据库是MySql,现在只是在MyEclipse和Tomcat上开发调试,现在想迁移到JBoss 5.0.1.GA, 但是做过JBoss的基本配置后,直接部署过去不能运行。我是Jboss新手,那位大侠能够给小弟系统地指导一下部署的过程,不胜感激!

解决方案 »

  1.   

    D:\Jboss\jboss-5.0.0.GA\server\default\deploy  项目放在该目录下就可以了。
      

  2.   

    错误提示:
    错误提示:org.jboss.deployers.spi.DeploymentException: Unable to find class path entry ClassPathEntryImpl{path=Home/WEB-INF/lib/xwork-2.0.4.jar} from struts2-sitegraph-plugin-2.0.9.jar
    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
    at org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder.applyContextInfo(VFSStructureBuilder.java:184)
    at org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder.populateContext(AbstractStructureBuilder.java:82)
    at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:89)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:303)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
    at org.jboss.Main.boot(Main.java:209)
    at org.jboss.Main$1.run(Main.java:547)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.IOException: Child not found Home/WEB-INF/lib/xwork-2.0.4.jar for DelegatingHandler@20597069[path=Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar context=file:/F:/jboss-5.0.1.GA/server/web/deploy/ real=file:/F:/jboss-5.0.1.GA/server/web/deploy/Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar], available children: [ZipEntryHandler@27431200[path=Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/LICENSE.txt context=file:/F:/jboss-5.0.1.GA/server/web/deploy/ real=file:/F:/jboss-5.0.1.GA/server/web/deploy/Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/LICENSE.txt], ZipEntryHandler@31838154[path=Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/META-INF context=file:/F:/jboss-5.0.1.GA/server/web/deploy/ real=file:/F:/jboss-5.0.1.GA/server/web/deploy/Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/META-INF], ZipEntryHandler@11335826[path=Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/NOTICE.txt context=file:/F:/jboss-5.0.1.GA/server/web/deploy/ real=file:/F:/jboss-5.0.1.GA/server/web/deploy/Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/NOTICE.txt], ZipEntryHandler@32728498[path=Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/org context=file:/F:/jboss-5.0.1.GA/server/web/deploy/ real=file:/F:/jboss-5.0.1.GA/server/web/deploy/Home/WEB-INF/lib/struts2-sitegraph-plugin-2.0.9.jar/org]]
    at org.jboss.virtual.VirtualFile.findChild(VirtualFile.java:461)
    at org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder.applyContextInfo(VFSStructureBuilder.java:180)
      

  3.   

    删除项目里面的xerces-2.6.2.jar和xml-apis.jar在发布看看,我的也是的,删了就好了,或者你换成4.2.6的版本也行。具体的原因我也不是很清楚,经验
      

  4.   

    可能是你的jar方的位置不对,试试直接放在它的LIB下,或者改个别的位置