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

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

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

    隨筆 - 117  文章 - 72  trackbacks - 0

    聲明:原創(chuàng)作品(標(biāo)有[原]字樣)轉(zhuǎn)載時(shí)請(qǐng)注明出處,謝謝。

    常用鏈接

    常用設(shè)置
    常用軟件
    常用命令
     

    訂閱

    訂閱

    留言簿(7)

    隨筆分類(lèi)(130)

    隨筆檔案(123)

    搜索

    •  

    積分與排名

    • 積分 - 156645
    • 排名 - 390

    最新評(píng)論

    [標(biāo)題]:[轉(zhuǎn)]Unable to add JBoss 5.0 as server
    [時(shí)間]:2009-5-13
    [摘要]:Eclipse中添加JBoss出錯(cuò)
    [關(guān)鍵字]:Application Server,runtime enviroment,EJB,EJB3 , J2EE
    [環(huán)境]:jboss-5.0.1.GA、Eclipse for Java EE:version3.4.1
    [作者]:Winty (wintys@gmail.com) http://www.tkk7.com/wintys

    [錯(cuò)誤]:
        在Eclipse中添加JBoss runtime時(shí)出現(xiàn)錯(cuò)誤提示:
    Missing classpath entry F:\JBoss\server\default\lib\mail.jar

    [原因]:
        這個(gè)問(wèn)題在eclipse的bug中心可以找到 https://bugs.eclipse.org/bugs/show_bug.cgi?id=257823

        原因是JBoss 5.0 GA release的目錄結(jié)構(gòu)和之前不一樣了,而eclipse的對(duì)應(yīng)插件沒(méi)有相應(yīng)的更改 。
       
    [解決]:
        找到j(luò)boss5.serverdef:
    F:\EclipseForJavaEE\plugins\org.eclipse.jst.server.generic.jboss_1.5.205.v200805140145\servers\jboss5.serverdef

    將其內(nèi)容替換為:
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:ServerRuntime
        xmlns:tns="http://eclipse.org/jst/server/generic/ServerTypeDefinition"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://eclipse.org/jst/server/generic/ServerTypeDefinition ServerTypeDefinitionSchema.xsd "
        name="JBOSS 5.0" version="v5.0">
    <property id="serverRootDirectory"
        label="%ApplicationServerDirectory"
        type="directory"
        context="runtime"
        default="/your_server_root/appservers/jboss" />
    <property id="serverAddress"
        label="%serverAddress"
        type="string"
        context="server"
        default="127.0.0.1" />
    <property id="port"
        label="%serverPort"
        type="string"
        context="server"
        default="8080" />
    <property id="jndiPort"
        label="%jndiPort"
        type="string"
        context="server"
        default="1099" />   
    <property id="serverConfig"
        label="%jboss323serverConfig"
        type="combo"
        context="server"
        default="default,all,minimal,other - type your own here" />

        <port>
            <no>${port}</no>
            <name>Http</name>
            <protocol>http</protocol>
        </port>

        <module>
            <type>jst.web</type>
            <publishDir>${serverRootDirectory}/server/${serverConfig}/deploy</publishDir>
            <publisherReference>org.eclipse.jst.server.generic.antpublisher</publisherReference>
        </module>
        <module>
            <type>jst.ejb</type>
            <publishDir>${serverRootDirectory}/server/${serverConfig}/deploy</publishDir>
            <publisherReference>org.eclipse.jst.server.generic.antpublisher</publisherReference>
        </module>
        <module>
            <type>jst.ear</type>
            <publishDir>${serverRootDirectory}/server/${serverConfig}/deploy</publishDir>
            <publisherReference>org.eclipse.jst.server.generic.antpublisher</publisherReference>
        </module>


        <project>
            <classpathReference>jboss.project</classpathReference>
        </project>
       
        <start>
            <mainClass>org.jboss.Main</mainClass>
            <workingDirectory>${serverRootDirectory}/bin</workingDirectory>
            <programArguments>-c ${serverConfig}</programArguments>
            <vmParameters>-Dprogram.name=run.bat -Xms128m -Xmx512m  -XX:MaxPermSize=256m</vmParameters>
            <classpathReference>jboss</classpathReference>
        </start>

        <stop>
            <mainClass>org.jboss.Shutdown</mainClass>
            <workingDirectory>${serverRootDirectory}/bin</workingDirectory>
            <programArguments>-S</programArguments>
            <vmParameters>-Djboss.boot.loader.name=shutdown.bat</vmParameters>
            <classpathReference>jboss.shutdown</classpathReference>
        </stop>
        <publisher id="org.eclipse.jst.server.generic.antpublisher">
            <publisherdata>
                <dataname>build.file</dataname>
                <datavalue>/buildfiles/jboss323.xml</datavalue>
            </publisherdata>
            <publisherdata>
                <dataname>target.publish.jst.web</dataname>
                <datavalue>deploy.j2ee.web</datavalue>
            </publisherdata>
            <publisherdata>
                <dataname>target.publish.jst.ejb</dataname>
                <datavalue>deploy.j2ee.ejb</datavalue>
            </publisherdata>
            <publisherdata>
                <dataname>target.unpublish.jst.web</dataname>
                <datavalue>undeploy.j2ee.web</datavalue>
            </publisherdata>
            <publisherdata>
                <dataname>target.unpublish.jst.ejb</dataname>
                <datavalue>undeploy.j2ee.ejb</datavalue>
            </publisherdata>       
            <publisherdata>
                <dataname>target.publish.jst.ear</dataname>
                <datavalue>deploy.j2ee.ear</datavalue>
            </publisherdata>
            <publisherdata>
                <dataname>target.unpublish.jst.ear</dataname>
                <datavalue>undeploy.j2ee.ear</datavalue>
            </publisherdata>               
        </publisher>

        <classpath id="jboss" >
            <archive path="${serverRootDirectory}/bin/run.jar" />
        </classpath>
        <classpath id="jboss.shutdown" >
            <archive path="${serverRootDirectory}/bin/shutdown.jar" />
        </classpath>

        <classpath id="jboss.project" >
           
               
            <fileset dir="${serverRootDirectory}">
               <include name="client/*.jar" />
               <include name="server/default/lib/*.jar" />
              
               <!--Old and wrong reference:
               <include name="server/default/deployers/jbossweb.deployer/jsf-libs/*.jar" />
               This is the right one in JBoss 5CR2 and GA:-->
               <include name="server/default/deploy/jbossweb.sar/jsf-libs/*.jar" />

               <!-- This will be ignored if EJB3 is not there 5.0 -->
               <include name="lib/*.jar" />
               <include name="server/default/deployers/jbossweb.deployer/*.jar" />
               <include name="server/default/deployers/jboss-aop-jboss5.deployer/*.jar" />
               <!-- Not existent in CR2 and GA
               <include name="server/default/deployers/ejb3.deployer/jboss-annotations-ejb3.jar" />-->
              
               <!--New in 5.0GA: if not included, e.g. "jsp-api.jar" (for Tag libraries) is missing-->
               <include name="common/lib/*.jar" />
              
               <!--This one is useful for class "org.jboss.web.tomcat.security.login.WebAuthentication": -->
               <include name="server/default/deploy/jbossweb.sar/*.jar" />
              
               <!-- for validation to work this library is defined as an archive -->
               <!-- moved to "common/lib" in JBoss5 GA, so pick a library from "lib", which is present in both versions:
               <exclude name="server/default/lib/mail.jar" />-->
               <exclude name="lib/jboss-kernel.jar" />
            </fileset>
           
            <!-- leave one generic jar as an archive so that validation works -->
            <!-- moved to "common/lib" in JBoss5 GA, so pick a library from "lib", which is present in both versions:
            <archive path="${serverRootDirectory}/server/default/lib/mail.jar" />-->
            <archive path="${serverRootDirectory}/lib/jboss-kernel.jar" />
      
        </classpath>
        <jndiConnection>
            <providerUrl>jnp://${serverAddress}:${jndiPort}</providerUrl>
            <initialContextFactory>org.jnp.interfaces.NamingContextFactory</initialContextFactory>
            <jndiProperty>
                <name></name>
                <value></value>
            </jndiProperty>
        </jndiConnection>
    </tns:ServerRuntime>

    [參考資料]:
    [1] eclipse中不能添加JBoss 5.0作為Server:http://www.tkk7.com/fireaap/archive/2009/04/19/266441.html

    [附件]:
    jboss5.serverdef
    posted on 2009-05-14 20:36 天堂露珠 閱讀(1257) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Error
    主站蜘蛛池模板: 国产美女做a免费视频软件| 亚洲色图黄色小说| 卡1卡2卡3卡4卡5免费视频| 免费黄色电影在线观看| 免费一级全黄少妇性色生活片| 亚洲伊人久久大香线蕉结合| 亚洲AV无码一区二区乱孑伦AS | 亚洲色图在线观看| 久久影院亚洲一区| 免费人妻av无码专区| 免费黄网在线观看| 999国内精品永久免费视频| 久久黄色免费网站| 免费人成激情视频在线观看冫| 午夜在线免费视频| 国产成人+综合亚洲+天堂| 亚洲日韩AV一区二区三区中文| 亚洲精品在线播放视频| 久久久久亚洲精品影视| 亚洲精品国产品国语在线| 久久影视综合亚洲| 中文字幕亚洲一区二区三区| 国产黄色一级毛片亚洲黄片大全| 免费一级毛片免费播放| 免费人成网站在线高清| 性做久久久久免费看| 日本免费福利视频| 国产一级理论免费版| 国产精品久久久久影院免费| 国产无遮挡吃胸膜奶免费看 | 亚洲精品无码中文久久字幕| 亚洲一区动漫卡通在线播放| 亚洲人成影院77777| 亚洲视频一区二区三区四区| 狠狠色香婷婷久久亚洲精品| 亚洲中文无码mv| 国产精品亚洲精品日韩电影| 成年免费大片黄在线观看com| 日本免费精品一区二区三区 | 亚洲不卡无码av中文字幕| 亚洲精品人成无码中文毛片 |