BUILD FAILED: problem with junit

Hi, I'm taking the CDJ-310A - Developing Applications for the J2EE Platform course and have run into a problem when issuing a call to asant. When I run asant test the message it gives is "Ant could not find the task or a class this task relies upon.".The errors I get refer to the junit package.
I've check the CLASSPATH and it seams ok:
D:\labs\FJ310\bankproject>javap junit.framework.TestCase
Compiled from "TestCase.java"
public abstract class junit.framework.TestCase extends junit.framework.Assert im
plements junit.framework.Test{
public junit.framework.TestCase();
public junit.framework.TestCase(java.lang.String);
public int countTestCases();
protected junit.framework.TestResult createResult();
public junit.framework.TestResult run();
public void run(junit.framework.TestResult);
public void runBare() throws java.lang.Throwable;
protected void runTest() throws java.lang.Throwable;
protected void setUp() throws java.lang.Exception;
protected void tearDown() throws java.lang.Exception;
public java.lang.String toString();
public java.lang.String getName();
public void setName(java.lang.String);
D:\labs\FJ310\bankproject>javap junit.textui.TestRunner
Compiled from "TestRunner.java"
public class junit.textui.TestRunner extends junit.runner.BaseTestRunner{
public static final int SUCCESS_EXIT;
public static final int FAILURE_EXIT;
public static final int EXCEPTION_EXIT;
public junit.textui.TestRunner();
public junit.textui.TestRunner(java.io.PrintStream);
public junit.textui.TestRunner(junit.textui.ResultPrinter);
public static void run(java.lang.Class);
public static junit.framework.TestResult run(junit.framework.Test);
public static void runAndWait(junit.framework.Test);
public void testFailed(int, junit.framework.Test, java.lang.Throwable);
public void testStarted(java.lang.String);
public void testEnded(java.lang.String);
protected junit.framework.TestResult createTestResult();
public junit.framework.TestResult doRun(junit.framework.Test);
public junit.framework.TestResult doRun(junit.framework.Test, boolean);
protected void pause(boolean);
public static void main(java.lang.String[]);
public junit.framework.TestResult start(java.lang.String[]) throws jav
a.lang.Exception;
protected junit.framework.TestResult runSingleMethod(java.lang.String, java.
lang.String, boolean) throws java.lang.Exception;
protected void runFailed(java.lang.String);
public void setPrinter(junit.textui.ResultPrinter);
But still these errors still are produced:
D:\labs\FJ310\bankproject>asant clean
Buildfile: build.xml
clean:
[delete] Deleting directory D:\labs\FJ310\bankproject\build
[delete] Deleting directory D:\labs\FJ310\bankproject\jar
BUILD SUCCESSFUL
Total time: 0 seconds
D:\labs\FJ310\bankproject>asant
Buildfile: build.xml
prepare:
[mkdir] Created dir: D:\labs\FJ310\bankproject\build
[mkdir] Created dir: D:\labs\FJ310\bankproject\jar
compile:
[javac] Compiling 6 source files to D:\labs\FJ310\bankproject\build
[javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:9: package junit
.framework does not exist
[javac] import junit.framework.*;
[javac] ^
[javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:11: cannot find
symbol
[javac] symbol: class TestCase
[javac] public class BankMgrTest extends TestCase {
[javac] ^
[javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:15: cannot find
symbol
[javac] symbol : class Test
[javac] location: class bank.BankMgrTest
[javac] public static Test suite() {
[javac] ^
[javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:16: cannot find
symbol
[javac] symbol : class TestSuite
[javac] location: class bank.BankMgrTest
[javac] return new TestSuite(BankMgrTest.class);
[javac] ^
[javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:20: package juni
t.textui does not exist
[javac] junit.textui.TestRunner.run(suite());
[javac] ^
[javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:39: cannot find
symbol
[javac] symbol : method assertEquals(java.lang.String,java.lang.String)
[javac] location: class bank.BankMgrTest
[javac] assertEquals("Fred", data.getFirstname());
[javac] ^
[javac] D:\labs\FJ310\bankproject\src\bank\BankMgrTest.java:40: cannot find
symbol
[javac] symbol : method assertEquals(java.lang.String,java.lang.String)
[javac] location: class bank.BankMgrTest
[javac] assertEquals("Flintstone", data.getLastname());
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors
BUILD FAILED
D:\labs\FJ310\bankproject\build.xml:14: Compile failed; see the compiler error o
utput for details.
Total time: 4 seconds
Any help solving these errors would be highly appreciated. I'm stuck right now. Thanks!

i have this problem too. and i added in CLASSPATH the path for junit.jar file. but still does not work
my build.xml file :
<project name="bankproject" default="deploy" basedir=".">
  <property environment="env"/>
  <property name="src.dir"     value="${basedir}/src"/>
  <property name="build.dir"   value="${basedir}/build"/>
  <property name="jar.dir"     value="${basedir}/jar"/>
  <target name="prepare">
    <mkdir dir="${build.dir}"/>
    <mkdir dir="${jar.dir}"/>
  </target>
  <target name="compile" depends="prepare" >
    <javac destdir="${build.dir}">
      <src path="${src.dir}"/>
    </javac>
  </target>
  <target name="package-bankmgr" depends="compile">
    <delete file="${jar.dir}/BankEJBModule.jar"/>
    <copy file="dd/bank-ejb-jar.xml" tofile="${build.dir}/ejb-jar.xml" overwrite="true"/>
    <copy file="dd/bank-sun-ejb-jar.xml" tofile="${build.dir}/sun-ejb-jar.xml" overwrite="true"/>
    <jar jarfile="${jar.dir}/BankEJBModule.jar">
      <metainf dir="${build.dir}" includes="ejb-jar.xml,sun-ejb-jar.xml" />
      <fileset dir="${build.dir}">
        <include name="bank/**" />
        <exclude name="bank/BankMgrTest.class" />
        <exclude name="bank/CustomerTest.class" />
      </fileset>
    </jar>
  </target>
  <target name="package-ejbs" depends="package-bankmgr" />
  <target name="package-client" depends="compile">
    <delete file="${jar.dir}/ClientModule.jar"/>
    <copy file="dd/bank-application-client.xml" tofile="${build.dir}/application-client.xml" overwrite="true"/>
    <copy file="dd/bank-sun-application-client.xml" tofile="${build.dir}/sun-application-client.xml" overwrite="true"/>
    <jar jarfile="${jar.dir}/ClientModule.jar">
      <manifest>
         <attribute name="Main-Class" value="bank.MessageClient" />
     </manifest>
      <metainf dir="${build.dir}" includes="application-client.xml,sun-application-client.xml" />
      <fileset dir="${build.dir}">
        <include name="bank/MessageClient.class" />
      </fileset>
    </jar>
  </target>
  <target name="assemble-app" depends="package-ejbs,package-client">
    <delete file="${jar.dir}/BankApplication.ear"/>
    <copy file="dd/bank-application.xml" tofile="${build.dir}/application.xml" overwrite="true"/>
    <ear destfile="${jar.dir}/BankApplication.ear" appxml="${build.dir}/application.xml">
      <fileset dir="${jar.dir}">
          <include name="BankEJBModule.jar"/>
          <include name="ClientModule.jar"/>
      </fileset>
    </ear>
  </target>
  <property name="j2ee.home"   value="${env.J2EE_HOME}" />
  <property name="admin.user"  value="admin" />
  <property name="admin.pass"  value="password" />
  <property name="appname"     value="BankApplication"/>
  <property name="ear.file"    value="${jar.dir}/${appname}.ear" />
  <target name="setAsadmin" >
     <condition property="asadmin" value="asadmin.bat">
        <os family="windows"/>
     </condition>
     <condition property="asadmin" value="asadmin">
        <not>
           <os family="windows"/>
        </not>
     </condition>
  </target>
  <target name="deploy" depends="assemble-app,setAsadmin">
    <echo message="Deploying ${ear.file}."/>
    <exec dir="." executable="${j2ee.home}/bin/${asadmin}">
        <arg line=" deploy"/>
        <arg line=" --user ${admin.user}"/>
        <arg line=" --password ${admin.pass}"/>
        <arg line=" --force=true"/>
        <arg line=" --name ${appname}"/>
     <arg line=" --retrieve=." />
        <arg line=" ${ear.file}"/>
     </exec>  
  </target>
  <target name="get-stubs" depends="setAsadmin">
    <echo message="Retrieving stubs JAR file for ${appname}."/>
    <exec dir="." executable="${j2ee.home}/bin/${asadmin}">
        <arg line=" get-client-stubs"/>
        <arg line=" --user ${admin.user}"/>
        <arg line=" --password ${admin.pass}"/>
        <arg line=" --appname ${appname}"/>
        <arg line=" ."/>
     </exec>  
  </target>
  <target name="undeploy" depends="setAsadmin">
    <echo message="Undeploying ${appname}."/>
    <exec dir="." executable="${j2ee.home}/bin/${asadmin}">
        <arg line=" undeploy"/>
        <arg line=" --user ${admin.user}"/>
        <arg line=" --password ${admin.pass}"/>
        <arg line=" ${appname}"/>
     </exec>  
  </target>
  <target name="test">
    <junit printsummary="on" haltonfailure="no" filtertrace="off">
      <classpath>
        <pathelement location="${build.dir}"/>
        <pathelement path="${java.class.path}"/>
        <pathelement path="BankApplicationClient.jar" />
      </classpath>
     <formatter type="plain" usefile="no"/>
      <test name="bank.BankMgrTest"/>
    </junit>
  </target>
  <target name="clean">
    <delete dir="${build.dir}" />
    <delete dir="${jar.dir} "/>
  </target>
</project>

Similar Messages

  • Problems with JUnit

    Hello,
    I'm using KODO 2.4.3 and JUnit 3.8.1 and log4j 1.2.8.
    I have a problem when executing TestCases with JUnit! I think it have to
    do with log4j.
    The Error is:
    javax.jdo.JDOFatalUserException: Exception thrown by
    getPersistenceManagerFactory(Properties)
    Caused by: org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
         at
    org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
    I regret, but JUnit doesnt show the complete output of the eexception and
    you also can't copy and paste it! But it must have to do with the
    log4j-Framework (which makes alyways problems with JUnit?)...
    If I start JUnit without "-Dlog4j.ignoreTCL=true" then Errors occur with
    log4j already before KODO is called...
    Thanks for any idea.
    Best wishes
    BERND

    Bernd-
    Hmmm ... I really think that this problem is because you have another
    version of log4j somewhere in your CLASSPATH (or else the classpath that
    ant is using). Do you get this exception if you try to use the junit
    test cases stand-alone (by using the junit TestRunner class)?
    Can you scour your classpath and any classpath that is being used by
    ant to ensure that you do not have another log4j or commons-logging jar
    anywhere?
    In article <[email protected]>, Michael wrote:
    I'm using 1.2.8 so I doubt it's the version. It's possible to have two
    versions of the apache commons logging jar files, since they've renamed it
    from commons-logging to jakarta-commons-logging a while back.
    "Marc Prudhommeaux" <[email protected]> wrote in message
    news:[email protected]...
    Bernd-
    Do you have a different version of log4j in your CLASSPATH (perhaps
    being used by ant)? You might want to try log4j 1.2.6, which does not
    exhibit any problems for us.
    In article <[email protected]>, Bernd Ruecker wrote:
    Yes, I have both...
    Michael wrote:
    Do you have both log4j & commons-logging jar files in your classpath??
    "Bernd Ruecker" <[email protected]> wrote in message
    news:[email protected]...
    Hello,
    I'm using KODO 2.4.3 and JUnit 3.8.1 and log4j 1.2.8.
    I have a problem when executing TestCases with JUnit! I think it have
    to
    do with log4j.
    The Error is:
    javax.jdo.JDOFatalUserException: Exception thrown by
    getPersistenceManagerFactory(Properties)
    Caused by: org.apache.commons.logging.LogConfigurationException:Class
    org.apache.commons.logging.impl.Log4JCategoryLog does not implementLog
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
    mpl.java:416)
    I regret, but JUnit doesnt show the complete output of the eexception
    and
    you also can't copy and paste it! But it must have to do with the
    log4j-Framework (which makes alyways problems with JUnit?)...
    If I start JUnit without "-Dlog4j.ignoreTCL=true" then Errors occurwith
    log4j already before KODO is called...
    Thanks for any idea.
    Best wishes
    BERND
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Build shared problem with configure / config.guess

    Hi,
    I'm constructing some 3rd party libraries from source level with configure/automake in Suse 9.2. A common mistake in all libs is done by config.guess: it prints out "i686-pc-linux-gnuaout" which switch off the shared support at all. It's easy to workaround by print "i686-pc-linux" instead directly from configure:
    ac_config_guess="echo i686-pc-linux"
    Then the shared support is enabled and there left some minor problems with linker options -soname and --rpath. Then some libs can create the shared libs, for instance the apr and xml2.
    Others do not, for instance log4cxx and acetao, but they do not produce any error. It looks like that simply the shared link step is not done, however the symbolic links to the release version are done. I also tryed with LD=CC and LD=cc instead of the gnu ld, but then already in config.log the shared support is not recognized. If I build by hand:
    cc -shared *.o -o libACE.so
    it seems to work and the result usable by applications. Since acatao includes lots of libraries to build, the manual creation is not handy / possible. So any hint to solving that are welcome. I'm using the latest sunstudio version (feb2007).
    thanx rolf

    It really depends on autoconf/libtool version those libs are using.
    Till the most recent versions libtool had absolutely no clue that SunStudio exists on Linux. And default fallback happened to be gcc.
    If you give me some specific lib (source URL or name/version) I can tell you why this lib does not configure with Sun Studio :)
    Most recent version of autoconf is wize enough to handle Sun Studio on Linux. So one of the solutions for the libs might be to upgrade to a newer autoconf. Not what common user would commonly do though...
    regards,
    __Fedor.

  • Problem with JUnit Testing from Command Prompt

    Hi There,
    Related Info:
    OS - Windows 7 32 Bit, IDE Used: Eclipse
    I'm using the following command to compile the java file from the command prompt:
    C:\Users\J\Desktop> javac -classpath .:junit.jar check4PrimeTest.java
    I get the error: "package junit.framework does not exist import junit.framework.*;"
    How can i fix this?
    I have downloaded junit from junit.org the 'junit4.10' and extracted in my Java Folder along side jdkjdk1.7.0_03, jre6, jre7.
    I will post my code below for the 'check4PrimeTest.java' file which im trying to test from the command prompt.
    package check4prime;
    // check4PrimeTest.java
    //Imports
    import junit.framework.*;
    public class check4PrimeTest extends TestCase {
         //Initialize a class to work with.
         private check4Prime check4prime = new check4Prime();
         //constructor
         public check4PrimeTest (String name) {
              super(name);
         //Main entry point
         public static void main(String[] args) {
              System.out.println("Starting test...");
              junit.textui.TestRunner.run(suite());
              System.out.println("Test finished...");
         } // end main()
         //Test case 1
         public void testCheckPrime_true() {
              assertTrue(check4prime.primeCheck(3));
         //Test cases 2,3
         public void testCheckPrime_false() {
              assertFalse(check4prime.primeCheck(0));
              assertFalse(check4prime.primeCheck(1000));
         //Test case 7
         public void testCheck4Prime_checkArgs_char_input() {
              try {
                   String [] args= new String[1];
                   args[0]="r";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } //end testCheck4Prime_checkArgs_char_input()
         //Test case 5
         public void testCheck4Prime_checkArgs_above_upper_bound() {
              try {
                   String [] args= new String[1];
                   args[0]="10001";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_upper_bound()
         //Test case 4
         public void testCheck4Prime_checkArgs_neg_input() {
              try {
                   String [] args= new String[1];
                   args[0]="-1";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_neg_input()
         //Test case 6
         public void testCheck4Prime_checkArgs_2_inputs() {
              try {
                   String [] args= new String[2];
                   args[0]="5";
                   args[1]="99";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
               } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_2_inputs
         //Test case 8
         public void testCheck4Prime_checkArgs_0_inputs() {
              try {
                   String [] args= new String[0];
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_0_inputs
         //JUnit required method.
         public static Test suite() {
              TestSuite suite = new TestSuite(check4PrimeTest.class);
              return suite;
         } //end suite()
    } //end check4PrimeTestEdited by: 963042 on Oct 3, 2012 8:57 PM
    Edited by: 963042 on Oct 3, 2012 10:07 PM

    963042 wrote:
    C:\Users\J\Desktop> javac -classpath .:junit.jar check4PrimeTest.javaThat's the Linux way to do it. On windows there is a different list separator. Use this:
    javac -cp .;junit.jar check4PrimeTest.java
    And use -cp to save you some typing ;) If you want to incorporate unit testing into your builds I would suggest looking into automating it a little more through tool such as ant, maven, etc.

  • I have call fail problem with my iphone 4 , i can't make calls

    I'm facing the problem of call fail and i can't make calls from my i phone , but i can recive calls & data also , only the problem is for the outgoing calls.

    ejcampbell wrote:
    Strange that a 10-12 year old dumb phone significantly out perfromed the 4S with a marginal signal is little disquieting. 
    Not really... that ancient EDGE only phone will stop working as AT&T sunsets their EDGE network over the next few years.
    Some phones are simply better at picking up weak signals than others.

  • Problems with June-Aug 2010 Driver update, dell 740

    Hey everyone,
    We have been experiencing problems imaging dell 740 in the last two releases. For June, after the kernel is loaded the screen goes black. This happens before we can hit escape to see where it's freezing.
    For August, upon bootup i get the error "Boot Loader: Not enough memory to load specified Kernel". Older updates work ok and aug does seem to work with other models.
    Has anyone came across this?

    Originally Posted by nddesroc
    Hey everyone,
    We have been experiencing problems imaging dell 740 in the last two releases. For June, after the kernel is loaded the screen goes black. This happens before we can hit escape to see where it's freezing.
    For August, upon bootup i get the error "Boot Loader: Not enough memory to load specified Kernel". Older updates work ok and aug does seem to work with other models.
    Has anyone came across this?
    We had the same problem, and solved it by adding parameter mem=512M in the config file z_maint.cfg, located at /srv/tftp. like this
    'append 5 initrd=boot\initrd mode=5 rootimage=/root install=tftp://$PXESERVER/boot splash=silent vga=normal mem=512M tftptimeout=50 $KERNEL_PARMS'
    Good luck.
    Gert.

  • Precondition Failed problem with apache plugin using SSL

    I got a "Precondition Failed" while trying to use apache + mod_ssl + mod_wl128_20.so.
    I am using Apache 2.0.52 & WebLogic 8.1 SP4 on Windows 2K Server.
    The web.xml is something like this:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Secured</web-resource-name>
    <url-pattern>/appmanager/Portal/desktop</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    While the httpd.conf is:
         <IfModule mod_weblogic.c>
              SetHandler weblogic-handler
              WebLogicHost localhost
              WebLogicPort 7001
              MatchExpression *
         </IfModule>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    <VirtualHost localhost:443>
         <IfModule mod_weblogic.c>
              DEBUG ALL
              SetHandler weblogic-handler
              SecureProxy ON
              TrustedCAFile C:/bea81/weblogic81/server/lib/CertGenCA.der
              RequireSSLHostMatch FALSE
              WebLogicHost localhost
              WebLogicPort 7002
              KeepAliveEnabled false
              MatchExpression *
         </IfModule>
    The proxy of http is fine and I can also use port virtualhost 443 map to weblogic http (port 7001).
    But when I use 443 map to 7002 (SSL), I got an error:
         Precondition Failed
         The precondition on the request for the URL /MyPortal/appmanager/Portal/desktop evaluated to false.
    When I turned on the DEBUG ALL in httpd.conf, I find an error message:
         ================New Request: [GET /MyPortal/appmanager/Portal/desktop HTTP/1.1] =================
         Thu Aug 11 14:29:44 2005 INFO: SSL is configured
         Thu Aug 11 14:29:44 2005 SSL Main Context not set. Calling InitSSL
         Thu Aug 11 14:29:44 2005 ERROR: SSL initialization failed
    Can anyone help me? Please email me by [email protected]
    Thanks very much!

    I got past the initial problem. You need to run der2pem and use the pem file not the der file.

  • 5140 - Camera say operation failed/problem with ch...

    Every time I try to take a photo it comes up with 'operation failed'. There's plenty of memory, 'tis a mystery to me.
    ALSO - charging, says it's full, but after one (short) call it's empty.
    Any ideas 'cos I love this phone and don't really want to replace it.

    Every time I try to take a photo it comes up with 'operation failed'. There's plenty of memory, 'tis a mystery to me.
    ALSO - charging, says it's full, but after one (short) call it's empty.
    Any ideas 'cos I love this phone and don't really want to replace it.

  • Problem with jUnit

    This is my first time using jUnit so I think I may be missing something.
    I created a simple class that calculates the hypotenuse
    public class Hypotenuse {
        public double hypt(double adj, double opp)
            return Math.sqrt(sumOfSquares(adj, opp));
        public double sumOfSquares(double adj, double opp)
            return square(adj) + square(opp);
        public double square(double side)
            return side * side;
    }And the jUnit test
    @Test
        public void testHypt() {
            System.out.println("hypt");
            double adj = 3.0;
            double opp = 4.0;
            Hypotenuse instance = new Hypotenuse();
            double expResult = 5.0;
            double result = instance.hypt(adj, opp);
            assertEquals(expResult, result);
            // TODO review the generated test code and remove the default call to fail.
            fail("The test case is a prototype.");
         * Test of sumOfSquares method, of class Hypotenuse.
        @Test
        public void testSumOfSquares() {
            System.out.println("sumOfSquares");
            double adj = 3.0;
            double opp = 4.0;
            Hypotenuse instance = new Hypotenuse();
            double expResult = 25.0;
            double result = instance.sumOfSquares(adj, opp);
            assertEquals(expResult, result);
            // TODO review the generated test code and remove the default call to fail.
            fail("The test case is a prototype.");
         * Test of square method, of class Hypotenuse.
        @Test
        public void testSquare() {
            System.out.println("square");
            double side = 3.0;
            Hypotenuse instance = new Hypotenuse();
            double expResult = 9.0;
            double result = instance.square(side);
            assertEquals(expResult, result);
            // TODO review the generated test code and remove the default call to fail.
            fail("The test case is a prototype.");
        }All the tests fail. When I run it through the main method the method hypt() works fine.
    public static void main(String[] args) {
            Hypotenuse h = new Hypotenuse();
            System.out.println(h.hypt(3.0, 4.0));
        }OUTPUTS: 5.0 (as expected)
    What am i doing wrong?
    Thanks
    Glenn

            // TODO review the generated test code and remove the default call to fail.
            fail("The test case is a prototype.");You really can not see why the tests are failing?

  • Nodemanager start failed (problems with native libraries)

    Hi,
    I've problem in starting nodemanager, this exception has been raised when I run startNodeManager.sh script:
    + CLASSPATH=/e/bea/patch_weblogic300/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/e/bea/jdk150_06/lib/tools.jar:/e/bea/sipserver30/server/lib/weblogic_sp.jar:/e/bea/sipserver30/server/lib/wlss/sipservlet.jar:/e/bea/sipserver30/server/lib/wlss/wlss.jar:/e/bea/sipserver30/server/lib/wlss/wlss-descriptor-binding.jar:/e/bea/sipserver30/server/lib/wlss/profile-service-descriptor-binding.jar:/e/bea/sipserver30/server/lib/wlss/wlss-mbeaninfo.jar:/e/bea/sipserver30/server/lib/wlss/wlss_i18n.jar:/e/bea/sipserver30/server/lib/wlss/wlssechosvr.jar:/e/bea/sipserver30/server/lib/wlss/wlssdiameter.jar:/e/bea/sipserver30/server/lib/wlss/sctp.jar:/e/bea/sipserver30/server/lib/weblogic.jar:/e/bea/sipserver30/server/lib/webservices.jar::/e/bea/patch_weblogic300/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/e/bea/jdk150_06/lib/tools.jar:/e/bea/sipserver30/server/lib/weblogic_sp.jar:/e/bea/sipserver30/server/lib/wlss/sipservlet.jar:/e/bea/sipserver30/server/lib/wlss/wlss.jar:/e/bea/sipserver30/server/lib/wlss/wlss-descriptor-binding.jar:/e/bea/sipserver30/server/lib/wlss/profile-service-descriptor-binding.jar:/e/bea/sipserver30/server/lib/wlss/wlss-mbeaninfo.jar:/e/bea/sipserver30/server/lib/wlss/wlss_i18n.jar:/e/bea/sipserver30/server/lib/wlss/wlssechosvr.jar:/e/bea/sipserver30/server/lib/wlss/wlssdiameter.jar:/e/bea/sipserver30/server/lib/wlss/sctp.jar:/e/bea/sipserver30/server/lib/weblogic.jar:/e/bea/sipserver30/server/lib/webservices.jar::/e/bea/sipserver30/common/eval/pointbase/lib/pbclient51.jar:/e/bea/sipserver30/server/lib/xqrl.jar::/e/bea
    + export CLASSPATH
    + export PATH
    + cd /e/bea/sipserver30/common/nodemanager
    + set -x
    + '[' '' '!=' '' ']'
    + '[' '' '!=' '' ']'
    + /e/bea/jdk150_06/bin/java -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=/e/bea/sipserver30 -Dwls.home=/e/bea/sipserver30/server -Dwli.home=/e/bea/sipserver30/integration -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/e/bea/patch_weblogic300/profiles/default/sysext_manifest_classpath -Xverify:none -Djava.security.policy=/e/bea/sipserver30/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/e/bea/jdk150_06 weblogic.NodeManager -v
    <1-mar-2007 12.24.43> <INFO> <Loading domains file: /e/bea/sipserver30/common/nodemanager/nodemanager.domains>
    <1-mar-2007 12.24.44> <GRAVE> <Fatal error in node manager server>
    weblogic.nodemanager.common.ConfigException: Native version is enabled but node manager native library could not be loaded
    at weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:212)
    at weblogic.nodemanager.server.NMServerConfig.<init>(NMServerConfig.java:172)
    at weblogic.nodemanager.server.NMServer.init(NMServer.java:174)
    at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:139)
    at weblogic.nodemanager.server.NMServer.main(NMServer.java:286)
    at weblogic.NodeManager.main(NodeManager.java:31)
    Caused by: java.lang.UnsatisfiedLinkError: no nodemanager in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at weblogic.nodemanager.util.UnixProcessControl.<init>(UnixProcessControl.java:16)
    at weblogic.nodemanager.util.Platform.getProcessControl(Platform.java:108)
    at weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:210)
    ... 5 more
    It seems that problem is in nodemanager native library :
    /e/bea/sipserver30/server/native/linux/i686/libnodemanager.so
    I'm working on a host with a Amd Cpu
    cat /proc/cpuinfo
    model name : AMD Opteron(tm) Processor 280
    and a Linux OS:
    # uname -a
    Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
    thank in advance

    Hi
    Just modify the NativeVersionEnabled property to false in nodemanager.properties file, that will solve the pb. If you dont have a property in nodemanager.properties file add one.
    Thanks,
    Venkata Koteswara Rao

  • Fahmon compile fails, problem with wxwidgets?

    I tried compiling fahmon, but it says that I need to have wxwidgets installed.  I compiled wxWidgets fine, but what do I do after that?  Here's the error I get when I compile fahmon:
    wxWidgets must be installed on your system.
    Please check that wx-config is in path, the directory
    where wxWidgets libraries are installed (returned by
    'wx-config --libs' or 'wx-config --static --libs' command)
    is in LD_LIBRARY_PATH or equivalent variable and
    wxWidgets version is 2.8.0 or above.
    Thanks!

    jackassplus wrote:
    My question is why the regex finds no matches.
    all my checking is done before it gets here
    IOW , Why would ".{5}$" not find a match in "thisChunk"
    ?Your regex ".{5}$" finds 0536B.
    Before calling group() method, you should call find() method on the matcher in a while loop or an if clause. Otherwise, the regex engine is just idling.

  • Mulitproject solution build failed with batch build but no problem with F6

    when I tried to use batch build on a solution that I have built many times successfully before, the build failed without error message.
    F6 works and no problem with debug using F5 either.
    the build order and dependencies have been verified
    what should do to find the cause of build failure?
    btw: build failed near very end, apparently the last step to completion in the progress bar

    Hello,
    >> what should do to find the cause of build failure?
    Please follow the blog to see how to debug MSBuild script with visual studio.
    http://blogs.msdn.com/b/visualstudio/archive/2010/07/06/debugging-msbuild-script-with-visual-studio.aspx. You can also add logging feature in MSBuild.
    http://msdn.microsoft.com/en-us/library/ms171470%28v=VS.90%29.aspx.
    Feel free to let me know if you have any concerns.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Executable build failing with no error message with smtp email VIs

    I have a VI which I want to build into a .exe which will be used as an HMI for a real-time system. I am using the SMTP VIs to text/email me various notifications about the system state. The main VI works fine if run but will not build into an .exe. The error message comes back blank so no help there (LabView 2010). If I just simply disable the portion of the code in the HMI.VI which contains the email VI code, the application builds. I searched for anwers and was unable to resolve the problem. Any ideas? Do I need to include anything in the build that is specific to the LabView SMTP VIs? I'm new to building .exe's so I appologize for any rookie mistakes I may have made.
    Thanks.

    mikeporter wrote:
    You said you searched for answers (on the forum?).
    Yes.
    What did you find?
    I found a bunch of topics on email send errors after the application was built but nothing related to .exe building failures (related to the SMTP/email VIs). I also found topics dicussing the bug that fails to report an (any) error during the .exe build (for 2011). The solution was to install the service pack. if that's my problem then I will have to go through the motions to get that done (corporate computers / lack of persmissons and such).
    What have you tried? This question has been answered many, many, many times.
    I tried what I stated in the OP. If I disable the portion of the code which contains the email SMTP VIs, the application builds, otherwise, the build fails and no error code or description is given.
    PS: probably has nothing to do with the SMTP drivers, per se.
    If the answer has been given many, many times, then I appologize for not being able to find it before posting. Trust me, the last thing I want to is waste my time fishing for answers on the forum, especially when I get a response from forum members who would rather point out that my mis-identified problem has been answered many, many times, rather then just helping me out.

  • Problem with Vision Builder and LabView: Error -1074395995, File not found

    I have created an inspection with Vision Builder AI 2009 SP1. In it I load some pictures from the HDD and run some checks over it. It works fine. Then I have migrated it to LabView 2010, I get a message that the migration is successfull, but when I run the VI on LabView I get a fail status. I have been checking my program and I have found and error when I try to load the picture from file: Error -1074395995 occurred at IMAQ ReadImageAndVisionInfo
    Possible reason(s): IMAQ Vision:  File not found.
    But I am not sure which file it refers to. At first I thought it was the picture I wanted to load, but I have checked the path and it is correct, so maybe it refers to another thing. What puzzles me most is that it works perfectly on Vision Builder and I have changed nothing in LabView, maybe it is a problem with the migration. Any clues?

    Here's a screenshot of what I'm talking about. Put a break point here and see what the path is and compare that with what Vision Builder AI is using (described where to find this in the previous post). You could find where this global is used to make debugging easier.
    Hope this helps,
    Brad
    Attachments:
    Generated Code.png ‏43 KB

  • Problem using Toplink with JUnit

    Hi,
    I have a problem using Toplink with JUnit. Method under test is very simple: it use a static EntityManager object to open a transaction and persists data to db. When I invoke the method from a test method, it gives me the exception:
    java.lang.AssertionError
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.computePURootURL(PersistenceUnitProcessor.java:248)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:232)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:216)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:239)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:278)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:81)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:119)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
         at it.valerio.electromanager.model.EntityFacade.<clinit>(EntityFacade.java:12)
         at it.valerio.electromanager.business.ClienteBiz.insertIntoDatabase(ClienteBiz.java:36)
         at it.valerio.electromanager.test.model.ClienteTest.insertDBTest(ClienteTest.java:30)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
         at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
         at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
         at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
         at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
         at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Where is the problem???
    Regards,
    Valerio

    EntityFacade class is very simple and it uses a static EntityManager object. Here the code:
    public class EntityFacade {
         private static EntityManager em = Persistence.createEntityManagerFactory("ElectroManager").createEntityManager();
         private static Logger logger=Logger.getLogger(EntityFacade.class);
         public static void insertCliente(Cliente c)
              logger.debug("Inserisco cliente nel db: " + c);
              em.getTransaction().begin();
              c.setId(getNextIdForTable("Cliente"));
              em.persist(c);
              em.getTransaction().commit();
    If I call the method from inside a main it works well, so I think the problem is not the classpath neither the URL in the persistence.xml. However the URL is:
    <property name="toplink.jdbc.url" value="jdbc:derby:c:/programmi/ElectroManager/db/electroManager"/>
    I use the latest build version of TopLink.
    Thanks.

Maybe you are looking for

  • There was an error while updating row count for "SH".."SH".CHANNELS

    Hi All, Am new to OBIEE.Pls help in this regard. Am building the physical layer as per Repository guide.When am importing the data in to this,am getting the below error. *"There was an error while updating row count for "SH".."SH".CHANNELS" :"* chann

  • Can't import content with '&' in XML element

    I encountered the following error msg when importing the sample XML with '&' in content of an element(for example, a URL with '&' for parameters): <?xml version = '1.0'?> <ROW_List> <ROW> ...... <D3_STRU_URL>http://www.ncbi.nlm.nih.gov/mmdbsrv.cgi?fo

  • Cannot execute CGI script in WL5.1 on Windows

    Hi when i execute a cgi script on WL5.1 on Windows NT machine, i get the following error : <ServletContext-General> cgi-bin: Failed to exec CGI script:myscript.pl The URL i use to call this cgi script is : http://localhost:7001/cgi-bin/myscript.pl I

  • Music is just going through songs with out playing them.

    I have iTunes Match, up until recently this has worked on my iPad 2 and iPhone 5 up until yesterday. Now when I select any music that is not downloaded to the Device, it does not playing anything. Just skips through the songs. I've tried turning matc

  • Retrying Pool Connections

    Hello, I'm trying to make my JDBCConnectionPools retry connecting to the database if the initial attempt fails but I have not been successful. I have set ConnectionCreationRetryFrequencySeconds="30" in the config.xml. I have started WLS when the data