What jars are necessary when building an Executable for JAXB??

I'm using JWSDP-1.2. I get the following error when I try to run my executable: DefaultValidationEventHandler: [FATAL_ERROR] Document root element is missing. I was curious which jars are necessary when making an executable for JAXB. So far I have: 1)dom.jar, 2) jaxb-api.jar, 3) jaxb-impl.jar, 4)jaxb-libs.jar, 5)jaxb-xjc.jar, 6)jax-qname.jar, 7)namespace.jar, 8)relaxngDatatype.jar, 9)sax.jar, 10)xalan.jar, 11)xercesImpl.jar, 12)xsdlib.jar . Are there any jars I'm missing? I thought I might be getting the error due to a missing class. I've made sure that the XML document is readable and that it exists. The application runs fine in Eclipse, but when I make an executable I get the ERROR message.

I'll have to read up on the doctype stuff, but I don't have anything like that included. Is it necessary? I read from the same XML document when I run inside Eclipse and also read the same document when I run the jar.
Below is the XML document I use and below the XML code is the code I use for my schema:
<?xml version="1.0" encoding="UTF-8"?>
<Information>
  <Employee number="1" TabPn="true">
    <FName>Jack</FName>
    <LName>Perry</LName>
    <Status>Part Time</Status>
    <Title>Software Developer</title>
    <DaysEmployed>
      <WorkDay>Monday</WorkDay>
    </DaysEmployed>
  </Employee>
  <Employee number="2" TabPn="true">
    <FName>Bob</FName>
    <LName>Smith</LName>
    <Status>Full Time</Status>
    <Title>Janitor</title>
    <DaysEmployed>
      <WorkDay>Monday</WorkDay>
      <WorkDay>Tuesday</WorkDay>
      <WorkDay>Wednesday</WorkDay>
      <WorkDay>Thursday</WorkDay>
      <WorkDay>Friday</WorkDay>
    </DaysEmployed>
  </Employee>
  <Employee number="3" TabPn="true">
    <FName>Fred</FName>
    <LName>Williams</LName>
    <Status>Full Time</Status>
    <Title>Sales</title>
    <DaysEmployed>
      <WorkDay>Thursday</WorkDay>
      <WorkDay>Friday</WorkDay>
    </DaysEmployed>
  </Employee>
</Information>------------------------------------------------------------------------------------------------------------------------------------------------
Schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--definition of simple elements-->
<xs:element name="FName" type="xs:string"/>
<xs:element name="LName" type="xs:string"/>
<xs:element name="Status" type="xs:string"/>
<xs:element name="Title" type="xs:string"/>
<xs:element name="WorkDay" type="xs:string"/>
<!--definition of attributes-->
<xs:attribute name="number" type="xs:positiveInteger"/>
<xs:attribute name="TabPn" type="xs:boolean"/>
<!--definition of complex elements-->
<xs:element name="DaysEmployed">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="WorkDay" maxOccurs="7"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>
<xs:element name="Employee" >
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="FName"/>
      <xs:element ref="LName"/>
      <xs:element ref="Status"/>
      <xs:element ref="Title"/>
      <xs:element ref="DaysEmployed"/>
    </xs:sequence>
    <xs:attribute ref="TabPn" use="required"/>
    <xs:attribute ref="number" use="required"/>
  </xs:complexType>
</xs:element>
<xs:element name="Information">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="Employee" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>
</xs:schema>

