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

Similar Messages

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

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

  • Getting an error while building a sample web service

    Hi,
    I am beginner in web services and started working on a sample application in a web service tutorial.
    Build is failing in build.xml file while building sample web service using ant tool.
    antBuildfile: build.xml
    clean:
    setup:
    [mkdir] Created dir: /tmp/output/WEB-INF/classes
    [mkdir] Created dir: /tmp/client_classes
    compile.server:
    [javac] Compiling 1 source file to /tmp/output/WEB-INF/classes
    webservice.build:
    webss.build:
    BUILD FAILED
    Z:/JAVA-COBOL/sample1/tutorial/sample1/build.xml:43: The following error occurred while executing this line:
    Z:/JAVA-COBOL/sample1/tutorial/sample1/build-webss.xml:10: Problem: failed to create task or type source2wsdd*_
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    Can anyone look into this and let me know if you have any idea on this?
    Thanks,
    SRoop.
    Edited by: SRoop on Jun 20, 2008 9:11 AM
    Edited by: SRoop on Jun 20, 2008 9:14 AM
    Edited by: SRoop on Jun 21, 2008 5:51 AM

    Hi,
    I am beginner in web services and started working on a sample application in a web service tutorial.
    Build is failing in build.xml file while building sample web service using ant tool.
    antBuildfile: build.xml
    clean:
    setup:
    [mkdir] Created dir: /tmp/output/WEB-INF/classes
    [mkdir] Created dir: /tmp/client_classes
    compile.server:
    [javac] Compiling 1 source file to /tmp/output/WEB-INF/classes
    webservice.build:
    webss.build:
    BUILD FAILED
    Z:/JAVA-COBOL/sample1/tutorial/sample1/build.xml:43: The following error occurred while executing this line:
    Z:/JAVA-COBOL/sample1/tutorial/sample1/build-webss.xml:10: Problem: failed to create task or type source2wsdd*_
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    Can anyone look into this and let me know if you have any idea on this?
    Thanks,
    SRoop.
    Edited by: SRoop on Jun 20, 2008 9:11 AM
    Edited by: SRoop on Jun 20, 2008 9:14 AM
    Edited by: SRoop on Jun 21, 2008 5:51 AM

  • 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

  • Errror while Running the ant file(build.xml) when applying B2B-BPEL patch

    Hello all,
    I am trying to apply the B2B WSIL Browser patch and while running the ant file i got the following warning while backing out d3l.jar file
    echo Backing out dl3l.jar to avoid conflicts with B2B...
    move *Warning: Could not find file C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib\d3l.jar to copy.*
    and the following error when it was not able to find admin_client.jar file
    *java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    *java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
    and the BUILD FAILED
    *so i created the necessary folders in the newly generated folder manually in ${env.ORACLE_HOME} i.e xqs\lib & j2ee\home and pasted the d3l.jar and admin_client.jar in these folders respectively,and again ran the ant file,this time the error is first problem is cleared i.e it is not showing the warning that it could not find* d3l.jar_+ file and it is also converting this file as d3l.jar.hide_+ *, but this time in the place of second error a new error is generated i.e* +
    Problem_
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL&gt;ant
    Buildfile: build.xml
    apply-b2b-bpel-10.1.3:
    echo Prompting for B2B repository connection parameters...
    input Please enter B2B repository hostname [http://127.0.0.1:] [http://127.0.0.1]
    172.17.4.14
    input Please enter B2B repository port 1521: 1521
    1521
    input Please enter B2B repository sid ORCL: ORCL
    orcl
    input Please enter B2B password b2b: b2b
    b2b
    input Please enter oc4j instance name home: home
    home
    input Please enter oc4j admin password welcome1: welcome1
    welcome1
    input Please enter opmn request port 6003: 6003
    6003
    echo Copying b2b.jar and tip.properties to appropriate locations...
    copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\lib
    copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.OB_HOME}\system\classes
    echo Backing out dl3l.jar to avoid conflicts with B2B...
    move Moving 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib
    echo Deploying B2B WSIL Browser ...
    echo OPMN Port is : 6003
    echo Container is : home
    echo Host is : ${env.HOSTNAME}
    echo iasadminpassword is : welcome1
    java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
    java Exception in thread "main"
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
    java Exception in thread "main"
    BUILD FAILED
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:88: The following error occurred while executing this line:
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:49: Java returned: 1
    Total time: 31 seconds
    C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL&gt;
    i have set the classpath for the jdk and jre files correctly and also checked it with a sample program and the file is compiling and running with correct output.then why is it showing up java.lang.NoClassDefFoundError exception.Did anyone face the same problem or have a solution for this problem if they have then plzzz help me
    thnx
    Sunny
    Edited by: sunny kay on Jan 27, 2009 4:14 AM

    Hello sri,
    Thanks for your response as you have told i have set the ORACLE_HOME = C:\product\10.1.3.1\OracleAS_1
    and added C:\product\10.1.3.1\OracleAS_1\bin to my sys path
    and i have also set the JAVA_HOME=C:\product\10.1.3.1\OracleAS_1\jdk
    and added C:\product\10.1.3.1\OracleAS_1\jdk\bin to my sys path
    and ran the patch,now its coming up with a different problem after entering the B2B repository connection parameters...
    and it is
    Problem_
    echo Deploying B2B WSIL Browser ...
    echo OPMN Port is : 6003
    echo Container is : home
    echo Host is : ${env.HOSTNAME}
    echo iasadminpassword is : welcome1
    java
    java
    java Failed at "Could not get DeploymentManager".
    java
    java This is typically the result of an invalid deployer URI format being
    supplied, the target server not being in a started state or incorrect authentic
    ation details being supplied.
    java
    java More information is available by enabling logging -- please see the
    Oracle Containers for J2EE Configuration and Administration Guide for details.
    java
    java
    java Java Result: 1
    echo Binding B2B WSIL Browser...
    java
    java
    java Failed at "Could not get DeploymentManager".
    java
    java This is typically the result of an invalid deployer URI format being
    supplied, the target server not being in a started state or incorrect authentic
    ation details being supplied.
    java
    java More information is available by enabling logging -- please see the
    Oracle Containers for J2EE Configuration and Administration Guide for details.
    java
    java
    BUILD FAILED
    The Application Server is in the started state and these are the details that i have entered when B2B Repository Connection Parameters is prompeted
    echo Prompting for B2B repository connection parameters...
    input Please enter B2B repository hostname [http://127.0.0.1]: [http://127.0.0.1]
    172.17.4.14
    input Please enter B2B repository port [1521|http://forums.oracle.com/forums/]: [1521|http://forums.oracle.com/forums/]
    1521
    input Please enter B2B repository sid ORCL: ORCL
    orcl
    input Please enter B2B password [b2b|http://forums.oracle.com/forums/]: [b2b|http://forums.oracle.com/forums/]
    b2b
    input Please enter oc4j instance name home: home
    home
    input Please enter oc4j admin password [welcome1|http://forums.oracle.com/forums/]: [welcome1|http://forums.oracle.com/forums/]
    welcome1
    input Please enter opmn request port [6003|http://forums.oracle.com/forums/]: [6003|http://forums.oracle.com/forums/]
    6003
    is anything wrong in this i have tried by giving the default host name instead of mine but result is still the same.what is the problem can you figure it out and provide me a solution.
    thnx
    Sunny

  • Jwsdp-1.4/xws-security/samples/simple/build.xml:108: wsdeploy failed

    Hi everyone,
    I am trying to deploy the simple sample for xws-security in the JWSDP 1.4 on redhat 9.0, I have done all the configurations as suggested by the tutorial and the readme file in the sample. But when I tried to run the sample by running "asant run-sample", I got a "wsdeploy failed" error. It looks like the following and happened at the "process-war" stage: (The earlier targets including "clean", "prepare", "gen-server", "compile-server", " set-web-inf", "raw-war" etc. work fine).
    [snip]
    process-war:
    [echo] Running wsdeploy...
    [wsdeploy] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.<init>(Lorg/apache/xml/dtm/DTMManager;Ljavax/xml/transform/Source;ILorg/apache/xml/dtm/DTMWSFilter;Lorg/apache/xml/utils/XMLStringFactory;ZIZZ)V
    [wsdeploy] at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2.<init>(SAX2DTM2.java:1901)
    [wsdeploy] at org.apache.xalan.xsltc.dom.SAXImpl.<init>(SAXImpl.java:767)
    [wsdeploy] at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:324)
    [wsdeploy] at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:267)
    [wsdeploy] at org.apache.xalan.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:477)
    [wsdeploy] at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:637)
    [wsdeploy] at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317)
    [wsdeploy] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.defineServletsAndListeners(DeployTool.java:553)
    [wsdeploy] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:255)
    [wsdeploy] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
    [wsdeploy] at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:22)
    [wsdeploy] Command invoked: /work/nzw3/SUNWappserver/jdk/jre/bin/java -classpath /work/nzw3/SUNWappserver/lib/endorsed/dom.jar:/work/nzw3/SUNWappserver/lib/endorsed/xercesImpl.jar:/work/nzw3/SUNWappserver/lib/endorsed/xalan.jar:/work/nzw3/SUNWappserver/lib/ant/lib/xercesImpl.jar:/work/nzw3/SUNWappserver/lib/ant/lib/ant.jar:/work/nzw3/SUNWappserver/lib/ant/lib/xml-apis.jar:/work/nzw3/SUNWappserver/lib/ant/lib/optional.jar:/work/nzw3/SUNWappserver/lib/soapprocessor.jar:/work/nzw3/SUNWappserver/lib/jaxr-api.jar:/work/nzw3/SUNWappserver/lib/saaj-api.jar:/work/nzw3/SUNWappserver/lib/activation.jar:/work/nzw3/SUNWappserver/lib/security-plugin.jar:/work/nzw3/SUNWappserver/lib/jaxb-xjc.jar:/work/nzw3/SUNWappserver/lib/jax-qname.jar:/work/nzw3/SUNWappserver/lib/jhall.jar:/work/nzw3/SUNWappserver/lib/xmlsec.jar:/work/nzw3/SUNWappserver/lib/j2ee-svc.jar:/work/nzw3/SUNWappserver/lib/deployment/sun-as-jsr88-dm.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-sec.jar:/work/nzw3/SUNWappserver/lib/mail.jar:/work/nzw3/SUNWappserver/lib/appserv-admin.jar:/work/nzw3/SUNWappserver/lib/jaxb-impl.jar:/work/nzw3/SUNWappserver/lib/appserv-cmp.jar:/work/nzw3/SUNWappserver/lib/appserv-jstl.jar:/work/nzw3/SUNWappserver/lib/jaxb-libs.jar:/work/nzw3/SUNWappserver/lib/jwsdp-tools-lib/jax-qname.jar:/work/nzw3/SUNWappserver/lib/jwsdp-tools-lib/namespace.jar:/work/nzw3/SUNWappserver/lib/jaxr-impl.jar:/work/nzw3/SUNWappserver/lib/xercesImpl.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-spi.jar:/work/nzw3/SUNWappserver/lib/verifier/verifierhelp.jar:/work/nzw3/SUNWappserver/lib/xalan.jar:/work/nzw3/SUNWappserver/lib/appserv-upgrade.jar:/work/nzw3/SUNWappserver/lib/appserv-assemblytool.jar:/work/nzw3/SUNWappserver/lib/deployhelp.jar:/work/nzw3/SUNWappserver/lib/j2ee.jar:/work/nzw3/SUNWappserver/lib/xmldsig.jar:/work/nzw3/SUNWappserver/lib/commons-logging.jar:/work/nzw3/SUNWappserver/lib/saaj-impl.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-impl.jar:/work/nzw3/SUNWappserver/lib/appserv-tags.jar:/work/nzw3/SUNWappserver/lib/appserv-ext.jar:/work/nzw3/SUNWappserver/lib/relaxngDatatype.jar:/work/nzw3/SUNWappserver/lib/admin-cli.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-api.jar:/work/nzw3/SUNWappserver/lib/jsf-api.jar:/work/nzw3/SUNWappserver/lib/jaxb-api.jar:/work/nzw3/SUNWappserver/lib/install/applications/__cp/jdbc.jar:/work/nzw3/SUNWappserver/lib/install/applications/__ds/jdbc.jar:/work/nzw3/SUNWappserver/lib/install/applications/__xa/jdbc.jar:/work/nzw3/SUNWappserver/lib/install/applications/jmsra/imqjmsra.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/cc.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admingui-jsp.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/framework.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/jato.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin-en.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin-xml.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/framework-en.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/help.jar:/work/nzw3/SUNWappserver/lib/install/applications/samples.jar:/work/nzw3/SUNWappserver/lib/install/applications/com_sun_web_ui/WEB-INF/lib/registrationservlet.jar:/work/nzw3/SUNWappserver/lib/install/applications/jaxr-ra/jaxr-ra.jar:/work/nzw3/SUNWappserver/lib/commons-launcher.jar:/work/nzw3/SUNWappserver/lib/jsf-impl.jar:/work/nzw3/SUNWappserver/lib/sun-appserv-ant.jar:/work/nzw3/SUNWappserver/lib/appserv-rt.jar:/work/nzw3/SUNWappserver/lib/xsdlib.jar:/work/nzw3/j2sdk1.4.2_04/lib/tools.jar com.sun.xml.rpc.tools.wsdeploy.Main -keep -tmpdir /work/nzw3/jwsdp-1.4/xws-security/samples/simple/build/server -o /work/nzw3/jwsdp-1.4/xws-security/samples/simple/dist/securesimple.war /work/nzw3/jwsdp-1.4/xws-security/samples/simple/dist/simple-portable.war
    BUILD FAILED
    file:/work/nzw3/jwsdp-1.4/xws-security/samples/simple/build.xml:108: wsdeploy failed
    If anyone has any idea about this problem, please let me know.
    Many thanks,
    Jake

    Hello again,
    I got progress today, but still have some errors for the simple sample in the xws-security . (I am running on Redhat 9.0 and with Sun Java System Application Server 8) Looks like the sending message is ok, but at the receiving message stage, I got the following errors when running "asant run-sample":
    [snip]
    run-sample:
    [echo] Running the simple.TestClient program....
    [java] Service URL=http://giga15.ncl.ac.uk:8080/securesimple/Ping
    [java] Sep 8, 2004 1:14:19 AM com.sun.xml.wss.filter.DumpFilter process
    [java] INFO: ==== Sending Message Start ====
    [java] <?xml version="1.0" encoding="UTF-8"?>
    [java] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://xmlsoap.org/Ping" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    [java] <env:Header>
    [java] <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:mustUnderstand="1">
    [java] <wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="Id4487442798885738858">MIIFKDCCBBCgAwIBAgICBl4wDQYJKoZIhvcNAQEEBQAwcDELMAkGA1UEBhMCVUsxETAPBgNVBAoT
    [java] CGVTY2llbmNlMRIwEAYDVQQLEwlBdXRob3JpdHkxCzAJBgNVBAMTAkNBMS0wKwYJKoZIhvcNAQkB
    [java] Fh5jYS1vcGVyYXRvckBncmlkLXN1cHBvcnQuYWMudWswHhcNMDQwMjEwMTQzMDUyWhcNMDUwMjA5
    [java] MTQzMDUyWjBcMQswCQYDVQQGEwJVSzERMA8GA1UEChMIZVNjaWVuY2UxEjAQBgNVBAsTCU5ld2Nh
    [java] c3RsZTEPMA0GA1UEBxMGTkVSZVNDMRUwEwYDVQQDEwxqYWtlIHpoZW5nd3UwgZ8wDQYJKoZIhvcN
    [java] AQEBBQADgY0AMIGJAoGBAO7B3texMjuzdA6zT6/F/hx3U4a+iWglhNWptB3JerhHHu7El0HkWky0
    [java] 9AzYVKZ7Y3n5qpgmSOe16a2MKySii5ud44DABj+3qkRBzkb/LDgNuF02X/XORbFbuZYEWwCHckZI
    [java] xQ50vJpdxJQqLOwrhMP48RXNBzrdXo9iYfcWP5cnAgMBAAGjggJiMIICXjAMBgNVHRMBAf8EAjAA
    [java] MBEGCWCGSAGG+EIBAQQEAwIFoDAOBgNVHQ8BAf8EBAMCA+gwLAYJYIZIAYb4QgENBB8WHVVLIGUt
    [java] U2NpZW5jZSBVc2VyIENlcnRpZmljYXRlMB0GA1UdDgQWBBRlyb19GkybkmGa6QnQ9fPZ7mQ+NzCB
    [java] mgYDVR0jBIGSMIGPgBQCOKsRo5aAiw3TFSsIpY4w2rLaqKF0pHIwcDELMAkGA1UEBhMCVUsxETAP
    [java] BgNVBAoTCGVTY2llbmNlMRIwEAYDVQQLEwlBdXRob3JpdHkxCzAJBgNVBAMTAkNBMS0wKwYJKoZI
    [java] hvcNAQkBFh5jYS1vcGVyYXRvckBncmlkLXN1cHBvcnQuYWMudWuCAQAwKQYDVR0SBCIwIIEeY2Et
    [java] b3BlcmF0b3JAZ3JpZC1zdXBwb3J0LmFjLnVrMBkGA1UdIAQSMBAwDgYMKwYBBAHZLwEBAQEEMD0G
    [java] CWCGSAGG+EIBBAQwFi5odHRwOi8vY2EuZ3JpZC1zdXBwb3J0LmFjLnVrL2NnaS1iaW4vaW1wb3J0
    [java] Q1JMMD0GCWCGSAGG+EIBAwQwFi5odHRwOi8vY2EuZ3JpZC1zdXBwb3J0LmFjLnVrL2NnaS1iaW4v
    [java] aW1wb3J0Q1JMMDwGCWCGSAGG+EIBBwQvFi1odHRwOi8vY2EtcmVuZXcuZ3JpZC1zdXBwb3J0LmFj
    [java] LnVrL3JlbmV3Lmh0bWwwPwYDVR0fBDgwNjA0oDKgMIYuaHR0cDovL2NhLmdyaWQtc3VwcG9ydC5h
    [java] Yy51ay9jZ2ktYmluL2ltcG9ydENSTDANBgkqhkiG9w0BAQQFAAOCAQEAgdN714aoC53Wef9JGaDD
    [java] PDJkmgmwVbL8ZuovBpORFsgy2GOPgIdtw15qTQx1NFbsFqW2I7d/9AteeXAk3sUGUODOvq8loeYB
    [java] iA+QofduwJ0VWO8TZ0e+7+J3cDQKbsukptRJd2L2W8PeCNPojCRkfiV/nT6BiF5yjh4Ui5e+pWGw
    [java] t3oN1qFDZViCFOTiB6Koi0MB+cu47gOEIxBQfP8jTEyf/SSy4RzjI+7C1LpDYCZpO/jqXMb67j9b
    [java] KdcmlWhMrzNOyRDM7A11rt5nBMABgRVAJsdBZIDevfKJ/kRGxUHGHqf8Pg+3qK22mNwMN8U2plr7
    [java] TgORAx6aOn4EQP2AzA==</wsse:BinarySecurityToken>
    [java] <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    [java] <ds:SignedInfo>
    [java] <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    [java] <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
    [java] <ds:Reference URI="#Id5553294937503469412">
    [java] <ds:Transforms>
    [java] <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    [java] </ds:Transforms>
    [java] <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    [java] <ds:DigestValue>AcRqiIoxfOWauZ/FDnng4D1C5WU=</ds:DigestValue>
    [java] </ds:Reference>
    [java] </ds:SignedInfo>
    [java] <ds:SignatureValue>
    [java] omVS7TF+IqESZuMcRdsFfet8INaU4J9Vall1oGaPMRoEkc9xks+YK2ew4nG7hSekITwJrQLx42hH
    [java] Vb6HvEdWgsIrjOJslqQILQkYU7qdoptb6OEgY5lHQpjUJaTKNn4krsDXgpwZieQE45Gcu/zuP4eY
    [java] v8yMhUwVUE8xHy+6dLs=
    [java] </ds:SignatureValue>
    [java] <ds:KeyInfo>
    [java] <wsse:SecurityTokenReference>
    [java] <wsse:Reference URI="#Id4487442798885738858" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
    [java] </wsse:SecurityTokenReference>
    [java] </ds:KeyInfo>
    [java] </ds:Signature>
    [java] </wsse:Security>
    [java] </env:Header>
    [java] <env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id5553294937503469412">
    [java] <ns0:Ping>
    [java] <ns0:ticket>SUNW</ns0:ticket>
    [java] <ns0:text>Hello !</ns0:text>
    [java] </ns0:Ping>
    [java] </env:Body>
    [java] </env:Envelope>
    [java] ==== Sending Message End ====
    [java] Sep 8, 2004 1:14:23 AM com.sun.xml.wss.filter.DumpFilter process
    [java] INFO: ==== Received Message Start ====
    [java] <?xml version="1.0" encoding="UTF-8"?>
    [java] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://xmlsoap.org/Ping" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    [java] <env:Body>
    [java] <env:Fault>
    [java] <faultcode xmlns:ans1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ans1:InvalidSecurityToken</faultcode>
    [java] <faultstring>Certificate validation failed</faultstring>
    [java] </env:Fault>
    [java] </env:Body>
    [java] </env:Envelope>
    [java] ==== Received Message End ====
    [java] Sep 8, 2004 1:14:23 AM com.sun.xml.wss.filter.ProcessSecurityHeaderFilter process
    [java] WARNING: Message does not contain wsse:Security header
    [java] Exception in thread "main" javax.xml.rpc.soap.SOAPFaultException: Certificate validation failed
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:515)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:294)
    [java] at simple.PingPort_Stub.ping(PingPort_Stub.java:80)
    [java] at simple.TestClient.main(TestClient.java:37)
    [java] Java Result: 1
    I don't know if I have configured anything wrong. Basically, i just want to sign the outgoing soap message with my own p12 format certificate, hence I have chosen the following in the $JWSDP_HOME/xws-security/samples/simple/build.properties :
    client.security.config=config/sign-client.xml
    server.security.config=config/dump-server.xml
    Also, according to the last section of the jWSDP release notes at http://java.sun.com/webservices/docs/1.4/ReleaseNotes.html#KnownIssues
    I added these two changes,
    1. In the <jwsdp.home>/xws-security/samples/buildconfig/sjsas-config.xml file, delete the original .... app.classpath element definition and replace it with the following definition:
    <path id="app.classpath">
    <fileset dir="${sjsas.home}/lib/endorsed">
    <include name="dom.jar"/>
    </fileset>
    <fileset dir="${sjsas.home}/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${javahome}/lib">
    <include name="tools.jar"/>
    </fileset>
    </path>
    2. In the <as.home>/domains/domain1/config/server.policy file, add the following configurations to the server.policy file, for the securesimple sample and pingservice samples, respectively.
    // These permissions apply to securesimple webapp grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/securesimple/WEB-INF/-" {
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission javax.security.auth.AuthPermission "modifyPublicCredentials"; permission javax.security.auth.AuthPermission "modifyPrivateCredentials";
    permission javax.security.auth.AuthPermission "getSubject";
    permission javax.security.auth.PrivateCredentialPermission "javax.security.auth.x500.X500PrivateCredential * \"*\"","read";
    permission java.security.SecurityPermission "putProviderProperty.BC";
    Moreover, has the sent message really been signed correctly? how can I tell the message has been signed by my own certificate? I have done the following:
    1. In the $JWSDP_HOME/xws-security/samples/simple/config/sign-client.xml, change to
    <xwss:SecurityConfiguration
    xmlns:xwss="http://com.sun.xml.wss.configuration" dumpMessages="true">
    <xwss:Sign/>
    </xwss:SecurityConfiguration>
    2. In the $JWSDP_HOME/xws-security/samples/simple/config/build.xml, change to something like the following in the run-sample target,
    <sysproperty key="javax.net.ssl.keyStore" value="/work/nzw3/jakenew.p12"/>
    <sysproperty key="javax.net.ssl.keyStorePassword" value="jake"/>
    <sysproperty key="javax.net.ssl.keyStoreType" value="pkcs12"/>
    I didn't change anything about truststore.
    What was the problem? What have I done wrong?
    Many thanks,
    Jake

  • Error while building sample application "Developing an Order Application"

    hi ,
    I tried to create a simple Mobile application using the instructions for "Tutorial: Developing an Order Application for Handhelds" given at :-
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/46/7294498d870ad3e10000000a11466f/frameset.htm
    For the same , by using TCdoe SDOE_WB i created a new SWCV named ORDER_TAKER,
    with a Data Object - > ORDER
    added Data Object header node -> ORDERHEADER
    The ORDERHEADER contains the following fields:
    ORDERID          CHAR8
    CUSTID             CHAR4
    LONGTEXT       CHAR32
    SERVICEUNIT   CHAR32
    CREATED_ON  DATS
    CREATED_AT  TIMS
    As per the tutorial I created  Mobile Service Component as "order_sv". under which created Data Objects , and a service name orderService . Now when I copied the code of Defining the Custom Methods , I am getting following error while building the MSC........
    Line: -----
    * [javac] Compiling 8 source files to C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\classes
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:43: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:           if( !(((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).getOrderOrderheaders().size() > 0))
         [javac] ERROR:                   ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:43: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:           if( !(((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).getOrderOrderheaders().size() > 0))
         [javac] ERROR:                                                                ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:43: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:           if( !(((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).getOrderOrderheaders().size() > 0))
         [javac] ERROR:                                 ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : class OrderOrderheader
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:               ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                          ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                                                                ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                                        ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:49: cannot find symbol
         [javac] ERROR: symbol  : method valueOf(java.lang.String)
         [javac] ERROR: location: class java.util.Date
         [javac] ERROR:               order.setCreatedOn(Date.valueOf("2007-06-30"));
         [javac] ERROR:                                      ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:50: cannot find symbol
         [javac] ERROR: symbol  : variable Time
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order.setCreatedAt(Time.valueOf("08:45:00"));
         [javac] ERROR:                                  ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:73: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                         ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:73: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                                                      ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:73: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                       ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:77: cannot find symbol
         [javac] ERROR: symbol  : method valueOf(java.lang.String)
         [javac] ERROR: location: class java.util.Date
         [javac] ERROR:               order.setCreatedOn(Date.valueOf("2007-07-05"));
         [javac] ERROR:                                      ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:78: cannot find symbol
         [javac] ERROR: symbol  : variable Time
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order.setCreatedAt(Time.valueOf("10:00:00"));
         [javac] ERROR:                                  ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:80: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OcaRoot.getInstance().commit();
         [javac] ERROR:               ^
         [javac] 30 errors *
    Line: -----
    Please help...........
    Ekam
    Edited by: Ekam Preet Singh on Sep 29, 2011 10:32 AM

    Hi,
    Please have a look at this thread,
    Re: Error in CompatibilityMode
    Regards,
    Saravanan K

  • Error while build FOD sample

    Hello all,
    I have installed Jdeveloper Studio Edition Version 11.1.2.1.0 and I have database 10g express edition, and want to install FOD sample schema as explained in this link:
    http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html
    after I change the properties for my environment as below
    # Master Ant properties file for Fusion Order Demo
    # All build files refer to this master list of properties
    # Continuous builds override these settings
    # $Id: build.properties 812 2007-02-20 07:14:33Z lmunsing $
    # Base Directory for library lookup
    jdeveloper.home=C:\oracle\Middleware11.1.2.1\jdeveloper
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    jdbc.port=1521
    jdbc.sid=XE
    # Information about the default setup for the demo user.
    db.adminUser=system
    db.demoUser=FOD
    db.demoUser.password=fusion
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMPand build all, I get this message in the log.
    Buildfile: C:\JDeveloper\Release2.1\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\build.xml
    init:
        [javac] Compiling 1 source file to C:\JDeveloper\Release2.1\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\classes
    setProperties:
    createDatabase:
    refreshSchema:
    BUILD FAILED
    C:\JDeveloper\Release2.1\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\build.xml:51: The following error occurred while executing this line:
    C:\JDeveloper\Release2.1\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.xml:100: The following error occurred while executing this line:
    C:\JDeveloper\Release2.1\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.xml:63: The following error occurred while executing this line:
    C:\JDeveloper\Release2.1\FusionOrderDemo_R2_1_revised\Infrastructure\DBSchema\build.xml:28: C:\JDeveloper\Release2.1\FusionOrderDemo_R2_1_revised\Infrastructure\Ant\wlserver_10.3\server\lib not found.
    Total time: 4 seconds The error occurred at this target
      <target name="createDatabase">
        <ant antfile="build.xml" dir="../DBSchema"
             target="createDatabase" inheritrefs="true"/> #This is Line 51
      </target>Any help is appreciated.
    Edited by: 920003 on May 4, 2012 8:24 AM

    I think you need regular / and not \ here:
    jdeveloper.home=C:\oracle\Middleware11.1.2.1\jdeveloper

  • Error when Building Simple Project

    Hello Community!
    I am developing a new project in the NWDS / NWDI by [this tutorial.[http://help.sap.com/saphelp_nw70/helpdata/en/44/0d18d725301a78e10000000a1553f6/frameset.htm].
    When I am in the Java Perspective and in the Java DC Explorer and want to build my DC (Right Click -> Development Component -> Build...), II always get this error prompt:
    - I have tried out many different versions of the JDK, but nothing works.
    - I have also done [this step|http://www.drftpd.org/forums/viewtopic.php?f=5&t=2978]
    Can you help me?
    10.10.2011 11:31:22 /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: test/tax/calc: Build failed for vwg.audi.in/test/tax/calc(vwg.audi.in_APPLICATION_1) in variant "default": The Build terminated with errors
    ------------------------------------- Build log ------------------------------------------------------
    Development Component Build (2011-10-10 11:31:22)
      Component name: test/tax/calc
      Component vendor: vwg.audi.in
      SC compartment: vwg.audi.in_APPLICATION_1
      Configuration: AZB_APPLFIN_D
      Location: AZB_APPLFIN_D
      Source code location: http://isazbdbz:54400/dtr/ws/APPLFIN/vwg.audi.in_APPLICATION/dev/inactive/DCs/vwg.audi.in/test/tax/calc/_comp/
      DC root folder: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\
      DC type: Java
      Host: audiinc07394527
    DC Model check:
       All used DCs are available locally
       validating dependency to build plugin "sap.com/tc/bi/bp/javaLib"
       DC model check OK
    Start build plugin:
       using build plugin: sap.com/tc/bi/bp/javaLib
       starting build plugin from : C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\sap.com\tc\bi\bp\javaLib\_comp\gen\default\public\saplib\
    Build Plugin 'JavaPlugin', Version 7.00 SP 15 (645_VAL_REL, built on 2008-02-16 00:52:15 CET, CL79160)
       development component:  test/tax/calc (vwg.audi.in)
          software component:  APPLICATION (vwg.audi.in)
                    location:  AZB_APPLFIN_D
                        type:  Java
               build variant:  default
             output location:  C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default
           generation folder:  C:\Dokumente und Einstellungen\UO94F87\.dtc\0\t\38AAC310BC92CAB879CB0B2FFFDE0EF0
           plugin start time:  2011-10-10 11:31:22 GMT+01:00 (CEST)
                     Java VM:  Java HotSpot(TM) Client VM, 10.0-b22 (Sun Microsystems Inc.)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Checking path lengths for sources
    Path length checks finished in 0 seconds
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Warning: Did not find any tools.jar in C:\Programme\Java\jre1.6.0_06
    Data context preparation finished in 0.031 seconds
    Creating Ant build file..
      Creating output file: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default\logs\build.xml
      Using macro file:     C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\sap.com\tc\bi\bp\javaLib\_comp\gen\default\public\saplib\macros\build.vm
    Build file creation finished in 0.078 seconds
    Starting Ant..
      Using build file:     C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default\logs\build.xml
      Using build target:   build
      Using Ant version:    1.6.2
    compile:
          [echo] Starting Java compiler
          [echo] Settings:
          [echo]         debug: on
          [echo]      optimize: off
          [echo]   deprecation: default
          [echo]       verbose: default
          [echo]      encoding: UTF8
          [echo]        source: default
          [echo]        target: default
          [echo]   source path: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\src\packages
          [echo]    class path: none
          [echo]    output dir: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\t\38AAC310BC92CAB879CB0B2FFFDE0EF0\classes
         [javac] Compiling 3 source files to C:\Dokumente und Einstellungen\UO94F87\.dtc\0\t\38AAC310BC92CAB879CB0B2FFFDE0EF0\classes
    Error: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default\logs\build.xml:74: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:116)
         at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:58)
         at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
         at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
         at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1750)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:6004)
         at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
         at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
         at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Ant runtime 0.172 seconds
    Ant build finished with ERRORS
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Error: Build stopped due to an error: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Build plugin finished at 2011-10-10 11:31:22 GMT+01:00 (CEST)
    Total build plugin runtime: 0.485 seconds
    Build finished with ERROR

    @ John Wu!
    You are right!
    I have solved my problem.
    Thank yoo for your helpful answer.
    I use NWDI 7.01 SP7 and JDK 1.5 / 5.
    So I replaced only:
    C:\Programme\SAP\IDE\IDE70\eclipse\SapIde.exe -vm "C:\Programme\Java\JDK1.5\jdk\bin\javaw.exe"
    And now it works fine

  • Error in Build file

    Hi All,
    I have a simple build file which i am using Ant build in Eclipse to give build to.
    <project name="bobf" default="compile" basedir=".">
         <property name="build.home"    value="${basedir}"/>
         <target name="compile" >
              <mkdir  dir="${build.home}\bin"/>
         <javac srcdir="${build.home}"
              destdir="${build.home}\bin" >
              <classpath path="${build.home}\lib"/> 
        </javac>
         </target>
    </project>i am getting this error while running it in the eclipse
    C:\Saurav\bobf\build.xml:14: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    I have put the tools.jar in the ant buil's edit under classpath under user entries.
    Please help

    thanks both for the reply.
    I installed Ant
    here i am getting the new error
    C:\Saurav\bobf>ant build.xml
    Buildfile: build.xml
    BUILD FAILED
    java.lang.NoClassDefFoundError: javax/xml/parsers/FactoryConfigurationError
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    193)
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    140)
            at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
    a:91)
            at org.apache.tools.ant.Main.runBuild(Main.java:653)
            at org.apache.tools.ant.Main.startAnt(Main.java:187)
            at org.apache.tools.ant.Main.start(Main.java:150)
            at org.apache.tools.ant.Main.main(Main.java:240)
    Total time: 0 seconds
    java.lang.NoClassDefFoundError: javax/xml/parsers/FactoryConfigurationError
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    193)
            at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    140)
            at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
    a:91)
            at org.apache.tools.ant.Main.runBuild(Main.java:653)
            at org.apache.tools.ant.Main.startAnt(Main.java:187)
            at org.apache.tools.ant.Main.start(Main.java:150)
            at org.apache.tools.ant.Main.main(Main.java:240)
    javax/xml/parsers/FactoryConfigurationErrori have put the Ant library files in the classpath.
    Please help

  • [Solved] Errors when building lib32-gnutls26..

    Every time i install, remove, or update using pacman I get this output:
    ldconfig: /home/user/.PlayOnLinux/wine/linux-x86/1.7.19-LeagueOfLegends2/lib/libgnutls.so.26 is not a symbolic link
    ldconfig: /home/user/.PlayOnLinux/wine/linux-x86/1.7.19-LeagueOfLegends2/lib/libgnutls-extra.so.26 is not a symbolic link
    ldconfig: /home/user/.PlayOnLinux/wine/linux-x86/1.7.19-LeagueOfLegends2/lib/libgnutlsxx.so.27 is not a symbolic link
    This results after adding
    /home/user/.PlayOnLinux/wine/linux-x86/1.7.19-LeagueOfLegends2/lib
    to /etc/ld.so.conf.d/lol.conf and running:
    ldconfig -v
    The guide for League of Legneds specifies this solution as it fixes an in game error, but results in the libs being referenced directly instead of by symbolic links.
    Simple solution. Download lib and make symlink.
    I have found the package in AUR: lib32-gnutls26
    and receive the following errors on build: http://pastebin.com/bjLqyP4d
    arch x86_64
    awesome wm
    Last edited by gregwittman (2014-12-07 20:44:58)

    The wiki has updated fixing the symlinks needed for wine..
    It was misisng a symlink from libgcrypt.
    To fix I download the package lib32-libgcrypt15 or libgcrypt15, depending on your architecture, which provideds libgcrypt.so.11.
    ARCH = either x86 or amd64.
    VERSION = the wine version installed.
    # cd ~/.PlayOnLinux/wine/linux-ARCH/VERSION/lib
    # ln -s libgcrypt.so.11.* libgcrypt.so.11
    # ln -s libgcrypt.so.11 libgcrypt.so
    This fix can also be found on the League of Legends Wiki.
    Last edited by gregwittman (2014-12-07 20:48:27)

  • Error from building medrec example for weblogic 10

    Hi,
    I tried to re-build medrec example for weblogic 10 and got error below. What was wrong?
    Any information would be appreciated. Thanks in advance.
    D:\bea\wlserver_10.0\samples\server\medrec\src>ant
    Buildfile: build.xml
    init:
    [echo] #### S T A R T M E D R E C ####
    [echo] Started on December 10 2007 at 0856
    build:
    banner:
    [echo] --------------------------------------------
    [echo] + Building StartBrowser Ear +
    [echo] --------------------------------------------
    build:
    BUILD FAILED
    D:\bea\wlserver_10.0\samples\server\medrec\src\build.xml:26: The following error occurred while exec
    uting this line:
    D:\bea\wlserver_10.0\samples\server\medrec\src\startBrowserEar\build.xml:50: Problem: failed to crea
    te task or type wlcompile
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.

    open a new command window , run setDomainEnv.cmd and in the same window run ant task.

  • Building XML document error

    Hi.
    I am bulding a XML Document but i am getting this error: Error in building: Not logged in. Why? In my PC it works well, but when I try run on NT server I get the error.
    The class is very simple:
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.SAXBuilder;
    import org.xml.sax.InputSource;
    public class ReadXmlDocument {
    private Document objXmlDocument;
    public void setXmlDocument() throws JDOMException {
    if ( getFileName() != null ) {
    SAXBuilder builder = new SAXBuilder();
    objXmlDocument = builder.build( getFileName() );
    } else {
    throw new NullPointerException("File name has not been setted");
    Thanks.

    For those that care, I found the solution/workaround.
    This is an actually bug........... http://developer.java.sun.com/developer/bugParade/bugs/4880236.html
    THe workaround is listen in the prroblem statement and is really simple.
    Instead of passing a File into the pass a FileInputStream
    CUSTOMER SUBMITTED WORKAROUND :
    /** Since the java 2 sdk java.io.* package is keen on UNC paths the following
    workaroung is quite simple and effective*/
    java.io.File fileHandler = new
    java.io.File("\\\\Network_name\\Share_name\\file_name.xml");
    javax.xml.parsers.DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    try {
    javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder();
    //Create a new FileInputStream from the file handler
    java.io.FileInputStream FIS = new java.io.FileInputStream(fileHandler);
    //The parse function takes an InputStream as well
    org.w3c.dom.Document xmlDoc = builder.parse(FIS);
    catch (SAXException sxe) {
    System.err.println("SaxException");
    } catch (ParserConfigurationException pce) {
    System.err.println("ParserConfigurationException");
    } catch (IOException ioe) {
    System.err.println("IOException");
    This worked for me with SAXBuilder too

Maybe you are looking for

  • How to print from Notes in Print Central app

    I'm using the Print Central app to print wirelessly to a non air-print printer but cannot print any of my notes (no option to "Open In") or import to Print Central. Are there any wireless printing apps that seem to work with all wireless printers? Ri

  • Alert management in SRM

    Hi, We are trying to configure alert management in SRM. Our requirement is to send an alert when ever a PO is approved/rejected/changed. We have maintained the Event Schema in the transaction type. Maintained the Event Schema for the events "Created"

  • Changing package assigned to EEW Development

    Hello all. One of our developers has assigend an incorrect package when creating an extensing in the easy enhancement workbench.  We cannot re-assign the package to a "Z" one.  When we try to delete the extension in the EEW we get the error message "

  • Injecting_jndi_datasources

    I know in standalone client cannot access java:comp/env which is used in my server application from my previous post, so I try another method as follow to test the server method public void getEnvironment() throws Exception{      try{           Syste

  • ISSUS IN MDSYS.SDO_GEOM.SDO_DISTANCE()

    Hi experts, SQL> SELECT * FROM LOC_ZIP; COMP ZIPCD LOC(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) c1 z1 SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(100, 1, NULL), NULL, NULL) c1 z2 SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(200,