Help requested in spotting error in build.xml

Hi
I am unable to get my ant build.xml to run.
the build.xml file is as follows:
<property name="war.name" value="concepts"></property>
  <property file="../common.properties"></property> 
<!-- Main Target -->
<target name="init">
   <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
  </target>
  <target name="compile" depends="clover-yes,clover-no"/>
     <javac classpath="${libs}" compiler="${compiler}" debug="on" deprecation="on" destdir="${classes.dir}" optimize="on" srcdir="${src.dir}">
     <src>
        <pathelement location="${src.dir}"></pathelement>
      </src>
      <classpath>
        <fileset dir="${lib.dir}">
          <include name="**/*.jar">
          </include>
        </fileset>
        </classpath>
  <include name="${src.dir}/org/apache/commons/fileupload/**/*.java"></include>
  <include name="${src.dir}/com/portalbook/portlets/**/*.java"></include>
  <include name="${src.dir}/com/portalbook/portlets/content/**/*.java"></include>
  </javac>
  </target>
<!--
  <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="buildwar">
    <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 concepts-lib.jar  -->
  <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
   </jar>
   <!-- create concepts.war -->
   <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>
   <copy todir="${build.resources}/concepts-ear/META-INF">
   <fileset dir="${build.resources}/etc" includes="application.xml">
   </fileset>
   </copy>
   <jar jarfile="${build.lib}/concepts.ear">
   <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
   </fileset>
   </jar>
    <target depends="buildwar" 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 name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
  </target>
</project>----------
On this xml file the editor says" end tag without start-tage"..
I am trying all the suggestions which the kind folks here have given me before. But I am still stuck.
TIA

Hi Dr.Clap
I tried incorporating your suggestions. I am learning.
I tried to make the script more readable. I tried putting in /> instead of "fileset/>
But it did not work. The editor complains.
I have the reworked XML file with me. Now the editor does not complain at all, but I can't get my classes to compile at all.
<project basedir="." default="deploy" name="PortalMar28">
  <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> 
  <property name="libs.ant" value="${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar;${lib.dir}/portal-core-lib.jar"></property>
   <property name="libs" value="${libs.api};${libs.ant}"></property>
<available classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter" property="clover.available"></available>
<!-- Main Target -->
  <target depends="prepare" if="clover.available" name="clover-yes">
      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"></property>
   </target>
   <target depends="prepare" name="clover-no" unless="clover.available">
      <property name="compiler" value="modern"></property>
   </target>
     <target name="prepare">
      <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
  </target>
     <target depends="clover-yes, clover-no" name="deploy">
     <javac classpath="${libs}" compiler="${compiler}" debug="on" deprecation="on" destdir="${classes.dir}" optimize="on" srcdir="${src.dir}">
     <src>
        <pathelement location="${src.dir}"></pathelement>
      </src>
      <classpath>
        <fileset dir="${lib.dir}">
          <include name="**/*.jar">
          </include>
        </fileset>
        </classpath>
  <include name="${src.dir}/org/apache/commons/fileupload/**/*.java"></include>
  <include name="${src.dir}/com/portalbook/portlets/**/*.java"></include>
  <include name="${src.dir}/com/portalbook/portlets/content/**/*.java"></include>
  </javac>
    <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>
  <!-- create concepts-lib.jar  -->
  <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
   </jar>
   <!-- create concepts.war -->
   <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>
   <copy todir="${build.resources}/concepts-ear/META-INF">
   <fileset dir="${build.resources}/etc" includes="application.xml">
   </fileset>
   </copy>
   <jar jarfile="${build.lib}/concepts.ear">
   <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
   </fileset>
   </jar>
</target>
    <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 name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
  </target>
</project>-------------------------------------
thanks a lot. It is greatly appreciated.

