Re: Libraries implementing Lexical Analysers andParsers

No parser/lexer that I know of, but I know what
you should try to wrapper if you did want a
great Lexer/Parser package.
I would go for T. Parr's PCCTS. (www.oncus.com/pccts.html)
Of course if you wanted native TOOL Lexer/Parser,
instead of a wrappered 'C' lexer/parser, that
would be entirely a different question. For that
the approach should be to reimplement PCCTS libraries
in TOOL, recode the PCCTS generator (called ANTLR)
to emit TOOL code instead of C/C++ code.
This generated code would be built on a set of generic
interfaces so that it could be compiled into a sharable
library and then dynamically loaded into Forte using
Release 3' dynamic class loader. After that you could
regenerate PCCTS itself in TOOL, so that the entire
parser would now be portably implemented in TOOL.
PCCTS is written in itself and 'C'.
This is probably a hard problem.
As they say in the textbooks, "implementation is
left as an exercise for the reader".
[email protected]
>
Are there any class libraries implementing Lexical Analysers and Parsers
in Forte. Any help in this area is greatly appreciated. Thank you in
advance.
Alaiah Chandrashekar===

From: "Fred Scholldorf +1 (516) 434-6230" <[email protected]>
No parser/lexer that I know of, but I know what
you should try to wrapper if you did want a
great Lexer/Parser package.
I would go for T. Parr's PCCTS. (www.oncus.com/pccts.html)Good tip, but there is a minor typo in the URL you've provided.
It should be "www.ocnus.com/pccts.html".
Michael Brennan
Programmer/Analyst
Amgen Inc.

