What i have observed is, when i make
<junit printsummary="on" fork="no" ...
....
    <batchtest fork="yes"  ..
different error message is coming. why is this? how can i solve this?

now error :
java.lang.NoClassDefFoundError
at
com.bgc.ordering.wizard.back.services.onthology.service.mock.ProductConfigurationTest.setUp(ProductConfigurationTest.java:275)
0.000if i make <batchtest fork="no"  .., earlier error message is coming.

On Thu, Jun 9, 2011 at 4:18 PM, kasim ahmed <mail2ka...@googlemail.com>wrote:

> Hi,
>
> I am getting following error:
>
> Configuration problem: Failed to import bean definitions from URL location
> [classpath:/esw-web-ctx.xml] Offending resource: class path resource
> [applicationContext.xml]; nested exception is
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem:
> Failed to import bean definitions from URL location
> [classpath:/com/bgc/ecm/core/tools/exceptions/errorpagehandler-ctx.xml]
> Offending resource: class path resource [esw-web-ctx.xml]; nested exception
> is
> org.springframework.beans.factory.BeanDefinitionStoreException: IOException
> parsing XML document from class path resource
> [com/bgc/ecm/core/tools/exceptions
> /errorpagehandler-ctx.xml]; nested exception is
> java.net.UnknownHostException:
> www.springframework.org
> ....
> ..
> Configuration problem: Failed to import bean definitions from URL location
> [classpath:/esw-web-ctx.xml] Offending resource: class path resource
> [applicationContext.xml]; nested exception is
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Failed to import bean definitions from URL location
> [classpath:/com/bgc/ecm/core/tools
> /exceptions/errorpagehandler-ctx.xml] Offending resource: class path
> resource [esw-web-ctx.xml]; nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> IOException parsing XML document from class path resource
> [com/bgc/ecm/core/tools/exceptions/errorpagehandler-ctx.xml]; nested
> exception is java.net.UnknownHostException:
> www.springframework.org
>
> Ant target:
> <target name="junit" depends="buildlocal">
>         <delete dir="${JUNIT_REPORT}" failonerror="false"/>
>         <mkdir dir="${BUILD_TEST_DIR}" />
>         <mkdir dir="${JUNIT_REPORT}" />
>         <echo message="Launching JUnit tests" />
>         <copy todir="${BUILD_TEST_DIR}/" overwrite="true">
>             <fileset dir="${COMP_TESTCONFIG_DIR}">
>                 <exclude name="*.properties.template" />
>                 <exclude name="*.xml.template" />
>                 <exclude name="*.ccf.template" />
>                 <exclude name="**/*.bak" />
>                 <exclude name="**/*.keep" />
>                 <exclude name="**/*.keep.*" />
>                 <exclude name="**/*.contrib" />
>                 <exclude name="**/*.java" />
>                 <exclude name="**/*.class" />
>                 <exclude name="**/*.contrib.*" />
>             </fileset>
>         </copy>
>         <junit printsummary="on" fork="off" forkmode="once"
> haltonfailure="false" failureproperty="junit.failure" showoutput="false">
>             <classpath>
>                 <path refid="CLASSPATH_JUNIT"/>
>             </classpath>
>             <batchtest fork="off"  todir="${BUILD_TEST_DIR}">
>                <fileset dir="${TEST_CLASSES_DIR}">
>                   <include name="**/*Test.class" />
>                   <include name="**/Test*.class" />
>                    <!-- <exclude name="**/EswCacheInitializerTest.class" />
> -->
>                </fileset>
>             </batchtest>
>             <formatter type="xml" />
>         </junit>
>         <echo message="Launching junitreport" />
>         <junitreport todir="${JUNIT_REPORT}">
>             <fileset dir="${BUILD_TEST_DIR}">
>                 <include name="TEST-*.xml" />
>             </fileset>
>             <report format="frames" todir="${JUNIT_REPORT}"/>
>         </junitreport>
> </target>
>     <path id="CLASSPATH_JUNIT">
>         <path refid="LIB_JAVAC"/>
>         <pathelement location="${TEST_CLASSES_DIR}" />
>         <pathelement location="${BUILD_TEST_DIR}" />
>         <pathelement location="${APP_DIR}\bgc-esw-core\target\classes" />
>         <pathelement location="${APP_DIR}\bgc-esw-web\target\classes" />
>         <pathelement
> location="${APP_DIR}\bgc-esw-wicket-components\target\classes" />
>         <fileset dir="${BUILD_LIBS_HOME}">
>             <include name="*.jar" />
>         </fileset>
>         <fileset dir="${APP_DIR}\bgc-esw-web\build"
> erroronmissingdir="false">
>             <include name="bgc-esw-*.jar" />
>         </fileset>
>         <fileset dir="${APP_DIR}\bgc-esw-services\build"
> erroronmissingdir="false">
>             <include name="bgc-esw-service*.jar" />
>         </fileset>
>         <fileset dir="${APP_DIR}\bgc-esw-core\build"
> erroronmissingdir="false">
>             <include name="bgc-esw-core*.jar" />
>         </fileset>
>         <fileset dir="${APP_DIR}\bgc-esw-wicket-components\build"
> erroronmissingdir="false">
>             <include name="bgc-esw-wicket-components*.jar" />
>         </fileset>
>     </path>
>
>
> i have observed that errorpagehandler-ctx.xml not able to load. this file
> is in another project, but I have pointed the jar(another-project.jar) file
> for this in LIB_JAVAC.
>
>
>
>
>

Reply via email to