JSPs with custom components will not compile

All,
I have written a custom component, but am having trouble getting it to work. When i place it in a jsp or jspx and try to run the application using this control, i get compilation errors:
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
[javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
[javac] location: class cpidemo.wpfRenderer
[javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2054: cannot find symbol
[javac] symbol : method setParent(javax.servlet.jsp.tagext.Tag)
[javac] location: class cpidemo.wpfRenderer
[javac] jspxth_cpi_wpf_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_webuijsf_panelLayout_2);
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2063: cannot find symbol
[javac] symbol : method doStartTag()
[javac] location: class cpidemo.wpfRenderer
[javac] int jspxeval_cpi_wpf_0 = jspxth_cpi_wpf_0.doStartTag();
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2064: cannot find symbol
[javac] symbol : method doEndTag()
[javac] location: class cpidemo.wpfRenderer
[javac] if (_jspx_th_cpi_wpf_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2065: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
[javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2068: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
[javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
[javac] ^
Generated servlet error:
[javac] Note: C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java uses unchecked or unsafe operations.
Generated servlet error:
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 6 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:850)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:480)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:125)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
After fighting with this for a while, I tried the following:
1) Copy code from a known-working example into the existing web app
2) Copy the code for the component et al into the known working example app
results:
1) Known working component generates the same compilation errors
2) everything work correctly
I have compared the tlds and faces-config.xml files and everything appears to be correct. In both cases, the faces-config.xml files are at version 1.2 and the tlds are at version 2.1
The only difference i can see is that the not-working web app uses far more libraries than the working example, though i'm not sure why this would be a problem.
From the not working webapp:
faces-config.xml
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
<!-- Set default locale and add supported locales here...
<application>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>es</supported-locale>
</locale-config>
</application>
-->
<component>
<description>A wrapper for workplace forms viewer</description>
<display-name>Embedded Form Viewer</display-name>
<component-type>cpidemo.wpfRenderer</component-type>
<component-class>cpidemo.wpfRenderer</component-class>
</component>
</faces-config>
cpi.tld
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_1.xsd">
<tlib-version>1.0</tlib-version>
<short-name>cpi</short-name>
<uri>http://www.etechway.com/cpi</uri>
<!-- A validator verifies that the tags are used correctly at JSP
translation time. Validator entries look like this:
<validator>
<validator-class>com.mycompany.TagLibValidator</validator-class>
<init-param>
<param-name>parameter</param-name>
<param-value>value</param-value>
     </init-param>
</validator>
-->
<!-- A tag library can register Servlet Context event listeners in
case it needs to react to such events. Listener entries look
like this:
<listener>
<listener-class>com.mycompany.TagLibListener</listener-class>
</listener>
-->
<tag>
<name>wpf</name>
<tag-class>cpidemo.wpfRenderer</tag-class>
<body-content>empty</body-content>
<attribute>
<description>A value binding that points to a bean property</description>
<name>binding</name>
<deferred-value>
<type>javax.faces.component.UIComponent</type>
</deferred-value>
</attribute>
<attribute>
<name>formName</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>boolean</type>
</deferred-value>
</attribute>
<attribute>
<name>formScript</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>detID</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>ttlValue</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>formHeight</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>formWidth</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>paramList</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
</tag>
</taglib>
can anyone give me a nudge in the right direction here?
Thanks in advance!!

