Getting schema validation working in Eclipse with Coherence 3.7.1.0

Just wondered if anyone had got schema validation to work in Eclipse (3.5 - Galileo) for Coherence 3.7.1.0?
The Coherence developer docs show that you should add sections like this:
<pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config
coherence-pof-config.xsd">
However, if I use that "shortened" form (for cache, pof, etc. configs) Eclipse gives a warning "No grammar constraints (DTD or XML schema) detected for the document." and the schema validation fails to work (i.e. no "auto pop-ups" when entering content, and rubbish content is gladly accepted.)
In Coherence 3.7.0, I'd used the following "extended" form (note the longer "schemaLocation") to get things working correctly:
<pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config
http://xmlns.oracle.com/coherence/coherence-pof-config/1.0/coherence-pof-config.xsd">
Also note that entering the "http://xmlns.oracle.com/coherence/coherence-pof-config/1.0/coherence-pof-config.xsd" in a web browser opens the xsd, as you'd expect.
Now...
I'm looking at the PofAnnotationSerializer in 3.7.1.0 and the "auto indexing" option. The declaration in my pof file for it fails as the "class" (or fully-qualified java.lang.Class version) in the "init-params" section isn't valid. If I look at the xsd on the url above, this is indeed the case, that option does not appear.
However, if I look at the POF xsd in the coherence.jar file for 3.7.1.0, the "class" option has been added, and has a newer 'version="1.1"' added to it's schema declaration. So I therefore tried to point my "extended" declaration to point to " http://xmlns.oracle.com/coherence/coherence-pof-config/1.1/coherence-pof-config.xsd", in order to get schema validation to work in Eclipse with this new schema. Unfortunately that url doesn't exist - you get a "Content Server Request Failed" error.
So, I guess my question is, is there a way to get myself pointed at the 1.1 versions of the xsd's so I can have schema validation working in Ecliipse? Or is there another workaround (did a bit of Googling, but that mainly seemed to be people switching validation off to simply get rid of the error...)
Cheers,
Steve

Cheers, Dave.
I had in fact had a try at extracting the xsd and pointing to it directly, and that did indeed work (had to do this following the same steps shown below using an "entry" in the XML Catalog.)
I had a look around at some of the other "entries" in Eclipse by default and noticed that they actually refer to xsd's directly within the jars, hence saving the extraction step and keeping screw-ups down to a minimum; a bit of playing around to get the syntax right and I finally managed to get it working.
For those who are interested (NB. my Coherence 3.7.1.0 install is in a directory "c:\coherence3.7"), the steps are:
In Eclipse, Go to Window->Preferences->XML->XML Catalog. Then create a "User Specified Entry".
In the "Location", add (without the quotes): "jar:file:/C:/coherence3.7/coherence/lib/coherence.jar!/coherence-pof-config.xsd"
In the "Key Type", add (without the quotes): "Namespace Name"
In the "Key", add (without the quotes): "http://xmlns.oracle.com/coherence/coherence-pof-config"
The schema validation now works fine. Eclipse shows no warnings/errors, and the auto-complete and validation are fully functional.
Still, it would be nice to get the "1.1" urls updated to point to the schemas on the Oracle site, to avoid all our developers from having to make these changes (and of course avoid them pointing at an older, out-of-date local install of coherence.)
Cheers,
Steve

