<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    呆呆向前沖的blog

      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      78 隨筆 :: 43 文章 :: 5 評論 :: 74 Trackbacks

    1 配置步驟(來自原文)

    This is not a supported or tested configuration. This is just a workaround to get the server running in JBuilder X. JSP debugging will not work with this solution.

    Steps:

    1. Tools | Configure Servers, select the Tomcat 4.1 server and click the Copy button. Change the name to Tomcat 5.0. Next, set the home directory to the root of the Tomcat 5.0 installation, and remove the entry in the Class list and add <TOMCAT_5.0_HOME>/bin/bootstrap.jar.

    2. File | New Project. Set server to Tomcat 5.0 and create a web module. This will trigger generation of the Tomcat 5.0 Servlet library.

    3. Tools | Configure Libraries. Edit the Tomcat 5.0 Servlet library and add the following jars :

    <TOMCAT_5.0_HOME>/common/lib/jsp-api.jar
    <TOMCAT_5.0_HOME>/common/lib/servlet-api.jar
    <TOMCAT_5.0_HOME>/bin/commons-logging-api.jar
    <TOMCAT_5.0_HOME>/common/lib/commons-el.jar

    Make a backup of this library (in your user home directory) as it gets regenerated when you create a new web module/JSP/servlet. Please make sure that you replace the library when you use any of the web gallery wizards.

    4. Set server for the project to Tomcat 5.0.

    5. If a "Tomcat" folder is not present under the project's root directory, create one (e.g. ../jbproject/untitled1/Tomcat). Next, create a directory named "conf" under this directory (e.g. ../jbproject/untitled1/Tomcat/conf). and create an XML file named server8080.xml. Sample server8080.xml is below. Please modify the appBase, docBase, and workDir, etc. according to your web module properties:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <Server debug="0" port="8081" shutdown="SHUTDOWN">
      
    <Service name="Tomcat-Standalone">
        
    <Connector acceptCount="10" className="org.apache.coyote.tomcat5.CoyoteConnector" connectionTimeout="60000" debug="0" maxProcessors="75" minProcessors="5" port="8080"/>
        
    <Engine debug="0" defaultHost="localhost" name="Standalone">
          
    <Host appBase="{項目根目錄}\Tomcat\webapps" debug="0" name="localhost" unpackWARs="true">
            
    <Context debug="0" docBase="{項目根目錄}\{web文件目錄名稱}" path="/sapp" reloadable="true" workDir="{項目根目錄}\Tomcat\work\{web文件目錄名稱}"/>
          
    </Host>
        
    </Engine>
      
    </Service>
    </Server>

     

    6. Start the server in JBuilder. This should use the modified server8080.xml

    You should be able to compile JSPs using this workaround but not debug. You should be able to debug any java code. You will see a number of exceptions for the admin, manager, balancer services which do not get started when you normally run the server in JBuilder. Please ignore these exceptions. The server should function normally without these services.


    2 配置過程中遇到的一些問題及解決辦法
    2.1 出現(xiàn)XML解析異常
          解決方法:為項目引用加上JDom Library引用
    2.2 Servlet引用Library引用有問題
          解決方法:仔細(xì)檢查上述步驟三的是否為Tomcat 5 Servlet配置成功相應(yīng)的jar。
    2.3 一定要把上述步驟5中的配置文件設(shè)置正確,否則出現(xiàn)嚴(yán)重錯誤。

         

     

    posted on 2005-08-10 22:50 呆呆向前沖的blog 閱讀(345) 評論(0)  編輯  收藏 所屬分類: 工作:Java技術(shù)
    主站蜘蛛池模板: 亚洲国产另类久久久精品黑人 | 久久综合亚洲鲁鲁五月天| 成人久久久观看免费毛片| 免费大香伊蕉在人线国产| 人人狠狠综合久久亚洲| 青青草国产免费久久久91| 亚洲综合在线一区二区三区| 无限动漫网在线观看免费| 亚洲人成在久久综合网站| 免费无码精品黄AV电影| 亚洲精品V天堂中文字幕| 国产传媒在线观看视频免费观看| 日韩亚洲人成在线综合| 亚洲成人一区二区| 中文字幕成人免费高清在线| 亚洲一区二区三区自拍公司| 国产精品视频白浆免费视频| 亚洲国产综合专区电影在线| 99爱在线观看免费完整版| 亚洲国产精品yw在线观看| 波多野结衣久久高清免费| 窝窝影视午夜看片免费| 国产亚洲精品精华液| 国产人成免费视频网站| 亚洲AV香蕉一区区二区三区| 亚洲色偷偷狠狠综合网| 久久精品私人影院免费看| 亚洲同性男gay网站在线观看| 永久黄网站色视频免费| 国产精品青草视频免费播放| 91亚洲精品第一综合不卡播放| 在线观看的免费网站| 免费又黄又爽又猛大片午夜 | 亚洲av综合av一区| 国产大片线上免费观看| 免费无码国产在线观国内自拍中文字幕| 亚洲AV无码日韩AV无码导航| 成人性生交大片免费看无遮挡 | 亚洲综合激情另类专区| 国产成人精品免费视频大| 在线亚洲v日韩v|