3 Replies Latest reply on Sep 14, 2009 10:27 AM by tomjenkinson

    Error for Run the Name Service for Deploying BLACKTIE

      Hello, I try to Deploy BLACKTIE
      I’ve modified the file $JBOSSTS_HOME/jacorb/etc/jacorb.properties to ensure the initial reference for the NameService : ORBInitRef.NameService=corbaloc::localhost:3528/NameService But, JacORB Name Service doesn’t work in my machine. When I Run $JACORB_HOME/bin/ns –DOAPort=3528 it gives the Error: No such file or directory type
      The file ns that contains just one line: jaco org.jacorb.naming.NameServer “$@�
      doesn’t execute with the command ./ns
      What should be the problem?

      Thanks and Regards

        • 1. Re: Error for Run the Name Service for Deploying BLACKTIE
          tomjenkinson

          Hi Sharareh,

          It looks like you are trying to deploy the minimal configuration of JBoss Transactions and the CORBA naming service. Can I ask, are you following the instructions from:
          https://www.jboss.org/community/wiki/DeployingBlacktie

          If so, can you tell me are you executing the ns command with the -DOAPort=3258 parameter?

          Also, can you post the output from the ns command please?

          I would actually recommend deploying the full application server instead (follow the short section entitled "Installing JBoss Application Server 5.1.0.GA" on the same page) as the minimal deployment does not support clustering of your Application Programs.

          Tom

          • 2. Re: Error for Run the Name Service for Deploying BLACKTIE

            Hi Tom,

            Yes, I follow the instruction from https://www.jboss.org/community/wiki/DeployingBlacktie.
            I should install "jboss-5.1.0.GA-jdk6" or " jboss-5.1.0.GA"?

            The message Error is:
            Exception in thread "main" java.lang.NoClassDefFoundError: /usr/lib/jvm/ java-6-openjdk
            Caused by: java.lang.ClassNotfoundException: .usr.lib.jvm.java-6-openjdk
            at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
            Could not find the main class: /usr/lib/jvm/ java-6-openjdk. Program will exit.

            I edited $JACORB_HOME/bin/jaco with these locations:
            : ${JRE_HOME:="/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre"}
            : ${JACORB_HOME:="$BLACKTIE_UTILS_HOME/jacORB/JacORB-2.2.3"}
            export JACORB_HOME
            : ${JVM_FLAGS:="/usr/lib/jvm/java-6-openjdk"}
            : ${JAVA_HOME:="/usr"}
            export JAVA_HOME

            Thanks in advance

            • 3. Re: Error for Run the Name Service for Deploying BLACKTIE
              tomjenkinson

              Hi Sharareh,

              For the moment all our testing is done with JDK 1.5 so I would suggest if possible you should use JDK 1.5 to test BlackTie.

              It looks like the error that you have is due to the following line:
              : ${JVM_FLAGS:="/usr/lib/jvm/java-6-openjdk"}
              Which is being provided as the "main class" to the java executable and is causing your error. I think you need to remove that line and change JAVA_HOME to be /usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/

              However, if you move to the "Installing JBoss Application Server 5.1.0.GA" instructions you will not have that problem as the application server launches its own naming service.

              Tom