Help on creating a ServerSession in Eclipse with XML file

Hi,
I am using Toplink in Eclipse with Tomcat/Apache (or at least trying to :)
I am trying to make the following code work:
Project myProject = XMLProjectReader.read("myproject.xml");
Server serverSession = myProject.createServerSession();
but I get an exception:
{color:#ff0000} +"7099", "The deployment project xml resource {0} was not found on the resource path. Check that the resource name/path and classloader passed to the XMLProjectReader are correct. The project xml should be included in the root of the application's deployed jar, if the project xml is deployed in a sub-directory in the application's jar ensure that the correct resource path using \"/\" not \"\\" is used."+ {color}
- I think the project cannot find the xml file in my project - but I was never sure where this should go in any case - I put it in the META-INF folder but made no difference. Where should I put these xml files?
Any help much appreciated

Simon,
Hi, I assume you are deploying a WAR to Tomcat. The following tutorial on running TopLink using the org.eclipse.persistence.jpa.PersistenceProvider is pure JPA but deals with the same deployment issues.
In particular note that there are two META-INF directories - we want to use only the one off of src.
"Make sure that your persistence.xml (and optionaly orm.xml) file is placed off of the src/META-INF directory and not the default WebContent/META-INF dir so that it gets picked up by the servlet classloader from the classes directory."
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial#persistence.xml
thank you
/michael
http://www.eclipselink.org

Similar Messages

  • How to create a proxy to retrieve the xml file from web services

    Hi Every one,
    We have a requirment where we receive a xml file from Kenexa, a third party HR tool using a middleware tool. from SAP side We have to create a proxy to retrieve the xml  file from web services by initiating call through middleware tool i used earlier.
    these are the steps i intend to follow to accomlish the requirement.  
    1) middleware tool has to initiate the call to kenexa web services to  receive the xml file when it is available.
    2) On SAP we need to create a ABAP Proxy service provider to middleware where this file can be received.
    Can any one guide me how i can create a proxy to retrieve the xml  file from web services by initiating call through other middlewre (its not PI). 
    Any help would be really great, i am not a ABAP developer, so please help me with this. Thanks.

    Thank for reply.
    The computers are in different locations, but yes it's possible, the users in this enviroment are all local administrator of the machines, and we can distribute the script centrally from the DC automatically
    Acrobat use Java, right? I'm not so expert in java, but something about it could not be so difficult to manage.
    Do you know some place where i can get some info about JS and acrobat?

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Oracle reports problem in distribution with xml file

    Hi ,
    I am having problem while I am trying to distribute the file with specifing the destination details in the xml. If I am giving the destination details in url then it is working.
    Ex.
    This is Working
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&desformat=pdf&destype=file&desname=devlopersuit/reports/output_file.pdf
    Not working :
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&DISTRIBUTE=YES&destination=devlopersuit/reports/dis_test.xml
    xml file
    <destinations>
    <file id="test" name="output_file.pdf" format="pdf">
    <include scr="mainSection"/>
    </file>
    </destinations>
    Error : REP-34304: Distribution failed to complete; review the distribution lists
    Its been week I tried many things , but not working.
    Right now I am trying to distribute to single file but my goal is to burst and distribute on basis of account number.
    This is the first stage of the project.
    Thanks a lot for the help
    Anju

    Hello
    see answer in Oracle reports problem in distribution with xml file
    Regards

  • .tmp files genrated along with XML files

    Hi all,
    Here my Interfaces are type of RFC- XI - FTP.
    these are running successfully past long time and creating XML files in the target directory of FTP aplication system. Along with XML files this time abnormally .tmp files were generated in the Target directory of FTP application system. This was occured only one time few days back.
    The generated XML files in target FTP system as usually read by Application system and processed in the sytem.
    And tmp files generated are as XI_ftp_XI_ftp_0c200300-704c.tmp
    could you all please let me know what could be the reason for happening this like generation of .tmp files abnoramally in Target FTP application system.
    Thanks in advance...
    Regards,
    Siva

    Hi, thanks for reply.
    The Write mode is "Use temporary file"
    But we have not got these .tmp files earlier and we have not mentioned any temporary file name sceme too.
    Could any body please explain will .tmp files are generated randomly?
    If i keep 'Directly' mode, will it keeps only the XML files in target directory?
    Please advise.
    Thanks,
    Siva

  • Connect interface with XML File in jdeveloper

    Hello;
    i want to design a webservice that take an employee ID , and return all employee's data (like his name ,departement, phone,email....)
    i want to make interface and connect it with XML file wich has all employees data
    how can i connect the interface ( input text box and output button) with XML file (taking the Id and searching inside the file and getting the data out in table as output)
    i want to deploy it to get the WSDL file and URL to deploy it at application server to use it in webcenter>>>

    up 2 find an answer
    i want the right way to do it?

  • Creating a Link with XML Files

    Hi,
    I am trying to import a XML file in a table structure following instructions from the Adobe help file (could only find a CS3 one, I am using CS4, the link to it: http://www.adobe.com/designcenter/indesign/articles/indcs3ip_xmlrules.pdf). Now the import works fine and my table is displayed correctly. My plan for this is to have XML files created from a database so when they get overwritten it will automatically update the tables in the file. While importing it I chose the "Create Link" option and I can see it in the links panel. All that seems fine. My problem is from this point if I do any changes to this file it gets added into my template along with the original with no formatting. So normally imported it looks like:
    code
    description
    unit
    price
    10000
    Product A
    Each
    5.00
    and if I edit it it then looks like this:
    5.00
    Each
    Product A
    10001
    PRICE
    UNIT
    DESCRIPTION
    CODE
    code
    description
    unit
    price
    10000
    Product A
    Each
    5.00
    And all I edited was the code value to be 10001 on the link yet it makes all these changes. Now if I edit the original XML file again it will crash Adobe CS4 and it freezes and says encountered error and closes. Does anyone have any advice on this situation? Is there a simple way to get XML tables inserted into a document that will change in the document if I edit the original file. If I have to change the XML that is fine as I can output it from the database pretty much whichever way I want.
    Here is the code for the XML file:
    <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="2" aid:tcols="4">
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">CODE</Cell>
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="59">DESCRIPTION</Cell>
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">UNIT</Cell>
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">PRICE</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">10000</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">Product A</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">Each</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">5.00</Cell>
    </Table>
    Any help would be appreciated.

    I wasn't using "Edit Original" before, but now that I do, I'm still unable to duplicate your result. When I edit and save, the results are just as one would expect. What application are you using to edit the XML? I am using Text Wrangler. What platform are you one? I've been testing this on a Mac, but could try it on Windows of that's what you are using. Also, out of curiosity, what does your XML structure look like? Here's mine:
    <Root>
      <Article>
        <Story>
          <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="2" aid:tcols="4">
            <Cell ..... (your cell nodes here)
          </Table>
        </Story>
      </Article>
    </Root>    

  • How to Create a Table in Oracle with XML data type.

    Dear ALL,
    What are the requirements for creating a table with xml datatype in Oracle: The steps would help very much to know the scripting of the table and how to query and either insert/update and remove data from that table.
    Any help, direction, advise would be highly appreciated.
    Thanks.

    Reffer to this Note.243554.1.
    In a nut shell you will need to run catqm.sql

  • Adobe Premiere CS6 'Create new Trimmed Project' Crash with .MXF files

    Yesterday I started to back up all our students work, and found that the "Create New Trimmed Project" no longer works in CS6 with .MFX files.
    Adobe Premiere CS6.0.3,  crashes when I try to "Create New Trimmed Project" under "Project Manager"
    This only happens when there are .MXF files in the Sequence.
    As we use Panasonic P2 cameras at this university, this is a problem, as this is the format that they shoot in.
    As a test I have made a Project with only one .MXF file placed on the sequence, and it crashes.
    This happens on my Macs and Windows machines with Adobe Premiere CS6 .
    Adobe Premiere CS5.5 works fine, and does not crash.
    Unfortunately I cant save a CS6 project as a CS5.5
    If you don't have any .MXF files to test this,
    You can make your own .MXF files by exporting any video file as "MXF OP1a" or "P2 Movie" Format, (the Preset setting is irrelevant - any preset will cause it)
    P.S.
    Using "Collect files and Copy to new Location" under "Project Manager" works fine, but does not reduce project size as much.

    I also discovered this behavior last summer.  Unfortunately the best (lame) answer I could find was that "Some formats, such as Long GOP based media files, cannot trim media, or add handles."  Source:  http://help.adobe.com/en_US/premierepro/cs/using/WS1c9bc5c2e465a58a91cf0b1038518aef7-7c72a .html
    That's not very specific, but in my case at least (and it sounds like in your case, too) .MXF may be another file type that cannot be trimmed.  If I remember correctly, the answers I got from others was that they were able to export fine.  My machine (and maybe yours) has an issue that nobody else seems to have encountered.  So none of the prescribed remedies allowed me to move forward in this regard.
    After much searching, asking and several suggestions from various Premiere communities, I gave up and moved on. 
    Use Remove Unused and then Collect Files and Copy to New Location.  At least that can help you if you have a lot of clips.  In my case, it didn't help much, because my very short clips were edited from very long takes, so as Premiere sees it, not much was "unused".
    Be aware that "Project Manager does not copy and collect After Effects compositions that are dynamically linked to an Adobe Premiere Pro project. Project Manager does save the Dynamic Link clip in the trimmed project as an offline clip, however."
    Wish I could offer you more.

  • How to save a completed form that was created as a dynamic form, with expandable files?

    I have created a dynamic PDF form with expandable fields etc. As this is to be accessible for customers to completed, how can they save a completed copy on their own PC?
    I tried it myself and I receive an error msg stating that I can only save a Blank Copy of this Form:  Data typed into this form will not be saved. Adobe Reader can only save a blank copy of this form.
    How can I create a dynamic form (with expandable fields/flowable layout etc) that allows the applicant to not only complete the form but also, to save a completed copy?

    Thanks! That worked , however I now have an additional issue.
    While the form works in Internet Explorer (I'm using IE11), in that it's viewable, it opens and allows me to save etc) it doesn't work in Google Chrome and I'm getting the below error message:
    Any ideas on why it doesn't display in Chrome and does in IE (I'm using the same PC and I'm using Adobe Reader XI)!
    there are other PDF forms on site that are not dynamic but are fillable, and these are opening!
    Thanks

  • How to embedd Fusion Charts with XML files in java? Please help me.......

    Hi....iam trying to display Fusion Charts. Iam using Hibernate to bring data from database.
    what i want to do is to put data on xml, once my xml gets dynamic data from database, then it will be clubbed with swf files(fusion charts) to show graphs such as line charts,etc.
    I know wat to do. But big Question is how to do ?
    am i right in my Logic ?

    Hi
    Your approach seems to be right.
    Get the data using hibernate into your struts action ( if you are using struts ).
    Set the xml and any other property as request attribute.
    Embed the chart in JSP, by including FusionChartsRenderer.jsp ( found in download package ) and passing xml ( got from request attribute ) and other values as parameters to it.
    Please check the FusionCharts forum for some discussions on Struts, JSP implementation. ( /forum - you could use the search feature available there )
    Please refer to the documentation of FusionCharts as well. ( /docs )
    Hope this helps!
    Srividya

  • JMS, Help needed in writing a client code with .bindings file

    Some one is keeping a message in MQSeries in their environment. We need to develop a client code, probably a JMSClient, which will consume the messages from the MQSeries. They have given us a ".bindings" file. The following lines of code is used and we are not able to connect to it. Can somebody help us in completing this task?
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");          
    env.put(Context.PROVIDER_URL, "file:///c:/Temp");
    String QCF = "CPS.ECOMM.QCF";
    String TEST_QUEUE_S = "SYSTEM.JMS.D.CPSI.ECOMM";
    initialContext = new InitialContext(env);
    queueConnectionFactory = (QueueConnectionFactory)initialContext.lookup(QCF);
    queueConnection = queueConnectionFactory.createQueueConnection();
    queueConnection.start();
    queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    queue = (Queue)initialContext.lookup(TEST_QUEUE_S);
    QueueReceiver receiver = queueSession.createReceiver(queue);
    Message msg = receiver.receive();
    TextMessage txtMsg = (TextMessage)msg;
    String result1 = txtMsg.getText();
    ....

    The .bindings file is part of the structure expected by the RefFSContextFactory in the directory that provider.utl points to.
    Create a directory containing only the .bindings file and point the PROVIDER_URL at the directory.

  • How do i use a flash gallery with xml file

    Hi there....
    I am trying to include a flash banner template i have downloaded into my webpage using dreamweaver CS5.
    the template comes with an XML file with it in which you can reference your own images etc..
    I understand how to inclued the Flash object into my webpage by insert-swf- and then navigating to the .swf file...
    what i am having trouble with is understanding how this refereces the XML file in the download pack as i cant find any references to it in the code??
    I am just getting the grey flash box with no images appearing when i hit play etc..
    sorry if this is a really silly question!!
    mart

    If you are using DW to insert the Flash, that could be the problem.  It is not reliable resource in that respect (my opinion, but a shared one). I normally only use Flash to create the code and copy/paste it into my html page.  Did you get an fla file with the set, and do you have Flash?
    What you should do is test the swf file by itself to make sure it works.   Normally you can link directly to the swf file to check that out.  Just type in the url to the swf file and see if it plays.  There may be some other setup required that maybe an accompanying set of instructions might explain.
    Also, if you have a link to the html file you uploaded, providing it here may help in getting things resolved.

  • Populating PDF Form with XML File.

    Hi,
    I need my PDF form to be populated with the data in XML file.I've created a data connction to the file and binded the values to my fields.When I've opened the form in Reader/Acrobat i'm not able to see any date on the form.
    Currently,I'm using "xfa.host.importData()" to import an XML file on a button click.It is working fine.But I need to load the data on Form Load itself.
    I'm relatively new to PDF technologies.Any help would br gratly appreciated.
    Thanks in Advance.

    The binding feature in designer just allows you to describe how to map fields to data elements, not to actually populate them autotmatically. You would need to have a server component to merge data / pre-populate or a script on your reader-enabled form to load the data. You can use xfa.host.importData() in DocReady event if you want it to prompt on loading the pdf. Earlier events in the chain wont work until the form has been properly loaded.

  • Difference in registering versus not registering an XSD with xml files

    SQL> select * from v$version ;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for 64-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    With the help of members of this forum, I have been able to successfully register an XSD, save xml files into tables with xmltype columns, and select data from the xml files. For this I am very grateful.
    Forgive me not knowing this but, I can currently do these two things.
    1. Register an XSD and create a table with an xmltype column based off of this XSD. Insert xml into this table that matches the format of the xsd.
    2. Insert an xml document into a table with an xmltype column without registering it's corresponding XSD and then select data from this table too.
    Is there a performance benefit to registering the XSD the xml file is based off of, when it comes to inserting into the table or selecting data from the tables after the insert ?
    The xml files we insert could be anywhere from 1MB to beyond 500MB+ in size, as it depends on the amount of audit data generated. Is there a sweet spot as to how big or small you would keep the size of the xml files to avoid performance issues. If we need to do an audit in the future we would be inserting all the generated xml files into a table and run selects on that table. This data could be anywhere from a day's worth to everything from the time the system went live.
    We want to avoid any over head associated with XSDs if they do hinder performance.
    Thanks for your help in advance.
    Wally

    The xml files we insert could be anywhere from 1MB to beyond 500MB+ in size, as it depends on the amount of audit data generated.Schema-based XMLType (aka Object-Relational or structure storage) is exactly what you need in this case.
    - When you register a schema within the database, Oracle automatically creates a set of object types, collections and tables that map the XML structure to the SQL data model.
    - When you insert an XML instance document in the schema-based table, the XML content is then stored in the underlying relational structure.
    - When you issue queries against the XMLType table, for example using XQuery and XMLTable, Oracle automatically rewrites the query to access the relational objects where the data resides. This process results in very efficient queries whose performance compares to queries against regular tables. The Object-Relational structure also supports indexing.
    The documentation has whole chapters about it :
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb05sto.htm#g1070409
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb_rewrite.htm#BABHJECG
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb06stt.htm#BABGFCFG

Maybe you are looking for