Taskdef cannot be found.

Hi,
I try to find a solution for 'taskdef ----- cannot be found' warning in build.xml file.
This comes when I include a referenced jar file content.
I added JAR files to the classpath, and still getting the same issue.
Sample code:
       <!-- directory that contains emma.jar and emma_ant.jar: -->
       <property name="emma.dir" value="${basedir}/../lib" />
       <path id="emma.lib" >
         <pathelement location="${emma.dir}/emma.jar" />
         <pathelement location="${emma.dir}/emma_ant.jar" />
       </path>
       <taskdef resource="emma_ant.properties" classpathref="emma.lib" />Please help me out in getting a solution.
Thanks,
Leslie V

Hi.
Did you check your emma_ant,properties? Is it available and does it contain all the necessary keys/values? Where does the error you posted occur (during setup of the emma-tasks or later when they are to be used by your build-script?)?
Bye.

Similar Messages

  • Taskdef class oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy cannot be found

    Hi Iam getting the error on running undeploy task i.e. basically oc4j ant task. Below is the scenario & configuration explained.
    Please help if anyone has resolved it.
    Error:-
    jar:file:/D:/ccsaux/lib/apache/ant/1.8.0/lib/ant-oracle-classes.jar!/oracle/antlib.xml:94: taskdef class oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy cannot be found
    using the classloader AntClassLoader[]
    COnfiguration Changes:-
    1)I have the the ant-oracle.jar and ant-oracle-classes.jar added to my ant/lib folder.
    2)Added namespace xmlns:oracle="antlib:oracle" to my project.
    3)ant-oracle.properties & ant-oracle.xml are kept parallel to my build script.
    Code Snippet:-
    <target name="undeploy" depends="build-common.init">
    <mkdir dir="${destination}/logs"/>
    <oracle:undeploy deployerUri="${deployer.uri}" userid="${server.user}" password="${server.password}" deploymentName="${earfile.name}" logfile="${destination}/logs/oc4j_ccs.log"/>
    </target>

    try to restore the web services specifc libraries - then should not prevent you from using Axis 1.2 or 1.3 on DP4.
    At least, it works for me.
    All the best,
    Eric

  • Taskdef [b]class com.sun.xml.rpc.tools.ant.Wscompile cannot be found[/b]

    Hi everybody,
    I m new in developing web service.
    I am using NetBeans IDE 4.1 EA2 for developing web service.
    I have created a sample jaxrpc web service. When i build project it gives me error that:taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found.
    This error is contain in the file build-impl.xml which is referred by build.xml file.
    netbeans ide uses ant tool for compiling, building & deploying web service.
    All the xml files are automatically generated by netbeans ide.
    Please help me with this...
    Thanx in advance..
    Nirav Patel.

    You'll need to add jaxrpc-impl.jar to your
    classpath.
    You can find it under %JWSDP_HOME%\jaxrpc\lib
    If you haven't got JWSDP then try
    http://java.sun.com/webservices/downloads/webservicesp
    ack.htmlhello...
    i want to add jaxepc-impl.jar to classpath.
    i got the same problem.
    i check the user variable c:\sun\jwsdp-1.6\jwsdp_shared\bin;c:\sun\jwsdp-1.6\jwsdp_shared\bin
    have been there.
    but still the same error appear in the netbeans.
    i hope can't get the one-by-one steps guidelines from u.
    thanks

  • Taskdef class weblogic.wsee.tools.anttasks.JwscTask cannot be found

    Hi,
    I use ant to deploy adf web applications. However, I get errors:
    --------------error----------------
    Buildfile: E:\SOAworkspace\ANT\Project1\build2.xml
    [echo] Classpath: D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar
    BUILD FAILED
    E:\SOAworkspace\ANT\Project1\build2.xml:14: taskdef class weblogic.wsee.tools.anttasks.JwscTask cannot be found
    Total time: 0 seconds
    --------------ant------------------
    <project default="all">
    <property name="weblogic.jar.classpath" value="D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar"/>
    <echo>Classpath: ${weblogic.jar.classpath}</echo>
    <target name="all" depends="clean,build-service,deploy" />
    <target name="clean">
    <delete dir="output" />
    </target>
    <path id="my.path">
    <pathelement path="D:\weblogicSA2011\jdk160_18\lib\tools.jar"/>
    <pathelement path="D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar"/>
    </path>
    <taskdef name="jwsc"
    classname="weblogic.wsee.tools.anttasks.JwscTask" classpath="D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin\weblogic.jar" />
    <target name="build-service">
    <jwsc srcdir="HelloWorld" destdir="c:\helloWorldEar">
    <jws file="ping.java" type="JAXWS"/>
    </jwsc>
    </target>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="D:\weblogicSA2011\wlserver_10.3\server\lib\weblogic.jar"/>
    <target name="deploy">
    <wldeploy action="deploy"
    name="otnapp_application1.ear"
    source="E:\SOAworkspace\otnapp\deploy\" user="weblogic"
    password="welcome1"
    adminurl="t3://localhost:7001"
    targets="wl_server"/>
    </target>
    </project>

    Those taskdefs are in the %WL_HOME%/server/lib/weblogic.jar file. Are you sure that you have that file in a <path> element of the Ant build.xml script (or in the CLASSPATH environment variable that Ant is using)?

  • Taskdef class  weblogic.ant.taskdef.management.WLdeployn  cannot be found.

    Hi,
    we are deploying war in weblogic server but getting error like taskdef class  weblogic.ant.taskdef.management.WLdeployn  cannot be found.*
    we are creating directory and copying required jars in to that directory and we referening that directory name in classpath of taskdef .
    <!--property defined -->
    <property name="wl_jar" value="${wllib}/weblogic.jar"/>
    <!--copy jars into wllib directory -->
    <target name="copylibs">
    <mkdirdir="wllib"/>
    <copyto dir="wllib" file="weblogic.jar" verbose="true" preservelastmodified="true" />
    </target>
    <!--weblogic taskdef for deploy war on weblogic server. -->
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" >
    <classpath >
    <pathelement location="${wl_jar}"/>
    </classpath>
    </taskdef>
    But getting taskdef class weblogic.ant.taskdef.management.WLdeployn cannot be found .
    please give me a solution.
    Thanks,

    Hi
    This error "java.lang.NoClassDefFound weblogic/util/debug" kind of looks familiar while running some standalone Java client programs that refer to stuff deployed on Weblogic. The ideal way to fix is generate wlfullclient.jar and add that in the classpath. Adding or calling setDomainEnv.sh (.cmd) will also work, but try using this wlfullclient approach also. The below post have the links that has all the details.
    Re: Corrupted JAR:C:\workspace\weblogic.jar
    Thanks
    Ravi Jegga

  • Taskdef class org.apache.catalina.ant.deploytask cannot be found

    I am trying some examples of webserives. These examples are required to be run by Ant tool. Now I intall JWSDP-2.0 and tomcat50-jwsdp separately. And set up enviroment variable. now run Ant to compile the program, displays an error-----D:\CIS631\JWSNutshell\examples\chapter1\amazon\buildsetup.xml:31:taskdef class org.apache.catalina.ant.deploytask cannot be found. I have no any idea for this error. Who could tell me how to solve it? Thanks for your help!

    >
    BUILD FAILED
    ........jwsdp-1.1/tutorial/examples/jaxrpc/common/targe
    s.xml:4: taskdef class
    org.apache.catalina.ant.DeployTask cannot be foundFrom the "Getting Started" section of the tutorial, you need to add <JWSDP_HOME>/jakarta-ant-1.5.1/bin to the front of your PATH. This ensures that you're using the correct version of ant for the example.
    Cheers,
    Bobby Bissett

  • WsImport cannot be found

    I am trying to run the samples that came with JAX-WS (the Java API for XML Web Services)
    I keep getting this error when I run ant on the build.xml file:
    wsimport-init:
        [mkdir] Created dir: C:\javaeetutorial5\examples\coffeebreak\cb-common\build
    \generated\wsimport\client
        [mkdir] Created dir: C:\javaeetutorial5\examples\coffeebreak\cb-common\build
    \classes
       [subant] Failure for target 'default' of: C:\javaeetutorial5\examples\coffeeb
    reak\cb-common\build.xml
       [subant] The following error occurred while executing this line:
       [subant] C:\javaeetutorial5\examples\bp-project\jaxws-ant.xml:9: taskdef clas
    s com.sun.tools.ws.ant.WsImport cannot be foundI know what the problem is:it cannot find the jar files that come with the JAX-WS download.
    I have these jar files as I downloaded jaxws-2_0.jar but how can I make ant find them without changing the ant script?
    It cannot find them at "com.sun.tools.ws.ant.WsImport".
    Does this mean it is looking for the jars in the Sun App Server installation directory?

    Thanks for your help. I am no longer getting the error "WsImport cannot be found" but now I have the following error:
    wsimport-init:
       [subant] Failure for target 'default' of: C:\javaeetutorial5\examples\coffeeb
    reak\cb-common\build.xml
       [subant] The following error occurred while executing this line:
       [subant] C:\javaeetutorial5\examples\bp-project\jaxws-ant.xml:9: java.lang.Un
    supportedClassVersionError: com/sun/tools/ws/ant/WsImport (Unsupported major.min
    or version 49.0)WsImport is located by the compiler but there is a deprecated method error it seems.

  • Build-impl.xml Wscompile cannot be found

    I have my webservice working fine when I run it thru Netbeans and the Sun server. When I try using tomcat I get the error:
    build-impl.xml:281 taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found.
    I tried including:
    jaxrpc-impl.jar which is where the wscompile exists, but I still got the same error. What am I missing here?

    You'll need to add jaxrpc-impl.jar to your
    classpath.
    You can find it under %JWSDP_HOME%\jaxrpc\lib
    If you haven't got JWSDP then try
    http://java.sun.com/webservices/downloads/webservicesp
    ack.htmlhello...
    i want to add jaxepc-impl.jar to classpath.
    i got the same problem.
    i check the user variable c:\sun\jwsdp-1.6\jwsdp_shared\bin;c:\sun\jwsdp-1.6\jwsdp_shared\bin
    have been there.
    but still the same error appear in the netbeans.
    i hope can't get the one-by-one steps guidelines from u.
    thanks

  • When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder". How can i fix this?

    When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder. How can i fix this problem?

    Anyone can help to advice how to solve this issue ?

  • Error message The volume for "linen.jpg" cannot be found.

    Hi Community,
    I have a number of photos in my library that appear in the photos and events, but if I try to edit it, copy it, move it, or link my other desktop to my laptop iphoto where these photos live, I get a message that says the volume cannot be found.
    Then if I click edit, I get another message that reads
    Image Cannot be Edited
    The original is offline.
    Can anyone tell me how to fix this?
    I no longer have the original files to re import.
    Thanks!
    Lee

    You get that message when the library is a "referenced" library and the source file is not where it was when it was originally imported into the library. Check the iPhoto Advanced preference pane to see if you're running a managed or referenced library.
    What version of iPhoto and system are you running?
    OT

  • The specified store provider cannot be found in the configuration, or is...

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE     11.2.0.2.0     Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    All,
    I have a solution developed in Visual Studio 2012 targetting .Net 4.0. Simplified: Startup project is a WPF library and supporting this library is another project that uses Entity Framework to retrieve data. I have copied the connection strings from my EF project to my startup project, and everything seems to work fine on the development machine.
    However, as sson as this project is run on a user's desktop they get the error:
    System.ArgumentException
    The specified store provider cannot be found in the configuration, or is not valid.
    Stack trace (transcribed from screenshot, so there might be typos):
    at.system.Data.EntityClient.EntityConnection.GetFactory(String providerString)
    at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
    at System.Data.EntityClient.EntityConnection..ctor(String connectionString)
    at System.Data.Entity.Internal.LazyInternalConnection.InitializeFromConnectionStringSetting(ConnectionStringSettings appConfigConnection)
    at System.Data.Entity.Internal.,LazyInternalConnection.TryInitializeFromAppConfig(String name, AppConfig config)
    at System.Data.Entity.Internal.LazyInternalConnection.Initialize()
    at System.Data.Entity.Internal.LazyInternalConnection.CreateObjectContextFromConnectionModel()
    at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
    at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
    at System.Data.Entity.Internal.Linq.InternalSet` 1.Initialize()
    at System.Data.Entity.Internal.Linq.InternalSet` 1.get_InternalContext()
    at System.Data.Entiy.Infrastructure.DbQuery` 1.System.Linq.IQueryable.get_Provider()
    at System.Linq.Queryable.Where[TSource](IQueryable` 1 source, Expression` 1 predicate)
    at MyEntityNameSpace.MyEntitySet.LoadData()
    I've already verified that Oracle.DataAccess is referenced in my EF project, and I'm including oci.dll, orannzsbb11.dll, oraociei11.dll, and OraOps11w.dll in my main library (fat installation).
    This configuration worked when using the older ADO.Net DataSets, but now I want to use EF 4.4 (DataBase first/model first/whatever it's not Code First) because it's just easier to code against. So obviously I'm missing something when it comes to deploying my solution. Any ideas?
    Note that this is a desktop application using MS OneClick.

    Same issue:
    The specified store provider cannot be found in the configuration, or is not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
    You mention "Sounds like the client system doesn't have an Oracle client installed."
    I am using Win Server 2008 R2. I have installed what i think is the right client. How do i tell?
    What is the right client? Where do i get it?

  • Database Table cannot be found when Verify Database

    Post Author: brentlaw
    CA Forum: Other
    I have been using CRW 7 for many years.  I recently upgraded to XI (I have current version).  I can open existing reports and create new reports fine.  The problem is when I Verify Database I get an error message "The Database table <tablename here> cannot be found. Remove this table from the report". 
    This happens to all existing and new created reports.  The data fills correctly when previewing.  The problem only occurs when Verifying Database. 
    I thought it might be an ODBC driver problem so I upgraded my driver to v 3.525.1117.  At least I think I upgraded it I did not check the version before I installed SQL 2005 SP2.  After installing SP2 it seemed to be fine but a week later the problem came back.  Mysterious eh?
    I am trying to launch a report from VB6 using RDC and rpt file.  I get logged in correctly but at .viewreport I get a generic error message.  I am assuming the problem is related the the issue I raise in this forum post.

    Post Author: brentlaw
    CA Forum: Other
    I fixed the problem.  In CR XI Developer Designer window I opened up Database-SetDataSourceLocation.  I noticed that in "Properties" the last item "Use DSN Default Properties": was set to True.  I changed this value to False.  Now this problem is solved.
    I am Not using Windows Authentication I am using SQLServer authentication.  In my code I was passing SQLServer Authentication credentials. 
    I opened up all of my CR 7 reports in CR XI and changed this setting on both the Main and the Subreort property in the SetDataSourceLocation dialog box and now all my reports work.  I am a happy camper.
    I don't know if this is a CR 7 conversion to CR XI only situation or not.  Hope this information helps someone else.

  • Importing CD's to iTunes fail with "The required folder cannot be found"

    I have my iTunes library on an external drive.  Everything works fine, except that I cannot import CD's into iTunes.  When I try, I get the error "The required folder cannot be found".  My work around currently is to:
    1. Upfdate my preference for "iTunes Media Folder Location" to the standard location by clicking on the "Reset" button.
    2. Import the CD
    3. Copy the folder that it created with the songs to the correct location on the external disk
    4. Update the preference or Folder Location back to my external library location
    5. Double click on the first song where I get the message that it cannot be located
    6. Locate it manually, and iTunes then searches for the others and fix the location.
    This is extremely frustrating and impractical.  I am on the very latest release and it is still happening.  Does anyone know how to get around it? 

    I have the same problem as pyzaptys' with the exception that there is no My Music folder in the default location. I created one but the iTunes install cannot see it. I used the tweakui as suggested in the response to the original post but the app does not see the My Music folder in the special folders selections.
    I have tried many angles but to no avail.
    To pyzaptys: try these out:
    http://www.brightsolutions.com/wagora/w-agora/view.php?site=bs&bn=bs_software&ke y=1109784889&first=1127932569&last=1022869176
    http://forums.techguy.org/archive/t-402469.html

  • Error importing CD (required folder cannot be found)

    iTunes 10.6, running on a Mac Mini with OSX 10.6.8
    Hi all,
    A bit of backstory. Been using iTunes to manage my music collection for over 8 years. At one point, I moved my music off of a primary disk to an external disk, although perhaps oddly set up, in that the 'iTunes Music Library.xml' file was still local (under ~User/Music), and just the music files were external (under /Volumes/Media/Music).  When the iTunes Media directory structure upgrade happened, the only way I could access my music was to put a soft link from the Music folder to my external drive.
    For awhile now, I've been in a state where for the most part, I can listen to all of my music, but when I try to import a CD, I get the 'required folder cannot be found' error.
    Help!  Do I have to rebuild my file somehow?  Edit the xml file directly?
    Thanks so much.
    I'm happy to provide more information, such as the xml file, directory listings, etc..  I'm just not sure what's helpful.

    I have the same problem.  I recently moved my music from a Vista PC to a new Laptop with an external CD drive. It will copy one song from the CD and it will show in the Music file and then I get the message ' Error importing a CD - Folder not found'.  I must unplug the CD drive and plug it back in.  I have seen no fix for this problem.

  • PL/SQL reporting problem -  "The webpage cannot be found" error

    Dear All Expert,
    I'm here having a problem on generating apex report using PL/SQL. "The webpage cannot be found" error appear when "Search" button pressed.
    I'm appreciating if anyone can give their idea on this issue.
    PL/SQL will be fired when "Search" button pressed.
    My PL/SQL code as below;
    DECLARE
    lv_desc CLOB:='';
    lv_note_desc varchar2(4000);
    lv2      CLOB;
    lv_title varchar2(2000);
    lv_ti          varchar2(10);
    lv_tg          varchar2(10);
    lv_tr_cnt     integer:= 0;
    lv_ti_code     varchar2(6);
    lv_age          number(6):= 0;
    lv_note_flag     varchar(1);
    fv_note_flag varchar2(6);
    fv_ti_code varchar2(6);
    ti_code varchar2(20);
    ti_name varchar2(50);
    ti_tm_code varchar2(6);
    ti_test_grp varchar2(6);
    note_desc varchar2(4000);
    ti_unit varchar2(20);
    ti_insurance_code varchar2(20);
    ti_price number(14);
    ti_sex varchar(1);
    ti_age varchar(10);
    ti_tr_desc varchar(30);
    ti_lolimit number(10);
    ti_uplimit number(10);
    ti_plolimit number(10);
    ti_puplimit number(10);
    lv_hkey          number(10):= 0;
    lv_found     varchar2(1):= 'N';
    lv_itpv     varchar2(4000);          
    lv_lolimit     char(15);
    lv_uplimit     char(15);
    lv_tr          char(15);
    lv_tc          char(30);
    CURSOR READ_C1_REC IS
    select ti_code, ti_name, ti_tm_code, ti_test_grp,ti_unit, ti_itpv_flag,ti_attached_cmt
    from test_item
    where ti_code like NVL(:P11104_TI_CODE,'%')
    and ti_test_grp like NVL(:P11104_TG_CODE,'%')
    and ti_code not like '0MB%'
    order by ti_code;
    C1_REC READ_C1_REC%ROWTYPE;
    CURSOR READ_C2_REC IS
    select tr_sex_code,tr_ageto,tr_agecode,tr_range_desc,tr_mrr_desc,tr_normal_lolimit,tr_upper_uplimit,tr_panic_lolimit,tr_panic_uplimit
    from tr_range
    where tr_ti_code = lv_ti_code
    order by tr_ageto asc,tr_sex_code desc;
    C2_REC READ_C2_REC%ROWTYPE;
    cursor READ_C3_REC is
    select tivh_key
    from test_itpvh
    where tivh_ti_code = ti_code
    order by tivh_efd desc;
    C3_REC READ_C3_REC%ROWTYPE;
    cursor READ_C4_REC is
    select tivd_lolimit,tivd_uplimit,tivd_value,tivd_rr_desc
    from test_itpvd
    where tivd_hkey = lv_hkey
    order by tivd_seqno;
    C4_REC READ_C4_REC%ROWTYPE;
    BEGIN
    lv_title := '<div style="overflow: auto;height: 500px; width: 1000px;"><table style="width: 500px" cellpadding="0" cellspacing="0"><thead><tr><th>Code</th><th>Name</th></tr></thead>';
    htp.p(lv_title);
    OPEN READ_C1_REC;
    LOOP
    FETCH READ_C1_REC INTO C1_REC;
    EXIT WHEN READ_C1_REC%NOTFOUND;
         lv_note_flag := 'N';     
    fv_note_flag := 'N';
         fv_ti_code := c1_rec.ti_code;
    ti_code := c1_rec.ti_code;
    ti_name := ' '||c1_rec.ti_name;
    ti_tm_code := c1_rec.ti_tm_code;
         ti_test_grp := c1_rec.ti_test_grp;
    lv_desc := '<tbody><tr><td><input type="hidden" name="f01" value="'||fv_ti_code||'" /></td>'||
    '<td><input type="text" name="f02" size="20" maxlength="20" value="'||ti_code||'" /></td>'||
    '<td><input type="text" name="f03" size="50" maxlength="50" value="'||ti_name||'" /></td>'||
    '<td><input type="text" name="f04" size="6" maxlength="6" value="'||ti_tm_code||'" /></td>'||
    '<td><input type="text" name="f05" size="6" maxlength="6" value="'||ti_test_grp||'" /></td>';
    if c1_rec.ti_itpv_flag = 'Y' then
         lv_note_flag := 'Y';
         open read_c3_rec;
         loop
              fetch read_c3_rec into c3_rec;
              exit when read_c3_rec%notfound;
              lv_hkey := c3_rec.tivh_key;
              lv_found := 'Y'; exit;
         end loop;
         close read_c3_rec;
    if lv_found = 'Y' then
              lv_lolimit := 'Lower limit'; lv_uplimit := 'Upper limmit';
              lv_tr := 'Result'; lv_tc := 'Comment';
              lv_itpv := 'INTERPRETED TEST RESULT'||chr(10)||'-----------------------'||chr(10)||lv_lolimit||lv_uplimit||lv_tr||lv_tc||chr(10);
              open read_c4_rec;
              loop
              fetch read_c4_rec into c4_rec;
              exit when read_c4_rec%notfound;
              lv_lolimit := to_char(c4_rec.tivd_lolimit,'999990.999');
              lv_uplimit := to_char(c4_rec.tivd_uplimit,'999990.999');
    lv_tr := c4_rec.tivd_value;          
              lv_tc := c4_rec.tivd_rr_desc;
              lv_itpv := lv_itpv||chr(10)||lv_lolimit||lv_uplimit||lv_tr||lv_tc;
              end loop;
              close read_c4_rec;
         end if;
    note_desc := lv_itpv||chr(10)||chr(10);
         end if;
         if ltrim(rtrim(c1_rec.ti_attached_cmt)) is not null then
         lv_note_flag := 'Y';
         note_desc := note_desc||'ATTACHED COMMENTS'||chr(10)||'-----------------'||chr(10)||ltrim(rtrim(c1_rec.ti_attached_cmt))||chr(10);
         end if;
    begin
         select unit_name into ti_unit
    from unit_tbl
    where unit_code = c1_rec.ti_unit;
         exception when no_data_found then
    ti_unit := null;
         end;
    lv_desc := lv_desc ||'<td><input type="text" name="f06" size="20" maxlength="20" value="'||ti_unit||'" /></td>';
    begin
         select imh_insurance_code, imh_curr_p1 into ti_insurance_code, ti_price
         from item_masterh
    where imh_code = c1_rec.ti_code;
         exception when no_data_found then
         ti_insurance_code := null; ti_price := null;
         end;
    lv_desc := lv_desc ||'<td><input type="text" name="f07" size="20" maxlength="20" value="'||ti_insurance_code||'" /></td>'||'<td><input type="text" name="f08" size="14" maxlength="14" value="'||to_char(ti_price)||'" /></td>';
    lv_ti_code := c1_rec.ti_code;     
    lv_tr_cnt := 0;
    lv2 := '<table width="100%" border="0" bgcolor="#009900" cellspacing="0">';
    OPEN READ_C2_REC;
         LOOP
         FETCH READ_C2_REC INTO C2_REC;
         EXIT WHEN READ_C2_REC%NOTFOUND;
         lv_tr_cnt := lv_tr_cnt + 1;
    if c2_rec.tr_agecode = 'Y' then                    
    lv_age := c2_rec.tr_ageto / 365;
         elsif c2_rec.tr_agecode = 'M' then
              lv_age := c2_rec.tr_ageto / 30;
         else
              lv_age := c2_rec.tr_ageto;
         end if;
         ti_sex := c2_rec.tr_sex_code;
    ti_age := lv_age||c2_rec.tr_agecode;     
    ti_tr_desc := ' '||c2_rec.tr_range_desc;
         ti_lolimit := c2_rec.tr_normal_lolimit;
         ti_uplimit := c2_rec.tr_upper_uplimit;
         ti_plolimit := c2_rec.tr_panic_lolimit;
         ti_puplimit := c2_rec.tr_panic_uplimit;
    if c2_rec.tr_range_desc = 'MRR' then
         lv_note_flag := 'Y';
         note_desc := 'MRR DESCRIPTION'||chr(10)||'---------------'||chr(10)||c2_rec.tr_mrr_desc||chr(10)||chr(10)||note_desc;
         end if;
    if lv_note_flag = 'Y' then
    fv_note_flag := 'Y';
    end if;
    lv2 := lv2 || '<tr><td><input type="text" name="f09" size="1" maxlength="1" value="'||ti_sex||'" /></td>'||'<td><input type="text" name="f10" size="10" maxlength="10" value="'||to_char(ti_age)||'" /></td>'||'<td><input type="text" name="f11" size="30" maxlength="30" value="'||ti_tr_desc||'" /></td>'||'<td><input type="text" name="f12" size="10" maxlength="10" value="'||to_char(ti_lolimit,'99990.999')||'" /></td>'||'<td><input type="text" name="f13" size="10" maxlength="10" value="'||to_char(ti_uplimit,'99990.999')||'" /></td>'||'<td><input type="text" name="f14" size="10" maxlength="10" value="'||to_char(ti_plolimit,'99990.999')||'" /></td>'||'<td><input type="text" name="f15" size="10" maxlength="10" value="'||to_char(ti_puplimit,'99990.999')||'" /></td></tr>';
         END LOOP; lv2 := lv2||'</table>';
         CLOSE READ_C2_REC;
    if lv_tr_cnt = 0 then
         if lv_note_flag = 'Y' then
    fv_note_flag := 'Y';
    end if;
         end if;
    lv_desc := lv_desc||'<td><input type="hidden" name="f16" value="'||fv_note_flag||'" /></td>'||'<td><input type="hidden" name="f17" value="'||note_desc||'" /></td>';
         lv_desc := lv_desc||'<td>'||lv2||'</td></tr></tbody>';
    htp.p(lv_desc);
    END LOOP;
    CLOSE READ_C1_REC;
    htp.p('</table>');
    END;
    Thanks you very much in advance!

    First thing I'd say is that you're code doesn't compile:
    lv_title := '   //  <----Secondly, does no-one use comments anymore? Isn't this drilled into people in programming classes at colleges? There's a whole bunch of code there but not much in the way of explanation as to what you are trying to achieve. It might make perfect sense to you now but try going back to it in a year and see if you can untangle it's purpose.
    Thirdly, is there a specific reason why you've chosen to manually generate a report in PL/SQL, rather than delegating it to a report region? I understand that for particular formatting requirements (denormalised data, cells-within-cells etc), it is occasionally necessary to go to these lengths but I can't help but feeling a well-written query could simplify a lot of this, particularly the references multiple cursors.

Maybe you are looking for

  • Tables for Opportunity "Status" and "Reason"

    Hi, Can someone help me in finding the tables for determining "Status" and "Reason" for an opportunity along with the relvant text descriptions? Regards, Sandeep

  • Why my clients are not receiving KB943729? Logs on the replica server indicate they are being received properly.

    Hello Everyone. Thank you very much for looking into this, Let me explain a little bit of the big corporate picture, we have one main upstream server, and 50+ replica server that monthly receives updates from our upstream server. my boss asked me to

  • Labview 2009 I/O assistant issue

    Hi, I'm using labview 2009, and I can't get the I/O assistant to work-everytime I try to run it, it gives me the error message "Measurement & Automation Explorer or the Instrument I/O Assistant is not installed correctly. Please install these from La

  • How do I enable airplay?

    I got the iPhone 5c, and I have read a support tab about how to enable it. Here's the link. https://discussions.apple.com/thread/5334698 My iPhone is up-to-day, and it says I have to be in the control center to turn it on, but when I open it up, all

  • Find range partition key information

    Hello, I try to insert a row in a table and I get this msg: "inserted partition key is beyond highest legal partition key". This table has a range partitioning key but I don't know on which colmn(s) this partioning is working. Is there a way to find