Lang bash

Hi guys,
I've got a problem with this "lang-bash". Actually I'm trying to install GNU gettext so I successfully did -configure- but no the same for -make-. At this stage I tried a -make check- and I found just one failed test that is:
FAIL: lang-bash
while I can see for example PASS for lang-c, lang-sh and so on.
Any ideas? What is lang-bash and what the problem could be?
Thanks very much in advance!

simone83 wrote:
I know it's not your fault but could you be more clear?
You were running the "check" phase of that project's make script. That verifies that the software was built correctly and will function as you expect. It failed on only one test. That is probably because the default version of bash on MacOS X is rather old. In all likelihood, anything you did with gettext and bash would work perfectly. Even though "make check" fails, you can safely do "sudo make install" without concern.
It isn't common for open-source packages to have such verification scripts. For those that do, getting 100% pass is very rare. There are just too many different combinations of system installations.
I'm very sorry, it's just because I'm not very familiar with this kind of things.
That's fine. I would encourage you to continue what you have been doing so that you can learn more about the system. I always discourage people from using those "ports" packages like MacPorts and Fink. They are useful in some specific circumstances, such as when you are using an obscure tool that has 160 dependences that you don't want to bother building. If you aren't familiar with how UNIX works and/or want to learn more, then these ports packages are downright dangerous. At best, they will prevent you from learning how to build software on your own and force you to become dependent on the port package. At worst, they will make changes to your system that you don't understand and, when something goes wrong, you can't fix because you never learned how.
Bash is a particularly good example. A couple of months ago someone posted a question about why Bash wasn't working the way they expected. The cause was the old MacOS X version of Bash and the old, funky MacOS X filesystem. I downloaded and built a newer bash in, literally, 2 minutes and verified that the bug no longer existed in the new version. The original poster, however, tried using Bash from MacPorts and still had the bug. Read the whole sorry tale if you can stomach it: http://discussions.apple.com/thread.jspa?messageID=12523273&#12523273
The moral of the story is that, yes - either MacPorts or Fink will take care of fetching the code, patching it, compiling, and keeping track of dependencies. Sometimes that is a good thing, and sometimes not. I can assure you that very, very few of these open-source packages were designed for people who don't know how the process works underneath. If you want to use them to manage dependences and save time and are confident you understand shells, environment variables, and dynamic libraries, then by all means do so.

