[SOLVED] EurKEY PKGBUILD request for comments

Hi, I just finished a PKGBUILD for EurKEY "European Keyboard Layout". It installs and removes fine on my system, and I took care to respect the packaging standards, but before submitting it to AUR I would like to get any comments/suggestions.
PKGBUILD
# Maintainer: Christoph Roeper <cr (at) roeper (dot) biz>
pkgname=eurkey
pkgver=1.1
pkgrel=1
pkgdesc="The European Keyboard Layout"
arch=('any')
url="http://eurkey.steffen.bruentjen.eu/"
license=('GPL3')
depends=('xkeyboard-config' 'sed' 'gawk')
install="$pkgname.install"
source=(http://eurkey.steffen.bruentjen.eu/download/debian/binary/eurkey.deb)
md5sums=('8da8472f8f8d30baaa6a50145264024b')
package() {
cd "$srcdir"
ar x $pkgname.deb
tar xzf data.tar.gz -C "$pkgdir/"
cd "${pkgdir}"
# euro on '5', swap with pound
awk='\
BEGIN { fix = 0 } \
if ( $2 == "<AE04>" ) { $7="sterling,"; fix = 1 } \
else if ( $2 == "<AE05>" ) { $7="EuroSign,"; fix = 1 } \
if ( fix == 1 ) { printf "%11s %s %s %s%16s%19s%22s%21s %s %s\n",$1,$2,$3,$4,$5,$6,$7,$8,$9,$10; fix = 0 } \
else { print } \
file="usr/share/X11/xkb/symbols/eurkey"
tmpfile="$file".`date +%FT%T`.temp
awk -- "$awk" $file > $tmpfile
cat $tmpfile > $file
rm $tmpfile
pkgname.install
post_install() {
# Installs the EurKEY layout.
if test "$EUID" = 0; then SUDO=; else SUDO=sudo; fi
exec $SUDO bash /dev/stdin "$@" <<'ENDSUDO'
set -e
str=" <layout>\n\
<configItem>\n\
<name>eurkey</name>\n\
<shortDescription>EUR</shortDescription>\n\
<description>EurKEY</description>\n\
<languageList>\n\
<iso639Id>cat</iso639Id>\n\
<iso639Id>dan</iso639Id>\n\
<iso639Id>eng</iso639Id>\n\
<iso639Id>est</iso639Id>\n\
<iso639Id>fao</iso639Id>\n\
<iso639Id>fin</iso639Id>\n\
<iso639Id>ger</iso639Id>\n\
<iso639Id>gre</iso639Id>\n\
<iso639Id>gsw</iso639Id>\n\
<iso639Id>ita</iso639Id>\n\
<iso639Id>lav</iso639Id>\n\
<iso639Id>lit</iso639Id>\n\
<iso639Id>nld</iso639Id>\n\
<iso639Id>nor</iso639Id>\n\
<iso639Id>por</iso639Id>\n\
<iso639Id>spa</iso639Id>\n\
<iso639Id>swe</iso639Id>\n\
</languageList>\n\
</configItem>\n\
</layout>\n\
</layoutList>"
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
if [ ! -f "$file" ]; then
echo "File $file is not a regular file (skipped)"
elif [ $(grep -ci eurkey "$file") -ne 0 ]; then
echo "File $file already constains eurkey (skipped)"
else
echo "processing $file"
sed -i "s~</layoutList>~$str~" "$file"
fi
done
ENDSUDO
pre_remove() {
# Removes the EurKEY layout.
if test "$EUID" = 0; then SUDO=; else SUDO=sudo; fi
exec $SUDO bash /dev/stdin "$@" <<'ENDSUDO'
set -e
for file in {/etc/vconsole.conf,/etc/X11/xorg.conf.d/*keyboard*}; do
if [ -f $file ]; then
[ `grep -ci '^\s*[^#].*eurkey' $file` -ne 0 ] && echo -e "Cannot completely remove EurKEY since it's still configured in $file.\nPlease remove it manually or use the settings manager." && exit 1
fi
done
exit 0
ENDSUDO
post_remove() {
# Removes the EurKEY layout.
if test "$EUID" = 0; then SUDO=; else SUDO=sudo; fi
exec $SUDO bash /dev/stdin "$@" <<'ENDSUDO'
set -e
awk='
BEGIN { output = 1 ; buffer = "" }
$0~/<layout>/ { output = 0 ; deleteSection = 0 }
output == 1 { print $0 }
$0~/<\/layout>/ { output = 1 ; buffer = buffer $0 ; if (deleteSection == 0) print buffer ; buffer = "" }
$0~/<name>eurkey<\/name>/ { deleteSection = 1 }
output == 0 { buffer = buffer $0 "\n" }
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
if test -f "$file"; then
tmpfile="$file".`date +%FT%T`.temp
echo "processing $file"
awk -- "$awk" $file > $tmpfile
cat $tmpfile > $file
rm $tmpfile
fi
done
ENDSUDO
'sed' and 'awk' are neither build nor run-time dependencies, both are install dependencies, but I did not find a proper option for that.
The (un-)install-scripts are taken from the Debian source, however with deb-packages it is obviously possible to abort  pre/post_remove on failure (here used if the keyboard layout is still in use => no uninstall). I did not find a proper way to accomplish this with PKGBUILD install scripts.
Both scripts a rather long, but in other review requests forum veterans preferred to have scripts posted here instead of a link to AUR or pastebin. If it's nevertheless wrong I will relocate the scripts.
Thanks in advance.
Last edited by roepi (2014-03-17 17:42:44)

If you still want to modify the XML, I would use xmlstarlet instead of awk/sed. I haven't tested the following scripts so they will probably need some debugging but they should give you a general idea of what I would do.
The post remove script would be reduced to:
set -e
# xpath selector to select layouts that are named eurkey
xpath='/xkbConfigRegistry/layoutList/layout/configItem/name[text()="eurkey"]/../..'
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
[[ -f "$file" ]] && xml ed --inplace -d "$xpath" "$file"
done
And the post install script would become:
set -e
xpath='/xkbConfigRegistry/layoutList/layout/configItem/name[text()="eurkey"]'
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
if [[ ! -f "$file" ]]; then
echo "File $file is not a regular file (skipped)"
elif xml sel -t -c "$xpath" $file >/dev/null; then
echo "File $file already constains eurkey (skipped)"
else
echo "processing $file"
xml ed -P -L \
-s /xkbConfigRegistry/layoutList -t elem -n layoutTMP -v '' \
-s //layoutTMP -t elem -n configItem -v '' \
-s //layoutTMP/configItem -t elem -n name -v 'eurkey' \
-s //layoutTMP/configItem -t elem -n shortDescription -v 'EUR' \
-s //layoutTMP/configItem -t elem -n description -v 'EurKEY' \
-s //layoutTMP/configItem -t elem -n languageList -v '' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'cat' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'dan' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'eng' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'est' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'fao' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'fin' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'ger' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'gre' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'gsw' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'ita' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'lav' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'lit' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'nld' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'nor' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'por' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'spa' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'swe' \
-r //layoutTMP -v layout \
"$file"
fi
done

Similar Messages

  • Request for Comments and Experiences with Streams Advanced Queuing

    Hi,
    I would like to get some feedback about what your experiences with Streams Advanced Queuing. What do you like about it? What don't you like? How do you use it? What features would you love to see in it? Please post to the forums. Thanks!

    I love the new homeless Instant Client! I wish we had it years ago. Some comments:
    1) The MS ODBC administrator GPF's (blows up) when trying to configure a new data source using the new Oracle IC drivers. Have to hand-edit the registry.
    2) I heartily agree with the request that the new client install without requiring the normal Oracle installer. It's just too bloated for easy deployment. I'd rather hand install the files than to have to use that. Also, .zip not .jar please.
    3) Need better documentation on the connection string options. It took me 3 weeks to figure out that what used to be scott/tiger@mydb is now scott/[email protected]:1524/mydb.xxx.yyy (it's looking for the GLOBAL_NAME, not the SID and TNSPING won't show you that! Doh!)
    4) Please let us specify a range of ports (e.g. :1521-1524) and let it figure out where the SID is on that machine. We move ours around and don't want to update hundreds of clients with hardcoded command lines.
    5) Maximum backward compatibility, please! It's not easy moving all those Oracle apps to 8.1.7.4+ databases, yet, but my old OCI client programs should not have to care. I don't want to have 2 SQL*net driver stacks on my PC's.
    Thanks -- I'll be watching for new features.

  • Blog not "processing" requests for comment.

    New issue for me with blogging. When site visitors attempt to add a comment, they receive this message:
    We're sorry. We are having a problem processing your request.
    I go the iWeb and re-publish. It works once and then goes back to "problem processing" message.
    HELP PLEASE!

    There is a solution for that problem. First make sure that the 'Leave Comments' checkbox in your inspector is actually checked. Then go the Files Menu and use the 'Publish All to MobileMe' Option. After you're done publishing make sure that your users go to the right URL. Your Site exists twice... under your .Mac URL and under the new Mobile Me URL. Make sure that your user got the the ...//web.me.com... URL. That should take care of the problem.
    Hope that helps!

  • Better Certification Board recommendations (Request for comments)

    Now for something completely differerent:
    Jordan,  I appreciate what you tried to do with the Solutions for Review thread but... The latest exchanges (and a few others) on this thread I feel demonstrate why the "Mega-Thread" has already outlived its usefulness.  There a a lot of good tidbits and side discussions buried in this thread that would be much more searchable and cohesive if the posters started their own threads. 
    Perhaps some new board suggestions for effectivness could be floated in place of the "Sample Exam Solutions for Review"?
    Tips on CLD Solutions for review:
    Start a new thread - indicate there will be a CLD example for review in the subject line.
    For follow-up discussions on critique points start a new thread with a link to the example and a subject about the point under discussion.
    This should allow the frequent fliers on this board the chance to develop a useful body of theads where specific points related to Cert specific preparation and concepts can be gathered and easily cross linked by the heavy hitters (And who knows, easilly searched by the certification candidates)
    As the board grows I would hate to lose some "gems" in the noise.  If we get together now, to think about what this boards goals are we can maximize our return on investment in supporting certification.
    All comments welcome.  Jordan, please consider floating this discussion for maximum visibility.
    Jeff

    I think that's a great idea - centralise the submissions and decentralise the critiques.
    Another idea to improve the Certification Board might be to introduce subforums for each of the various types of certification (CLAD, CLD, CLA, etc.).
    Certified LabVIEW Developer

  • Request for comment - inventory synchronization

    Representing product manager for zed E-Commerce I'm inviting anyone who is familiar with Web tools to provide feedback on the following proposed functionality.
    Inventory synchronization in web tools in the past has always been a point of contention and now that we can move forward with features and enhancements to the product we would like to gain your insight on how you would like to see this functionality improved. 
    Currently in web tools there is a calcuation that is done upon every synch between B1 and Web tools that determines the value that is used to show whether an item in web tools is "out of stock".  This has several implications, one being that the item is then displayed on the customer facing site with a warning icon and text is shown on the checkout page indicating that an item is out of stock.
    The calculation that is run is On Hand - Commited + On Order. Meaning if you have 10 items on hand, 11 of them have been ordered by customers, and 4 more are on order to be delivered from a vendor the number shown in web tools will be 3, and the display of the item will not show "out of stock" on the site.
    One of the things being considered is having the option of using this query as it stands or to use an alternate query of On Hand - Commited and not include On Order, because the timing of the On Order items might be weeks and it is not preferrable to take orders when there is no in house quantity on hand.
    Another option would be to have the ability to choose if when an item is out of stock, to automatically make it unavailable on web, which is a UDF on Item Master, thereby hiding it from display on the commerce site, and if a user has it in their cart, they must remove it before checking out(current functionality)\
    Let us know your thoughts,
    Thanks
    -Bryce Blilie
    otherwise now known as guest

    Hi Bryce,
    Certainly from my experience so far no customer wants the count  / availability flag determined on the basis of available stock in B1 ( On hand - customer orders  + supplier orders ). I have had to customise the count to exclude the supplier orders in order to provide a 'free stock' figure The option to select the calculation method would be welcome.
    It may be useful to consider whether some options can be built into the availablity text which is currently based on the above figure. The 'In stock' and 'not In stock' is limiting and confusing as it is currently based on 'available stock'.
    These days it is much more common to find some gradation and you might want to consider some mechanism for allowing options depending on the stock count for example:
    not in stock    ( based on free stock )
    less than x     /   low stock please call for availability ( where x is at or below minimum stock )
    sold out   / y  in  z days ( where y is supplier orders and z is based on lead time)
    The option to remove an item based upon the free stock would also be welcome although I have not yet been specifically asked for it

  • Approximately 6% of all requests for help on this forum are ever "solved."

    Approximately 6% of all requests for help on this forum are ever "solved." And approximately 34% of all requests for help on this forum are never responded to. Even with all the caveats, these numbers are embarrassing. Good luck everyone!

    More facts and stats from the horse's mouth - http://www.mozilla.org/foundation/annualreport/2009/sustainability.html
    "Total assets as of December 31, 2009 were $143 million compared with $116 million at the end of 2008, an increase of 23 percent. Unrestricted net assets at the end of 2009 were $120 million compared with $94 million in 2008, a 28 percent increase."
    "Mozilla consolidated expenses for 2009 were $61 million, up approximately 26 percent from 2008 expenses of $49 million. Mozilla operating expenses in 2009 continued to remain highly focused on people and infrastructure."
    "At the end of 2009, Mozilla was funding approximately 250 people working around the world."
    Yes, Mozilla is indeed doing very well but they're a bit worried about the IRS audit that is currently going on.
    Now, if we take the figure from the 2008 cnet article that 80% of expenses are spent on Mozilla employees as a relatively stable benchmark for 2009, we see that employee salaries averaged out to around $200,000 dollars annually for each employee, which obviously isn't what each employee is actually getting paid, but what it does mean is that given typical corporate scaling of salaries, some folks in this non-profit are making lots and lots of money.
    The individuals who should be the most upset about Mozilla's unwillingness to invest even a fraction of its profits into building a real and responsive user support system are the collective-community-driven-volunteers who commit their free time so Mozilla can continue to cash in big time at their expense. A brilliant model!
    Again, Firefox users appreciate the work that you and the other unpaid/unacknowledged volunteers do here.... Mozilla appreciates it more.

  • Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop?

    Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop? It pops up every single day.

    Erica,
         I can, with 99.99% certainty, tell you that you are absolutely right in not wanting to download or install this "Helper," whatever it is (but we can be equally certain it would not "help" anything).
         I cannot comment as to Oglethorpe's recommendation of 'adwaremedic'; I am unfamiliar with it.  His links to the Apple discussion and support pages warrant your time and attention.
         It might be really simple -- Trying looking in your Downloads folder, trash anything that you don't know with certainty is something you want to keep, and then Secure Empty your Trash. Then remove the AdBlock extension, LastPass, and Web of Trust extensions to Safari and re-boot. If the issue goes away, still be extraordinarily careful in the future.
         Unfortunately, it's probably not going to be that simple to get rid of, in which case I'd then try the line by line editing in HT203987. 
         I have no further suggestions (other than a complete wipe and re-install...but that's a pain because trying to restore from Time Machine would simply ... restore the Mal).
       For the rest of us, please post when you find a solution.
         Best.
         BPW
      (Also, try to edit your second post -- black out your last name on the screenshot and re-post it for others)

  • Unable to securely request for a page

    Question:
    a) I'm unable to securely request for my webpage : https://127.0.0.1:8443/Blah , instead I get the following Error:
    Firefox can't establish a connection to the server at localhost:8443.
    The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    If you are unable to load any pages, check your computer's network
    connection.
    If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.
    On Internet Explorer I simply get:
    Internet Explorer cannot display the webpage
    b) How do I know which SSL Implementation my tomcat is making use of: JSSE/APR
    Details:
    web.xml
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="Your_WebApp_ID"
    version="2.5">
    <description>The standard web descriptor for the email client</description>
    <servlet>
    <servlet-name>AuthenticateUser</servlet-name>
    <servlet-class>MailBoxController</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>AuthenticateUser</servlet-name>
    <url-pattern>/ControlPanel</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>401</error-code>
    <location>/authenticationFailed.jsp</location>
    </error-page>
    <context-param>
    <param-name>serverName</param-name>
    <param-value>Gmail</param-value>
    </context-param>
    <context-param>
    <param-name>port</param-name>
    <param-value>993</param-value>
    </context-param>
    <context-param>
    <param-name>ip</param-name>
    <param-value>imap.gmail.com</param-value>
    </context-param>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <listener>
    <listener-class>Logger</listener-class>
    </listener>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*</url-pattern>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>administrator</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    <security-role>
    <role-name>administrator</role-name>
    </security-role>
    </web-app>
    tomcat-users.xml :
    <tomcat-users>
    <role rolename="administrator"/>
    <user username="admin" password="system123#" roles="administrator"/>
    </tomcat-users>
    Following tag was added in web.xml in conf of tomcat :
    <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <Connector
    protocol="org.apache.coyote.http11.Http11NioProtocol"
    port="8443" maxThreads="200"
    scheme="https" secure="true" SSLEnabled="true"
    keystoreFile="C:/Users/.keystore" keystorePass="changeit"
    clientAuth="false" sslProtocol="TLS"/>
    Can anybody please help me with my problem. Am I going wrong with configuring SSL?
    Thanks
    Krutika

    I did add these lines:
    <Connector
         protocol="org.apache.coyote.http11.Http11NioProtocol"
         port="8443" maxThreads="200"
         scheme="https" secure="true" SSLEnabled="true"
         keystoreFile="C:/Users/Krutika Ravi/.keystore" keystorePass="changeit"
         clientAuth="false" sslProtocol="TLS"/>
    to the web.xml contained in conf folder of tomcat.
    But didn't fiddle with server.xml -
    After un-commenting
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    clientAuth="false" sslProtocol="TLS" />
    in server.xml contained in conf folder I get the following exceptions
    Jul 25, 2012 11:11:41 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4
    .6.
    Jul 25, 2012 11:11:41 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
    ndom [true].
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.AprLifecycleListener initializ
    eSSL
    INFO: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-apr-8080"]
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-apr-8443"]
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-ap
    r-8443"]
    java.lang.Exception: Connector attribute SSLCertificateFile must be defined when
    using SSL with APR
    at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:484)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.jav
    a:610)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
    81)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardService.initInternal(StandardService
    .java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.j
    ava:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.StandardService initInternal
    SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]
    org.apache.catalina.LifecycleException: Failed to initialize component [Connecto
    r[HTTP/1.1-8443]]
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
    at org.apache.catalina.core.StandardService.initInternal(StandardService
    .java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.j
    ava:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
    Caused by: org.apache.catalina.LifecycleException: Protocol handler initializati
    on failed
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
    83)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    ... 12 more
    Caused by: java.lang.Exception: Connector attribute SSLCertificateFile must be d
    efined when using SSL with APR
    at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:484)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.jav
    a:610)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
    81)
    ... 13 more
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
    Jul 25, 2012 11:11:43 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 2945 ms
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.29
    Jul 25, 2012 11:11:43 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive C:\Junkyard\apache-tomcat-7.0.29\webapps
    \Blah.war
    Jul 25, 2012 11:11:44 PM org.apache.catalina.loader.WebappClassLoader validateJa
    rFile
    INFO: validateJarFile(C:\Junkyard\apache-tomcat-7.0.29\webapps\Blah\WEB-INF\lib\
    javax.servlet-5.1.12.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
    Offending class: javax/servlet/Servlet.class
    Logger Contructor
    Servlet Context has been initialized
    Jul 25, 2012 11:11:45 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\docs
    Jul 25, 2012 11:11:45 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\examples
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\host-manager
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\manager
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\ROOT
    Jul 25, 2012 11:11:46 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-apr-8080"]
    Jul 25, 2012 11:11:46 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-apr-8009"]
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2728 ms
    Edited by: 948555 on Jul 25, 2012 10:42 AM

  • Top 10 feature requests for reliability

    As per the Terms of Use:
    Post constructive comments and questions. Unless otherwise noted, your Submission should either be a technical support question or a technical support answer. Feedback about new feature requests or product enhancements are welcome too.
    My top 10 list:
    1) Require enough extra safe guards that users can't accidentally rename their Home folder.
    2) Don't let the Finder become unresponsive and beach-balled when dot-mac mounting is occurring.
    3) Faster Finder list view updating when sorted by last modified.
    4) OS update scripts should perform a hard disk verify before installation. If hard disk does not verify, the user should be told of the risk of proceeding and given directions on how to fix before proceeding.
    5) The filesystem should should be able to fix itself with fsck (ala AppleJack) without being booted from install CD/DVD.
    6) iPhoto Library folder should have an extra layer of protection to keep users from messing with it via the Finder.
    7) Forced shutdown via power key should give OS and filesystem more of a chance for recovery. (Not sure how this would work, but if users are doing this, it should not be so often fatal.)
    8) System maintenance scripts should have a method for running (other than cron) for those who don't leave their computer on 24/7.
    9) & 10) coming soon ...
    What are your feature requests for improved reliability?

    5) The filesystem should should be able to fix itself with fsck (ala AppleJack) without being booted from install CD/DVD.
    David Pogue explains why this can't be done in his Mac OS X: The Missing Manual He basically says that running fsck without an operating system disc is much akin to "a doctor performing an appendectomy on himself." While a method of doing this is provided, naturally fsck itself is not analyzed because it can't do that. To run fsck without an operating system disc, boot into single user mode, holding command-S at startup. Type /sbin/fsck -fy
    followed by return key,
    when done type:
    /sbin/mount -uw /
    followed by return key and when done with that type
    exit. This is documented here:
    http://docs.info.apple.com/article.html?artnum=106214
    Thankfully single user mode provides more safeguards. But they aren't perfect. Fixing the directory is something that should only be done if your data is backed up, and it is obvious you may have a damaged directory. A damaged directory may have the symptoms of a dying hard drive, and it is impossible to tell the difference.
    Apple is readying a really good backup system in Time Machine in Leopard. You can read more about it here:
    http://www.apple.com/macosx/leopard/timemachine.html
    Your best protection for what you are looking for is to learn how to backup your data, as my FAQ* explains:
    http://www.macmaps.com/backup.html
    * Links to my pages may give me compensation.

  • Usage of Company code field in the Change Request for Company

    Hi,
    Would like to know the usage of - Company code field in the UI for Change request for Company.
    1. If a new Company is created, can i assign the company code directly in the UI, will the assignment also replicated to backend in this case?
    2. In case of new Company creation, is it possible for multiple company code assignments?
    3. Is it possible to to pick the existing Company from the F4 list in the CR and assign the company code in the CR? How about the replication work in this case?
    Please share your comments, Thank you.

    Thanks Sanjay.
    Just to summarize and a bit more specific, here is my understanding:
    1. (a). You have mentioned that we can assign new company code also - does this mean i can select            a company code which is not in the F4 list? In such case, how will be the assignment                   replicated? It should ideally create a company code in the backend before the assignment is           processed.
        (b). Usually, if a new company code is created in backend, i need to load that in to MDG tables                 such that it will be active in MDG F4 list, for Company assignments in the Change request.
    2.      Understood
    3.      In the Change request, if i pick existing company from F4 values and edit company related data,          it will be replicated accordingly.
             In the same CR, if i give some value in the company code data, the replication will result in one          more assignment added to the company, so as on date, SAP has given the option of only                    additional assignments to the existing assignments.

  • The wait operation timed out. (Exception from HRESULT: 0x80070102) when requesting for pushNotification channel

    Hi, I have been trying for push Notification Services in Windows 8 Store Apps. I am requesting For notification channel in the following manner
    publicasyncvoidregisterChannelForNotification(
    try
    TileUpdateManager.CreateTileUpdaterForApplication().Clear();
    BadgeUpdateManager.CreateBadgeUpdaterForApplication().Clear();
    varvProfile =
    NetworkInformation.GetInternetConnectionProfile();
    if(vProfile.GetNetworkConnectivityLevel()
    == NetworkConnectivityLevel.InternetAccess)
    varvChannel =
    awaitPushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
    varvBuffer =
    CryptographicBuffer.ConvertStringToBinary(vChannel.Uri,
    BinaryStringEncoding.Utf8);
    varvUri =
    CryptographicBuffer.EncodeToBase64String(vBuffer);
    varvClient =
    newHttpClient();
    try
    varvResponse =
    awaitvClient.GetAsync(newUri(Constants.SERVER_URL));
    if(vResponse.IsSuccessStatusCode)
                                sendDeviceTokenRequest(vChannel.Uri);
    catch(HttpRequestException)
    catch(Exceptionex)
    This gives me the exception,The wait operation timed out. (Exception from HRESULT: 0x80070102) when requesting for pushNotification channel. What could be the possible reason and how to solve this issue
    Nikhil Sharma10

    Hi,
    I have currently the same problem with requesting a push channel.
    But iam not sure if it is a problem with my phone, or my application.
    I cant get rid of this error. The solution says: "retry the channel request later". But it doesn
    matter if I retry the channel request later (triggerd by pressing a button) the same day or the next day.
    I resetted my windows phone, installed the newest dev preview, but it is still not working. But the same code worked a few months ago. On the same phone.
    Thats why Iam not sure what I changed (accidentally) in my app code which causes now the 0x80070102 error.
    Any ideas why the same code is not working any more?
    Thanks
    Greetings from Germany
    Simon

  • Down payment request for assets using bapi_acc_document_post

    Hi guys(girls)!,
    I<< priority reduced >>
    I'm posting a down payment request to an asset with a z program using bapi_acc_document_post. Everything is fine, but, when i go to fb03 to check the generated document i don't see the asset number associated to the purchase doc. When i go to bseg to check, i don't see the asset number and the subnumber. I lack just these to fields even i'm passing the values to correct fields in bapiacgl09.
    This is the values i'm passing:
    wa_acctgl-itemno_acc  =  iterator.
    wa_acctgl-gl_account  =  lv_skont.
    wa_acctgl-vendor_no   =  p_vendor.
    wa_acctgl-doc_type    =  p_tipdoc.
    wa_acctgl-item_text   =  p_txtcab.
    wa_acctgl-po_number   =  p_ponum.
    wa_acctgl-po_item     =  s_ekpo-ebelp.
    wa_acctgl-serial_no   =  imp_no.
    wa_acctgl-asset_no    =  wa_ekkn-anln1.
    wa_acctgl-sub_number  =  wa_ekkn-anln2.
    wa_acctgl-acct_type   =  'A'.
    wa_acctgl-CS_TRANS_T  =  '100'.
    wa_acctgl-asval_date  =  sy-datum.
    APPEND wa_acctgl      TO gt_acctgl.
    CLEAR wa_acctgl.
    Please help!.
    Edited by: Rob Burbank on Oct 24, 2011 9:44 AM
    Edited by: ramvargash on Oct 25, 2011 2:54 PM

    Hi Eduardo, what i'm trying to do is a down payment request for an asset. Indeed, i do the post. My problem is that the asset main number and the asset subnumber are not getting saved in bseg, so when i go to fb03 and double click on a line item, i got prompt to fb03 in visualize mode, and the fixed asset field is blank.
    I have now a week trying to get the asset main number and the asset subnumber getting saved in bseg. I note that i have other field that are not getting saved 'cause i'm not passing the value thru the bapi. This field is LNRAN.
    If you or anybody have a clue how to solve this, i would appreciate the help.
    Ramón Vargas

  • Print automatically a request for quotation and purchase order

    hI,
    I create a new message ZNEU and I link a new form.
    I want the system creates automatically the message ZNEU when I save my request for quotation.
    In transaction NACE, I specify the output type ZNEU
    My Access sequence is 0001   DocType/PurchOrg/Vendor
    I specify a procedure RMBEA1 Purchasing RFQ
    Then I put in step 10 the condition type ZNEU and a requirement 101
    I just copy the message NEU in ZNEU.
    And in condition record ( tcode MN02)  I create the output type with combinaison purchasing output determintation document type.
    With all these datas I haven't anything when I save the RFQ?
    I have the same problem with purchase order.
    Anybody have an idea?
    Thanks a lot for your help
    Kari

    Hi,
    For RFQ create outut condition using MN01 transaction give your output tpe ZNEU and choose the option doc type as AN and give your purchase group.give transmission medium 1 and time 4.In communication method give printer name and tick print immediately and save.Then while creating RFQ for that purchase group message will come automatically.
    For PO create output condition using MN04 transaction and document type is EF.Repeat the same like RFQ.
    Hope it will solve your issue.

  • Request for Quotation in 8.81

    Hi - With the Request for Quotation from multiple vendors in the A/P area of 8.81, do you know if the replies to the RFQ get stored in SAP or do they need to be entered manually? Also, what are the changes to RFQ from previous releases of SAP Business One.
    Thanks
    TG

    hello,
    I have created new posting period and series for financial year 2011-12.
    In previous year I have created 600 voucher. My issue is that when I am creating new
    voucher, voucher number is showing 601. I want that for new series voucher number should be
    start from 1. but it seems like numbering series doesn't affect the voucher number.
    Because there are no series creation for journal voucher. In this case how can I solve my problem.
    Please help me on this.
    thanks
    Annu

  • Request for detailed acts to upload Work center,  BOM, Routing data in LSMW

    Hello PP ANgels,
    Request for detailed actions to upload Work center/Resource,  BOM, Routing/Recipe data in LSMW.
    Thanks in advance

    Sanjay,
    In the forum I found that you had used some "drops", that require a password to view.
    In these forums, the only links I post are public (help.sap.com) and from SAP support (service.sap.com/support).  SAP Support is mostly available only to customers and partners of SAP.  If you meet these criteria, and need a login for the SAP support site, contact the license administrator for your company's SAP licence (this is usually a Basis person).  If you cannot locate this person in your company, contact Service Marketplace directly (service.sap.com/mp).  Alternatively you can contact your local SAP Sales office and speak to your account administrator.
    Maybe it would be a better idea to group all standard solutions in one place.
    I expect it will be so...in Nirvana.  Here, life still entails suffering.
    With respect to your detailed questions, I would have a hard time answering, I have never used recordings in LSMW to create work centers, I always use standard batch/direct input.  I suspect that the VGEXX items are the units of measure from CRHD, I suspect LARXX items are activities from CSSL, and I couldn't comment on FORXX items without doing some research.
    This is the SCM PP forum.  You might get more answers posting this in the ERP PP forum SAP ERP Manufacturing - Production Planning (SAP PP) , since work centers/routings/recipes/BOMs are more or less irrelevant in SCM.
    Sorry I couldn't be of more assistance.
    Best Regards,
    DB49

Maybe you are looking for