Similar Messages

  • What Jars are being used

    I have a big problem with the number of jars currently being used within my application.
    Is there a way of working out what jars are needed and which are not??
    Regards
    Jai

    I am interested in this as well. I have "jpa.jar" which I removed from my Eclipse build path and no errors. But it may have interfaces/classes that are referenced from other JARs in my WAR. How do I determine if any types in jpa.jar are being currently used so I can determine if it needs to be included in the WAR build or not?
    I tried [http://depfind.sourceforge.net/|http://depfind.sourceforge.net/] but it finds which JAR the type is in. I need to find references to a class from another class and tell me which JAR that's referenced. thx.

  • How do I find what jars are being used...?

    Hi all,
    I'm wondering if any of you could help me. I am looking for a method or tool that helps to find what library jars are being used within an application to try and help me erradicate unneccesary files since I find myself in a scenario similar to below. . .
    Obviously over time an application grows and you may being in a lot of libraries to provide functionality as you go. You may then find a better way of doing something or that part of code may be redundant, so the referencing class is removed, BUT the jar isn't removed from the application at the same time.
    Several years down the line your lib directory looks like it contains nearly every jar created sits in there, and you application is now being shipped out on DVD to cope with all the libraries!
    So, is there a tool or way (except removing them to see it anything breaks!) to check what jars are actually being referenced within an application?
    Any help would be appreciated,
    Cheers,

    Start java with the -verbose option and grep the output for lines starting with "[Opened". This will give you a list of all opened jar files.
    Bear in mind, that classes are loaded lazy, that is: only when they are referenced for the first time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • HT3231 What cables are necessary for the fastest transfer of data from MacBook Pro to MacBook Air

    What cables are necessary for the fastest transfer of data from MacBook Pro to MacBook Air

    As I posted "it is an Unknown", at least to me, what type FW port is on the OPs older Mac.
    LowLuster
    HT3231 Re: What cables are necessary for the fastest transfer of data from MacBook Pro to MacBook Air 
    Dec 26, 2013 8:04 PM (in response to OGELTHORPE)
    But the newest Mac notebooks do not have a firewire port.
    So he may need a TB to FW adapter, $29, a FW 400 or 800 cable, $??, and then a FW 400 to 800 cable/port adapter (If the old Mac only has a FW 400 port), $??.
    It is unknown if the old Mac has a FW 400 or 800 port.

  • What indexes are created when we check dimension as line item.

    What indexes are created when we check dimension as line item.
    and also What indexes are created when we check dimension as high cardinality.
    Where can i see that information in the system.
    Answers are highly appreciated.
    Regards
    Kunal

    Hi,
    Line item means it does not have any dimension table.
    High Cardinality means that the dimension is to have a large number of instances (that is, a high cardinality). Also, it is very important to indentify the line item dimension properly. E.g. Sales Order number, this will have the exact number of entries as the fact table entries. Hence, this can be created as a line item dimension. If you are not sure of high cardinality never select that. Activate this function when the dimension has is at least 10%- 20% the size of the fact table (in terms of the number of records). <b>In this case, B tree indices are created instead of bitmap indices.</b>. By default it is BITMAP but with high cardinality it is B-Tree indexing.
    Hope this helps.
    PB

  • What exactly are bezels when referring to the ipad?

    What exactly are bezels when referring to the ipad?

    In what context are you seeing this term? The only use of "bezel" in relation to the iPad I can think of is the frame, aka "bezel" that surrounds the screen.
    Regars.

  • When building an executable I get the error message var.lsb not found.

    When building that executable with LV 5.0 it will work, but it will not work on a korean version of WinNT 4.0.

    When exactly does the error message come up? When you're doing the build or when you attempt to run the executable?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • What cables are best when connecting apple tv, my HD tv has 2 HDMI slots but they are both in use, one for Sky and one for cinema. There are no hdmi slots spare on the cinema either ...

    what cables are best when connecting apple tv, my HD tv has 2 HDMI slots but they are both in use, one for Sky and one for cinema. There are no hdmi slots spare on the cinema either ...

    Mine has four  Seriously shauntana the splitter is easy, a simple click to changre feed and eventually you will damage the HDMI port or cable by taking it in and out.  True you can only use one feed at a time nut you can only use one port on the telly at one time too.  I used it on my old one port telly for PS3 and Sky and it worked a treat.
    Enjoy
    Jules

  • What permissions are needed on the client side for RunspaceFactory.CreateRunspace?

    Hi.
    I am running a remote powershell command from an IIS application to an Exchange server getting the below error. Everything works fine if the IIS application pool identity is in the local administrators group on the IIS server so we can rule out issues with
    firewall or anything on the Exchange server. It is a problem with lack of privileges on the local server. 
    So my question is: What permissions are required on the local server for RunspaceFactory.CreateRunspace? I find good documentation on the permissions required on the server side, but nothing about the client side.
    The last Win32 error code after failure is 1008.
    An internal error occurred. 
    at at System.Management.Automation.Remoting.Client.WSManClientSessionTransportManager.Initialize(Uri connectionUri, WSManConnectionInfo connectionInfo) 
    at System.Management.Automation.Remoting.Client.WSManClientSessionTransportManager..ctor(Guid runspacePoolInstanceId, WSManConnectionInfo connectionInfo, PSRemotingCryptoHelper cryptoHelper) 
    at System.Management.Automation.Remoting.ClientRemoteSessionDSHandlerImpl..ctor(ClientRemoteSession session, PSRemotingCryptoHelper cryptoHelper, RunspaceConnectionInfo connectionInfo, URIDirectionReported uriRedirectionHandler) 
    at System.Management.Automation.Remoting.ClientRemoteSessionImpl..ctor(RemoteRunspacePoolInternal rsPool, URIDirectionReported uriRedirectionHandler) 
    at System.Management.Automation.Internal.ClientRunspacePoolDataStructureHandler..ctor(RemoteRunspacePoolInternal clientRunspacePool, TypeTable typeTable) 
    at System.Management.Automation.Runspaces.Internal.RemoteRunspacePoolInternal..ctor(Int32 minRunspaces, Int32 maxRunspaces, TypeTable typeTable, PSHost host, PSPrimitiveDictionary applicationArguments, RunspaceConnectionInfo connectionInfo) 
    at System.Management.Automation.Runspaces.RunspacePool..ctor(Int32 minRunspaces, Int32 maxRunspaces, TypeTable typeTable, PSHost host, PSPrimitiveDictionary applicationArguments, RunspaceConnectionInfo connectionInfo) 
    at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspacePool(Int32 minRunspaces, Int32 maxRunspaces, RunspaceConnectionInfo connectionInfo, PSHost host, TypeTable typeTable, PSPrimitiveDictionary applicationArguments) 
    at System.Management.Automation.RemoteRunspace..ctor(TypeTable typeTable, RunspaceConnectionInfo connectionInfo, PSHost host, PSPrimitiveDictionary applicationArguments) 
    at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(RunspaceConnectionInfo connectionInfo, PSHost host, TypeTable typeTable, PSPrimitiveDictionary applicationArguments) 
    at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(RunspaceConnectionInfo connectionInfo) 

    Thanks Daniel.
    I see that the IIS server has a GPO setting 'Allow log on locally' to the local administrators group for this server. I will order add of the IIS app pool identity to this list.
    I tried the process monitor comparing runs with and without the app pool identity as local administrator. The runs are identical up to the point where one does something useful and the other closes 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN'.
    There are no failures.
    I am not using my runspace objects for multiple threads. I dispose after use.
    I will end up with the below if I change. Comments?
    public static PowershellResult RunPowerShellCommandExchange2010(string exchangeServer, string command, ICollection<KeyValuePair<string, object>> parameters, string usr, string pwd) {
    WindowsImpersonationContext impersonationContext = null;
    try {
    impersonationContext = WindowsIdentity.Impersonate(IntPtr.Zero);
    GetProcessInformation();
    try {
    var connectionInfo = GetExchange2010ConnectionInfo(exchangeServer, usr, pwd);
    using (var runspace = RunspaceFactory.CreateRunspacePool(1, 1, connectionInfo)) {
    using (PowerShell powershell = PowerShell.Create()) {
    var psCommand = new PSCommand();
    if (parameters != null) {
    psCommand.AddCommand(command);
    foreach (KeyValuePair<string, object> parameter in parameters) {
    if (parameter.Value == null) psCommand.AddParameter(parameter.Key);
    else psCommand.AddParameter(parameter.Key, parameter.Value);
    } else {
    //if parameters argument is null the command will be treated as script
    psCommand.AddCommand(new Command(command, true));
    powershell.Commands = psCommand;
    runspace.Open();
    powershell.RunspacePool = runspace;
    var resultPSObjects = powershell.Invoke();
    var psResult = new PowershellResult {
    PSObjects = resultPSObjects,
    Errors = powershell.Streams.Error.ToList()
    return psResult;
    } catch (Exception ex) {
    var windowsIdentity = WindowsIdentity.GetCurrent();
    int errorCode = Marshal.GetLastWin32Error();
    if (windowsIdentity != null) throw new Exception(string.Format("Failed to run Exchange powershell command '{0}' as user {1} passing executing user {2} due to: {3} at {4}. Server: {5}. Last error code: {6}", command, windowsIdentity.Name, usr, ex.Message, ex.StackTrace, exchangeServer, errorCode), ex);
    throw new Exception(string.Format("Failed to run Exchange powershell command '{0}' as unknown user passing executing user {1} due to: {2} at {3}. Server: {4}. Last error code: {5}", command, usr, ex.Message, ex.StackTrace, exchangeServer, errorCode), ex);
    } finally {
    if (impersonationContext != null) {
    impersonationContext.Undo();
    Tore Olav Kristiansen

  • What do I do when the recovery email for my security questions doesnt exist anymore?

    What do I do when the recovery email for my security questions doesnt exist anymore?

    Forgot security questions:
    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, and filling out and submitting this form.

  • What do I do when logic is asking for a serial number

    What do I do when logic is asking for a serial number

    Where is the serial number? Is it on the actual "apple care protection plan".

  • What are the best specs when building a PC for video & where to buy in US?

    Our current video machine has died - a problem we have constantly battled over the years with our video machines, primarily from the heat generated in the system. These have been spacious, well spec'd out desktops, so while I'm budget concious I thought I'd reach out for advice before going ahead. The biggest problems occur when  rendering video, esp. larger files.
    Also, I'm visiting the US for a few weeks, so that opens up some new possibilities (it's common to see much better pricing for systems in Canada than the US.)
    So my questions are two-fold.
    1) What would you recommend for buying a PC video machine today, while still on a budget? I would normally look for a higher end i7 processor, 16 Gb DDR3 ram, dedicated video card, ASUS motherboard with raid 0/5 and a couple of decent sized harddrives (not striped... had terrible experiences with my striped drives in the past). In particular, what would you recommend on the video card front for the best value/performance while not creating issues with heat (this is where I've had problems with a number of machines in the past)? In terms of harddrive management, are there some better options now for handling real time editing and rendering? (I would like to connect the 2 harddrives from the machine that has failed to the new machine.)
    2) I'm in Ft. Myers, FL for the next couple of weeks... what are some good options for either having a machine built or getting the parts to build myself? (I don't need an OS, but will install Win 7 Pro myself.) Normally I'd look to TigerDirect or CanadaComputers for a new system.
    My main use for the machine will be Premiere/After Effects, with some Photoshop/Illustrator.
    Any other advice/input on how to optimize the machine so that I don't have HDD issues and other isssues from overheating would be appreciated. Please keep in mind, I'm on a budget (which means I'd ideally like to spend between $800-$1300). :-)
    Thanks!
    Julie

    Build a Desktop Video Editing PC
    -3 price level ideas in http://www.pacifier.com/~jtsmith/ADOBE.HTM
    -what PC to build http://forums.adobe.com/thread/947698
    -2 how to build videos http://forums.adobe.com/thread/1104182
    -another video http://forums.adobe.com/thread/1145366
    -planning & Building http://ppbm7.com/index.php/intro-part-1
    -memory for LGA2011 http://forums.adobe.com/thread/1098759
    -an Adobe FAQ http://forums.adobe.com/thread/878520
    -http://www.shawnlam.ca/2012/premiere-pro-cs6-video-editing-computer-build/
    -http://www.videoguys.com/Guide/E/Videoguys+DIY9+Its+Time+for+Sandy+Bridge+E/0xe9b142f408a2 b03ab88144a434e88de7.aspx
    -several more links http://forums.adobe.com/thread/815798
    -build tuning http://ppbm7.com/index.php/final-results

  • Error 8 occurred when building an executable due to file permission error?

    I received this error on executable builds from two different .vis.  Other .vis in the project build without incident and the message below doesn't seem to indicate the file that is causing the problem, unless it is the SPT-errors.txt file listed at the end of the error message.
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 8 occurred at Copy in AB_Engine_Copy_Error_Files.vi->AB_Application.lvclass:Copy_Error_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  File permission error. You do not have the correct permissions for the file.
    =========================
    NI-488:  DMA hardware error detected.
    C:\Program Files\National Instruments\LabVIEW 8.5\project\errors\Japanese\SPT-errors.txt

    Hi DanielAllis,
    Like mentioned earlier, there is most likely an application on the internet that you can find and use where you can see what processes are calling specific files or folders to see if that specific file is being used by anything else.  It doesn't sound like this is the root of your problem, but it couldn't hurt to check.  Also, I have seen a similar problem to this with someone who was using the software Subversion and Tortoise with their application.  I am not familiar with this software in particular, but I have attached a link below that goes through the steps that this other person took to try and fix the same error when having this software on their computer.  Let me know if any of this helps!
    http://forums.ni.com/ni/board/message?board.id=170&message.id=172537&query.id=115461#M172537
    Regards
    Noah R
    Applications Engineering
    National Instruments

  • NoClassdefFoundError on the third-party jar's classes when building APK

    I am building a native extension for Android.
    For the android library, I create a android project and add several third-party jar files to build path.
    I extract a jar file from a android project and merge it and third-party jar files into a single jar file.
    I package ANE using a merged jar file and build a APK.
    When I install a APK and launch it, NoClassdefFoundError on the third-party class occurs.
    I use Flash Builder 4.6 and set sdk version to the Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    I decompile APK and check the classes.dex.
    Strangely a certain jar's classes are missing in the classes.dex.
    I tried googling and found a similar case.
    The following is the link :
    http://stackoverflow.com/questions/24777394/noclassdeffounderror-on-thirdparty-class-files -when-building-adobe-native-extens
    I try to follow the answer in this link.
    Did dx.jar in the AIR SDK really strip out some classes of third-party jar file??
    I inquired the java version of the third-party related with NoClassdefFoundError.
    Now I am waiting for the reply.
    Is anybody else know about this?

    The android-support-v4.jar is same.
    I check android-support-v4.jar's classes in ANE.
    But they are missing in APK after release build.
    I don't know why.
    I use Flash Builder 4.6 and Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    Is there anyone else know about this???

  • Error when building an executable in BridgeVIEW

    Hi,
    Every time I try to build an executable in BridgeVIEW I get an error that I have to close all VIs before building an EXE, but I only  have the top level VI open. I tried shutting down the PC and restarting but nothing works. I have seen this in LabVIEW, but LV closes them for you.
    Any ideas?
    Thanks.

    Lupita wrote:
    HI,
    You are probably right. So here is what Ive tried:
    1) Restarting my PC. Opening a blank new VI and trying to build an application by adding my "main.vi" as a top level VI. This way I make sure there are NO VIs opened.
    The list that appears on the Build Application menu contains ALL VIs called by my main.vi.
    Thanks again.
    I can't really say that I remember a behaviour like this but considering that the latest BridgeVIEW version corresponds to LabVIEW 4.1 (which was never released) or so, I would say that this is so long ago that my memory might be flaky here.
    And the application builder back then was also not the same as it is now. I'm afraid unless you are going to use a more recent version of LabVIEW together with the DSC Toolkit (which is basically what BridgeVIEW evolved into) there is little cahnge that anybody can help you with this here.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for