XML file not being read by Accordion Demo

I had this working last week and it was a beautiful thing. I
subsequently added many more product items to the products.xml file
and resent it, now the products.xml file is not being read by the
index page. I have read all the posts and added all the suggested
fixes -
added {useCache: false} to result in var dsProductFeatures =
new Spry.Data.XMLDataSet("products.xml", "products/product[name =
'{dsProducts::name}']/features/feature",{useCache: false})
added <cfheader name="Cache-Control" value= "no-cache">
<cfheader name="Expires" value="0">
<cfheader name="Pragma" value="no-cache"> to header
added var d = new Date();
var cToday = d.getSeconds();
var spryURL = "
http://localhost:8500/SpryMe/Sample1/employees.xml?cacheBuster="
+ cToday; to header
but my xml file is not being read. The script is running
because the little fields on the right are moving.
Any suggestions would be greatly appreciated!

Hi,
What's happening if you open the xml page (employees.xml)
directly in browser. Are you able to see all the records? Is the
XML valid?
Regards,
Dragos.
PS: do you have a public URL where we can see that?

Similar Messages

  • Web.xml file not being read

    Hello, I did a quick search but could not find an answer to my specific problem. (this is also my first night tackling servlets) i hope this hasnt been answered before. here goes...
    i'm using Tomcat 4.1 and this is my file structure where i put my servlets:<intstall dir>/webappps/ROOT/WEB-INF/classes/TestPackage.
    this is my code for the servlet
    package TestPackage;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    /** Example using servlet initialization. Here the message
      * to print and the number of times the message should be
      * repeated is taken from the init parameters.
    public class ShowMessage extends HttpServlet
         private String message;
         private String defaultMessage = "No message.";
         private int repeats = 1;
         public void init(ServletConfig config) throws ServletException
              //Always call super.init
              super.init(config);
              message = config.getInitParameter("message");
              if (message == null)
                   message = defaultMessage;
              try
                   String repeatString = config.getInitParameter("repeats");
                   repeats = Integer.parseInt(repeatString);
              catch(NumberFormatException nfe)
                   //do nothing
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws
                                            ServletException, IOException
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              String title = "The ShowMessage Servlet";
              out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
                               "Transitional//EN\">\n" +
                               "<HTML>\n" +
                             "<body bgcolor=\"#FDF5E6\">\n" +
                             "<h1 align=center>" + title + "</h1>");
              for(int i=0; i<repeats; i++)
                   out.println(message + "<br>");
              out.println("</body></html>");
    }my web.xml file is in <intstall dir>/webappps/ROOT/WEB-INF. it looks like:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description>
      <servlet>
          <servlet-name>
            ShowMsg
          </servlet-name>
          <servlet-class>
            TestPackage.ShowMessage
          </servlet-class>
          <init-param>
            <param-name>
              message
            </param-name>
            <param-value>
              Shibboleth
            </param-value>
          </init-param>
          <init-param>
            <param-name>
              repeats
            </param-name>
            <param-value>
              5
            </param-value>
          </init-param>
      </servlet>
    </web-app>when i access the servlet i get "No message" one time which is the default message. Any ideas as to why its not picking up the init parameters. I've restarted my laptop and started and stopped Tomcat a few times and i always get the default message...i also tried ShowMessage in replace of ShowMsg as the <servlet-name>, to no avail. I also tried removing the package name in the <servlet-class>, still nothing. Is there another web.xml file some where else that i need to update?
    Thanks! (sorry for the long code)
    BB

    The doGet method works if you are sending data from a form using get method. It is better to use service method.

  • Anybody know what's up with the menu.xml.files not being available for DW after installing on a new comp?

    Anybody know what's up with the menu.xml.files not being available for DW after installing on a new comp?

    Usually that error can be cleared up by renaming the personal config folder. Turn on your OS's hidden files and then go to...
    C: > Users > your username > AppData > Roaming > Dreamweaver (version) > your language > configuration
    Rename the configuration folder configuration-old and start DW up. That should create an entirely new configuration folder and correct the menu.xml file.

  • Crossdomain.xml file not being called by the SWF

    Hi,
    I'm serving an swf file compiled using flex builder 3.2 through plain HTTP, the SWF file calls a service in the same domain through HTTPS, as such, I put the following file in the root directory of my web server:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
        <allow-access-from domain="*" secure="false" />
    </cross-domain-policy>
    and name it crossdomain.xml
    When the service is invoked, I get the following error: [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
    When I check the access log files of my web server (Apache), there's no entry for crossdomain.xml (it is not being requested), why?
    When I serve the SWF through HTTPs it works OK ... any ideas?
    I have tried in several machines (different browsers, different versions of Flash player) and no success.

    I am also experiencing the exact same problem.  I'm not able to change the crossdomain.xml file located in the root directory and am going to try creating a new policy file in a sub directory.  The problem I'm having is that my web service is called from a virtual path and I do not know where to save this new policy file.
    Have you tried to load in a specific policy file?
    Security.loadPolicyFile( "http://yourdomain.com/policyFile.xml" );
    Also, you may want to check which sandbox your swf file is in.  flash.system.Security.sandboxType.  This could be another cause to the error.  My swf file is in the "remote" sandbox.

  • XML file not properly read from Appc Server. Partial records filled into IT

    Hi,
    I am reading an XML file from the application Server. only 2 records are comming to the Internal table. Other records are not coming to the Internal Table. It's giving Sy-Subrc 4 after 2 iterations. Below is my code. Kindly suggest.
    open dataset p_unix in text mode message msg.
        if sy-subrc <> 0.
          message i001(38) with 'Error on Open of File: ' msg.
        else.
          while sy-subrc = 0.
            read dataset p_unix into infile.
            check sy-subrc = 0.
            append infile.
          endwhile.
          close dataset p_unix.
    Thanks,
    Debi.

    Hi,
    this is probably because there's only one "end of line" character (probably after <?xml ... ?>). This is normal, but you must store the second line in a string data object, which will then receive the whole XML stream (except the xml header as it is stored in the first line). And that's done.
    BR
    Sandra

  • XML files are being read as PBEM game file format!!

    Hello,
    I am trying to edit some .xml files in Script Editor but everytime I try to open them I am told :
    'Script Editor cannot open files in the "PBEM game file" format'
    (Double clicking the .xml file opens up the Big Bang game)
    Does anyone know how to get round this? also is Script Editor the best application to use? I want to use an editor that has colours.
    Many thanks, rob

    Script Editor has one purpose - editing and compiling AppleScript.
    I can't account for the wording of the error message, but for sure I wouldn't expect it to handle XML files directly.
    You could use AppleScript to manipulate the XML data, but that's probably not ideal either.
    What you need is a text editor. BBEdit would be my first choice, or its cheaper (read: free) sibling TextWrangler.
    Both can handle any type of text file, including syntax highlighting for many structured files including programming source code.

  • Pdf files not being read in mac

    the pdf files i create in acrobat pro 9 are not able to be read by mac users. can anyone help me out with this?

    How are you sending them to Mac users? If by email, you might try to zip them first. If they are not able to receive zip files in the emails then you might try posting the pdf file to a web or ftp site.

  • Office 2013 ADMX files not being read by group policy editor?

    Okay so I'm having a real problem with the ADMX files for Office 2013. First of all we have a mix of 2012 R2 DCs with one 2008 R2 DC. The 2008 R2 is currently the primary DC. Here's what I've done so far:
    Downloaded the ADMX files both 32 and 64bit.
    Copied from my machine (Win7) to 2012R2 DC.
    Downloaded and copied directly to the 2012R2DC policy definitions location
    According to the research I've done, the Office 2013 template is supposed to appear under User Configuration\Policies\Administrative Templates. However it doesn't show up no matter what I do.
    I consider myself fairly knowledgeable with GPOs but I'm stumped on this one. Can someone tell me what I'm missing here?

    Hi, 
    Have you copied the ADML files to the language folder in the PolicyDefinitions folder?
    Checkout the below thread on similar discussion,
    office 2013 admx templates
    Regards,
    Gopi
    www.jijitechnologies.com

  • Pages will not open a downloaded .pages document from iCloud because index.xml file not found?

    New to using iCloud.  I created a large pages document on Mac Air and saved it to my iCloud account.  Found it at home on desktop Mac and downloaded it.  No problem.  However, it will not open due to the index.xml file not being found.  What should I do to open this document?  I've tried several things and no luck yet.  Thanks for any tips!  :-)

    Options posted here: The required index.xml file is missing.
    William Farrar posted:
    Try this. It worked for me:
    1. Single click on the document. This will "highlight" the document icon, but not invoke the error message.
    2. Click on "File" in the menu.
    3. Scroll down to "Open With".
    4. One of my choices in the "Open With" selection is Pages (default) (5.0.1)
    5. Click on that choice and the document should open.
    In my "Open WIth" selection there is also a Pages (4.0.4), but that didn't work for me.
    Now, here is a caveat. If before you open your document you instead first click on an open Internet window, then the "Open With" selection disappears from the File menu. In that case just single click again on the document icon again and the "Open With" selection returns.
    fruhulda posted:
    Try this:
      1. Make a duplicate of the file (cmd D), just to be safe
      2. Select .pages on the copy and change to .zip
      3. When the System asks if you really want to do this, click Use .zip
      4. Double click the new .zip file
      5. It will now appear as a folder with no extension
      6. Append .pages to the end of the folder name
      7. Again click on Use .pages
      8. Double click on this file to open it in Pages.
    What you have done is extracted all the Pages resources from the .pages "package" and reconstructed it.
    or
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=308

  • [svn] 1978: Bug: vendors. properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly .

    Revision: 1978
    Author: [email protected]
    Date: 2008-06-06 08:05:34 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Bug: vendors.properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly.
    QA: Yes - we need automated tests to make sure that errors.properties and vendors.properties in BlazeDS/LCDS are loaded properly.
    Doc: No
    Modified Paths:
    blazeds/branches/3.0.x/modules/common/src/java/flex/messaging/util/PropertyStringResource Loader.java
    blazeds/branches/3.0.x/modules/opt/src/jrun/flex/messaging/security/JRunLoginCommand.java
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    I have a lot of grief with this version of Windows Media Player.
    It is very buggy and frustrating to use.
    I have my Music library on a QNAP NAS, which is as reliable as they come.
    System notifications make it not save changes.  It also does not do a good job of interpreting albums and artists from folders.  Changes to track names are not saved, nor are tracks moved to other albums, renamed albums, changes to genre, artist
    or date.  It separates and merges albums/tracks without sense or reason.  Some changes I've made up to 4 times, then closed WMP and re-started my machine to check if it has/hasn't saved the changes.  Often it has not.
    This is the first time I've used WMP in this capacity, and I do not recommend it.
    New service pack please.

  • Write Read XML Files not made in LabVIEW

    I have an application that needs to be able to write and read xml files.  My application needs to be able to save the files in such a format that an outside program can use the values saved in the xml file.  On a system restart I need to be able to read in the values that were saved back into the program and populate the multicolumn list box it came from.  My issue really is just reading it back in from the file. 
    I could create a way of writing the xml file with the information in the format needed for the other program.  The problem really is, how do I handle reading in, and then populating controls with the information provided in the xml file with the xml file not in the LabView format. 
    The xml controls that have been provided by NI are not usable in this case. 
    Any suggestions or possible solutions would be greatly appreciated.  Thank you for all of the help ahead of time.

    Try LabXML.

  • UIXJSP App built off BC4J Project JBO Excep XML File not found for the Container

    Running JDEV 9.0.3 build 960
    Created a new project in folder "UIX JSP"
    "UIX JSP" note the space!
    Create a default UIX JSP Application based on existing BC4J Project
    When running a JSP - Get a JBO Error complaining that the XML File not found for the Container
    If I recreate the project with name UIX_JSP problem does not occur.

    I logged a bug on this.

  • "XML File not found for the Container DataBindings.cpx" error after deploy

    Hello,
    I have a problem with my JSP-Javaproject. Local works all fine but when i deploy my project to a Oracle Aplication Server i allway get this XML-File-Not-found exception:
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container DataBindings.cpx
    In my EAR-File the DataBindings.cpx is at:
    \WEB-INF\classes\
    My JSP-File:
    <jbo:ApplicationModule id="AippackageModule" definition="DataBindings.DataModule" releasemode="Stateful" />
    My web.xml:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    My DataBindings.cpx:
    <?xml version='1.0' encoding='windows-1252' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" ClientType="Generic">
    <pageMap>
    </pageMap>
    <pageDefinitionUsages>
    <page id="eonerrorPageDef"
    path="de.avacon.ahb.system.tools.pageDefs.eonerrorPageDef"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="AppModuleLocal"
    Package="model.data"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="DataModule">
    <Parameters/>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>
    What can i do?
    Thanks, steve

    Adding the dependency in the ViewController fixed this for me.
    I'm using two AppModules in the controller and the second one wasn't being picked up.
    I was able to fix this by:
    Go to the Project Properties, select Dependencies, edit the Dependent Projects and Archives, find the model that's failing and add a tick in the Build Output box.
    The model should now be picked up in the ViewController's DataBindings.cpx source file, though I did have to restart JDev for this to be picked up.
    HTH
    Phil

  • XML File not Found for the Container BC4J.cpx

    Hi,
    Have following error when I start a BC4J-JSP/Struts application (with Embedded and standalone OC4J) :
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container BC4J.cpx
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition(java.lang.String)
              DefinitionManager.java:751
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition()
              DefinitionManager.java:793
         void oracle.jbo.mom.DefinitionManager.initManager()
              DefinitionManager.java:137
         void oracle.jbo.uicli.mom.JUMetaObjectManager.<init>()
              JUMetaObjectManager.java:57
         oracle.jbo.uicli.mom.JUMetaObjectManager oracle.jbo.uicli.mom.JUMetaObjectManager.getJUMom()
              JUMetaObjectManager.java:131
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpContainer.findSessionCookie(javax.servlet.http.HttpSession, java.lang.String, java.lang.String, java.util.Properties)
              HttpContainer.java:541
         boolean oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(oracle.jbo.html.struts11.BC4JActionMapping, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              BC4JRequestProcessor.java:222
         org.apache.struts.action.ActionMapping oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              BC4JRequestProcessor.java:124
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:234
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1292
         void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:492
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    Then I make a Reload and it's ok.
    I have a Workspace with two Projects :
    BC4J.jpr for Businnes Components
    Web.jpr for JSP Struts
    In /classes I have the file Web.cpx, but no BC4J.cpx.
    From which does this name come ? Can I change this name ?
    Thanks
    Yves

    I found this on Metalink...
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    The following is from Note 137429.1. Hope this helps.
    Raja.
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    Action: 1. Make sure that the file is present. In particular, if the file is to be found in a zip/jar file, make sure that the Zip/JAR file is included in the CLASSPATH.
    2. This error is also reported if the name of the XML file does not match the object Name specified in the XML file. If the file system support case insensitive file names (e.g., Windows NT), make sure that the file name matches the object Name in the XML file in case-sensitive fashion.
    3. For a .JPX file, this error is reported if the JPX file is missing the JboProject XML tag. Check the JPX file to make sure that the valid tag is in there.
    4. One XML file may be extending another XML file (specified by the Extends element in this XML file). This error is reported if the base XML file is not found.
    5. When loading the XML file for a package (JboPackage tag), this error is reported if some unexpected error occurs while loading a containee.
    In all of the above cases, a more descriptive message may be printed on Diagnostic. If you are not seeing Diagnostic messages, you can run your application with Diagnostic turned on, as in "java -Djbo.debugoutput=console ...", to see Diagnostic messages.

  • DV devise not being read by computer

    I'm baffled by my issue.
    Two cameras (Optura 20, DVX100) not being read by my eMac.
    1 Sony cam reads fine.
    Only recently, after 3 years of my Optura being used as a deck on my eMac, decides it doesn't want to communicate with my eMac, and another G5 tower.
    -tried disconnecting all other fire wire and usb cords
    -tried different fire wire cords
    -tried logging in as a different user
    -tried different inputs
    I'm affriad there's a softwhere instalation i made on my comp that is interfearing with reading these DV devises.
    I tried trashing previous Quick Time pkg files in my Library/Recipts...nothing.
    Even my System Profiler has a hard time trying to read the signal when my cameras are plugged in. It won't even read an external HD if the camera is plugged in.
    If there are any other suggestions out there...
    I'M STUMPPED!!
    Once I figured it was a software issue, the same issue occured when I tried plugging into a different G5 tower.
    I'm trying to think if settings on the cameras are blocking/causing the issue. Still can't make sense of it all.
    Do you keep "DV Out" off or on?
    Thank you KINDLY in advance.
    Regards,
    Crzy K.

    Opening a new thread with the same problem ussually don't help to get an answer!
    http://discussions.apple.com/message.jspa?messageID=3288963#3288963

Maybe you are looking for

  • Problem while loading Crystal report

    Hi all     I'm Harinathan. I'm developing vb.net application with crystal report.

  • Dotted Underline appears in text?

    When I try to change the text color, a dotted line appears beneath my text and it renders when I export to a pdf.  There are no settings activated for underline and I can't seem to be able to find anything online.?

  • 3 PC's accessing one iTunes on a NAS

    I moved all my music to a shared folder on my NAS. When I log in from my desktop PC, I have my playlists and such. I want my wife to be able to open itunes on her laptop and see the same music but have her own playlists displayed on her itunes. Is th

  • Ican't open I tunes in Windows vista

    When I Plug my Iphone or Ipad in my laptop the I Tunes don't open only appears the internal storage and them nothing happens! What's going on? Thnx

  • A Simple Tutorial?

    I am using Visual Basic 2010 with a SQL Server Express database and have installed the Crystal Reports from SAP. While I can get the Report1.rdlc in my project, I can go no further.  I have searched this site and  every other source I can think of bu