Build process for ejb iiop example

Hello and thank you in advance,
I'm trying to build the examples under iiop examples for WL6.1 (Win NT), and the
'ant' build xml file contains a tag line <createidl ... which causes the build
to fail. I've been unable to find anything on this tag.
Am I supposed to replace this line with some other code? If so, then can anyone
help with the code.
Thanks!
Sean

C:\bea\wlserver6.1\lib>dir weblogic.jar
Volume in drive C is Main
Volume Serial Number is 10C7-F019
Directory of C:\bea\wlserver6.1\lib
10/22/2001 09:26p 25,158,674 weblogic.jar
1 File(s) 25,158,674 bytes
0 Dir(s) 5,713,345,024 bytes free
C:\bea\wlserver6.1\lib>jar tvf weblogic.jar | grep taskdefs | grep iiop
0 Tue Sep 18 14:43:22 CDT 2001 weblogic/ant/taskdefs/iiop/
1738 Tue Sep 18 14:43:22 CDT 2001 weblogic/ant/taskdefs/iiop/CppIdlSetup.class
Hope this helps,
Robert
Sean Cloutier wrote:
Thank you for the reply Andy, however I'm unable to find the 'iiop' package under
the taskdefs package. I'm looking in the weblogic.jar file included with WLS6.1
(WinNT) service pack 1.
Is it possible that this is somewhere other than the weblogic.jar file? If so,
then where?
thanks again,
Sean
Andy Piper <[email protected]> wrote:
"Sean Cloutier" <[email protected]> writes:
I think it should be
weblogic.ant.taskdefs.iiop.CppIdlSetup
andy
Andy Piper <[email protected]> wrote:
Robert Patrick <[email protected]> writes:
Of course Andy really meant to say weblogic.jar since there is no
weblogicaux.jar
file
in WLS 6.xOf course I did ;-)
andy
--Ok, I guess I'm a little confused now. You say task, which I'm assumingyou mean
would be in the taskdef package of 'ant' which is included in the weblogic.jar
file. I looked through the weblogic.jar file and never found any'task' which
is called 'createidl'.
I'm I confused or missing something?
Thanks again for your help!
Sean

