Javac will not compile

My proplem is after upgrading to JDK6 Update 16 with Java EE to my root directory I cannot get javac to compile.
java works well with existing programs. When I try to use javac with HelloWorldApp and other java files I get error message below.
c:\>javac HelloWorldApp.java
HelloWorldApp.java:5: error while writing HelloWorldApp.class (access is deied)
pulic class HelloWorldApp
1 error
My environment variable PATH is .;c:\Sun\SDK\jdk\bin
My environmental variable CLASSPATH is .;c:\Sun\SDK\lib
My operating system is vista premium without service pack1 or 2 could this be my problem?
Any help with this problem would be very much appreciated
JImDickson

HelloWorldApp.java:5: error while writing HelloWorldApp.class (access is deied)This means what it says - it cannot create the HelloWorldApp.class file because the account you are running it with has no rights. It has nothing to do with upgrading to the newer version, and everything to do with permissions to your file system.

Similar Messages

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

  • 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);
    }

  • 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

  • Xcode will not compile

    I migrated from Windows C++(Dev C++) to Mac (Xcode) and Xcode will not compile, the command for it is greyed out (not selectable). Even Hello World Wouldn't compile. What am I doing wrong here?
    (this is an empty C++ file that's been opened)

    What kind of application do I want to open for basic C++. I've tried numerous now and I always get at least one error of conflicting commands.

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

  • LV 8.6 will Not Compile in LV 2010 - Labview 10.0 Development System Has Encountered a Problem and Needs to Close

    I submitted this support request to NI on 8/12/2010.
    When I compile my LV 8.6 app in LV2010 I get this error:
    "LabVIEW 10.0 Development System has encountered a problem and needs to close.  We are sorry for the inconvenience."
    I was told to do a "Mass Compile" of my LV 8.6 app in LV2010...this failed too.
    I was then told to go to each and every vi and "Mass Compile" individually...after about the 50th vi this got old quickly...and it still didn't compile.  I then sent NI tech support "my code".  The good news is my LV 8.6 app didn't compile with LV2010 @ NI.
    My LV 8.6 app compiles and runs great in LV 8.6.  I don't want to be left behind with the newer upgrades and I want to move to LV2010.  I have lots of LV8.6 code to maintain and I really don't have the time to debug all of my apps.
    I was told this will be looked @ in LV2010 SP1.
    One note...back up your LV8.6 data before you move to LV2010.  Once your LV8.6 code is compiled in LV2010 you will not be able to go back to LV8.6.
    I restored all of my LV8.6 code and I'm back working with LV8.6.
    It's a tough call, do I stay in LV8.6 and get left behind?
    Do I bite the bullet and try to debug this mess in LV2010?
    I was told the compiler is completely different in LV2010.  That's great, but one reason I have NI Maintenance Agreement is to keep updated with the latest software.  I can't afford to re-compile LV code every few years.  Like most people, maintaining my Apps with customer's revisions, and modifications is enough work.  I don't want more work!
    I was told LV2010 SP1 would likely appear in May or June of 2011.  I'd hate to break out my old Turbo Pascal apps again...but hey...they still work!  My NI maintenance agreement is due this month too, I guess I'll pay NI one more year, and see if they come up with a solution.  But if NI doesn't fix this LV8.6 compile in LV2010 problem...I don't see any value staying current with LV software.
    I found another Bug with LV2010...you are going to love this one!
    There is a new "LV Update Service".  Perfect!  I like updating my LV software when new patches are available.  When I click "update" the update spins over and over "Checking for New Version".  I have let it run ALL day with no results...just sits and spins over and over.
    OK, I know give NI a break!  Yes, LV2010 has a new compiler...and Yes, I will renew my NI maintenance agreement.  I just want NI to know failing to compile just one LV8.6 app in LV2010 is not a good idea for customer relations.
    Thanks,
    Doug

    For your update service problem
    Unable to Update Current Version of NI Update Service
    Why am I Unable to Update My Version of NI Update Service in Windows Vista or Windows 7?

  • Programs will not compile that have seperate classes

    I am trying to compile a program which has a seperate class, but it wont compile, it cant find the other class. I am compiling in the correct order, and I have tried re-compiling programs with seperate classes that I have done before, and they now wont compile. I tried compiling my program on my friends computer and it compiled fine.
    I am using jdk5.0 update 6 on Windows XP Pro
    Any help will be much appreciated

    That still doesnt work, it comes up with an extra
    error message now:
    "error reading PhoneEntry.java; error in opening zip
    file"Zip file?
    It sounds like you have some bogus zip file in your classpath.
    Did you try the exact command I posted?
    my two classes are PhoneEntry.java and
    PhoneBook.java
    PhoneEntry needs to be compiled before PhoneBookThat doesn't matter. Javac will take care of that automatically.
    PhoneEntry compiles fine, just when it tries to find
    PhoneBook it appears it cannot find the created
    PhoneEntry.class fileAll I can guess at is that you're doing this: javac -classpath .;something.zip *.java and something.zip either doesn't exist or is corrupt.

  • NiseCfg library link errors - will not compile working code on replicate system

    i have working software trying to install on a replicate system.    it does not compile on the replicate system.   the problem is nise, niseCfg link errors  for example:  
    Undefined symbol:  '_niseCfg_GetVirtualDeviceProperty@20' referenced in "TestSystem_Config.c"
    originally it complained it couldn't find the nise.h and niseCfg.h header files.   i copied the header and some other object and fp files (yeah, yeah, i know :-/ from my working system to the replicate system (in the NI/Shared/CVI directory path).
    it then found the header file and prototypes but now the undefined link errors.   i have nise.dll in my WIndows System directory.
    Please help.   what do i do to fix this?   thanks!

    The CVI IDE needs to know someway where to find the resources your program is using and this can be done in several ways. One of them is loading the instruments in the Instrument menu: this is valid if your instrument is used in only one project of yours or a few one. Another method, which is useful for insrtument you use intensively in all your projects, is to add them to the Library menu (option Customize...): this will make your libraries and FPs available for every project you are working on without need to explicitly add the instruments to the Instrument menu.
    If you are using an instrument and you don't see it in the project it must be loaded in one of the ways I described before: you can check in the original system which method was used.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • LabVIEW 2013 Fpga will not compile tutorial solutions

    Y'all
    I am working to get the CRIO evaluation software to compile the tutorial solutions.  so far it will not and complains about missing XILINX_EDK (warning.)  Attached is the xilinx log.     (Do I need to reinstall? or what)
    Thanks for help! 
    Sincerely,
    Paul
    Attachments:
    XilinxLog.txt ‏130 KB

    Hi Paul,
    What version of LabVIEW (2013/2013 SP1), LabVIEW FPGA and Xilinx Compile Tools do you have (or are you compiling on an external server)?
    Which example specifically are you trying to compile? You mentioned tutorials, but I'm not sure exactly what example you are referring to.
    Thanks!
    Xavier
    Applications Engineering Specialist
    National Instruments

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

  • Will not compile class

    Hey i wanted a second opinion on my code i wrote, just for a rough draft to see if something like it will work. problem is
    it wont compile the main class is uploader the sub class is loadercontent. the sub class will compile. alright but im not sure why the main method wont compile i keep getting this error message
    "cannot find symbol class loadercontent"
    <error message>
    --------------------Configuration: <Default>--------------------
    C:\uploader.java:9: cannot find symbol
    symbol : class loadercontent
    location: class uploader
    loadercontent content = new loadercontent();
    ^
    C:\uploader.java:9: cannot find symbol
    symbol : class loadercontent
    location: class uploader
    loadercontent content = new loadercontent();
    ^
    2 errors
    Process completed.
    </error message> heres the code of the two classes
    <main method>
    import java.awt.*;
    import java.util.*;
    import java.io.*;
    import java.lang.*;
    public class uploader {
         public static void main(String args) throws InterruptedException{
              loadercontent content = new loadercontent();
              content.displayupload();
              content.initializing();
    }</main method>
    heres the subclass
    <sub class>
    import java.awt.*;
    import java.util.*;
    import java.io.*;
    import java.lang.*;
    public class loadercontent {
         public void displayupload()  throws InterruptedException{
              System.out.println("loading C:\\WINDOWS...");
              Thread.sleep(1000);
              System.out.println("loading C:\\WINDOWS\\system32...");
              Thread.sleep(1000);
              System.out.println("loading C:\\WINDOWS\\system32\\user32.dll...");
              Thread.sleep(1000);
              System.out.println("loading C:\\WINDOWS\\system32\\appmgr.dll...");
              Thread.sleep(1000);
              System.out.println("loading C:\\WINDOWS\\system32\\iphlpapi.dll...");
              Thread.sleep(1000);
              System.out.println("accsessing C:\\WINDOWS...");
              Thread.sleep(15000);
              System.out.println("accsessing C:\\WINDOWS\\system32...");
              Thread.sleep(5000);
              System.out.println("accsessing C:\\WINDOWS\\system32\\user32.dll...");
              Thread.sleep(2500);
              System.out.println("accsessing C:\\WINDOWS\\system32\\appmgr.dll...");
              Thread.sleep(3450);
              System.out.println("accsessing C:\\WINDOWS\\system32\\iphlpapi.dll...");
              Thread.sleep(7890);
              System.out.println("Checking privliages...");
              Thread.sleep(2345);
              System.out.println("Scanning for malicous software this may take afew minutes...");
              Thread.sleep(260000);
              System.out.println("System clean.");
              System.out.println("Adpating uploader for preformance...");
              Thread.sleep(5000);
              System.out.println("Checking required drivers, this may take afew minutes...");
              Thread.sleep(200000);
              System.out.println("Begining initialization...");
              Thread.sleep(2500);
         public void initializing() throws InterruptedException{
              try{
          String osType = System.getProperty("os.arch");
              System.out.println("Initializing files and dirs...");
              Thread.sleep(60000);
              System.out.println("Creating back-ups for " + osType + "...");
              System.out.println("Back-ups created.");
              Thread.sleep(123456);
              System.out.println("Creating Restore point for " + osType + "...");
              System.out.println("Restore point created.");
              Thread.sleep(200000);
              System.out.println("Gathering required suer data...");
              Thread.sleep(5000);
             }catch (Exception e){
               System.out.println("Exception caught =" + e.getMessage());
         </sub class>
    please be gentle with your anwsers im still kinda new to java, but know enough to understand most things.
    thanks!

    That's not a subclass, it doesn't extend anything (except Object of course). However the problem is either that you didn't compile it, or if you did, then the compiled class (which is a file named loadercontent.class) isn't in the classpath when you compile the "main" class.
    Oh, and by the way, there's a couple of those messages which your code displays on the console which don't have spelling errors.

  • Robohelp 7 Webhelp will not compile

    I have Windows XP Pro SP3 with latest patches. I started with RoboHelp 7 fully patched. MS Office 2007 fully patched.
    I have full security rights to my login.
    I get errors whether generating webhelp via the GUI or the commandline. Until I tried to generate finaly changes to the first draft of this project, I could generate without error.
    When generating webhelp or webhelp pro I get the error:
    Preparing to create WebHelp Pro...
    Finished preparing in 1 sec(s)
    Initializing compiler...
    Generating WebHelp Pro 5.50 (7.01.001)...
    Error: Can not register active script for language:javascript)
    Template Error: can not resolve macro: RegisterResolvers
    Fatal Error: Cannot run macro: RegisterResolvers in compilation script.
    I get this for ANY project, even the samples.
    I found a couple of topics that gave some advice, but that did not help.
    I have tried uninstalling and reinstalling and renaming various files, as suggested by these topics, all to no avail.
    The link with information that I have followed are:
    http://forums.adobe.com/message/844712#844712
    The one thing I did not try mentioned in the above link, was to use the RoboScriptReg.exe mentioned, since a search for it did not reveal where it can be obtained.
    I changed the Word macro security settings from "Disable all macros with notication" to "Enable all macros (not recommended...".I am not sure why this would matter, since I am not using Word to enter the data, but I tried it and still no go.
    There has got to be some solution other than format and reinstall; or shell our money for the latest version. I am surprised that there does not appear to be a way to figure out what is wrong just by searching on the error output.
    Is there a commandline option that I overlooked, or a hidden option to get RoboHelp to give an error to better pinpoint the problem?
    I will greatly appreciate all help in resolving this issue.

    I have a number of application error logs from yesterday. Here’s the first one.
    Event Type:        Error
    Event Source:    Application Error
    Event Category:                None
    Event ID:              1000
    Date:                     4/11/2012
    Time:                     2:50:24 PM
    User:                     N/A
    Computer:          B5D8ZP1-L-GA001
    Description:
    Faulting application robohtml.exe, version 9.0.2.271, faulting module htmsinglesourcewebhelp.dll, version 9.0.0.228, fault address 0x000482e0.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 46 61 69 6c   ion Fail
    0010: 75 72 65 20 20 72 6f 62   ure  rob
    0018: 6f 68 74 6d 6c 2e 65 78   ohtml.ex
    0020: 65 20 39 2e 30 2e 32 2e   e 9.0.2.
    0028: 32 37 31 20 69 6e 20 68   271 in h
    0030: 74 6d 73 69 6e 67 6c 65   tmsingle
    0038: 73 6f 75 72 63 65 77 65   sourcewe
    0040: 62 68 65 6c 70 2e 64 6c   bhelp.dl
    0048: 6c 20 39 2e 30 2e 30 2e   l 9.0.0.
    0050: 32 32 38 20 61 74 20 6f   228 at o
    0058: 66 66 73 65 74 20 30 30   ffset 00
    0060: 30 34 38 32 65 30 0d 0a   0482e0..

  • Simple ArrayList declaration will NOT compile in Eclipse

    For some reason I can't get the following line of code to compile in eclipse, even though the exact same code compiles in NetBeans.
    I'm trying to work on my program at school and they don't have Netbeans installed they only have Eclipse so I have to work with it instead.
    Anyway, here's the line, it's a simple arraylist declaration:
    ArrayList<Integer> list = new ArrayList<Integer>();I''ve got java.util.ArrayList imported.
    There error I get is the following:
    "Syntax error on token '<', invalid assignment operator.
    Can anyone clear this up for me, I've been searching and I've basically wasted a good half-hour without even touching my damn program.

    endasil wrote:
    well, to go higher than 1.4 you'd need a JDK that is higher than 1.4. It really has nothing to do with eclipse, and if you don't have a 1.5 jdk installed, NetBeans will have the same problem.Nonsense. Eclipse has it's own compiler, your JDK is irrelevant.
    Go to Window->Preferences->Java->Compiler and change the compiler compliance setting to 5.0 or higher. Your JRE will need to match, but the JDK need not even be installed

Maybe you are looking for

  • Messages on Mac app not displaying contact name

    On Messages on my Mac, despite being synced up with iCloud, the Messages app does not display the contact names of anyone. It shows their phone numbers or Apple email addresses. Is there any preference I can change to make it show the contact names?

  • "build EJB archive" context menu is disabled...

    hello, I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file! So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Bui

  • Crashed thrice today. Followed all steps recommended etc etc - if Mozilla were a car, it would be recalled - get it in gear!

    Followed all steps in these threads - no hardware acceleration, disabled plug ins - even ran w/out adobe or java enabled and PLEADED for a response in crash reports - nada zip zero - I like the privacy controls of Mozilla but this is starting to inte

  • CUCMBE5K - 8.5.1 Node Demo License

    Hi all, I have a CUCMBE5K platform that has an issue where the Node License is running as a Demo license. I do not know how long it has been in this state since I have just recently started a new job. According to this article, a demo license that is

  • Db-4.6.21 crash

    I got stuck with db-4.6.21. The same sample code is from http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_db_rep/C/simpleprogramlisting.html. The same way of build libdb.a, with 4.5.20, it works while with 4.6.21, I got segmentation