Similar Messages

  • Sample-simple.2.2.1 error in build.xml

    Hi all,
    First, I ask for excuses for my english, is that I am Spanish
    I have a error in build.xml when I try to ejecute "gen-all". The error is in "gen-component", "gen-beaninfo" and "gen-taglib". The exit prints:
    Command Line Options:
    -c {classname} CategoryDescriptors constants class
    -C {packagename} Package containing ConstantMethodBinding
    -d {directory} Destination directory for generators
    -e {classname} Add FQCN of class to exclude for generation
    -f {config URL} Parse configuration URL (repeatable)
    -h Display help information
    -i {classname} Add FQCN of class to include for generation
    -L {classname} Add FQCN to list of servlet listeners
    -m {markup} Default markup section [FORM]
    -nobundles Encode description and display strings into gen code, not in resource bundles
    -o {jarURL} Omit generation for classes in (design time) JAR
    -O Override component and property descriptions from renderer and attributes
    -p {prefix} Default taglib prefix
    -r {id} Default render kit identifier
    -t {filename} Filename to contain TLD
    -T {packagename} Package for generated tag classes
    -u {uri} Default taglib URI
    -v Generated output should be verbose
    -V {classname} Add FQCN to list of JSP validators
    -x Exclude all classes parsed so far
    -w Warn on missing config URLs, instead of error
    --baseBI {class} Base class for java.beans.BeanInfo classes
    --implBD {class} Implementation class for BeanDescriptors
    --implPD {class} Implementation class for PropertyDescriptors
    --cpBeanInfo     Generate component BeanInfo classes
    --cpBeanInfoBase Generate component BeanInfoBase classes
    --cpClass        Generate component classes
    --cpClassBase    Generate component base classes
    --tlClass         Generate tag library classes
    --tlClassBase     Generate tag library base classes
    --tlDescriptor    Generate tag library descriptor
    --dump           Dump contents of root configuration bean
    --help           Display help information
    Exception in thread "main" java.lang.IllegalArgumentException: and
    at com.sun.rave.jsfmeta.generators.Main.run(Main.java:521)
    at com.sun.rave.jsfmeta.generators.Main.main(Main.java:279)
    Java Result: 1
    What am I doing bad? Please help me!
    Thanks

    Hi ,
    I have an error like this below:
    [java] Exception in thread "main" java.lang.IllegalArgumentException: and
    [java] at com.sun.rave.jsfmeta.generators.Main.run(Main.java:521)
    [java] at com.sun.rave.jsfmeta.generators.Main.main(Main.java:279)
    BUILD FAILED
    if someone know solution plz post it here
    Thanks

  • Error in build.xml!!!

    hi all,
    i'm working with netbeans 6 rc.
    i'm trying to build my first mobile application.
    i want to create an animation picture.
    when i tried to run it i get an error in build.xml file!!!
    the only thing i want is to suggest me a book in pdf format
    to create 2d games.
    the basics things with same code examples.

    I have some issues when building JME application in 6.0 too, try to use the latest version instead of RC and rebuild your applicaiton, if you still have the problem go back to version 5.5 or 5.5.1.
    For gaming read on the net about Game API, download few examples, understand them and you are ready to go. Do not use Netbeans 6.0 for building the games if you don't understand fully what are you doing.
    Thanks
    Kris

  • Error while building xml document

    Hi Everyone,
    I have a problem while building xml document.
    I have developed my java files using IBM Eclipse 3.0 and i had no problem while executing the files.
    But while i am trying to execute the same code in jdk/bin, xml document is not working..
    No error encountered while compiling but while executing when i try to print the xml string it just gives the root element name like [root : null]
    Can anyone suggest some solution?

    To the values element add xmlns:xsi and xsi:noNamespaceSchemaLocation.
    <values xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:noNamespaceSchemaLocation="file:///c:/schema.xsd">schema.xsd is schema file.

  • Can any body help me how to make the build.xml

    Can any one tell me how to make the build.xml and want to deploy in the iplanet server. I am very new for that. I dont have any idea of build.xml. If any one have code in build.xml please tell me [email protected] Please if any one is having sample exaple please forward it to me. I am waiting for the quick reply. Please its very urgent mail me.

    htpp://ant.apache.org
    http://ant.apache.org/manual/using.html#example
    Good Luck
    Lee

  • Help requested for Essbase error

    Hi,
    I logged in Essbase by using my Login ID and password successfully but as soon as I clicked on application server I got error which is given below at same time my other friends are both able to connect and work with applications.
    Error is :- Error: 1051293: Login fails due to invalid login credentials
    Please guide me that how can i solve this error....
    Thanks in Advance...
    Regards,

    Welcome MChopade.
    It is not your (CMOS) battery I think it is your main battery.
    Remove your main battery and see if the error returns.
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01443470
    REO
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

  • Error while building javaeetutorial5

    When I try to build "bookstore" from javaeetutorial5 I get this error:
    Buildfile: build.xml
    -pre-init:
    init:
    default-ear:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling bookstore
    [javac] Compiling 11 source files to /opt/javaeetutorial5/examples/web/bookstore/build/classes
    BUILD FAILED
    /opt/javaeetutorial5/examples/bp-project/command-line-ant-tasks.xml:89: /opt/javaeetutorial5/examples/web/bookstore/c:/Sun/AppServer not found.
    Total time: 1 second
    The solution is to edit the file /javaeetutorial5/examples/bp-project/build.properties.sample
    --david                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi David,
    Yes, the problem came from the ../bp-project/build.properties & ../bp-project/app-server.properties files. As indicated from your error messages "/opt/javaeetutorial5/examples/web/bookstore/c:/Sun/AppServer not found." It seems you are using AppServer on a solaris machine while those configuration files are default for window enviroment "c:/Sun/AppServer not found."
    Here is what you should to do:
    -Copy build.properties.sample to build.properties
    -Edit the variables below for the correct path:
    javaee.home=<The installation directory of your AppServer>
    javaee.server.name=<machine name> (localhost)
    javaee.server.port=<The port number for the server instance> (8080)
    javaee.server.username=<The administrator username>
    javaee.server.passwordfile=</path/to/passwordfile>
    Note:
    Inside passwordfile add: AS_ADMIN_PASSWORD=<The administrator password>
    javaee.adminserver.port=<The port number for admin server> (4848)
    -Do the same thing for app-server.properties file (optional)
    You can find the information above from the link below
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    Section: About The Examples
    -davis

  • Replaceregexp tag in build.xml to pass the value dynamically

    Hi,
    First of all I apologizes as this is not a java question, but sure you guys can help me out. In my build.xml, i have some thing like this:-
    <target name="all"
    depends="compile,clean_classes,replaceTemplates"/>
    <target name="compile"
    depends=" create.dir,compileclasses,jar,run"/>
         <target name="clean">
         <delete dir="${build.dir}"/>
         </target>
    <target name="clean_classes">
    <delete dir="${classes.dir}"/>
    </target>
    <target name="create.dir" depends="clean_classes">
    <mkdir dir="${classes.dir}"/>
    </target>
         <target name="replaceTemplates" depends="clean_classes">
              <replaceregexp file="${sourcefiles}/com/test/BusinessService.java"
                                  match="%%VALUE%%"
    replace="1"/> // this will be fetched dynamically from .properties
    </target>
    In my BusinessService.java,
    I have a String strValue = "%%VALUE%%";
    When i ran the build.xml, the strValue is not replaced with the value "1" as been specified in the build.xml. It seems that everything is fine the class file name path, etc. But some how it is not displaying the value "1" inplace of the placeholder? Please clarify.
    One more question on this:-
    If the value "1" is displayed for strValue variable, and if i have updated the value in the build.xml replace="2" for <replaceregexp>, in such case the updated value "2" wont be populated. Hence what is the approach we need follow, whether we need to create another folder and copy the "src" code there and make the changes in it like instead of:-
    <target name="replaceTemplates" depends="clean_classes">
              <replaceregexp file="${sourcefiles}/com/test/BusinessService.java"
                                  match="%%VALUE%%"
    replace="1"/> // this will be fetched dynamically from .properties
    </target>
    the new one will be like:-
    <target name="replaceTemplates" depends="clean_classes">
              <replaceregexp file="*${build}/*src/com/test/BusinessService.java"
                                  match="%%VALUE%%"
    replace="1"/> // this will be fetched dynamically from .properties
    </target>
    Please clarify.
    Thanks

    Don't be so impatient and don't multipost! I've deleted your other thread about the same topic.

  • Error while importing .xml files in informatica

    Dear Rajendra, Please use this.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <my:MainFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-10-14T12:46:24 myschema.xsd " xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-10-14T12:46:24"> i used same like this my side its working. Please let me know. Thanks & RegardsKasireddy+966545281845

    Hi All, Please help out getting below error while reading .xml file in informaitca 9.5.0 error:: FATAL: Error at (file D:/userdata/local/Desktop/documents/2015_07_22_NE_5003.xml, line 2, char 52 ): An exception occurred! Type:RuntimeException, Message:Could not open DTD file 'D:/userdata/ongole/Desktop/documents/InventoryInfo.xml'.  Let me know. how to overcome this issue. Regards,Rajendra

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

  • Help with Flex Ant build.xml error

    So I've started on a new project and I'm new to Flex. A lot of learning curve here. Anyway, I'm trying to deploy a project that uses flex and is built with Ant. We've moving up from a version of Flex 2 to Flex 3. The build file works fine in the Flex 2 app but for some reason does not seem to be working with Flex 3. I'm hoping someone can give me some insight on what might be wrong or where to start.
    The error is Command not found: compc
    The part of the build file it has a problem with is:
    <compc include-classes="${classes}"
         ouput="${flex.dist.dir}/${flex.app.name}.swc"
         keep-generated-actionscript="false"
         headless-server="${headless.server}"
         incremental="true">
    <load_config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
    <source-path path-element="${FLEX_HOME}/frameworks" />
    <source-path path-element="${flex.app.root}" />
    <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
         <include name="libs" />
         <include name="../bundles/{local}" />
    </compiler.library-path>
    <compiler.library-path dir="${flex.app.root}" appent="true">
         <include name="libs" />
    </compiler.library-path>
    </compc>
    Any help at all would be greatly appreciated, thank you.

    Sorry, I meant to address that. Yes, since we've moved up to the Flex 3 sdk, we are pointing at a new directory. The old directory was flex_sdk and the new directory is flex_sdk_340.
    FLEX_HOME is being set in the build.properties file for local building and then overidden in the build.xml file with this code:
    <target name="build">
         <available property="FLEX_HOME" value="/apps/flex_sdk_340" file="/apps/flex_sdk_340" />
         <echo>FLEX_HOME = ${FLEX_HOME}</echo>
         <antcall target="compile" />
    </target>
    I did notice a warning about not using the available property, so I removed it and just changed what FLEX_HOME was set to in the build.properties file to the server directory. Would mess up local building but regardless it didn't matter because it had no effect on the error being generated. I alos looked a little into the file property of the available tag trying to figure out if that was somehow an issue but I wasn't able to come to any conclusion.
    Before the program errors out, it does displayt he echo statement and the value of FLEX_HOME appears to be correct in that it does show /apps/flex_sdk_340.
    Thank you so much for your continued help. This is truly frustrating because nothing but a directory name has really changed and yet it stopped working. I can't find any information anywhere on what could be wrong and this is really my last resort.

  • HELP!!! Error 3194 "This device isn't eligible for the requested build"

    HELP!!! Error 3194 "This device isn't eligible for the requested build"
    my iPhone 4 cannot restore on my mac...
    my iphone dead and no SHSH
    i updated my itunes and my mac osx to the latest version...
    i had on my firewall..
    i changed the file host...
    i buyed a new USB Cable...
    i restored on another computer and other internet connection...
    but the Error 3194 "This device isn't eligible for the requested build" still there and my phone still dead...
    HELP me please...

    Try a DFU restore.  Plug in your phone.  Hold the Sleep/wake button and the home button for 10 seconds.   Release the sleep/wake button and continue to hold the home button until Itunes detects a phone in recovery mode.  Now restore.

  • Create a cache for external map source - Error in parsing xml request.

    When doing the following:
    Create a cache for external map source
    I get "error in parsing xml request" when setting the following
    Map service Url:
    http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.3.0&service=WMS&request=GetCapabilities
    It looks like it is breaking on "&". Any suggestions?
    Rob

    Hi Chris,
    thanks for your reply!
    I've tried to add the following into persistence.xml (although I've read that eclipseLink uses L2 cache by default..):
    <shared-cache-mode>ALL</shared-cache-mode>
    Then I replaced the Cache bean with a stateless bean which has methods like
    Genre findGenreCreateIfAbsent(String genreName){
    Genre genre = genreDAO.findByName(genreName);
    if (genre!=null){
    return genre;
    genre = //Build new genre object
    genreDAO.persist(genre);
    return genre;
    As far as I undestood, the shared cache should automatically store the genre and avoid querying the DB multiple times for the same genre, but unfortunately this is not the case: if I use a FINE logging level, I see really a lot of SELECT queries, which I didn't see with my "home made" Cache...
    I am really confused.. :(
    Thanks again for helping + bye

  • Help with flex4unit ant build.xml: Socket timeout waiting for flexunit report

    I'm having trouble setting up ant to build and test my project locally and I'm not sure what the next step is.
    Info:
    Running on XP/Cygwin.
    All of the files that FlexUnit4 references when used in Flash Builder are in my '${basename}/libs' folder (eg FlexUnit4_1.0.swc).
    I've placed the flexunit4 task in my ant/libs folder.
    I'm getting two errors...
    I don't think I've set up the 'socket' stuff right for the tests. It just sits and waits then dies...
    [flexunit] Waiting for client connection ...
    (about a minute later)
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    BUILD FAILED
    java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
    Plus this is the error I get from the flash player:
    ReferenceError: Error #1065: Variable mx.skins.spark::BorderSkin is not defined.
    I don't know why it's complaining about Borderskin as I think I have included all the flex4 libs I could find. I suspect this second error is causing the first error?
    Any help appreciated. I think I'm just setting it up all wrong.
    Screencap of errors:
    http://twitpic.com/l7ay8
    build.xml:
    http://gist.github.com/20804

    Finally got everything working using the files from the CI Example which what i probably should have done in the first place.
    So a rough guide for anyone just starting out with this:
    Download the Flex 4 'workspace' from the digital primates hudson server . This appears to contain flexunit library and examples in various stages of development.
    I used Flex Builder 4 Beta 2 to set up my Test Suite and Test Cases.
    I then loaded the libs folder from:
    workspace.zip\workspace\project\FlexUnit4SampleCIProject
    into my flex project's libs folder:
    this includes:
    FlexUnit4.swc
    FlexUnit4CIListener.swc
    flexUnit4UIRunner.swc
    flexTasks.jar
    flexUnitTasks.jar
    I didn't need to remove the FlexUnit4 stuff that is 'referenced' automatically by flash builder when you start adding flexunit4 tests/suites.
    Then I used a modified version of the TestRunner.mxml found in:
    workspace.zip\workspace\project\FlexUnit4SampleCIProject\src\test\flex
    The lines to pay attention to are the ones that look like:
    static public function currentRunTestSuite():Array {
        var testsToRun:Array = new Array();
        testsToRun.push(packagename.TestSuiteName);
        testsToRun.push(packagename.TestClassName);
        return testsToRun;
    Just make sure you update this list to include all of the test suites &/or individual tests you want to run.
    I made this a static function and modified the code in the "FlexUnitApplication.mxml" file to use this function so i'd only need to update one list of suites/tests.
    FlexUnitApplication.mxml is generated automatically when you run FlexUnit4 tests in the Flash Builder 4 Beta 2 IDE.
    This is the build.xml file I'm using in the project:
    http://gist.github.com/208211
    Change the name of the project from "Flare" to whatever and adjust the other path settings where required (though you might want to write this from scratch at least once so you understand roughly what is going on).
    The Debug Flash Player must be installed on the server otherwise you'll get a:
    java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
    ...while it waits for the non-existant debugger to attach. (This is obvious but I did forget and was a bit bewildered for a moment)
    Need to also ensure the environment variable:FLEX_HOME is set to the location you installed the flex sdk...by editing your .bashrc setting the environment variable the in the Hudson Configuration.
    You'll need to point Hudson at your ant installation and your jdk installation. If you downloaded he sdk, be aware you might need to point it to the jdk folder inside the place you installed the sdk.
    And I think that's all the problems I had. Hope it's useful to someone... if anyone who actually knows what they are doing can point out any potential issues/better ways of doing things, feel free to comment.
    Thanks to Brian (legrosb) and Mike (mlabriola) for their assistance!

  • Help -- Who has experience with ant and build.xml files ?

    Hi,
    I think my build.xml file is missing setting a classpath I need, but I have never played around with a build.xml file. Could someone help ?
    Thank you.
    Grazia

    A lot of people here use ant. But not all of us can read your mind, and those of us that can are sadistic bastards that like to force people to provide details of their problems just for the hell of it.
    So please do the following:
    * Go through an ant tutorial or other introductory docs, doing an example or two if present.
    * Set up your build.xml according to what you've learned.
    * If it still doesn't work, post the relevant portions of it (hopefully you'll have a small, representative sample that reproduces the problem), along with your relevant directory and file structure, the command you're running, and what error messages you're getting.

Maybe you are looking for

  • BI Report in Web UI - Cross Navigational Link

    HI Gurus, I made the neccessary customizing settings in CRMC_UI_NBLINKS to display my BI reports in the CRM Web-UI. Now I want to use the 'Cross Navigational links for InfoObjects' to be able to navigate from a BI report to a CRM UI component. I am u

  • Need help installing pic gallery

    I need help on installing something please. I downloaded this flash things from this link http://www.flasheezy.com/flash_file/4-XML-gallery-3 but I have to make a few changes to the background. How do I save it so that i can export it to dreamweaver?

  • Adding field in Old Jsp based self registration application

    Hi, I have a requirement of addition of some fields and link in Self registartion on the login page. As we could not add any link in the self registartion field so i have deactivated the Web dynpro application.Now the Login page displays the old jsp

  • XI Security Guide

    Anyone know where I can find the XI security guide?

  • XML objects to XMLList

    I'm sure the answer to this is really obvious, but I can't find a solution. I need to create a single XMLList from multiple XML objects, how do I do this? There don't seem to be any obvious functions in XMLList that would allow me to add a new xml ob