⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 equinox in a servlet container.htm

📁 OSGI 开发指南源代码|实例|入门及相关的文档
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0059)http://www.eclipse.org/equinox/server/http_in_container.php -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Equinox in a Servlet Container</TITLE>
<META content="Equinox Committers" name=author>
<META 
content="equinox, osgi, framework, runtime, incubator, server, servlet, http" 
name=keywords>
<META http-equiv=Content-Type content=text/html;charset=utf-8><LINK 
href="Equinox in a Servlet Container_files/reset-fonts-grids.css" type=text/css 
rel=stylesheet><LINK href="Equinox in a Servlet Container_files/menu.css" 
type=text/css rel=stylesheet><LINK 
href="Equinox in a Servlet Container_files/reset.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox in a Servlet Container_files/layout.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox in a Servlet Container_files/header.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox in a Servlet Container_files/footer.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox in a Servlet Container_files/visual.css" type=text/css 
rel=stylesheet><!--[if IE]><LINK media=screen 
href="Equinox in a Servlet Container_files/ie_style.css" type=text/css 
rel=stylesheet><![endif]--><!--[if IE 6]><LINK media=screen 
href="Equinox in a Servlet Container_files/ie6_style.css" type=text/css 
rel=stylesheet><![endif]--><!-- Dependencies --><!-- Source File --><LINK 
href="Equinox in a Servlet Container_files/equinox.css" type=text/css 
rel=stylesheet>
<META content="MSHTML 6.00.3790.1830" name=GENERATOR></HEAD>
<BODY>
<DIV id=novaWrapper>
<DIV id=clearHeader>
<DIV id=logo><IMG alt=Eclipse.org 
src="Equinox in a Servlet Container_files/eclipse.png"> </DIV>
<DIV id=otherSites>
<DIV id=sites>
<UL id=sitesUL>
  <LI><A href="http://www.eclipseplugincentral.com/"><IMG 
  alt="Eclipse Plugin Central" 
  src="Equinox in a Servlet Container_files/network-wired-bw.png">&nbsp;
  <DIV>Eclipse Plugin Central</DIV></A></LI>
  <LI><A href="http://live.eclipse.org/"><IMG alt="Eclipse Live" 
  src="Equinox in a Servlet Container_files/audio-input-microphone-bw.png">&nbsp;
  <DIV>Eclipse Live</DIV></A></LI>
  <LI><A href="https://bugs.eclipse.org/bugs/"><IMG alt=Bugzilla 
  src="Equinox in a Servlet Container_files/system-search-bw.png">&nbsp;
  <DIV>Bugzilla</DIV></A></LI>
  <LI><A href="http://www.planeteclipse.org/"><IMG alt="Planet Eclipse" 
  src="Equinox in a Servlet Container_files/audio-card.png">&nbsp;
  <DIV>Planet Eclipse</DIV></A></LI>
  <LI><A href="http://wiki.eclipse.org/"><IMG alt="Eclipse Wiki" 
  src="Equinox in a Servlet Container_files/accessories-text-editor-bw.png">&nbsp;
  <DIV>Eclipse Wiki</DIV></A></LI>
  <LI><A href="http://portal.eclipse.org/"><IMG alt="MyFoundation Portal" 
  src="Equinox in a Servlet Container_files/preferences-system-network-proxy-bw.png">
  <DIV>My Foundation Portal</DIV></A></LI></UL></DIV></DIV></DIV>
<DIV id=header>
<DIV id=menu>
<UL>
  <LI><A href="http://www.eclipse.org/" target=_self>Home</A> </LI>
  <LI><A href="http://www.eclipse.org/users/" target=_self>Users</A> </LI>
  <LI><A href="http://www.eclipse.org/membership/" target=_self>Members</A> 
</LI>
  <LI><A href="http://www.eclipse.org/committers/" target=_self>Committers</A> 
  </LI>
  <LI><A href="http://www.eclipse.org/downloads/" target=_self>Downloads</A> 
  </LI>
  <LI><A href="http://www.eclipse.org/resources/" target=_self>Resources</A> 
  </LI>
  <LI><A href="http://www.eclipse.org/projects/" target=_self>Projects</A> </LI>
  <LI><A href="http://www.eclipse.org/org/" target=_self>About Us</A> 
