Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.

Hi,
I am tryng to create a Flex Project, but got stuck with an error....
The Error is  Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
Initially I download jboss-5.1.0.GA and placed it in C folder.
While creating project, I selected J2EE server,  selected remote object access service and LiveCycle Data Services...
In the next step, I de-selected the use default location for local  LiveCycle Data Services server.
In the root folder - C:\jboss-5.1.0.GA
for Root URL:  http://localhost:8700/flex/
Context Root: /flex
when I clicl Validate Configuration.. this is the error I get  Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
I can't understand what is going wrong here....any ideas....
Thanks for the Help.....
Thanks

Run the wizard, select ColdFusion as the server technology, but don't
check the option to use remote object access service. Then, open the
project properties dialog, go to the Flex Compiler page, and add a the
compiler flag: -services
"C:\ColdFusion8\wwwroot\WEB-INF\flex\services-config.xml" (obviously
changing the path as appropriate). This flag is what gets set by the
wizard when you opt to use Flash Remoting.  -http://www.feed-squirrel.com/index.cfm?evt=viewItem&ID=77732
Above is a work-around/solution that was successful for me.  Below are screen shots of how I initially configured the project, following the above solution.
In the image above, notice how I didn't tick the "Use remote object access service" checkbox.
For the image below, the 'Y:\' value is a mapped network directory to my server (IIS) webroot, which is "\\windowsserver/Inetpub/wwwroot/".  Root URL is the name of my server.  Fill in the fields with correct values and hit finish.
Then navigate ( Project>Properties>Flex Compiler ) to this project's 'Flex Compiler context menu.
And 'W:\' is another mapped network directory that points obviously to my Coldfusion's WEB-INF\flex.
I hope that this helps.  As you may see, I'm hoping that this will help you and others that are likely to come across problem.

