JAXB External Custom Bindings Issue

I have a very large schema that I am trying to bind using JAXB. The naming in the schema is very good, nor is the structure, so I was hoping to do some custom binding. When I went to start the custom binding in an external file XJC returns an error saying that the target node is empty. It works fine if I give it the schema location and point it at the root of the schema, but trying to access the first complex type doesn't work. My external custom bindings file is below, an excerpt from the XSD Follows it, as well as my error. Please keep in mind that I cannot modify the schema in anyway.
<?xml version="1.0" encoding="UTF-8"?>
<jxb:bindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" jxb:version="1.0"
schemaLocation="fgdc.xsd">
<jxb:bindings node="/xsd:schema">
<jxb:schemaBindings>
<jxb:package name="gov.noaa.clas.neaat.schema.fgdc"/>
</jxb:schemaBindings>
</jxb:bindings>
<jxb:bindings node="//xsd:complexType'@name=metadataType'">
<jxb:class name="FgdcMetadataInterface" implClass="FgdcMetadata">
<jxb:javadoc>Data about the content, quality, condition, and other
characteristics of data.</jxb:javadoc>
</jxb:class>
</jxb:bindings>
</jxb:bindings>
<xsd:complexType name="metadataType">
<xsd:sequence>
<xsd:element ref="idinfo"/>
<xsd:element ref="dataqual" minOccurs="0"/>
<xsd:element ref="spdoinfo" minOccurs="0"/>
<xsd:element ref="spref" minOccurs="0"/>
<xsd:element ref="eainfo" minOccurs="0"/>
<xsd:element ref="distinfo" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="metainfo"/>
</xsd:sequence>
</xsd:complexType>[xjc] Compiling file:/C:/Joshua/trunk/schema/schema/data.xsd and others
[xjc] [ERROR] XPath evaluation of "//xsd:complexType'@name=metadataType'" results in empty target node
[xjc] line 10 of file:/C:/Joshua/trunk/schema/schema/fgdc.xjb

I have a very large schema that I am trying to bind using JAXB. The naming in the schema is very good, nor is the structure, so I was hoping to do some custom binding. When I went to start the custom binding in an external file XJC returns an error saying that the target node is empty. It works fine if I give it the schema location and point it at the root of the schema, but trying to access the first complex type doesn't work. My external custom bindings file is below, an excerpt from the XSD Follows it, as well as my error. Please keep in mind that I cannot modify the schema in anyway.
<?xml version="1.0" encoding="UTF-8"?>
<jxb:bindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" jxb:version="1.0"
schemaLocation="fgdc.xsd">
<jxb:bindings node="/xsd:schema">
<jxb:schemaBindings>
<jxb:package name="gov.noaa.clas.neaat.schema.fgdc"/>
</jxb:schemaBindings>
</jxb:bindings>
<jxb:bindings node="//xsd:complexType'@name=metadataType'">
<jxb:class name="FgdcMetadataInterface" implClass="FgdcMetadata">
<jxb:javadoc>Data about the content, quality, condition, and other
characteristics of data.</jxb:javadoc>
</jxb:class>
</jxb:bindings>
</jxb:bindings>
<xsd:complexType name="metadataType">
<xsd:sequence>
<xsd:element ref="idinfo"/>
<xsd:element ref="dataqual" minOccurs="0"/>
<xsd:element ref="spdoinfo" minOccurs="0"/>
<xsd:element ref="spref" minOccurs="0"/>
<xsd:element ref="eainfo" minOccurs="0"/>
<xsd:element ref="distinfo" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="metainfo"/>
</xsd:sequence>
</xsd:complexType>[xjc] Compiling file:/C:/Joshua/trunk/schema/schema/data.xsd and others
[xjc] [ERROR] XPath evaluation of "//xsd:complexType'@name=metadataType'" results in empty target node
[xjc] line 10 of file:/C:/Joshua/trunk/schema/schema/fgdc.xjb

