How to use my Xerces version of choice?

Hello,
I am trying to unmarshall some xml DOM documents. My core irritation on this is the exception, that there would not be an implementation of org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl. My XML files do contain some date information.
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.NoClassDefFoundError: Could not initialize class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
        at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3731)I already had Xerces2-J 2.9.1 in my build-path and wondered how the exception could be real. Xerces2-J 2.9.1 contains an implementation for it. Now I wonder, if the JDK may contain an older version of xerces and: if yes, if this older version is used, although I have included a newer version in my project' libs.
To get completely confused I made a new tutorial guided project with just some lines to unmarshall a really basic XML file and DID NOT include any libraries (no xalan, no xerces). The code was to read a XML file to DOM and then unmarshal it. And it worked. How can this be?
-> How can I set my Xerces and Xalan version of choice for my own project?
I am using this software:
- NetBeans 6.5 bundled with GlassFish 2
- Java SDK 6 update 12
I want to use this software:
- Xerces2-J 2.9.1
Edited by: Bassspieler on Mar 9, 2009 8:04 AM
Edited by: Bassspieler on Mar 9, 2009 8:04 AM

OK, I made a plain new java-application project and it works just fine to unmarshall a tutorial example XML file, time and date mapped to XMLGregorianCalendar. The differences to my main projects are:
- Java beans technology
- Runtime environment: GlassFish 2
- very complex XML schema and medium sized XML files (about 100kB)
- Xindice XML repository to get DOM documents of XML files
Maybe the noclassdef of XMLGregorianCalendar is just "fake" and another error causes this while unmarshalling some date informations the unmarshaller just can't handle?
Here is a snippet of my stack trace:
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.NoClassDefFoundError: Could not initialize class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
        at $Proxy96.monitoreSLA(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.webservice.InvokerImpl.invoke(InvokerImpl.java:81)
        at com.sun.enterprise.webservice.EjbInvokerImpl.invoke(EjbInvokerImpl.java:82)
        at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
        at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
        at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
        at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
        at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
        at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
        at org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(Unknown Source)
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:543)
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:622)
        at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:241)
        at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl$TransducerImpl.parse(RuntimeClassInfoImpl.java:382)
        at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:241)
        at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:61)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:462)
        at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.text(InterningXmlVisitor.java:89)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:168)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:141)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:251)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:277)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:246)
        at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:123)
        at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:106)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:317)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:297)
        at monitoring.core.dataintegration.slohandler.SLOHandlerBean.monitoreSLA(SLOHandlerBean.java:49)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...Edited by: Bassspieler on 10.03.2009 14:30

