[Solved] A Challenge: Loop meld to update *.pacnew files

I got no secret, I love meld .  Does a great job of showing differences alot of times if even scattered all over the page, allows for copy and paste...  vimdiff is good but requires a much more keypresses, copy and paste isn't as elegant, and with my fixed drop-down terminal is just too narrow to be able to do it well.  So what I usually end up doing is:
find /etc -type f -name "*.pacnew"
and just go through them one at a time:
kdesu meld /etc/config /etc/config.pacnew
I haven't do much work with loops, so I was hoping that someone that knew a little about them that could create a script that would go through them one by one.  I suppose this is going to be a little tricker because (I imagine) it's going to have to detect when the windowed instance closes.
From the knowledge I know, I would do:
#!/bin/bash
# etc-update - merge *.pacnew files with original configurations with meld
pacnew=$(find /etc -type f -name "*.pacnew")
for i in $pacnew
do
kdesu meld $i
done
Which isn't going to work very well.  Well, I guess it could, but it's going to open them all at once and leave a nice scruched-up taskbar with *.pacnew files.  Like to be able to go through them one by one.
Anyone had any experiences at this that could help?
Last edited by Gen2ly (2009-10-03 01:46:55)

brisbin33 wrote:
http://pbrisbin.com:8080/bin/pacnews
just do a find/replace of vimdiff for meld (or whatever...)
Nice script, bris.  If I had know about that before, I'd be using it.   Do like the idea of the walk-through process and the saving of the the current one.
lol, I just read your last post and just what I thought about.
ugkbunb wrote:I just edited the pacdiff script to use meld and it worked great : ) -- I am not at home atm, but if you would like I can post up my edited pacdiff script.
Yeah, I saw that on the wiki.  Said it was for CLI though so I didn't get to try.
@ lolilolicon, and Procyon
Still learning about pids, what I have seen was more complicated than this.  Pretty clever.
Allan wrote:
Maybe....
#!/bin/bash
# etc-update - merge *.pacnew files with original configurations with meld
pacnew=$(find /etc -type f -name "*.pacnew")
for i in $pacnew
do
kdesu meld $(basename $i .pacmew) $i &
wait
done
Note - untested
Ah, very nice.  Also fits into my knowledge of bash.   Hadn't thought about just using & but it works great.  Had to truncate the file extension and just used a bash filter:
#!/bin/bash
# pacnew-diff - merge *.pacnew files with original configurations with meld
pacnew=$(find /etc -type f -name "*.pacnew")
for config in $pacnew
do
kdesu meld ${config%\.*} $config &
wait
done
Like to be able to do a backup of the current config and then erase the pacnew file afterword, but havn't found out a way to do that without having to type in a password everytime, but, I guess, that can easily be done elsewhere.
Last edited by Gen2ly (2009-10-02 20:27:17)

