Bgm.ser and jaxb.properties not created

Is there a particular reason to why the bgm.ser and jaxb.properties files are not created when a schema only consists of a simpletype and I run the binding compiler???
The two files seem to be created when I include a 'dummy' complextype in the schema. Is a complextype needed in order for the files to be created?
Cheers.
Anders
<simpleType name="Values">
    <restriction base="string">
        <enumeration value="ValueOne"/>
        <enumeration value="ValueTwo"/>
        <enumeration value="ValueThree"/>
        <enumeration value="ValueFour"/>
    </restriction>
</simpleType>

I've had the same exact problem! I had the property file in my JAR file properly, but the JAXBContext.newInstance( "package.name" ) call was failing - while at the same time I could load the property file via the ClassLoader just fine, by hand.
I played around with source for the jaxb beta a bit and I think I found the problem. I recompiled the JAR file after changing the "fileSep" variable in the "searchforcontextPath" method from "file.separatorChar" to "/".
This seemed to fix the problem. Well, the problem of it not finding the properties file that is... now I've got some kinda non-marshalable exception (but I haven't even spent 3 minutes on that problem yet, as opposed to the hours wasted on this bug).
I'm not sure if this bug only cropped up when running under a Windows env or not (my test was running under JBoss on XP... though I was building/compiling under Linux).
Anyway... to fix this just change that variable.. it's on line 228 (i think... i might have added some debug lines of my own in the code) of the javax/xml/bind/ContextFinder.java file. Then just re-jar it over the old JAR -- oh yeah, you'll need a few Message.property files from the jaxb-api.jar file for the new jar file to work (so make sure you unjar the old file 1st or back it up or whatnot).