[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
[javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
[javac] location: class cpidemo.wpfRenderer
[javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
[javac] ^
Assuming cpidemo.wpfRenderer is your class, does it have the method referenced above?

Similar Messages

  • Problem with shuffle() code, will not compile

    Hi,
    Below is some code designed to shuffle a set of integers in the file editET.txt. Basically:
    5
    2
    4 say:
    just shuffle these randomly around, however, the code will not compile, any advice or solutions would be great
    import java.io.*;
    import java.util.*;
    public class Shuffle3 {
    public static void main (String [] args) {
    if (args.length<2){
    System.out.println("Usage: java Shuffle3 <input file> <output file>");
    System.exit(-1);
    ShuffleStringList sl = new ShuffleStringList(args[0]);
    sl.shuffle();
    sl.save(args[1]);
    class ShuffleStringList extends StringList {
    public ShuffleStringList(String "editET.txt") {
         super(fileName);
    public void shuffle() {
    Collections.shuffle(this);
    public void save (String "Shuffledok"){
         PrintWriter out = null;
         try {
         out = new PrintWriter(new FileOutputStream("Shuffledok"), true);
    for (int i=0; i < size(); i++){
              out.println((String)get(i));
    catch(IOException e) {
    e.printStackTrace();
    finally {
         if(out !=null) {out.close();}
    class StringList extends ArrayList{
    public StringList(){
         super();
    public StringList(String "editET.txt") {
         this();
    String line = null;
    BufferedReader in = null;
         try {
         in = new BufferedReader(new FileReader("editET.txt"));
         while((line = in.readLine()) !=null) {
              add(line);
    catch(IOException e){
         e.printStackTrace();
    public void save (String "Shuffledok") {
    FileWriter out = null;
    try {
         out = new FileWriter("Shuffledok");
         for(int i =0; i < size(); i++){
         out.write((String)get(i));
    catch(IOException e){
         e.printStackTrace();
    finally {
         try{out.close();} catch (IOException e) {e.printStackTrace();}
    public void shuffle() {
    Collections.shuffle(this);

    import java.io.*;
    import java.util.*;
    public class Shuffle3 {
    public static void main (String [] args) {
    ShuffleStringList sl = new ShuffleStringList("editET.txt");
    sl.shuffle();
    sl.save("Shuffledok");
    class ShuffleStringList extends StringList {
    public ShuffleStringList(String fileName) {
    super(fileName);
    public void shuffle() {
    Collections.shuffle(this);
    public void save (String target){
    PrintWriter out = null;
    try {
    out = new PrintWriter(new FileOutputStream(target), true);
    for (int i=0; i < size(); i++){
    out.println((String)get(i));
    catch(IOException e) {
    e.printStackTrace();
    finally {
    if(out !=null) {out.close();}
    class StringList extends ArrayList{
    public StringList(){
    super();
    public StringList(String fileName) {
    this();
    String line = null;
    BufferedReader in = null;
    try {
    in = new BufferedReader(new FileReader(fileName));
    while((line = in.readLine()) !=null) {
    add(line);
    catch(IOException e){
    e.printStackTrace();
    public void save (String target) {
    FileWriter out = null;
    try {
    out = new FileWriter(target);
    for(int i =0; i < size(); i++){
    out.write((String)get(i));
    catch(IOException e){
    e.printStackTrace();
    finally {
    try{out.close();} catch (IOException e) {e.printStackTrace();}
    public void shuffle() {
    Collections.shuffle(this);
    }

  • Some jsps will not compile FC5+Tomcat

    Hello,
    I cannot compile SOME jsp pages for some reason.
    I have something like this:
    http://www.mydomain.net:8080/WEB/index.jsp - this comiles
    http://www.mydomain.net:8080/WEB/BLAH/BLAH/index.jsp - will not compile where BLAH is a bunch of different folders.
    I have it all working on Win XP. Now I am trying to make it work on FC5.
    I took the page that can compile and moved it to BLAH/BLAH folder and it does not compile now!
    OS: Fedora Core 5 (if it matters)
    What is going on? Any ideas?
    Thanks.

    sure, here it is
    Thanks for help.
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:342)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:248)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Compile failed; see the compiler error output for details.
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:216)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • FlashMX Components will not work in my new FCS2

    Flash Communication Server MX Components will not work in my
    new FCS2 ,
    Components like: SimpleConnect, Cursor, Whiteboard, Chat,
    Peoplist, AVpresence, etc.... all the old ones I have been using in
    Flash MX. I now use Flash 8 it did not come with all the above
    Components so I instaled (the old) in my Flash 8. I beleve there
    may be script to up date the old (above Components) , or can I
    download a set of NEW Components that do the same job as the old
    (above Components) Please help I have spent 4 days on this HELP
    Thank you. Raymck

    It is a USB cord so I have to use the end  of the Shuffle I use to charge th Shuffle.

  • Customs components are not updated on the scene

    Hello!
    i am working on a simple component, it is a movie clip.
    On each frames I have a label and an icon.
    In the component properties I set up a list where every itemshas the same title as the frames's labels.
    With this component I can set any icon I want by selecting it in the list.
    This is working fine and I am pretty happy about it.
    The Problem:
    If I change the name of one item in the list, add one or even reorder the list, the changes are not applied on all the components presents on the scene.
    and I have more or less 50 of thoses components in my scene...
    Is there a way to have the components updated ? Or at least update manually all the "old" components?
    this issue occure with Flash CS5 and CS6 all my doccuments are made in AS3.
    thanks a lot !

    Hello guys,
    Does anybody have the same issue with customs components?

  • PL/SQL spatial query will not compile.

    I have a PL/SQL spatial query that will not compile, but the equivalent SQLPlus query works fine. I.e. (convert decimal degrees to degrees,minutes,seconds)
    Any thoughts much appreciated....
    THIS WORKS in SQLPlus
    select
    decode(rownum,1,decode(sign(b.column_value),-1,'W','E'),2,decode(sign(b.column_v
    alue),-1,'S','N'))&#0124; &#0124;
    to_char(abs(trunc(b.column_value,0)),'999')
    &#0124; &#0124;to_char(abs(trunc((b.column_value - trunc(b.column_value,0)) * 60,0)),'99')
    &#0124; &#0124;to_char(abs(
    (((b.column_value - trunc(b.column_value,0)) * 60) - trunc((b.column_value - tru
    nc(b.column_value,0)) * 60,0)) * 60
    ),'99.99')
    from route_location a, table(a.line.sdo_ordinates) b
    where a.route_adms_id = 13820370
    and record_seq_num = 26
    and rownum < 3
    BUT THIS DOES NOT
    ADMS>create or replace procedure PKG_route_loc_latlong_ins
    2 (iADMS_ID in INTEGER, iRSN in INTEGER,
    3 vcLAT out VARCHAR2, vcLONG out VARCHAR2) as
    4 cursor c1 is
    5 select decode(rownum,1,decode(sign(b.column_value),-1,'W','E'),
    6 2,decode(sign(b.column_value),-1,'S','N'))
    7 &#0124; &#0124;to_char(abs(trunc(b.column_value,0)),'999')
    8 &#0124; &#0124;to_char(abs(trunc((b.column_value - trunc(b.column_value,0)) * 60,0)),
    '99')
    9 &#0124; &#0124;to_char(abs(
    10 (((b.column_value - trunc(b.column_value,0)) * 60) -
    11 trunc((b.column_value - trunc(b.column_value,0)) * 60,0)) * 60
    12 ),'99.99')
    13 from route_location a, table(a.line.sdo_ordinates) b
    14 where a.route_adms_id = iADMS_ID
    15 and a.record_seq_num = iRSN
    16 and rownum < 3;
    17 BEGIN
    18 open c1;
    19 fetch c1 into vcLONG;
    20 fetch c1 into vcLAT;
    21
    22 EXCEPTION
    23 when others then
    24 vcLAT := 'ERROR';
    25 RAISE_APPLICATION_ERROR(-20002,
    26 'XXXXXXXXXXXXXX ');
    27
    28 END pkg_route_loc_latlong_ins;
    29 /
    Warning: Procedure created with compilation errors.
    ADMS>
    ADMS>show errors
    Errors for PROCEDURE PKG_ROUTE_LOC_LATLONG_INS:
    LINE/COL ERROR
    5/5 PL/SQL: SQL Statement ignored
    5/12 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    5/12 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    13/34 PLS-00201: identifier 'A.LINE' must be declared
    19/5 PL/SQL: SQL Statement ignored
    20/5 PL/SQL: SQL Statement ignored
    null

    try a
    FOR UPDATE OF ID NOWAIT;where ID is the name of a column in the table.

  • Trigger will not compile

    I wrote the trigger which compiles with errors. The errors are:
    Error(9,5): PL/SQL: SQL Statement ignored
    Error(9,12): PL/SQL: ORA-00903: invalid table name
    Error(14,5): PL/SQL: SQL Statement ignored
    Error(14,12): PL/SQL: ORA-00903: invalid table name
    and so on for the other lines that reference a table. I tried prefixing the table with the schema name and removing the alias but it will not compile either way. Is there something obvious that I don't see?
    Create Or Replace Trigger ERR_EVACUATION_TAB_BU
    Before Update On Err_Evacuation_Tab
    For Each Row
    Begin
    If V('APP_USER') Is Null Then
    :new.last_update_by := USER;
    ELSE
    :new.last_update_by := V('APP_USER');
    END IF;
    :New.Last_Update_Date := Sysdate;
    If :New.Evacuated_Ind = 'Y' And :New.Entire_Evac_Ind = 'Y' And :New.Remaining_In_Apt = 0 Then
    Update Table Err_Impaired_Tab Eit
    Set Eit.Evacuated_Ind = 'Y'
    Where Eit.Location_Code = :Old.Location_Code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    Update Table Err_Lifesustain_Tab Ert
    Set Ert.Evacuated_Ind = 'Y'
    Where Ert.Location_Code = :Old.Location_Code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    else
    Update Table Err_Impaired_Tab Eit
    Set Eit.Evacuated_Ind = 'N'
    Where Eit.Location_Code = :Old.Location_Code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    Update Table Err_Lifesustain_Tab Ert
    Set Ert.Evacuated_Ind = 'Y'
    Where Ert.Location_Code = :Old.Location_Code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    End If;
    END;

    --untested
    CREATE OR REPLACE TRIGGER err_evacuation_tab_bu
       BEFORE UPDATE
       ON err_evacuation_tab
       FOR EACH ROW
    BEGIN
       IF v ('APP_USER') IS NULL
       THEN
          :NEW.last_update_by := USER;
       ELSE
          :NEW.last_update_by := v ('APP_USER');
       END IF;
       :NEW.last_update_date := SYSDATE;
       IF     :NEW.evacuated_ind = 'Y'
          AND :NEW.entire_evac_ind = 'Y'
          AND :NEW.remaining_in_apt = 0
       THEN
          UPDATE err_impaired_tab eit
             SET eit.evacuated_ind = 'Y'
           WHERE eit.location_code = :OLD.location_code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
          UPDATE err_lifesustain_tab ert
             SET ert.evacuated_ind = 'Y'
           WHERE ert.location_code = :OLD.location_code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
       ELSE
          UPDATE err_impaired_tab eit
             SET eit.evacuated_ind = 'N'
           WHERE eit.location_code = :OLD.location_code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
          UPDATE err_lifesustain_tab ert
             SET ert.evacuated_ind = 'Y'
           WHERE ert.location_code = :OLD.location_code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
       END IF;
    END;Edited by: most wanted!!!! on Apr 20, 2012 2:20 AM

  • PHP 4 will not compile in PHP5 on OSX Server 10.5.5  Mac Mini

    I have been using a commercial server which does not give access to php.ini but bought a Mac Mini and OSX Server 10.5.5. My old PHP 4 program will not compile in PHP5. It gives weird compilation errors to do with curly brackets but as soon as I alter one bracket it jumps to another similar error somewhere else in the program. I think it may require tweeking the php.ini or httpd.conf files which I have opened using Terminal but I don't know what might need to be changed. I expected this to be a turn-key system ready to go. I knew there would be changed required to migrate from PHP4 to PHP 5 and read the official PHP site, searched many forums, and google searches, called AppleCare but none knows what to do. I used an editor and there are 276 open brackets and 276 close brackets. If you have made the same migration without difficulty please let me know. Maybe I just need to start again!

    evan-e-sent wrote:
    Well, I don't think the code is too messy except for the globals I use.
    It is. The point of this function is beyond elusive given the number of side effects it seems to induce. Everything in it could be reduced to one or two lines, but odds are good it shouldn't even exist in the first place.
    I just use the same set of globals for all functions so that these variables are readily available everywhere in the program without having to think about it.
    That's a very common beginner tactic which is unfortunately very prevalent in publicly distributed PHP projects due to the fact that many of them are written by beginners. I'd highly recommend you start thinking about it if you want to get anywhere.
    They are all constants once they have been set initially.
    http://us2.php.net/manual/en/function.define.php
    Like $query is set only once when the program picks it up from a $GET statement.
    And I'll bet you're not sanitizing that query string at all before passing it along to mySQL.
    This leaves two questions. Do you think I should treat every function as a separate file and have the mainline bring them in as "included code". There are 126 functions.
    Refactoring should improve the organization, performance and readability of your code according to some logical criteria. Simply putting each function in its own file accomplishes none of these things.
    (I have also written a 6000 line program as a MySQL data processor to make it easier for my wife to manipulate the data in dozens of tables without having to keep track of all the unique keys. So this will be quite a big job.) If so I would appreciate a quick tip about how to do that in PHP. Other pre-processing I do with Applescript.
    Why didn't you just install phpMyAdmin?
    Second, goes back to my initial question. This parsing problem only appeared after switching to PHP 5.2.2 with MySQL. Could this weird behavior be caused by some setting in the PHP.ini or httpd.conf or my.conf files and if so what would I change. The fact that this has not been suggested on this forum makes me think it is not a config. problem. That in itself is useful information.
    Probably not, but who knows what other nightmares might be lurking in this file. Did you use short tags like <? ?> or something?

  • 2nd Gen Ipod will sync with itunes but will not download new song

    My Ipod will sync with itunes but will not download newly purchased songs.  It is Ipod nano 2nd gen.

    If you want to use automatic syncing, you may need to set up or update the iPod's Music sync settings in iTunes.  If the new songs are not included in what gets synced to the iPod, they will not sync.
    If the sidebar (along left side of window) is hidden, from the menu bar, under View, select Show Sidebar.  The iPod appears in the sidebar, under DEVICES.  Select it there, to show its Summary screen to the right.  Toward the top, there is a bar of buttons, starting with Summary.  Click on Music next to Summary.  This Music screen is where you tell iTunes how to sync songs to the iPod.
    Check the box for Sync Music, if not already checked. This is the "switch" to enable automatic syncing for songs.
    NOTE:  If Sync Music is not already checked, that means the iPod is currently set to Manually manage music.  Setting up automatic syncing will replace the iPod existing content.  If you want to add the new songs manually to the iPod (instead of using automatic syncing), please post back.
    If your iTunes library fits on the iPod, you can choose the option to sync Entire music library.  Otherwise, choose the option to sync Selected playlists, artists, albums, and genres.  Below that, select (checkmark) what you want to sync to the iPod from the lists.
    One convenient way to set this up is to first create one or more playlists in your iTunes library, with ALL of the songs you want on the iPod.  Or you can use existing playlists.  Back on the iPod's Music screen in iTunes, select those playlists under Playlists.
    When you click Apply, iTunes syncs the songs in your selection(s) to the iPod (replacing its existing content).  Going forward, to update the iPod, you can just update those playlists in your iTunes library (add/remove songs).  If you have new songs, add them to a playlist that is synced to the iPod.  The iPod does not need to be connected.  The next time you connect the iPod (or click Sync if already connected), iTunes automatically updates your iPod with the same changes.

  • CDs I burn from my itunes 10 on my macbook with snow lepard will not play in the regular cd player.  How do I burn Cds that will pay in a reg old cd player?

    CDs I burn from my itunes 10 on my macbook with snow lepard will not play in the regular cd player.  How do I burn Cds that will pay in a reg old cd player?

    When the computer was new, I had the same issue I have now.  It was new and I could not burn to play on a reg cd player. Today, I can not burn to play on a reg cd player. Inbetween, I could not burn to play on a reg cd player.  I keep giving up and then trying months later.
           I have recently made the cds that play on the computer.  I have also tried in the last month to make a dvd copy, it played.  I have gone to people's homes and tried the cd's burned in my computer. They are not recognized.  This last round I have only used the cd-r but have tried many others in the past. I am running out of money to keep buying different brands, kinds, etc.  I figured it must be my lac of knowledge and am trying to get some new here. 
    Sincerely,
    Paul

  • I just downloaded and installed the new iTunes on a Toshiba Satelite of some age. It was just completely reformated and updated with XP. iTunes will not open. The terms page comes up and when I agree it disappears. I have uninstalled and reinstalled.

    I just downloaded and installed the new iTunes on a Toshiba Satelite of some age. It was just completely reformated and updated with XP. iTunes will not open. The terms page comes up and when I agree it disappears. I have uninstalled and reinstalled.

    Perhaps something here will help:
    http://support.apple.com/kb/TS1421
    Regards.

  • Statistic report with figures that will not change when rerun months later

    Hi,
    Is there any good practices that we can follow to create statistic reports with figures that will not change even when rerun after few months later?
    My scenario is my statistic report is generated based on data that is "alive" which means the record will get change after a period of time. So, if you generate the statistic report in for January 2006 in the month of January and regenerate in May for the January 2006 statistic, the figure is different. But what I want is to be able to get the same figures.
    I know in this case looks like we need some sort of summary tables, so posting this to get advice on the best way to design such summary tables. Please comment if there is other ways of doing it.
    Summary tables may work for statistic report, but how to support detail report listing where the records are required to be the same when it was generated few months ago.
    Please advise.
    Thank you.

    What happens, when you execute a report today is the following: a select statement is fired at the data base and the result set is displayed in the report. The data can change after the moment you launched your report. What you could do to keep the result set the same, is implementing a user parameter that fills your date discriminator.

  • Using Lion, recent Movies with .mov extension will not play in Quicktime, but earlier ones taken with same camera (Kodak M530) will play fine.

    Using Lion, recent Movies with .mov extension will not play in Quicktime, but earlier ones taken with same camera (Kodak M530) will play fine. I have got VLC which runs them fine but cannot get movies saved in iPhoto to play in VLC...and of course its a real bugger to copy moves from iPhoto to another folder; in fact if anyone can tell me how to do that I will accept defeat!

    Hello Shad:
    Have you downloaded and installed Flip4Mac?
    http://www.microsoft.com/mac/otherproducts/otherproducts.aspx?pid=windowsmedia
    Barry

  • Mainstage 2 : The poeples who buy complete version of Logic with Mainstage 2 will not have free update of Mainstage ??? This is outragous !!!

    Mainstage 2 : The poeples who buy complete version of Logic with Mainstage 2 will not have free update of Mainstage ??? This is outragous !!!

    I also agree that the paid update is a sham to those who bought the full boxed set of Logic.  The ONLY reason I bought the boxed version of Logic was to get MainStage....I don't use anything else in that package.  So ultimately, I've paid hundreds of dollars for a product that's now selling for $30 and I don't even get a free update.....sheesh!
    As far as this logic goes: " MS 2.2 is a feature release" and that I "never bought that version of MainStage with the Logic Studio box": bollocks!  Many consider a feature release to be more than a .1 incremental update...OSX versions excluded.  With the exception of major OSX updates, I've never experienced being charged money for a .1 incremental update, and the vast majority of software developers have a policy that incremental updates are free until a new version is released i.e. v.2.5.6 to v3.0.  I'm sure that's not always the case, but it's definitely the case in an overwhelming majority of cases.
    Shame on Apple for this price gouge.

  • I am running Yosemite and have just bought Pro Tools Express with the intent to Upgrade to Pro Tools 11. Pro Tools Express is not compatible with Yosemite and will not install. How can I get this done?

    I am running Yosemite and have just bought Pro Tools Express with the intent to Upgrade to Pro Tools 11. Pro Tools Express is not compatible with Yosemite and will not install. How can I get this done?

    I have had this problem for close to a year. I have an Extreme base station, two Airport Express's and multiple G4 Mac's with up to date software. I have spent a huge amount of time trouble shooting, resetting, reapplying software and finally calling Applecare without any help. It would be great to get this problem solved.
    Powerbook G4   Mac OS X (10.4.7)  

Maybe you are looking for

  • Adobe programs don't work on Win7 x64 with IE8 x32

    I have been working for the last 2 hours trying to get adobe flash 10.1 downloaded and installed on Win7 x64 and IE8 x32.  It downloads and crashes and never finishes the install, even though sometimes the adobe site tells me it's installed.  when I

  • Idisk and sync issues

    Please help or my i book is about to swimming in the Indian Ocean, each time i try to set up idisk, my machine crashes when it gets to the sync stage. It tells me my idisk user name and password is incorrect ( it isn't ) then when I force quit the ap

  • How  to read fault message in async soap receiver

    Hi experts, I have an asynchronous scenario IDOC->XI->SOAP. I've defined a SOAP fault message as part of the Inbound Message Interface. When an error occurs on the SOAP Server, the error description is returned in the form of the fault message. E.g.

  • UC560 An error occured while configuring the device. To generate troubleshooting logs, choose help-support information - troubleshooting logs,

    Hi, I'm trying to configure UC560 using CCA.After configuring all the parameters and when i press APPLY CONFIGURATION, the following dialog box appears. Kindly suggest.

  • Authorizations Issue in BI7

    Dear Gurus, I am having an issue with regard to Authorizations.  In BW3.x  with respect to query designer an end user can just change the local view of a query.  How about the same thing in BI7?  What are the procedures i need to follow to give an us