Similar Messages

  • Can't get iphoto to work after tampering with library in Finder

    I think I made a big mistake when I tampered with the iphoto library in Pictures in Finder.
    Now I can't get iphoto to work. All the pictures are gone in iphoto, the spaces are there but they are blank.
    When I open iphoto it goes into the mode (little spinning wheel appears) where I have to "force quit".
    Any supggestions on what I can do? Thanks.

    The list that shows is just data files and such.
    You can burn the entire iPhoto Library folder.
    You can burn each Year folder or any other variation.
    This is my workflow. The reason I do it the way I describe is because I want a backup of just the photos and video clips I take so I can copy them to a partition of my external drive and burn them to disc. On the other partition I backup my entire users folder
    When iPhoto 5 first came out I really think it was programmed to import the smaller 30 sec video clips that cameras were taking at the time. Since then, digital cameras, at least my Canon S2 can take clips as large as your memory card can hold. The first time I tried to download my images and movie clips with my new camera, iPhoto stalled at the movie clips. I wasn't going to take any chances messing up my iPhoto Library so I started using Image Capture to download all my images and Movie clips. I actually like doing it this way a lot better. My movie clips are downloaded into my Movies folder where I then put them in a dated folder.
    My photos are downloaded into my Pictures folder, where I then put them in a dated folder. I import the dated folder into iPhoto. I also keep all dated folders from photo downloads in the Pictures folder till I get enough Movie folders and Photo folders to fill a DVD. I burn them and then delete them from the hard drive.
    This way I have the photos in iPhoto and I also have just the photos backed up to DVD.
    The Movies I keep on the hard drive in their dated folders until I use all the clips for my iMovie projects for the Year. I then make sure they are all burned to DVD, then I delete those from my hard drive.
    Using Image Capture to download images and video clips:
    Open up Image Capture which is found in the Applications folder.
    When it is opened, go to Image Capture/Preferences
    Under the General button choose
    Camera: When a camera is connected, open Image Capture.
    The next time you connect your camera Image Capture will open.
    In the window that opens you will see an Options button. Click on that button to set your options.
    To find out more about Image Capture (it can do a lot more) Click on Help in the menu bar when Image Capture is open.
    iPhoto: How to Change the "Open Automatically" Preference
    If you find you can't change any of Image Captures preferences or can't access any drop down menus or they are greyed out, check to make sure Image Capture is loose in the Applications folder and not within a sub folder.
    Here is info on backing up your photos:
    Backing up your iPhoto Library
    1. Burn the iPhoto Library folder in the Finder to a CD or DVD
    This method will give you a burned iPhoto Library folder that can be copied back to your computer to replace a damaged library. You can also use this method to backup an old library when you want to create a new Library to use as your current library.
    insert a blank CD into your internal or external CD-RW drive and copy the iPhoto library to the CD icon on your desktop. When you drag the CD icon to the Trash/Eject button in the Dock, you are given the option to burn the CD. Click Burn and the CD is created. To burn a DVD backup of your digital images, use a DVD and a SuperDrive-equipped Mac
    The easiest way to burn an iPhoto Library folder in the Finder that is larger than 4.7 gig to fit on one DVD is to burn sections of the folder.
    Drag the iPhoto Library folder to the desktop
    Double click the folder to open it.
    Drag each Year folder to the desktop.
    You should be left with the iPhoto Library folder containing all the data files, and the Year folders.
    Combine whatever year folders that amount closest to a DVD burn size on one DVD. Make sure that you have burned all the Year folders, then the iPhoto Library folder with all the data files.
    If you ever need to use this backup, insert the DVDs into your computer and copy the folders to the desktop. Put all the Year folders back into the iPhoto Library folder. Then put the iPhoto Library folder back into the Pictures folder.
    You can also check out applications for disc spanning:
    Disc-spanning software
    DropDMG
    Toast
    Dragon Burn 4
    BackityMac
    Retrospect Express-comes with some external drives
    Retrospect for Macintosh Desktop Edition
    2. Copy the ENTIRE iPhoto Library to an external drive formated for a Mac. Do not use this as your only back up as the external can also go bad.
    3. Copy the ENTIRE iPhoto Library to your iPod in disk mode
    4.Creating your own CDs and DVDs for viewing in iPhoto
    This method is a great way to back up Albums of older photos or even your entire library if it is small enough to fit on a DVD. This method will give you a library that will mount within iPhoto in the source column to be viewed. To import any images from this library they need to be dragged into your library in the source column.
    If you just want to backup the images in your library:
    1) Within iPhoto select the images, albums or rolls you want to backup. Go to Share>Export and export them to a newly created folder on the desktop. Follow the directions in the next link.
    Creating a CD or DVD to be viewed in Windows or by a photo processing company
    1.. If you backed up the entire iPhoto Library by burning within iPhoto or burning the folder in the Finder, make sure the burned copy is a good working copy before you delete the iPhoto Library folder in the Finder. You delete the iPhoto Library in the finder by dragging it to the trash when iPhoto is closed. When you next launch iPhoto it will create a new empty library for you to start anew.
    2. If you burned just the images, be aware that that is all you are archiving. No metadata will travel with the images such as comments, keywords, etc.
    You can then delete those images within iPhoto by highlighting them and hitting the delete key, then empty iPhoto's trash. Do this often and in groups so iPhoto will not choke on too many images.

  • TS2771 Reset ipod 4 and still cannot get speaker to work... with headphones it works, but without headphones, nothing.  Apple reset it and said hardware problem, but nothing else.. Any ideas??

    Any ideas to get speaker on ipod touch to work.. took to Apple store, for them to wipe it out,to confirm what I said is correc... they said Hardware Issue, and nee a new one, b/c they have no idea.
    Works with headphones in???

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem (you may have done these)
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • Hello I Have a problem that i cant solve i have itunes 10.2 went to 10.5 but i cant get anything to work comes up with (could not access network location ).I have checked my firewall settings tweaked as much as i can but not able to install itunes nor qui

    Hello Im Having A Problem With Itunes im Not Able to reinstall itunes at all nor quicktime and bonjour service is not working either .i have tried tweaking my firewall but to no avail hoping someone can help me cos apple sure cant typical like politicians they sway away from the problem and blame someone else ?.

    Well you need to understand the behavior of h-reap or what it's called now, FlexConnect. In this mode, the clients are still remembers on the WLC until the session timer/idle timer expires. So switching between SSID's in h-reap will not be the same when switching when the AP's are in local mode.
    Take a look at the client when connected in FlexConnect in the WLC GUI monitor tab. Thus will show you what ssid and vlan the client is on. Now switch to a different ssid and compare this. It's probably the same because the client has not timed out. Now go back to the other ssid and look again. Now on the WLC, remove or delete the client and then switch to the other ssid at the same time. Or switch SSID's and then remove the client. The client will join the new ssid and in the monitor tab, you should see the info.
    There is no need to have clients have multiple SSID's unless your testing. Devices should only have one ssid profile configured to eliminate any connectivity issues from the device wanting to switch SSID's.
    Sent from Cisco Technical Support iPhone App

  • HT4972 can't get mail to work on ipod with iOS5

    Updated my iPod to iOS5.  Set up all the iCloud details.  Settings seems to indicate that mail is on and that all is working well, but my apple mail account is not coming up.  It asks for my Apple i.d. and password, but then tells me iCloud is already set up when I enter it.  Help!  Just want to be able to check my mail on my iPod!

    Did you set up the Mail app as follows:
    Mail
    If you want to check your iCloud Mail, you can do so by visiting icloud.com from a Mac or PC (as long as it meets the browser requirements for icloud.com). Alternatively, you can configure a mail application that supports IMAP via SSL for use with iCloud Mail. More information is available here.
    Above from:
    iCloud: What if my device or computer doesn't meet iCloud system requirements?

  • Cannot get ipod to work or sync with Itunes.

    I have tried to connect my ipod to Itunes several times and it does not work.It just a red circle with an x in it.Can anyone help me?

    Does it charge from the power outlet?  If not, try a different cable to see if yours is bad.  If still no luck it could be a bad dock connector and a visit to the Apple store genius bar will probably help.

  • Need to get game to work on macbook with snow leopard?

    Downloaded Civilization Vfrom the app store on my macbook pro with lion, then moved it (via flash drive) to my macbook with snow leopard. When I open it, it asks me for the apple ID I downloaded it with, but after that it never opens or stays in the dock. Its like its killed the second it opens. Is there a way I can force it to stay open?

    We need to know which model you have. To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info. When the System Profiler comes up check the Model Identifier. Then post that information back here.
    Civilization V Minimum System Requirements
    Operating System: 10.6.8 (Snow Leopard)
    CPU Processor: Intel Core 2 Duo (Dual-Core)
    CPU Speed: 1.8 GHz
    Memory: 512 MB
    Video Memory (VRam): 256 MB
    Hard Disk Space: 3 GB
    Video Card: ATI Radeon HD 2400 / Geforce 8600

  • Firefox will not open. NOT RESPONDING. have to force close. can not get it to work anymore even with a fresh download.

    firefox suddenly stopped working. would just say not responding. finally after several trys and re booting computer i threw it in the trash and eliminated it. i downloaded a fresh one and it still will not respond. i am very unhappy at this point. crappy safari still works but firefox will not.

    *Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    *Firefox 3.6.x: http://www.mozilla.com/en-US/firefox/all-older.html
    *http://www.mozilla.com/firefox/7.0/system-requirements/
    *http://www.mozilla.com/firefox/3.6/system-requirements/

  • I can't get Dr Browns Image Processor Pro to work from Bridge with Photoshop CC 2014

    We use the wonderful DR Browns Image Processor Pro script a lot, but cannot get it to work from Bridge with PS CC 2014. When I select files in Bridge CC and then go to Tools> Dr Browns Services 2.3.1 > Image Processor Pro it just pops up an error message that says ReferenceError: photoshop is undefined.
    The actual script works fine if I launch it from Photoshop CC 2014 - just not if I load it from Bridge CC.
    I have unistalled it and re installed a few times, both manually and through the Extension Manager CC.
    I am using a Win 7 64bit computer.
    I assume there is some change in the scripting part that loads Photoshop from bridge but not sure. It worked fine in CC. Just not CC 2014.
    I opened the Dr Browns Services .jsx file but don't see anything obvious. This is the section related to the Image Processor Pro part:
      // This routine takes an array of files. If called by Photoshop,
      // it will invoke Dr. Brown's Process 1-2-3 with the files. If called by
      // any other app, it will send a BridgeTalk message to Photoshop
      // to invoke this routine with the same arguments.
    drbrownserv.process123 = function (files) {
    // Bring Photoshop to the foreground.
      BridgeTalk.bringToFront ("photoshop");
      // Create a new BridgeTalk message for Photoshop to invoke
      // Image Processor with the selected files
      var btMessage = new BridgeTalk;
    btMessage.target = "photoshop";
      btMessage.body = "drbrownserv.process123 (" + files.toSource () + ");";
      btMessage.send ();
      } else {
    photoshop.runActionCommand ('611736f0-9c46-11e0-aa82-0800200c9a66', files);
      catch (error) {
      if (error.number != 8007) // Don't report user cancelled errors.
      drbrownserv.alert (error);

    I copied that .jsx file to a new name "Xbytor Image Processor Pro.jsx" edit that file changed the string Dr Browns services to "Xbytor Image Processor Pro" then commented out all the code that added tools menu items but "Image Processor Pro" and I put that file into
    "C:\Program Files (x86)\Common Files\Adobe\Startup Scripts CC\Adobe Bridge" even though Bridge CC is 64Bit seems to use theat location.
    Bridge CC was updated by the creative clouds update and opens Photoshop CC 2014 now

  • Java Stored Procedure SAXParser XML Schema Validation

    Using Oracle XML Developers Kit 10.2.0.2.0 - Production.
    Attempting to validate using XML Schema in a Java stored procedure with the code:
                   if ( schemaDoc == null )
                        // Obtain default connection
                        Connection conn = new OracleDriver().defaultConnection();
                        OraclePreparedStatement stmt = (OraclePreparedStatement) conn.prepareStatement("SELECT XmlDocObj FROM XmlDoc WHERE XmlDocNbr = 2");
                        OracleResultSet rset = (OracleResultSet)stmt.executeQuery();
                        if ( rset.next() )
                             // get the XMLType
                             XMLType schemaXml = (XMLType)rset.getObject(1);
                             XSDBuilder builder = new XSDBuilder();
                             XMLSchema schemaDoc = (XMLSchema)builder.build(new InputSource(schemaXml.getInputStream()));
                   if ( inst == null )
                        inst = new ValidateCoreRequest();
                   ErrorHandlerImpl handler = inst.getNewErrorHandler();
    SAXParser saxParser = new SAXParser();
    saxParser.setXMLSchema(schemaDoc);
    saxParser.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    saxParser.setErrorHandler(handler);
    saxParser.parse(new InputSource(new StringReader(docStr)));
    if( handler.validationError )
                        errorMsg[0] = handler.saxParseException.getMessage().substring(0, Math.min(199, handler.saxParseException.getMessage().length()));
    Never reports validation errors in the XML. Although the XDK Programmers Guide states "...you can use
    the oracle.xml.parser.schema.XSDBuilder class to build an XML schema and
    then configure the parser to use it by invoking the XMLParser.setXMLSchema()
    method. In this case, the XML parser automatically sets the validation mode to
    SCHEMA_STRICT_VALIDATION and ignores the schemaLocation and
    noNamespaceSchemaLocation attributes." No validation seems to occur. I have tried to set an xsi:noNamespaceSchemaLocation attribute on the root XML node, but this results in URL errors if the URL is not valid or schema build errors if the URL is valid, but does not point to a real location.
    It appears that without a schema location attribute, no schema validation occurs. Using setXMLSchema() with a database source does not seem to cause the schema location attributes to be ignored. At least for Java stored procedures.
    Does XML Schema validation work in the database for externally referenced schemas?
    Thank You,
    Art

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jan Vissers ([email protected]):
    I have two schemas A and B. A contains a java stored procedure which calls a java stored procedure stored in B. Upon resolving the "A" Java Stored Procedures I get the following error:
    ORA-29545: badly formed class: at offset 3093 of Adapter.TFADPBeschikbaarheid.sendAanvraag expecting a class-oracle.xml.parser.v2.XMLDocument but encountered a class-oracle.xml.parser.v2.XMLDocument.
    ... Question:
    it is expecting something which it has in fact encountered... SO!!!! What is the error.
    Thx,
    Jan<HR></BLOCKQUOTE>
    Try this:
    Edit your XSU installation script located on lib directory of Oracle XSU's distribution:
    Find the line:
    loadjava -r -v -u $USER_PASSWORD xmlparserv2.jar
    Replace by:
    loadjava -r -v -g public -u $USER_PASSWORD xmlparserv2.jar
    And installs your Oracle XSU again.
    Best regards, Marcelo.

  • Is schema validation on JDK 1.3.1 possible ?

    Hi
    I'm trying to get an XML parser to work on 1.3.1 with Schema validation.
    API xerces.jar doesn't seem to handle schema validation in that version.
    I tried my project with xercesImpl.jar on 1.4.2_09 => schema validation worked well.
    I tried xerces.jar on 1.3.1 => doesn't run
    Is there a .jar that can handle schema validation in 1.3.1 ?
    Thanks
    Montelieri

    Hey.
    In looking at their site, xerces 1.4.4 is the latest release, and is the one that provides support for XML Schema Version 1.0. This version likely requires JDK 1.4.x. You should double check the readme file in the dl.
    http://xml.apache.org/xerces-j/index.html
    Not a definate answer, but hope it helps anyway.
    Cheers.

  • Schema validation

    We are migrating from 10g to 11g but seem to be getting schema validation errors. This did not happen on 10g - can I turn this validation off in 11g.

    We are migrating from 10g to 11g but seem to be getting schema validation errors. This did not happen on 10g - can I turn this validation off in 11g. I guess you are asking a question related to SOA but for which component - BPEL, Mediator, OSB...? Where exactly it is failing validation? Provide complete error detail along with the stack trace.
    Regards,
    Anuj

  • Anyone manage to get ColdFusion to work under Apache on OS X 10.10 Yosemite?

    Hi all I'm having great difficulty getting ColdFusion10 to work under Apache with OS X 10.10 Yosemite.
    Here is a description of what I've faced and a little of what I've done to solve my problem
    Problem 1
    Apache httpd.conf file gets messed up
    Solution: copy original httpd.conf file from /etc/apache2/original/ to /etc/apache2/
    Problem 2
    No Java Virtual Machine is installed!
    Solution: install Java (version 6 or 7 is better) you may only be able to install version 8
    Problem 3
    ColdFusion doesn't know where your Java installation is so find and update your ColdFusion configuration files
    /Applications/ColdFusion10/cfusion/bin/jvm.config
    /Applications/ColdFusion10/cfusion/bin/coldfusion
    /Applications/ColdFusion10/cfusion/runtime/bin/wsconfig_jvm.config
    change the source to whatever your current Java is and where it's located
    for example if you have version 7 installed:
    /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
    if you have version 8 installed:
    /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
    Problem 4
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: YOUR PATH HERE!
    Solution:Still working on this one!

    I think you should try Pacifist http://www.charlessoft.com/
    It's a .pkg installer for OS X, I used it several times to install software that Apple's Installer can't install. After installing Xsan 1.0 from your CD, just launch Apple's software update to upgrade to version 1.3. I think it should work (I didn't try it with Xsan, but this procedure works with other software).
    Khafaga

  • HAVE DOWNLOADED ADOBE READER ON MY HP COMPUTER, HOW CAN I GET IT TO WORK?

    I have downloaded ADOBE READER unto my hp computer, how can I get it to work?  easy with the reply...novice here.

    You write that you "downloaded" it, but did you also install it?
    If you need more help, please tell us your operating system.

  • How do i get iMessage to work between different peoples iPod touches and iPhones 4s?!

    My sister has a iPod touch 4th generation and i have an iPhone 4 , but iMessage never seems to work? we both have different apple IDs too. How can i get this to work?

    tried with others then he?
    have imessage been reg'd with the carrier in the case of the iphone?
    and it will only work if both are connected to the internet at the same time as imessage will otherwise send by sms which is not possible to an ipod touch as it don't connect to the phone network

Maybe you are looking for

  • SCCM 2012 Site Design with multiple agency seperation

    I have read through some of the other posts, and none quite seem to match my scenario. I have a new task to design a new SCCM 2012 Site. At first I thought this was going to be easy, but it seems to have become a bit of a challenge. I have been taske

  • Does Oracle User Password can contain non-ASCII characters?

    Hi Experts, Can we create a user with password containing non-ASCII characters like "Ro'çá". I was able to create a database instance by providing the password for sys as "Ro'çá". But now i am not able to login from command prompt using sqlplus or SQ

  • How do we speed up downloads

    When I use my browser to get on line the blue line starts, then pauses for up to a minute before it opens the location.  Then whem i select a download, it starts then stops, and the loading symbol appears ant it can take 60 to 120 sec for video to pl

  • SapPhone Server Tester - SPS Tester

    Hello friends, I read about the SPS Tester on help.sap.com. I found also information about the installation of the SPS Tester, but where can I get this programm? Does somebody know where I can get or download the SPS Tester? daniel

  • Fund management in plant maintenance module

    Hi. can anyone explain how fund management works in plant maintenance module. Actually to say we have implemented FM. We make FM entries in orders in GOTO -> assignment -> Fund Management. The question is, when we make entries in PM orders, it create