Escaping in ant's replaceregexp

Hello,
I'm trying to modify some xml files where I have to search for some xml tags ending in />. I'm using something like:
<replaceregexp ...
match="...\/\>" (getting error on this line)
replace="..."
/>
I'm getting the following error when running it:
Element type "replaceregexp" must be followe by either attribute specifications, ">" or "/>".
I suspect it cannot recognize \> inside the match string.
Any idea how to escape > in ant and how to get rid of this syntax error?
Much appreciated. Thanks.
Mahdad

Thanks.
What about escaping " ? I used \" and "" and even &"
but still get the same syntax error. Any idea?Again, it's XML you have to escape it for, so you you use the XML escape:&quot; for "
&apos; for '
&lt;   for <
&gt;   for >
&amp;  for &None of these are regex metacharacters, so you shouldn't have to do any additional escaping.

Similar Messages

  • Error while running ant build script from cmd line -ORABPEL-01005

    Hi to all,
    I am newbie to BPEL, I did a sample application SyncHelloWorldBPEL application in Jdev and I deployed it application server everything looks good.
    When I ran the same ant build script from command line it throw me bunch of complation error.
    Anyone please help me out
    bpel.init:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Intializing BPEL Process....      
    [echo] --------------------------------------------------------------
    [echo]
    [echo] ----------------------------------------
    [echo] | Loading Dependency Jar Files : C:\Oracle\JDeveloper\integration\lib\orabpel-ant.jar;C:\Oracle\JDeveloper\integration\lib\orabpel.jar;C:\Oracle\JDeveloper\integration\lib\orabpel-thirdparty.jar;C:\Oracle\JDeveloper\integration\lib\oracle_http_client.jar;C:\Oracle\JDeveloper\integration\lib\orabpel-common.jar;C:\Oracle\JDeveloper\integration\lib\orabpel-exts.jar;C:\Oracle\JDeveloper\integration\lib\connector15.jar;C:\Oracle\JDeveloper\integration\lib\commons-codec-1.3.jar;C:\Oracle\JDeveloper\lib\xmlparserv2.jar;C:\Oracle\JDeveloper\lib\xml.jar;C:\Oracle\JDeveloper\webservices\lib\orawsdl.jar
    [echo] ----------------------------------------
    validateTask:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Validating BPEL workflow
    [echo] --------------------------------------------------------------
    [echo]
    [validateTask] Validation of workflow task definitions is completed without errors
    compile.bpel:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Compiling bpel process SyncHelloWorld, revision 2.0
    [echo] | Class Path : C:\Oracle\JDeveloper\integration\lib\orabpel-ant.jar;C:\Oracle\JDeveloper\integration\lib\orabpel.jar;C:\Oracle\JDeveloper\integration\lib\orabpel-thirdparty.jar;C:\Oracle\JDeveloper\integration\lib\oracle_http_client.jar;C:\Oracle\JDeveloper\integration\lib\orabpel-common.jar;C:\Oracle\JDeveloper\integration\lib\orabpel-exts.jar;C:\Oracle\JDeveloper\integration\lib\connector15.jar;C:\Oracle\JDeveloper\integration\lib\commons-codec-1.3.jar;C:\Oracle\JDeveloper\lib\xmlparserv2.jar;C:\Oracle\JDeveloper\lib\xml.jar;C:\Oracle\JDeveloper\webservices\lib\orawsdl.jar
    [echo] --------------------------------------------------------------
    [echo]
    [bpelc] validating "C:\AMG\CI_Project\SyncHelloWorldBPEL\.\bpel\SyncHelloWorld.bpel" ...
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:51: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpws", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:51: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpws", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:51: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpws", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:51: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpws", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:51: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpws", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:51: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpws", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:51: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpws", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:52: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xp20", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.Xpath20");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:52: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xp20", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.Xpath20");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:52: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xp20", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.Xpath20");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:52: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xp20", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.Xpath20");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:52: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xp20", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.Xpath20");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:52: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xp20", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.Xpath20");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:53: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns1", "http:\/\/xmlns.oracle.com\/bpel\/workflow\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:53: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns1", "http:\/\/xmlns.oracle.com\/bpel\/workflow\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:53: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns1", "http:\/\/xmlns.oracle.com\/bpel\/workflow\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:53: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns1", "http:\/\/xmlns.oracle.com\/bpel\/workflow\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:53: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns1", "http:\/\/xmlns.oracle.com\/bpel\/workflow\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:54: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ldap", "http:\/\/schemas.oracle.com\/xpath\/extension\/ldap");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:54: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ldap", "http:\/\/schemas.oracle.com\/xpath\/extension\/ldap");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:54: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ldap", "http:\/\/schemas.oracle.com\/xpath\/extension\/ldap");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:54: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ldap", "http:\/\/schemas.oracle.com\/xpath\/extension\/ldap");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:54: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ldap", "http:\/\/schemas.oracle.com\/xpath\/extension\/ldap");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:55: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xsd", "http:\/\/www.w3.org\/2001\/XMLSchema");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:55: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xsd", "http:\/\/www.w3.org\/2001\/XMLSchema");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:55: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xsd", "http:\/\/www.w3.org\/2001\/XMLSchema");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:55: Invalid escape character.
    [bpelc] __NSPrefixMap.put("xsd", "http:\/\/www.w3.org\/2001\/XMLSchema");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:56: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns3", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.esb.server.headers.ESBHeaderFunctions");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:56: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns3", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.esb.server.headers.ESBHeaderFunctions");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:56: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns3", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.esb.server.headers.ESBHeaderFunctions");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:56: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns3", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.esb.server.headers.ESBHeaderFunctions");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:56: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns3", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.esb.server.headers.ESBHeaderFunctions");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:56: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns3", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.esb.server.headers.ESBHeaderFunctions");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:57: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns2", "http:\/\/xmlns.oracle.com\/bpel\/services\/IdentityService\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:57: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns2", "http:\/\/xmlns.oracle.com\/bpel\/services\/IdentityService\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:57: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns2", "http:\/\/xmlns.oracle.com\/bpel\/services\/IdentityService\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:57: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns2", "http:\/\/xmlns.oracle.com\/bpel\/services\/IdentityService\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:57: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns2", "http:\/\/xmlns.oracle.com\/bpel\/services\/IdentityService\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:57: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ns2", "http:\/\/xmlns.oracle.com\/bpel\/services\/IdentityService\/xpath");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:58: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpelx", "http:\/\/schemas.oracle.com\/bpel\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:58: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpelx", "http:\/\/schemas.oracle.com\/bpel\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:58: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpelx", "http:\/\/schemas.oracle.com\/bpel\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:58: Invalid escape character.
    [bpelc] __NSPrefixMap.put("bpelx", "http:\/\/schemas.oracle.com\/bpel\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:59: Invalid escape character.
    [bpelc] __NSPrefixMap.put("client", "http:\/\/xmlns.oracle.com\/SyncHelloWorld");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:59: Invalid escape character.
    [bpelc] __NSPrefixMap.put("client", "http:\/\/xmlns.oracle.com\/SyncHelloWorld");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:59: Invalid escape character.
    [bpelc] __NSPrefixMap.put("client", "http:\/\/xmlns.oracle.com\/SyncHelloWorld");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:60: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ora", "http:\/\/schemas.oracle.com\/xpath\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:60: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ora", "http:\/\/schemas.oracle.com\/xpath\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:60: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ora", "http:\/\/schemas.oracle.com\/xpath\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:60: Invalid escape character.
    [bpelc] __NSPrefixMap.put("ora", "http:\/\/schemas.oracle.com\/xpath\/extension");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:61: Invalid escape character.
    [bpelc] __NSPrefixMap.put("orcl", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.ExtFunc");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:61: Invalid escape character.
    [bpelc] __NSPrefixMap.put("orcl", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.ExtFunc");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:61: Invalid escape character.
    [bpelc] __NSPrefixMap.put("orcl", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.ExtFunc");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:61: Invalid escape character.
    [bpelc] __NSPrefixMap.put("orcl", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.ExtFunc");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:61: Invalid escape character.
    [bpelc] __NSPrefixMap.put("orcl", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.ExtFunc");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:61: Invalid escape character.
    [bpelc] __NSPrefixMap.put("orcl", "http:\/\/www.oracle.com\/XSL\/Transform\/java\/oracle.tip.pc.services.functions.ExtFunc");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:62: Invalid escape character.
    [bpelc] __NSPrefixMap.put("", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:62: Invalid escape character.
    [bpelc] __NSPrefixMap.put("", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:62: Invalid escape character.
    [bpelc] __NSPrefixMap.put("", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:62: Invalid escape character.
    [bpelc] __NSPrefixMap.put("", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:62: Invalid escape character.
    [bpelc] __NSPrefixMap.put("", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:62: Invalid escape character.
    [bpelc] __NSPrefixMap.put("", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:62: Invalid escape character.
    [bpelc] __NSPrefixMap.put("", "http:\/\/schemas.xmlsoap.org\/ws\/2003\/03\/business-process\/");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:78: Invalid escape character.
    [bpelc] __pl.put("partnerLinkType", new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:78: Invalid escape character.
    [bpelc] __pl.put("partnerLinkType", new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:78: Invalid escape character.
    [bpelc] __pl.put("partnerLinkType", new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:115: Invalid escape character.
    [bpelc] __initiatePartnerLinkQNames[0] = new javax.xml.namespace.QName( "http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client" );
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:115: Invalid escape character.
    [bpelc] __initiatePartnerLinkQNames[0] = new javax.xml.namespace.QName( "http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client" );
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:115: Invalid escape character.
    [bpelc] __initiatePartnerLinkQNames[0] = new javax.xml.namespace.QName( "http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client" );
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:146: Invalid escape character.
    [bpelc] return new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:146: Invalid escape character.
    [bpelc] return new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:146: Invalid escape character.
    [bpelc] return new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:151: Invalid escape character.
    [bpelc] return new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:151: Invalid escape character.
    [bpelc] return new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:151: Invalid escape character.
    [bpelc] return new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld", "client");
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:192: Invalid escape character.
    [bpelc] msgVar.setMessageType(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldRequestMessage", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:192: Invalid escape character.
    [bpelc] msgVar.setMessageType(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldRequestMessage", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:192: Invalid escape character.
    [bpelc] msgVar.setMessageType(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldRequestMessage", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:196: Invalid escape character.
    [bpelc] part.setElement(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldProcessRequest", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:196: Invalid escape character.
    [bpelc] part.setElement(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldProcessRequest", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:196: Invalid escape character.
    [bpelc] part.setElement(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldProcessRequest", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:203: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessRequest xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\"\/>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:203: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessRequest xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\"\/>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:203: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessRequest xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\"\/>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:203: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessRequest xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\"\/>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:211: Invalid escape character.
    [bpelc] msgVar.setMessageType(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldResponseMessage", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:211: Invalid escape character.
    [bpelc] msgVar.setMessageType(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldResponseMessage", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:211: Invalid escape character.
    [bpelc] msgVar.setMessageType(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldResponseMessage", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:215: Invalid escape character.
    [bpelc] part.setElement(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldProcessResponse", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:215: Invalid escape character.
    [bpelc] part.setElement(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldProcessResponse", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:215: Invalid escape character.
    [bpelc] part.setElement(new javax.xml.namespace.QName("http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorldProcessResponse", "client"));
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:222: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessResponse xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\">\r\n <result\/>\r\n<\/SyncHelloWorldProcessResponse>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:222: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessResponse xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\">\r\n <result\/>\r\n<\/SyncHelloWorldProcessResponse>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:222: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessResponse xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\">\r\n <result\/>\r\n<\/SyncHelloWorldProcessResponse>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:222: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessResponse xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\">\r\n <result\/>\r\n<\/SyncHelloWorldProcessResponse>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:222: Invalid escape character.
    [bpelc] xml = "<SyncHelloWorldProcessResponse xmlns=\"http:\/\/xmlns.oracle.com\/SyncHelloWorld\">\r\n <result\/>\r\n<\/SyncHelloWorldProcessResponse>\r\n";
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:234: Invalid escape character.
    [bpelc] __pl.setPartnerLinkType(new javax.xml.namespace.QName( "http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld" ) );
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:234: Invalid escape character.
    [bpelc] __pl.setPartnerLinkType(new javax.xml.namespace.QName( "http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld" ) );
    [bpelc] ^
    [bpelc] C:\AMG\CI_Project\SyncHelloWorldBPEL\.\deploy\temp\bpelc38101.tmp\BPEL-INF\src\bpel\synchelloworld\BPEL_BIN.java:234: Invalid escape character.
    [bpelc] __pl.setPartnerLinkType(new javax.xml.namespace.QName( "http:\/\/xmlns.oracle.com\/SyncHelloWorld", "SyncHelloWorld" ) );
    [bpelc] ^
    [bpelc] Too many errors. (The limit on reported errors is 100.)
    [bpelc] 126 errors
    [bpelc] ORABPEL-01005
    [bpelc]
    [bpelc] Failed to compile classes.
    [bpelc] Failed to compile the generated BPEL classes for "SyncHelloWorld".
    [bpelc]      at com.collaxa.cube.lang.compiler.CubeProcessor.compileGeneratedClasses(CubeProcessor.java:972)
    [bpelc]      at com.collaxa.cube.lang.compiler.CubeProcessor.transformClientSide(CubeProcessor.java:572)
    [bpelc]      at com.collaxa.cube.lang.compiler.CubeProcessor.transformClientSide(CubeProcessor.java:457)
    [bpelc]      at com.collaxa.cube.lang.compiler.CubeParserHelper.compileClientSide(CubeParserHelper.java:83)
    [bpelc]      at com.collaxa.cube.ant.taskdefs.Bpelc.execute(Bpelc.java:626)
    [bpelc]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [bpelc]      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    [bpelc]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [bpelc]      at java.lang.reflect.Method.invoke(Method.java:585)
    [bpelc]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    [bpelc]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [bpelc]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [bpelc]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [bpelc]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    [bpelc]      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    [bpelc]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [bpelc]      at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [bpelc]      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    [bpelc]      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [bpelc]      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    BUILD FAILED
    C:\AMG\CI_Project\SyncHelloWorldBPEL\build.xml:127: ORABPEL-01005

    More precisely its porblem with commons-lang package
    I am using commons-lang 2.4.jar file due to this it generated above error.
    I reverted it back to earlier version now its working with apache ant 1.7.0

  • Special characters with ANT

    Hi All,
    I am creating ANT script that suppose to run under the Windows XP.
    I am trying to create number of properties in my config.ini file with propertyfile tag .
    I have code that suppose to add directory name to the config.ini file :
    <propertyfile name="${dir.main}\config.ini>
    <entry key="main.directory.name" value="f:\mydir />
    </propertyfile>
    but what I actually receiving inside my config.ini file after the running of my ANT script is something like that
    main.directory.name=f\:\\mydir
    I will use this property with java on XP machine afterwords ,
    and defenetly windows woudn know what to do with that additional slash before the colon.
    thank you for your help.

    The format of "properties" files is not 100% compatible with the format of ".INI" files.
    They have no "[section]"s, some characters are escaped, you can use ":" or "tab" or "space" as a separator instead of "=", and a long value can be split through several lines using a backslash at the end of the lines, as this:
    key : value value value\
    value value value\
    value value too long\
    to be put in a single lineTry to express such thing using an ".INI" file...
    If you must write a ".INI" file, list the properties manually, in the correct format, instead of simply expecting that the formats would be perfectly read by both systems.

  • [svn] 3105: SDK-15764, SDK-15765 -- Two long standing Ant task bugs.

    Revision: 3105
    Author: [email protected]
    Date: 2008-09-04 15:05:39 -0700 (Thu, 04 Sep 2008)
    Log Message:
    SDK-15764, SDK-15765 -- Two long standing Ant task bugs.
    - Ant Tasks fail when setting fork="true" and there are spaces in the path name
    - Setting fork="true" in Ant Tasks leads to warning
    The issue with spaces is that forked tasks construct a stringified commandline, since Java doesn't allow you to pass real String[] to a new process. When not forking, we can pass the original String[], which makes spaces irrelevent. So the fix uses a Commandline.toString(String[]) which is designed to wrap arguments with spaces correctly with quotes, so the commandline tokenizes correctly.
    Bugs: SDK-15764 SDK-15765
    QA: This affects ant calls for _all_ FlexTasks where fork=true. It would be great if we have tests for both fork="true" and "false" where we tested paths and arguments with and without spaces -- off the top of my head, good ones to try: +flexlib=/path/with spaces/, -define=CONFIG::foo,"bar with spaces", and any other arguments you can think of. Also very important: Test passing space arguments without quotes, with single quotes, with double quotes, with a mixture (illegal), and with a mixture escaping the inner set of quotes (not sure if this should work or not, probably a stupid case to test unless quotes are allowed in paths).
    Doc: No
    Reviewer: Pete
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15764
    http://bugs.adobe.com/jira/browse/SDK-15765
    http://bugs.adobe.com/jira/browse/SDK-15764
    http://bugs.adobe.com/jira/browse/SDK-15765
    Modified Paths:
    flex/sdk/branches/3.0.x/modules/antTasks/src/flex/ant/FlexTask.java

  • Help for javac task in ant?

    Here I have 5+ folders, ervery has many java source files. And all the java source files in these folders is the same package name, also there may have same file name in different folder. And now I want the javac to compile these files and save the classes file to each own folder.
    folder--fd1
    | |--a1.java (package org.apache.jsp)
    | |--b1.java (package org.apache.jsp)
    | |--c1.java (package org.apache.jsp)
    |---fd2
    | |--a1.java (same file name as in fd1) (package org.apache.jsp)
    | |--b2.java (package org.apache.jsp)
    | |--c2.java (package org.apache.jsp)
    |--
    foler--fd1
    | |--a1.java
    | |--a1.class (also the package is org.apache.jsp, but it store in here.)
    | |--b1.java
    | |--b1.class
    | |--c1.java
    | |--c1.class
    |---fd2
    | |--a1.java (same file name as in fd1)
    | |--a1.class
    | |--b2.java
    | |--b2.class
    | |--c2.java
    | |--c2.class
    |--
    And now I can complete the compile work through 2 steps in up condition, first to compile fd1 folder, and then to compile fd2 folder. For if I just compile with folder(root folder), it will return duplicate class error. How could I do with this?
    below is my javac config in build.xml:
    <target name="compile" >
    <path id="javac.classpath">
    <fileset dir="${tomcat.home}\common\lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${tomcat.home}\server\lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="${basedir}\classes" />
    <fileset dir="${basedir}\web\WEB-INF\lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <javac failonerror="true" debug="off" verbose="2" deprecation="off" classpathref="javac.classpath">               
    <src path="${basedir}/folder/fd1"/>                         
    </javac>          
    <javac failonerror="false" debug="off" verbose="2" deprecation="off" classpathref="javac.classpath">               
    <src path="${basedir}/folder/fd1"/>                         
    </javac>
    </target>

    But the problem is that this project may have same
    e files in 5 folders, and another may more than 5,
    like 20+, then also step to compile it, I think it can
    not imagine.As I said, the basic problem is that the class path has to be different for each folder.
    So what I want is just compile once, and is there
    e any solution to escape the duplicate class error.
    And the jikes compile you refered, I don't know how
    w to call this task, for jikes is just a binary
    file.(how to set parameter in <javac/> in build.xml
    used by ant)
    Jikes is a compiler from IBM. If you look in the ant docs it tells you how to set it up.

  • ANT deployment failed in Linux

    All,
    version: 10.1.3.4
    I have created a simple BPEL and use ant to deploy. In the build.xml, I use replaceregexp to replace something during deployment. It works fine in my windows box. But same bpel fails in my linux box with the following error..
    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 'replaceregexp'.
    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.
    I tried to set the path as below in my build.xml, but still the same error but with additional like *"Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found......"*
    +*<taskdef resource="net/sf/antcontrib/antcontrib.properties">*+
    +*               <classpath>*+
    +*<pathelement location="/oracle/product/10.1.3.1/OracleAS_1/bpel/system/services/lib/ant-contrib-1.0b2.jar"/>*+
    +*               </classpath>*+
    +*          </taskdef>*+
    any help is appreciated
    rgds
    sen

    Vlad,
    My windows classpath
    BASE_OB_CLASSPATH=C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\classes;C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\lib\tools.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-exts.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-ant.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant-launcher_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\oracle_http_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlparserv2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\olite40.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\aqapi.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orawsdl.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-infra.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-services.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlunit1.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bipres.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bicmn.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\uix2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\share.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\regexp.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\jewt4.jar
    CLASSPATH=;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\serializer_2.7.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xalan_2.7.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\jre\lib\rt.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\classes;C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\lib\tools.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-exts.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-ant.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant-launcher_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\oracle_http_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlparserv2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\olite40.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\aqapi.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orawsdl.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-infra.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-services.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlunit1.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bipres.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bicmn.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\uix2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\share.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\regexp.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\jewt4.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\j2ee_1.3.01.jar;;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\oc4jclient.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\..\..\lib\xml.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\rmic.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\..\..\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\oc4j.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\lib\jmxri.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\lib\javax77.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home/admin_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant-junit.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\junit.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\hatatap.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\services\schema
    CLIENT_CLASSPATH=C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\oc4jclient.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\..\..\lib\xml.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\rmic.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\..\..\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\oc4j.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\lib\jmxri.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\lib\javax77.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home/admin_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar
    JAVA_CLASSPATH=C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\jre\lib\rt.jar
    MY_CLASSPATH=C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\classes
    OBANT_CLASSPATH=;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\serializer_2.7.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xalan_2.7.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\jre\lib\rt.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\classes;C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\lib\tools.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-exts.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-ant.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant-launcher_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\oracle_http_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlparserv2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\olite40.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\aqapi.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orawsdl.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-infra.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-services.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlunit1.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bipres.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bicmn.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\uix2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\share.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\regexp.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\jewt4.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\j2ee_1.3.01.jar;;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\oc4jclient.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\..\..\lib\xml.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\rmic.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\..\..\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\oc4j.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\lib\jmxri.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home\lib\javax77.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\..\j2ee\home/admin_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant-junit.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\junit.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\hatatap.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\services\schema
    OBDK_CLASSPATH=C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\jre\lib\rt.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\classes;C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\lib\tools.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-exts.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-ant.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant-launcher_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\oracle_http_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlparserv2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\olite40.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\aqapi.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orawsdl.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-infra.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-services.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlunit1.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bipres.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bicmn.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\uix2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\share.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\regexp.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\jewt4.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\j2ee_1.3.01.jar;
    OB_CLASSPATH=C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\system\classes;C:\soa10g\product\10.1.3.1\OracleAS_1\jdk\lib\tools.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-common.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-thirdparty.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-exts.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel-ant.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant-launcher_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\ant_1.6.5.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\oracle_http_client.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlparserv2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\olite40.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\aqapi.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\dms.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\orawsdl.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-infra.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bpm-services.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\xmlunit1.0.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bipres.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\bicmn.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\uix2.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\share.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\regexp.jar;C:\soa10g\product\10.1.3.1\OracleAS_1\bpel\lib\jewt4.jar
    Linux classpath
    CLIENT_CLASSPATH=/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/oc4jclient.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/../../lib/xml.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/rmic.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/../../lib/dms.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/oc4j.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/lib/jmxri.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/lib/javax77.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/admin_client.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-common.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-thirdparty.jar
    OB_CLASSPATH=/oracle/product/10.1.3.1/OracleAS_1/bpel/system/classes:/oracle/product/10.1.3.1/OracleAS_1/jdk/lib/tools.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/connector15.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-common.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-thirdparty.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-exts.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-ant.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant-launcher_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/oracle_http_client.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlparserv2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/aqapi.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/dms.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orawsdl.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-infra.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-services.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlunit1.0.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bipres.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bicmn.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/uix2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/jewt4.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/share.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/regexp.jar
    MY_CLASSPATH=/oracle/product/10.1.3.1/OracleAS_1/bpel/system/classes
    OBDK_CLASSPATH=/oracle/product/10.1.3.1/OracleAS_1/jdk/jre/lib/rt.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/system/classes:/oracle/product/10.1.3.1/OracleAS_1/jdk/lib/tools.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/connector15.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-common.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-thirdparty.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-exts.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-ant.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant-launcher_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/oracle_http_client.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlparserv2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/aqapi.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/dms.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orawsdl.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-infra.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-services.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlunit1.0.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bipres.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bicmn.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/uix2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/jewt4.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/share.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/regexp.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/j2ee_1.3.01.jar
    OBANT_CLASSPATH=/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/serializer_2.7.0.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xalan_2.7.0.jar:/oracle/product/10.1.3.1/OracleAS_1/jdk/jre/lib/rt.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/system/classes:/oracle/product/10.1.3.1/OracleAS_1/jdk/lib/tools.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/connector15.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-common.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-thirdparty.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-exts.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-ant.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant-launcher_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/oracle_http_client.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlparserv2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/aqapi.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/dms.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orawsdl.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-infra.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-services.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlunit1.0.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bipres.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bicmn.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/uix2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/jewt4.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/share.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/regexp.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/j2ee_1.3.01.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/oc4jclient.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/../../lib/xml.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/rmic.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/../../lib/dms.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/oc4j.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/lib/jmxri.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/lib/javax77.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/admin_client.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-common.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-thirdparty.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/junit.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant-junit.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/hatatap.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/system/services/schema
    CLASSPATH=/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/serializer_2.7.0.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xalan_2.7.0.jar:/oracle/product/10.1.3.1/OracleAS_1/jdk/jre/lib/rt.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/system/classes:/oracle/product/10.1.3.1/OracleAS_1/jdk/lib/tools.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/connector15.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-common.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-thirdparty.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-exts.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-ant.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant-launcher_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant_1.6.5.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/oracle_http_client.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlparserv2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/aqapi.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/dms.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orawsdl.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-infra.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bpm-services.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/xmlunit1.0.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bipres.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/bicmn.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/uix2.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/jewt4.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/share.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/regexp.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/j2ee_1.3.01.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/oc4jclient.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/../../lib/xml.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/rmic.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/../../lib/dms.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/oc4j.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/lib/jmxri.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/lib/javax77.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/../j2ee/home/admin_client.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-common.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-thirdparty.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/junit.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/ant-junit.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/hatatap.jar:/oracle/product/10.1.3.1/OracleAS_1/bpel/system/services/schema
    In either of the OS, I don't find both the files you have mentioned!

  • If statement in Ant

    Hi,
    Does anyone tell me how to make "if" statement in Ant? I'd like to execute some target if certain conditions are satisfied. <condition> or <available> just sets property values and cannot be "if" statement.
    Let's say, if a property "flag" is true, then I'd like to execute a target called "target1". How can I do this?
    thanks,
    -tom

    most tasks or targets have the ability to check the existence or non-existence of properties. The actual value of a property is not used, its existence is checked.
    The condition task can be used to bring a property in existence under certain conditions.
    Other than that I suggest looking at the ant documentation, it is pretty comprehensive and not hard to understand.

  • How to escape a single quote in a find mode view

    Hello,
    I'm working with JDeveloper 10g.
    I've defined a view that is used in "find mode" in a JSP.
    When a value with a single quote is inserted in a field of the search form, an exception is thrown:
    JBO-27122: SQL error during statement preparation.
    ORA-00907: missing right parenthesis.
    The problem is that the "single quote" is not being escaped:
    WHERE STREET LIKE 'ABAT ESCARRE, DE L'A'
    How could I force the view to escape the "single quote"?
    Thanks

    Arrest the single quote by calling a javascript method.
    This might help you
    Re: af:clientListener javascript function call question
    http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_clientListener.html
    Edited by: Srinidhi on Mar 23, 2011 3:46 PM

  • Creation of data sources by Ant

    Hi all
    Please help me..
    when i create data source by ant(copying data-sources.xml already stored in my hard disk with all valid entries.)and then deploy my EAR file and get the following error:
    10g-deploy:
    [exec] ADMN-300075
    [exec] Nested exception
    [exec] Resolution:
    [exec] Base Exception:
    [exec] javax.naming.NamingException
    [exec] Lookup error: javax.naming.AuthenticationException: RMIConnection Disconnected; nested exception is:
    [exec] javax.naming.AuthenticationException: RMIConnection Disconnected
    [exec] javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: RMIConnection Disconnected; nested exception is:
    [exec] javax.naming.AuthenticationException: RMIConnection Disconnected [Root exception is javax.naming.AuthenticationException: RMIConnection Disconnected]
    [exec] at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168)
    [exec] at oracle.ias.sysmgmt.utility.Oc4jUtil.getOC4JApplicationServerAdministrator(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.getOC4JApplicationServerAdministrator(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)
    [exec] Caused by: javax.naming.AuthenticationException: RMIConnection Disconnected
    [exec] at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2523)
    [exec] at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2339)
    [exec] at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1781)
    [exec] at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:721)
    [exec] at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
    [exec] ... 11 more
    BUILD SUCCESSFUL
    Total time: 4 minutes 58 seconds
    But when i crete data source using Oracle enterprise manager,I m able to deploy my EAR file successfully.
    Can nebody please tell me how can i create data source manually by ant script ant then deploy my appln. successfully
    The entries done by me in data-sources.xml are:
    <data-source class="com.evermind.sql.orionCMTDataSource" location="jdbc/los" connection-driver="oracle.jdbc.driver.OracleDriver" username="dbprod_test" password="dbprod_test" url="jdbc:oracle:thin:@//10.0.52.160:1521/orcl" name="jdbc/los"><description>LOSDB</description></data-source
    Thanks in advance..

    user534925,
    Do you want to create a global datasource or one for a specific J2EE application?
    For a global datasource, you can use the "admin.jar" file.
    Type the following command for more details:
    java -jar admin.jar -helpOne of the options is "-installDataSource".
    You should be able to launch "admin.jar" from an "ant" script (I think -- I don't use "ant").
    Sorry, I don't remember how to set up a datasource for a specific application.
    (And I'm too lazy to search for it for you, now :-)
    Good Luck,
    Avi.

  • Error in starting weblogic server using ant

    Hi,
    I am trying to start the weblogic server using ant.I used the following command:
    <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath>
    <pathelement location="${BEA_HOME}/weblogic81/server/lib/weblogic.jar" />
    </classpath>
    </taskdef>
    <target name="start-weblogic">
    <wlserver username="weblogic" password="weblogic" failonerror="false" servername="myserver" domainname="rwadomain" dir="${BEA_HOME}/user_projects/domains/rwadomain" host="localhost" port="7001" weblogichome="${BEA_HOME}/weblogic81" beahome="${BEA_HOME}" policy="${BEA_HOME}\weblogic81\server\lib\weblogic.policy" />
    </target>
    But it is giving me an error that java.lang.NoClassDefFoundError: weblogic/Server
    I also tried the following command:
    <target name="start-weblogic">
    <java classname="weblogic.Server" fork="yes" classpathref="weblogic.classes" failonerror="true">
    <sysproperty key="weblogic.Domain" value="rwadomain"></sysproperty>
    <sysproperty key="weblogic.RootDirectory" value="C:\bea\user_projects\domains\rwadomain"></sysproperty>
    <sysproperty key="weblogic.ConfigFile" value="config.xml"></sysproperty>
    <sysproperty key="weblogic.ListenAddress" value="localhost"></sysproperty>
    <sysproperty key="weblogic.ListenPort" value="7001"></sysproperty>
    <arg line="-ms200m -mx200m"></arg>
    </java>
    </target>
    But the problem with this command is that it does not reurn control to execute the further commands.
    Please suggest something.
    Thanks in advance
    -amit

    Hi,
    You should take a look at the <parallel> ant task.
    Regards,
    LG

  • Can I suppress HTML escaping in a read-only item?

    I have an item that is displayed as read-only. The item contains HTML markup. HTML DB seems to automatically escape special characters in the item value.
    Is there a way to suppress this?
    For example, I have a text input item with the value:
    &lt;b&gt;Hello&lt;/b&gt;
    (that is, it contains the bold elements which I want to output as is).
    HTML DB seems to be escaping the item value so I see the bold elements in the browser and what I see in the page source is: &amp;lt;b&amp;gt;Hello&amp;lt;/b&amp;gt;
    There doesn't seem to be "escape special characters" / "don't escape special characters" options for read-only mode like there is for "Display As Text" items. Can anyone suggest a workaround?
    Thanks,
    Eric

    Eric - Text input items are escaped on output whether they are read-only or not. But to answer your question generally, APEX does not emit input items of any type to the browser without escaping them unless there is a guarantee that they have been escaped on input, e.g., when passed in through the URL, or that they acquired their value from within the application. These guarantees apply only to non-POSTable item types such as Display As Text (does not save state) items and a couple others. So in short, we observe the rule (which should be observed by app developers) that it is never safe (from an XSS-protection standpoint) to emit a POSTable item without escaping it first.
    In your case, can you define a safe item type (Display as Text, does not save state) and set its source to the markup-containing item that you are now displaying as read-only? If so, you can conditionally display only the safe one and hide the other.
    Scott

  • How to create an if-statement in ANT

    Hopefully many of you build with ANT and can help be with my problem. I want to put an if-statement within my ANT script.
    Ex) if(flag) execute(something);
    I have been searching the documentation and can't find anything useful.
    Thanks!

    Hello,
    There is a very nice ANT add-on which is called Antelope:
    http://antelope.sourceforge.net/manual/bk03.html
    It offers <if>, <switch> and other useful ANT tasks.
    Regards,
    Slava Imeshev
    Viewtier Devenv
    http://www.viewtier.com/devenv/
    Set your development environment

  • JSP problem with ANT

    Hello!
    I built up a web site and I want to test them using ANT. It works fine with other web page, however it doesn't work with web pages with "session" statement. For example in login.jsp I have the following statement
    session.setAttribute("user", request.getParameter("userName"));
    And if the user's name and password are correct, the user is directed to home.jsp, where i have the following statement to retrieve the user's name:
    String id=session.getAttribute("user").toString();
    In order to test the above 2 pages with ANT, I have the following code in builder.xml:
    <?xml version='1.0'?>
    <project name="proj" default="test" basedir=".">
    <target name="test">
    <get src="http://path/login.jsp?userName=id&passWord=1111" dest="1.html" />
    </target>
    </project>
    When I run the script, I get the error that the home.jsp cannot be opened (see below)
    [get] Error opening connection java.io.IOException: Server returned HTTP response code: 500 for URL: http://path/home.jsp
    I am pretty sure the above error is caused by the "session" statement, because if I remove the statement in home.jsp, the page can be correctly opened. But I really need the "session" statement, Can someone tell me how to deal with it?
    thanks a million.

    Usually with a 500 error there's more detail in a server log somewhere. Can you find anything in stderr.log or some such?

  • Test jsp pages with ant

    Hello!
    I built up a web site and I want to test them using ANT. It works fine with other web page, however it doesn't work with web pages with "session" statement. For example in login.jsp I have the following statement
    session.setAttribute("user", request.getParameter("userName"));
    And if the user's name and password are correct, the user is directed to home.jsp, where i have the following statement to retrieve the user's name:
    String id=session.getAttribute("user").toString();
    In order to test the above 2 pages with ANT, I have the following code in builder.xml:
    <?xml version='1.0'?>
    <project name="proj" default="test" basedir=".">
    <target name="test">
    <get src="http://path/login.jsp?userName=id&passWord=1111" dest="1.html" />
    </target>
    </project>
    When I run the script, I get the error that the home.jsp cannot be opened (see below)
    [get] Error opening connection java.io.IOException: Server returned HTTP response code: 500 for URL: http://path/home.jsp
    I am pretty sure the above error is caused by the "session" statement, because if I remove the statement in home.jsp, the page can be correctly opened. But I really need the "session" statement, Can someone tell me how to deal with it?
    thanks a million.

    One mistake i find in your code is while retreiving the session value its session.getAttribute("userName"), as you stored the value using the parameter 'userName'. Is it not causing problem. Please check...

  • What is escape character for for Carriage Return, Line Feed, Form Feed

    Hi
    I need to a text file which should have following characters
    Carriage Return, Line Feed, Form Feed
    How do i insert them in a string
    i know "\f" is carriage return,
    but what are characters for line feed and form feed
    Ashish

    uncle_alice wrote:
    jverd wrote:
    remus.dragos wrote:
    I forgot that it does not exist in Java. A good thing
    from my point of view.Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    >
    >
    >I forgot that it does not exist in Java. A good thing
    from my point of view.
    Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    } Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    Ah, I thought he was saying Java doesn't support ringing the bell.

Maybe you are looking for

  • Why won't my computer read my iPhone?

    It notifies me that I have plugged in my phone but it does not allow me to add music. The part of iTunes that usually pops up when an iPhone is plugged in does not pop up, so I am not able to add music or really do anything. I have reinstalled itunes

  • Insert multiple text files to multiple tables that have different table structures

    Hi All, I have a small problem. I have lots of text files in a folder location. Say for an example Company.txt, Code.txt. I need to insert all these files to tables similar to the file structure. Company file to Company table and Code file to Code ta

  • Substitution problem in VO with viewlink and not in expert mode

    Hi All i have to extend a VO ,standar VO is not in expert mode so i made it and then extended the VO(need to add two new date columns) and substituted the BC4j ,i was involved in this discussion also Re: Substitute ViewObject. Urgent!!!!!  Thank you

  • Yet another colour management thread

    Here is a warm, saturated image worked on in lightroom, converted to adobe RGB on export, converted to SRGB on output from photoshop. (srg profile not embedded). Its far too saturated and red Here is the same image with the adobe rgb tagged. and as s

  • Unexpected Results Query of Queries

    assume you have a query named q1 with more than 1 record. What would expect to q2 to look like? <cfquery name="q2" dbtype="query"> select count(*) as abc from q1 where 1 = 2 </cfquery> If you run it, were your expections met? Mine certainly were not.