Similar Messages

  • Where can i find a tutorial on how to use iMovie 2013 version?

    I've been making some clips anywhere from 6 seconds to 15 seconds long, and I just wanted if there are any good links on how to use iMovie 2013 version. I've looked on youtube but everything on their are old clips or small clips on how to run the program. I'm not an advanced user but i've picked up some of the basics on iMovie. I just want to learn the basics and advance onto the harder setups with iMovie. Any help with this would be greatly appreciated.

    http://www.youtube.com/watch?v=4RZ7jGSk60I
    http://www.apple.com/support/mac-apps/imovie/
    LOTS OF Imovie video tutorial vids here:
    http://www.izzyvideo.com/imovie-tutorial/

  • How to use a country version?

    Hi all,
    We are implementing a project in Thailand, and I found some information regarding Country version Thailand. I want to know how to use a country version?
    Do we need to activate the country version or country version is already in standard ECC?
    Thailand - SAP Library
    Thank you.
    Rich

    Hi,
    have you searched in google by sap "country installation program" ? You´ll find plenty of documentation.
    Regards,
    JM

  • How to use two different versions of Firefox at the same time on Snow Leopard?

    I recently upgraded to Firefox 4.0 on my 27" iMac running Snow Leopard 10.6.7.
    Previously, I was using Google's "Page Speed" along with Firebug in Firefox 3.6.15 to optimize images in my web pages, and to find other areas to optimize.
    Page Speed is not yet compatible with Firefox 4.0. I wrote to Google about this some time ago -- no answer yet.
    If I run Firefox 3.6.15 in order to use Page Speed, I run into a few problems afterward when I start using Firefox 4.0 again, since they both use the same "Firefox" folder in my "Application Support" folder.
    How can I set it up so that I can have two separate "Firefox" folders in my "Application Support" folder?
    Or is there an easier way to use two different versions of Firefox simultaneously, even if one has extensions and/or plug-ins installed which are not compatible with the other version?
    Thanks for a great browser!

    Please disregard my question. I just conducted more web search and learned how to use Firefox's profile manager in order to make a separate profile for Firefox 3.6.15.
    You can find instructions on this page:
    http://support.mozilla.com/en-US/kb/Managing%20profiles#os=mac&browser=fx35
    '''A small tip:'''
    If your Firefox app is named anything other than "Firefox" -- say for example "Firefox 3.6.15" -- when you follow the instructions at the above link, make sure you escape the blank space that is before the version number by adding a backward slash before it, when you type the command string in the Terminal. In other words, in that string, you should use this:
    Firefox\ 3.6.15
    I hope that helps someone.
    WW

  • How to use a patched version of pdftex?

    Hello,
    I would like to use a patched version of pdftex to be able to compile PDF/A compliant documents. Patch is here, and the compilation works without problems. However, I do not manage to use that compiled version of pdftex.
    Using the instructions on running different versions of pdftex on Stackexchange or at rivervalley, I startle at the point where format files have to be generated:
    ## TeX.stackexchange answer
    ## create formats, using the new pdftex, and the ini files from the existing TeX installation
    pdftex -ini -etex pdftex.ini # in the Stackexchange answer, pdftex.ini is used. In the other instructions, pdfetex.ini
    pdftex -ini -etex pdflatex.ini
    The ini files are not found by pdftex:
    This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) (INITEX)
    restricted \write18 enabled.
    entering extended mode
    ! I can't find file `pdfetex.ini'.
    <*> pdftex.ini
    Naturally there is not pdftex.ini, pdfetex.ini or pdflatex.ini in the working directory. In the file tree, the files of interest are present, and they are also found by kpsewhich:
    /usr/share/texmf-dist/tex/plain/config/pdfetex.ini
    /usr/share/texmf-dist/tex/latex/latexconfig/pdflatex.ini
    However, running the command with the full path, copying the files into the working directory, or running the command as superuser in those directories (bad idea, i know) does not work either. I guess my environment variables or other settings are not correct - does someone have a glue how to resolve this?
    Thanks!
    Edit: Cross-posted on Stackexchange: here. If that is discouraged, I can close this thread.
    Last edited by florianbw (2013-12-15 18:49:25)

    Hi,
    have you searched in google by sap "country installation program" ? You´ll find plenty of documentation.
    Regards,
    JM

  • How to use a java version on a CD application?

    i need to specify the location of a version of java on a cd, meaning that i want the java applet on the cd to use the version of java that i will supply on the cd, regardless of what is on the machine itself. can i do this? and how?
    thanks

    So you'd like to have people run your applets without having to install a JRE? I don't think that's possible. (That is: everything except for a paradox is possible, but it won't be worth the while.) I think your best shot will be to provide an URL to the sun site (where the latest JRE/plugin can be found).
    Kind regards,
      Levi

  • How to use two different versions of the same jar within one project

    Hi everybody!
    I have a big problem while integrating different web service clients within one bigger java project. Both implemetations need some jar files to work but demand different version. So, i would like to know if there is any way to tell which implementation should use which version! Anyhow i add those jars to the classpath makes working only one or the other webservice working but never both! Any ideas somebody?
    Best regrads,
    Stefan G�tz

    Of course do have the jar files different names but the classes inside of them are the same ... means that the standard system classloader can distinguish them. When you add a jar to a classpath the name actually dosent matter.... any other ideas, please?
    PD.: i tryed to add a manifest file to the one jar which makes use of one of the dublicated jars to specify which jar to take direcly but it makes no difference since once classes loaded they cant be distinguish ....see:
    http://java.sun.com/docs/books/tutorial/ext/basics/load.html

  • How to use two jdk versions in one system.

    Hi All,
    Am working for two projects, in one i have to use jdk1.4 and in the second i have to use jdk1.5, how can i have two jdk in one system, am using windows xp, in that if i create two accounts and install two jdk's will it accept? what is the solution for this.
    Thanks,
    vyrav.

    I have 1.3, 1.5, and 1.6 installed here. You can install them wherever you like, and use the %JAVA_HOME% system variable to point your tool(s) to the desired one that you wish to use.

  • How to use multiple Java versions on my machine

    I've BOXI R2 SP2 looks like it supports Java version prior to 1.4, but for few applications which I work I need Java 1.6.. So how do I point right java version to right application .
    Thanks!

    Hai
    Check this Link
    http://www.computeractive.co.uk/pcw/pc-help/1918900/how-deal-multiple-versions-java

  • Can't figure out how to use this latest version of iTunes! How do you add/remove apps on your iPhone when it's connected to your mac? Many thanks, Frustrated

    I can't figure out this new itunes.  How do you import apps from macbook pro to iphone 4S?
    Help! Many thanks!

    OK some changes to make it lok like your old itunes
    View > Show Sidebar  this puts the left panel back and you can see your Library, Device and Playlists
    View > Show Status Bar this outs the grey bar back at he bottom with song info displayed
    Click on the black Arrow in Search and Untick Search Entire Library. Search now works as it did before
    Syncing Apps is the same as before
    Select your device and select the Apps Page
    There is a different button by the side of each app with Installed or Removed on it.
    Click on these and they will change to Will Install or Will Remove. Click apply at the bottom

  • How to use the latest version of iphoto

    when clicking onto iphoto I can not reach iphoto files what so ever, please help! i have tried deletingthe application, and re installing with my ilife disc and the same thing poped up.

    Back up your iPhoto library, depress the option and command keys, launch iPhoto and rebuild your library
    LN

  • How to use two dimensional array in custom.pll

    HI
    How to use two dimensional arrays in custom.pll
    I tried by the following way .
    type ship_array is table of number index by binary_integer;
    type vc_array is table of ship_array index by binary_integer;
    But I am getting the error as that
    A plsql table may not contain a table or a record with composite fields.
    Please tell me the way how to use them

    which forms version are you using? two dimensional arrays are available in >= 9i if memory serves.
    regards

  • How to use CWD4ALL with SQLDeveloper?

    Could someone giv me an insight on how to use the trail version of this tool reverse engineer an existing schema mentioned as a connection in SQL Developer?

    Dear,
    1. install the extension using help, check for updates
    2. after installing select tools, cwd4all diagram
    3. click on the CWD4ALL workspace to activate the CWD4ALL menu options
    4. File menu, select IMPORT:
    import DDL if you have the script or
    import DB catalog if you want to read from the catalog (MAKE SURE YOUR USER HAS THE NECESSARY RIGHTS/PRIVILIGES TO READ THE TABLES AND VIEWS ETC YOU WANT TO IMPORT
    5. you WILL SEE THE RELATIONAL VIEW: USE THE REENGINEERING OPTION (REVERSE ARROW IN MENU BALK) TO OBTAIN LOGICAL MODEL
    if this doesn't help you, please let us know.
    Kind regards,
    Rene De Vleeschauwer, ikan Software
    [email protected]

  • Use 2 jre versions (Java 5.x and Java 6.x) on diferent web pages.

    On windows XP SP3.
    I need use on internet explorer 7 and firefox 3, 2 differents JRE versions for two diferent servers
    example:
    - "www.site1.com" needs java 5.x (don't work with java 6.x)
    - "www.site2.com" needs java 6.x (don't work with java 5.x)
    If i have installed both versions, internet explorer and firefox even uses java 6.x, and i only can use java 5.x if uninstall java 6.x
    I need use to default use: java 6.x; except for "www.site1.com" that i need use java 5.x
    How can use both JRE versions?

    Questions: Do you plan to use the same web browser? The earlier applet running on JRE 1.5.x cannot run on 1.6 ? Sun puts forth a lot of effort in attempt to ensure that applets are forwards compatible.

  • Can I use the Student Version of Adobe CC for commercial purposes?

    Can I use the Student Version of Adobe CC for commercial purposes?

    There are no restrictions on how you use the education version Licenses and terms of use | Adobe

Maybe you are looking for

  • Mid 2010 macbook pro that has sleeping issues

    I have a mid 2010 macbook pro that has had problems sleeping and the screen goes randomly black but does not put the actual computer to sleep and you can still see and move the cursor. It seems like tons of people have had the same issue. I recently

  • Connecting laptop to tv but have no sound

    i connected my sony vaio laptop to my plasma tv with a hdmi cable and i have picture but no sound. Do i have to connect a mini plug to headphone slot and adapt it to rca or what. please help Solved! Go to Solution.

  • OS X Delay over HDMI rougted through Xbox One (no delay using Windows)

    I have my Mac Mini (late 2012, OS X 10.8.5) connected via HDMI to my Xbox One, which is connected to my tv via HDMI. I have been experience a very annoying lag, especially noticeable when using my trackpad. There is a noticeable delay between my trac

  • IPod resynchs when A LOT of unchanged songs, does not pick up new playlists

    My 60 GB iPod classic crashed big time, requiring me to reset it and reload 10K+ songs. (I only use the iPod for music.) The reloading process was of course a slow and painful one, with perhaps 10 or so interruptions where a file could not be read. B

  • Can you change the vi color background using a property node?

    I was wondering if it was possible in Labview to use a property node to change the front panel background color for one iteration and then back to an original color afterwards. I dont think it is possible but would like to know for sure. Thanks, Jody