Deploy Flex project to Tomcat

Hi,
I have developed a Flex project with Web Services. Can anbody
tell me how should I deploy the project into Tomcat...

hi Ciro,
You have not created the context of your database in context.xml of your tomat (path for context.xml tomcat folder/conf/context.xml)
Unless and until you don't create context you will get same error.
regards,
Joshmachine
Edited by: joshmachine on Mar 27, 2008 3:46 PM

Similar Messages

  • Deploying JSC projects in Tomcat

    If we deploy JSC projects in Tomcat we have to access the server.xml and tomcat-install-directory/shared/lib. Many web hosting providers do not allow access to these. This makes JSC project deployment in Tomcat very challenging.
    Are there sny alternative ways to deploy JSC projects without accessing Tomcat locations (server.xml and shared/lib folder) except the webapps folder. For example, can I put the jstl.jar and standard.jar someware inside my JSC project? Can I do some changes in my web.xml instead of modifying server.xml?
    Any advice is very much appreciated.
    Thank you very much.

    You can get around the server.xml changes. You will have to create a context.xml
    look at
    <br>
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
    http://tomcat.apache.org/tomcat-5.0-doc/deployer-howto.html#Context%20descriptors
    <br>
    for instance. I believe that context.xml has to go into <webapp>/META-INF directory. But I did not find a reference right now.
    The only question I have, would be if Tomcat would share DataSources from different webapps when they are configured in the context.xml, instead of the global context.
    I hope that helps a bit.
    Thanks,
    -- Marco

  • Deploying two projects on tomcat

    Hello every one,
    I want to ask how can I put more than one project in tomcat6 directory. /var/lib/tomcat6/webapps/ROOT/
    When I put one project in it, it is OK, everything is working perfectly. But when I create the folder in ROOT directory, and put other project in that folder it is not working.
    I get exception like this:
    type Status report
    message /SM-WAR/XMLUpload
    description The requested resource (/SM-WAR/XMLUpload) is not available.The requested resource is not available because it is in that folder SM-WAR. But when I put it directly to ROOT directory. it is working fine.
    What could it be?

    You can't. ROOT is a place to deploy one application. Use another diectory. You can make up your own name you know.

  • It´s possible deploy ADF Demo in Tomcat 6 ???

    Hi.
    I deploy the ADF Demo (http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html), in Weblogic 10.3.3.
    But I´m triying to deploy the war demo, in tomcat. But i can´t.
    It´s possible deploy this application??. I Think that is possible because it´s a war proyect.
    Thanks

    It may be possible, but it's not supported. If you have a search of the forums, you can find people who have, with varying degrees of success, managed to deploy ADF projects to Tomcat.
    John

  • Getting error while deploying woodstock project in jdeveloper

    Hi All,
    At last I deployed woodstock project in tomcat server and it is working fine but when I am trying to deploy it in jdeveloper I am getting lot of errors like
    Error: Unable to instantiate tag: webuijsf:page (class: null)  Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.
    Can any one tell me do I need to copy jar files some where else??or do I need to change any thing,
    I am using oc4j app server...
    Thanks.

    Assuming you are using the Sun RI, you may want to ask on the users mailing list (or search through the archives). I don't recall the specifics but there have been threads specifically addressing OC4J.

  • Deploying flex on Tomcat

    I am using Flash builder 4 to compose a flex application. I find no way to create a war f
    ile so as to deploy it on the tomcat. I am new to both flex and tomcat. Please gui
    de me.

    Hello..
    you can try menu option  project--->Export release Build, this will create a production project build . Just copy the created one into tomcat web-app directory. after that just run your app root mxml file.
    Say an example -- http://llocalhost:8080/appname/appname.mxml.
    enjoy
    rohit

  • Deploying Flex in Tomcat

    I've got a Flex application that I'd like to deploy as a
    webpage. It works when I run it from Flex Builder, however, when I
    deploy it on the Tomcat server on my machine, parts of it break.
    The part that breaks is one of my buttons which uses HTTPService to
    perform a Rest Post to another web service and fill a variable with
    the result. It doesn't work on the deployed version and I can't
    figure out why.
    In order to deploy, I clicked the 'Export Release Button' and
    then copied everything in the release folder to my tomcat folder. I
    then navigate to the html page, and most of it works, just not the
    part using HTTPService. Do I need to copy additional files or set
    some security options? Thanks for any help, I'm almost done with
    this first application.

    Managed to resolve the issue. The problem was with not having
    a crossdomain.xml which allows Flex to access and receive data from
    other domains. To fix the problem I simply created a
    crossdomain.xml (whose format can be found online easily enough)
    and put it in the ROOT webapp folder of my tomcat directory.

  • Please Help with Deploying of a Simple Tomcat Project

    Hi all,
    I hope this is the right forum to post this question.I have a Tomcat folder named "TomcatProject", it has the proper directory structure as the Tomcat Project.
    I want to deploy it into a Windows Server 2000 OS, so i will be deploying it in the {Tomcat Installation} / webapps/ my directory ..... Is this right?... (TC 5.0.28, Java 1.4.2)
    But I keep getting the resource not availabe error.Error 404.Kindly let me know what the problem is .....
    Any Help would be greatly appreciated
    AS

    Close enough forum :-)
    Ok Quick checklist.
    Tomcat is running?
    You can access the Tomcat home page
    http://localhost:8080 ?
    In [myDirectory] you have a folder called WEB-INF,
    with a valid web.xml file?
    Your website should be:
    http://localhost:8080/[myDirectory]/myJspPage.jsp
    where [myDirectory] is the name of the directory
    under webapps.
    I will you point you in the direction of a tutorial.
    This should be installed on your machine as well:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev
    /index.html
    specifically
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev
    /deployment.html
    cheers,
    evnafetsThanks for the prompt reply.Will follow the tutorial.
    AS

  • Run a home page in flex project

    hi
    i have build my flex project using ant task
    my project name is StudentRegistration.
    my mxml file name is StudentRegistation.
    <target name="appcompile" depends="install">
      <mxmlc file="${flexsrc.home}/StudentRegistration.mxml" context-root="/StudentRegistration" keep-generated-actionscript="true" services="${web.home}/WEB-INF/flex/services-config.xml" output="${catalina.home}/webapps/${app.name}/StudentRegistration.swf">
       <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
        <include name="${web.home}/WEB-INF/lib/" />
        <include name="${flexsrc.home}/example/" />
       </compiler.library-path>
       <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
       <source-path path-element="${FLEX_HOME}/frameworks" />
      </mxmlc>
    </target>
    <target name="createHtmlWrapper" depends="appcompile">
      <html-wrapper application="${APP_ROOT}/StudentRegistration.mxml" height="1000" width="1000"  output="${catalina.home}/webapps/${app.name}" swf="StudentRegistration" />
    </target>
    i have deploy the Folder StudentRegistration in tomcat.
    just i select the StudentRegistration in tomcat the StudentRegistration page is displays.
    if select StudentRegistration i want to display the homepage.html
    how can i do
    someone help me
    regards
    athi

    I jus read the lated Users Guide and you still can't create  Home page. The ony option is to create a webapp and use that like yu discussed.

  • Debug the Flex Application with tomcat Server

    Hi,
    I have the adobe flex builder plugin with my eclipse and I created a Flex project which is running on my Tomcat Server. Now, I would like to run my application in debug mode and I could not see the debug perspective. But, if my application is not configured with tomcat server, I can the debug perspective in my eclipse.
    Do we need to do any additional settings for viewing the debug perspective for Flex Applications which is configured in tomcat Server?

    You can't debug an app on the server, at least not using the debug perspective. Troubleshooting deployed apps if far more difficult.
    If this post answers your question or helps, please mark it as such.

  • How to read JBoss server 'app.properties' file in the deployed Flex application?

    Hi, my current Flex project is using LCDS server to make call (Remote object call and Data managements services' call) to the backend Java services and consume data to render. I have defined the AMF and RTMP channels in the services-config.xml file and destinations for the Java services' in the remoting-config.xml and data-management-config.xml files.
         <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://localhost:8080/eqcFlex/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                </properties>
         </channel-definition>
    As of now both the Flex application WAR file and Java services EAR files are depolyed on the JBoss server on my machine, therefore I can hardcode the endpoint URL as http://localhost:8080 in the services-config file and hit the Java services.
    But the requirement is that the Flex application WAR file needs to be deployed on JBoss servers deployed on different machines and hence the endpoint URL cann't be hardcoded in the services-config.xml file. Is there a way we can pick up the endpoint URL from the JBoss server's app.properties file so that we can dynamically create channels in Actionscript code and make call to the backend services with dynamic endpoint URL?

    But in Command prompt I found out that My properties file by name
    'cedrelay.properties' is not recognised by web.xml.My web.xml structure is
    How does web.xml "recognize" anything?
    You specify the properties file as an init parameter. Do you read it in the init method of the servlet? If so, what does the code look like for reading the properties file?
    You'll have better luck if you put that properties file in WEB-INF/classes and load it as a resource input stream from the CLASSPATH.
    %

  • FLEX Builder Pro 3 New Flex Project cannot configure J2EE

    I have FLEX Builder Pro 3 installed on a Windows XP machine.  LiveCycle Data Services is installed (with Tomcat) on a Linux RHEL 5 machine.  When trying to create a new FLEX project and configuring a J2EE server am very confused on what to put in Root Folder and Root URL.  I have tried various paths on the Root Folder (with a drive mapped through windows and also with just using the servername) and keep getting the error message:
    Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
    I've located the flex-confing file in the tomcat5\webapps\ROOT\WEB-INF directory, but still get the error.
    Please any help would be greatly appreciated.

    Are your new classes referenced from the old code? Mxmlc employs a questionable form of "as-needed" linking, so classes that are not referenced from the main application are not even compiled. This referencing requirement is recursive; that is, any classes that are to be included have to be referenced from the main application, or from classes referenced by the main application, or from classes referenced by classes referenced by the main application, and so on. But if your new classes are not referenced at all from the old code, they will be ignored.

  • Flex Project Management

    Hi,
    I am planning to build a flex project with a small group of people. So, I am thinking to have one main project to load all the component (SWF) in swf loader, so that I can have the component to be distributed to everyone. Here I want to ask:
    1. Besides local connection, what is the other best, fastest, and most stable way to have the main application to communicate with child application loaded via swf loader?
    2. As each person may working on their own part, how to set up the project so that they can easily debug their part with the main application during the development?
    3. The project will be deploy in both Air and web format. How to share the code base for both development so that we are easier to grow and maintain the app?
    Thanks. Please advise if you have better way for group development.

    take a look at the first part of this video where he talks about different architectures
    http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/
    you also might find this useful. Some example case studies for web/mobile apps, the same principle could be applied to web/desktop apps
    http://www.adobe.com/devnet/flex/samples.html

  • Flex project in project

    I have a large application (project) that has been deployed. I have a new application but want to be able to pull the old app into the new one. Im hoping i could just use some sort of includeProject and pass it a few variables. Is this possible?
    Thanks
    George

    Open your project's properties and choose 'Build path'. There, you can add source folders of other Flex project.
    Dany

  • How to deploy flex in web server

    hi there.
         im newbie flex developer and im having problem in deploying my project in web server.

    Hi,
    When you deploy your application, you make it available to customers. Typically, you deploy the application as a SWF file on a web server so that users can access it by using an HTTP request to the SWF file.
    When you deploy the application's SWF file, you must also deploy all of the assets required by the application.
    Deploying an application for Flex SDK and Adobe® Flex® Builder® might require you to perform some or all of the following actions:
    Copy the application SWF file to your deployment server. As the previous example shows, you copy the application to webserver.example.com.
    Copy any asset files, such as icons, media files, or other assets, to your deployment server.
    Copy any RSLs to your web server or application server.
    Copy any SWF files for your module to your deployment server in the same directory structure as you used for your development environment.
    Copy any SWF files required to support Flex features, such as deep linking. For more information,
    Write a wrapper for the SWF file if you access it from an HTML, JSP, ASP, or another type of page.A deployed SWF file can encompass your entire web application, however it is often used as a part of the application. Therefore, users do not typically request the SWF file directly, but request a web page that references the SWF file. Flex Builder can generate the wrapper for you, or, you can write the wrapper.
    Create a crossdomain.xml file on the server for data service, if you directly access any data services outside of the domain that serves the SWF file.
    Following link will help you.
    http://livedocs.adobe.com/flex/3/html/help.html?content=introbd_5.html
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

Maybe you are looking for

  • How to do Archiving of deleted & disabled users in OIM11g

    Hi All, As per the requirement we have to do archive of deleted & disabled users in OIM11g(11.1.1.2) after 75days. Can i know how can i achieve this? Regards, user7609

  • How to include SAP login link in the workflow notification email ?

    Hi, How to provide a link in notification email triggered thru workflow to outlook   ?? This link should take the user to correct SAP system logon screen..... kindly help ! urgent !! thank you R

  • How to import Hierarchy Data in MDM 7.1

    Hi All,     I am trying to import the hierarchy data to SAP MDM 7.1 I have the data in the Excel sheet in the following structure Parent Code   Parent Name   Child Code   Child Name A1                  Printer              P1               Inkjet A1 

  • Problems Building on Solaris

    Hi, I've been trying to evaluate BDB XML 2.3.8 for use on a new project for the last couple of days. I was able to build on Windows with no trouble but have been having trouble getting a working build on Solaris. By any chance is there a binary build

  • Need help with cs5 updates

    I upgraded to CS5 recently. I started getting no tices there were updates available. When I got to the update page and clicked on update, I got a message that said 'another instance of updater is running, please try again later". This has happened ea