Similar Messages

  • JAXB External Customizations

    Hello all,
    I've been trying to build a JAXB external customizations file that covers several schemas simultaneously. The JWS 2.0 tutorial mentions the following regarding an external customizations file ...
    You can have a single binding file that contains customizations for multiple schemas,
    or you can break the customizations into multiple bindings files; for example:
    xjc schema1.xsd schema2.xsd schema3.xsd -b bindings123.xjb
    xjc schema1.xsd schema2.xsd schema3.xsd -b bindings1.xjb -b
    bindings2.xjb -b bindings3.xjb
    Note that the ordering of schema files and binding files on the command line
    does not matter, although each binding customization file must be preceded by
    its own -b switch on the command line.
    The JAXB documentation says that the external file format is as follows:
    <jxb:bindings schemaLocation = "xs:anyURI">
    <jxb:bindings node = "xs:string">*
    <binding declaration>
    <jxb:bindings>
    </jxb:bindings>
    where schemaLocation is of the form schemaLocation="some-schema.xsd"
    My question is, how do I reference multiple schemas inside the same customizations file? Everything I've tried to date has failed except creating separate customizations files for each schema. Thanks In Advance.
    - John

    Hi.
    I have already read it. I don't know how to define wsdlLocation (main wsdl or another wsdl?) inside example jaxb bindings. I have tried something like
    <jxb:bindings version="1.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <jxb:bindings wsdlLocation="path.to.my.main.wsdl" node="//xs:complexType[@name='objectFactory']">
          <jxb:class name="MyObjectFactory" />
       </jxb:bindings>
    </jxb:bindings> and I'm getting error
    [ERROR] XPath evaluation of "//xs:complexType[@name='objectFactory']" results in
    empty target node
      line 2 of file:myBinding.xjb

  • Custom component issue

    Custom component issue
    According to customer requirements, we want to get such an effect in the development of custom components:
    Drag and drop custom components to the Flex builder work area, it can generate more than the default properties, not just generate "x", "y" attribute.
    【Details are as follows】
    We design a custom panel "CustomPanel.mxml" in the project development, then drag it into the workspace in the Flex builder development environment.
    View the source code found that it can only generate "x", "y" attribute in default. That is:
    <ns2:CustomPanel x="105" y="74">
    </ns2:CustomPanel>
    【Issue】
    How can we do that when drag the 'custom component' into Flex builder workspace,  we can generate "layout" attribute in addition to "x", "y" attributes?
    That is:
    <ns2:CustomPanel x="105" y="74" layout="absolute">
    </ns2:CustomPanel>
    【Note】
    The following code will be generated when the "panel component comes with Flex builder environment" is dragged into workspace.
    <mx:Panel x="121" y="134" width="250" height="200" layout="absolute">
    </mx:Panel>
    How it is done?

    I am sorry to bother you again.
    I have tried the web site content, but it can't helped!
    There is a custom component called 'Basket', source code is as follows:
    package picnic
    import mx.containers.Panel;
    public class Basket extends Panel
      public function Basket()
       super();
       layout = "vertical";
       setStyle("backgroundColor", 0x00FFFF);
       setStyle("horizontalAlign", "center");
    Here it is worked when the attribute "layout" is set to "vertical", but it isn't when "layout" is set to "absolute" !
    When the property is set to "absolute" phenomenon is as follows:
    Drag component such as 'Button' into "picnic component". It will automatically go to the top left corner position,
    just like the 'layout-attribute' is not set.
    Why is there such a phenomenon?

  • How do I contact Verizon corporate regarding customer service issues?

        I'm trying to escalate an issue that I have with customer service and just can't seem to find out how to contact corporate to discuss my issue.  I have talked to customer service supervisers and asked them to escalate my complaint.  After being told it would be 5-7 days to respond, I'm still waiting.  Any help in contacting the right department at corporate would be helpful.

    Hello asianguy1964,
    I am available to assist and address any concerns that you may have in reference to customer service issue! May I ask is your posting regarding a billing issue, wireless service issue, or a interaction with a representative? Also, were you provided a reference number to your complaint? If you have a reference number then I can check on the status of your concern. Prior to investigating your reference number, would you be kind as to share the details of the issue as I'm condifent that we can If I am unable to provide a solution for you then the additional information will help me forward your concern to the appropriate channel. I look forward to hearing from you in the near future.
    Thank you...
    ArnettH_VZW
    Follow us on Twitter @vzwsupport

  • Connect external customer SolMan

    Dear Colleauges,
    as a VAR-customer we want to connect an external Customer-SolMan to our internal SolMan e.g. for replicating support desk messages. I know the scenario of connecting an external product to the SolMan service desk but in this case two SolMan should communicate among each other and our VAR-SolMan is used to forward messages to SAP.
    Is this possible?
    Thanks in advance

    Hi Soon,
    Please do the following steps to use the smdsetup script to switch the connection type to saprouter support.
    1. Stop SMDAgent
    2. Open a command prompt / terminal window in the script directory of the SMDAgent (e.g. /usr/sap/SMD/J98/script) and enter these commands:
    a. smdsetup addsaprouter route:"/H/srhost"
    b. smdsetup saprouterpass pass:"srpw"
    3. If you use SP18, check the following troubleshooting section. The last property(smd.agent.connection.transport) must be added manually to the runtime.properties file. Starting with SP19, it is added automatically.
    4. start SMDAgent
    5. Go to Agent Administration to see if the agent is marked as connected (greentraffic light)
    >>>
    3.1.1 Troubleshooting
    double-check in runtime.properties
    (/usr/sap/SMD/J98/SMDAgent/configuration):
    smd.agent.connection.saprouter=/H/srhost
    smd.agent.connection.url=p4\://smhost\:50004
    smdserver.connection.interval=30000
    smdserver.connection.requiresAuthentication=true
    smd.agent.connection.transport=SAPRouter
    Check agent logs: P4.log, SMDSystem.log
    Important: A known problem may lead to periodic disconnects of the
    SMDAgent.
    Please check SAP Note 1348549 for a fix.
    Thanks
    Vikram

  • Display Login failure when using External Custom Login Form

    I am new to OAM area and really apreciate if some one can guide me in the right direction. I have configured External Custom Login Form (thanks to fusionsecurity blog) with Oracle Access Manager 11g + webgate 10g. If I enter correct user id and password in the below form, then all is good and able to access the protected resoruce.
    If I enter incorrect values for loginname/password fields, then the from simply refreshes itself and does not give me any error message. How can display error message when a user enters in correct values for those fields?
    <form action="http://hostname:7777/oam/server/auth_cred_submit" method="post">
    <fieldset>
    <legend>Login Screen</legend>
    <label for="username" accesskey="u">User Name:</label>
    <input type="text" id="username" name="username" size="15" tabindex="1">
    <label for="password" accesskey="p">Password:</label>
    <input type="password" id="password" name="password" size="15" tabindex="2">
    <input type="hidden" name="login-form-type" value="pwd">
    <input class="submit" type="submit" value="Login" tabindex="3">
    </fieldset>
    </form>
    Thanks

    Hi!
    I have installed Oracle Access Manager 11g + Webgate 11g and not 10g, but I think
    it has to work beause login is being processed by OAM (/oam/server/auth_cred_submit);
    and it if does not work, it may give you a clue on how to do it.
    Having stated that fact, it is very simple to do it: whenever I try to access a protected
    resource and I am not authenticated I am redirected to my login page and some
    special parameters are passed to it such as: request_id, OAM_REQ, authn_try_count and
    some others.
    authn_try_count is the magic one as it show the number of login tries, so here is
    a code snippet of my login page which uses JSTL for conditional processing.
    <form...>
    <c:if test="*${param['authn_try_count'] > 0}*">
    &lt;span class="error-msg"&gt;
    <fmt:message key="login.val.wrong.login"/>
    &lt;/span&gt;
    </c:if>
    </form>
    Best regards,
    Jesús García from
    Mexico city

  • External custom component development as a plugin.

    Hi All,
        This is the  requirement :
          A plugin which fits inside the AE as a tab. Is it possible for  developing an external custom component inside AE as a plugin? The custom component's events will be handled by the custom component itself.
         Please  provide some links or any suggestions.
    Thanks and Regards,
    Dheeraj.

    Thanks shachar for your reply. I checked the Panelator plugin, it's using OS calls for all the stuffs. If I have a dll or an exe (which I create using a platform independent framework for UI & event handling), is it possible for me to get that UI in some window? I'm very new to this plugin development, it will be very useful if you can tell me the procedure of embedding dll or exe into AE.
    Thanks,
    Dheeraj.

  • JAXB 2.0 : Issue with custom bindings

    I have defined an inline JAXB 2.0 customization in my schema as follows:
    <xs:annotation>
    <xs:appinfo>
    <jxb:globalBindings>
    <jxb:javaType name="int" xmlType="xs:integer"
    parseMethod="javax.xml.bind.DatatypeConverter.parseInt" printMethod="javax.xml.bind.DatatypeConverter.printInt"/>
    <jxb:javaType name="double" xmlType="xs:decimal" parseMethod="javax.xml.bind.DatatypeConverter.parseDouble" printMethod="javax.xml.bind.DatatypeConverter.printDouble"/>
    </jxb:globalBindings>
    </xs:appinfo>
    </xs:annotation>
    But when I compile the schema, all the elements in it defined as xs:integer are converted to Integer objects instead of a primitive int.
    An Adapter1.java file is created as follows:
    public Integer unmarshal(String value) {
    return (javax.xml.bind.DatatypeConverter.parseInt(value));
    public String marshal(Integer value) {
    return (javax.xml.bind.DatatypeConverter.printInt(value));
    I even tried using a custom binding class and defining its print and parse methods but same result.
    Why is the Adapter class created and why is the custom binding not followed?
    Can somebody help me here.
    Thanks.

    JDeveloper 10.1.3.2 does not support JAXB 2.0.
    JAXB 2.0 support may be added.
    Using JAXB 2.0 with JDeveloper 10.1.3

  • How Do I get Help with a Major Customer Service Issue?

    Hello,
    I am a Pro Care member and I took my Macbook Pro in to one on the local stores to ask them about a font issue that I was experiencing. One one the Genius guys came over and asked me a few questions and told me that this wasn't a big deal at all, that they just needed to reinstall my default fonts and that it should take maybe 45 minutes. This was at 4:30pm. Six hours later they came back to be to tell me that they had corrected the font issue but all of my user data and applications were lost! It was if I had a brand new Macbook Pro! This was a Friday evening. I was told to take my laptop to a company called Data Savers the next day to have this company try to restore my data/applications.
    I took my laptop to Data Savers on Saturday and they told me that they would need to keep it for a day. I went back to pick it up on Sunday and I was given an external drive that had "raw restored data" on it. When I had been speaking with the store manager about the situation and he wanted me to provide him with a list of software that was on the machine. So, when I got home from picking up my laptop from Data Savers I started it and all I got was an icon of a circle with a slash through it!! I called the guys at Data Savers and told them about this and they asked to bring the laptop back to them on Monday. I did. After running some diagnostics on the machine I was told that my hard drive was "toast!"
    Needless to say I was both upset and distraught! The store manager told me (in emails that I still have) that he understands how upset that I was about coming in for a font related issue and three days later being told that my laptop was no more that a big paper weight. He said (in these emails) that he would replace my laptop and he would try to get me the latest versions of the software that I had to make up for the business that I had lost in the last few days due to the fact that I didn't have have my machine.
    The store manager then called me back on a Tuesday and said that his superiors had told him that he cold not do what he said that he would do. Obviously, this increased my level of frustration. I was able to speak to this manager, think it may have been some sort of regional manager and after indicating that I had emails of the store manager acknowledging the facts of the matter and stating that he was very sorry for what happen, the regional manager said that she wanted me to send her copies of the emails. I told her that the store manager had copies of everything. She told me that she would get back to me. This was Wednesday afternoon. That same evening the store manager called me to say that "because I was lead to believe that Apple would replace my laptop, they would do so. I was told to be be at the store around noon on the following day (Thursday) and to bring my laptop. I was told that they would replace it.
    When I got to the store on Thursday, the manager came up to me and shook my hand and said that he was sorry for all the trouble and inconvenience. He went on to say that before he could replace my laptop that I would have to sign a document saying that I agree that they were not responsible for anything that had happened in the past six days!!
    The fact is, that isn't true and they know it. I have the email to prove it. I didn't sign the document. the next day because I could no longer afford to lose money and clients I went into another Apple store and purchased in brand new system!
    The fact is that I believe that Apples products are far superior to PC products. I was told by some to never buy from Apple again and tell everyone that I know about my experiences with this particular store. All I want is for Apple to do the right thing! Just replace my Macbook Pro like they said they were going to do. They don't have to provide any software updates, just do the right thing and replace my machine!!
    Can anyone tell me if they have had a similar experience and if so, how it was resolved? Who in the corporate office can I talk to about this to get it resolved? Are there and Apple insiders out there that can help me resolve this situation? I would like to avoid having to take legal action if at all possible.
    I look forward to any help that you can provide.
    SydCam

    Apple Computer Customer Relations:
    1-512-674-2500

  • PKGBUILD for custom kernel issue

    Hi all,
    Last night I was putting together a PKGBUILD for a kernel I'd like to compile that has the ck patchset, grsecurity (latest testing), and had broadcom-wl on it already so I don't have to keep reinstalling it from AUR and doing depmod each time as it keeps making me have to find an ethernet cable. I used the kerne26 Arch PKGBUILD as a base and included parts of kernel-netbook for broadcom-wl, kernel26-grsecurity, and kernel26-ck and altered name variables and links etc so it all works and all sources are downloaded. I also got the two .patch files (semaphore and something else) from the kernel-netbook tarball to build the thing with, I don't know if it would work without them.
    However when I get into the build() a few patches are applied before I get messages about patches already applied or reversed, and then it says build failed because of an error, I can't tell which package is causing thins or why (it all goes by too fast, and the error says failed without reason, and the reversed patch messages are what is immediately previous to it). I have not yet gone all the way through the pkgbuild - especially towards the end, and I felt that the standard setup of init file system creation and such were ok, and if anything does need altering about it, I can deal with it once I get these first troubles solved.
    Below is my pkgbuild so far. Hopefully there are people out there who can aid me with this.
    Thanks,
    Ben.
    # Maintainer: Ben Ward <[email protected]>
    pkgbase="kernel26"
    # pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
    pkgname=kernel26-custom # Build kernel with a different name
    #Base kernel info
    _kernelname=${pkgname#kernel26}
    _basekernel=2.6.38
    pkgver=${_basekernel}.3
    pkgrel=1
    #ARCH patch info
    _archpatchver=1
    _archpatchname="patch-${pkgver}-${_archpatchver}-ARCH"
    #_archpatchname="patch-${pkgver}-1-ARCH"
    #grsecurity info
    _grsec=2.2.2
    _timestamp=201104182227
    #Broadcom-wl info
    _broadcom_ver=5.100.82.38
    _broadcom="hybrid-portsrc_x86_32-v${_broadcom_ver//./_}"
    #ck-patch info
    _ckpatchversion=3
    _ckpatchname="patch-${_basekernel}-ck${_ckpatchversion}"
    arch=(i686 x86_64)
    license=('GPL2')
    url="http://www.kernel.org"
    options=(!strip)
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
    ftp://ftp.archlinux.org/other/kernel26/${_archpatchname}.bz2
    http://grsecurity.net/test/grsecurity-${_grsec}-${pkgver}-${_timestamp}.patch
    http://www.broadcom.com/docs/linux_sta/${_broadcom}.tar.gz
    http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/${_basekernel}/${_basekernel}-ck${_ckpatchversion}/${_ckpatchname}.bz2
    "semaphore.patch"
    "mutex-sema.patch"
    # the main kernel config files
    config config.x86_64
    # standard config files for mkinitcpio ramdisk
    kernel26.preset)
    md5sums=('7d471477bfa67546f902da62227fa976'
    'b3677121c4b5efcb8128c2000788d0aa'
    '5b14b6eb2cdcb074905d4974437c4df6'
    'a19024797f192fe21a468de80c101d8a'
    'c0074a1622c75916442e26763ddf47d0'
    '88d5b3e0622f8c48dad19ab9ac3c16f0'
    'aee89fe7f034aea2f2ca95322774c1b5'
    '21ce3f7967d7305064bf7eb60030ffea'
    'f66543886835ab8599b29cd0c48aa66d'
    'd866bcc06672fee17736bd5022f700fe'
    '25584700a0a679542929c4bed31433b6')
    build() {
    cd ${srcdir}/linux-$_basekernel
    # Apply kernel.org patch to basekernel
    msg "Checking basekernel is ip to date..."
    if [[ "${_basekernel}" != "${pkgver}" ]]; then
    msg "Patching source with upstream patch..."
    patch -Np1 -i "${srcdir}/patch-${pkgver}" || return 1
    fi
    # Add -ARCH patches
    # See http://projects.archlinux.org/linux-2.6-ARCH.git/
    msg "Patching Kernel with ARCH patches..."
    patch -Np1 -i ${srcdir}/${_archpatchname}
    # Add ck patch
    msg "Patching Kernel with ck patches..."
    patch -Np1 -i ${srcdir}/${_ckpatchname}
    # Add grsecurity patch
    msg "Patching kernel with grsecurity testing branch..."
    if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    else
    cat ../config >./.config
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    #make menuconfig # CLI menu for configuration
    make nconfig # new CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"
    #return 1
    yes "" | make config
    # build!
    make ${MAKEFLAGS} bzImage modules
    package_kernel26() {
    pkgdesc="The Linux Kernel and modules"
    groups=('base')
    backup=(etc/mkinitcpio.d/${pkgname}.preset)
    depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.12-2' 'mkinitcpio>=0.6.8-2')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
    # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
    # kernel24 support is dropped since glibc24
    replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
    'gspcav1' 'atl2' 'wlan-ng26' 'rt2500' 'nouveau-drm')
    install=kernel26.install
    optdepends=('crda: to set the correct wireless channels of your country')
    KARCH=x86
    cd ${srcdir}/linux-$_basekernel
    # get kernel version
    _kernver="$(make kernelrelease)"
    mkdir -p ${pkgdir}/{lib/modules,lib/firmware,boot}
    make INSTALL_MOD_PATH=${pkgdir} modules_install
    cp System.map ${pkgdir}/boot/System.map26${_kernelname}
    cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
    # # add vmlinux
    install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i $startdir/kernel26.install
    sed \
    -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
    -e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
    -i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
    # remove build and source links
    rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    # gzip -9 all modules to safe 100MB of space
    find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
    ##Section: Broadcom-wl
    msg "Compiling broadcom-wl module:"
    cd ${srcdir}/
    #patching broadcom as broadcom-wl package on AUR
    patch -p1 < license.patch
    patch -p1 < semaphore.patch
    patch -p1 < mutex-sema.patch
    make -C ${srcdir}/linux-$_basekernel M=`pwd`
    install -D -m 755 wl.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko
    package_kernel26-headers() {
    pkgdesc="Header files and scripts for building modules for kernel26"
    mkdir -p ${pkgdir}/lib/modules/${_kernver}
    cd ${pkgdir}/lib/modules/${_kernver}
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd ${srcdir}/linux-$_basekernel
    install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
    for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video xen; do
    cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
    done
    # copy arch includes for external modules
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
    cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
    cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
    cp -a drivers/staging/usbvideo/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
    # add dm headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
    # add wireless headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
    cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/11194
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    # add dvb headers
    # in reference to:
    # http://bugs.archlinux.org/task/20402
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb
    cp drivers/media/dvb/dvb-usb/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends
    cp drivers/media/dvb/frontends/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners
    cp drivers/media/common/tuners/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/
    # add xfs and shmem for aufs building
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    # add headers vor virtualbox
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
    # add headers for broadcom wl
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
    # add headers for crypto modules
    # in reference to:
    # http://bugs.archlinux.org/task/22081
    cp -a include/crypto $pkgdir/usr/src/linux-${_kernver}/include/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
    done
    chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
    find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    # strip scripts directory
    find ${pkgdir}/usr/src/linux-${_kernver}/scripts -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "$binary")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip $STRIP_SHARED "$binary";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip $STRIP_STATIC "$binary";;
    *application/x-executable*) # Binaries
    /usr/bin/strip $STRIP_BINARIES "$binary";;
    esac
    done
    # remove unneeded architectures
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    package_kernel26-docs() {
    pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
    cd ${srcdir}/linux-$_basekernel
    mkdir -p $pkgdir/usr/src/linux-$_kernver
    mv Documentation $pkgdir/usr/src/linux-$_kernver
    find $pkgdir -type f -exec chmod 444 {} \;
    find $pkgdir -type d -exec chmod 755 {} \;
    # remove a file already in kernel26 package
    rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile
    I wonder if localyesconfig would take care of broadcom-wl for me...
    Last edited by Ben9250 (2011-04-20 00:12:44)

    Thank you. I guess trying the abs method wouldn't hurt. My main issue was configuration. I've only just skimmed the PKGBUILD so I'm not aware of how it handles it. I suppose I could write my own as described in the wiki as well. Thanks again.
    Edit: Further research has revealed to me that the kernel headers are merely there for when the full source tree isn't. Seeing as the full tree is present in my case, the headers are unnecessary. I may take graysky's advice though and use pacman to manage my kernel.
    Last edited by smithr.michael1997 (2011-03-31 02:17:29)

  • External Learning Workflow Issue

    Hi Friends,
    I am trying to have approvals for External Tranings. For this I changed the "HR_APPROVAL_REQ_FLAG" to Yes. I am now able to go to the Next Page, wcich is the Review Page. However we are not using AME and when defining the function parameters we have the ame attributes that are being passed. There are a couple of issues here
    1> When I intiate a new transaction to add External Learning for the users, no workflow is generated
    2> I want to modify the workflow in such a way that the approvals should be custom generated. I will generate these approvals and design the workflow. But where do we start in the workflow.
    Can someone please help. We are on R12.1.3
    Thanks
    Edited by: user9197772 on Jan 17, 2013 2:27 AM

    Hi Friends,
    My apologies. The workflow has kicked off and it took a while for that to happen. I just needed to have a little bit of patience. I can work on this now. The thread can be closed now.
    Thanks

  • Custom WebAuth issues

    I'm trying to get a custom webauthentication page for two WLANs working, with RADIUS authentication.
    The default web-auth page has been operational for some time so there are no issues with the process itself.
    For some reason when I click on the submit button, while using the custom page, nothing happens. There's no redirect, no entry in RADIUS.
    The script code is exactly the same, word for word. The only things modified are the style layouts of the page as well as the coloring.
    I've noticed this line of code for the scripting:
    "<script language="javascript" src="./loginscript.js"></script>"
    Is 'loginscript.js' something that needs to be set up and uploaded along with the custom page, or is that coded into the WLC software?
    Any other insight on why this may not be working? Thanks.

    In 4.1, the feature to allow upload of webauth html files to the controller was introduced. Only when the webauth type is "customized" (not external or internal), the webauth URL includes "fs/customwebauth" to point to the files stored on the controller's flash file system. This should not affect scripts that were used before, for internal or
    external webauth.
    You can navigate the directories for web related html files (only the uploaded ones) using devshell shell. You will be able to find the custom webauthentication directory, after you have uploaded the webauth files to the controller.

  • Custom Authentication Issue with Policy Agent

    Hi,
    I have a custom authentication module which is hosted on the BEA application server and I am trying to access through the policy agent on apache.
    I have set the following property in AMAgent.properties file
    com.sun.am.policy.am.loginURL= http://host:port/amserver/UI/Login
    So When the user requests a protected resource, the policy agent forwards the user to Identity Server with the module as CustomLoginModule. However, after this, authentication is succeed, user sesion is being created and I get the following error message in the agent log file.
    2004-10-19 16:20:26.908 Error 27620:e1140 PolicyEngine: am_policy_evaluate: InternalException in Service::construct_auth_svc with error message:Application authentication failed during service creation. and code:3
    2004-10-19 16:20:26.908 128 27620:e1140 RemoteLog: User unknown was denied access to http://hostname:port/weblogic/protapp/protected/a.html.
    2004-10-19 16:20:26.908 Error 27620:e1140 LogService: LogService::logMessage() loggedBy SSOTokenID is invalid.
    2004-10-19 16:20:26.909 Error 27620:e1140 all: am_log_vlog() failed with status AM_REMOTE_LOG_FAILURE.
    2004-10-19 16:20:26.909 -1 27620:e1140 PolicyAgent: URL Access Agent: access denied to unknown user
    The necessary policy object is already created in Identity Server. Please send your suggestions to fix this problem.
    Thanks
    Neeraj

    Hi Neeraj,
    I still have not been able to resolve that issue. Let me know If you find a solution for the same.
    Thanks,
    Srinivas

  • Customer service issues

    I am having significant issues getting u-verse installed with the rate and equipment promised when I signed up (which have record of via chat).  One the day prior to installation I talked to an Esther in Customer Service in San Antonio who confirmed my appointment and guaranteed a 1TB DVR would be delivered with the installer for installation.  The installer (Tracy Pickett #TP8522, super polite) came to my house on 6/17 without the 1TB DVR I was promised and the service was provisioned for neighbor’s house.  That was going to double the time for installation, plus no 1TB DVR, so I told the installer I would reschedule.  That day I talked with a difficult character who told me he was in "Ghalla" (India?) named James who was difficult to understand and extremely rude, but he promised me a 1TB DVR, but could not get the agreed upon month rate correct (again guaranteed in writing via chat).  He told me it would be $25 more per month than agreement.  He then transferred me to a Kim in Retention in Jackson, MS who got the price right, but included a $49.95 install fee with 1TB DVR.  She said I was all ready and good to go, but she was going to talk to her supervisor about getting the installation fee waived and additional credits for my troubles that day and with James who she agreed was very difficult to deal with when she conversed with him.  She promised a return phone call from supervisor by end of the day…13 days later, No Call.  The following week I called Customer Service again and after going through several people ended up with rep named Princess in Retention in San Antonio.  She was not the friendliest character telling me AT&T did not even offer a 1TB DVR and that I would need to check with DirecTV since they are the only provider that offers such equipment.  I proceeded to tell her of my original chat, conversations with Esther, Kim and James as well as my installer, Tracy, all telling me a 1TB was available.  While talking on phone I googled it and found it was available, but she still continued to deny availability.  Finally she contacted technical support and told me it was available, but I would have to talk to the sales department.  I told her I was working with her, so she contacted sales which stated I would have to take a regular DVR and then “request” a 1TB DVR after installation.  I told her that was not going to happen since it was promised to me up front and what’s to say I was going to get it once service was ongoing and I was locked in.  She stated she would have her supervisor, Roland, call me within one hour...still No Call.  Essentially I want to switch to your product from a competitor, but your employees are making it extremely difficult.  I treat each one of them with the utmost respect, but obviously it’s not reciprocal.  This is my last effort to get service, if this doesn’t work out I am going to just cancel and stay with my current provider.  Please help!

       That the exact problem w/chat, everything gets jumbled up.  ATT does have a 1TB DVR, but only for Gigapower users, no one else.
    Chris
    Please NO SD stretch-o-vision or 480 SD HD Channels
    Need Help? PM ATT Uverse Care (all service problems)
    ATT Customer Care(all other problems)
    Your Results May Vary, In My Humble Opinion
    I Call It Like I See It, Simply a U-verse user, nothing more

  • Customer Service Issue Tyler Tx Best Buy

    I recently had the worst experience at the Tyler TX Best Buy. I sent an email via the website to the store manager.
    Below is what I sent.
    "I have been a loyal patron of the Tyler Best Buy ever since it opened and never have I been treated so poorly. I believe this needs to be brought your attention.
    Three or four days ago I came into your store and picked up a Nintendo Captain Falcon Amiibo figure. Upon check out I was told the item was put on the shelf by mistake and they WOULD NOT (was it necessary for the rude sales guy to emphasize "would not") sell it to me until it's release on 12/30/14. I asked him if there was anything that could be done, because it's not my fault your employees put it plainly on a peg for all the world to see. I was told there was absolutely nothing that could be done. The only option presented to me was to return today, on 12/30/14, and purchase the item then. I frustratingly agreed and went home and told my kid he would have to wait until the 30th. I have heard nothing but Captain Falcon from him since then.
    So I made sure I was the first person in the store today. I walked to the Amiibo section and, SURPRISE, there was no new products. I told the associate what I've written so far and he asked another guy who said to check the store room. I very patiently waited for him to return only to be told he could only find one of a different character. I explained again to him the situation and there was no way captain falcon had already sold out. I mean, I would assume the same practices are standard to each customer in the same situation, right? He asked me to wait a minute and I was soon met by a gentlemen in a black Best Buy shirt. (Great - they only send in the black shirts when some thing is wrong)
    He asked if I was the gentleman looking for the Amiibos and I nodded. He told me the character was spoken for already. I asked how that was possible and once again reiterated my story to him. I was met with a blank stare and a "yea." He told me, more than likely because he wasn't "too sure," that the item must have been placed back on the shelf and when somebody raised a big enough stink about it the manager let them put their name on it so they could return on the release date. Really? Street dated items are continually being put on the shelf? Needless to say I was floored. When I asked why these exceptions were made for others and not myself he told he didn't know. I said thank you and turned and marched out the store.
    Never have I been so disappointed and angry at the same time about customer service. When I asked if it was a possibility I was vehemently told no, yet other customers who complained got an edge up on a street dated item. I was going to elevate this situation to the district manager, but I will let you take care of that. I am extremely irate about this. Not to mention I had the explain the situation to the kid. I promise you I will NOT be returning to your store. This whole experience has left me with the most terrible impression of your customer service.
    I sincerely hope you take this opportunity to educate your subordinates on consistent customer service practices. "
    As of today I have yet to receive any kind of response. No we are sorry for wasting your time. Not even a simple acknowledgment of the complaint. This is truly infuriating. Will somebody please at least recognize the situation?
    Thanks for your help.

    Dear Brawdon4,
    Before coming to work at the corporate level, I was a member of leadership in our stores for years. The teams I was a part of were always seeking the voice of our customers by utilizing the customer surveys listed on the bottom of our receipts and through face to face interactions with patrons shopping in our store. I am sorry if your concerns haven’t been treated with the same haste or care up until this point.
    Items that have a hard street date are not able to be sold before that date. This can permanently damage or sever our relationship with the respective vendor. Stores are typically very careful of ensuring these products aren’t prematurely merchandised on the sales floor. This would explain why the associate was unable to make an exception on your behalf. However, stores are also instructed to not make unpaid holds for products as they usually create issues somewhere down the line. Much like it did during your return visit upon the products release date.
    While we are all human and accidents can happen, your frustration is completely warranted as this situation could have been avoided entirely. I have personally shared your feedback with the general manager of the Tyler, TX (store 246) location to be addressed with his leadership team for coaching and training. Please let me know if you have any other questions or concerns.
    Warmest regards,
    JD|Social Media Specialist | Best Buy® Corporate
     Private Message

Maybe you are looking for