Using Weblogic to Deploy Simple Flex App

Hi,
   I am trying to deploy a simple Flex application in a weblogic8.1  server , so that I can use it locally.
Can any one please guide me where and how I have to deploy my flex app .
I am pretty new to this can any body provide me a guide or walk through step wise for me.
More over What is the url I need to give in the browser to access the flex app I deploy in the Weblogic server.
(At present I am using the IIS -- just copying the .swf file and wrapper html page in to the C:\Inetpub\wwwroot and giving http://localhost/test.html
in the browser to access it) ---  How do I do this using Weblogic 8.1
thanks
Nash

Hi again Nash,
the stuff I am doing at present is not yet permitted to be publicly available, but the principles are very straightforward. Remember that WebLogic is primarily concerned with server-side functionality and Flex with client-side, so there is not really a great deal of overlap. The place where your Flex instantiation code will sit is in one or other JSP, using code very like the templates that Adobe generate. The only thing you have to do is ensure that your JSP (or the controller/code files behind it) generate HTML that contains the necessary. I tend to use the Apache Beehive libraries for UI stuff, but from vague memory I don't think these were around in WL8 - however, it doesn't really matter what tag library you prefer as all you are doing is generating HTML that looks like the usual JavaScript calls to AC_FL_RunContent (or swfobject if you are using that method). Basically, just take the Adobe-generated template and wrap the necessary bits and pieces round the edge to make it a proper JSP.
When you need to make calls to get functionality, just use something like
                    service = new HTTPService();
                    separator_date = new Date();
                    service.url = "get_tool_list.jsp?sep=" + separator_date.valueOf();
                    service.addEventListener(FaultEvent.FAULT , fault_handler);
                    service.addEventListener(ResultEvent.RESULT, resultHandler);
                    service.resultFormat = "text";
                    CursorManager.setBusyCursor();
                    service.requestTimeout = WEB_SERVICE_TIMEOUT;
                    service.send();
and then inside get_tool_list.jsp (or whatever...) do the server-side functionality you need, and return the result in a suitable format that the Flex resultHandler method can then interpret and make use of.
Hope that helps,
Richard

