facebook

WebProject JARs do not get written to .\config\domain.xml

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #281725 Reply

    Kevin
    Member

    Folks,

    I have a Web App that I have added some JAR files that I have Imported into WebRoot\WEB-INF\lib folder

    – The JAR Files are on the build path via ‘Add JARs’
    – The JARand appear as ‘Referenced Libraries’.
    – RMB clicking to the Properties shows that the JAR are located within, for example, ‘/ProjectCostings/WebRoot/WEB-INF/lib/cewolf.jar’ (there is 5 in total).
    – Deploying the project to Glassfish v2 (Sun’s App 9.1) shows the Jars in

    “C:\Sun\SDK.5_04\domains\domain1\autodeploy\ProjectCostings.war\WEB-INF\lib”

    This is all good, but the “C:\Sun\SDK.5_04\domains\domain1\config\domain.xml’ does not include a libraries attribute. upon deployment it contains:

    <web-module availability-enabled=”false” context-root=”ProjectCostings” directory-deployed=”true” enabled=”true” libraries=”${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war\WEB-INF\lib\cewolf.jar,${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war\WEB-INF\lib\chart.jar,${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war\WEB-INF\lib\jcommon-0.7.0.jar,${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war\WEB-INF\lib\jfreechart-0.9.3.jar,${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war\WEB-INF\lib\webchart.jar” location=”${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war” name=”ProjectCostings” object-type=”user”/>

    I need to be able to deploy with something like the following:

    (Directory structure is different on this production machine)

    <web-module availability-enabled=”false” context-root=”ProjectCosting” directory-deployed=”true” enabled=”true” libraries=”….\WEB-INF\lib\cewolf.jar,…\WEB-INF\lib\chart.jar,…\WEB-INF\lib\jcommon-0.7.0.jar,…\WEB-INF\lib\jfreechart-0.9.3.jar,…\WEB-INF\lib\webchart.jar” location=”c:/ProjectCosting” name=”ProjectCosting” object-type=”user”>

    I am sure that I am missing something. Can somebody advise?

    Thanks,

    Kevin

    *** Date: 
    13 February 2008 18:08:08 o'clock GMT
    
    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710
    
    
    
    
    Eclipse Graphical Editing Framework
    
    Version: 3.3.1.v20070814
    Build id: 20070814-1555
    
    
    Eclipse Platform
    
    Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
    Build id: M20071023-1652
    
    
    Eclipse Java Development Tools
    
    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: I20070625-1500
    
    
    Eclipse Project SDK
    
    Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
    Build id: M20071023-1652
    
    
    Eclipse RCP
    
    Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
    Build id: I20070625-1500
    
    
    Eclipse Plug-in Development Environment
    
    Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
    Build id: M20071023-1652
    
    
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
    -name
    Eclipse
    --launcher.library
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll
    -startup
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -exitdata
    72c_74
    -vm
    C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe
    
    #281749 Reply

    Kevin
    Member

    Folks,

    I mis-quoted the contents of the domail.xml file that MyEclipse emits. this is the entry it writes:

        <web-module availability-enabled="false" context-root="ProjectCostings" directory-deployed="true" enabled="true" location="${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war" name="ProjectCostings" object-type="user"/>
    

    This is without the libraries attribute that would point Glassfish at the JAR files that are defined within MyEcliplse WebRoot\WEB-INF\lib.

    As above
    – the jars appear as Reference Libraries, on the build path, within Project Explorer.
    – They do not display under the lib folder within ‘Project Explorer’
    – The lib folder has no + expantion icon beside it.
    – Once delpoyed the jar can be found within
    ‘C:\Sun\SDK.5_04\domains\domain1\autodeploy\ProjectCostings.war\WEB-INF\lib’

    I hope this is a clearer post!

    Regards,

    Kevin

    *** Date:
    14 February 2008 09:10:48 o’clock GMT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Platform

    Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
    Build id: M20071023-1652

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: I20070625-1500

    Eclipse Project SDK

    Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
    Build id: M20071023-1652

    Eclipse RCP

    Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
    Build id: I20070625-1500

    Eclipse Plug-in Development Environment

    Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
    Build id: M20071023-1652

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll
    -startup
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -exitdata
    de0_74
    -vm
    C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe

    #281750 Reply

    Kevin
    Member

    Folks,

    I mis-quoted the contents of the domail.xml file that MyEclipse emits. this is the entry it writes:

        <web-module availability-enabled="false" context-root="ProjectCostings" directory-deployed="true" enabled="true" location="${com.sun.aas.instanceRoot}/autodeploy/ProjectCostings.war" name="ProjectCostings" object-type="user"/>
    

    This is without the libraries attribute that would point Glassfish at the JAR files that are defined within MyEcliplse WebRoot\WEB-INF\lib.

    As above
    – the jars appear as Reference Libraries, on the build path, within Project Explorer.
    – They do not display under the lib folder within ‘Project Explorer’
    – The lib folder has no + icon beside it.
    – Once delpoyed the jar can be found within
    ‘C:\Sun\SDK.5_04\domains\domain1\autodeploy\ProjectCostings.war\WEB-INF\lib’

    I hope this is a clearer post!

    Regards,

    Kevin

    *** Date:
    14 February 2008 09:10:48 o’clock GMT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Platform

    Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz
    Build id: M20071023-1652

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: I20070625-1500

    Eclipse Project SDK

    Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO
    Build id: M20071023-1652

    Eclipse RCP

    Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS
    Build id: I20070625-1500

    Eclipse Plug-in Development Environment

    Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN
    Build id: M20071023-1652

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll
    -startup
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -exitdata
    de0_74
    -vm
    C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: WebProject JARs do not get written to .\config\domain.xml

You must be logged in to post in the forum log in