How do I get XML references to compile?

I am trying to compile a java file via JDeveloper that uses the XML utilities and I am getting compile errrors. Any suggestions as to how I can get this to compile? I think my classpath isn't correct, but I'm not sure what I need to include.
Thanks
Kathy
Compile Error
=-=-=-=-=-=-
Error:(192) identifier javax.xml.parsers.ParserConfigurationException not found
Error:(146) class DocumentBuilderFactory not found in class CommandProcedures.CmdProc
Error:(146) variable DocumentBuilderFactory not found in class CommandProcedures.CmdProc
Errror:(147) class DocumentBuilder no found in class CommandProcedures.CmdProc
Code Snippet:
=-=-=-=-=-=-=-=-
I've included the following java packages in my program:
import javax.xml.parsers.*;               
import org.w3c.dom.*;
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
     DocumentBuilder builder = factory.newDocumentBuilder();
     Document document = builder.parse(cpFile);
catch (javax.xml.parsers.ParserConfigurationException e){
     System.out.println ("Caught javax.xml.parsers.ParserConfigurationException: " + e);
catch (java.io.IOException e) {
     System.out.println ("Caught java.io.IOException: " + e);
catch (org.xml.sax.SAXException e) {
     System.out.println ("Caught org.xml.sax.SAXException: " + e);

[list=1]
[*]Download the Oracle XDK for Java. The latest release is 9.2.0.3 Production.
[*]Create a library in JDeveloper9i with a name like "Oracle XML Parser 9.2.0.3" and with C:\xdk9203\xdk\lib\xmlparserv2.jar in the library's path.
[*]Add the new "Oracle XML Parser 9.2.0.3" to your project's library list.
[list]
and you should be in business.

Similar Messages

  • How can we get the reference of XML element on frame as soon as frame is created in Document?

    Hi,
    When ever we copy any text/table cells from any frame, and paste it directly on page, A new Frame is created and the pasted text is placed inside that frame.
    Now to capture this frame creation, We have two possible solutions:
    1) Attach Observer on Document 'kDocBoss' on IID_IHIERARCHY_DOCUMENT and it will notify on frame creation in update function.
    2) Notification event on new story creation.
    Now, I need to perform some changes in the newly created table, for example:
    a)  Need to delete XML tags from newly created frame
    b)  Need to perform action on table cells if any in the created frame.
    But the problem is, when the event comes, I can access basic properties of frame like it's name, type etc, but it does not give me the
    XML element on frame or tables in frame until the event is com pleat.
    I know it's quite a specif requirement, but I guess many of you might have faced these kind of challenges, while processing the event.
    Does any one has any idea how I can get the reference of XML element on frame as soon as it is created?

    Hi Kapoor,
    please give also others a chance, and excuse that I get up late on vacation ;-)
    Anyway, I'd keep the story creation responder to recognize the copy, then combine it with an observer on the backing xml story to catch the associated XML element which is created there. Something like below:
    UIDRef xmlStoryRef = Utils<IXMLUtils>()->GetBackingStore(doc);
    InterfacePtr<ISubject> subject ( xmlStoryRef,IID_ISUBJECT );
    subject->AttachObserver(observer,IID_IIDXMLELEMENT,observer->GetAttachIID());

  • How can I get a reference to the Local interface of a EJB 3 session?

    Hi,
    How can I get a reference to the Local interface of a EJB 3 session?
    My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a reference
              processor = (IItemProcessorRemote)initialContext.lookup(IItemProcessorRemote.class.getName());but if I also look up the local interface in th eclient using this:
    processorLocal =(IItemProcessor)initialContext.lookup(IItemProcessor.class.getName());I got errors like the following, do you know why? Thanks a lot!
    Exception in thread "main" javax.naming.NameNotFoundException: sessions.IItemProcessor not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
         at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)

    BTW, findItemByTitle(String title) is a business method in my ItemProcessor session bean.
    public String findItemByTitle(String title) {
              AuctionItem item;
              String result = null;
              try {
                   Query query = entityManager
                             .createNativeQuery("SELECT i from AuctionItem i WHERE i.title LIKE : aTitle");
                   query.setParameter("aTitle", title);
                   item = (AuctionItem) query.getSingleResult();
                   result = item.toString();
              } catch (EntityNotFoundException notFound) {
              } catch (NonUniqueResultException nonUnique) {
              return result;
         }

  • Moving controls about on a VI's front panel. How do you get a reference to a 'grouped' set of controls?

    Basic problem (annoying, if not disasterous - but common - at least for me):
    When you are trying to sktick two different VIs together and you copy the block diagram of one to the other, it sticks all the controls in the middle of nowhere.  THen you have to spend about 10 mins dragging the controls screen by screen from one end of the diagram to the other - sometimes over 15 screens.  Surely there has to be a better way?
    ** Incidentally you might think that labview would have these sort of settings in the 'properties' of the control on the right click menu - but no joy.
    I guess the obvious thing is that you can write a VI which will get a reference for a particular control and then say set it's position (x,y) to zero.  Only thing is that generally there will be a selection of controls, and often they will be organised nicely - after getting them to zero you don't want to have to reorganise them again.  I tried grouping the controls, but then the problem is - how do you get a reference to a group of controls.  If you move one of them it doesn't keep the spatial arrangement.  At this point i have got lost - and easily spent more time than it is worth fixing this problem.
    Any thoughts?
    Solved!
    Go to Solution.

    If I understand you correctly, when you copy the block diagram from the second VI to the first, the controls of the second VI end up in far left field on the front panel of the first, correct?  I think these added controls will maintain their relative locations among themselves so you should be able to find them all as a group out in left field. Then it's simply a matter of how to get them to enmasse join the rest of the controls on the front panel. There are a couple of easy ways to do this. There is a button on the toolbar at the top of the front panel window that allows you to reorder/group/ungroup front panel objects. You can select all controls/indicators out in left field and "group" them together. (As an alternative, you can also drop them all onto a tab control which will act as container for them). Then you select this group and with it selected scroll back over to the existing front panel and find and ALSO select (hold down shift key) a control/indicator from the existing group too. Then with BOTH the existing control selected and the new group (or tab control with the new group) selected you use the ALIGN buttons to quickly bring a corner of the new group into alignment with the old control. At that point you can ungroup the new stuff and move it where it needs to be. 

  • How can I get a reference to all controls on a front panel of one type )for example of the type Text Ring?

    I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?

    > How can I get a reference to all controls on a front panel of one type
    > )for example of the type Text Ring?
    >
    > I'd like to set the strings[] property of all the Text Ring controls
    > on a front panel at once without creating a property node for every
    > text ring. How can i do that?
    This is likely more complicated than making property nodes for each
    ring, but you can do it. Make a subVI that takes in a panel reference,
    reads the array of control references, loops through them looking for
    rings, and modifying the Strings[] property on each ring.
    The part of this that will probably be the least obvious, when you
    have an array of control references there are two ways to find out
    if an element is a ring. You can read the classID and compare it
    to the cla
    ssID of a true ring control. An alternative is to cast
    the control reference to a ring control using a Cast to more specific
    node and wire the error out to a case structure. The error case is
    where the objects that aren't rings will go. The success case case
    where you will have a valid ring refnum that you can use to modify
    the strings.
    Greg McKaskle

  • How can I get xml data from KM?

    Hi guys,
    how can i get a xml data from KM?
    I saved an xml document in KM, and I want to read its content. How can I get this document?
    Using
    DocResource = (IResource) resFactory.getResource(RID.getRID("Document/ Path"),resContext)?
    I want to know which kinds of API of KM are responsible for this.
    Thanks in advance
    Regards,
    Liying

    Hi Liying
    use this code.
    try {
                   IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
                   IUser sapUser = wdClientUser.getSAPUser();
                   com.sapportals.portal.security.usermanagement.IUser ep5User =
                        WPUMFactory.getUserFactory().getEP5User(sapUser);
                   IResourceContext resourseContext = new ResourceContext(ep5User);
                   IResourceFactory resourseFactory = ResourceFactory.getInstance();
                   RID pathRID =
                        RID.getRID(
                             "/documents/"(Path to folder where ur file is"");
                   ICollection collection =
                        (ICollection) resourseFactory.getResource(
                             pathRID,
                             resourseContext);
                   IResourceList resourceList = collection.getChildren();
                   IResourceListIterator resourceListIterator =
                        resourceList.listIterator();
    while (resourceListIterator.hasNext()) {
                        com.sapportals.wcm.repository.IResource resource =
                             resourceListIterator.next();
    try {
                             /*File from KM Reading*/
                             InputStream in = resource.getUnfilteredContent().getInputStream();
                             ByteArrayOutputStream out = new ByteArrayOutputStream();
                             byte[] buffer = new byte[4096];
                             int bytesread = 0;
                             while ((bytesread = in.read(buffer)) != -1) {
                                  out.write(buffer, 0, bytesread);
                             String dataToBeConvertedToXML = out.toString();
    catch(Exception e){}
    catch(Exception e){}
    Award points if found usefull.
    I suppose you have used KM sharing reference in ur application
    Regards
    BP

  • How can i get the reference to Controls from VI-reference

    Hello,
    i have a VI with ~5 controls on it.
    And with the Object "Current VIs path" and "Open VI reference" i can create a reference to the current VI.
    How can i create now a reference to the controls? (Starting with VI-reference?
    Of course i know how to create directly a reference from a control.
    My idea wasm that there areperhaps properties like:
    - Number of controls
    - Name of control
    - Type of control (string, bool. number...)
    Is this somewhere there and i just dont find it?
    Thanks for your help

    Once you have the VI Refnum, it's a two-step process. Wire the VI Refnum into a property node and get a reference to the Front Panel. Output the Front Panel reference into another property node and select the property Controls[ ], which outputs an array of references for all the controls on the front panel.
    Message Edited by Jarrod S. on 04-20-2007 11:06 AM
    Jarrod S.
    National Instruments
    Attachments:
    get_ref.PNG ‏5 KB

  • How can I get a reference to ApplicationModule in a servlet

    I know that I can easily get the reference to my ApplicationModule in any JSP using the tags but I need to use a servlet instead of a JSP.
    Would you please let me know how I can a reference to my ApplicationModule in my Servlet? Every function that I am trying to use has been depricated.
    I appreciate any help.

    The following code will instantiate a module for you...
    public static ApplicationModule getGenericApplicationModule(String sAppModule, String sConnection)
    throws Exception {
    if (am != null)
    return am;
    sName = sAppModule;
    sConn = sConnection;
    Hashtable env = new Hashtable(2);
    env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
    Context ic = new InitialContext(env);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(sName);
    am = home.create();
    am.getTransaction().connect(sConn);
    return am;
    Problem in a servlet environment is that this is not pooled so you want to use the pool manager like this...
    public static EDMSMgrImpl getPooledApplicationModule(String sPoolName) throws BaseBc4jException
    ApplicationPool aPool = getApplicationPool(sPoolName);
    try
    return (EDMSMgrImpl)aPool.checkout();
    catch (Exception e)
    String message = "Exception checking out pool: "+sPoolName+" : "+e.getMessage();
    LogBroker.getInstance().severe(_instance,message ,e);
    throw new BaseBc4jException(message, e);
    protected static ApplicationPool getApplicationPool(String sPoolName) throws BaseBc4jException
    ApplicationPool aPool = PoolMgr.getInstance().getPool(sPoolName);
    if (aPool == null)
    try
    createPools();
    aPool = PoolMgr.getInstance().getPool(sPoolName);
    catch(IOException ioe)
    String message = "IOException thrown in EDMSAppModuleHelper.createPools" + ioe.getMessage();
    LogBroker.getInstance().severe(_instance,message, ioe);
    throw new BaseBc4jException(message, ioe);
    if (aPool == null)
    String message = "got a null result when getting pool: "+sPoolName;
    BaseBc4jException e = new BaseBc4jException(message);
    LogBroker.getInstance().severe(_instance, message, e);
    throw e;
    return aPool;
    Where a pool is created like this...
    sPoolName = poolElem.getAttribute(POOL_NAME_ATTRIBUTE);
    sAppModule = poolElem.getAttribute(APP_MODULE_ATTRIBUTE);
    sConnection = poolElem.getAttribute(CONNECTION_ATTRIBUTE);
    stateFull = poolElem.getAttribute(STATEFULL_ATTRIBUTE);
    sClass = getPoolClass(poolElem);
    if(PoolMgr.getInstance().getPool(sPoolName) == null) {
    Hashtable info = new Hashtable();
    info.put(JboContext.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    info.put(JboContext.DEPLOY_PLATFORM, "LOCAL");
    info.put("IsStateLessRuntime", stateFull);
    PoolMgr.getInstance().createPool(sPoolName, sClass, sAppModule , sConnection, info);

  • How do I get the reference numbers for cursors in a waveform graph (other than through an event structure)?

    I want to control cursors in a waveform graph programmatically.  I've tried using the "Cursor list" property, modifying the cursor clusters and writing the results back to the cursor list property, but this only works sporadically.  Modifying the cursors by ref number works well, but you have to get the refnumbers  from an event structure during a cursor event.  Is there any way to get cursor reference numbers aside from through an event structure?
    Thanks!

    Hi barryinbo,
    On the controls pallette, go to refnums> Control refnum>Control. Then right click the refnum and point to select vi server class>Generic > and you will see a cursor there. This will be a "loose typed refnum" but you can right click the refnum to include data type. An alternative is to drag a cursor to the refnum, this will make it strict typed.
    Hope this helps
    Chris Co.

  • How do i get xml into my iWeb podcast?

    i have my iWeb podcast on the iTMS and i didn't have a artist name in it, so i am wondering how i submit the xml i got from the podcasters technical support. i really want to put some of th new stuf on it.

    figured it out

  • How can I get XML cross-references to translate to Structured FrameMaker?

    I've been using Structured FrameMaker from the beginning, and have designed many EDDs, and about 10 years ago I did some translation of SGML into Structured FrameMaker (7.2) which worked well.
    Now, (with FrameMaker 10), I've had to design an EDD to translate XML documents into Structured FrameMaker.
    In my EDD I've a CrossReference element called XRef; this has an attribute of ID, which in turn has a value of IDReference and has Special AttributeConrols of ReadOnly.
    My target elements in the EDD all have an ID attribute with a value of UniqueID.
    My XML document's target xref element has  an attribute of linkend, and in XML this works as I'd expect.
    When I pass the XML file through the EDD/Template, everything works except that I get an ID = no value, which, of course, results in no display of the cross-reference data in the document.
    Oddly, in structured FrameMaker, my element of link, with an attribute of linkend, works as it should, and displays the data.  It may not be important, but the value for linkend is IDReference not UniqueID, and this displays correctly (I changed this attribute's value to Unique ID in my EDD and it made no difference to the XRef value in my document).
    After making all these EDD changes, I've been careful to save the changes, import them to all files in my book and finally update the book.   Everything hangs together - except, of course, that the cross-reference doesn't work.
    I'd sincerely appreciate any help or advice other users might have because I'm quite frankly stumped.

    Russ,
    Sorry about the delay in replying; got sidetracked trying to fix some FrameMaker 10 problems; on occasion, it laughs and crashes if we copy an element in a document and paste it to somewhere illegal.  This doesn't happen all the time, but it might be something someone might do, so it was interesting to know.
    Anyway, back to cross-references.
    In our r/w rules we have:
    "linkend" is fm attribute "ID";
    Can we also have a similar line under the cross-reference element as:
    element "xref"
         is fm cross-reference element "XRef";
         attribute "linkend" is fm property cross-reference id;
         attribute "role" is fm property cross-reference format;
    At the moment the second line is:
    .....attribute ID is fm property cross-reference id;
    I tried adding the attribute "linkend" is fm property cross-reference id; (so that I had both linkend and ID) bit but this made no difference.
    In general use cross-references work, in that it picks up data in one place in the document, e.g. WorldWideWeb, and repeats it elsewhere.   So in our xml file we have a link element with an attribute linkend which, when it's processed (ignoring the handshake code used to link the two - which could be something vague like 12345vvdog), repeats whatever is the target.
    Conversely, for a cross-reference, in xml they use an xref element which also has a linkend attribute (similar mysterious secret handshake behind the scenes) which is deemed to point to a list of references.   This looks like it might be the stumbling block in that it links to an area in the xml document which is used as an internally generated list of references.  Apparently this is only built when the xml book equivelent is finalised, so is not, like the link and linkend coupling described above.
    I've passed this back to the xml people, and they are investigating a different way of preparing their cross-reference to a list of references (I'm now thoroughly confused with all these references - good thing the weekend's just around the corner).
    I appreciate all you help and advice, I'll admit that this is a lot more difficult to understand than straight-forward EDD element creation along with their respective attributes.   Life used to be so much more simple back then!
    In sum, what I thought I was doing was allowing an ID attribute with a value of IDReference in my elements, this was deemed to allow for FrameMaker cross-referencing.   In Structured FrameMaker, on its own, this works just fine; it all fell flat on its face when trying to import xml.   I tried to see whether the xref element's ID attribute could also be a UniqueID, but as just about everyone has said, this is a silly idea.   I was just trying stuff to see whether it might make a difference - you'll not be surprised to see that it didn't!
    For the moment, I have attributes called ID with a value of IDReference, and I understand you're all suggesting to leave it at that.
    If I understand correctly, I could eventually use an IDRef attribute if I wanted a UniqueID value to be used, though I'm not sure what a UniqueID is used or useful for, so will file that for future use.
    Again, thanks for the advice and help.
    Chris

  • How do I get albums out of "compilations'?  On one of my machined I can go to individual songs, "get info" and uncheck "part of a compilation", but that does not work on my office machine.  I would also like to be able to do this in  a group for an album,

    I don't know how so much of my music got lost by being labled "compilations"?  I would like to go back and catagorize it as it should be but the screens are gray and will not let me alter them as to the catagory I wish them to be in (or even the genere they are already labled?  On my home machine I can (by individual song) "get info and uncheck "part of a compilation" and when this is finished the album goes to the genere as it is listed?  Frustrating bit of hous keeping.  Help and Thanks  Chuck

    The Get Info. fields show up gray if the files is locked and iTunes knows it can't edit the file. Make sure the files are not marked as read only and, if necessary grant both your account and system full access to all files and subfolders of your media folder.
    You can set Part of a Compilation for multiple tracks from the Options tab of Get Info.
    See Grouping tracks into albums for tips on getting iTunes organized.
    tt2

  • How do I get a reference to the SecurityServices instance in my web appl?

    I would like to use the audit provider of weblogic to log audit event that I send from my servlet. For writing a auditevent I need a reference to the AuditService instance. How do I obtain that? IS there any static class through with I can get references to the security services?
    Lakshmi

    Pete,
    The Thread class's public static Thread currentThread() method will return a reference to the Thread object that represents the thread of execution that is live when the method is invoked. More simply, it provides a reference to the currently executing thread.
    So you could use this as a key in a hashtable to represent which thread has a lock on some entity:
       // "hash" is a hashtable
       // entity is an Object representing something that is locked (like
       // a record number or a resource identifier)
       hash.put(Thread.currentThread(),entity);I think this answers your question, unless I misunderstood you.
    Damian

  • How can i get xml data from html

    Hi
    i need to submit data from an html form to server via xml.
    ( ie data shold be in xml format instead of POST/GET methods )
    how can i can i make this happen ?
    Renjith.

    read the excellent suggestion from mochamaniac (reply 2 of 5): http://forum.java.sun.com/thread.jsp?forum=34&thread=303120
    ps. next time run a search on the forum prior from posting ;-)

  • How Can i Get the reference of currently opened System form

    Hi Experts,
    I have a scenario in which i need the reference of currently opened SAP form The code is like
                                                SAPbobsCOM.ProductionOrders op = null;
                                                op = (SAPbobsCOM.ProductionOrders)SBO_Company.GetBusinessObject(BoObjectTypes.oProductionOrders);
    now i want some logic like
    op=currently opened production order in sap
    so that i can edit the fields of that order
    Thanks Amit

    Hi Amit
    You can access the currently opened form using this
    for getting the active form
    Dim oForm As SAPbouiCOM.Form= Sbo_Applicaion.Forms.ActiveForm
    for getting the form using form type and count
    Dim oForm As SAPbouiCOM.Form= Sbo_Applicaionl.Forms.GetFormByTypeAndCount("133", 0)
    Hope this helps
    Regards
    Arun

Maybe you are looking for

  • Error while creating Contingent worker by api

    we are going to create contingent worker by HR_CONTINGENT_WORKER_API.create_cwk api,but i am unable to create record and getting error "A person type with a system person type CWK must be specified", Pleae advice,what could be mistake.

  • Location tracking

    Hello (We are getting a site survey) Please see attached document I need clarification on Location tracking I am putting in an 802.11b/g wireless network to provide good data throughput for wireless clients I also have a functional requirement to loc

  • Installation Issue : Oracle Service Registry 11.1.1 on weblogic 11g

    I am getting installation error while trying to install the oracle service registry 11.1.1 on weblogic 11g . below is the helpful " :) <: <: " message that I see the in the installation log.I dont know why oracle could not put useful installation err

  • 10.4.11 usb related hangs on macbook pro w/alum keyboard

    Ever since upgrading to 10.4.11 & a new aluminum keyboard (+ mighty mouse) my system is VERY unreliable hanging almost daily or repeatedly... It is very troubling & surprising - these are the only two changes... Wake from sleep has had issues as well

  • Disturbs iCloud sending emails from Outlook?

    I notice the last time, that some emails don't wanto to be sent from Outlook 2003. I read somewhere something about iCloud's impact in Outlook which may cause that email stuck. Who can help me?