有没有谁用过Jetty?请帮忙。分不够再给。

kekey 2003-09-24 09:52:59
多谢,有没有谁用过Jetty?请帮忙。
我下了个程序,说是要在Jetty上运行。我对Java完全陌生,以前一直做C++,在VC环境下开发。
请帮个忙。
...全文
61 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
kekey 2003-09-29
  • 打赏
  • 举报
回复
多谢各位.送分
kekey 2003-09-25
  • 打赏
  • 举报
回复
看不懂。能解释一下吗?
littlecong 2003-09-24
  • 打赏
  • 举报
回复
不应该是可以在jetty上跑的,找个你熟悉的servlet容器就可以了
q_starry 2003-09-24
  • 打赏
  • 举报
回复
http://jetty.mortbay.org/jetty/tut/overview.html#http
jetty时间单快速的sevlet容器,jsp容器是借用tomcat的。
挺好用的也比较简单。源码也比较容易理解
它是自己独立的,jboss只不过是集成了jetty
RobertDeNiro 2003-09-24
  • 打赏
  • 举报
回复
jetty是jboss自带的servlet和jsp容器,为什么不用tomcat,jboss本身的文档就很少,所以建议你用tomcat
kekey 2003-09-24
  • 打赏
  • 举报
回复
在线等
q_starry 2003-09-24
  • 打赏
  • 举报
回复
在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
kekey 2003-09-24
  • 打赏
  • 举报
回复
tomcat我现在正在下载。我大概是6天以前,才听说我这些大概的服务器名字。
我现在只是想看先运行open for business ,看看这个东西是不是我
需要的东西。如果不需要,我就不用花时间去看了。
多谢各位回复。
我的OICQ:191576515
kekey 2003-09-24
  • 打赏
  • 举报
回复
我上午弄了一上午,才看到Jetty的默认页。但问题是,我不知道,我下载程序怎么在Jetty上用。
我下载的是open for business,它默认的是在Jetty下.
有没有谁下载过这个,能给我讲讲。



67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