</LI></UL></DIV>
<DIV id=search>
<FORM id=searchbox_017941334893793413703:sqfrdtd112s 
action=http://www.google.com/cse><INPUT type=hidden 
value=017941334893793413703:sqfrdtd112s name=cx> <INPUT id=searchBox size=25 
name=q> <INPUT id=searchButton type=submit value=Search name=sa> </FORM>
<SCRIPT src="Equinox in a Servlet Container_files/brand.htm" 
type=text/javascript></SCRIPT>
</DIV></DIV>
<DIV class=faux id=novaContent><BR style="CLEAR: both; HEIGHT: 1em">
<DIV id=leftcol>
<UL id=leftnav>
  <LI><A href="http://wiki.eclipse.org/Equinox/">Wiki</A> 
  <LI><A href="http://eclipse.org/mail/">Mailing Lists</A> 
  <LI class=separator><A class=separator 
  href="http://www.eclipse.org/equinox/server/index.php">Components<IMG 
  src="Equinox in a Servlet Container_files/separator.png"></A> 
  <LI><A href="http://eclipse.org/equinox/">Equinox</A> 
  <LI><A href="http://eclipse.org/eclipse/incubator">Incubator</A> 
  <LI class=separator><A class=separator>Related<IMG 
  src="Equinox in a Servlet Container_files/separator.png"></A> 
  <LI><A href="http://eclipse.org/rt/">RT</A> 
  <LI><A href="http://eclipse.org/eclipse/">Eclipse</A> 
  <LI><A href="http://eclipse.org/pde/">PDE</A> 
  <LI><A href="http://eclipse.org/rap/">RAP</A> 
  <LI><A href="http://eclipse.org/ecf/">ECF</A> 
  <LI><A href="http://eclipse.org/eclipse/development/">Development</A> 
</LI></UL></DIV>
<DIV id=midcolumn>
<H1>Equinox in a Servlet Container</H1>
<P class=bar>Overview</P>
<P>One of the original objectives for the server-side work was to look at what's 
involved in launching and interacting with various server-side containers. 
Currently, there is actively maintained work in support of embedding in a 
servlet container.</P>
<P class=bar>Bundles</P>
<P>There are four Eclipse projects involved: 
<UL>
  <LI><B>org.eclipse.equinox.servletbridge</B><BR><I>Launches the framework and 
  provides a place for the framework to hook back into the servlet 
  container.</I> 
  <LI><B>org.eclipse.equinox.servletbridge.http</B><BR><I>Hooks back into the 
  servlet bridge and proxies requests through to the servlet container to 
  provide an OSGi Http Service.</I> 
  <LI><B>org.eclipse.equinox.http.servlet</B><BR><I>Provides the 
  HttpServiceServlet used by http.servletbridge that when initialized registers 
  an OSGi Http Service.</I> 
  <LI><B>[optional] org.eclipse.equinox.http.registry</B><BR><I>Provides 
  servlet, resource, and httpcontext extension points based on an OSGi 
  HttpService.</I> </LI></UL>
<P></P>
<P>These four project can be downloaded from the equinox CVS depot. <BR>(e.g. 
cvsroot/eclipse/org.eclipse.equinox.servletbridge)</P>
<P>To develop web applications you'll also need the <B>javax.servlet</B> bundle 
from the Orbit CVS depot. <BR>(e.g. 
cvsroot/tools/org.eclipse.orbit/javax.servlet [branch v2_3 or v2_4])] </P>
<P><I>[Suggested]</I> If you're using Eclipse it might be far simpler to 
"import" a team project set with everything needed. (<A 
href="http://www.eclipse.org/equinox/server/downloads/servletbridge-anon.psf">regular</A>) 
or (<A 
href="http://www.eclipse.org/equinox/server/downloads/servletbridge-anon-proxy.psf">proxied</A>)</P>
<P><B>Additional Notes: </B>
<UL style="LIST-STYLE-TYPE: none"><I>
  <LI>To build and use these projects you'll need to be running the Eclipse SDK 
  3.2 or later. </LI></UL></I>
<P></P>
<P class=bar>Quickstart</P>
<P>This set of instructions should get you up and running in a just a few 
minutes. 
<OL>
  <LI>Install a servlet container (e.g. <A 
  href="http://tomcat.apache.org/">Tomcat</A>, <A 
  href="http://jetty.mortbay.org/jetty/">Jetty</A>, or whatever is handy) 
  <LI>Download and deploy this pre-built web application archive. (<B><A 
  href="http://www.eclipse.org/equinox/server/downloads/bridge.war">bridge.war</A></B>) 
  <I>[built 2007.04.02]</I> 
  <LI>Start the web container and verify things are installed correctly by going 
  to "/sp_test". (e.g. http://localhost:8080/bridge/sp_test) </LI></OL>At this 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -