RT,多谢了。

解决方案 »

  1.   

    用部署ear用jboss,weblogic,websphere等,tomcat不支持
      

  2.   

    Tomcat只是servlet容器,只能运行web应用(war包)。打成ear包的是里面是ejb的应用吧,ejb需要部署到ejb容器才能运行,ejb容器有jboss,weblogic,websphere等。
      

  3.   

     ear不能部署到tomcat里面的吧。 不过可以把ear里面的项目文件夹copy到tomcat里的webapps里面 可以运行的
      

  4.   

    不行,tomcat是web容器,只支持war包。而其他的如weblogic websphere jboss才支持ear包。
      

  5.   

    tomcat 能部署war包。不能部署你那什么ear包
      

  6.   

    ear 包必须部署在 J2EE 容器中。Java 中有三种 xAR 文件:JAR/WAR/EARJAR: Java ARchieve
    WAR: Web ARchieve
    EAR: Enterprise ARchieve他们之间的关系以 UML 类图的表现是这样的:Note: 原图位于 Ant in Action, 2ed, p.126, Figure 5.3.
      

  7.   

    从上图可以看出,一个 EAR 文件中含有多个 JAR 和多个 WAR
      

  8.   

    晕死,Ant in Action 上的那图聚合关系的菱形画反方向了,改正一下:
      

  9.   

    Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.A Java EE certified platform for developing and deploying enterprise Java applications, Web applications, and Portals, JBoss Application Server provides the full range of Java EE 5 features as well as extended enterprise services including clustering, caching, and persistence. 
      

  10.   

    tomcat是servlet container,ejb之类的不支持。建议尝试jboss,有开源版本。
      

  11.   

    用了个蠢方法,发现ear包中就有个war包,把这个war包拿出来放到tomcat中,居然能用。
    用BC比较了下发现ear中的war包和自己打的war包基本相同,谢谢各位。结贴了。