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 advance

change 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

Similar Messages

  • 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 seconds

    Timo 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

  • [svn] 2514: frameworks: Fixing injection I made ages ago in build. xmls for framework projects

    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.xml

    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.xml

  • 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.
    ?????????

  • 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

  • Problem with compiling build.xml ( ANT tools)  in Eclipse

    I was trying to compile my project thru ANT within eclipse...and it gave me error:
    Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your jdk directory.
         at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:96)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:557)
         at org.apache.tools.ant.Task.perform(Task.java:217)
         at org.apache.tools.ant.Target.execute(Target.java:184)
         at org.apache.tools.ant.Target.performTasks(Target.java:202)
         at org.apache.tools.ant.Project.executeTarget(Project.java:601)
         at org.apache.tools.ant.Project.executeTargets(Project.java:560)
         at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:262)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.eclipse.ant.core.AntRunner.run(AntRunner.java:233)
         at org.eclipse.ui.externaltools.internal.core.AntFileRunner.execute(AntFileRunner.java:59)
         at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.executeRunner(DefaultRunnerContext.java:413)
         at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.run(DefaultRunnerContext.java:464)
         at org.eclipse.ui.externaltools.internal.ui.AntLaunchWizard$1.run(AntLaunchWizard.java:117)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)
    Build exception: E:\MyPrograms\ejb\MEJB\Hello\build.xml:33: Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your jdk directory.
    I already set my JAVA_HOME with jdk1.3.1, but end up with the same error. JRE 1.3.1_07 is installed on my machine and my project contains the installed jre. It appears in both Project properties dialog box and in Installed JRE tab JAVA BUILD PATH of preferences...
    my ANT compilation works fine with command line.
    Please Help !!

    have you did some wrong with the build output path?
    i am dont understand clearful.but i am think so ;
    example :
    the eclipse's default build out path is 'bin',
    so,if you compile by this code:
    <target name="compile">
    <mkdir dir="./class" />
    <javac srcdir="./src" destdir="./class"
    classpath="com.Ostermiller.util.*"
    encoding="${ENCODING}"
    debug="on" optimize="off" deprecation="off" />
    </target>
    * the "ENCODING" 's value is setting in the properties file.
    you will maybe get the 'Cannot use classic compiler' error only.
    you can change the build output path ,or use the default path ;
    I am sorry ,
    I was limited in English and was a bigginer of java ,
    so that i cant to talk Clearly.
    if it cant working fine ,please mail to me :[email protected]
    good luck!
    Kou.huang

  • Configuring web.xml for OpenSSO

    Hello!
    I am developing simple web application and want to use opensso in my web application.I have downloaded opensso,deployed and configured ,so i dont need how to configure web.xml ,what filters and jars i needed,i have the simple web.xml
    <web-app>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>admin</web-resource-name>
                   <url-pattern>/admin/*</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>admin</role-name>
              </auth-constraint>
         </security-constraint>
         <login-config>
              <auth-method>FORM</auth-method>
              <form-login-config>
                   <form-login-page>/login.jsp</form-login-page>
                   <form-error-page>/error.jsp</form-error-page>
              </form-login-config>
         </login-config>
         <security-role>
              <role-name>admin</role-name>
         </security-role>
    </web-app>so what filter should i add in web.xml so that when i access admins page <url-pattern>/admin/*</url-pattern>it should redirect to opensso s login page?

    Yes, I restarted the app server after making changes to web.xml file. No effects.

  • 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 items

    Hi,
    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

  • Looking for Best Practice Configuration Building Block for Material Ledger

    I need to configure and create the Material Ledger for a customer in the near future.  Could someone help me find the Best Practice Configuration Guide for Material Ledger?
    Thanks in advance!

    The official config is in Best Practices for Primary Steel
    there is a delta building block which contains Material Ledger configuration
    http://help.sap.com/bp_bblibrary/500/HTML/T02_EN_ZH.htm

  • Configuring web.xml for Weblogic Server 5.1

    Hi,
    I am working on Weblogic Server (WLS) 5.1 SP 12. I have a web application running on it. At present, it does not have a web.xml file. I want to use Front Controller pattern, and therefore I need to have a web.xml file (to specify the URL Pattern for Front Controller) inside WEB-INF directory on server. I have placed the web.xml file inside WEB-INF directory of application, and have marked the URL pattern. However, the application is not taking into consideration that thing, i.e. mu front controller is not getting into picture, its entry is being ignored. How to make sure that it is not by-passed?
    My application is not in a .war format. WLS 5.1 SP12 is running on Sun Solaris.
    Is there a way to make sure that the intended thing happens?
    Plz help.
    Regards,
    Raj

    Yes, I restarted the app server after making changes to web.xml file. No effects.

  • Ant build script for WebLogic Portal 10.3 projects

    Hi Friends,
    I am going thru this document http://download.oracle.com/docs/cd/E12840_01/wlw/docs103/guide/ideuserguide/build/conUseCustomAntBuild.html#metadata about building ant script for my portal project. The document does not state few things clearly. Can you please help me to understand.
    It says:
    To Build an EAR File Using the Ant Script:
    1. Generate the Ant script for each project in the EAR.
    2. Generate the Ant script for the EAR project.
    3. Configure the execution environment of your shell by executing wl.home/common/bin/commEnv.sh
    4. Change to the Eclipse directory for the EAR project.
    5. Execute the desired target in the EAR project's Ant script as follows:
    ant build archive -Dworkspace=workspacepath
    A) When I generate ant script, workshop generates build.xml file in each project directory and that includes EAR project as well. Then, point 2 is not clear, how do I generate another ant script (build.xml) for the EAR project?
    B) I do not understand, "change to the eclipse directory for the EAR project". Does it mean, change to the directory of EAR project folder which has build.xml?
    C) in step-5, execute the desired target, when I execute it, how it will know where are other build.xml files for other projects?
    Regards,
    JT

    Hi Greg,
    I moved little bit but then got stuck with new kind of error.
    a. First of all, my application has a 'data' project (.usr) file. When I try to generate ant scripts (build.xml), it says that 'data' project is not compatible with Workshop ant scripts. However, Workshop inbuilt EXPORT->EAR is able to build the projects without any error.
    b. So, I thought, let's put a dummy build.xml file under 'data' project directory. This let ant build to proceed further. However, now it fails with error that <web project>/build.xml (line no. 122). Which is nothing but memory declaration (memoryMaximumSize="1024m"). The error says, 'unable to launch apt compiler', I am not able to understand what is it? The other projects' (ejb, controls etc.) build.xml has this declaration but they did not give this error, they built fine.
    <web project>/build.xml
    <target name="build" depends="init" description="compiles the source files; does not package the results">
    <if>
    <isreference refid="apt.factory.path"/>
    <then>
    <mkdir dir="${apt.src.output.dir}"/>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <apt
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    preprocessdir="${apt.src.output.dir}"
    classpathref="java.classpath"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false"
    memoryMaximumSize="1024m"/>
    </then>
    </if>
    </for-each-java-src-path>
    </then>
    </if>
    Regards,
    JT
    Edited by: user6917422 on Apr 1, 2009 9:29 PM
    Edited by: user6917422 on Apr 1, 2009 9:57 PM

  • Struts in eclipse

    Can I use struts in eclipse without using a plugin for struts? If so, please guide me.
    Thanks
    Shravan

    yes u can use
    Use the lomboz plugin for J2ee in eclipse
    Create and edit the struts-config.xml and Web.xml
    For Struts-config.xml u may download the struts-console plugin. It generates the Xml file.
    Add the appropriate tags to web.xml
    Add the action servlet to web.xml
    bye
    Can I use struts in eclipse without using a plugin for
    struts? If so, please guide me.
    Thanks
    Shravan

  • Error in my build.xml file (help with spotting syntax error requested)

    Hi
    I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
    It says:
    Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
    The XML file itself:
    <project basedir="." default="deploy" name="concepts">
    <property name="src.dir" value="src"></property>
    <property name="build.dir" value="${basedir}/build"></property>
    <property name="build.lib" value="${build.dir}/lib"></property>
    <property name="dist.dir" value="dist"></property>
    <property name="classes.dir" value="${build.dir}/classes"></property>
    <property name="build.etc" value="${src.dir}/etc"></property>
    <property name="build.resources" value="${src.dir}/resources"></property>
    <property name="lib.dir" value="lib"></property>
    <property name="web-inf.dir" value="WEB-INF"></property>
    <property name="war.name" value="concepts"></property>
    <property file="../common.properties"></property>
    <target name="init">
    <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
    </target>
    <target name="deploy" depends="clover-yes, clover-no">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
    <include name="org/apache/commons/fileupload/**/*.java" />
    <include name="com/portalbook/portlets/**/*.java" />
    <include name="com/portalbook/portlets/content/**/*.java" />
    </javac>
    <target depends="init" name="compile">
    <javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
    <src>
    <pathelement location="${src.dir}"></pathelement>
    </src>
    <classpath>
    <fileset dir="${lib.dir}">
    <include name="*.jar">
    </include>
    </fileset>
    </classpath>
    </javac>
    </target>
    <target depends="compile" name="war">
    <war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
    <classes dir="${classes.dir}"></classes>
    <lib dir="${lib.dir}"></lib>
    <webinf dir="${web-inf.dir}"></webinf>
    </war>
    </target>
    <!-- create the portal-concepts-lib.jar -->
    <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
    </jar>
    <jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
    <fileset dir="${build.resources}/concepts-war"></fileset>
    </jar>
    <!-- concepts.ear -->
    <copy todir="${build.resources}/concepts-ear">
    <fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
    </copy>
    <jar jarfile="${build.lib}/concepts.ear">
    <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
    </fileset>
    </jar>
    <target depends="deploy" name="explode">
    <taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
    <explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
    </target>
    <target depends="war" name="all"></target>
    <target name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
    </target>
    </project>
    I am a little inexperienced in XML files. So I am unable to spot the error.
    I would greatly appreciate it, if some kind soul were to help me out.
    thanks a lot

    The tag
    <target name="deploy" depends="clover-yes, clover-no">...is never closed.
    close that tag:
    <target name="deploy" depends="clover-yes, clover-no">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
              <include name="org/apache/commons/fileupload/**/*.java" />
              <include name="com/portalbook/portlets/**/*.java" />
              <include name="com/portalbook/portlets/content/**/*.java" />
         </javac>
    </target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.

  • How to use Weblogic Server 6.1 build.xml with ant

    Hi Java's
    I have downloaded the latest version of BEA Weblogic server 6.1,they have changed the build.cmd to build.xml for compiling and building the ejb applications.they are telling that we have use $ant to run the build.xml but i couldn't able to do that.i'm getting "command not found error"..i'm using winnt.please help me how to use $ ant.Is it a seperate exe or batch file that i have to download ?if so where to download it.how to use it.please help.
    Regards
    Balaji

    To use it after installation, set your path to your
    <ant_installation_dir>\bin, then navigate to the diectory containing the build.xml. then follow the instructions in the weblogic documentation for running ant.

Maybe you are looking for