Similar Messages

  • JAXB 1.0 Final: jaxb.properties not found when using custom classloader

    JDK 1.3.1 is being used.
    The scenario:
    1) jaxb jar files, jaxb generated files and application files loaded in default class loader works, however
    2) jaxb jar files, jaxb generated files and application files loaded in a custom class loader generate the following exception:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package XXX
    To demonstrate here are two sample applications: a Launcher app whose job it is to start apps and a sample App1 application who needs JAXB.
    If launch is placed into a jar file named launch.jar and App1 is placed into a jar file named app1.jar (with a JAXB generated package), and both jar files are placed in a directory containing all the JAXB 1.0 jar files (dom, sax, namespace, etc) and the system is started with the following:
    jre\bin\java -cp launch.jar; testLaunch.launch
    the exception occurs.
    By way of comparison, if App1 is started directly with the following:
    jre\bin\java -cp app1.jar;jax-qname.jar;jaxb-xjc.jar;jaxb-ri.jar;jaxb-libs.jar;jaxb-api.jar;dom.jar;sax.jar;jaxp-api.jar;xercesImpl.jar;namespace.jar;ant.jar;xalan.jar testApp.app1
    the exception does not occur.
    Any help would be greatly appreciated.
    package testLaunch;
    import java.net.*;
    import java.io.*;
    public class launch extends javax.swing.JFrame
        private static URLClassLoader app1ClassLoader_; 
        private static Class  app1EntryClass_ = null;
        private static final String app1MainClassName_ = "testApp.app1";
        private Object appObj_ = null;
         static public void main(String args[])
              try {
                System.out.println("Launch Main");               
                new launch();          
                  System.exit(0);
              catch (Throwable t) {
                   t.printStackTrace();
                   System.exit(1);
         public launch()
            if (app1ClassLoader_== null)
                loadAppClassLoader();
            try{
                if (app1EntryClass_ == null)
                    app1EntryClass_ = app1ClassLoader_.loadClass(app1MainClassName_);
                if (app1EntryClass_ == null)
                    System.out.println(app1MainClassName_ + " was not found");
                else
                    appObj_ = app1EntryClass_.newInstance();
            catch(ClassNotFoundException x){
                x.printStackTrace();
            catch(Exception x){
                x.printStackTrace();
        private static void loadAppClassLoader()
            String jarPath = jarPath = System.getProperty("user.dir");
            System.out.println("jar path is: " + jarPath);
            try{
                File jarfile1 = new File(jarPath+File.separator+"app1.jar");
                File jarfile2 = new File(jarPath+File.separator+"dom.jar");
                File jarfile3 = new File(jarPath+File.separator+"jaxp-api.jar");
                File jarfile4 = new File(jarPath+File.separator+"jaxb-api.jar");
                File jarfile5 = new File(jarPath+File.separator+"jaxb-xjc.jar");
                File jarfile6 = new File(jarPath+File.separator+"jaxb-ri.jar");
                File jarfile7 = new File(jarPath+File.separator+"jaxb-libs.jar");
                File jarfile8 = new File(jarPath+File.separator+"jax-qname.jar");
                File jarfile9 = new File(jarPath+File.separator+"sax.jar");
                File jarfile10 = new File(jarPath+File.separator+"xercesImpl.jar");
                File jarfile11 = new File(jarPath+File.separator+"namespace.jar");
                File jarfile12 = new File(jarPath+File.separator+"xalan.jar");
                File jarfile13 = new File(jarPath+File.separator+"ant.jar");
                if (!jarfile1.exists())
                    System.out.println("**ERROR " + jarfile1 + " does not exist!");
                app1ClassLoader_ = new URLClassLoader( new URL[]{jarfile1.toURL(),
                                                                jarfile2.toURL(),
                                                                jarfile3.toURL(),
                                                                jarfile4.toURL(),
                                                                jarfile5.toURL(),
                                                                jarfile6.toURL(),
                                                                jarfile7.toURL(),
                                                                jarfile8.toURL(),
                                                                jarfile9.toURL(),
                                                                jarfile10.toURL(),
                                                                jarfile11.toURL(),
                                                                jarfile12.toURL(),
                                                                jarfile13.toURL()} );
            catch(Exception x){
                x.printStackTrace();
                return;
    package testApp;
    import javax.xml.bind.*; // JAXB classes
    import myGeneratedJAXBFiles;
    public class app1 extends javax.swing.JFrame
         static public void main(String args[])
              try {
                System.out.println("App1 Main");               
                new app1();           
                  System.exit(0);
              catch (Throwable t) {
                   t.printStackTrace();
                   System.exit(1);
         public app1()
            try
                JAXBContext jc_ = JAXBContext.newInstance( "myGeneratedJAXBFiles" );
                System.out.println("Successfully loaded JAXB Context");          
            catch (JAXBException jbe)
                jbe.printStackTrace();

    I'm doing something very similar. In fact my launcher is also stored in launcher.jar. It will start any application on the classpath and load dependencies jars located in the specified directory.
    The first thing you must do is specify the classloader when constructing the jaxb context:
    JAXBContext jc = JAXBContext.newInstance(xmlPackage, getClass().getClassLoader());
    After this I was still raning into the "jaxb.properties not found" exception in some situations. Basically if the class using the jaxb files is located in the same jar as jaxb.properties everything worked fine. However if the class using the jaxb objects was located in a different jar it did not work.
    I had to add the following early in the execution of the application that load the plugins to get things working correctly:
    Thread.currentThread().setContextClassLoader(jarDirClassLoader);
    As far as I can tell JAXB using the Context class loader to find the jaxb.properties file.
    I'm using JAXB 1.1
    I hope this helps!

  • [svn:osmf:] 14871: Fixing anchoring 'right' and 'bottom' properties not being applied on items that don't have a width/ height and position set.

    Revision: 14871
    Revision: 14871
    Author:   [email protected]
    Date:     2010-03-19 01:05:54 -0700 (Fri, 19 Mar 2010)
    Log Message:
    Fixing anchoring 'right' and 'bottom' properties not being applied on items that don't have a width/height and position set.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutRenderer.as

    If you're just doing it in a back and forth or spiral fashion, you don't need to check whether a square's been filled in. You just go from a start point to an end point. Those points and the squares in between are determined by simple arithmetic.
    If you're doing it randomly, I wouldn't use the GUI elements themselves. I'd have, for example, and array of booleans that tells whether each square has been filled in.

  • ODS and ODSSM schemas not created in oracle 11.1.0.2 on Win 2008 R2 server

    Hi,
    I'm trying to install webcenter suite installation on windows 2008 R2 server.
    As a starting point installed oracle db 11.2.0.1
    As a second step, tried to run rcu script and found that the ODS and ODSSM schemas are not created as a part of the installation.
    Any idea why they are not created or how they can be created?
    Thanks,
    Raam.

    They're part of identity management suite install and not included in webcenter

  • I don't remember my Apple ID security questions and I did not create a rescue e-mail.  How can I reset or obtain the security answers?

    I don't remember the answers to my Apple ID Security Questions and I do not have a rescue e-mail.  How do I reset or get the security answers? 

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • Plz creat one id for me i am 20 year old boy and i have not creat, plz creat one id for me i am 20 year old boy and i have not creat

    bilal khan

    We are all fellow users on here and not Apple employees so we cannot create an AppleID for you.  Follow the lead in this AppleID page, especially the Frequently Asked Questions, which will lead you through setting up an AppleID.

  • OS X deployment.config and deployment.properties not working?

    I have a deployment.config file at: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/deployment.config with the following contents:
    deployment.system.config.mandatory=false
    deployment.system.config=file\:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deployment.properties
    The deployment.properties file is located at: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deployment.properties with the following contents:
    #deployment.properties
    deployment.macosx.check.update.locked
    deployment.macosx.check.update=false
    deployment.expiration.check.enabled.locked
    deployment.expiration.check.enabled=false
    None of this is working. Do I have the wrong directories or syntax somewhere?
    The documentation at : System- and User-Level Properties says that the deployment.config file will override user settings when placed at ${deployment.java.home}/lib/deploy/deployment.config.
    It seems like the deployment.config file is being ignored completely. I am working with Java 7u40 and higher. Nothing seems to do it.
    Any help would be appreciated!! Thanks!

    Yeah, it only happened to me in the last couple days, so I'm not sure what's happening (latest OS and latest version of Logitech Control Center (but a somewhat old MX Revolution)). Logitech's software is notoriously flakey on Macs, so I'll just chalk it up to that

  • I purchased a tv series and i did not get the entire series, half of it is missing and i have paid for it....any ideas to get the rest of it?

    I purchased a 10 episode tv series I paid for it, but I only got half the series, where is the rest?

    Really?? No one knows??  
    This is an Apple support forum is it not?
    If anyone can at least point me in the right direction that would be great!!

  • Material problems and PO not created

    Hello,
    SRM Classic Scenario.
    We tried to create shopping cart with a material in ECC and in SRM (can be viewed in COMM_PRODUCT)
    SC is in Approved status but "Contains Errors" as well. Checked the  Backend Application Error > Alert Display in RZ20 (SRM side)
    Shopping cart 0010000387 (PReq. 0090000012): ME 060 No procurement defined for material 100-ABB 9015C
    For any other material only PR is created. Material number is not passed on to PR from catalog and PO is not created. Checked number ranges (SRM and ECC), back end document types, system type.
    Pls advise.
    Thanks

    Hi,
    1)Please check in SAP  R/3 whether in Material Master (Purchasing View is there).
    2) Please check whether you have created the Shopping Cart using DESCRIBE  REQUIREMENT  (.i.e) without material no
    If the material no is there in the catalgo if will flow in the SC
    G.Ganesh Kumar

  • How do I fix this and see the error message when Adobe does not create a pdf from word?

    I have a trial version of Adobe X and it will not create a pdf.  A short message comes up but disappears before I can see what the problem is. Please help me fix this?

    Possibly, though there isn't much to go on. Let's start with the basics.
    Can you start the Acrobat application? It will sit there, looking like Adobe Reader or something?
    If so, can you open an existing PDF, if you have one?
    Ok, now creating a PDF. There are MANY ways to do this, so what steps are you following, and where does it fail?

  • Could not create Delivery in VL01N

    Hi
    Previously our Client use to sell some Trading type of material to their customer on Third Party Scenario basis....ie) They place the order with Vendor, inturn he directly send it to the Customer....
    Now Our Client wants that material has to come to his W/H and Customer should come to his W/H and do the inspection and has to take the delivery.
    ie) Based on Customer PO, he will create Sales order
        Based on Item catogary  BANC and Order Type OR, the Item catogary TAB will be Triggered and Based on   Item catogary TAB, the Schd.Line catogary CB will be triggered....and Based on Schd.Line catogary CB the PR will be automatically triggered with Acc.***.Catogary "E'....this will be converted in to PO and for the same GR will be done and the stock is updated as Special Stock as "SALE ORDER STOCK"
    My problem is if I Create Delivery in VL01N to the customer based on that Sale Order...The Warning mesage is coming as  "No Schedule Lines Due for delivery up to Selected Date" and I could not create the delivery...
    It will be highly appreciated if anybody can help me in this regard
    Regards
    S.Baskaran

    Hi baskaran,
    Check the Delivery Date of that order( In schedule lines u can find the Delivery Date) and check the VL01N Transaction code delivery date
    these two should be same.
    Regards..
    Praveen Kumar.D

  • Cancel billing doc (S1) is not creating Accounting document

    Hi,
    I have cancelled F2 billing document with cancel billing type S1. But for that cancel billign doc S1 is still in open status only and it is not creating accounting document..
    I tried to release to accounting but it is showing error like " Document type is not defined"..
    Please any guess on this..
    regards
    sankar

    Hi sankar
    I am sure you might be aware of this but just to reiterate
    When you cancel documents in Logistics Invoice Verification, the document line items are not automatically cleared in Financial Accounting. We recommend that you periodically clear such items (using daily background jobs, for example).
    Kalpesh

  • Lightroom 3 not creating folders in Library module

    Normally a folder corresponding to the directory I imported my images from is added to the FOLDERS bar in the LIBRARY module.
    I didn't realize until today, when I tried to go back to some older photos, that since the beginning of August LR has not been creating a folder with each import. The only way to navigate to those photos is using CATALOG -> ALL PHOTOGRAPHS.
    I tried adding a folder with the "+" but that just tries to import photos that are already in my catalog.
    Is there a setting that changed? Is this a bug?
    Thanks,
    -Andy

    Ah, well, that makes sense.  If you are "adding" them, then the images themselves are merely being referenced, and LR will not create new folders for them, but use the folders you already have them in.  So in order for them to be in the correct format, you'd have to have them in the correct location you want them referenced as.
    If you do, indeed have them in the proper format as you listed, then your most likely problem is you are selecting only the bottom layer, i.e, the final month folder for import.
      If you want the entire import path to show up, I believe you have to select the top level one, and use "include subdirectores" to let it find them below that.
    This will, of course, scan all of your other folders under there, and most likely identify lots and lots of duplicates, which it will then ignore.  But it will take a bit longer for the software to relalize it already has them and uncheck the ones it thinks it knows about.
    From my point of view, doing something similar, I use "move" instead to get it right without having to scan all the potential duplicates.  It doesn't take much more time if the images are on the same disk already.  Moving between disks adds time, but on the same disk it doesn't (effectively, anyway).  It also means that the images get put into the date/format under my top level project automatically, I don't have to create the original structure to begin with. I just load them all into one directory on the same disk, hit import, select the top level project they go into, and let it organize by date.  It displays on the large import window what directories it will be creating and how many images will go in each one.
    Anyway, I think that should give you the right ideas!
    Cheers!

  • SRM alert configurations for SUS ASN not created in SRM SUS system

    Hi All,
    We are trying to configure the SRM ASN alerts with the alert category SRM_SUS_AVIS ( Alerts for ASN-SUS) by the same way we did for the SRM_BID_INV for bidinvitation in different client and scenario.
    Is the configuration for SUS anyway different than EBP? ( I have posted another thread for bid alert doubt and later it was configured and working fine sometime ago)
    If the config for SUS ASN alert is different then what is that?
    With our configurations in SLAERT and ALRTCATDEF, and thru RSALERTTEST job we are getting alerts for PO not viewed and Order confirmation not created.
    But we are not able to get alerts for ASN  not created.
    Can anyone throw some light on this please?
    Best regards,
    Sridhar

    Vendor data is maintained in table CRMD_PARTNER only when transactional documents exist for the vendor.

  • Shopping Cart is not creating Purchase Order

    We are using SRM 4.0 in an extended classic version.  We have been running into a couple of situation where that shopping cart that are created and approved are not creating PO in SRM.  The follow-on document in the SC shows it's approved and the SC # but there is no purchase order linked to it.
    I have looked in tcode BBP_PD but it's not yielding anything to this situation. I have also checked to make sure BBP_GET_STATUS is running and that is fine....so can someone point me in a direction to look?

    Hi
    <b>Please refer to follwoing SAP OSS notes as well.</b>
    <u>Note 980017 - Follow-on document not created
    Note 949162 Follow-on documents exist, status I1111 and I1113 active
    Note 899006 - Status I1112 and I1113 even though subsequent doc exists
    Note 1040670 Requirements are greyed out in the sourcing cockpit
    Note 865797 BBP_ALERT_SB_NOTTRANSFERED: Incorrect status set
    Note 854478 Alert monitor: No longer possible to transfer shopping cart
    730239 Check status: Missing Backend reference
    798604 Shopping cart monitor: Icon transfer inactive
    729967 Shoppng cart:Status I1111,no follow-on docs->analysis report
    728536 Shopping cart: Follow-on docs => analysis-/correction report
    486246 Incorrect shopping carts offered for confirmation
    Note 432434 'Item in the transfer process' for reservations</u>
    Hope this will definitely help.
    Regards
    - Atul

Maybe you are looking for

  • Help with getting button color.

    I'm trying to make a little paint program. i want to be able to click on a color button and then assign the color of that button to a variable Color brushColor. funny thing is, when i compile this, it tells me that C:\java\javaprograms\TryPainting.ja

  • Unreliable wireless communication between laptop (Vista) and Time Capsule

    I am using a Time capsule for my wire less router at home. I have a new laptop running vista and the connection fails frequently. It is restored using repair. This does not happen with this laptop in other wireless locations. I also do not have this

  • Anti-Spam measures on feedback form

    Originally posted using Google Groups but it has not appeared here yet: Hi there, I have seen many forums use a system that asks you to enter a code word that is displayed as an image to help prevent automatic submissions. I am having problems with a

  • Cell definition not available in Webi

    Hi Gurus, I have defined cell definition in a bex report, but unable to get it in te webi report. We have  around 20 rows & 7 columns. Out of the 2 structures used only the row structure(characteristic structure ) is visible in webi. the keyfigure st

  • Tax code not appearing in Header data of MIRO

    Dear All, I have one query and it is as follows. I created one Input tax code A3 in transaction FTXP. When I went to transaction MIRO this tax code A3 is not appearing in header data of MIRO. Can you pls tell is there any other settings to be done to