Unable to load any XML from JAR - Please help!!

Hi All,
I am a student in the final days of my degree. I have been working on my final project for some time now, an applet which converts input text to a signal plot for line encoding schemes - AMI, NRZ etc. It is pretty much finished, but one small bug threatens to scuttle the entire project! I have been searching the web all day long for answers with little success, and as the castor forum still appears to be down I am posting here. Any suggestions or advice would be greatly appreciated.
The applet uses the castor databinding framework to load various XML data. I am using Eclipse 3.01 for development - when the program is run locally as an applet, everything works fine. When the program is bundled into a JAR file and nested into a clean folder with a html page and the jar file, when the command to read in XML is given, a NullPointerException occurs, indicating that castor was unable to access the XML files.
Below is one of the methods used to make castor load XML data:
     public CodeSet loadCodeXML(String _codesetFilename)
          String _mappingURI = "schema/codes/codesets-mapping.xml";
          String _codesetURI = "schema/codes/" + _codesetFilename;
                // Create a new Castor mapping object
          Mapping mapping = new Mapping();                         
        try                                                                 // Attempt to load in the selected XML character set
             mapping.loadMapping(_mappingURI);                    // Initialize 'mapping' with the map file
            Unmarshaller unmar = new Unmarshaller(mapping); // Create a new XML Unmarshaller that uses 'mapping'
            // The line below creates a new CharSet object called _codeset and populates it with the XML data
            CodeSet _codeset = (CodeSet)unmar.unmarshal(new InputSource(new FileReader(_codesetURI)));
            // The character set was successfully loaded, so pass new CharSet object back to caller and end
            return _codeset;
        } catch (Exception e) {
             // If an error occurs while extracting the XML data, this block will execute:
            JOptionPane.showMessageDialog(null, e);               // Display a message dialog containing the exception error
            return null;                                             // Do not return a CharSet object to caller
     }It would seem to me the problem lies within
          String _mappingURI = "schema/codes/codesets-mapping.xml";
          String _codesetURI = "schema/codes/" + _codesetFilename;I have read that files inside a JAR can be accessed in this way ( http://archive.codehaus.org/castor/user/msg00025.html ) but it won't appear to work.
If these are set to a full system path (outside any JAR) i.e. "/home/me/proj/schema/codes/codesets-mapping.xml", the application operates fine. Clearly this is no good however, as the XML data must reside within the JAR package. I have tried many permutations such as "jar://schema/..." , "/schema/..", "schema/..", with no success. I have read of using InputStream and getResource methods to access files within the jar but have had no success. I have checked the schema dir is being put into the JAR archive.
Could anyone suggest an appropriate way of loading XML files from within a JAR file in this context?
Thanks in advance for any replies.

Hi, me again..
Re: mr_doghead - the filename of the file is passed from the calling function
public CodeSet loadCodeXML(String _codesetFilename)eg loadCodeXML(ami.xml) will return a CodeSet object containing the ami xml data
Anyway, I've manged to fix it up. The problem actually lies within castor, not my code at all. This is a known bug in castor that the dev's deemed 'not important' to fix, but I have to say the work around is EXTREMLY poorly documented online. Hence, this post is just to say how to fix it up if ne1 else is having trouble...
To load mappings, use:
mapping.loadMapping(getClass().getResource(_mappingURI).toString());where _mappingURI is a string such as "/xml/mapfile.xml"
However, the unmarshalling method takes in a file object, so getResourceAsStream must be used:
CharSet _charset = (CharSet)unmar.unmarshal(new InputSource(getClass().getResourceAsStream(_charsetURI)));Where CharSet is your custom object you are marshalling into, and _charsetURI is a relative path to your xml file.
Ugly as hell? Very.
Does it work? Perfectly.
take it ez guys, time for me to go hand this sht in! ;D

Similar Messages

  • Loading images from Jar - Please help!

    Tried with / in front of the path or without and using both
    getImageResource and getSystemImageResource methods and no images
    are showing.
    My jar has manifest file of:
    Main-Class: com.package.MainFrame
    Class-Path: j2ee.jar
    - blank line -
    Thanks
    Abraham Khalil
       // The subtlety in getResource() is that it uses the
       // Class loader of the class used to get the rousource.
       // This means that if you want to load a resource from
       // your JAR file, then you better use a class in the
       // JAR file.
       public static Image getImageResource( String name ) throws java.io.IOException {
          return getImageResource( AWTUtilities.class, name );
       public static Image getImageResource(Class base, String name ) throws java.io.IOException {
          Image result = null;
          URL imageURL = base.getResource( name );
          if (imageURL == null) {
             imageURL = base.getResource("/" + name );
          System.out.println("imageURL: " + imageURL + " AWTUtilities.class.getResource(" + name + ");");     
          if ( imageURL != null ) {
             Toolkit tk = Toolkit.getDefaultToolkit();
             result = tk.createImage( (ImageProducer) imageURL.getContent() );
          return result;
       public static Image getSystemImageResource( String name ) throws java.io.IOException {
          Image result = null;
          URL imageURL = ClassLoader.getSystemResource( name );
          if (imageURL == null) {
             imageURL = ClassLoader.getSystemResource("/" + name );
          System.out.println("imageURL: " + imageURL + " = ClassLoader.getSystemResource(" + name + ");");
          if ( imageURL != null ) {
             Toolkit tk = Toolkit.getDefaultToolkit();
             result = tk.createImage( (ImageProducer) imageURL.getContent() );
          return result;

    Hello,
    you must put your images files under your package :
    see full doc at this tutorial.
    Hope this helps,
    Neo

  • Images are not loading onto icloud from PC, please help!

    On MAC, I am having no problems accessing iCloud for contacts, calendar, etc.... that have been loaded onto iCloud from PC but I am not able to access any images on the iCloud that have been loaded from PC. I am able to access photos on the iCloud/PC that have been loaded from the MAC. All settings are good and correct on PC, photos are set up to upload to iCloud from "Uploads" folder but nothing is happening.... please help!!

    I have set up my PC and posted images into my iCloud Upload folder.  My AppleTV does not find any images. The AppleTV does find all of my music.  I think this is the same problem as the OP, only for a different iCloud Device. How can I review (on the web) the photostream images that are stored in iCloud?

  • Safari NOT LOADING ANY WEBPAGES...PLEASE HELP!!

    Hey Everyone,
    I’ve been having a huge problem with my safari browser ever since I got it installed onto my windows XP OS. On starting up the application, safari JUST WON’T LOAD ANY WEBPAGES. I’ve only managed to get it to load pages a few times after much struggle and this usually succeeds immediately after restarting the computer. And the other weird thing is, once fired up, it won’t fail to load any web pages until you close the browser. The other fault is that the browser keeps crushing once you mingle around with its buttons in attempt to get it to load the webpages.
    I have tried to google whether people have had similar problems with the browser but none fits into my problem. I would love for anyone to offer me any guidance on what to do next after all the below attempts to fix the problem failed;-
    -Re-installing Safari several times.
    -The same problem occurs on my Windows Vista Notebook.
    -can’t seem to find a facility to change the port number.
    PLEASE HELP!

    In Vista, Safari personal prefs and such are stored in the hidden user folder "AppData" in subfolders Local and Roaming, under "Apple" folders.
    Clean out (move or something) and let Safari start fresh, which should solve the issue.
    Not sure where XP stores files.

  • I forget the secret answer of questions asked by account. I have also updated by account wiht alternative email (resque) but i am not getting any email from Apple. please help.

    I forget the secret answer of questions asked by account.
    I have also updated by account wiht alternative email (resque) but i am not getting any email from Apple for the restoreing my secret Ques Answer
    please help.

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Unable to delete any iTunes U lectures - please help

    I downloaded a bunch of audio and video lectures directly to my 64GB iPod Touch. I would like to keep them on my iPod and not sync them to my laptop, which does not have room. Once I listen to lectures, they are marked as read, yet I cannot delete them directly on my iPod.
    I also tried connecting the iPod to my laptop's iTunes and checked the iPod's iTunes U list through there (leaving the Sync iTunes U check box unchecked): Though I can highlight lectures, I still see no way to delete them. Please help.
    Is there some way I can just delete them? Or will the system force me to sync all iTunes U with my laptop's iTunes?

    Hi,
    Does right-clicking on the lecture bring up anything useful? Maybe when you highlight it, you can delete it through Edit>Delete?
    Hope this helps!

  • Since the iOS update all of my bookmarks have been erased! Also I am unable to add any new bookmarks! PLEASE HELP

    Since the new iOS update all of my bookmarks have been erased! I am unable to add anything to my bookmarks list as well!
    HELP

    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
    and please tell us what version of iPhoto and of the OS you have
    LN

  • Desinger Workflow 2010: Unable to load workflow actions from the server. Please contact your server administrator?

    Hello,
    I am facing a problem from last some days..
    When I am trying to open/create/update workflows from Designer 2010, then designer giving me an error "Unable to load workflow actions from the server. Please contact your server administrator".
    I researched on internet for this error and found some possible reason like
    Login user Permission issue
    Error in custom actions
    So that I checked for permission for login user, but it has administrator rights. and I tried to open workflow by removing custom activity code, but still exist.
    also if I tried to create/update workflow for another site on same server then it works without any problem.
    Can anybody please help me?
    Many thanks,
    Nitin
    N i T i N

    Hi NiTiN4u,
    Thanks for your post.
    First, here are some troubleshoot workflow error form Microsoft site:
    http://office.microsoft.com/en-gb/sharepoint-designer-help/troubleshoot-workflow-errors-HA010237912.aspx#BM20
    Second, have you tried to close the site and open it again in SharePoint Designer 2010?
    Third, try to restart your IIS and share the results.
    SharePoint 2010

  • "Unable to load dataclass information from Sync Services"  Any ideas?

    I upgraded to iTunes 7.7 last night and now I get an annoying constant stream of errors that read "AppleMobileDeviceHelper has stopped working". Multiple reinstalls have not stopped it.
    Against my better judgement, I upgraded my phone to 2.0. Found out that I lost everything on my phone. It is activated and will work but I cannot sync it with iTunes. All I get is a message stating, "iTunes was unable to load dataclass information from Sync Services. Reconnect or try again later."
    iTunes won't recognize my phone. I can move songs and stuff to it by drop and drag but if I click the "iPhone" in iTunes, nothing happens. I put my phone in recovery mode. iTunes linked to it and reinstalled 2.0 but I still get the same problem.
    I'm real frustrated and Apple has not posted anything about this problem.
    Does anyone have any ideas on what is the going on? Is my phone nerfed?

    Try disabling your firewall, virus SW, and if it still won't sync, I would try disabling the communications services one by one until it clears. When I'm troubleshooting this sort of problem, I first look into the system reports (MY Computer, (right-click) manage, event viewer, Windows Logs, and look into each of the sub log sections for the error. This will often point you in the right direction. If this fails, I do a clean boot with all extraneous run-times and services disabled. usually the problem will be solved. I then start turning on the various run-time routines and services until I find the culprit.
    My attitude about this is that I won't waste my time chasing problems like this unless they are critical. Paying $$$ for a 3G iPhone and then having to troubleshoot the SW is not my cup of tea. I only pursued this because my wife and both kids got 3G's but I have them running both XP and Vista. One Vista machine synced OK, but mine would not. Intellectual curiosity led to find out why.
    Lysimakus

  • "Unable to load workflow actions from server. Please contact your server."

    I get the following error message when I want to create or open a workflow in SharePoint Designer 2007
    "unable to load workflow actions from server. Please contact your server
    administrator."
    I don't receive this error as a site collection administrator, but one of my contributors gets the error.

    What Chris mentioned is kind of abnormal situation described in
    http://office.microsoft.com/en-us/sharepointdesigner/HA102379121033.aspx#20.
    However, normally, you won’t be able to create SPD workflow if you only have Contribute permission level. I give the user Design permission level then he can
    create SPD workflow.
    There are other factors affecting permission to create SPD workflow:
    1.     
    According to
    http://office.microsoft.com/en-us/sharepointdesigner/HA101005871033.aspx#4
    , the SPD workflows are stored in a site-level hidden document library called Workflows. You should make sure that user have permission in this document library so that the created workflow can be saved successfully.
     http://blogs.msdn.com/sharepointdesigner/archive/2008/11/25/locking-down-sharepoint-designer.aspx
    describe the method to manage permission for this hidden Workflows document library: open the site in SharePoint Designer >> right-click the Workflows library >> click Properties >> click the Security tab >> click the link “Manage
    permissions using the browser”
    2.     
    SharePoint Designer contributor setting (http://office.microsoft.com/en-us/sharepointdesigner/HA101174691033.aspx
    ) can also block the user from being able to create workflows.

  • TS1717 I got this message every time i connect my iphone to itunes.. said 'iTunes was unable to load provider data from Sync Services. Reconnect or try again later.' so please help me to solve out this problem..

    I got this message every time i connect my iphone to itunes.. said 'iTunes was unable to load provider data from Sync Services. Reconnect or try again later.' so please help me to solve out this problem..

    In the course of your troubleshooting to date, have you also worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Servicegen:  unable to load type library from classloader weblogic.utils.cl

    Hi,
    I am new to weblogic. I am encountering an error on trying to run the 'servicegen' command from my ant build scripts, on weblogic 9.2.
    Please find the build.xml snapshot, and the stack trace given below.
    Please help me out with this.
    Points to be noted are:-
    1) The ejb-jar.xml specifies the bean class, which is very much present in the classpath. The ejb-jar.xml is generated by xdoclet. Snapshot is given below:-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar >
    <description><![CDATA[No Description.]]></description>
    <display-name>Generated by XDoclet</display-name>
    <enterprise-beans>
    <!-- Session Beans -->
    <session >
    <description><![CDATA[NorthBound Interface]]></description>
    <ejb-name>ArcorNBIService</ejb-name>
    <home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceHome</home>
    <remote>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService</remote>
    <local-home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocalHome</local-home>
    <local>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocal</local>
    <ejb-class>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    2) When I replace the "ejbJar" attribute in the 'service' command with "javaClassComponents" attribute, I am able to run the servicegen command successfully. Not sure why the ejbJar is creating problems.
    3) Build.xml snapshot:-
         <target name="gen-webservice" depends="init">
              <copy todir="${work.dir}" file="${export.dir}/lib/arcor-il-service-ejb.jar"/>
              <autotype javatypes="${javatypes}" targetNamespace="${targetNamespace}" destDir="${work.dir}/classes" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath"/>
              <autotype javaComponents="com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService" targetNamespace="com.alcatel.hdm.service.nbi.dto.holders" destDir="${work.dir}/classes" keepGenerated="true" classpathref="webservice.client.classpath"/>
              <servicegen destEar="${earfile}" warName="${warname}" contextURI="${contextURI}" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath">
                   <service ejbJar="${ejbLocation}" targetNamespace="${targetNamespace}" serviceName="${serviceName}" serviceURI="/${serviceName}" generateTypes="false" expandMethods="${expandMethods}" ignoreAuthHeader="false" protocol="https" style="rpc" useSOAP12="${useSOAP12}" typeMappingFile="${work.dir}/classes/types.xml">
                        <security enablePasswordAuth="true"/>
                   </service>
              </servicegen>
         </target>
    4) Exception stacktrace:-
    --- Nested Exception ---
    java.lang.AssertionError: java.io.IOException
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:42)
    at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:116)
    at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:125)
    at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:153)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:277)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:309)
    at weblogic.descriptor.EditableDescriptorManager.createDescriptor(EditableDescriptorManager.java:99)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:344)
    at weblogic.application.descriptor.CachingDescriptorLoader.createDescriptor(CachingDescriptorLoader.java:188)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:328)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getDescriptor(AbstractDescriptorLoader.java:237)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
    at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:141)
    at weblogic.ejb.spi.EjbJarDescriptor.getEditableEjbJarBean(EjbJarDescriptor.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.processEjbJarXMLWithSchema(DDUtils.java:519)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:126)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:154)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:147)
    at weblogic.ejb.spi.DDUtils.createDescriptorFromJarFile(DDUtils.java:30)
    at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:52)
    at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.<init>(EJBAutoTyper.java:68)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:339)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.io.IOException
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
    ... 37 more
    Caused by: com.bea.xml.XmlException: unable to load type library from classloader weblogic.utils.classloaders.ClasspathClassLoader@1cc0a7f f
    inder: weblogic.utils.classloaders.CodeGenClassFinder@c52200 annotation:
    at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
    ... 38 more
    Total time: 5 seconds

    Hi,
    I am new to weblogic. I am encountering an error on trying to run the 'servicegen' command from my ant build scripts, on weblogic 9.2.
    Please find the build.xml snapshot, and the stack trace given below.
    Please help me out with this.
    Points to be noted are:-
    1) The ejb-jar.xml specifies the bean class, which is very much present in the classpath. The ejb-jar.xml is generated by xdoclet. Snapshot is given below:-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar >
    <description><![CDATA[No Description.]]></description>
    <display-name>Generated by XDoclet</display-name>
    <enterprise-beans>
    <!-- Session Beans -->
    <session >
    <description><![CDATA[NorthBound Interface]]></description>
    <ejb-name>ArcorNBIService</ejb-name>
    <home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceHome</home>
    <remote>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService</remote>
    <local-home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocalHome</local-home>
    <local>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocal</local>
    <ejb-class>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    2) When I replace the "ejbJar" attribute in the 'service' command with "javaClassComponents" attribute, I am able to run the servicegen command successfully. Not sure why the ejbJar is creating problems.
    3) Build.xml snapshot:-
         <target name="gen-webservice" depends="init">
              <copy todir="${work.dir}" file="${export.dir}/lib/arcor-il-service-ejb.jar"/>
              <autotype javatypes="${javatypes}" targetNamespace="${targetNamespace}" destDir="${work.dir}/classes" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath"/>
              <autotype javaComponents="com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService" targetNamespace="com.alcatel.hdm.service.nbi.dto.holders" destDir="${work.dir}/classes" keepGenerated="true" classpathref="webservice.client.classpath"/>
              <servicegen destEar="${earfile}" warName="${warname}" contextURI="${contextURI}" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath">
                   <service ejbJar="${ejbLocation}" targetNamespace="${targetNamespace}" serviceName="${serviceName}" serviceURI="/${serviceName}" generateTypes="false" expandMethods="${expandMethods}" ignoreAuthHeader="false" protocol="https" style="rpc" useSOAP12="${useSOAP12}" typeMappingFile="${work.dir}/classes/types.xml">
                        <security enablePasswordAuth="true"/>
                   </service>
              </servicegen>
         </target>
    4) Exception stacktrace:-
    --- Nested Exception ---
    java.lang.AssertionError: java.io.IOException
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:42)
    at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:116)
    at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:125)
    at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:153)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:277)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:309)
    at weblogic.descriptor.EditableDescriptorManager.createDescriptor(EditableDescriptorManager.java:99)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:344)
    at weblogic.application.descriptor.CachingDescriptorLoader.createDescriptor(CachingDescriptorLoader.java:188)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:328)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getDescriptor(AbstractDescriptorLoader.java:237)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
    at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:141)
    at weblogic.ejb.spi.EjbJarDescriptor.getEditableEjbJarBean(EjbJarDescriptor.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.processEjbJarXMLWithSchema(DDUtils.java:519)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:126)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:154)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:147)
    at weblogic.ejb.spi.DDUtils.createDescriptorFromJarFile(DDUtils.java:30)
    at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:52)
    at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.<init>(EJBAutoTyper.java:68)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:339)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.io.IOException
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
    ... 37 more
    Caused by: com.bea.xml.XmlException: unable to load type library from classloader weblogic.utils.classloaders.ClasspathClassLoader@1cc0a7f f
    inder: weblogic.utils.classloaders.CodeGenClassFinder@c52200 annotation:
    at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
    ... 38 more
    Total time: 5 seconds

  • ITunes was unable to load dataclass information from Sync Services

    Hi,
    I have Iphone 3GS with the latest version 3.1.3 and iTunes 9.1. After i uograded my iPhone to the latest version i am not able to sync with the iTunes and receive the message "iTunes was unable to load dataclass information from Sync Services, Reconnect or Try later". I am using Windows XP with Symantec Endpoint protection.
    I have tried following steps to troubleshoot the problem but all my attempts have failed,
    1. Uninstall iTunes by Removing, iTunes, QuickTime, BonJour, iPhone congiguration Utility and Bonjour. Remove all the iTunes and related folder from the C:/ drive
    2. Restart the computer and intall the latest version of iTunes and Quicktime
    3. Restore the iPhone to the factory settings using iTunes
    4. Restart the system as well as hard Boot the iPhone (Hold Start and Wake/Sleep Button)before connecting again
    5. Repeat the Steps 1 and 2 after restoring the iPhone
    I am still getting the same error and now I can't even open the first page for iPhone in iTunes when I connect it to my computer. All my content is still in iTunes but everything is lost on the iPhone.
    I searched the Apple support and they talk about problem with the Symantec Endpoint. I have the latest version of Symantec endpoint way above what is mentioned on the Apple support page.
    Can someone please help me, it seems restore worked for most of the people facing this issue, but for me even restore is not working.
    With Regards,
    Ankur

    I got a present of an itouch. This is my first time back to apple after 5 years. I cant get my itouch to sync due to dataclass error on Windows XP pro. I have installed the latest version of itunes 9.2.1.
    WHAT IS THE POINT IN OWNING A DEVICE FOR PLAYING MUSIC WHEN YOU CANT LOAD THE MUSIC !!!!!
    Does anyone have a solution or alternatively (shock horror) Apple could actually get its AR*E in gear and fix the problem. I would also suggest that Apple would post a friggen solution on its website, but no that may be too much to ask.
    very frustrated. any help gratefully received otherwise the touch gets thrown out.
    thanks

  • Unable to load wsdl. if currently online please verify the uri and or format of the wsdl

    Hi,
    i have one aspx page in which i have embeded an swf object,
    which calls webservice to load data,
    it works fine on localhost,
    but when uploaded it gives the error no 2032 stream error ,
    i added the crossdomain.xml in the root project then that error was gone and found the following error,
    "unable to load wsdl. if currently online please verify the uri and or format of the wsdl"
    Can anybody help me with this?
    Any elp or suggestion will be appriciated.
    Thank You.
    Bhavika

    I had the same error message and I believe I added the -use-network=true to the additional compiler arguments to fix the problem.  The default value for this should be true.
    Sorry if this doesn't help...It's just a guess.

  • ITunes 9.1 was unable to load dataclass information from Sync Services.

    Everything was working perfectly fine on 9.0, then i upgraded to 9.1 version and my iPod Touch 3G stopped syncing properly (error as in subject). I tried many things, checked dll's, restarted services, everything without success. SO...
    I uninstalled every single apple program and couple non applce. Deleted every Apple related file, even all those hidden in users/common files/app data folders. Double checked everything and restarted PC. THEN I downloaded full version of iTunes 9.1 64bit and installed.
    Aaaand I restarted everything, lunched iTunes, plugged iPod in. Some Apple drivers installed themselves, then iTunes was frozen for couple minutes. Finally iPod shown in iTunes. I tried to sync and... BAM. Still broken, still same error "iTunes 9.1 was unable to load dataclass information from Sync Services. Reconnect or try again later"
    Please help, my iPod is useless. Can u release new, working iTunes?

    OK i have to say, i finally fixed it. Now its fully working without ANY problems, here is what i did (before trying this u should probably do this http://support.apple.com/kb/HT1923):
    1. Unplug every external Card Reader.
    2. Unplug every Card Reader in your PC (they are plugged into motherboard)
    3. Unplug every USB Hub.
    4. Unplug every USB Drive or USB HDD.
    5. Plug in Ipod Touch/iPhone.
    6. Go to Device Manager.
    7. Search for "USB Mass Storage Device" in Universal Serial Bus Controler.
    8. Right click on it and UNINSTALL.
    9. Search for "Scan for hardware changes", click on it and wait a bit.
    10. Turn on iTunes and check if its working.
    Now it should work like a charm.

Maybe you are looking for

  • Exported Files Are "Invisible" on Network Attached Storage!!??

    When exporting jpgs from Lightroom, the files don't show up on my new server! If I search for them, then they do show, but they're "invisible." I can't run my business this way (or copying gigs of files from desktop to server just to get around this

  • ALV - Find problem

    Hello, I have problem of find value in alv table. By choosing some variant I get table with 500 lines and 70 columns. When I use FIND icon of ALV to find specific order number (after selecting the column), the FIND "works" only for first rows and doe

  • JDBC Thin Drivers

    Hi, I have downloaded Oracle thin drivers for jdk1.2.2 from oracle's site. But when i tried to hit the Database with it iam getting "Network Adapter error". I ahd given the url correctly. I checked up the application by running on the system where or

  • Problem on attaching a object that associated object is new

    HI, I have problem that when attach a existing 'A' instance but some new instances are added on the associated object of the 'A' instance. Kodo throws exception as below when I attach the object. Please help. Exception ======== [java] Caused by: kodo

  • Change Cell Color of JTable-Please Help

    Hi All, I want to change the color of a Row in a JTable when i click on it. And After that when i click another row i want to retain this color and give another color to the second row. If somebody knows how to do this. Do Help Thanks in advance -Jee