jetty是jboss自带的servlet和jsp容器,为什么不用tomcat,jboss本身的文档就很少,所以建议你用tomcat

解决方案 »

  1.   

    http://jetty.mortbay.org/jetty/tut/overview.html#http
    jetty时间单快速的sevlet容器,jsp容器是借用tomcat的。
    挺好用的也比较简单。源码也比较容易理解
    它是自己独立的,jboss只不过是集成了jetty
      

  2.   

    不应该是可以在jetty上跑的,找个你熟悉的servlet容器就可以了
      

  3.   

    我上午弄了一上午,才看到Jetty的默认页。但问题是,我不知道,我下载程序怎么在Jetty上用。
    我下载的是open for business,它默认的是在Jetty下.
    有没有谁下载过这个,能给我讲讲。
      

  4.   

    tomcat我现在正在下载。我大概是6天以前,才听说我这些大概的服务器名字。
    我现在只是想看先运行open for business ,看看这个东西是不是我
    需要的东西。如果不需要,我就不用花时间去看了。
    多谢各位回复。
    我的OICQ:191576515
      

  5.   

    在jetty主目录下
    配置一个myserver.xml
    内容如下:
    <?xml version="1.0"  encoding="ISO-8859-1"?>
    <!DOCTYPE Configure PUBLIC 
     "-//Mort Bay Consulting//DTD Configure 1.0//EN" 
     "http://jetty.mortbay.org/configure_1_1.dtd"><!--
    This is a Jetty HTTP admin server configuration file.  This configuration
    uses the generic org.mortbay.util.XmlConfiguration class to call
    the normal org.mortbay.http.HttpServer configuration API from
    within an XML script.The format of this file is described in the configure.dtd file.The API that can be called by this file is described in the
    Javadoc for Jetty.$Id: admin.xml,v 1.23 2002/10/20 16:07:45 gregwilkins Exp $
    --><Configure class="org.mortbay.jetty.Server">
      <Call name="addListener">
        <Arg>
          <New class="org.mortbay.http.SocketListener">
            <Set name="Host">localhost</Set>
            <Set name="Port">8084</Set>  
          </New>
        </Arg>
      </Call>  <Call name="addWebApplication">
            <Arg>/</Arg>
            <Arg>./webapps/myapp/</Arg>
      </Call></Configure>
    ---------------------------
    把你需要运行的项目考到
    ./webapps/myapp/目录下然后
    java -jar start.jar myserver.xml
    用该命令启动jetty