Similar Messages

  • (SOLVED)recent update .pacnew files what to do?

    Maybe I'm having a duh! moment but today #pacman -Syu gave me /etc/makepkg.conf and /etc/makepkg.conf.pacnew that are identical.; and /etc/pacman.conf(my edited one) and /etc/pacman.conf.pacnew(like new install file). Can I just delete the .pacnew files and keep the original files?
    Last edited by lestoil (2009-10-02 17:38:30)

    maybe yes, maybe no!
    you need to check every .pacnew, if the .pacnew is identical to the original file, you can remove it.
    if it isn't identical, you need to merge this 2 files...
    i would like to help you a bit more, but my poor english stop me xD
    Sorry, for more info, the wiki
    http://wiki.archlinux.org/index.php/Pac … save_Files

  • (SOLVED) Trouble merging .pacnew files with meld

    Dear Archers
    Unable to merge .pacnew files, following the example on ArchWiki. Only, the difference between the two files shown
    [root@KRISHNA san2ban]# #!/bin/bash
    [root@KRISHNA san2ban]# # pacnew-update - merge *.pacnew files with original configurations with meld
    [root@KRISHNA san2ban]#
    [root@KRISHNA san2ban]# pacnew=$(find /etc -type f -name "*.pacnew")
    [root@KRISHNA san2ban]#
    [root@KRISHNA san2ban]# for config in $pacnew; do
    > # Merge with meld
    > gksu meld ${config%\.*} $config &
    > wait
    > done
    [1] 1578
    GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: The connection is closed)
    GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: The connection is closed)
    Also, on the Archwiki, we are advised to change 'kdesu' to 'gksudo' for GNOME, but I think it should be gksu
    Last edited by San2ban (2011-08-18 14:07:53)

    San2ban wrote:
    Dear Karol
    Thanks. yes, manual intervention is needed
    Wonder how it will be without you guy's guiding us
    You bet your ass, manual intervention is needed. If you try to blindly just merge *.pacnew with original files, it might lead to an unbootable system. Especially when you get pacnew files for /etc/group and /etc/inittab

  • [SOLVED]pacnew files? i need help...

    Hi,
    After upgrade with pacman -Syu, a lot of pacnew files in /etc.I read about this in archwiki but i'm still confused :S I have no idea how to use vimdiff or meld ...
    Can someone explain me simple what to do with pacnew files.I'm new in arch linux and i need help.
    Thanks to everyone. (sorry for my english)
    Last edited by grobar87 (2011-04-15 14:26:42)

    ewaller wrote:
    a pacnew file is used when an update to a package requires a new configuration file, but there is already a configuration on your system which would be wrong to simply overwrite.
    If there is nothing in the old, corresponding file you want to keep, it is okay for you to move the pacnew file and overwrite the old configuration.  If it is not okay, you need to incorporate your customizations into the pacnew file, and then move the pacnew file and overrwrite the old file.
    The tools you mentioned are just that -- tools to help figure out what changed.  The easiest solution is just to run diff fileName fileName.pacnew to see the lines that changed.
    Thanks for reply...I install vim and run diff:
    [root@DejanArch dejan]# diff /etc/group /etc/group.pacnew
    8c8
    < lp:x:7:daemon,dejan
    > lp:x:7:daemon
    11c11
    < wheel:x:10:root,dejan
    > wheel:x:10:root
    15a16
    > utmp:x:20:
    20,28c21,29
    < games:x:50:dejan
    < network:x:90:dejan
    < video:x:91:dejan
    < audio:x:92:dejan
    < optical:x:93:dejan,hal
    < floppy:x:94:hal
    < storage:x:95:dejan,hal
    < scanner:x:96:dejan
    < power:x:98:dejan
    > games:x:50:
    > network:x:90:
    > video:x:91:
    > audio:x:92:
    > optical:x:93:
    > floppy:x:94:
    > storage:x:95:
    > scanner:x:96:
    > power:x:98:
    31,39d31
    < dbus:x:81:
    < hal:x:82:
    < avahi:x:84:
    < usbmux:x:140:
    < camera:x:97:dejan
    < ntp:x:1000:
    < rtkit:x:133:
    < deluge:x:125:
    < utmp:x:20:
    Now? How to merge this two files?
    Thanks again.
    Last edited by grobar87 (2011-04-13 18:57:50)

  • Can't update iOS 8 on my iPhone5 through iTunes on Windows 8 (error 3004, 3194). Updated host file, opened port 80, 443; turned off security system and firewall, etc. But nothing works. How to solve this problem?

    Can't update iOS 8 on my iPhone5 through iTunes on Windows 8 (error 3004, 3194). Updated host file, opened port 80, 443; turned off security system and firewall, etc. But nothing works. How to solve this problem?

    Hi the_mad_movies,
    It seems like this article will be the best option for addressing this issue:
    Error 3194, Error 17, or "This device isn't eligible for the requested build"
    http://support.apple.com/kb/ts4451
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • [SOLVED] .pacnew files

    I just realized something that may have some bad consequences (Atleast, I think they might be bad, usually when I forget to do something on a Linux system it results in me reinstalling the entire OS).
    I forgot to merge some files that are used by pacman, but I dont know how. I need to merge /etc/pacman.d/mirrorlist and /etc/pacman.d/mirrorlist.pacnew. I also need to merge pacman.conf and pacman.conf.pacnew. I read some forum posts about this topic, but I did not fully understand then (I'm a noob). They were talking about programs like pacdiff and vimdiff. Should I use those programs? If so, how would I go about downloading and merging the 2 files?
    Last edited by dsplayer14 (2012-06-27 15:04:59)

    If you're sticking around arch, or linux in general, you should learn to use these tools.  Vimdiff is wonderful ... but only if you already use vim.  If you don't use vim it will most likely just confuse the hell out of you.
    For the time being or while your still learning to use these tools well, I'd recommend whatever text editor you are comfortable with.  If it's nano, use nano, or leafpad, or gedit, kate, any of them will work.  Open each file in one instance of the editor side by side.  The *.pacnew file will have the most up-to-date "defaults".  If you have not added or changed anything in your config files, then you can actually just move pacman.conf.pacnew to pacman.conf overwritting the latter.  But with the pacman.conf, you should also read it carefully as it may have some important instructions depending on when you last updated (about package signing and the like).  If you have changed your pacman.conf, you'll have to "merge" those changes.  All the diff/merge tools help in this process, but all it is is putting together the updates in the pacnew with the changes you have made.
    The mirrorlist.pacnew is less important.  Mainly it just removed the ftp mirrors which (if you have a working system) you're most likely not using anyways.  If you use any mirrorlist tool like reflector, just delete the mirrorlist.pacnew.  Or if your current mirrorlist is working well - just delete the mirrorlist.pacnew.
    Last edited by Trilby (2012-06-27 14:30:46)

  • [SOLVED] Messed things up while trying to deal with a .pacnew file

    I manually applied some of the changes recently made to /etc/services but, damn, forgot to save both of the modified files.
    I only saved the .pacnew one (after having removed the lines that I had checked).
    I know, how on earth.. Well, I don't really know.
    Now the question is: Is there some way for me to download a new .pacnew file to start all over?
    Last edited by av (2012-09-08 08:33:04)

    If you want the stock /etc/services, they are provided by iana-etc package:
    $ pacman -Qo /etc/services
    /etc/services is owned by iana-etc 2.30-3
    Edit: If the modifications were done wrt to an update, https://bbs.archlinux.org/viewtopic.php … 5#p1139205
    Last edited by karol (2012-09-08 07:53:44)

  • HT201442 every time i try to update my ipad, something (error) happends. why dont u fix that for us? why is this always complicated? how may i solve error 3194 now? why updating a software version is so complicated?

    every time i try to update my ipad, something (error) happends. why dont u fix that for us? why is this always complicated? how may i solve error 3194 now? why updating a software version is so complicated?

    Did you take a look at the link that you tagged?

  • [solved] LXTerminal has no prompt after update

    I’m running Arch linux on a Thinkpad T40 laptop with e17 as a desktop environment, but I use LXTerminal as a terminal emulator for now.
    Today I start LXTerminal, and it displays a cursor, but no prompt, and I cannot type anything in it. I do know that:
    it worked yesterday,
    Xterm still works,
    LXTerminal works if started as root from xterm (but not as a user),
    and I can su to my user account from this root terminal.
    The following packages have been upgraded between then and now, but none of them looks very promising to me:
    glibc
    binutils
    curl
    firefox
    gcc-libs
    gcc-fortran
    ghostscript
    girara-common
    girara-gtk2
    iputils
    linux
    logrotate
    mupdf
    run-parts
    syslog-ng
    valgrind
    vim-runtime
    vim
    zathura
    None of ~/.bashrc, ~/.bash_profile, or /etc/bash.bashrc has changed recently, but i can reproduce them below. /etc/bash.bashrc has my PS1 definition in it. I have been unable to find a config file for lxterminal itself.
    Help or advice would be greatly appreciated. Thank you.
    # ~/.bashrc
    # modified commands:
    alias diff='colordiff' #requires colordiff package
    alias grep='grep --color=auto'
    alias more='less'
    alias df='df -h'
    alias du='du -c -h'
    alias vi='vim'
    alias ping='ping -c 3'
    alias mkdir='mkdir -pv'
    # ls:
    alias ls='ls -hF --color=always'
    alias ll='ls -l'
    alias la='ls -A'
    # safety:
    alias chown='chown --preserve-root'
    alias chmod='chmod --preserve-root'
    alias chgrp='chgrp --preserve-root'
    alias rm='rm -Iv'
    alias ln='ln -i'
    alias cp='cp -iv'
    alias mv='mv -iv'
    # new things:
    alias up='cd ..'
    alias upp='cd ../..'
    alias uppp='cd ../../..'
    alias upppp='cd ../../../..'
    alias openports='netstat --all --numeric --programs --inet'
    alias size='du -hs'
    # for colored manpages:
    man () \
    env \
    LESS_TERMCAP_mb=$(printf "\e[1;37m") \
    LESS_TERMCAP_md=$(printf "\e[1;37m") \
    LESS_TERMCAP_me=$(printf "\e[0m") \
    LESS_TERMCAP_se=$(printf "\e[0m") \
    LESS_TERMCAP_so=$(printf "\e[1;47;30m") \
    LESS_TERMCAP_ue=$(printf "\e[0m") \
    LESS_TERMCAP_us=$(printf "\e[0;36m") \
    man "$@"
    # ignore duplicate and blank entries in history:
    export HISTCONTROL=ignoreboth
    # tab completion for sudo commands:
    complete -cf sudo
    # run skype in a sandbox:
    alias skype='xhost +SI:localuser:skype && su skype -c skype'
    # ~/.bash_profile
    [[ -f ~/.bashrc ]] && . ~/.bashrc
    # /etc/bash.bashrc
    # If not running interactively, don't do anything
    [[ $- != *i* ]] && return
    PS1='[\u@\h \W]\$ '
    PS2='> '
    PS3='> '
    PS4='+ '
    case ${TERM} in
    xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    screen)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    esac
    [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
    Last edited by iemcd (2013-08-19 22:13:58)

    karol wrote:The question is, why did you have dwvpts in your fstab in the first place?
    https://bbs.archlinux.org/viewtopic.php … 1#p1313371
    Like the thread you linked to says, it's always been there. I do have a pacnew file, but the formatting is the same and it's empty, so evidently I just kept using the one I had.
    Thanks though Jason, that does seem to have been the issue. And I'm glad to know I wasn't the only one caught off guard.
    I'm marking this solved now, thanks everyone.

  • Reboot loop after software update

    My phone is also in constant reboot loop since the update. I tried deleting app after app  with no luck. What is going on? Is there anything I can do? I also have  tried the master reset, I highlighted recovery pressed the volume up and  it went into reboot loop mode again. Any suggestions??

        I know its frustrating to have a phone that  is rebooting constantly Jimlpn. I'm sorry the steps provided in the other thread did not work. Is your phone damaged? Replacing the phone may be the next step. You can also take your phone to a corporate store location for a hands on evaluation. Is your phone under the 1year manufactures warranty and do you have insurance?
    KinquanaH_VZW

  • HT4623 my ipad 3 has become stuck in a recovery loop after an update what do i do??

    i recently updated my ipad only to have it stuck in a recovery loop befor the update had even finished. i have tried everything and i cannot seem to fix it without restoring the ipad is there any way around puting it back to factory settings

    Yes, unfortunately you will lose everything unless you have a backup that you can restore from after you restore the iPad.
    You will be able to download virtually all of your purchased content again at no charge as long as you use the same Apple ID that you bought it with and as long as the content is still available if the iStore where you bought it.
    I know that nobody wants to hear this when they get into this situation, but that's why it's so important to backup and backup with regularity.

  • Z77A-G43 login loop after Live update BIOS to V25.1

    Hi,
    Z77A-G43 windows login loop after Live update BIOS to V25.1
    I'm able to see the BIOS menu. But when i continue to login to windows, it loops.
    i would like to know on how to proceed on this. I tried safemode and i was able to login.
    I cannot find the clear cmos jumper on this board.
    Appreciate your response on this one. Thanks!
    edit: I just tried removing the board battery. But still encountering the same issue.
    -Paul

    There is no such BIOS version for this board.
    The last BIOS is v2.11  see here http://www.msi.com/product/mb/Z77A-G43.html#/?div=BIOS
    As for the CMOS jumper. This must be the most stupid saving that MSI has ever done. They leave out the jumper, obviously in an effort to save costs. 
    Check your manual to find the location of the clear CMOS pins. Then you need to short these with a jumper from somewhere else  or use a metal object to connect the pins.

  • Pacmerge -- merge .pacnew files

    pacmerge is a simple (80-line) program to interactively merge .pacnew files with sdiff.
    https://aur.archlinux.org/packages.php?ID=52485
    Why another such program? For two main reasons:
    1. Most others use the wronganother program to merge (e.g. vimdiff, kdiff (eww), &c.), which is difficult to change
    2. Haskell is nicer than bash
    Last edited by strake (2011-11-26 18:27:40)

    karol wrote:
    doublerebel wrote:I don't care for the obtuse UI of vimdiff
    Use can use regular diff if you want.
    Or e.g. meld.
    I am aware of the other suggested options, I'm not as noob as my post count appears.  Diff does not merge files.  Copy and paste between files in a terminal while referencing the diff is not a simple task.  Meld is GUI-only.
    There is definitely a place for a simple CLI .pacnew interactive merge tool. Diffpac/pacdiffviewer is close, but without documentation and also uses vimdiff -- although at least Diffpac has almost no dependencies.
    Most of the .pacnew configuration updates are trivial (thanks to Arch's clean structure and upgrade process), and therefore merging should be trivial as well.  .pacnew merging is a bump in Arch's otherwise smooth rolling upgrades.

  • Create a new web application, how shall I update the file server.xml

    Hi,
    I will create a new web application, i.e named newApp. Then I create a file structure as follows:
    - <server-root>/newApp
    - <server-root>/newApp/WEB-INF
    - <server-root>/newApp/WEB-INF/classes
    Then I must tell the server that I have created a new web application. Then I must update my file server.xml, How shall I do this and where in the file shall I type in the new information?
    I use windows XP Pro, and Tomcat 4.1.27.
    My server.xml file looks like below:
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <!-- Comment these entries out to disable JMX MBeans support -->
    <!-- You may also configure custom components (e.g. Valves/Realms) by
    including your own mbean-descriptor file(s), and setting the
    "descriptors" attribute to point to a ';' seperated list of paths
    (in the ClassLoader sense) of files to add to the default list.
    e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
    -->
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
    debug="0"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Tomcat-Standalone">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps (see the SSL Config
    HOWTO in the Tomcat 4.0 documentation bundle for more detailed
    instructions):
    * Download and install JSSE 1.0.2 or later, and put the JAR files
    into "$JAVA_HOME/jre/lib/ext".
    * Execute:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
    with a password value of "changeit" for both the certificate and
    the keystore itself.
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="100" debug="0" connectionTimeout="20000"
    useURIValidationHack="false" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="100" debug="0" scheme="https" secure="true"
    useURIValidationHack="false" disableUploadTimeout="true">
    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    clientAuth="false" protocol="TLS" />
    </Connector>
    -->
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8009" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="0"
    useURIValidationHack="false"
    protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
    port="8009" minProcessors="5" maxProcessors="75"
    acceptCount="10" debug="0"/>
    -->
    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8082" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="100" debug="0" connectionTimeout="20000"
    proxyPort="80" useURIValidationHack="false"
    disableUploadTimeout="true" />
    -->
    <!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8083" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
    <!--
    <Connector className="org.apache.catalina.connector.http10.HttpConnector"
    port="8084" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
    <Engine name="Standalone" defaultHost="localhost" debug="0" jmvRoute="jvm1">
    -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.3
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="catalina_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
    resources under the key "UserDatabase". Any edits
    that are performed against this UserDatabase are immediately
    available for use by the Realm. -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    debug="0" resourceName="UserDatabase"/>
    <!-- Comment out the old realm but leave here for now in case we
    need to go back quickly -->
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="org.gjt.mm.mysql.Driver"
    connectionURL="jdbc:mysql://localhost/authority"
    connectionName="test" connectionPassword="test"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
    connectionName="scott" connectionPassword="tiger"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="sun.jdbc.odbc.JdbcOdbcDriver"
    connectionURL="jdbc:odbc:CATALINA"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!-- Define the default virtual host -->
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true">
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn"
    debug="0"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    <!-- Logger shared by all Contexts related to this virtual host. By
    default (when using FileLogger), log files are created in the "logs"
    directory relative to $CATALINA_HOME. If you wish, you can specify
    a different directory with the "directory" attribute. Specify either a
    relative (to $CATALINA_HOME) or absolute path to the desired
    directory.-->
    <Logger className="org.apache.catalina.logger.FileLogger"
    directory="logs" prefix="localhost_log." suffix=".txt"
    timestamp="true"/>
    <!-- Define properties for each web application. This is only needed
    if you want to set non-default properties, or have web application
    document roots in places other than the virtual host's appBase
    directory. -->
         <DefaultContext reloadable="true"/>
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_examples_log." suffix=".txt"
    timestamp="true"/>
    <Ejb name="ejb/EmplRecord" type="Entity"
    home="com.wombat.empl.EmployeeRecordHome"
    remote="com.wombat.empl.EmployeeRecord"/>
    <!-- If you wanted the examples app to be able to edit the
    user database, you would uncomment the following entry.
    Of course, you would want to enable security on the
    application as well, so this is not done by default!
    The database object could be accessed like this:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    UserDatabase database =
    (UserDatabase) envCtx.lookup("userDatabase");
    -->
    <!--
    <ResourceLink name="userDatabase" global="UserDatabase"
    type="org.apache.catalina.UserDatabase"/>
    -->
    <!-- PersistentManager: Uncomment the section below to test Persistent
    Sessions.
    saveOnRestart: If true, all active sessions will be saved
    to the Store when Catalina is shutdown, regardless of
    other settings. All Sessions found in the Store will be
    loaded on startup. Sessions past their expiration are
    ignored in both cases.
    maxActiveSessions: If 0 or greater, having too many active
    sessions will result in some being swapped out. minIdleSwap
    limits this. -1 or 0 means unlimited sessions are allowed.
    If it is not possible to swap sessions new sessions will
    be rejected.
    This avoids thrashing when the site is highly active.
    minIdleSwap: Sessions must be idle for at least this long
    (in seconds) before they will be swapped out due to
    activity.
    0 means sessions will almost always be swapped out after
    use - this will be noticeably slow for your users.
    maxIdleSwap: Sessions will be swapped out if idle for this
    long (in seconds). If minIdleSwap is higher, then it will
    override this. This isn't exact: it is checked periodically.
    -1 means sessions won't be swapped out for this reason,
    although they may be swapped out for maxActiveSessions.
    If set to >= 0, guarantees that all sessions found in the
    Store will be loaded on startup.
    maxIdleBackup: Sessions will be backed up (saved to the Store,
    but left in active memory) if idle for this long (in seconds),
    and all sessions found in the Store will be loaded on startup.
    If set to -1 sessions will not be backed up, 0 means they
    should be backed up shortly after being used.
    To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
    and minIdleBackup all to -1, saveOnRestart to false, then restart
    Catalina.
    -->
    <!--
    <Manager className="org.apache.catalina.session.PersistentManager"
    debug="0"
    saveOnRestart="true"
    maxActiveSessions="-1"
    minIdleSwap="-1"
    maxIdleSwap="-1"
    maxIdleBackup="-1">
    <Store className="org.apache.catalina.session.FileStore"/>
    </Manager>
    -->
    <Environment name="maxExemptions" type="java.lang.Integer"
    value="15"/>
    <Parameter name="context.param.name" value="context.param.value"
    override="false"/>
    <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/EmployeeAppDb">
    <parameter><name>username</name><value>sa</value></parameter>
    <parameter><name>password</name><value></value></parameter>
    <parameter><name>driverClassName</name>
    <value>org.hsql.jdbcDriver</value></parameter>
    <parameter><name>url</name>
    <value>jdbc:HypersonicSQL:database</value></parameter>
    </ResourceParams>
    <Resource name="mail/Session" auth="Container"
    type="javax.mail.Session"/>
    <ResourceParams name="mail/Session">
    <parameter>
    <name>mail.smtp.host</name>
    <value>localhost</value>
    </parameter>
    </ResourceParams>
    <ResourceLink name="linkToGlobalResource"
    global="simpleValue"
    type="java.lang.Integer"/>
    </Context>
    </Host>
    </Engine>
    </Service>
    </Server>

    To use servlets u have indeed to update your web.xml...Well I'm not sure this is relevant to your case anyway.
    You have to add a <servlet> element to this file.
    Something like this:
    <servlet>
    <servlet-name>blabla</servlet-name>
    <servlet-class>blablapackage.Blablaclass</servlet-class>
    <init-param>...</init-param>
    </servlet>
    Now this may not solve your problem. Make sure you refer to your servlets using their full qualified names.btw, just to be sure, what is your definition of "servlet"? (i mean: any java class or only javax.servlet.Servlet)

  • Updating Attached File

    Please help!
    I've attached a .pdf file (attachment file) to another .pdf file (source file) using the "attach a file as a comment" tool on Acrobat 9.0.
    However, the problem is that I've updated the original attachment file by accessing it through the source file and saved it under a different name (updated attachment file).
    I noticed when I clicked on the icon on the source file that the attachment file content is different from the content of the updated attachment file. In other words, the attachment on the source file was not synced with updated attachment file that had the changes on it.
    Seeing this, I tried to find the original attachment file to update that directly. However, when I look at the properties of the original attachment file, the path leads only to the file where the source file is found.
    Is there any way of accessing this original attachment file or having the changes synced when I make changes to the file that I originally attached?
    Also, does the new Acrobat X have functions that would solve my problem with the "attach a file as a comment" tool?

    There are no 'auto sync' features for attached files in any PDF software. Once you attach something you are creating a totally independent copy. You have to delete the attachment and add it back again.

Maybe you are looking for

  • Existing Calendar Entries not Syncing to iCloud

    I have an iPhone 5 running iOS 7 that has five calendars.  I attempted to sync it to my iCloud account today and it only syncs one of my calendars ("Work").  The other calendars ("School", "Home" etc), show up in iCloud in the Calendars sidebar, but

  • Role Dimensions in OWB

    hi, I have a fact table linked with the same dimension table more than once. The fact got validated properly, but when trying to execute the mapping ,values are not getting populated in the fact table. I came to know that such dimensions are known ar

  • Configuring Apache httpd.conf for Multiple Web Servers

    After successfully serving a single web site from my MacMini, I'm having trouble configuring httpd.conf to add an additional site. My httpd.conf file looks something like this: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain1.net Docume

  • Tv picture streached

    hi i live in southern cali. and have 4 channels that are streached 2,5,11,13 anyone heard what verizon is going to do to fix this and when

  • Error only in FIRST PAGE

    I have a DLink DP300U print server, and everytime I send a print first page is printed with error, but only first page. I believe that the only way to do not have this first page with error is printing a .TXT file. Whant could be? This happens also p