Similar Messages

  • LC_NUMERIC and LC_TIME bash warning when logging into TTY

    I recently re-installed Arch after bouncing around a few distributions, and ever since I completed the install, I've had the following error when logging in to the TTY (only there, never noticed it anywhere else).  Specifically, the error reads:
    -bash: warning: setlocale: LC_NUMERIC: cannot change locale ()
    -bash: warning: setlocale: LC_NUMERIC: cannot change locale ()
    -bash: warning: setlocale: LC_TIME: cannot change locale ()
    -bash: warning: setlocale: LC_TIME: cannot change locale ()
    Output of locale:
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    locale -a
    C
    en_US.utf8
    POSIX
    en_US.UTF-8 is also uncommented in locale.gen, and it's been generated.  I haven't gotten any locale errors in any application I use, and it only appears before the prompt after logging in to a TTY screen.  I've also not set those variables to anything else in /etc/profile, /etc/bash.bashrc, .profile/.bashrc.  Logging into the root user instead of my user account does not result in the errors.  Also, it seems from the error that the locales are being set to "", and I can't for the life of me figure out where it's coming from.  I've searched the forums for similar problems, and most of these errors included warnings about files and folders not existing, which doesn't happen here, and were resolved by re-generating the locale (I've tried it, no change).  The only one that came close was an old forum thread about guarddog generating a different set of locale's using incorrect locale definitions, which resulted in the same errors.  If anyone has a suggestion as to how to fix this (or a handy trick for finding all files where locales are set), I'm open to them.
    .bashrc:
    # .bashrc (2013, Dec 11)
    [ -z "$PS1" ] && return
    # set a fancy prompt (non-color, unless we know we "want" color)
    case "$TERM" in
    xterm-color) color_prompt=yes;;
    esac
    if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
    # We have color support; assume it's compliant with Ecma-48
    # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
    # a case would tend to support setf rather than setaf.)
    color_prompt=yes
    else
    color_prompt=
    fi
    fi
    if [ "$color_prompt" = yes ]; then
    PS1="\[\e[0;37m\]⮀\[\e[0;32m\]\u\[\e[0;36m\]@\[\e[0;32m\]\h\[\e[0;37m\]:\[\e[0;33m\] \W\[\e[0;37m\]\[\e[0;37m\]\$\[\e[0m\] "
    else
    PS1="\[\e[43m\]\[\e[31m\]\u\[\e[0;33m\]\[\e[46m\]⮀\[\e[34m\]\h\[\e[0;36m\]\[\e[47m\]⮀\[\e[33m\]\W\[\e[0;37m\]⮀\[\e[0m\] "
    fi
    unset color_prompt force_color_prompt
    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.
    #if [ -f ~/.bash_aliases ]; then
    # . ~/.bash_aliases
    #fi
    # enable color support of ls and also add handy aliases
    if [ "$TERM" != "dumb" ] && [ -x /usr/bin/dircolors ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
    #alias grep='grep --color=auto'
    #alias fgrep='fgrep --color=auto'
    #alias egrep='egrep --color=auto'
    fi
    ##custom aliases
    alias ls="ls -la --color=always --classify"
    alias lh='\ls -a --classify | grep "\."'
    alias halt="sudo shutdown -P now"
    PATH=$PATH:$HOME/.rvm/bin:$HOME/.gem/ruby/2.0.0/bin # Add RVM to PATH for scripting
    .profile:
    # ~/.profile: executed by the command interpreter for login shells.
    # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
    # exists.
    # see /usr/share/doc/bash/examples/startup-files for examples.
    # the files are located in the bash-doc package.
    # the default umask is set in /etc/profile
    #umask 022
    # if running bash
    if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
    fi
    # set PATH so it includes user's private bin if it exists
    if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
    fi
    PATH="$PATH:/usr/local/sbin"
    PATH="$PATH:/usr/local/bin"

    An update:
    I've tried explicitly exporting both variables with en_US.UTF-8 in my bashrc, which has resulted in no change whatsoever.  Checking the value of these variables from my running system yields an empty return (i.e. the variables aren't set).  Can someone let me know if these variables are set on their system?  If they are, I'll see if I can set them manually and if that resolves the issue.

  • Java.lang.Runtime.exec problem in ubuntu 9.10

    Hi:
    I tried to run some command in the java code , for example "grass64 -text /home/data/location", this command works well in the terminal, however when I call it in the java code I got some excepetions.
    My code is :
    public class Grass {
         public static String grassBatJob="GRASS_BATCH_JOB";
         public void run(String cmd,String jobPath) {
              //set the environments variables
              Map<String, String> env=new HashMap<String, String>();
              env.put(grassBatJob, jobPath);
              String gisDataBase="/home/kk/grass/GrassDataBase";
              String location="spearfish60";
              String mapset="PERMANENT";
              cmd=cmd+" "+gisDataBase+"/"+location+"/"+mapset;
              CommandLine line=new CommandLine(cmd);
              //the real cmd should be >>grass64 -text /home/kk/grass/GrassDataBase/spearfish60/PERMANENT
              System.out.println("start line=="+line.toString());
              DefaultExecutor de=new DefaultExecutor();
              try {
                   int index=de.execute(line,env);
                   System.out.println(index);
              } catch (ExecuteException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              String jobPath=Grass.class.getResource("grass.sh").getFile();
              new Grass().run("grass64 -text", jobPath);
    The real cmd I want to execute is "grass64 -text /home/kk/grass/GrassDataBase/spearfish60/PERMANENT" with the envrionment variable "GRASS_BATCH_JOB=jobPath",it works well in the ternimal ,however in my application I got the exception"
    java.io.IOException: Cannot run program "grass64 -text /home/kk/grass/GrassDataBase/spearfish60/PERMANENT": java.io.IOException: error=2, No such file or directory
         at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
         at java.lang.Runtime.exec(Runtime.java:593)
         at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
         at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
         at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
         at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
         at org.kingxip.Grass.run(Grass.java:27)
         at org.kingxip.Grass.main(Grass.java:38)
    Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
         at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
         at java.lang.ProcessImpl.start(ProcessImpl.java:65)
         at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
         ... 7 more
    I wonder why?

    Thanks for all of your reply, and now I can run the command, however I met some problems when I tried to get the result of the exec.
    The core codes are shown below:
    String cmd="g.version";
    String[] exe={"bash","-c",cmd};
    Process p1=Runtime.getRuntime.exec(exe,env); // the env has been set
    GrassThread outThread=new GrassThread("out", p1.getInputStream());
    outThread.start();
    GrassThread errorThread=new GrassThread("error", p1.getErrorStream());
    errorThread.start();
    int exitVal = p1.waitFor();
    String resu=outThread.sb.toString();
    System.out.println("==========the output start========");
    System.out.println(resu);
    System.out.println("==========the output end========");
    System.out.println("ExitValue: " + exitVal); //------------------> line one
    public class GrassThread extends Thread{
         public StringBuffer sb=new StringBuffer();
         public GrassThread(String type,InputStream is) {
              this.type=type;
              this.is=is;
         public void run() {
              try {
                   InputStreamReader isr = new InputStreamReader(is);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   while ((line = br.readLine()) != null) {
                        System.out.println(type + ">" + line);
                        sb.append(line).append("\r");  // ----------------------------> line two
    }I define a StringBuffer in the GrassThread to save the output (see the code where I marked by "line two"), and when the process complete, I check the StringBuffer to get the output (see code where I marked by "line one"), however the output in the console of the IDE are :
    ----------- output in the console of the IDE start -------------
    ==========the output start========
    ==========the output end========
    ExitValue: 0
    out>GRASS 6.4.0RC5 (2009)
    ----------output in the console of the IDE end--------------------
    I can not understand, in the code "line one", I first get the output using "System.out.println(resu);",then I print the exitvalue,but why the order of the output in the console is not what I expected?
    Another question, the code above assume the output can be got from the Process's getInputStream, however sometimes the output maybe come from the Process's getErrorStream, so how to handle it?
    Edited by: apachemaven on 2010-3-5 ??5:38

  • Java.lang.NoClassDefFoundError in Mac OS X

    Just getting started developing in mac OS X and have run into the following error
    Exception in thread "main" java.lang.NoClassDefFoundError: testprogram
    while trying to run a simple hello world program from the bash shell:
    public class testprogram {
    public static void main(String[] args){
    System.out.println("Hey Zeph it worked!");
    The program compliles fine, but the error occurs when trying to run it. I have a feeling it may have to do with my classpath being incorrect, however they are set as follows:
    TERM_PROGRAM=Apple_Terminal
    TERM=xterm-color
    SHELL=/bin/bash
    PATH=/bin:/sbin:/usr/bin:/usr/sbin
    PWD=/Users/zeph/testprogram
    HOME=/Users/zeph
    CLASSPATH=/System/Library/Frameworks/JavaVM.Framework/Home
    I have been all over the web looking for solutions, most promising being the Getting started tutorial for macs (which is sady out of date and no help at all). Any thoughts would be most appreciated.
    Zephyr

    CLASSPATH=/System/Library/Frameworks/JavaVM.Framew
    ork/Home:.The file path that appears there in your classpath definition is actually where the bin directory of java can be found. Users of Windows and Linux must include such file path in some sort of PATH variable, either a user PATH or a system PATH so that the system can locate the java, javac etc executables.
    But the CLASSPATH is where the JVM looks for class files. So you do not need to include your bin directory on your CLASSPATH. Moreover, on Mac OS X, it isn't necessary to set the system PATH variable because OS X does this for you. (Nice....)

  • How to send 2 variable value from bash script into java.class

    #!/bin/bash
      a=10
      b=20
       echo $a $b | java addition
    donehi there,
    currently i have a simple java coding ( a + b ). and i m trying to connect with bash script but this bash script coudln't Enter 2nd value (b=20) while i running for it. may i know how do i can Enter 2 value into it?
    output from terminal
    [seng@localhost java_class]$ bash addition.sh
    =======================================================================
    simulation 1
    Num_a       = 10
    Num_b       = 20
    Enter your Num_a : 10
    Enter your Num_b : Exception in thread "main" java.lang.NumberFormatException
       at java.lang.Integer.parseInt(java.lang.String, int, boolean) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.Integer.parseInt(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
       at filter_god.GOD(java.util.List, java.util.List, java.lang.String, java.lang.String, int) (Unknown Source)
       at filter_god.main(java.lang.String[]) (Unknown Source)
       at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
       at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    =======================================================================

    That code will send both numbers on a single line in standard input to the java process. So if the process reads standard input, it will get a single line that has this in it: "10 20".
    I'm guessing you're sending that whole line to Integer.parseInt. But a valid number doesn't have a space in the middle.
    You should split up the line using String.split. Or use a StringTokenizer. Or a regular expression. Or you can use a java.util.Scanner. Or a java.io.StreamTokenizer. Or maybe some other stuff that has slipped my mind at the moment.

  • [solved] bash errors

    Howdy, first post here, installed arch last week after many years on debian based systems.
    I promise I have read the wiki on bash & have googled for hours & I cannot find what is generating these errors in the terminal every time a terminal is opened.
    bash: N: command not found
    bash: $!ba: command not found
    bash: s/n/: No such file or directory
    I can't recall at what point this error started to appear.  I have checked .bashrc, my bash aliases, I am stumped.
    My .bashrc :
    # ~/.bashrc
    # If not running interactively, don't do anything
    [[ $- != *i* ]] && return
    alias ls='ls --color=auto'
    PS1='[\u@\h \W]\$ '
    export LANG=en_GB.utf8
    export LC_MESSAGES="C"
    export LC_ALL=en_GB.utf8
    export EDITOR=nano
    source /usr/share/doc/pkgfile/command-not-found.bash
    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.
    if [ -f ~/.bash_aliases ]; then
        . ~/.bash_aliases
    fi
    Last edited by cl00t (2013-07-25 18:33:50)

    Great :-)
    Next time when pasting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
    like this
    It makes the code more readable and - in case of longer listings - more convenient to scroll through.
    Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

  • [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

    Dear all,
    Since a few days, when I type exit or Crtl+D in a KDE konsole to close the bash session, konsole often does not close itself anymore automatically. I tried to close it manually using the GUI (File>Close tab), but then I have the following message:
    The program '/usr/bin/bash' is in this session would not die. Are you sure you want to kill it by force?
    It seems bash is the culprit since ps reveals many [bash] <defunct> lines, probably one for each frozen konsole:
    XXXXXX 2002 0.0 0.0 0 0 ? Zs Nov26 0:00 [bash] <defunct>
    XXXXXX 2220 0.0 0.0 0 0 ? Zs Nov26 0:00 [bash] <defunct>
    XXXXXX 2841 0.0 0.0 0 0 ? Zs Nov26 0:00 [bash] <defunct>
    XXXXXX 2874 0.0 0.0 0 0 ? Zs Nov26 0:00 [bash] <defunct>
    XXXXXX 3525 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    XXXXXX 3704 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    XXXXXX 3719 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    XXXXXX 3827 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    XXXXXX 4365 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    XXXXXX 4462 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    XXXXXX 4475 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    XXXXXX 4559 0.0 0.0 0 0 ? Zs Nov27 0:00 [bash] <defunct>
    Any idea of what could be causing this problem?
    Thanks a lot!
    Aurel.
    Last edited by aurelieng (2013-11-29 08:11:06)

    my .bashrc:
    #!/usr/bin/bash
    export LANG=en_US.UTF-8
    # Source global definitions
    if [ -f /etc/bashrc ]; then
    . /etc/bashrc
    fi
    if [ -f /etc/bash.bashrc ]; then
    . /etc/bash.bashrc
    fi
    # Environment variables
    if [ -f ${HOME}/.environment ];
    then
    source ${HOME}/.environment
    fi
    # Path
    if [ -f ${HOME}/.path ];
    then
    unset TMPPATH;
    for i in `grep -v "^#" ${HOME}/.path `;
    do
    TMPPATH=$TMPPATH:$i;
    done
    export PATH=$TMPPATH:$PATH
    fi
    # Alias
    if [ -f ${HOME}/.alias ];
    then
    source ${HOME}/.alias
    fi
    ulimit -s unlimited
    # Turn off system bell
    setterm -blength 0
    #xset -b
    You can notice i use 3 external files: one containing the paths I want to add to $PATH, one for aliases, and a third one for environment variables. The bash session is initialized as expected, hence I don't think it's worth posting them. Moreover, the fact the bash can't be killed and remains a zombie make me think it might not be related to config files.
    My .bash_profile:
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    # Lines added by tex4moz on: Mon May 12 14:12:58 CEST 2003
    PATH=$PATH:/home/XXXXXXXX/temp/tex4ht.dir ; export PATH
    TEXINPUTS=$TEXINPUTS:/home/XXXXXXXX/temp/tex4ht.dir ; export TEXINPUTS
    Last edited by aurelieng (2013-11-28 06:16:27)

  • BEA WLS 9.0  java.lang.NoClassDefFoundError: utils/ImportPrivateKey

    Hi
    I’m newbie on this forum and on BEA WebLogic 9.0.
    I have to import my certificate in the keystore in order to setup SSL connection.
    I’m trying to use the java utils provided by BEA WL, but I have this error:
    bash-3.00# java utils.ImportPrivateKey
    Exception in thread "main" java.lang.NoClassDefFoundError: utils/ImportPrivateKey
    Suggestions ?
    Thanks for any help.

    Hi,
    The reason why you've got this error is because you didn't set the WebLogic context, prior to the use of the tool.
    To do so, first execute the script WLS_HOME\server\bin\setWLSEnv.sh or setWLSEnv.cmd, depending on your environment.
    Then, it should work.
    Regards.

  • Java.lang.OutOfMemoryError while starting Standalone Reports Server

    I am trying to start a standalone report server on AIX box, but is giving following error
    bash-3.00$ rwserver.sh server=repservername &
    java.lang.OutOfMemoryError: JVMXE006:OutOfMemoryError, stAllocAor executeJava failed
    kindly help

    was able to solve this
    there was corruption of reports config file

  • Error: when connecting to sqlServer2005 java.lang.ClassNotFoundException:

    Hi SDN,
    I am trying to connect to sqlServer2005 using the following code
    try{
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection con = java.sql.DriverManager.getConnection("jdbc:sqlserver://obtdev15:1433;DatabaseName=O50");
    response.write("connection succeded<br>");
    Statement st=  con.createStatement();
    response.write("statement created<br>");
    ResultSet c = st.executeQuery("select * from [SAPO50DB].[OGP_PROJECT]");
    response.write(" rows selected-->" + c.getString("PROJECTNAME"));
    }catch(Exception e){
                  e.printStackTrace();
                  response.write("exception in --"+e);
    when i execute it, it throws the following exception
    <b>java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver Found in negative cache -
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@b460e20] Parent loader name: [com.sapportals.portal.prt.util.AutoClassLoader@a52a72a] References: not registered! Resources: F:\usr\sap\O50\DVEBMGS50\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\ConnectingtoDB\lib\api.jar -
    </b>
    Please suggest me to rectify the above error.
    your help will be awarded.
    Thanks in Advance.
    Regards
    Basha

    Hi Basha,
    basically, your application is missing a java class. However, the proper way to connect to a database is discussed in this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=86307">thread</a>.
    Follow Detlev's advise:
    <i>In general, using a J2EE server means that you have a DB connection pool at hand where you can attach your database and then retrieve the Datasource object from the JNDI. That way, you won't have to care about connection pooling etc, and using tools like oject-relational-mappers also is quite easy, for they also expect just the Datasource or even better the JNDI lookup name.</i>
    You will find detailed information in the<a href="http://help.sap.com/saphelp_nw04/helpdata/de/bb/69da54d8aedc419d46d9ea074e4d41/frameset.htm">SAP Library</a>.
    Best regards,
    Martin

  • Comms6 IM java.lang.NoClassDefFoundError: org/apache/log4j/Layout

    Hi,
    After install (and configure) Comms6 Instant Messaging Server I cannot turn on IM services:
    bash-3.00# svcadm enable sunim
    bash-3.00# svcs -xv
    svc:/application/sunim:default (Sun Instant Messaging Server)
    State: offline since Thu Sep 18 18:57:15 2008
    Reason: Start method is running.
    See: http://sun.com/msg/SMF-8000-C4
    See: /var/svc/log/application-sunim:default.log
    Impact: This service is not running.
    (I added some debug lines to the /opt/sun/comms/im/sbin/imadmin)
    bash-3.00# tail /var/svc/log/application-sunim:default.log
    at com.iplanet.im.server.Watchdog.main(Watchdog.java:224)
    [TIMEOUT]
    [ Sep 18 18:41:57 Method "start" exited with status 1 ]
    [ Sep 18 18:44:57 Leaving maintenance because disable requested. ]
    [ Sep 18 18:44:57 Disabled. ]
    [ Sep 18 18:57:15 Enabled. ]
    [ Sep 18 18:57:15 Executing start method ("/opt/sun/comms/im/sbin/imadmin start") ]
    Starting Watchdog /opt/sun/comms/im/sbin/../lib/execdaemon /usr/jdk/entsys-j2se/bin/java -Dlogdir=/var/opt/SUNWiim/default/log -Djava.awt.headless=true -cp /opt/sun/comms/im/sbin/../lib/imcommon.jar:/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar:/opt/SUNWmfwk/lib/mfwk_agent.jar:/opt/SUNWmfwk/lib/rmi2rpc.jar:/opt/SUNWmfwk/lib/xml-apis.jar:/opt/SUNWmfwk/lib/javax77.jar:/opt/SUNWmfwk/lib/jdom.jar:/opt/SUNWmfwk/lib/xercesImpl.jar:/opt/SUNWjdmk/5.1/lib/jmx.jar:/opt/SUNWjdmk/5.1/lib/jmxremote.jar:/opt/SUNWjdmk/5.1/lib/jmxremote_optional.jar:/opt/SUNWjdmk/5.1/lib/jdmkrt.jar:/usr/share/lib/xmpp/improvider.jar:/usr/share/lib/imservice.jar:/opt/sun/comms/im/sbin/../lib/xmppd.jar:/usr/share/lib/jso.jar:/usr/share/lib/xp.jar:/usr/share/lib/log4j.jar:/usr/share/lib/jaxen-core.jar:/usr/share/lib/saxpath.jar com.iplanet.im.server.Watchdog -m noncluster -c /opt/sun/comms/im/sbin/../config/iim.conf
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Layout
    at com.iplanet.im.server.Watchdog.main(Watchdog.java:224)
    Anyway,
    When I try to start it manually I get the same error:
    bash-3.00# /opt/sun/comms/im/lib/execdaemon /usr/jdk/entsys-j2se/bin/java -Dlogdir=/var/opt/SUNWiim/default/log -Djava.awt.headless=true -cp /opt/sun/comms/im/sbin/../lib/imcommon.jar:/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar:/opt/SUNWmfwk/lib/mfwk_agent.jar:/opt/SUNWmfwk/lib/rmi2rpc.jar:/opt/SUNWmfwk/lib/xml-apis.jar:/opt/SUNWmfwk/lib/javax77.jar:/opt/SUNWmfwk/lib/jdom.jar:/opt/SUNWmfwk/lib/xercesImpl.jar:/opt/SUNWjdmk/5.1/lib/jmx.jar:/opt/SUNWjdmk/5.1/lib/jmxremote.jar:/opt/SUNWjdmk/5.1/lib/jmxremote_optional.jar:/opt/SUNWjdmk/5.1/lib/jdmkrt.jar:/usr/share/lib/xmpp/improvider.jar:/usr/share/lib/imservice.jar:/opt/sun/comms/im/sbin/../lib/xmppd.jar:/usr/share/lib/jso.jar:/usr/share/lib/xp.jar:/usr/share/lib/log4j.jar:/usr/share/lib/jaxen-core.jar:/usr/share/lib/saxpath.jar com.iplanet.im.server.Watchdog -m noncluster -c /opt/sun/comms/im/sbin/../config/iim.conf
    bash-3.00# Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Layout
    at com.iplanet.im.server.Watchdog.main(Watchdog.java:224)
    It comes from non global zone on Solaris 10u5.

    The package SUNWiimdv was not installed.
    bash-3.00# pwd
    /install/SunOS_i386/IMAPI/Packages
    bash-3.00# pkgadd -d . SUNWiimdv
    Processing package instance <SUNWiimdv> from </export/install/comms/SunOS_i386/IMAPI/Packages>
    Sun Java System Instant Messaging and Presence APIs(i386) 7.3,REV=2008.01.14
    Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
    PROPRIETARY/CONFIDENTIAL
    Use is subject to license terms.
    Using </> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    3 package pathnames are already properly installed.
    ## Verifying package dependencies.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.
    Installing Sun Java System Instant Messaging and Presence APIs as <SUNWiimdv>
    ## Installing part 1 of 1.
    /usr/share/lib/imservice.jar
    /usr/share/lib/jaxen-core.jar
    /usr/share/lib/jso.jar
    /usr/share/lib/log4j.jar
    /usr/share/lib/saxpath.jar
    /usr/share/lib/xmpp/improvider.jar
    /usr/share/lib/xmpp/xmppd
    /usr/share/lib/xmpp/xmppd.conf
    /usr/share/lib/xp.jar
    [ verifying class <none> ]
    Installation of <SUNWiimdv> was successful.
    bash-3.00# /opt/sun/comms/im/sbin/imadmin stop
    Stopping IM services using SMF. Please see the SMF logs for progress messages
    bash-3.00# /opt/sun/comms/im/sbin/imadmin start
    Starting IM services using SMF. Please see the SMF logs for progress messages
    bash-3.00# /opt/sun/comms/im/sbin/imadmin status
    Server [UP]
    Multiplexor [UP]
    Agent:calendar [UP]
    Watchdog [UP]

  • Wlst doesn't start- java.lang.UnsupportedClassVersionError

    i get the following error while running wlst
    >>
    bash-3.00$ java weblogic.WLST
    Initializing WebLogic Scripting Tool (WLST) ...
    Problem invoking WLST - java.lang.UnsupportedClassVersionError: Bad version number in .class file
    <<
    though it used to work perfectly fine ago, just couple of days back it started having these problem...

    Hi,
    It may be possible that recently you might have installed a Lower version of JVM in the same BOX.
    So please verify that by doing the following:
    1). Open a Shell prompt and then type:
    java -version
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)2). Make sure that this is the JVM which you want to invoke the WLST ....because it is possible that the weblogic.WLST is compiled in a higher version of the JDK which you might be seeing in your OUTPUT of the above command.
    3). So please make sure to set the PATH variable by adding your Latest version of JDK (example JDK 1.6) AT the beginning of the PATH like following:
         export PATH=/home/myuser/myJDKs/jdk1.6.0_2/bin:$PATH
         echo $PATHThanks
    Ravish Mody

  • Java.lang.IndexOutOfBoundsException: toIndex = 59

    Hi all,
    when ever I started my scenario from UNIX console I am getting "java.lang.IndexOutOfBoundsException: toIndex = 59"
    this error
    command:
    bash-3.00# ./startscen.sh PALASH 001 GLOBAL "-name=PalashSystemAgent"
    A JDK is required to execute Web Services with OracleDI. You are currently using
    a JRE.
    OracleDI: Starting scenario PALASH 001 in context GLOBAL ...
    java.lang.IndexOutOfBoundsException: toIndex = 59
    at java.util.SubList.<init>(AbstractList.java(Compiled Code))
    at java.util.RandomAccessSubList.<init>(AbstractList.java(Compiled Code)
    at java.util.RandomAccessSubList.subList(AbstractList.java:878)
    at com.sunopsis.d.a.g.a(g.java)
    at com.sunopsis.d.a.f.b(f.java)
    at com.sunopsis.tools.core.SnpsStringTools.b(SnpsStringTools.java)
    at com.sunopsis.dwg.DwgObject.snpsDecypher(DwgObject.java)
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityMan
    ager(DefaultDwgSecurityManager.java)
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityMan
    ager(DefaultDwgSecurityManager.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    please suggest me
    waiting for your reply
    regards
    Palash Chatterjee

    Hi,
    Please add this line in ur cron tab entry and check it for me whether this scenario is running from cron tab or not .
    Do the necessary changes
    1)instead of CHECK write ur scnario name along with other parameters
    2)my startscen.sh is in /app/odi/oracledi/bin directory so change accordingly
    3)After adding this line please check that log file is created with log entry or not
    CAUTION :Remove that cron entry after doing the test because that entry will send a mail to your /usr/spool/mail/root every time it will execute this command
    * * * * * /app/odi/oracledi/bin/./startscen.sh CHECK 003 GLOBAL -NAME=AIX_58_PAgent -v=5 >/app/odi/work/lastLog.log
    insead of cron job while I am running this code
    /app/odi/oracledi/bin/./startscen.sh CHECK 003 GLOBAL -NAME=AIX_58_PAgent -v=5 >/app/odi/work/lastLog.log
    it's working well and giving it's output also................................
    I am trying to solve this for last few days but unable to solve .............I don't have much more knowledge in UNIX may be for this reason I failed ..................Need your help
    regards,
    Palash Chatterjee

  • Locale.gen and echoing LANG=es_US.UTF8 UTF-8 || Why "LANG"???

    I noticed in the beginner tutorial during the locale-gen area it gives you some options.
    EDIT!!! all es_US is really en_US. In bash I never typed es_US. So I changed my code examples from es_US to en_US
    NOTE!! I am in learning mode so I am purposly messing with things. I have already got Arch Linux up and running... I am purposely breaking things to fix them.
    First, I ran nano and looked at the locale.gen file and saw that it had a huge list.
    then I ran
    echo LANG=en_US.UTF-8 > /etc/locale.gen
    When I saw what happened other than being WOWed by learning what echo does. I saw that the locale.gen replaced the entire file with "LANG=es_US.UTF-8" and on top of that locale-gen has an error with the code.
    I would prefer this
    echo en_US.UTF-8 UTF 8 >> /etc/locale.gen
    So does the beginner guide have an error? Because "LANG=" was never in the locale file to begin with and just uncommenting leaves "en_US.UTF-8 UTF-8" NOT "en_US.UTF-8"
    Thank you for your time!
    Last edited by AcousticBruce (2015-03-08 15:21:10)

    I did not tell you what the error was... that was my fault. The error went away with me fixing locale.gen to locale.conf.
    Ranman: I have gone over the locale.conf wiki. Really what is hard is, when the wiki explains one thing, it explains it almost another language that I, yet again, have to look up something else. So I am hoping my question can be just treated as a simple question.
    I can appreciate the intense amount of questions you get from people who do not read or care to take the time. However, I am not that guy. So can you please quit telling me to do research. Please read my whole post, I went through the beginner guide-Many times! It does not tell me what the difference between these two files are.
    Yes locale.conf is in the wiki, but locale.gen is NOT. So if it is ok, see my next question...
    That brings me to the next question. What is the difference of locale.conf and locale.gen?
    if I run locale-gen that will pull the uncommented line and set it as language?
    Or if I chose to use the echo to locale.conf
    and export LANG=en_US... does this do the same thing?
    Last edited by AcousticBruce (2015-03-08 18:54:46)

  • Any tips on Controlling interactive bash shell on Cygwin via Java process?

    Ideally, I'd like to be able to control an interactive bash shell on Cygwin from a Java process. But for starters, I want to do 'ls > /cygdrive/c/fred.txt'. The little program to do this, below, doesn't work. It simply runs without error.
    Any ideas? And also, any tips on doing a fully interactive shell?
    --> Java program to test simple command:
    package com.treelogic_swe.real_estate_explorer.utils;
    import java.io.File;
    import java.io.InputStream;
    * Quick and dirty test of Java to Cygwin bash shell process control.
    * Thanks to [email protected]
    * re: http://groups.google.com/group/comp.lang.java.help/browse_thread/thread/914403fbdd1de127/40363d2e7cbae823?lnk=st&q=cygwin+shell+java+process+runtime&rnum=1&hl=en#40363d2e7cbae823
    public class RunSystemCommand {   
        public static void main(String args[]) throws Throwable {
         // System command to run
         String cmd = "ls > /cygdrive/c/fred.txt";
            String [] sysArgs = { };
         // Set the working directory for the OS command processor
         File workDir = new File( "c:/cygwin/bin" );
         Process bash = Runtime.getRuntime().exec( cmd, sysArgs, workDir );
         InputStream bashIn = bash.getInputStream();
         while( bashIn.read() != -1 ); // Added, as otherwise the ls hangs.
         bash.waitFor();
    }

    Ideally, I'd like to be able to control an
    interactive bash shell on Cygwin
    What do you mean by this? Do you just want to start a bash shell, and have it's input and output come from and go to your Java program?
    Please be specific about what you want, as there are a couple of interpretations for what you said. You need to understand the differences and relationships among terminals, shells, shell builtins, and executables.
    You'll want to read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    from a Java
    process. But for starters, I want to do 'ls >
    /cygdrive/c/fred.txt'. The little program to do
    this, below, doesn't work. It simply runs without
    error.
    , <, |, and others are specific to the shell. When you're in a terminal, and you type ls > /tmp/zzz, it's the bash shell that interprets the >. Cygwin doesn't know anything about it. ls doesn't know anything about it.So if you want to to that, the command you'd execute from Java is not ls, but bash (or some other shell). You'd then tell bash to execute the rest. I'm not sure what the command line arg is for bash to tell it the rest of the command line args are a command that bash should interpret and execute. I think it might be -c like it is for zsh. So you'd need to do something like Runtie.getRuntime().exec("bash -c 'ls > /tmp/zzz'");

Maybe you are looking for