Similar Messages

  • Startup class/process for EJB application

    Hi,
    I have an EJB module deployed on WebLogic8.1. My requirement is I would like to have a startup/shutdown class which is called when the EJB application is deployed. I have made some research and have found I can write startup/shutdown classes when for the server life cycle or for application life cycle events. Can anyone tell me write/deploy a startup/shutdown class for the EJB module life cycle.
    Thanks,
    Faizulla

    Hi,
    For Server life cycle events you can write server startup/shutdown classes.(You can see it from the console application)
    For application life cyccle events, please go through:
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1007582
    You can specify it <listener> part of application.xml.
    This is impossible in J2EE standard. But perhaps this can be achieved by some app. server specific extensionYes,in earlier versiobns there was weblogic-ejb-extensions.xml file in which you can specify startup/shutdown class, like:
    <!DOCTYPE weblogic-ejb-extensions SYSTEM "weblogic-ejb-extensions.dtd" >
    <weblogic-ejb-extensions>
    <module-initializer-classs>
    <moduleinitializer-class-name>com.dcons.iss.ejb.MUTBStatusObject</moduleinitializer-class-name>
    </module-initializer-class>
    </weblogic-ejb-extensions>
    But it's no longer in use.
    I am still findind out a way for my EJB module initializer class.
    Regards,
    Faizulla

  • Corrected build.xml for jta sample

    When building the jta example using ant I discovered several problems
    with use of environment variables
    APPLICATIONS/EX_WEBAPP_CLASSES/CLIENT_CLASSES requiring explicit
    declaration of "environment="
    Also an incorrect source directory for the client pointed at the
    clustered ejb example source.
    Here is a corrected build.xml for the jta example.
    <project name="jta-jmsjdbc" default="all" basedir=".">
    <!-- set global properties for this build -->
    <property file="../../../examples.properties"/>
    <property name="src" value="."/>
    <property name="APPLICATIONS" environment="env"/>
    <property name="EX_WEBAPP_CLASSES" environment="env"/>
    <property name="CLIENT_CLASSES" environment="env"/>
    <property name="build" value="${src}/build"/>
    <property name="dist" value="${src}/dist"/>
    <target name="all" depends="clean, init, compile_ejb, jar_ejb, ejbc,
    compile_webapp, compile_client"/>
    <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile
    and copy the deployment descriptors into it-->
    <mkdir dir="${build}"/>
    <mkdir dir="${build}/META-INF"/>
    <mkdir dir="${dist}"/>
    <copy todir="${build}/META-INF">
    <fileset dir="${src}">
    <include name="*.xml"/>
    </fileset>
    </copy>
    </target>
    <!-- Compile EJB classes into the build directory (jar preparation)
    -->
    <target name="compile_ejb">
    <javac srcdir="${src}" destdir="${build}"
    includes="ReceiveInTx.java, ReceiveInTxHome.java,
    ReceiveInTxBean.java"/>
    </target>
    <!-- Make a standard ejb jar file, including XML deployment
    descriptors -->
    <target name="jar_ejb" depends="compile_ejb">
    <jar jarfile="${dist}/std_jta_ejb_jmsjdbc.jar"
    basedir="${build}">
    </jar>
    </target>
    <!-- Run ejbc to create the deployable jar file -->
    <target name="ejbc" depends="jar_ejb">
    <java classname="weblogic.ejbc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${dist}/std_jta_ejb_jmsjdbc.jar
    ${env.APPLICATIONS}/jta_ejb_jmsjdbc.jar"/>
    <classpath>
    <pathelement
    path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar"/>
    </classpath>
    </java>
    </target>
    <!-- Compile handler class into WEB-INF/classes directory of the
    Examples Web
    App. This ensures that the EJB class can be accessed by JSPs and
    servlets of
    the Examples Web App-->
    <target name="compile_webapp">
    <javac srcdir="${src}"
    destdir="${env.EX_WEBAPP_CLASSES}"
    includes="ReceiveInTx.java, ReceiveInTxHome.java"
    />
    </target>
    <!-- Compile Client class into the clientclasses directory -->
    <target name="compile_client">
    <!-- <javac srcdir="../../cluster/ejb" -->
    <javac srcdir="${src}"
    destdir="${env.CLIENT_CLASSES}"
    includes="ReceiveInTx.java, ReceiveInTxHome.java, Client.java"
    />
    </target>
    <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    </target>
    </project>

    Hi,
    I used dom parser and i think using that will solve your problem.....Create desired tags...establish a connection and retrive data into the tags...This would solve your problem.
    Other way is the database that you are using must be having some option to generate an xml from a table..that option will be more easy and useful..
    If u are to use a dom parser..so tell me...
    Regards
    Monali

  • Calling the packager as part of the automated build process

    Hi,
    Is it possible to call the iPhone packager via command line or ANT script? We are developing a pure ActionScript application, and as part of the build process for this app, we'd like to call the packager to build the IPA file.
    Is this possible?
    Stephen

    Is possible.
    This is a piece from my ant build the variables must be configured properly
        <target name="test_package_iphone" depends="-chkName, -iPhonePWD" description="packageApp">
            <apply executable="${PFI_BAT}" parallel="true" dir="${DEBUG_DIR}" relative="true">
                <arg value="-package"/>
                <arg value="-target"/>
                <arg value="ipa-test"/>
                <arg value="-provisioning-profile"/>
                <arg value="${IPHONE_PROVISIONING}"/>
                <arg value="-storetype"/>
                <arg value="pkcs12"/>
                <arg value="-keystore"/>
                <arg value="${IPHONE_KEYSTORE}"/>
                <arg value="-storepass"/>
                <arg value="${IPHONE_PASSWORD}"/>
                <arg value="${app.name}.ipa"/>
                <arg value="${app.name}-app.xml"/>
                <arg value="${app.name}.swf"/>
                <arg value="-C"/>
                <arg value="${ASSETS_DIR}"/>
                <srcfile/>
                <fileset dir="${ASSETS_DIR}"/>
            </apply>
        </target>

  • [svn:osmf:] 16068: Update @includeExample to add symbolic "examples" relative path (that is expanded by the build process).

    Revision: 16068
    Revision: 16068
    Author:   [email protected]
    Date:     2010-05-12 11:17:11 -0700 (Wed, 12 May 2010)
    Log Message:
    Update @includeExample to add symbolic "examples" relative path (that is expanded by the build process).
    Also added -noswf option as we are not compiling the example into a swf for the asdocs.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayerSprite.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Rmi-iiop client for EJBs

    [att1.html]

    I've been fighting the same issues over the past few days. The answer you gave still left me
    wondering which tool to use. Should it be rmi -iiop or ejbc -iiop? I get the idl files on
    WLS 5.1 generated but then I can't get the idlj to execute properly on the generated
    HelloHome.idl and Hello.idl.
    Wayne
    Andy Piper wrote:
    Abhishek <[email protected]> writes:
    But How do I write Rmi - iiop clients for EJBs.
    when I try to generate the IDL for my EJB by running the weblogic.rmic utility I get an
    error that none of my classes ( Remote, Home and Impl ) implement the remote
    interface. Which is true as EJBs do not directly implement the remote interface.You may be able to get this to work with WLS6.0SP1 and the
    -idlMethodSignatures flag. Take a look at the methods target in
    examples/rmi_iiop/ejb/generic_idl or at
    examples/rmi_iiop/ejb/simplified_idl. This all works fine in
    Silversword.
    andy

  • Log File for Build Process?

    Is there a log file that gets written to while a project is
    getting built to a particular target? I'm testing my X5 project
    inside RH 6 Trial Version, and it's crashing about midway through
    the Updating Files step of building a HTML Help (CHM) file.
    The sample projects that come with RH 6 compile fine, so I'm
    guessing there's a problem with my project it doesn't like; I'm
    trying to track down what exactly.
    A log file would be much faster than my current approach
    which is to mark folders as Print only until it builds without
    error, then slowly removing the Print only conditional and
    rebuilding to find the problem...
    I know a log is created during the build process in the
    Output tab inside RH, but when the app crashes I can't get to it to
    view it. Is this information stored externally somewhere?

    I looked in the temporary output folder inside the
    appropriate subdirectory in !SSL! but it looks like all the files
    are there. In any case, I'm fairly certain I'm experiencing the
    same problem Peter mentioned in his post about the conditional
    build tags and merged tables. I did a build without any conditional
    build tags and things worked fine. With conditional build tags I
    still get the crash.
    Conditional
    Build Tags and Merged Table Cells Bug

  • I know my Apple ID (an email and pass code) good,but really I forgot answers the security questions (2-questions) which verify my identity.I can not complete any purchase process for iTunes from another device for example (my personal computer)

    Hi,
    I know my Apple ID ( an email and pass code ) good, really
    I forgot answers the security questions,which verify my identity,
    So it is difficult to complete the purchase process for iTunes Store
    On my PC-FUJI'S,I use Windows Vista home premium as Operating
    System,so reset my secure questions and the answers of course,
    If you please.
    With my respect,
    A signature,
    Mahmoud Fouad El Deeb.

    Hello Mahmoud,
    The steps in the articles below will guide you in setting up your rescue email address and resetting your security questions:
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    If you continue to have issues, please contact our Account Security Team as outlined in this article:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • WL6.1 GA- IIOP examples question

    Hi,
    I have a couple of questions about the WL6.1GA - IIOP example. First when attempting
    to build the example, the ant script halts with the following error:
    compile_client:
    Unable to create client.idl.
    BUILD FAILED
    E:\bea\wlserver6.1>>\samples\examples\iiop\ejb\stateless\cppclient\build.xml:41:null
    On a closer look at the build.xml, the halt occurs with the WL defined ant class:"weblogic.ant.taskdefs.iiop.CppIdlSetup"
    My first question, has anybody else been able to build the example as supplied
    ? Is there any massaging required ?
    As I understand it, the previous step in the build (ejbc) generates the required
    idl interfaces (Trader.idl, TradeResult.idl, TraderHome.idl) for accessing the
    ejb.
    So I'm very curious in seeing what the WL defined ant task is doing and defining
    for ant generated idl (client.idl). Is the src for the WL defined ant task available
    anywhere ?
    Thanks in advance.
    Wayne

    Hi Andy,
    The env. vars were set. Thanks for the
    explanation, I was curious as to the latter :)
    Wayne
    Andy Piper <[email protected]> wrote:
    "Wayne" <[email protected]> writes:
    I have a couple of questions about the WL6.1GA - IIOP example. Firstwhen attempting
    to build the example, the ant script halts with the following error:
    compile_client:
    Unable to create client.idl.
    BUILD FAILED
    E:\bea\wlserver6.1>>\samples\examples\iiop\ejb\stateless\cppclient\build.xml:41:null
    On a closer look at the build.xml, the halt occurs with the WL definedant class:"weblogic.ant.taskdefs.iiop.CppIdlSetup"
    My first question, has anybody else been able to build the exampleas supplied
    ? Is there any massaging required ? This task should be in weblogicaux.jar, this was supposed to have been
    fixed just before release. I will check. Did you set the examples
    environment before running ant?>
    As I understand it, the previous step in the build (ejbc) generatesthe required
    idl interfaces (Trader.idl, TradeResult.idl, TraderHome.idl) for accessingthe
    ejb.Correct, but bugs in Visibroker make it necessary to pre-parse the idl
    into a single file. Inprise have confirmed this as a defect and may
    fix this for the next release of Visibroker at the end of the year.
    So I'm very curious in seeing what the WL defined ant task is doingand defining
    for ant generated idl (client.idl). Is the src for the WL defined anttask available
    anywhere ?All it does is pre-process the idl, e.g. cl -E -Iidl TraderHome.idl >
    client.idl.
    andy

  • Worskhop build process

    Hello,
    I'm trying to figure out the workshop build process. Each time I right
    click on my portal web project and do a "build" it seems to do a
    "rebuild all" (like in JBuilder) instead of a "build modified source".
    Am I missing some setting here, or is this the way it works?
    Also, it seems to rebuild the following JCX's all the time:
    com\bea\p13n\controls\login\UserLoginControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\profile\GroupProfileManager.jcx
    com\bea\p13n\controls\p13controls.jcx
    com\bea\p13n\controls\createUser\CreateUserControl.jcx
    com\bea\p13n\controls\ejb\property\PropertySetManager.jcx
    com\bea\p13n\controls\events\generic\GenericEventControl.jcx
    com\bea\p13n\controls\events\standard\ClickContentEventControl.jcx
    com\bea\p13n\controls\profile\UserProfileControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\UserManager.jcx
    com\bea\p13n\controls\events\standard\RuleEventControl.jcx
    com\bea\p13n\controls\ejb\property\EntityPropertyManager.jcx
    com\bea\p13n\controls\userInfoQuery\UserInfoControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\profile\UserProfileManager.jcx
    com\bea\p13n\controls\ejb\events\EventService.jcx
    com\bea\p13n\controls\events\standard\DisplayContentEventControl.jcx
    com\bea\p13n\controls\events\standard\SessionLoginEventControl.jcx
    com\bea\p13n\controls\CompositeControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\RealmConfiguration.jcx
    com\bea\control\TimerControl.jcx
    com\bea\p13n\controls\events\standard\UserRegistrationEventControl.jcx
    com\bea\wlw\runtime\core\control\jmscontrol\MDBListener.jcx
    com\bea\wlw\runtime\core\control\EventControl.jcx
    Controls\SMSSender.jcx
    com\bea\p13n\controls\ejb\usermgmt\GroupManager.jcx
    com\bea\p13n\controls\events\generic\GenericTrackingControl.jcx
    I can't believe I'm using ALL of these - one or two yes, like the Group
    Manager ctrl, SMS sender ctrl, but not the rest (OK, there are
    dependencies..but still it would be nice to know what they are..)
    Please advice!
    BR,
    deepak

    Of course you have to build any project if you need to compile/link all
    the source inside it, compile the JSP's and update the deployment right?
    For example, java projects and such...
    Leonardo Contreras wrote:
    You don´t need to build a Portal project, the bulding can help you to resolve some
    things like missing libraries.
    Portal Web projects and Web Projects include all of system java controls, that´s
    the reason of this list of controls.
    Deepak Natarajan <[email protected]> wrote:
    Hello,
    I'm trying to figure out the workshop build process. Each time I right
    click on my portal web project and do a "build" it seems to do a
    "rebuild all" (like in JBuilder) instead of a "build modified source".
    Am I missing some setting here, or is this the way it works?
    Also, it seems to rebuild the following JCX's all the time:
    com\bea\p13n\controls\login\UserLoginControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\profile\GroupProfileManager.jcx
    com\bea\p13n\controls\p13controls.jcx
    com\bea\p13n\controls\createUser\CreateUserControl.jcx
    com\bea\p13n\controls\ejb\property\PropertySetManager.jcx
    com\bea\p13n\controls\events\generic\GenericEventControl.jcx
    com\bea\p13n\controls\events\standard\ClickContentEventControl.jcx
    com\bea\p13n\controls\profile\UserProfileControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\UserManager.jcx
    com\bea\p13n\controls\events\standard\RuleEventControl.jcx
    com\bea\p13n\controls\ejb\property\EntityPropertyManager.jcx
    com\bea\p13n\controls\userInfoQuery\UserInfoControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\profile\UserProfileManager.jcx
    com\bea\p13n\controls\ejb\events\EventService.jcx
    com\bea\p13n\controls\events\standard\DisplayContentEventControl.jcx
    com\bea\p13n\controls\events\standard\SessionLoginEventControl.jcx
    com\bea\p13n\controls\CompositeControl.jcx
    com\bea\p13n\controls\ejb\usermgmt\RealmConfiguration.jcx
    com\bea\control\TimerControl.jcx
    com\bea\p13n\controls\events\standard\UserRegistrationEventControl.jcx
    com\bea\wlw\runtime\core\control\jmscontrol\MDBListener.jcx
    com\bea\wlw\runtime\core\control\EventControl.jcx
    Controls\SMSSender.jcx
    com\bea\p13n\controls\ejb\usermgmt\GroupManager.jcx
    com\bea\p13n\controls\events\generic\GenericTrackingControl.jcx
    I can't believe I'm using ALL of these - one or two yes, like the Group
    Manager ctrl, SMS sender ctrl, but not the rest (OK, there are
    dependencies..but still it would be nice to know what they are..)
    Please advice!
    BR,
    deepak

  • Properties Files during the build process.

    Hi everyone, I have a question about files inside the src directory and how they relate to files in the /WEB-INF/classess directory.
    From what I've read, eclipse copies the files inside "src" into "WEB-INF/classes" when building a project.
    Inside my "src" folder I have a few properties files for my application, let's call them qe.properties, production.properties and final.properties
    When I build my app (using Ant) I currently copy qe.properties into final.properties when building my application in QE. And production.properties into final.properties when building my application for production.
    Here is the command:
    <copy file = "src/qe.properties" tofile="src/final.properties" overwrite="true" />
    Every once in a while a production build will have a qe properties file and vice versa (a qe build will have a production properties files).
    I tried changing this using a symbolic link but I ran into the same issue, and worst yet, the file that get's copied inot "WEB-INF/classess" is not a symbolic link it simply contains the contents of the symbolic link.
    How can I get around this issue?

    I replaced the files with new files they are in the same location but they have different names.  It still does not work.
    It's very frusterating.
    Everytime I make ANY changes to my original files I need to rebuild in encore.  For example, I have a dynamic link and I adjust a transition and then resave.  I have to build in encore from scratch (it will not build).
    When encore works if I just save my encore file, close and then reopen it does not work anymore.
    If I render the files and change anything in encore it does not work.
    BTW the preview works perfectly.  It just freezes during the Build Process.
    I also tried to build an image and this did not work (it froze too).
    I'm assuming CS5 works with intel i7 and windows 7 and 8GB of Ram per the Adobe requirements.
    Any other ideas (other than leave every instance of Encore up and never close the program down)?
    Jonathan

  • Error building my first EJB

    I am trying to build my first EJB. However, everytime I giev the "ant build" command, I get an erro saying "Validation Problems Were Found". This is the only error i get and Not any syntax errors. Does this have something to do with my remote, local and Home interfaces, the Bean Class or Client, OR is it my build. xml file that has some error in it.

    Looks like your ejb-jar.xml is not correct (check the element
    <enterprise-beans>). You may post this file so that I can take a look at it.
    --Sathish
    <Waqar Ahmad> wrote in message news:[email protected]...
    Thanks for replying. Here is the build.xml file and the error output that
    I get when I execute the ant command. My BEAN here is called
    <b>SecuirtyEJB.java</b> and all the files including this BEAN are in a
    foler named SecuritySystem. Now, here is the build.xml file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="ejb20-basic-SecuritySystem" default="all" basedir=".">
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property file="../../../../../examples.properties"/>
    <property name="build.compiler" value="${compiler}"/>
    <property name="source" value="${basedir}"/>
    <property name="bean.ear" value="ejb20StatelessEar"/>
    <property name="dist" value="${source}/${bean.ear}"/>
    <property name="ejb.name" value="ejb20StatelessEjb"/>
    <property name="package"
    value="examples/ejb/ejb20/basic/SecuritySystem"/>
    <property name="ejb.client.jar"
    value="ejb20_basic_SecuritySystem_client.jar"/>
    <target name="all" depends="build, deploy"/>
    <target name="build" depends="clean,
    prepare.example,
    build.ear,
    compile.client"/>
    <target name="clean">
    <delete dir="${dist}" failonerror="false"/>
    <delete dir="${examples.build.dir}/${bean.ear}" failonerror="false"/>
    <delete dir="${client.classes.dir}/${package}" failonerror="false"/>
    <delete dir="${client.classes.dir}/${ejb.client.jar}"
    failonerror="false"/>
    </target>
    <!-- prepare directories for split directory deployment -->
    <target name="prepare.example"
    description="Prepare the example for compilation and deployment.">
    <mkdir dir="${dist}"/>
    <mkdir dir="${dist}/META-INF"/>
    <mkdir dir="${dist}/${ejb.name}"/>
    <mkdir dir="${dist}/${ejb.name}/${package}"/>
    <antcall target="copy.files"/>
    </target>
    <!-- copy files for split directory deployment -->
    <target name="copy.files"
    description="Copy example files to distribution structure.">
    <copy todir="${dist}/META-INF">
    <fileset dir="${source}">
    <include name="*application.xml"/>
    </fileset>
    </copy>
    <copy todir="${dist}/${ejb.name}/${package}">
    <fileset dir="${source}">
    <include name="*.java"/>
    <exclude name="Client.java"/>
    </fileset>
    </copy>
    <!-- rename bean to .ejb so that wlcompile
    can recognize its to be EJBGen'd -->
    <copy file="${source}/SecurityEJB.java"
    tofile="${dist}/${ejb.name}/${package}/SecurityEJB.ejb"/>
    </target>
    <!-- compile EAR for split directory deployment -->
    <target name="build.ear">
    <wlcompile srcdir="${dist}" destdir="${examples.build.dir}/${bean.ear}"
    includes="${ejb.name}">
    <ejbgen source="${sourceVersion}"/>
    <javac deprecation="${deprecation}" />
    <javac debug="${debug}" />
    </wlcompile>
    <wlappc source="${examples.build.dir}/${bean.ear}"
    debug="${debug}" deprecation="${deprecation}"/>
    </target>
    <!-- deploy split directory application -->
    <target name="deploy"
    description="Deploy ear to WebLogic on ${wls.hostname}:${wls.port}.">
    <wldeploy
    user="${wls.username}"
    password="${wls.password}"
    adminurl="t3://${wls.hostname}:${wls.port}"
    debug="true"
    action="deploy"
    source="${examples.build.dir}/${bean.ear}"
    failonerror="${failondeploy}"/>
    </target>
    <!-- package the application a J2EE formatted exploded ear -->
    <target name="package.exploded.ear">
    <wlpackage srcdir="${dist}" destdir="${examples.build.dir}/${bean.ear}"
    toDir="${dist}" />
    </target>
    <!-- compile example client -->
    <target name="compile.client" description="Compile client.">
    <!--
    http://bugs.bea.com/WebClarify/CREdit?CR=CR199960
    <move file="${user.dir}/${ejb.client.jar}"
    tofile="${client.classes.dir}/${ejb.client.jar}"
    failonerror="false"/>
    -->
    <copy file="${user.dir}/${ejb.client.jar}"
    tofile="${client.classes.dir}/${ejb.client.jar}"/>
    <delete file="${user.dir}/${ejb.client.jar}"/>
    <javac srcdir="${source}" destdir="${client.classes.dir}"
    deprecation="${deprecation}" debug="${debug}"
    classpath="${ex.classpath};${client.classes.dir}/${ejb.client.jar}"
    includes="Client.java"/>
    </target>
    <!-- Run the example -->
    <target name="run">
    <java classname="examples.ejb.ejb20.basic.SecuritySystem.Client"
    fork="yes" failonerror="true">
    <arg value="t3://${wls.hostname}:${wls.port}"/>
    <classpath>
    <pathelement
    path="${ex.classpath};${client.classes.dir}/${ejb.client.jar}"/>
    </classpath>
    </java>
    </target>
    </project>
    Here is the output that I am getting:
    build.ear:
    [ejbgen] EJBGen 9.0
    [ejbgen] Creating
    C:\bea\weblogic90\samples\server\examples\build\ejb20State
    lessEar\ejb20StatelessEjb\\ejb-jar.xml
    [ejbgen] Creating
    C:\bea\weblogic90\samples\server\examples\build\ejb20State
    lessEar\ejb20StatelessEjb\\weblogic-ejb-jar.xml
    [ejbgen] Creating
    C:\bea\weblogic90\samples\server\examples\build\ejb20State
    lessEar\ejb20StatelessEjb\ejbgen-build.xml
    [move] Moving 2 files to
    C:\bea\weblogic90\samples\server\examples\build\ej
    b20StatelessEar\ejb20StatelessEjb\META-INF
    [javac] Compiling 1 source file to
    C:\bea\weblogic90\samples\server\examples
    \build\ejb20StatelessEar\ejb20StatelessEjb
    [javac] Compiling 5 source files to
    C:\bea\weblogic90\samples\server\example
    s\build\ejb20StatelessEar\ejb20StatelessEjb
    [wlappc] <Oct 28, 2005 8:51:48 PM EDT> <Info> <J2EE> <BEA-160186>
    <Compiling
    EAR module 'ejb20StatelessEjb'>
    [wlappc] <Oct 28, 2005 8:51:49 PM EDT> <Error> <J2EE> <BEA-160187>
    <weblogic.
    appc failed to compile your application. Recompile with the -verbose
    option for
    more details. Please see the error message(s) below.>
    <b>BUILD FAILED</b>
    C:\bea\weblogic90\samples\server\examples\src\examples\ejb\ejb20\basic\SecurityS
    ystem\build.xml:68: weblogic.utils.compiler.ToolFailureException:
    <b>VALIDATION PROBLEMS WERE FOUND</b>
    C:\bea\weblogic90\samples\server\examples\src\examples\ejb\ejb20\basic\Securit
    ySystem\ejb20StatelessEar\ejb20StatelessEjb\META-INF\ejb-jar.xml:13:6:13:6:
    prob
    lem: cvc-complex-type.2.4c: Expected elements
    'session@http://java.sun.com/xml/n
    s/j2ee entity@http://java.sun.com/xml/ns/j2ee
    message-driven@http://java.sun.com
    /xml/ns/j2ee' before the end of the content in element
    enterprise-beans@http://j
    ava.sun.com/xml/ns/j2ee:<C:\bea\weblogic90\samples\server\examples\src\examples\
    ejb\ejb20\basic\SecuritySystem\ejb20StatelessEar\ejb20StatelessEjb/META-INF/ejb-
    jar.xml:13:6>
    Total time: 2 minutes 8 seconds
    C:\bea\weblogic90\samples\server\examples\src\examples\ejb\ejb20\basic\SecurityS
    ystem>
    This is the part of the output whee the error message appears and I think
    this is the one you want. Hope you can figure out what the problem is here
    coz as I said, this is my first EJB program. Thanks

  • Determining previous TFS 2013/2013 Build Process Template

    I am looking at previous builds in TFS 2012 using a custom Build Process Template, and while it is easy to determine what template will be used for my Next build, how do I determine what was used on a previous build?  Example:  TeamA builds ProjectA
    using TemplateA.  Then they say something was not correct, and they switch to a new TemplateB.  I can see TemplateB in their configuration, but need to make changes to TemplateA (it has custom hooks already in place for other things that are needed).
     How do I determine what TemplateA was?  It is not in any of the ActivityLogs or in their Build Logs.  Just for the sake of argument, assume that there are 100s of build process templates, not easy to determine which was originally used.

    Hi Rob,  
    Thanks for your post.
    Yes, the build template name information not be included/generated in TFS build log or 
    ActivityLogs. If there’s something was not correct in TemplateA, we usually edit on this TemplateA and save it TFS Source Control, then reusing it in build definition.
    As far as I know there’s no default way to determine which previous build templates be used in one build definition before. For this scenario, please
    submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them seriously.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Custom build process - get build parameters

    I'm using TFS 2013 with build process template: TfvcTemplate.12.xaml. I created my own activity and I need to send it some input parameters that include the following data:
    1. source path (for example: c:\a\src)
    2. binaries path (for example c:\a\bin)
    3. project name
    I tried to find parameters in the 'WellKnownEnvironmentVariables' variable which can give me that values but with no luck.
    the question is which parameters can I use in order to get these values??
    T-O-M

    Hi T-O-M,
    Thia issue is related with TFS. You can refer to :
    https://social.msdn.microsoft.com/Forums/en-US/5fd9c7db-7848-49a7-8802-464fc9fe0197/custom-process-parameters-in-tfs-builds?forum=tfsbuild
    If you still have any concerns, please feel free to ask in TFS forum.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Generate client stubs for EJBs? Is this correct?

    Hi,
         Third time I write this... maybe it gets actually posted now...
    I'm using Sun's appserver (edition 8) to learn EJBs. I have a small app with 2 EJBs runing on the server and I intend to test them using junit test cases running from Eclipse (as a normal java program, no client container or whatsoever). I realized that in order connect my client app to the remote homes on the server I need to have the client stubs. OK. I saw that they are actually created when I generate the deployment for a client app. So what I did is open the .jar and copy the stubs to my client app in Eclipse. It works... but I fear is NOT the way to go...
    My questions:
    A) How can I generate ONLY the stubs?
    B) Is it necessary to deploy the EJBs on the server to generate the client stubs to access the remote interfaces?
    Any answers or indications or directions to take are WELCOME :-)
    C) Is what I do correct? I mean, are you guys too writing client apps that do NOT run in the client container? If so, how do you get the stubs? Maybe my approach to developing EJBs is not correct?
    Thank you for any answers, comments or indications and directions to take!

    Hi Pablo,
    please give me a hint, i have the same problem in my mind.
    I would like write a simple application with eclipse as a application client. I'm reuse the rmi-iiop-simple sample of application server 8. My steps until now:
    - I have execute the sample full - it works.
    - I have set up a project within eclipse workspace with content of sun's sample code
    - I have chamged the build.xml for reuse -> it works i can create ear and other jars
    - I deploy the ear with web front end of application server -> web app works
    - I start my application in eclipse debug (java-application) -> this goes wrong -> class cast exception by narrow
    Because i would like use the application as application client so i have added the j2ee.jar and the appserv-ext.jar to my classpath.
    At this point i think the application must be run. The appserv-ext.jar and the j2ee.jar should realize the container. But she doesn't !
    Which thing is wrong in my mind?
    Thanks Thomas

Maybe you are looking for

  • Multiple Users on one Itune

    So my roommate just bought an ipod video.So MY whole library is on there(iTunes),since she used it...somehow my library shows 2589 songs,and when I plug my ipod in (click on the name) all I see is 2366 songs. What am I doing wrong? Why am I suddenly

  • How do I save as Hi-Res pdf (300dpi)? from Pages app

    Hi I have created a Pages document on my ipod. How do save/export the document as a Hi-resolution 300dpi pdf file? I cannot see any menu for selecting settings for pdf anywhere. I need to have the pdf Hi-res as I work in a print co and currently the

  • Default user settings in cProjects

    Hi all! Does anyone know if it's possible to change the default user settings in cProjects at user creation? Basically, we would like to have the processing mode set by default as "display" instead of "change". After user creation in the backend/port

  • Any way to embed web page in PDF page - like IFRAME

    Is there any way in Acrobat to embed a web page within a PDF page - similar to an IFRAME in an HTML page?

  • What is the max number of recipients in an email list

    Mail is rejecting my email because of too many recipients. What is the limit??