Similar Messages

  • Libraries implementing Lexical Analysers and Parsers

    Are there any class libraries implementing Lexical Analysers and Parsers
    in Forte. Any help in this area is greatly appreciated. Thank you in
    advance.
    Alaiah Chandrashekar

    From: "Fred Scholldorf +1 (516) 434-6230" <[email protected]>
    No parser/lexer that I know of, but I know what
    you should try to wrapper if you did want a
    great Lexer/Parser package.
    I would go for T. Parr's PCCTS. (www.oncus.com/pccts.html)Good tip, but there is a minor typo in the URL you've provided.
    It should be "www.ocnus.com/pccts.html".
    Michael Brennan
    Programmer/Analyst
    Amgen Inc.

  • AddDataSourceConnectionPool not working with ant on upgrade to 10.1.3.4

    Hi,
    Following script is used to create connectionpools ...
    <project name="MyProject" default="dist" basedir="." xmlns:oracle="antlib:oracle">
    <description>simple example build file</description>
         <property file="ant-oracle.properties"/>
         <import file="ant-oracle.xml"/>
    <target name="dist" description="generate the distribution" >
         <oracle:addDataSourceConnectionPool
         deployerUri="deployer:oc4j:opmn://localhost:6003/home"
         userid="oc4jadmin"
         password="spatial1"
         applicationName="default"
         name="ScottConnectionPool"
         factoryClass="oracle.jdbc.pool.OracleDataSource"
         dbUser="scott"
         dbPassword="tiger"
         url="jdbc:oracle:thin:@localhost:1521:xe"/>
    </target>
    </project>
    the script works fine with 10.1.3.1; but when the server is upgraded to 10.1.3.4, it gives the following exception ->
    BUILD FAILED
    +/home/oracle/ant_test/build.xml:17: Could not create task or type of type: antlib:oracle:addDataSourceConnectionPool.+
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'antlib:oracle:addDataSourceConnectionPool'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    +libraries present in ${ant.home}/lib/optional/ , or alternatively,+
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    +<presetdef> or <macrodef> but have spelt wrong or not+
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 0 seconds
    I believe the admin_client.jar has got updated after the upgrade ... do I have to do anything else after the patch upgrade? ...
    Thanks,
    Nimesh

    The names are updated to the following (although the documentation doesn't reflect this):
    addDataSourceConnectionPool == createJDBCConnectionPool
    addManagedDataSource == createManagedDataSource
    addNativeDataSource == createNativeDataSource
    testDataSourceConnectionPool == testConnectionPool
    Hope it helps ...
    Cheers!
    Nimesh

  • Reading signed interger from a text file:

    Is this possible with some construct in java? Attempting to read a signed number using .readInt() throws an exception before the first token is a malformed int. i,e, the sign + or -.
    I would like to read a signed integer from a text file but I am clueless.
    Any help is appreciated.

    It can be a bit of a dilemma for lexical analysers. Say you read "a + 12" then you'd generally want to process that as three separate lexemes. The monadic form of plus is less common than the monadic minus.
    A quick test shows that "+12" and "+ 12" are both rejected by Integer.parseInt() (which surprised me).
    I'd suggest if you want to read positive numbers then first analyse your input using a regular expression, for example "\\s*([-+]?)\\s*(\\d+)" followed by
    (matcher.match(1).equals("-") ? -1 : 1) * Integer.parseInt(matcher.match(2));Edited by: malcolmmc on May 24, 2010 2:10 PM

  • Problem in OIM Installation in Linux-64 bit environment

    Hi,
    Components used
    1. Oracle Database11gR1
    2. Weblogic Application server 10.3.0(installed in non clustered mode)
    3. OIM 9.1.0.1
    Also ensured the above three are compatible.
    I'm facing problem at the end of OIM installation in RedHat Linux-64 bit environment.
    The error details in setup-weblogic.log file is given below
    ===================================
    setup-startscript:
    setup:
    [echo] Setting up weblogic for xellerate complete.
    [ant] Exiting /oracle/oimserver/xellerate/setup/weblogic-setup.xml.
    BUILD FAILED
    /oracle/oimserver/xellerate/setup/setup.xml:443: The following error occurred while executing this line:
    /oracle/oimserver/xellerate/setup/weblogic-setup.xml:196: Could not create task or type of type: wlst.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'wlst'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
         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.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at org.apache.tools.ant.Main.runBuild(Main.java:668)
         at org.apache.tools.ant.Main.startAnt(Main.java:187)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: /oracle/oimserver/xellerate/setup/weblogic-setup.xml:196: Could not create task or type of type: wlst.
    Further, I have identified that the ant was unable to launch a custom web logic task, wlst.
    This custom task of web logic task is invoked by ant using the following script in <OIM_HOME>/xellerate/setup/weblogic-setup.xml.
    <target name="setup" depends="setup-startscript">
    <echo>Setting up weblogic for xellerate complete.</echo>
    <wlst properties="${basedir}/Profiles/${profile}" arguments='SETUP_CONFIG ${profile}
    ${weblogic_login_password} ${datasource_user_password} '
    fileName="${basedir}/setup/oimconfig.py"
    executeScriptBeforeFile="false"
    failOnError="true">
    </wlst>
    <antcall target="stopServer"/>
    <antcall target="startServer"/>
    </target>
    Also I have ensured the all the environmental variables, JAVAOPTIONS, USER_MEM_ARGS, ANT_OPTS are properly set before installing OIM.
    I have tried several times but still getting the same error.
    Please help me to resolve this issue.
    Did anyone face this issue before??????
    Edited by: Katheresh on May 17, 2010 9:36 PM

    I am not certain but when I was installing OIM 9.1.x with wls 10.3.0 on windows I had a failure too and it turned out I didn't create the wls domain user and group for OIM. The docs for OIM 9.1 does not talk about it so you may want to create this account and group and re-try the install. The steps are below:
    Log in to the WebLogic Admin Console using your new account by pointing a web browser to the following url:
    http://<hostname>:7001/console
    1. Select Security, then Realms, then myrealm, and then Groups from the navigation panel on the left.
    2. Select the Configure a new Group link in the Groups page.
    3. Enter User for the group name in the Name field under the General tab and optionally enter a description for the group.Click Apply.
    Note:
    The group name User is case-sensitive.
    4. Select Security, then Realms, then myrealm, and then Users from the navigation panel on the left.
    5. Select the Configure a new User link in the Users page.
    6. Enter Internal for the user name in the Name field under the General tab and optionally enter a description for the user.
    Note:
    The user name Internal is case-sensitive.
    7. Enter and confirm a password associated with the user name Internal and click Apply.
    8. Select the Groups tab.
    9. Add the User group to the list of Current Groups for the Internal user by selecting User from the list of Possible Groups and clicking the --> right arrow button. Click Apply.
    Please post back if it works,
    Thanks,

  • Problem on building a web service

    I am playing with a sample provided by Oracle regarding how to develop a web service from WSDL document. When I run the ant, I am getting the following error:
    D:\work\localdev\OracleASPOC\topdown>ant
    Buildfile: build.xml
    [taskdef] Could not load definitions from resource oracle/ant/taskdefs/deploy/antlib.xml
    . It could not be found.
    [taskdef] Could not load definitions from resource oracle/antlib.xml. It could not be fo
    und.
    common:
    [echo] BuildName: topdown
    [echo] BuildHome: D:\work\localdev\OracleASPOC\topdown
    [echo] BuildFile: D:\work\localdev\OracleASPOC\topdown\build.xml
    [echo] BuildJVM: 1.4
    oracle-env-check:
    java-env-check:
    init:
    [echo] -----> Initializing project properties
    setup:
    [echo] -----> Creating the required sub-directories
    generate-interface:
    [echo] -----> Generating the service endpoint interface from the service wsdl
    BUILD FAILED
    D:\work\localdev\OracleASPOC\topdown\build.xml:156: Could not create task or type of type:
    antlib:oracle:genInterface.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'antlib:oracle:genInterface'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 0 seconds
    Any idea? BTW, I have oracle AS 10.1.3 installed.
    Thanks,
    Jason

    This issue apparently were caused by wrong ant-oracle.properties and ant-oracle.xml(coming with sample) were copied in the same directory as the build.xml in the sample. Once I copied the two files coming with my oracleAS installation, the issue was resolved.

  • Can't build SJSE8 project via CLI with asant

    I have written a small, simple enterprise app in SJSE8 on Windows XP. The app compiles, deploys, and runs correctly from within Studio. I would like to build the app from the command line. I assumed all I had to do was run asant from the folder containing the project's build.xml file, but I get the following result:
    C:\working\MyEntApp>asant
    Buildfile: build.xml
    BUILD FAILED
    C:\working\MyEntApp\build.xml:4: Could not create task or type of type: import.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'import'.
       Fix: check your spelling.
    - The task needs an external JAR file to execute
         and this is not found at the right place in the classpath.
       Fix: check the documentation for dependencies.
       Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
         implementing the functionality were not found at the time you
         yourself built your installation of Ant from the Ant sources.
       Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
         task and make sure it contains more than merely a META-INF/MANIFEST.MF.
         If all it contains is the manifest, then rebuild Ant with the needed
         libraries present in ${ant.home}/lib/optional/ , or alternatively,
         download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
       Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
         and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
        <presetdef> or <macrodef> but have spelt wrong or not
       defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 0 secondsDoes anybody know what I'm doing incorrectly?

    IIRC this is an unfortunate known limitation of NetBeans (and hence JSE) web/enterprise projects. It cannot be built outside the IDE, since some of the custom ant tasks are not on the classpath.
    Probably you could work around this by adding some IDE jars to ant classpath, but I'm not sure which.

  • How to compile a class from a Servlet using ant!!!

    Hi I have the following problem:
    I have a Servlet that must compile a java class.
    Here is the code that i use to compile:
    File buildFile = new File(build.xml path);
    String[] arg = { "-buildfile", buildFile.toString(), "compile" };
    Properties userProps = null;
    ClassLoader loader = ClassLoader.getSystemClassLoader();
    Main.start(arg, userProps, loader);
    The build.xml file was written correctly, infact if i lunch the command ant by dos it is correctly done.
    When I put my application in tomcat/webapps and try to compile with code above I have the following error:
    BUILD FAILED C:\......: Could not create task or type of type: property.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'property'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using <presetdef> or <macrodef> but have spelt wrong or not defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath
    Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug.

    Java code Snippet
    import org.apache.tools.ant.*;// ant.jar
    String SourceDir="c:\java";
         String DestinationDir="c:\classes";
         Project project = new Project();
         try
    String baseDir = getServletContext().getRealPath( "/WEB-INF/build/");//Build.xml should be in this folder or else make use of the build folder here
         File buildFile = new File( baseDir, "build.xml");
         project.setUserProperty( "SourceDir", SourceDir);
         project.setUserProperty( "DestinationDir", DestinationDir);
         project.setUserProperty( "ant.file", buildFile.getAbsolutePath());
         project.setBaseDir( new File( baseDir));
         project.init();
         ProjectHelper.configureProject( project, buildFile);
         project.executeTarget(project.getDefaultTarget());
         catch (Exception e)
    Build.xml
    <?xml version="1.0"?>
    <project name="Sample" default="compile" basedir=".">
         <property name="SrcDir" value="${SourceDir}"/>
         <property name="DestnDir" value="${DestinationDir}"/>
         <target name="compile">
              <javac srcdir="${SrcDir}" destdir="${DestnDir">
                   <classpath > <!-- If any supporting jars required to compile the file add this-->
                        <fileset dir="${SrcDir}" includes="*.jar" />
                   </classpath>
              </javac>
         </target>
    </project>

  • How to use the build file generated by Jdev to automate bpel deployment

    Hi everyone I am trying to deploy bpel jar files and human task ear files using ant. When i use the ant which is generated by Jdev I am gettinng an error
    C:\Documents and Settings\254876\Desktop\BPEL_ANT>ant
    Buildfile: build.xml
    deployTaskForm:
    BUILD FAILED
    C:\Documents and Settings\254876\Desktop\BPEL_ANT\build.xml:39: Could not create
    task or type of type: deployTaskForm.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'deployTaskForm'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.

    Ensure JDEV and SOA versions are in sync.

  • A simple question about istrue of Ant.

    Hello everyone,
    I have written the folllowing scripts, just want to output "Foo is true." when the property foo is set to true. But when using Eclipse to run the simple script, there are something wrong. Could anyone help to check what is the wrong with my shell scripts?
    Source codes,
    <project default="Trivial">
    <target name="Trivial">
    <echo>Target trivial is running.</echo>
    <property name="foo" value="true" />
    <istrue value="${foo}" />
    <then>
    <echo> Foo is true. </echo>
    </then>
    </target>
    </project>
    Error messages,
    Buildfile: C:\Documents and Settings\Admin\TestBuild.xml
    Trivial:
    [echo] Target trivial is running.
    BUILD FAILED: C:\Documents and Settings\Admin\TestBuild.xml:5: Could not create task or type of type: istrue.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'istrue'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 391 milliseconds
    thanks in advance,
    George

    Thanks jfbriere!
    It's a - little bit - more complicated than that to
    write conditional steps in "pure" ANT. The following
    is an example that works:
    <project default="Trivial_2">
    <target name="Trivial">
    <echo>Target trivial is running.</echo>
    <property name="foo" value="true" />
    <condition property="fooistrue">
    <istrue value="${foo}" />
    </condition>
    </target>
    <target name="Trivial_2" depends="Trivial"
    ial" if="fooistrue">
    <echo> Foo is true. </echo>
    </target>
    </project>Of course, if you want a real <if> task (with <then>
    and <else>) you'll have to install [url
    http://ant-contrib.sourceforge.net/tasks/tasks/index.h
    tml]AntContrib which is a third party library.Regards
    I have tried your method and it works cool!
    regards,
    George

  • Question: Securing Communications in Web Services: A Tutorial

    Hi all,
    I have been following this tutorial:
    http://developers.sun.com/prodtech/identserver/reference/techart/secure-ws.html
    And it was a pissed-off experience. I have only spent 5 mins on it and I am already stuck.
    Anyway, when I try to deploy the StockServer project, I get the following error:
    am-init:
    am-deploy:
    /home/bwoo/Creator/Projects/webservicessecurity/samples/StockServer/nbproject/am-deploy.xml:46: Could not create task or type of type: amdeploy.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'amdeploy'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    BUILD FAILED (total time: 5 seconds)
    Have any of you had the same problem? I know there is a similar tutorial on NetBeans website but it's even more poorly written.

    No i have not really worked on it these last days...
    I wonder why so few answers to this post. Would we the only two people who want to do this (be able to access OCS fron a web app, reusing SSO session)
    My main problem, for these web services, is to pass a password. As we do actually, we should keep a password in clear text in the User session.. and i'm not fond of this.

  • Build.xml deployment

    I would like to replicate the action of JDeveloper compiling and deploying a given process to a remote BPEL PM Server.
    When I establish the BPELPM server connection in jdev, I just specify the host/port and I'm prompted for password and domain at deployment time.
    How can I replicate this in a build.xml using obant? The server is running on midtier of OAS on an OC4J titled OC4J_BPEL.
    My real objective is to deploy to multiple servers in the same script, but need to get one working first.

    I'd like to use the 'scp' ANT task via obant but it does not seem to be available with the default configuration. I fetched the jsh jar file as instructed by the ANT manual (http://ant.apache.org/manual/OptionalTasks/scp.html).
    I'm still not able to use the 'scp' task. Below is the output from obant upon reading the 'scp' task:
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'scp'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.

  • Upgrading JSF version

    I have created a new web project using JSF 1.2. Currently the jsf-1.2.war present in D:\bea10.3\wlserver_10.3\common\deployable-libraries implements JSF 1.2.05. When I dig into this war file it contains 'glassfish.jsf_1.2.3.2.jar', 'glassfish.jstl_1.2.0.1.jar' and 'javax.jsf_1.2.0.0.jar'
    For my project I would like to use the latest version JSF 1.2.12. Is there a possibility to achieve this from worksho p studio.
    Sun's latest downloaded version of JSF 1.2.12 has only 'jsf-api.jar' and 'jsf-impl.jar' files.
    Any hint on this is highly appreciated.
    Thanks.

    I don't believe you need the JavaServer Pages Standard Tag Library (JSTL) to use JSF, so if you're not using features of the JSTL, don't bother with glassfish.jstl ...
    I am using sun's JSF 1.2.12 with Weblogc 10.3 and it works. You need to load the two jars you mention into your web application. The easiest way to do this is by including them in the WEB-INF/lib folder of your web app.
    If you don't also include the file WeblogicInjectionProvider.class on your classpath under com/bea/faces you'll get warnings from the server, but they don't seem to break anything.
    Note that you also need to include the jars for sun-commons-beanutils, sun-commons-collections, sun-commons-digester and sun-commons-logging for JSF to work.

  • Wlappc error

    Hi Gurus,
    when i am running my ant for build.xml, i am getting into the following wlappc, even though everything is in classpath. I'll appreciate if anyone could help me out.
    thanks,
    kuru
    error:
    BUILD FAILED
    D:\build.xml:75: Could not create task or type of t
    ype: wlappc.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'wlappc'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 9 seconds
    ---------------------------------------------------------build.xml:
    <project name="auction_uni_project" default="main" basedir=".">
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property name="home.dir" value="D:/project/onlineauctions"/>
    <property name="bea.dir" value="D:/bea/user_projects/domains/mydomain/applications"/>
    <property name="src.dir" value="${home.dir}/src"/>
    <property name="build.dir" value="${home.dir}/build"/>
    <property name="dist.dir" value="${home.dir}/dist"/>
    <property name="APPLOCATION" value="${bea.dir}/auctions"/>
    <property name="WEB_INF" value="${dist.dir}/WEB-INF"/>
    <property name="JSP_DESTPATH" value="${dist.dir}/jsp"/>
    <property name="CLIENT_CLASSES" value="${dist.dir}/clientclasses"/>
    <property name="SERVER_CLASSES" value="${dist.dir}/serverclasses"/>
    <path id="project.class.path">
    <pathelement path="${JDK_HOME}/lib/tools.jar:
                   ${env.classpath}:
                   ${WL_HOME}/license:
                   ${dist.dir}/Auction.jar:
                   ${WL_HOME}/server/lib/weblogic.jar:
                   ${WL_HOME}/server/lib/weblogic_sp.jar:
                   ${WL_HOME}/server/lib/weblogicaux.jar:
                   ${CLIENT_CLASSES}:
                   ${SERVER_CLASSES}:
                   ${AUCTION_WL_HOME}:
                   ${build.dir}:." />
    </path>
    <target name="main" depends="clean-Dir,create-Dir,build-Auctionjar,build-Application,copy-EAR"/>
    <!-- ======================= Creating Directories ====================== -->
    <target name="create-Dir">
    <!-- Create the time stamp -->
    <tstamp/>
    <mkdir dir="${APPLOCATION}"/>
    <mkdir dir="${WEB_INF}"/>
    <mkdir dir="${JSP_DESTPATH}"/>
    <mkdir dir="${CLIENT_CLASSES}"/>
    <mkdir dir="${SERVER_CLASSES}"/>
    <mkdir dir="${dist.dir}"/>
    <mkdir dir="${build.dir}/META-INF"/>
    </target>
    <!-- =======================Start Building Auction Jar ====================== -->
    <target name="build-Auctionjar" >
         <javac classpathref="project.class.path" srcdir="${src.dir}/uk/co/auction" includes="beans/helper/*.java,beans/main/*.java,common/*.java" destdir="${build.dir}">
         </javac>
         <copy todir="${build.dir}/uk/co/auction/beans/META-INF">
    <fileset dir="${src.dir}/uk/co/auction/beans/META-INF">
    <include name="*.xml"/>
    </fileset>
    </copy>
         <jar jarfile="${dist.dir}/Auction.jar" basedir="${build.dir}" update="yes" />
         <copy overwrite="yes" todir="${SERVER_CLASSES}" >
              <fileset dir="${build.dir}"/>
         </copy>
    </target>
         <target name="build-Application" depends="build-Auctionjar">
    <wlappc classpathref="project.class.path" debug="${debug}" source="${dist.dir}/Auction.jar"/>
    </target>
    <!-- =======================Copying to Server Application directory ====================== -->
    <target name="copy-EAR" depends="build-Auctionjar">
    <ear earfile="${APPLOCATION}/Auctions.ear" appxml="${src.dir}/META-INF/*.xml">
    <fileset dir="${dist.dir}" includes="Auction.jar"/>
    </ear>
    </target>
    <!-- =======================Compile and Copy the Client ====================== -->
    <target name="compile-Client">
    <move file="${user.dir}/ejb20_basic_beanManaged_client.jar" tofile="${client.build.dir}/ejb20_basic_beanManaged_client.jar"/>
    <javac srcdir="${src.dir}/" destdir="${client.build.dir}" includes="*.java"
    classpath="${project.class.path};${client.build.dir}/Client.jar" />
    </target>
    <target name="compile_webapp">
    <copy file="${user.dir}/client.jar" tofile="${WEB_INF}/client.jar"/>
    <copy todir="${auc.webapp.dir}">
    <fileset dir="${src.dir}/uk/co/auction/jsp" includes="*.jsp"/>
    </copy>
    </target>
    <!-- =======================Clean the Dirs ====================== -->
    <target name="clean-Dir">
    <delete dir="${APPLOCATION}"/>
    <delete dir="${dist.dir}"/>
    <delete dir="${build.dir}"/>     
    </target>
    </project>

    If i am keeping the ant.jar( D:\bea\jdk141_05\lib) in my class path, i am getting the following error, i guess from some other installaion the ant is bundled and giving a version problem, but as far as i know i didnt keep any known ant.jar in my classpath other than above.
    Invalid implementation version between Ant core and Ant optional tasks.
    core : 1.6.2
    optional: 1.5.3
    what do you mean by "Make sure you are using the version of ANT "
    thanks

  • Deploying bpel processes through ant

    Hi all I have to deploy bpel through ant for this I am following below steps.
    1) SET ANT_HOME to C:\jdev\ant
    2) copied the followong jar files into ant home library orabpel.jar,orabpel-ant.jar, orabpel-boot.jar, orabpel-boot.jar,orabpel-exts.jar,orabpel-thirdparty.jar,oracle_http_client.jar,xmlparserv2.jar,orawsdl.jar
    Below is my buil.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <project name="bpel.deploy" default="deployTaskForm" basedir="." xmlns:oracle="antlib:oracle">
    <target name="deployProcess">
    <deployProcess
    user="${admin.user}" password="${admin.password}"
    domain="${domain}" process="${process1.name}"
    rev="${rev}" dir="${process.dir}/output"
    hostname="${http.hostname}" httpport="${http.port}"
    verbose="${verbose}"
    />
    </target>
    <target name="deployTaskForm" depends="deployProcess">
    <deployTaskForm
    platform="${platform}" dir="${process.dir}/public_html"
    domain="${domain}" process="${process.name}" rev="${rev}"
    user="${admin.user}" password="${admin.password}"
    hostname="${j2ee.hostname}" cluster="${cluster}"
    rmiport="${rmi.port}" opmnrequestport="${opmn.requestport}"
    oc4jinstancename="${oc4jinstancename}"
    asinstancename="${asinstancename}" verbose="${verbose}"
    />
    </target>
    </project>
    I am getting an error
    C:\Documents and Settings\254876>cd C:\Documents and Settings\254876\Desktop\BPEL_ANT
    C:\Documents and Settings\254876\Desktop\BPEL_ANT>ant
    Buildfile: build.xml
    deployProcess:
    BUILD FAILED
    C:\Documents and Settings\254876\Desktop\BPEL_ANT\build.xml:36: Could not create
    task or type of type: deployProcess.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'deployProcess'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Total time: 0 seconds
    C:\Documents and Settings\254876\Desktop\BPEL_ANT>

    Please cross check your ant-orabpel.xml in bpel\utilities with mine ::
    <?xml version="1.0" encoding="iso-8859-1"?>
    <project name="ant-orabpel">
    <import file="ant-deployapps.xml"/> <!-- for applications(EJB, JSP) -->
    <path id="orabpel.tasks.class.path">
    <pathelement location="${bpel.home}/lib/orabpel-ant.jar"/>
    <pathelement location="${bpel.home}/lib/orabpel.jar"/>
    <pathelement location="${bpel.home}/lib/orabpel-thirdparty.jar"/>
    <pathelement location="${bpel.home}/lib/orabpel-common.jar"/>
    <pathelement location="${bpel.home}/lib/orabpel-exts.jar"/>
    <pathelement location="${bpel.home}/lib/xmlparserv2.jar"/>
    <pathelement location="${bpel.home}/lib/orawsdl.jar"/>
    <pathelement location="${bpel.home}/lib/connector15.jar"/>
         <!-- used by deployRemote -->
         <pathelement location="${bpel.home}/lib/oracle_http_client.jar"/>
         <!-- used by deployTaskForm -->
         <pathelement location="${bpel.home}/system/appserver/oc4j/j2ee/home/lib/oc4j-internal.jar"/>
         <!-- used by validateTask to load WorkflowTaskDefinition.xsd-->
         <pathelement location="${bpel.home}/system/services/schema"/>
    </path>
    <property name="orabpel.tasks.class.path" refid="orabpel.tasks.class.path"/>
    <taskdef resource="com/collaxa/cube/ant/orabpel-antlib.xml" loaderRef="orabpel.tasks.ClassLoader">
    <classpath>
    <pathelement path="${orabpel.tasks.class.path}"/>
    </classpath>
    </taskdef>
    </project>

Maybe you are looking for

  • How to log the messages in an internal table n display

    Hello guys, This is my first post in SDN. I am uploading some data from application server. I am doing lot of varifications, based on that I have to display the messages. So I asked not to use the write statements to display the messages but asked me

  • How do I portforward an Airport Extreme on a Windows 7 PC?

    I know this has been asked before but ever solution I have tried has failed. Basically I have a windows 7 PC and want to portforward to host games such as minecraft and terraria. The only problem is that I am connected via ethernet to my modem and ca

  • Can i recover licence number from earlier editions

    Ive updated aperature from 1 -3 but have lost my earlier licence codes.  The hard drive on my mac book died and had to be replaced.  Is there some way I can retrieve my earlier licence numbers so I can load aperature back onto my mac book ?

  • Empty Process Context

    Hi All, I have created a process wih multiple Human Activities, when I am trying to do the Output mapping of Human Task 1: I am not able to see any nodes/attributes in the process context on the Right side. I am able to see the TaskOutput on the left

  • Java on i386SX25 / 286?

    Hi, does someone know what would happen if you try to install Java on an old i386 or i286 system? Would it work? (even if much moooore slooower)