Do we need to have build.xml for a project created in Eclipse WTP
Hi^^,
I had created a project in struts some time back. I remember that the classes wern't compiling until we added the build.xml to the project in the WEB-INF folder.
Now I have cretaed a "dynamic web project" in eclipse WTP. When I right click on the project I get the option of build project. When I select the option the java classes do get compiled. My question is how does that happen without the build.xml being included in the project folder. There is a build folder but it only has the classes folder when we get the .class files after compiling.
thanks and Regards,
hi^^,
I will rephrase the question. How does Eclipse build the project so that all the java files are converted to class files without using build.xml.
?????????
Similar Messages
-
Revision: 2514
Author: [email protected]
Date: 2008-07-16 14:38:06 -0700 (Wed, 16 Jul 2008)
Log Message:
frameworks: Fixing injection I made ages ago in build.xmls for framework projects
* all the projects should have been building against player 9's playerglobal.swc, not player 10's (except for flex4.swc)
* this might fix compiling problems that developed in tests for air
* problem was that s in ant are immutable and don't fire a warning if you redeclare them with a different value. I thought I was overriding the global ${playerglobal.version} property in files that needed to make it 9 instead of 10
* solution: created global.playerglobal.version (which is 10) and in files that need to "override" it, I declare local.playerglobal.version locally.
Reviewer: Pete
Bugs: n/a
QA: Please retest air compiling problems. We should probably re-run everything, since we're going back to the correct playerglobal, stuff might get fixed, stuff shouldn't (but could) get broken.
Doc: No
Modified Paths:
flex/sdk/trunk/build.properties
flex/sdk/trunk/frameworks/build_framework.xml
flex/sdk/trunk/frameworks/projects/airframework/build.xml
flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
flex/sdk/trunk/frameworks/projects/flex/build.xml
flex/sdk/trunk/frameworks/projects/flex4/build.xml
flex/sdk/trunk/frameworks/projects/framework/build.xml
flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
flex/sdk/trunk/frameworks/projects/rpc/build.xml
flex/sdk/trunk/frameworks/projects/utilities/build.xmlRevision: 2514
Author: [email protected]
Date: 2008-07-16 14:38:06 -0700 (Wed, 16 Jul 2008)
Log Message:
frameworks: Fixing injection I made ages ago in build.xmls for framework projects
* all the projects should have been building against player 9's playerglobal.swc, not player 10's (except for flex4.swc)
* this might fix compiling problems that developed in tests for air
* problem was that s in ant are immutable and don't fire a warning if you redeclare them with a different value. I thought I was overriding the global ${playerglobal.version} property in files that needed to make it 9 instead of 10
* solution: created global.playerglobal.version (which is 10) and in files that need to "override" it, I declare local.playerglobal.version locally.
Reviewer: Pete
Bugs: n/a
QA: Please retest air compiling problems. We should probably re-run everything, since we're going back to the correct playerglobal, stuff might get fixed, stuff shouldn't (but could) get broken.
Doc: No
Modified Paths:
flex/sdk/trunk/build.properties
flex/sdk/trunk/frameworks/build_framework.xml
flex/sdk/trunk/frameworks/projects/airframework/build.xml
flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
flex/sdk/trunk/frameworks/projects/flex/build.xml
flex/sdk/trunk/frameworks/projects/flex4/build.xml
flex/sdk/trunk/frameworks/projects/framework/build.xml
flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
flex/sdk/trunk/frameworks/projects/rpc/build.xml
flex/sdk/trunk/frameworks/projects/utilities/build.xml -
Build.xml for model project is showing package dosen't exist while compiling
Hi all.
For building my application i'm using ANT.I have followed the below link for deploying ant.
Building Projects with Ant
After created jdev-libs.xml and build.xml for the model project ,i tried to compile build.xml for model project.
Below is my build.properties
#Fri Nov 15 15:10:25 IST 2013
javac.debug=on
output.dir=classes
javac.deprecation=off
javac.nowarn=off
build.xml
<?xml version="1.0" encoding="windows-1252" ?>
<!--Ant buildfile generated by Oracle JDeveloper-->
<!--Generated Nov 15, 2013 3:10:25 PM-->
<project xmlns="antlib:org.apache.tools.ant" name="Model" default="all" basedir=".">
<property file="build.properties"/>
<import file="../JDeveloperLibs/jdev-libs.xml"/>
<path id="classpath">
<path refid="JDeveloperLibs.library.ADF.Model.Runtime"/>
<path refid="JDeveloperLibs.library.BC4J.Oracle.Domains"/>
<path refid="JDeveloperLibs.library.BC4J.Runtime"/>
<path refid="JDeveloperLibs.library.BC4J.Security"/>
<path refid="JDeveloperLibs.library.BC4J.Tester"/>
<path refid="JDeveloperLibs.library.MDS.Runtime"/>
<path refid="JDeveloperLibs.library.MDS.Runtime.Dependencies"/>
<path refid="JDeveloperLibs.library.Oracle.JDBC"/>
<path refid="JDeveloperLibs.library.Resource.Bundle.Support"/>
<path refid="JDeveloperLibs.library.ADF.Common.Runtime"/>
<path refid="JDeveloperLibs.library.Log4j-1.2.17.jar"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${output.dir}"/>
</target>
<target name="all" description="Build the project" depends="compile,copy"/>
<target name="clean" description="Clean the project">
<delete includeemptydirs="true" quiet="true">
<fileset dir="${output.dir}" includes="**/*"/>
</delete>
</target>
<target name="compile" description="Compile Java source files" depends="init">
<javac destdir="${output.dir}" classpathref="classpath" debug="${javac.debug}" nowarn="${javac.nowarn}"
deprecation="${javac.deprecation}" encoding="Cp1252" source="1.6" target="1.6">
<src path="src"/>
</javac>
</target>
<target name="copy" description="Copy files to output directory" depends="init">
<patternset id="copy.patterns">
<include name="**/*.gif"/>
<include name="**/*.jpg"/>
<include name="**/*.jpeg"/>
<include name="**/*.png"/>
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/*.ejx"/>
<include name="**/*.xcfg"/>
<include name="**/*.cpx"/>
<include name="**/*.dcx"/>
<include name="**/*.sva"/>
<include name="**/*.wsdl"/>
<include name="**/*.ini"/>
<include name="**/*.tld"/>
<include name="**/*.tag"/>
<include name="**/*.xlf"/>
<include name="**/*.xsl"/>
<include name="**/*.xsd"/>
<include name="**/*.jpx"/>
</patternset>
<copy todir="${output.dir}">
<fileset dir="src">
<patternset refid="copy.patterns"/>
</fileset>
</copy>
</target>
</project>
jdev-libs.xml
<?xml version="1.0" encoding="windows-1252" ?>
<!-- created using version 11.6.0 of com.consideringred.jdevlibsforant -->
<project name="JDeveloperLibs" default="" basedir=".">
<dirname property="JDeveloperLibs.basedir" file="${ant.file.JDeveloperLibs}"/>
<path id="JDeveloperLibs.srcpath">
<pathelement location="${JDeveloperLibs.basedir}D:\wrkspace backup from stpi\Nov\Nov 15\JDeveloperLibs\src"/>
</path>
<!-- to accommodate the Ant copy/fileset element in "Apache Ant version 1.6.5 compiled on June 2 2005" bundled with JDeveloper 10.1.3.2 -->
<property name="JDeveloperLibs.srcpath.first" value="${JDeveloperLibs.basedir}D:\wrkspace backup from stpi\Nov\Nov 15\JDeveloperLibs\src"/>
<property name="JDeveloperLibs.outputdir" value="${JDeveloperLibs.basedir}D:\wrkspace backup from stpi\Nov\Nov 15\JDeveloperLibs\classes"/>
<path id="JDeveloperLibs.library.ADF.Common.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adfsharembean.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.idm_11.1.1/identitystore.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.javacache_11.1.1/cache.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.security_11.1.1/adf-share-security.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.security_11.1.1/adf-controller-security.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.activation_1.1.0.0_1-1.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.Common.Web.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adflibfilter.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.javatools_11.1.1/javatools-nodeps.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.Controller.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.controller_11.1.1/adf-controller.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.controller_11.1.1/adf-controller-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.controller_11.1.1/adf-controller-rt-common.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.Controller.Schema">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adf-controller-schema.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.DVT.Faces.Databinding.MDS.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/dvt-databindings-mds.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.DVT.Faces.Databinding.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/dvt-databindings.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/dvt-facesbindings.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.DVT.Faces.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/dvt-utils.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/dvt-basemaps.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/dvt-jclient.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/dvt-trinidad.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/dvt-faces.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/prefuse.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-anim.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-awt-util.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-bridge.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-codec.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-css.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-dom.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-ext.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-extension.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-gui-util.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-gvt.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-parser.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-script.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-svg-dom.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-svggen.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-swing.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-transcoder.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-util.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/batik-xml.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/xml-apis-ext.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.Faces.Runtime.11">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/trinidad-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/trinidad-impl.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/adf-richclient-api-11.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/adf-richclient-impl-11.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.Model.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.idm_11.1.1/identitystore.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adfm.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/groovy-all-1.6.3.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adftransactionsdt.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/adf-dt-at-rt.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adfdt_common.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adflibrary.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/db-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/jdev-cm.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.ldap_11.1.1/ojmisc.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.security_11.1.1/adf-share-security.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.security_11.1.1/adf-controller-security.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.activation_1.1.0.0_1-1.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.mail_1.1.0.0_1-4-1.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.Page.Flow.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.pageflow_11.1.1/adf-pageflow-impl.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.pageflow_11.1.1/adf-pageflow-dtrt.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.pageflow_11.1.1/adf-pageflow-fwk.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.pageflow_11.1.1/adf-pageflow-rc.jar"/>
</path>
<path id="JDeveloperLibs.library.ADF.Web.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adfmweb.jar"/>
</path>
<path id="JDeveloperLibs.library.Apache.Ant">
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-antlr.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-apache-bcel.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-apache-bsf.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-apache-log4j.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-apache-oro.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-apache-regexp.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-apache-resolver.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-commons-logging.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-commons-net.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-jai.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-javamail.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-jdepend.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-jmf.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-jsch.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-junit.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-launcher.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-netrexx.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-nodeps.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-starteam.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-stylebook.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-swing.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-trax.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-weblogic.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant.jar"/>
</path>
<path id="JDeveloperLibs.library.Apache.Maven.2.2.1">
<pathelement location="../JDeveloperLibs/jdeveloper/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/apache-maven-2.2.1/boot/classworlds-1.1.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant-nodeps.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ant/lib/ant.jar"/>
</path>
<path id="JDeveloperLibs.library.BC4J.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adfsharembean.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.idm_11.1.1/identitystore.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adfm.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/bc4j-mbeans.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/groovy-all-1.6.3.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/db-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/jdev-cm.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.ldap_11.1.1/ojmisc.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.javatools_11.1.1/resourcebundle.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.activation_1.1.0.0_1-1.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.mail_1.1.0.0_1-4-1.jar"/>
</path>
<path id="JDeveloperLibs.library.BC4J.Security">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.ldap_11.1.1/ldapjclnt11.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jps-common.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jps-ee.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jps-unsupported-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jps-manifest.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jacc-spi.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.pki_11.1.1/oraclepki.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.osdt_11.1.1/osdt_core.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.osdt_11.1.1/osdt_cert.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.osdt_11.1.1/osdt_xmlsec.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.osdt_11.1.1/osdt_ws_sx.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.iau_11.1.1/fmw_audit.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.security.jacc_1.0.0.0_1-1.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.idm_11.1.1/identitystore.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.security_11.1.1/adf-share-security.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.activation_1.1.0.0_1-1.jar"/>
</path>
<path id="JDeveloperLibs.library.BC4J.Oracle.Domains">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adfm.jar"/>
</path>
<path id="JDeveloperLibs.library.BC4J.Client">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adfm.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/db-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/jdev-cm.jar"/>
</path>
<path id="JDeveloperLibs.library.BC4J.Tester">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/BC4J/jlib/bc4jtester.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/adfm-debugger.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/db-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/jdev-cm.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/regexp.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.help_5.0/ohj.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.help_5.0/help-share.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.bali.share_11.1.1/share.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/jlib/jewt4.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.help_5.0/oracle_ice.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.ldap_11.1.1/ojmisc.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ide/lib/idert.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/ide/lib/javatools.jar"/>
<pathelement location="../JDeveloperLibs/wlserver_10.3/server/lib/weblogic.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar"/>
</path>
<path id="JDeveloperLibs.library.Commons.Beanutils.1.6">
<pathelement location="../JDeveloperLibs/oracle_common/modules/org.apache.commons.beanutils_1.6.jar"/>
</path>
<path id="JDeveloperLibs.library.Commons.Collections.3.1">
<pathelement location="../JDeveloperLibs/modules/com.bea.core.apache.commons.collections_3.2.0.jar"/>
</path>
<path id="JDeveloperLibs.library.Commons.Logging.1.0.4">
<pathelement location="../JDeveloperLibs/oracle_common/modules/org.apache.commons.logging_1.0.4.jar"/>
</path>
<path id="JDeveloperLibs.library.Connection.Manager">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.model_11.1.1/jdev-cm.jar"/>
</path>
<path id="JDeveloperLibs.library.JDeveloper.Runtime">
<pathelement location="../JDeveloperLibs/jdeveloper/jdev/lib/jdev-rt.jar"/>
</path>
<path id="JDeveloperLibs.library.JSF.2.0">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jsf_2.0/jsf-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jsf_2.0/jsf-impl.jar"/>
</path>
<path id="JDeveloperLibs.library.JSTL.1.2">
<pathelement location="../JDeveloperLibs/modules/glassfish.jstl_1.2.0.1.jar"/>
</path>
<path id="JDeveloperLibs.library.JSP.Runtime">
<pathelement location="../JDeveloperLibs/modules/javax.servlet_1.0.0.0_2-5.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.jsp_1.2.0.0_2-1.jar"/>
<pathelement location="../JDeveloperLibs/modules/glassfish.el_1.0.0.0_2-1.jar"/>
</path>
<path id="JDeveloperLibs.library.MDS.Runtime">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/>
</path>
<path id="JDeveloperLibs.library.MDS.Runtime.Dependencies">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.mds_11.1.1/oramds.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adf-share-support.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.servlet_1.0.0.0_2-5.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.jsp_1.2.0.0_2-1.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/jlib/commons-cli-1.0.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.bali.share_11.1.1/share.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xmlef_11.1.1/xmlef.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.dms_11.1.1/dms.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.activation_1.1.0.0_1-1.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xml.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.javacache_11.1.1/cache.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.ucp_11.1.0.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.javatools_11.1.1/javatools-nodeps.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.management_1.2.1.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.management.j2ee_1.0.jar"/>
</path>
<path id="JDeveloperLibs.library.Oracle.JEWT">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.bali.share_11.1.1/share.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/jlib/jewt4.jar"/>
<pathelement location="../JDeveloperLibs/jdeveloper/jlib/inspect4.jar"/>
</path>
<path id="JDeveloperLibs.library.Oracle.JDBC">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.dms_11.1.1/dms.jar"/>
</path>
<path id="JDeveloperLibs.library.Oracle.XML.Parser.v2">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.xdk_11.1.0/xml.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n-mapping.jar"/>
</path>
<path id="JDeveloperLibs.library.Resource.Bundle.Support">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.javatools_11.1.1/resourcebundle.jar"/>
</path>
<path id="JDeveloperLibs.library.Resource.Bundle.Variable.Resolver">
<pathelement location="../JDeveloperLibs/jdeveloper/jlib/bundleresolver.jar"/>
</path>
<path id="JDeveloperLibs.library.SQLJ.Runtime">
<pathelement location="../JDeveloperLibs/jdeveloper/sqlj/lib/runtime12.jar"/>
</path>
<path id="JDeveloperLibs.library.Servlet.Runtime">
<pathelement location="../JDeveloperLibs/modules/javax.servlet_1.0.0.0_2-5.jar"/>
<pathelement location="../JDeveloperLibs/modules/javax.jsp_1.2.0.0_2-1.jar"/>
</path>
<path id="JDeveloperLibs.library.Trinidad.Runtime.11">
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/trinidad-api.jar"/>
<pathelement location="../JDeveloperLibs/oracle_common/modules/oracle.adf.view_11.1.1/trinidad-impl.jar"/>
</path>
<path id="JDeveloperLibs.library.Bcpkix-jdk15on-1.48.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/bcpkix-jdk15on-1.48.jar"/>
</path>
<path id="JDeveloperLibs.library.Bcprov-jdk15on-1.48.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/bcprov-jdk15on-1.48.jar"/>
</path>
<path id="JDeveloperLibs.library.Commons-codec-1.8.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/commons-codec-1.8.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-asian.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-asian.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-hyph-xml.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-hyph-xml.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-pdfa-5.4.0-javadoc.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-pdfa-5.4.0-javadoc.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-pdfa-5.4.0-sources.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-pdfa-5.4.0-sources.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-pdfa-5.4.0.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-pdfa-5.4.0.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-xtra-5.4.0-javadoc.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-xtra-5.4.0-javadoc.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-xtra-5.4.0-sources.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-xtra-5.4.0-sources.jar"/>
</path>
<path id="JDeveloperLibs.library.Itext-xtra-5.4.0.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itext-xtra-5.4.0.jar"/>
</path>
<path id="JDeveloperLibs.library.Itextpdf-5.4.0-javadoc.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itextpdf-5.4.0-javadoc.jar"/>
</path>
<path id="JDeveloperLibs.library.Itextpdf-5.4.0-sources.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itextpdf-5.4.0-sources.jar"/>
</path>
<path id="JDeveloperLibs.library.Itextpdf-5.4.0.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/itextpdf-5.4.0.jar"/>
</path>
<path id="JDeveloperLibs.library.Log4j-1.2.17.jar">
<pathelement location="${JDeveloperLibs.basedir}/../lib/log4j-1.2.17.jar"/>
</path>
<path id="JDeveloperLibs.classpath">
<path refid="JDeveloperLibs.library.ADF.Common.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.Common.Web.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.Controller.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.Controller.Schema"/>
<path refid="JDeveloperLibs.library.ADF.DVT.Faces.Databinding.MDS.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.DVT.Faces.Databinding.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.DVT.Faces.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.Faces.Runtime.11"/>
<path refid="JDeveloperLibs.library.ADF.Model.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.Page.Flow.Runtime"/>
<path refid="JDeveloperLibs.library.ADF.Web.Runtime"/>
<path refid="JDeveloperLibs.library.Apache.Ant"/>
<path refid="JDeveloperLibs.library.Apache.Maven.2.2.1"/>
<path refid="JDeveloperLibs.library.BC4J.Runtime"/>
<path refid="JDeveloperLibs.library.BC4J.Security"/>
<path refid="JDeveloperLibs.library.BC4J.Oracle.Domains"/>
<path refid="JDeveloperLibs.library.BC4J.Client"/>
<path refid="JDeveloperLibs.library.BC4J.Tester"/>
<path refid="JDeveloperLibs.library.Commons.Beanutils.1.6"/>
<path refid="JDeveloperLibs.library.Commons.Collections.3.1"/>
<path refid="JDeveloperLibs.library.Commons.Logging.1.0.4"/>
<path refid="JDeveloperLibs.library.Connection.Manager"/>
<path refid="JDeveloperLibs.library.JDeveloper.Runtime"/>
<path refid="JDeveloperLibs.library.JSF.2.0"/>
<path refid="JDeveloperLibs.library.JSTL.1.2"/>
<path refid="JDeveloperLibs.library.JSP.Runtime"/>
<path refid="JDeveloperLibs.library.MDS.Runtime"/>
<path refid="JDeveloperLibs.library.MDS.Runtime.Dependencies"/>
<path refid="JDeveloperLibs.library.Oracle.JEWT"/>
<path refid="JDeveloperLibs.library.Oracle.JDBC"/>
<path refid="JDeveloperLibs.library.Oracle.XML.Parser.v2"/>
<path refid="JDeveloperLibs.library.Resource.Bundle.Support"/>
<path refid="JDeveloperLibs.library.Resource.Bundle.Variable.Resolver"/>
<path refid="JDeveloperLibs.library.SQLJ.Runtime"/>
<path refid="JDeveloperLibs.library.Servlet.Runtime"/>
<path refid="JDeveloperLibs.library.Trinidad.Runtime.11"/>
<path refid="JDeveloperLibs.library.Bcpkix-jdk15on-1.48.jar"/>
<path refid="JDeveloperLibs.library.Bcprov-jdk15on-1.48.jar"/>
<path refid="JDeveloperLibs.library.Commons-codec-1.8.jar"/>
<path refid="JDeveloperLibs.library.Itext-asian.jar"/>
<path refid="JDeveloperLibs.library.Itext-hyph-xml.jar"/>
<path refid="JDeveloperLibs.library.Itext-pdfa-5.4.0-javadoc.jar"/>
<path refid="JDeveloperLibs.library.Itext-pdfa-5.4.0-sources.jar"/>
<path refid="JDeveloperLibs.library.Itext-pdfa-5.4.0.jar"/>
<path refid="JDeveloperLibs.library.Itext-xtra-5.4.0-javadoc.jar"/>
<path refid="JDeveloperLibs.library.Itext-xtra-5.4.0-sources.jar"/>
<path refid="JDeveloperLibs.library.Itext-xtra-5.4.0.jar"/>
<path refid="JDeveloperLibs.library.Itextpdf-5.4.0-javadoc.jar"/>
<path refid="JDeveloperLibs.library.Itextpdf-5.4.0-sources.jar"/>
<path refid="JDeveloperLibs.library.Itextpdf-5.4.0.jar"/>
<path refid="JDeveloperLibs.library.Log4j-1.2.17.jar"/>
</path>
</project>
Problem:
While executing im getting the below error:package dosent exist.Please help on this.Thanks
Buildfile: D:\wrkspace backup from stpi\Nov\Nov 15\Model\build.xml
init:
compile:
[javac] Compiling 116 source files to D:\wrkspace backup from stpi\Nov\Nov 15\Model\classes
[javac] D:\wrkspace backup from stpi\Nov\Nov 15\Model\src\com\workflow\common\entity\detailsEOImpl.java:17: package javax.persistence does not exist
[javac] import javax.persistence.EntityManager;
[javac] ^
[javac] D:\wrkspace backup from stpi\Nov\Nov 15\Model\src\com\workflow\common\entity\detailsEOImpl.java:18: package javax.persistence does not exist
[javac] import javax.persistence.Query;
[javac] ^
[javac] D:\wrkspace backup from stpi\Nov\Nov 15\Model\src\comworkflow\common\entity\detailsEOImpl.java:40: package oracle.toplink.queryframework does not exist
[javac] import oracle.toplink.queryframework.DataModifyQuery;
[javac] ^
[javac] D:\wrkspace backup from stpi\Nov\Nov 15\Model\src\com\workflow\common\entity\detailsEOImpl.java:41: package oracle.toplink.queryframework does not exist
[javac] import oracle.toplink.queryframework.StoredProcedureCall;
[javac] ^
[javac] D:\wrkspace backup from stpi\Nov\Nov 15\Model\src\com\workflow\common\entity\detailsEOImpl.java:43: package oracle.toplink.sessions does not exist
[javac] import oracle.toplink.sessions.Session;
[javac] ^
[javac] D:\wrkspace backup from stpi\Nov\Nov 15\Model\src\com\workflow\common\entity\detailsEOImpl.java:45: package org.eclipse.persistence.annotations does not exist
[javac] import org.eclipse.persistence.annotations.NamedStoredProcedureQuery;
[javac] ^
[javac] D:\wrkspace backup from stpi\Nov\Nov 15\Model\src\com\workflow\common\entity\detailsEOImpl.java:46: package org.eclipse.persistence.annotations does not exist
[javac] import org.eclipse.persistence.annotations.StoredProcedureParameter;
[javac] ^
[javac] 7 errors
BUILD FAILED
D:\wrkspace backup from stpi\Nov\Nov 15\Model\build.xml:33: Compile failed; see the compiler error output for details.
Total time: 6 secondsTimo and dvohra21,
I found the mistake that javax.persistance jar is missed in modules folder.After added that and inculdeJavaRuntime i was able to compile model's build.xml.
When compiling view's build.xml im getting
cannot access weblogic.security.acl.internal.AuthenticatedSubject
[javac] class file for weblogic.security.acl.internal.AuthenticatedSubject not found
weblogic.servlet.security.ServletAuthentication.runAs(subject,request)
I have searched the forums and applied the solutions :
1.Added com.bea.core.weblogic.security.identity jar,added weblogic 10.3 remote client and its corresponding jar weblogic.jar
2.javax.security.auth.subject subject=Authentication.login(new URLCallbackHandler(un,pw));
weblogic.servlet.security.ServletAuthentication.runAs(subject,request);
still im getting the same exception.Any idea on this?Thanks. -
Corrected build.xml for jta sample
When building the jta example using ant I discovered several problems
with use of environment variables
APPLICATIONS/EX_WEBAPP_CLASSES/CLIENT_CLASSES requiring explicit
declaration of "environment="
Also an incorrect source directory for the client pointed at the
clustered ejb example source.
Here is a corrected build.xml for the jta example.
<project name="jta-jmsjdbc" default="all" basedir=".">
<!-- set global properties for this build -->
<property file="../../../examples.properties"/>
<property name="src" value="."/>
<property name="APPLICATIONS" environment="env"/>
<property name="EX_WEBAPP_CLASSES" environment="env"/>
<property name="CLIENT_CLASSES" environment="env"/>
<property name="build" value="${src}/build"/>
<property name="dist" value="${src}/dist"/>
<target name="all" depends="clean, init, compile_ejb, jar_ejb, ejbc,
compile_webapp, compile_client"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile
and copy the deployment descriptors into it-->
<mkdir dir="${build}"/>
<mkdir dir="${build}/META-INF"/>
<mkdir dir="${dist}"/>
<copy todir="${build}/META-INF">
<fileset dir="${src}">
<include name="*.xml"/>
</fileset>
</copy>
</target>
<!-- Compile EJB classes into the build directory (jar preparation)
-->
<target name="compile_ejb">
<javac srcdir="${src}" destdir="${build}"
includes="ReceiveInTx.java, ReceiveInTxHome.java,
ReceiveInTxBean.java"/>
</target>
<!-- Make a standard ejb jar file, including XML deployment
descriptors -->
<target name="jar_ejb" depends="compile_ejb">
<jar jarfile="${dist}/std_jta_ejb_jmsjdbc.jar"
basedir="${build}">
</jar>
</target>
<!-- Run ejbc to create the deployable jar file -->
<target name="ejbc" depends="jar_ejb">
<java classname="weblogic.ejbc" fork="yes">
<sysproperty key="weblogic.home" value="${WL_HOME}"/>
<arg line="-compiler javac ${dist}/std_jta_ejb_jmsjdbc.jar
${env.APPLICATIONS}/jta_ejb_jmsjdbc.jar"/>
<classpath>
<pathelement
path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar"/>
</classpath>
</java>
</target>
<!-- Compile handler class into WEB-INF/classes directory of the
Examples Web
App. This ensures that the EJB class can be accessed by JSPs and
servlets of
the Examples Web App-->
<target name="compile_webapp">
<javac srcdir="${src}"
destdir="${env.EX_WEBAPP_CLASSES}"
includes="ReceiveInTx.java, ReceiveInTxHome.java"
/>
</target>
<!-- Compile Client class into the clientclasses directory -->
<target name="compile_client">
<!-- <javac srcdir="../../cluster/ejb" -->
<javac srcdir="${src}"
destdir="${env.CLIENT_CLASSES}"
includes="ReceiveInTx.java, ReceiveInTxHome.java, Client.java"
/>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>Hi,
I used dom parser and i think using that will solve your problem.....Create desired tags...establish a connection and retrive data into the tags...This would solve your problem.
Other way is the database that you are using must be having some option to generate an xml from a table..that option will be more easy and useful..
If u are to use a dom parser..so tell me...
Regards
Monali -
How to make the java files compile for a project created outside of Eclipse
Hi^^,
I have created a project outside of Eclipse. It has the following folders
1. config
2. source
3. WEB-INF
I want to execute the project on remote server. Will it compile automatically creating a new folder for .class files corresponding to the source folder or do i need to include a build.xml to enable the project to create a new folder for .class files. Also pls tell me how do I write this build.xml
Please advise.Hi^^,
Actually I have created a project without using eclipse.
My source files are inside WEB-INF/source
Now I want to compile the files using build.xml so that I can create class files. I am using the following build.xml
<project name="jsp" default="all" basedir="./">
<property environment="env"/>
<property file="ArmorJSP.properties"/>
<!-- set global properties for this build -->
<property name="source" value="."/>
<target name="all" depends="copy, jspc, testservlet"/>
<!-- Creates jsp_servlet directory under WEB-INF\classes of the Examples Web
APP and places the compiled jsp classes into it -->
<target name="jspc">
<!-- Run ejbc to create the deployable jar file -->
<java classname="weblogic.jspc" fork="yes">
<arg line="-webapp ${APPLICATION_HOME} -compileAll -d ${APPLICATION_WEB_CLASSES} ${source}/*.jsp"/>
<classpath>
<pathelement path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar;${ARMOR_HOME}/ARMORSecurity.jar;${ARMOR_HOME}/ARMORUtil.jar"/>
</classpath>
</java>
</target>
<!-- Creates jsp_servlet directory under WEB-INF\classes of the Examples Web
APP and places the compiled Servlets classes into it -->
<target name="testservlet">
<!-- Run ejbc to create the deployable jar file -->
<javac destdir="${APPLICATION_WEB_CLASSES}" srcdir="${source}" includes="*.java">
<classpath>
<pathelement path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar;${ARMOR_HOME}/ARMORSecurity.jar;${ARMOR_HOME}/ARMORUtil.jar"/>
</classpath>
</javac>
</target>
<target name="copy">
<copy todir="${APPLICATION_HOME}">
<fileset dir="${source}">
<include name="*.jsp"/>
</fileset>
</copy>
</target>
</project>I do not know how to compile the project using this build.xml
The motive of doing all this is to understand how is Eclipse doing the build project step. I simply cannot find any build.xml inside any of my projects created in Eclipse however when right click on the project and choose build project, it compiles excellently. ???
Edited by: pksingh79 on Nov 24, 2008 1:19 PM -
Problem in creating a build.xml for weblogic portal application
Team ,
I am facing problem in creating the build.xml using weblogic.BuildXMLGEN tool .
a) Below is the structure of my portal application
SrcCode
--- .metadata (eclipse plugins folder)
--- B2BApp ( Ear Content)
--- b2bPortal ( portal related file(controllers,jsp)
--- b2bsrc (java src)
b) Now I executed below utility to generate the build.xml "
java weblogic.BuildXMLGen -projectName B2BApp -username weblogic -file build.xml -password welcome1 F:\srcCode"
c) Based on the above step , build.xml got generated .
d) when I execute "ant compile" target from the command prompt , I see the below exception
ant compile
Buildfile: build.xml
compile:
+[wlcompile] [JAM] Warning: failed to resolve class AbstractJspBacking+
+[wlcompile] [JAM] Error: unexpected exception thrown:+
+[wlcompile] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\b2b\dmr\Picker\PickerController.java at line 58.+
e) I suspect , the problem is bcoz of classpath issues , as I generated build.xml donot have the references to dependent lib's.As build.xml looks like below :
+<target name="compile" description="Only compiles B2BApp application, no appc">+
+<wlcompile srcdir="${src.dir}" destdir="${dest.dir}">+
+<!-- These referenced libraries were not found -->+
+<!-- <library file="p13n-core-web-lib" /> -->+
+<!-- <library file="jersey-web-lib" /> -->+
+.....+
+....+
Please help me to reslove these issues .
PS: I able to deploy the application using 10.3.2 weblogic workshop ( i.e inbuilt eclipse )i JaySen ,
thanks for your response. As mentioned we added all the necessary library within the -librarydir but still we see the same error :
+[JAM] Error: unexpected exception thrown:+
com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\typeAhead\TypeAheadController.java at line 70. Most likely, an annotation is declared whose type has not been imported.
at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.getAnnotationTypeFor(JavadocTigerDelegateImpl_150.java:410)
at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:176)
at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:152)
at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.addAnnotations(JavadocClassBuilder.java:404)
at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.populate(JavadocClassBuilder.java:359)
===================
a) this is a upgrade project [ upgrading from wlp 8.1.4 to 10.3.2 ]
i.e we are using weblogic portal 10.3.2 version.
b) Searched some sites/forums regarding the above error, and it says something related to "jwsc" ant task [ i.e while compiling a webservice(JWS) ], but we see this error while compiling a normal controller(jpf) class :(
c) we are using "ant compile" target which internally calls wlcompile task , while executing wlcompile this error is thrown .
Help Appreciated
Thx,
Sarat -
Do we need to put the following code in the web-xml for the project to run
Hi^^^,
actually I have created a project in Eclipse WTP and I am running it from remote server. Its giving me 404 error when I tried to run it.
I know 404 error is generally due to some error in deployment descriptor.
I am going through this tutorial for creating project in eclipse WTP
this says that I need to include the following code in web-xml. Please look at the quotes below
"Web modules in J2EE has a deployment descriptor where you configure the web application and its components. This deployment descriptors is called the web.xml. According to the J2EE specification, it must be located in the WEB-INF folder. web.xml must have definitions for the Servlet and the Servlet URI mapping. Enter the following lines into web.xml:"
"Listing 2. Deployment Descriptor web.xml"
<servlet>
<servlet-name>Snoop Servlet</servlet-name>
<servlet-class>org.eclipse.wtp.tutorial.SnoopServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Snoop Servlet</servlet-name>
<url-pattern>/snoop/*</url-pattern>
</servlet-mapping>
My question is, it is necessary to include the above lines between <servlet> and </servlet-mapping> in web-xml
thanks and regards,
Prashantpksingh79 wrote:
actually I have created a project in Eclipse WTP and I am running it from remote server. Its giving me 404 error when I tried to run it.
I know 404 error is generally due to some error in deployment descriptor. what's the url you've put.
<servlet>
<servlet-name>Snoop Servlet</servlet-name>
<servlet-class>org.eclipse.wtp.tutorial.SnoopServlet</servlet-class>
</servlet> Every Servlet has to have a <servlet></Servlet> tag in the web.xml
the <servlet-name>is for the naming the servlet and the <servlet-calss>is for class file of the servlet in your case the .class file is to be in the package of tutorial,if it's not then how the container will no where the calss file is
<servlet-mapping>
<servlet-name>Snoop Servlet</servlet-name>
<url-pattern>/snoop/*</url-pattern>
</servlet-mapping>You type something in your url likk http://localhost:8080/webappname (Tomcat server),so for url mapping instead of typing the entire class file name ,you just enough have to type what you've put in the <url-mapping> tag and it has to be inside of <servlet-mapping>
I think the problem is in <url-pattern> change it like /snoop<url-pattern>
My question is, it is necessary to include the above lines between <servlet> and ></servlet->mapping> in web.xmlSo now you think whether you need something inside <servlet>and </servlet-mapping> -
Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data
Expected output in Xml:
<?xml version="1.0" encoding="utf-8" ?>
- <TopRoot>
- <Root id="1" Name="Department">
- <Type id="2" Name="IT">
- <SubType id="3" Name="Technology">
<SubSubType id="4" Name="Sharepoint" />
<SubSubType id="5" Name="ASP.NET" />
<SubSubType id="6" Name="HTML 5" />
</SubType>
</Type>
</Root>
</TopRoot>
List Details:
list details for storing category / sub category data and code to build tree structure for the same.
1.Create Custom List named “CategoryDetails”:
2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
3.Create column “Parent Category” of type lookup. under Additional Column Settings.
Get information dropdown, select “CategoryDetails”.
4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
In this column dropdown, select “Category Name”:
Referance:
http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data -fine but don't want tree view just generate xml string
i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
Expected Result:
My ultimate goal is to generate xml string like above format without building tree view.
I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
I developed some code but its not working to generate xml /string.
My modified Code:
public const string DYNAMIC_CAML_QUERY =
"<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
"<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack)
string TreeViewStr= BuildTree();
Literal1.Text = TreeViewStr;
StringBuilder sbRoot= new StringBuilder();
protected string BuildTree()
SPList TasksList;
SPQuery objSPQuery;
StringBuilder Query = new StringBuilder();
SPListItemCollection objItems;
string DisplayColumn = string.Empty;
string Title = string.Empty;
string[] valueArray = null;
try
using (SPSite site = new SPSite(SPContext.Current.Web.Url))
using (SPWeb web = site.OpenWeb())
TasksList = SPContext.Current.Web.Lists["Service"];
if (TasksList != null)
objSPQuery = new SPQuery();
Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
objSPQuery.Query = Query.ToString();
objItems = TasksList.GetItems(objSPQuery);
if (objItems != null && objItems.Count > 0)
foreach (SPListItem objItem in objItems)
DisplayColumn = Convert.ToString(objItem["Title"]);
Title = Convert.ToString(objItem["Title"]);
int rootId=objItem["ID"].ToString();
sbRoot.Append("<Root id="+rootId+"
Name="+Title+">");
string SRAndSUBSRTpe = CreateTree(Title, valueArray,
null, DisplayColumn, objItem["ID"].ToString());
sbRoot.Append(SRAndSUBSRTpe);
SRType.Clear();//make SRType Empty
strhtml.Clear();
SRType.Append("</Root>");
catch (Exception ex)
throw ex;
return SRType.ToString();
StringBuilder strhtml = new StringBuilder();
private string CreateTree(string RootNode, string[] valueArray,
List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
try
strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
catch (Exception ex)
throw ex;
return strhtml;
StringBuilder SRType = new StringBuilder();
private string GetSRType(string RootNode,
string[] valueArray, List<SPListItem> objListItemColn)
SPQuery objSPQuery;
SPListItemCollection objItems = null;
List<SPListItem> objNodeListItems = new List<SPListItem>();
objSPQuery = new SPQuery();
string objNodeTitle = string.Empty;
string objLookupColumn = string.Empty;
StringBuilder Query = new StringBuilder();
SPList objTaskList;
SPField spField;
string objKeyColumn;
string SrTypeCategory;
try
objTaskList = SPContext.Current.Web.Lists["Service"];
objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
Query.Append(String.Format
(DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
objSPQuery.Query = Query.ToString();
objItems = objTaskList.GetItems(objSPQuery);
foreach (SPListItem objItem in objItems)
objNodeListItems.Add(objItem);
if (objNodeListItems != null && objNodeListItems.Count > 0)
foreach (SPListItem objItem in objNodeListItems)
RootNode = Convert.ToString(objItem["Title"]);
objKeyColumn = Convert.ToString(objItem["ID"]);
objNodeTitle = Convert.ToString(objItem["Title"]);
SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
if(SrTypeCategory =="SRtYpe")
SRType.Append("<Type id="+objKeyColumn+" Name="+RootNode+ ">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SRSubTYpe")
SRType.Append("<SRSubType id="+objKeyColumn+" Name="+RootNode+
">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SubSubTYpe")
SRType.Append("<SubSubType id="+objKeyColumn+" Name="+RootNode +"
></SubSubType");
SRType.Append("</SubType>");
SRType.Append("</Type>");
catch (Exception ex)
throw ex;
return SRType.ToString();
// Call method again (recursion) to get the child itemsHi,
According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
For example, to create or delete the ECB menu for a list item in
"Site Content and Structure", we can follow the steps below:
To add the “My Like” menu, we can add the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemLike"
runat="server"
Text="My Like"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickNavigateUrl="https://www.google.com.hk/"
/>
To remove the “Delete” menu, we can comment the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemDelete"
runat="server"
Text="<%$Resources:cms,SmtDelete%>"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickScript="%SmtObjectDeleteScript%"
/>
The result is as below:
More information:
MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Configuring build.xml for struts in Eclipse
Hi guys! I need some help! I am trying to run "struts-examples" from eclipse3.0.
This is my build.xml file :
<project name="Struts Example" default="main" basedir=".">
<!-- This is a basic build script, only the minimums here -->
<!-- Tell ant to use my environment variables -->
<property environment="env"/>
<property file="./build.properties"/>
<!--
This build script assumes Tomcat 5 is the servlet container.
Modify as necessary if a different container is being used.
-->
<property name="jboss.home" value="C:\jboss-4.0.2"/>
<property name="servlet.jar" value="${jobss.home}/server/default/lib/javax.servlet.jar"/>
<property name="jsp.jar" value="${jobss.home}/server/default/lib/servlet.jsp.jar"/>
<property name="deploy.dir" value="${jobss.home}/server/default/deploy"/>
<property name="build.compiler" value="modern"/>
<property name="build.dir" value="./WEB-INF/classes" />
<property name="src.dir" value="./WEB-INF/src"/>
<property name="war.file" value="struts-example"/>
<property name="war.file.name" value="${war.file}.war"/>
<path id="project.class.path">
<fileset dir="./WEB-INF/lib/">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${src.dir}"/>
<pathelement path="${servlet.jar}"/>
<pathelement path="${jsp.jar}"/>
</path>
<target name="clean">
<delete dir="${build.dir}" includeEmptyDirs="true" />
</target>
<target name="prep">
<mkdir dir="${build.dir}"/>
</target>
<target name="compile">
<javac srcdir="${src.dir}"
destdir="${build.dir}"
debug="on"
deprecation="on">
<include name="**/*.java"/>
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="cleanWebApp">
<delete file="${deploy.dir}/${war.file.name}" />
<delete dir="${deploy.dir}/${war.file}" includeEmptyDirs="true" />
</target>
<target name="war">
<war warfile="${war.file.name}" webxml="./WEB-INF/web.xml">
<fileset dir="./" includes="**/*.*" excludes="*.war, **/*.nbattrs, web.xml, **/WEB-INF/**/*.*, **/project-files/**/*.*"/>
<webinf dir="./WEB-INF" includes="**/*" excludes="web.xml, **/*.jar, **/*.class"/>
<lib dir="./WEB-INF/lib"/>
<classes dir="${build.dir}"/>
<classes dir="${src.dir}">
<include name="**/*.properties"/>
</classes>
</war>
</target>
<target name="deploy">
<copy todir="${deploy.dir}">
<fileset dir="./" includes="${war.file.name}"/>
</copy>
</target>
<target name="main" depends="clean, prep, cleanWebApp, compile, war"/>
</project>
The problem is that every time I run build.xml I get compilations errors that "package javax.servlet.http does not exist" even though I know that my jboss_home is in the correct directory and hence the corresponding javax.servlet.jar and and servlet.jsp.jar file. Should I be putting this javax.servlet.jar file elsewhere too?
Thanks in advancechange the line <property name="jboss.home" value="C:\jboss-4.0.2"/>
into
<property name="jboss.home" value="C:/jboss-4.0.2"/>
then try. it should work -
Need help with build.xml / junit - pls ignore my previous posting
i'm trying to add unit tests for another class file in a larger package. the package is built with ant. relevant lines of the build.xml that pertain to unit tests are
</target>
<target name="test" depends="dist, build-tests">
<!-- the grouper project doesn't use the junit ant task that's fine with me -->
<java fork="yes"
classname="junit.textui.TestRunner"
taskname="junit"
failonerror="true">
<arg value="organization.organizationSuite"/>
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path="../organization.jar"/>
<pathelement path="${buildir}" />
</classpath>
</java>
</target>
<target name="test-individual" depends="dist, build-tests">
<!-- the grouper project doesn't use the junit ant task that's fine with me -->
<java fork="yes"
classname="junit.textui.TestRunner"
taskname="junit"
failonerror="true">
<arg value="organization.testFoo"/> <!-- ADJUST THIS FOR YOUR OWN TEST -->
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path="../organization.jar"/>
<pathelement path="${buildir}" />
</classpath>
</java>
<java fork="yes"
classname="junit.textui.TestRunner"
taskname="junit"
failonerror="true">
<arg value="organization.oldTest"/> <!-- ADJUST THIS FOR YOUR OWN TEST -->
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path="../organization.jar"/>
<pathelement path="${buildir}" />
</classpath>
</java>i'm trying to add
<arg value="organization.anotherTest"/> <!-- ADJUST THIS FOR YOUR OWN TEST -->
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path="../organization.jar"/>
<pathelement path="${buildir}" />
</classpath>
</java>right now i can
right now i can
java junit.textui.TestRunner organization.testSuite
or to run a specific test
java junit.textui.TestRunner organization.oldTest
i added the above lines to my build.xml, added the .java file for the anotherTest class to the ${testdir} where oldTest and testSuite and other junit related classes live within the package directory structure, then ran 'ant' to make a new .jar file.
now when i switch in the new .jar file, i get errors whenever i try to
java junit.textui.TestRunner organization.oldTest
i get 'no class oldTest' found
can anyone point me in the right direction?My Ant build.xml doesn't look like yours. I usually do it like this, and it works fine:
<target name="test" depends="compile" description="run all unit tests">
<junit>
<jvmarg value="-Xms32m" />
<jvmarg value="-Xmx64m" />
<classpath>
<path refid="project.class.path" />
</classpath>
<formatter type="xml" />
<batchtest fork="yes" todir="${reports}">
<fileset dir="${output.classes}">
<include name="**/*TestCase.class" />
</fileset>
<fileset dir="${output.classes}">
<include name="**/*TestSuite.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="report" depends="test" description="create HTML report for JUnit test results">
<junitreport todir="${reports}">
<fileset dir="${reports}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${reports}"/>
</junitreport>
</target>I don't understand why you're running individual tests like that. why not run them all?
% -
Need help with build.xml / junit
i'm trying to add unit tests for another class file in a larger package. the package is built with ant. relevant lines of the build.xml that pertain to unit tests are
</target>
<target name="test" depends="dist, build-tests">
<!-- the grouper project doesn't use the junit ant task that's fine with me -->
<java fork="yes"
classname="junit.textui.TestRunner"
taskname="junit"
failonerror="true">
<arg value="nsit.testSuite"/>
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path="../nsit.jar"/>
<pathelement path="${buildir}" />
</classpath>
</java>
</target>
<target name="test-individual" depends="dist, build-tests">
<!-- the grouper project doesn't use the junit ant task that's fine with me -->
<java fork="yes"
classname="junit.textui.TestRunner"
taskname="junit"
failonerror="true">
<arg value="nsit.testFoo"/> <!-- ADJUST THIS FOR YOUR OWN TEST -->
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path="../nsit.jar"/>
<pathelement path="${buildir}" />
</classpath>
</java>
<java fork="yes"
classname="junit.textui.TestRunner"
taskname="junit"
failonerror="true">
<arg value="nsit.ServiceTest"/> <!-- ADJUST THIS FOR YOUR OWN TEST -->
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path="../nsit.jar"/>
<pathelement path="${buildir}" />
</classpath>
</java>right now i can
java junit.textui.TestRunner organization.testSuite
or to run a specific test
java junit.textui.TestRunner organization.oldTest
i added the above lines to my build.xml, added the .java file for the anotherTest class to the ${testdir} where oldTest and testSuite and other junit related classes live within the package directory structure, then ran 'ant' to make a new .jar file.
now when i switch in the new .jar file, i get errors whenever i try to
java junit.textui.TestRunner organization.oldTest
i get 'no class oldTest' found
can anyone point me in the right direction?My Ant build.xml doesn't look like yours. I usually do it like this, and it works fine:
<target name="test" depends="compile" description="run all unit tests">
<junit>
<jvmarg value="-Xms32m" />
<jvmarg value="-Xmx64m" />
<classpath>
<path refid="project.class.path" />
</classpath>
<formatter type="xml" />
<batchtest fork="yes" todir="${reports}">
<fileset dir="${output.classes}">
<include name="**/*TestCase.class" />
</fileset>
<fileset dir="${output.classes}">
<include name="**/*TestSuite.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="report" depends="test" description="create HTML report for JUnit test results">
<junitreport todir="${reports}">
<fileset dir="${reports}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${reports}"/>
</junitreport>
</target>I don't understand why you're running individual tests like that. why not run them all?
% -
Building EAR for WebLogic 8.1 with Eclipse plugin
I am developing an EJB app for deployment in WebLogic, JBoss and Sun ONE. I use plugins for JBoss and Sun ONE, with the help of XDoclet, and have no problem creating the required XML and JAR files. However, the WebLogic Workshop creates many files, like oztplsEOImpl.java, oztp1sHomeImpl.java, Hello_oztp1s_EOImplRTD.xml and many others, while the Eclipse plugin only creates the Home and Remote interface .java files, and the prerequisite .xml files (ejb-jar.xml, weblogic-ejb-jar.xml, and weblogic-cmp-rdbms-jar.xml).
Why is that? And how can I build/package the EAR file from within Eclipse, without using WebLogic tools? I am trying to maintain a single codebase, with multiple XDoclet tags to create the appropriate interfaces and XML files. So far, I could achieve this for JBoss and Sun ONE, but it seems to be impossible for WebLogic.
Thanks for any enlightenment.
Alex MolochnikovIt is quite easy to rewrite the plugin to work with 8.1
We have done so - please contact me if you want the plugin.
Sincerely,
Paul Nyheim
"HOs" <[email protected]> wrote in message
news:3f72ce93$[email protected]..
>
Hi,
how can I debug my weblogic 8.1 application ?
I`m using eclipse, but the plugin I´ve got, is only for versions 6.x and7.0 .
So I tried remote debugging but eclipse could not connect to the VM, I donot
know why.
Any ideas ??
Thanks
Holger -
hi all
When I execute build.xml file of simple BPEL project from JDev it runs properly. But when I try to execute it from normal command window It gives me an following error.
...........droping jar file xyz.jar from path as i doesn't exists.
While all jar files are exist there.But Ant drops it from Classpath variable.
So JDev sets some environment before executing such build.xml file.Like {oracle.home} variable u need to set while runnig build.xml from command window.
Any suggestions...???
/mishityou cant run a .war file from command prompt
.war files should be executed in a server
how to execute a single servlet class
do you mean to run the servlet or compile the servlet?
any way you need a server and if you are a beginner Apache tocat will be the best server to start with you can down load it from
http://tomcat.apache.org/ -
Netbeans build.xml file: is it created automatically or do we create?
Hi all,
I am using Net beans IDE 6.0. For projects (with existing code, new application project, etc). Should we create build.xml file or will it be created automatically. Many things like rmi compilation, running different run-time configurations, etc depends on that file. Please do help.
(a build.xml file is created in project folder.)
Thanxdon't cross post:
http://forum.java.sun.com/thread.jspa?messageID=10107245
it's rude.
you create it.
% -
I am using this to create a data set that will be passed as an anolog output therefore it needs to have the correct array dimensions to go into the analog write vi.
I'm updating my request... I've figured out how to do this by copying an example that uses a simple FOR loop (as seen in the attached current version of my VI). My question now becomes this: Is there a way to save the Y values corresponding to those X values into two more arrays? That is, just for argument's sake, let's say I took the first 100 elements from the X array, and found them to be positive. Then I would like to take the first 100 elements of the Y array and put them into a 'Y Values for X > 0' array. ...And likewise with the negative X values, they should have a separate array of corresponding 'Y values for X < 0' array.
I can see that I should somehow save the indices of the positive X values from the large arrray wh
en I sort them out, and use those indices to pick out the elements from the main Y array with the same indices.
I just can't seem to set up the code necessary to do this. ...Can anyone help, please?
Attachments:
Poling_Data_Reader_5i.vi 79 KB
30BLEND.txt 3 KB
Maybe you are looking for
-
My new canon 5D mark111 camera cannot open images in raw in photoshop cs4 extened
I recently purchased a canon 5D mark111 camera and I cannot open the images in camera raw/ photoshop cs4 extended. How do I download a plug in to update this photshop?
-
Deleteing 110 million records..!!!!!!!1
I have got a table which has 120 million records out of which only 10 million records are usefull. Now I want to delete the remaining 110 million records with the where condition. I spoke to my DBA and he said this has it will take around 2 weeks or
-
Why is there no Adobe Shape CC for Android?
Android is the majority of the smart phone market share. Why is there no Adobe Shape CC for Android? Is the app for Android in development?
-
Is eCATT a component integrated within SAP Solution Manger?
Is eCATT (extended Computer Aided Test Tool) a component integrated within SAP Solution Manager? or Netweaver Solution Manager? OR Is eCATT automatically gets installed if we install Solution Manager? Further, does Solution Manager gets installed if
-
Unable to Interpret 0é`Xú_ as a number in CJ20N
Hi experts, I have only one user with this problem, every time she tries to get into the Tcode CJ20N, she receives a DUMP, saying this: CONVT_NO_NUMBER Unable to Interpret 0é`Xú_ as a number. SAP Program is SAPLCNPB_W Anyone know how can i solve this