Similar Messages

  • Weblogic Server not picking the jar files in WEB-INF/lib folder

    we are facing a strange problem where Weblogic App Server is not picking the jar files present inside the WEB-INF/lib folder if we update the jar file path in the classpath of the start script then the classes get loaded properly.
    Is there any specific setting which I need to do in weblogic to pick these jars ?

    Class loaders associated with a Web application can be configured to locate local classes first. To enable this we have to set the <prefer-web-inf-classes> to true in the deployment override weblogic.xml, for example
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    http://blog.transfer-solutions.com/2010/12/weblogic-class-loading/

  • Class not found in web-inf/classes folder of war file within ear file

    Hi all,
              I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
              If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
              Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
              thanks in advance for any suggestions or ideas.

    Hi,
              This is a known limitation/issue with WL. There is also no way around this.
              Regards,
              LG

  • How to access the file in the WEB-INF Folder

    hi..
    i want to access a xml file, using servlet, which is placed under WEB-INF folder.
    Please tell me how can i access the file.
    I am using WSAD to develop the application
    Thanx in advance.

    I haven't tried accessing an XML file that is placed in WEB-INF folder.
    Files under WEB-INF are usually protected from client/browser access, but a Servlet may be able to access it (not sure though).
    What problems are you facing when you try to access an XML file in the WEB-INF folder?
    If you can't access it from the WEB-INF folder , place it in any folder except the WEB-INF folder.
    Also, if you want to protect the XML file then you could password protect it or deny access to it via .htaccess file, or simply return a 403 forbidden header.

  • [svn] 1494: + Copy jgroups.jar to qa-regress/WEB-INF/lib folder

    Revision: 1494
    Author: [email protected]
    Date: 2008-04-30 12:29:37 -0700 (Wed, 30 Apr 2008)
    Log Message:
    + Copy jgroups.jar to qa-regress/WEB-INF/lib folder
    + Add a clustered destination to remoting-config.mods.xml for codecoverage
    + Add url-load-balancing,class and default attributes to cluster definition in services-config.mods.xml for codecoverage
    checkintests: passed
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/build.xml

    Please see following Sun Alert.
    http://sunsolve.sun.com/search/document.do?assetkey=1-26-101905-1
    The document contains links to the patches that fix this problem.

  • Storing .jsp files in the web-inf directory

    Has anyone ever heard about storing JSP files in the web-inf directory instead of the web app root directory.
    Apparently it improves security.
    If this is so, how is the user suppose to access the jsp file since I thought that users were not able to access what is stored in the web-inf directory.
    Any thoughts
    Thanks
    Nat

    I didn't tyr this but I think it is possible. You can do it using <servlet-mapping/> as you do with any other servlet.
    For example include lines below, in web.xml of web-inf,
    <servlet>
    <servlet-name>ReportRouter</servlet-name>
    <jsp-file>/web-inf/jsp/ReportRouter.jsp</jsp-file>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>ReportRouter</servlet-name>
    <url-pattern>/myrouter</url-pattern>
    </servlet-mapping>
    This may work. Don't you think so?
    Sudha

  • The source folder must contain a valid boot.wim file

    Hi.
    I have the following problem
    I have downloaded MDOP2014 (en_microsoft_desktop_optimization_pack_2014_x86_x64_dvd_4130158)
    I have installed the Windows Assessment and Deployment Kit (Windows ADK) for Windows 8.1 Update 
    And then installed MSDaRT81.exe on a Windows 8.1 (with Update) machine
    I have also copied the boot.wim from the "Sources" folder from the Win8.1 ISO file. 
    But when I start the DaRT Recovery Image Wizard an try to point to the folder with the boot.wim file, it gives me:
    "The source folder must contain a valid boot.wim file"
    I have tried boot.wim files from 8.1 ent, 8.1 ent with update, server 2012 R2, server 2012 R2 with update...no go
    I am using boot.wim of win 7.
    Any ideas????

    Hi,
    I found that if you point to the root directory (not the sources folder), then it finds the correct boot.wim. Specifically, I downloaded the 8.1 Enterprise evaluation ISO, then mounted the ISO (F:). When pointing to the sources folder, it gave the same error,
    but when I pointed only to F:, it worked fine.
    Additionally, both in the wizard and in the article 'Creating the DaRT 8.0 Recovery Image', it states:
    Specify the root path of the Windows 8 <64-bit or 32-bit> install media
    Hope this helps,
    David
    MDOP on the Springboard Series on TechNet

  • I have downloaded Photoshop elements 5.0 to a new PC.  I recieve error message: "Your Adobe Photoshop Elements user name, organization, or serial number is missing or invalid. The application cannot continue and must now exit."

    I was referred here by customer service.  I have downloaded Photoshop elements 5.0 to a new PC.  After accepting the agreement I receive an error message saying  "Your Adobe Photoshop Elements user name, organization, or serial number is missing or invalid. The application cannot continue and must now exit."  There is no place to enter the serial number.

    All your pictures will remain safe even after uninstalling the program. Your pictures are saved to your system in form of catalog present at C:\ProgramData\Adobe\Photoshop Elements\Catalogs\<your catalog><br />When you reinstall the program you can open this catalog and view all your photos again.

  • Serializing a JavaBean to the WEB-INF directory or subdirectories

    Hello, I'm hoping someone can help me on this.
    I'm working with two scenarios in WSAD Enterprise Edition 5.0.0.2 for
    serializing a JavaBean (called AddressBean) to the following location
    in my Web application:
    /WEB-INF/classes/resources/serializable
    The data corresponding to the bean I'm serializing is being stored in
    a file with a name that makes it unique on the file system (e.g.
    jeff.ser, jill.ser). In the first scenario, I start by getting a
    FileOutputStream, then an ObjectOutputStream which is then used to
    write my JavaBean as needed. All of this is done in the first
    scenario from a JSP located in:
    myWebApp/Web Content/jsp/JSP1.jsp
    That works fine and as I'd expect. However, I'm not able to do that
    in the second scenario. In this scenario, I created an additional
    method in the bean itself that will actually serialize an object of
    its own type to the same directory structure that I showed above (i.e.
    under the WEB-INF directory). That is, in my bean, I have the
    following:
    public void writeDataToFile(AddressBean bean, String path) {
    FileOutputStream fos = null;
    ObjectOutputStream oos = null;
    try {
    fos = new FileOutputStream(path);
    oos = new ObjectOutputStream(fos);
    oos.writeObject(bean);
    oos.close();
    catch(Exception e) {
    e.printStackTrace();
    In this scenario, another JSP (call it JSP2.jsp) is creating an
    instance of AddressBean by using the jsp:useBean tag. The real path
    for the .ser file is figured out in the JSP code (same as was done in
    JSP1.jsp), and then I delegate the serialization part to the bean
    itself like so:
    // In JSP2.jsp
    <jsp:useBean id="ab" class="examples.beans.simple.AddressBean" />
    AddressBean address = (AddressBean) pageContext.getAttribute("ab");
    // get the path
    String path = ...
    String realPath = application.getRealPath(path);
    // write the object
    address.writeDataToFile(ab, realPath);
    What happens is that I get a FileNotFoundException while trying to
    create the FileOutputStream in the writeDataToFile() method in
    AddressBean at runtime. The message in the console states:
    java.io.FileNotFoundException:
    C:\WINNT\Profiles\myself\Personal\IBM\wsad\myworkbench\myWebApp\Web
    Content\ (Access is denied)
    The source file for AddressBean is located at:
    myWebApp/Java Source/examples.beans.simple.AddressBean
    WHAT is going on here!? I know that everything stored underneath the
    WEB-INF directory is not served to clients so I'm also assuming that
    whatever stored in that directory or its subdirectories is not
    accessible to clients by default. The only real difference between
    the two scenarios that I've described is that in the second one, the
    attempt to get a FileOutputStream is being made by a resource (i.e.
    AddressBean) that is outside of the "Web Content" directory structure
    in WSAD. However, the "Java Source" directory, which contains the
    package housing my AddressBean class, is also under myWebApp so I'm
    not seeing what the problem is at the moment.
    If anyone has any ideas, suggestions, solutions, please let me know.
    I'm stumped. Thank you!
    Jeff

    I figured it out, and it was my mistake. The problem was in a method defined in my AddressBean class that would take a String argument and use it to help create a unique file name (i.e. one with a .ser extension to contain the serialized bean data) for purposes of serialization later.
    Basically, I was using a local variable in the method unintentionally instead of the instance variable that I had defined in the bean so my path value was null at runtime--hence the FileNotFoundException.
    I'm still not sure why the (Access is denied) message was appearing, but I suspect it was b/c the absolute path that I'd end up with at runtime wasn't kosher; or, not having a destination .ser file was the problem.
    In any event, I fixed the mistake and could serialize a JavaBean in several ways:
    1. From a JSP directly
    2. By using a method defined in the JavaBean itself
    3. By passing on the request, which contained the JavaBean as an attribute, to a servlet that took care of the serialization
    Jeff

  • How can I reference a dtd in the Web-Inf directory from an xml file?

    Hi,
    I've placed my test.xml and test.dtd files in the following
    direcory (part of my web application)
    weblogic\config\MyDomain\applications\sample\Web-inf
    When I refer to the dtd from the xml file, as follows,
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE application SYSTEM "test.dtd">
    Weblogic tries to look for the dtd in the weblogic directory(the
    place where I started the server from). How can I get it to read
    the dtd in the Web-inf directory?
    I'm using Weblogic6.0 SP1 on Windows NT 4.0
    Thanks.

    Two options:
    1) Use SYSTEM "http://localhost:7001/sample/test.dtd"
    2) Or use XML registry in WLS6.0
    Cheers - Wei
    "Paromita" <[email protected]> wrote in message
    news:3aaff997$[email protected]..
    >
    Hi,
    I've placed my test.xml and test.dtd files in the following
    direcory (part of my web application)
    weblogic\config\MyDomain\applications\sample\Web-inf
    When I refer to the dtd from the xml file, as follows,
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE application SYSTEM "test.dtd">
    Weblogic tries to look for the dtd in the weblogic directory(the
    place where I started the server from). How can I get it to read
    the dtd in the Web-inf directory?
    I'm using Weblogic6.0 SP1 on Windows NT 4.0
    Thanks.

  • How to load/save a file in the WEB-INF?

    how can i load and save files in the WEB-INF directory using servlet?

    This doesn't save files. And in order to reuseability and maintainability, I'd rather use java.io and passing the path/filename around in File object.
    You can retrieve the absolute path for "/WEB-INF" byString absoluteWebInfPath = getServletContext().getRealPath("/WEB-INF");Then you can use that to read/write files.
    File file = new File(absoluteWebInfPath, "filename.ext");
    InputStream input = FileUtil.read(file);
    FileUtil.write(file, input);and so on.

  • How to load .jar files of subfolder in web-inf/lib folder?

    Hi All,
    In 'webapps\myappliction\WEB-INF\lib\myfolder' and in myfolder have some .jar files. How to load subfolder jar files in weblogic server 10.0?
    Do I need to configure subfolder jar path in web.xml? Please help me.
    Thanks & Regards,
    Gangadhar

    Class loaders associated with a Web application can be configured to locate local classes first. To enable this we have to set the <prefer-web-inf-classes> to true in the deployment override weblogic.xml, for example
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    http://blog.transfer-solutions.com/2010/12/weblogic-class-loading/

  • How can I forward to a jsp under the WEB-INF directory?

    I have a webapp with a jsp that forwards to a jsp called /WEB-INF/pages/secure.jsp When I try to forward to it, I get the error:
    "trying to GET /mywebapp/WEB-INF/pages/secure.jsp, deny-existence reports: denying existence of /web/webapps/mywebapp/WEB-INF/pages/secure.jsp"
    How can I forward to this page?
    Thanks,
    Micah

    Craig - I'm trying to do something very similar - build a waiting page into the
    flow. I've got a support case open (to get the BEA recommended approach) but so
    far have had no luck. Let me know if you've found the answer - or are still struggling.
    Cheers,
    Niall
    [email protected] (Craig Coffin) wrote:
    I am trying to get a JSP in a portlet to forward to a Webflow URL,
    without much success...
    The following code produces the ubiquitous "Functionality temporarily
    unavailable" message, presumably because jsp:forward chokes on the
    absolute URL:
    <c:set var="url">
    <portlet:createWebflowURL event="next"/>
    </c:set>
    <%
    // convert to a scripting variable for the jsp:forward tag
    String url = (String) pageContext.getAttribute("url");
    %>
    <jsp:forward page="<%=url%>"/>
    Using c:redirect fares little better. This code produces an empty
    portlet:
    <c:set var="url">
    <portlet:createWebflowURL event="next"/>
    </c:set>
    <c:redirect url="${url}"/>
    The closest I've been able to get is to have the user click a link to
    get to the next page, but I'd like to have an automatic forward rather
    than introduce another mouse click:
    ">
    Click to continue...</A>
    Am I missing something obvious? Any help would be appreciated...
    Thanks,
    -- Craig

  • How to display an image located in the WEB-INF directory?

    Basically, When a user registers, they a directory is created with their username that holds images that they can upload. How do I display those images. All I am holding in the database is the location of the images.
    ive tried
    <img src="/WEB-INF/users/testuser/picture.jpg" />
    but this doesnt work and for obvious security reasons shouldnt.. but is there another way of doing what i want to do? perhaps a custom tag? thanks
    Jazz

    You would have to write a generic servlet that would return an image
    <img src="/getImage?user=testuser&pic=picture.jpg" />Your servlet would basically fetch the file from under web-inf, and then stream it back to the user.
    Methods to use:
    servletContext.getRealPath() (to help find the file on disk), relative to your web app
    getOutputStream (as opposed to getWriter)
    It is only in this way that you can access files on the server outside of the public web directories.
    Hope this helps
    Cheers,
    evnafets

  • I am using the Kurzweil 3000 software and before I can use Read the Web, KESIReader Firefox extension must be installed. This is not compatible with Firefox 5, how can I make your extension to work with my software?

    I use the kurzweil 300 software and before I can use Read the Web I must first install the KESIReader.xpi Foxfire extension into Mozilla Foxfire however, the extension is not compatible with Mozilla Foxfire 5 which is the version installed on my computer. What can be done to make this work with Kurzweil 3000 software and the Read the Web tool?
    Mozilla Firefox or Microsoft Internet Explorer 7 or 8 Web Browser.
    Can you help me with the information I have provided I know the rest of the requirements are meet.

    Install Firefox Portable 3.6.22 to your hard drive for that website. <br />
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

Maybe you are looking for

  • Lion 10.7.3 issues

    I started having problems with Reader right after the last update, so I trashed it and tried to re-download it. It has failed five times, I have used different browsers everything. So is Reader now completely broken in Lion? It is no long in the APP

  • Nokia c3-01 calibration!

    I have a big problem with mi device (Nokia c3-01)! I make a software update to the last 07.32 and and now my touch is doesn't work good! When i try to go in the menu it enters in search of wireless! I think if I could get in the menu to the calibrati

  • TS1424 fraudulent charges on my iTunes account. how do I dispute?

    my account t says I made 2 in app purchases for a game called theme park. I never made these purchases. what do I do? EA will not return my emails and I don't know how to get a hold of apple. please help.

  • Print cover for case?

    Is there a way to print a cover for the DVD case (similar to the print function in iTunes)? Ideally would like to print the theme of the project. Thanks, Peace

  • Error message when I try to add a domain name

    So I bought a domain name from hostgator.com and I got hosting for it but then I changed the the domain name so that I could use the previous domain name I had purchased on a new website. So after I changed the domain on the website that was being ho