Similar Messages

  • Using powershell to deploy provider-hosted app and specify remote Url instead of using appinv.aspx page

    Hello all,
    Could you possibly help me with provider-hosted app development/deployment process.
    We developed SharePoint provider-hosted app that works just fine in development environment. Now we need to automate it's installation in test environment via powershell.
    In AppManifest.xml that we are deploying we have key instead of explicit URL:
    <App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest" Name="ShowAllRoomsApp" ProductID="{922a18aa-5592-b59a-4da9-4791baef02e7}" Version="1.0.0.0"
    SharePointMinVersion="15.0.0.0">
      <Properties>
        <Title>SomeTitle</Title>
        <StartPage>~remoteAppUrl/Pages/Default.aspx?{StandardTokens}</StartPage>
    If we use as
    https://technet.microsoft.com/en-us/library/jj655398.aspx recommends, we cannot specify Redirect Url as we can do this on
    /_layouts/appinv.aspx
    So now it seems like the only way to deploy this kind of solution is using appinv.aspx page.Or must we apply this URL in AppManifest on developing stage in Visual Studio?
    What did I miss?
    P. S. Even if I use /_layouts/appinv.aspx after powershell commandlets, I get error.

    hi,
    to deploy provider hosted app you need 2 things
    1. Client ID
    2. Redirect URL.
    What you can do you can generate app from visual studio using clientID and URL from developer enviornment.
    Now a app file is just a simple compressed zip file if you rename it as .zip and extract you will find AppManifest
    inside it. So to create an app for Testing enviornment what you have to to Get the CLient ID (from AppRegNew.aspx) in testing enviornment. Unzip .App file change the AppManifest with testing client ID and URL than again zip file and rename as .app.
    Now if you upload this file it will work.
    To automate this scenerio i have created a simple windows Application in which i Pass the Client ID and StartURl and an App File it unzips the app file make changes to app and again zip it.
    public static class AppPackageHelper
    public const string StartUrlExpression = "{0}?{1}";
    public const string StandardToken = "{StandardTokens}";
    public static string Publish(string appPath, string ClientId,string StartUrl)
    string tempDir = string.Empty;
    string outPutFile = string.Empty;
    try
    string parentDir = System.IO.Path.GetDirectoryName(appPath);
    outPutFile = System.IO.Path.Combine(parentDir, ClientId + "-Winshuttle.app");
    tempDir = System.IO.Path.Combine(parentDir, ClientId.ToString());
    Directory.CreateDirectory(tempDir);
    int lastInd = appPath.LastIndexOf('.');
    string tempPath = string.Empty;
    string targetFilePath = string.Empty;
    string cabPath = System.IO.Path.Combine(tempDir, System.IO.Path.GetFileNameWithoutExtension(appPath) + ".cab");
    FileInfo fInfo = new FileInfo(appPath) { IsReadOnly = false };
    File.Copy(appPath, cabPath);
    XDocument doc = null;
    string appManifest = string.Empty;
    using (ZipArchive zipArch = ZipFile.Open(cabPath, ZipArchiveMode.Update))
    appManifest = string.Format(@"{0}\AppManifest.xml", Directory.GetParent(cabPath).FullName);
    ZipArchiveEntry manifestEntry = zipArch.Entries.LastOrDefault(e => e.Name.ToLower() == "appmanifest.xml");
    manifestEntry.ExtractToFile(appManifest);
    doc = XDocument.Load(appManifest);
    XNamespace ns = doc.Root.GetDefaultNamespace();
    string defaultUrl = string.Format(StartUrlExpression, StartUrl.TrimEnd('/'), StandardToken);
    doc.Descendants(XName.Get("StartPage", ns.NamespaceName)).First().Value = defaultUrl;
    doc.Descendants(XName.Get("RemoteWebApplication", ns.NamespaceName)).First().Attribute(XName.Get("ClientId")).Value = setupInfo.ClientId.ToString();
    doc.Save(appManifest);
    if (manifestEntry != null)
    manifestEntry.Delete();
    zipArch.CreateEntryFromFile(appManifest, "AppManifest.xml");
    int totEnt = zipArch.Entries.Count;
    for (int e = 0; e < totEnt; e++)
    if (zipArch.Entries[e].Open().Length == 0)
    //if (zipArch.Entries.Count > totEnt && e >= totEnt) break;
    //zipArch.CreateEntry(zipArch.Entries[e].FullName);
    File.Delete(appManifest);
    if (File.Exists(outPutFile))
    File.Delete(outPutFile);
    File.Move(cabPath, outPutFile);
    return outPutFile;
    catch
    throw;
    finally
    if (System.IO.Directory.Exists(tempDir))
    System.IO.Directory.Delete(tempDir, true);
    return outPutFile;
    using System.IO.Compression.FileSystem.dll.
    Also if you want to do it using powershell You need to do the same thing unzip-> changes values-> zip
    So basic thing is You need to ahve only valid AppManifest file which contains 2 valid values Client Id and StartUrl
    if you changes it inside appmanifest manuall than it will also work. Using above code you can create a console Application to do it. You can use powershell it just that i dont know how to zip unzip in powershell but i am pretty sure you can easily find it
    on searching.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Deployment of Flex app to web and app server

    Hi
    I'm working on putting a Flex front-end on an existing J2EE
    app which gets deployed as an ear file. The architecture consists
    of web server, app server and database server. Is the following
    approach to deployment possible / recommended?
    My Flex app will be deployed to the web server. The J2EE ear
    file will be deployed to the app server (Weblogic). BlazeDS will be
    bundled within the ear file as a war file. Remote Objects will be
    configured in my BlazeDS configuration files to enable me to access
    the code in my J2EE app. In the compiler options of my Flex app,
    I'll be setting the server root folder and server root URL to point
    to the BlazeDS war file on my app server.
    At present I'm at the stage where I can run my Flex app
    directly from Flex builder on my development PC and it's able to
    connect tto the J2EE app, which is running on the app server
    (Weblogic) also on my development PC. I can't find documentation
    explaining how to extend this to work on a multi-tier architecture.
    Thanks
    David

    Hi,
    I replied to your post in FDS forum. Please visit the URL
    below for the response.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=583&threadid=1373523
    Hope this helps.

  • How CAn I Use a URL variable in Flex App

    Let say the link to a web page embedding a flex 2.0 app is
    http://www.myname.com?name=Bruce
    and I need to use the URL.name variable in the Flex app.
    How can I access URL parameters inside my Flex app?
    Bruce

    You probably know by now but I though maybe a could actualy
    answer someone question.
    {Application.application.parameters.name)
    put that in mx:text and you can see the var "name"

  • Help please: deploying simple flex application

    I developed a very simple flex application with simple
    components. No data base involved, neither java or cold fusion. I
    never hosted a website before. I want to host this application. Can
    someone guide me if there a service available to host a flex
    application. And steps involved. I appreciate anyone who help me
    out here. I need to get this done asap.
    Thanks.

    Put the compiled swf and its html wrapper code in an url
    accessible folder. Hit the url.
    That's it.
    Tracy

  • Exception while using weblogic datasource in ADF-BC app

    Hi,
    I want to use the weblogic datasource[JNDI name] as the datasource for my ADF BC application.
    I am following the "Configuring Your Application Module Database Connection" in the link
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcservices.htm#CHDJDBJB.
    I have done the following steps.
    1.Started weblogic server and configured a datasource[ex:testbcDS]
    2.In JDeveloper,navigated to 'Configuration' panel,edited the '**ModuleLocal' and changed the connection type to 'JDBC DataSource'.
    and Datasource Name to 'java:comp/env/jdbc/testbcDS'.
    3.In JDeveloper,wrote a stand alone Java client with the following snippet.
    public static void main(String[] args) {
    try {           
    String amDef = "oracle.communications.platform.bcapp.poc.app.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
    ViewObject rscGroupVo = am.findViewObject("IfwRscGroupView1");
    rscGroupVo.executeQuery();
    4.On execution of this the following exception is being displayed in the console
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/testbcDS
    at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
    Please let me know if I have followed correct steps and let me know the missing/wrongs steps I have done.
    The same works fine when the connection type is 'JDBC URL'.
    Please suggest.
    Thanks,
    Praveen

    Hi,
    After your suggestion I created weblogic data source with name as 'jdbc/testbcDS'
    and JNDI Name as 'jdbc/testbcDS'.
    Still I get the same error.
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/testbcDS
    at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
    Thanks,
    Praveen

  • How to use LIVE images within a flex app

    My App is composed of links to other websites. Currently these links are in the form of images which are basically static screenshots of the websites.
    What I want is for these images to instead be live i.e. what the website looks like currently. So if the website changes it's background colour etc this will change within the image making it a live screenshot. This is something my client wants so that the app is is basically self updatable. Can anyone help me out on how to do this please?

    I see what you mean about the clickable transparent overlays as this would stop the user interacting with the images which is what I want and I also see what you mean about it being hard to scale the images as it seems iframe has it's own scrollbars and includes the entire screen rather than thumbnails.
    My further problem is that I need to display these images in a tilelist that the user can scoll up and down and the images need to be drag and droppable between 2 tilelists. Yikes. They already are drag and droppable at the moment and are all displayed within a tilelist but I just need to make them live.
    Now I'm scared. Ha.

  • Cannot start application deployed using Weblogic console after stop

    Hello all,
    I have deployed an ear file using Weblogic console. If the app. is running, I can press stop and get the 404 error...after that I press start, and get a 503 error. Right after the app is deployed, and started, it always comes up fine. But when the application is running, I must click stop, start, stop, start to get the app to start.
    To start the app. I select, start and then "servicing all requests". To stop the app, I select stop and then "Force stop now". I have implemented a subclass of ServletContextListener to handle the start and stop. These methods do get called.
    The 503 did not cause any errors to be found in the weblogic.log, stdout.log or access.log.
    Does anyone have an idea how to start the app after it is stopped the first time?
    Thanks in advance.
    -PD
    Edited by pauladecker at 10/01/2007 1:47 PM

    Hi,
    As you see this error.
    [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.webcenter.framework, Specification-Version: 11.1.1, exact-match: false], [Extension-Name: oracle.sdp.client, exact-match: false].
    there is some miss match in library reference.
    Please check with your weblogic-application.xml file.
    Regards,
    Kal

  • How to migrate a flex app from Flex Builder 3 to Flash Builder 4.7

    Hello,
    I have written an extensive application using Flex Builder 3. I have maintained the app for several years using FB3. In the mean time I have created several mobile apps using Flash Builder 4.7. So I am very familiar with the the new framework. However, my client has requested some big changes to the app. I figured this would be a great opportunity to migrate the app to FB4.7. I would like to keep the mx structure for the time being. So, are there any good documents concerning this migration path? What SDK should I use. Should I start using the Apache Flex SDK?
    Thanks,
    --randu

    Hello Raja,
    Thanks. Your reply has been very helpful.
    For deploying the Flex app, as a web on NW 04S, I did the following:
    - Created a web project and included the following files as web-content. These files were created using the Flex builder or in the Flex development perspective of NWDI - CE, you can find them in the "bin" folder of your Flex project.
       - AC_OETags.js
       - your-app.html
       - your-app.swf
       - history.htm
       - history.js
       - history.swf
       - playerProductInstall.swf
       - crossdomain.xml - This file is important, if our Flex app wants data from the server.
        ( I made the simplest possible crossdomain.xml containing
           <allow-access-from domain="*" secure = "false"/>
      -  Declare "your-app.htm" as the welcome file in web.xml
      -  Package, this .war after building this web project in an Enterprise application project and build it.
      Now, you have the .ear made, which is deployable on your NW Web AS.
    Apart from this, another thing which is important to be included in your Flex mxml code is the following:
    ( Thanks to Abesh for this........ )
    - You have to tell the Flex app, in the action script, as to from where should the Flash engine pick the crossdomain.xml ( in case you are accessing the server for data from your app)
    You might have noticed, we packaged the crossdomain.xml along with our other web content in the .war.
    So mention, something like this in your action script.
    Security.loadPolicyFile("http://<hostname>:<http-port>/<context-root fo your web app>/crossdomain.xml");
    The code will work like a charm.
    Hope this helps everyone.
    Thanks guys.
    Best Regards, Gagan.

  • Deploying an AIR app

    Ahem,
    my appologies for cluttering up this fine forum with legal
    stuff, but my boss wants to know if we can deploy a Flex/AIR app
    from a CD or DVD. Seems like a fairly innocuous want, but the
    snippet of the license agreement I have attached below ( Section
    2.1.1 (a). (B). ) seems to suggest that an app can only be deployed
    from my web-site. I know the chances are slim, but does anyone know
    if I can deploy my app from anywhere other than a web-site?
    Thanks.
    Flex
    license agreement ***
    2.1 SDK Components.
    2.1.1 License Grant.
    (a) SDK Components. Subject to the terms and conditions of
    this Agreement, Adobe grants Licensee a non-exclusive,
    nontransferable license to (A) use the SDK Components for the sole
    purpose of internally developing Developer Programs, and
    (B) use the SDK Components as part of Licensee’s
    website for the sole purpose of compiling the Developer
    Programs that are distributed through the Licensee’s
    website.

    Yes, you can deploy. In this case you would be under (a), you
    are developing a Developer Program which you are entitled to deploy
    however you like. The (b) section is for when you use the Flex SDK
    as part of your own website (basically as a process as part of
    application logic) to build apps. What we mean to prohibit there
    (and let me note that this should not be construed as binding legal
    advice from Adobe) is using the SDK to build Flex apps for other
    folks which they can then distribute (as-in, don't be a large-scale
    hosted compiler).

  • Error when running Simple Sample Apps

    Hi,
    I have deployed "simple sample apps" to NW CE71 EHP1 and was following the configuration document. And when i run the application I get following  error:
    Error in Connectiont :Could not retrieve metadata
    Can somebody advise how to fix the issue?
    Thank you,
    Maxat

    The error was in my Proxy settings. Issue is solved

  • Standalone Flex App

    I want to use some components from a Flex app that we are
    developping to create a standalone application for some of our
    clients who just want to use a few (small) features of our
    application.
    I'm planning to use the in-process HSQLDB database and no
    server-side code (i.e. no server at all), and have the following
    questions:
    1. Did anyone try to this yet? Is it at all possible?
    2. How can I setup a jdbc connection to an in-process
    (embedded) hsqldb, without going through a server object?
    Thanx in advance for any suggestion (even: "not possible,
    forget it...")
    Rui

    You want to look for Adobe Apollo (coming out next year) or
    mdm Zinc's product. At least with Zinc, You can make standalone
    Flex exe projects that can connect to local databases etc...

  • WebLogic J2EE Security for Outside Apps

    We have a large client migrating to J2EE Web apps/services using WebLogic from
    Cold Fusion Web apps and TCL/TK client/server applications.
    We want to create a Single Sign On access to all apps. The J2EE Web apps can
    utilize WebLogics implementation of JAAS which nicely provides SSO. Can this
    impl be exposed to these Cold Fusion /client-server apps so we could provide a
    heterogensous SSO implementation? That is, is there in API we could call from
    say the Cold Fusion web app upon entry to go see if the user has current session
    in WebLogic? On the flip side, if the user first accesses the Cold Fusion web
    app before the WebLogic web app, is there an API call we could make from the Cold
    Fusion web app to create an authenticated user session in Weblogic, so that when
    the user then goes to the WebLogic web app, they are already logged in? That
    would be great if we could. I'm wondering...
    Thanks.

    It's likely you'll need some kind of perimeter authentication technique so users
    can move between webapps and not require login. You might consider posting your
    question the the weblogic.developer.interest.servlet newsgroup as well.
    One thing that may help you is a past post which gives some details on combining
    form and perimeter authentication via login form. The idea is to use a token which
    can be sent in the request that would login the user without requiring authentication
    but actually authenticate the user when the token is unavailable.
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.security&item=11697&utag=
    -Craig
    "Sean Cohan" <[email protected]> wrote:
    >
    We have a large client migrating to J2EE Web apps/services using WebLogic
    from
    Cold Fusion Web apps and TCL/TK client/server applications.
    We want to create a Single Sign On access to all apps. The J2EE Web
    apps can
    utilize WebLogics implementation of JAAS which nicely provides SSO.
    Can this
    impl be exposed to these Cold Fusion /client-server apps so we could
    provide a
    heterogensous SSO implementation? That is, is there in API we could
    call from
    say the Cold Fusion web app upon entry to go see if the user has current
    session
    in WebLogic? On the flip side, if the user first accesses the Cold Fusion
    web
    app before the WebLogic web app, is there an API call we could make from
    the Cold
    Fusion web app to create an authenticated user session in Weblogic, so
    that when
    the user then goes to the WebLogic web app, they are already logged in?
    That
    would be great if we could. I'm wondering...
    Thanks.

  • ZMM App deploy Updated VPP apps?

    Not sure if this is possible or not.
    If I setup an iPad/iPhone with Apple configurator and have VPP based apps on the device, yet I want to use ZMM to deploy out updated apps. Will ZMM still require the VPP codes that are already installed or is there a way to make this work. It would be nice to deploy out app updates to the devices without having them go back to a sync workstation.
    Also is there any furture ability to be able to remotely control and assist someone on an ipad/iphone or even android? I ask Apple about this and was told that this is something a vendor would need to consider. If I can do this with ZCM and a laptop/desktop, why not and tablet?
    Thanks
    Richard

    rhuhman,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Error in running a simple JSF app developed in Jdeveloper over weblogic

    I have a developed a simple JSF application using Jdeveloper 11g.
    To this application i have added a webservice proxy which generates the proxy client which communicates with the peoplesoft webservice.
    when i run the standalone proxy class, it is able to connect to the webservice and get the required data.
    But as i deploy the whole JSF application (where the managed bean calls a method in the client) in Integrated weblogic server, i get an XMLStreamReaderException.
    To debug this issue i deployed the war file in apache-tomcat6.0.26 with all the reqquired libraries in the Lib folder, it actually worked , my jsf application was able to get the data from the webservice.
    This makes me think that there is some problem in the way Jdeveloper is packaging the application.I have added all the lib & jar through "libraries &classpath" setting on project properties.But i am sure there is some problem in this process.
    I just need some help in understanding how to package an application,how to make sure all lib & jar are included in the war file??
    Any help is appreciated.
    The error i get in the weblogic is
    com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    avax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    at javax.faces.component.UICommand.broadcast(UICommand.java:387)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227
    thanks in advance
    Ash

    HI
    First of all, how do you concluded that you're dealing with packaging problem?? It seems problem is in response from web service. The toolkit you have is not able to parse the soap response. Tomcat solves problem probably because of the different jars he has for web service client.
    In either way, i have personally experienced problems with JD packaging (11g). The WAR created by JD was working well in embedded WLS shipped with JD, but when deployed to production WLS 10.3.1, i got a "IO exception; premature end of file". The only solution was to create a WAR by ant.
    Here is ANT sample script for building java classes, packaging into war, deploying to WLS (for this last one, you need to reference external jar):
    <target name="build">
    <!-- compile -->
    <javac debug="true" debuglevel="${debuglevel}" source="${source_version}" target="${target_version}" destdir="${output.dir}">
    <src path="${src.location}"/>
    </javac>
    </target>
         <target name="war" depends="build">
    <delete file="${target_war_file}"/>
    <war destfile="${target_war_file}" webxml="src/WEB-INF/web.xml" manifest="/src/META-INF/MANIFEST.MF" update="true">
    <classes dir="${output.dir}"/>
    <lib dir="${build_libs.location}">
    <include name="**/*.jar"/>
    </lib>
    <!-- include important jsf files files -->
    <zipfileset dir="${path.to.conf.folder}" prefix="WEB-INF">
    <include name="adfc-config.xml"/>
    <include name="trinidad-config.xml"/>
    <include name="web.xml"/>
    <include name="weblogic.xml"/>
    </zipfileset>
    </war>
    </target>
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath>
    <pathelement location="c:/oracle/wlserver_10.3/server/lib/weblogic.jar"/>
    </classpath>
    </taskdef>
    <target name="deploy">
    <wldeploy action="deploy" verbose="true" upload="true" remote="true" debug="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}"
    targets="${wls.targets}" securitymodel="CustomRoles" source="${target_war_file}" nostage="false"/>
    </target>
    <target name="undeploy">
    <wldeploy action="undeploy" verbose="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}" targets="${wls.targets}" failonerror="false"/>
    </target>
    <!--     properties for deploy
         wls.targets=DefaultServer
         wls.user=weblogic
         wls.password=weblogic1
         wls.app.name=myapp
         wls.admin.url=t3://127.0.0.1:7101
         -->
    Regards

Maybe you are looking for