Javac generating Wierd error during compilation

Hello friends
I am reading Kathy Sierra and I wish to give SCJP exam.
Today when I tried to test the concept of protected V/S Default access modifier I got struck with a problem.
Below is the code:
package xyz;
class ProtTestParent
     protected int x=10;
public class ProtTestChild extends ProtTestParent
     public static void main(String[] ar)
          new ProtTestChild().get();
     public void get()
          System.out.println("Value of x "+x);
If I try to compile it I get following error:
C:\Program Files\Java\jdk1.5.0_06\bin>javac ProtTestChild.java error: cannot read: ProtTestChild.java 1 error C:\Program Files\Java\jdk1.5.0_06\bin>
Can anyone tell me what could be the problem??
Thanks
BR
Suvojit

Please use code tags around your posted code, it makes it much easier to read.
I see a couple of issues.
First, you are calling javac from the binary directory it is in - is that also where you put your code? If your code is in java's \bin directory - that's generally bad practice.
If java is correctly installed, you should be able to call javac from anywhere, because the java \bin directory will be in your path.
Also, the ProtTestChild code indicates that it is in package xyz - so the file has to be in a directory named xyz, and you have to call the compiler from the directory that contains this xyz directory. So, for example, if the java file is in C:\myJavaCode\xyz, you need to be in C:\myJavaCode, and type the command "javac xyz\ProtChildTest.java".
Try that, see if it works. I don't use the command line much anymore, so I could be wrong.

Similar Messages

  • HAL & XML error during compilation

    Hi, I'm new to this so I hope that the question is not out of place. I'm using HAL to generate XML files. Whithin HAL, I pass some info to the XML adapter which when when the XML file is created, the new info is included in the xml file. <BR><BR>I do get this error during a run however. Any ideas would be greatly appreciated.<BR><BR><BR>Compiler error: Unable to analyze the flow diagram for compilation.<BR> Flow diagram-->> Flow Diagram1<BR>Analysis error: [Error: 1001] No matching generator found for the collector: <BR> Adapter reference-->> Template.XML/BATCH_JOB_OBJECT \ Collect Elements<BR>Compiler error: Compilation succeeded but no code was generated.<BR> Flow diagram-->> Flow Diagram1<BR>Internal Vignette Business Integration Studio Error: <BR>Compile failed.<BR> 0 Warnings<BR> 1 Errors<BR>Error: Flow Diagram1 : The adapter's implementation cannot be made up to date.<BR>Build adapter process aborted due to errors.<BR> 0 Warnings<BR> 2 Errors<BR>

    Hi there,
    Thanks a lot.How do I tranfer duke dollars to u.

  • Jdeveloper 2.0-FATAL ERROR DURING COMPILING APPLET

    Can anyone help me about this error during the compilation of a
    applet?
    "Fatal error:cannot access class
    borland.jbcl.util.DispatchableEvent;no source found;must be
    compiled;because supefclass java.utilEventObject of class
    borland.jbcl.util.DispatchableEvent has changed"...
    1) how can i compile it?
    2) where can i find the source?
    another question..
    some compilation warning say me" there are some deprecatio
    warnig--consulting documentation for better alternative..
    Where are this documentation?
    Thanks
    null

    Official reply from Oracle via CS:
    "MacOSx 10.6.5 with Java 1.6.0_22 is not supported for JDeveloper version 11.1.1.2 and later. This has not been certified yet."

  • Asterisk error during compiling tith PKGBUILD

    hi,
    I have to install asterisk from AUR but giving the command makepkg (during compiling) he gives me this error...(i post the tail...)
    In file included from el.h:105,
    from readline.c:61:
    map.h:63: error: expected specifier-qualifier-list before 'el_func_t'
    map.h:77: error: expected declaration specifiers or '...' before 'el_func_t'
    readline.c: In function 'rl_initialize':
    readline.c:247: error: 'EL_NUM_FCNS' undeclared (first use in this function)
    readline.c:247: error: (Each undeclared identifier is reported only once
    readline.c:247: error: for each function it appears in.)
    readline.c:247: error: 'el_map_t' has no member named 'nfunc'
    readline.c:248: error: 'el_map_t' has no member named 'func'
    readline.c: In function 'filename_completion_function':
    readline.c:1206: warning: unused variable 'count'
    readline.c: In function 'rl_bind_key':
    readline.c:1609: error: 'ED_INSERT' undeclared (first use in this function)
    make[2]: *** [readline.o_a] Error 1
    make[1]: *** [editline/libedit.a] Error 2
    make: *** [main] Error 2
    ==> ERRORE: Compilazione interrotta. //italian *_^
    L'operazione sta per essere interrotta...
    what is the problem????
    ty for the help (and sorry for my english )

    Yes, have the same problem also here. It is strange because some people were able to compile it.
    May be, a compatibility problem with the GCC or libc version ? If I can install two versions of GCC/libc together on the same machine,  I'll try to compile it with an older GCC.

  • Javac error during compilation

    I am using j2sdk1.4.2_08 with ant and get following error on solaris 8 (I have installed J2SE Solaris 8 Recommended Patch Cluster):
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 10 occurred at PC=0xFE7A24FC
    Function=[Unknown. Nearest: ZIP_Open+0x69C]
    Library=/.../j2sdk1.4.2_08/jre/lib/sparc/libzip.so
    Current Java thread:
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.zip.ZipFile.<init>(ZipFile.java:72)
    at com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:
    at com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1218)
    at com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1339)
    at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1361)
    at com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:1052)
    Has anyone else seen this error? I can post the entire error log if needed.
    Thanks,
    --dhiraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Please use code tags around your posted code, it makes it much easier to read.
    I see a couple of issues.
    First, you are calling javac from the binary directory it is in - is that also where you put your code? If your code is in java's \bin directory - that's generally bad practice.
    If java is correctly installed, you should be able to call javac from anywhere, because the java \bin directory will be in your path.
    Also, the ProtTestChild code indicates that it is in package xyz - so the file has to be in a directory named xyz, and you have to call the compiler from the directory that contains this xyz directory. So, for example, if the java file is in C:\myJavaCode\xyz, you need to be in C:\myJavaCode, and type the command "javac xyz\ProtChildTest.java".
    Try that, see if it works. I don't use the command line much anymore, so I could be wrong.

  • Linker Error during compiling ODBC WinCE C++_Sample Project

    I am devloping a ODBC application for PocketPC2003 using OLite 10g Release 10.3.0.2. before that i am understanding the sample application provided with Olite.
    I followed all the instructions provided in ReadMe.txt file available before using VC++ sample. After making all the settings and compiling i am getting following linker errors as mentioned below.
    Any solution for this problem at the earliest will be appreciated, i have tried link all the libraries provided with WinCE armv4.
    Linker Error Messages:
    Error     1     error LNK2019: unresolved external symbol SQLExecDirect referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     2     error LNK2019: unresolved external symbol SQLFreeStmt referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     3     error LNK2019: unresolved external symbol SQLGetData referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     4     error LNK2019: unresolved external symbol SQLFetch referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     5     error LNK2019: unresolved external symbol SQLFreeEnv referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     6     error LNK2019: unresolved external symbol SQLFreeConnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     7     error LNK2019: unresolved external symbol SQLDisconnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     8     error LNK2019: unresolved external symbol SQLConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     9     error LNK2019: unresolved external symbol SQLAllocConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     10     error LNK2019: unresolved external symbol SQLAllocEnv referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     11     error LNK2019: unresolved external symbol SQLError referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     12     error LNK2019: unresolved external symbol SQLDescribeCol referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     13     error LNK2019: unresolved external symbol SQLNumResultCols referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     14     error LNK2019: unresolved external symbol SQLAllocStmt referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj

    Hi,
    The OLITE forum (Database Mobile Server (inc. legacy Database Lite) would be a better place to post your issue. This forum deals with the ODBC driver that connects to a "normal" Oracle database.
    Hope it helps,
    Greg
    Edited by: gdarling on Nov 12, 2008 8:31 AM

  • How do I fix an Error during Compiling

    Error 1380 occurred at Invoke Node in AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  (Hex 0x564) License checkout failure.  Unable to checkout the requested license feature because the license is invalid or does not exist.
    Method Name: Build:Application
    I had the above error pop up while compiling a small program.  I had sucessfully complied this program on an earlier version.  The only piece I added was code to close the VI after execution.  Specifically Open VI reference, Invoke Node with FP.Close Method, and Close Reference.  Now I get the error.

    When you say "earlier version" are you referring to an earlier LabVIEW version, or an earlier time? Have you verified the licenses with the NI License Manager for your current version of LabVIEW? The application builder has a separate license from LabVIEW.

  • Workshop error during compilation of Java class

    Hi,
    I am starting to use Workshop for development. I am getting the following error when I start the debugger.
    I am trying to compile a Java class and don't know how to proceed. Any help is appreciated.
    build:
    Deleting directory C:\DOCUME~1\name\LOCALS~1\Temp\wlw-temp-23835\wlw_compile55184
    Created dir: C:\DOCUME~1\name\LOCALS~1\Temp\wlw-temp-23835\wlw_compile55184
    C:\bea\user_projects\applications\CVXMLBeansApplication\CVXMLBeansClient\
    ERROR: XMLBeansClient.java:12: The package of this type does not match its location on the source path: .
    ERROR: 1 error(s), 0 warning(s).
    BUILD FAILED
    ERROR: Errors found.

    I found the answer nested in the documentation. I had to create folders that mirror the package structure and then place the source file in its appropriate folder.

  • PLS-00801 error during compile for debug

    Hi,
    I am working as an oracle consultant, hired by an insurance company to rewrite some stuf they made...
    They are using a lot of procedures with nested functions/procedures instead of packages :-(
    Something strange happens though. if you have a procedure with a global cursor declaration, used as a parameterrowtype in a nested function/procedure, the source will not compile to debug (error PLS-00801), unless you delare a global rowtype of that cursor. I pasted some test source within this e-mail where the error is reproducable.
    If the commented line ' -- rg_tst cg_tst%rowtype;' is enabled, the procedure will compile. when its commented, it will compile normally, but NOT with debug option...
    Anyone familiar with this prob?
    thanx,
    Peter Boekelaar,
    Holland
    Test-source
    CREATE OR REPLACE PROCEDURE p_debug_test
    AS
    cn_max_date CONSTANT DATE := TO_DATE('12/31/2005','MM/DD/YYYY');
    CURSOR cg_tst( b_param1 NUMBER )
    IS
    SELECT ADD_MONTHS(TRUNC(SYSDATE), b_param1) tst_date
    , USER tst_user
    FROM dual;
    -- rg_tst cg_tst%rowtype;
    FUNCTION f_date_is_valid( i_cp_tst IN cg_tst%ROWTYPE
    , i_max_date IN DATE
    ) RETURN BOOLEAN
    IS
    BEGIN
    RETURN (i_cp_tst.tst_date <= i_max_date);
    END;
    BEGIN
    FOR rg_tst IN cg_tst( 6 )
    LOOP
    IF f_date_is_valid( rg_tst, cn_max_date )
    THEN
    DBMS_OUTPUT.PUT_LINE( 'Yep1' );
    END IF;
    END LOOP;
    END;

    Fundamentally it means the database connection has been lost, but they may be an underlying error.
    Try the following to give yourself more chance of seeing the underlying error.
    1. Run sqldeveloper from <sqldev>\sqldeveloper\bin\sqldeveloper.exe. This will leave a console window open.
    2. If the problem occurs, look for error messages in the console.
    Can you compile other procedures for debug without the error? Try creating a minimalist for testing.

  • Error during compiling cobol code after upgrading tuxedo 6.5 with 11

    cc: 1501-238 configuration file /etc/vac.cfg does not exist
    cob64: error(s) in C compilation: BS-c5050.c
    CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o BS-c5050.c -L${TUXDIR}/lib -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread
    We are getting the above mentioned error while trying to run the tuxbuild. The make file is not getting completely executed and the above error is encountered.
    Please help us with this..
    Thanks,
    Shama
    Edited by: user13277723 on Oct 25, 2010 3:21 AM

    Hi Todd/Ed,
    We have one more doubt on which we need your help..
    We are using AIX 6.1,Oracle 11g and all are 64 bit. MFCOBOL which we are using is 32 bit.While compling the code we are switching to 64 bit by using the command cobmode -s 64 and trying to run tuxbuild all+ command and we are encountering the errors which i have metioned in my earlier posts.
    As vac.cfg file was missing we copied older versions as vac.cfg and tried to complie the codes again.we encountered the following error.
    "BS-710b2.c", line 128.10: 1506-296 (S) #include file "mainexit.h" not found.
    cob64: error(s) in C compilation: BS-710b2.c
    so we added a script mainexit.h with cobinit() function declaration in the current directory.
    As we tried with tuxbuild all command we are facing this error.
    ld: 0711-224 WARNING: Duplicate symbol: .tpsvrdone
    ld: 0711-224 WARNING: Duplicate symbol: .tpsvrinit
    ld: 0711-224 WARNING: Duplicate symbol: TPSVRINIT
    ld: 0711-224 WARNING: Duplicate symbol: .TPSVRINIT
    ld: 0711-224 WARNING: Duplicate symbol: tpsvrinit
    ld: 0711-224 WARNING: Duplicate symbol: tpsvrdone
    ld: 0711-224 WARNING: Duplicate symbol: .memcpy
    ld: 0711-224 WARNING: Duplicate symbol: memcpy
    ld: 0711-224 WARNING: Duplicate symbol: .userlog
    ld: 0711-224 WARNING: Duplicate symbol: userlog
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    ld: 0711-317 ERROR: Undefined symbol: .SQLADR
    ld: 0711-317 ERROR: Undefined symbol: .SQLADRVC
    ld: 0711-317 ERROR: Undefined symbol: .SQLBEX
    CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -DTMMAINEXIT -o /BS-eb000.c -L${TUXDIR}/lib TPSVRINIT.o -brtl -qstaticinline -lcobatmis -ltux -lbuft -lfml -lfml32 -lengine -lpthread
    we have included this file as well /usr/local/opt/oracle/product/ostl133/precomp/lib/cobsqlintf.o still we are not able to solve this issue..
    Please help us with this.. :-(
    Thanks,
    Shama

  • Error during compile

    Hi,
    forgive me for pasting this here, but I'm getting an error when trying to compile. I'm running OmniOS (based off OpenSolaris / Solaris 10) on an AMD turion ii processor.
    My error is
    In file included from /usr/include/sys/regset.h:420:0,
    from /usr/include/sys/ucontext.h:36,
    from /usr/include/sys/signal.h:245,
    from /usr/include/sys/procset.h:42,
    from /usr/include/sys/wait.h:43,
    from /usr/include/stdlib.h:38,
    from assuan.c:26:
    */usr/include/amd64/sys/privregs.h:42:2: error: #error "non-amd64 code depends on amd64 privileged header!"*
    make[2]: *** [libassuan_la-assuan.lo] Error 1
    make[2]: Leaving directory `/root/libassuan-2.1.0/src'
    make[1]: *** [check] Error 2
    make[1]: Leaving directory `/root/libassuan-2.1.0/src'
    make: *** [check-recursive] Error 1
    --- edit ---
    Contents of /usr/include/amd64/sys/privregs.h :
    36 /*
    37 * This file describes the cpu's privileged register set, and
    38 * how the machine state is saved on the stack when a trap occurs.
    39 */
    40
    41 #if !defined(__amd64)
    42 #error "non-amd64 code depends on amd64 privileged header!"
    43 #endif
    Can anyone explain to me what this error is, and how I can work it out?
    Edited by: 1010144 on Jun 6, 2013 12:39 AM
    Edited by: 1010144 on Jun 6, 2013 12:41 AM

    You inquiry is beyond the scope of this forum.
    It is outside the scope of this entire forum web site.
    OpenSolaris was effectively discontinued in 2010 (see its Wikipedia entry).
    Your chosen OS is one that I hadn't even heard of until your mention of it.
    There is no Wikipedia entry for it and a brief Google search doesn't show much information.
    Each and every *nix environment has its own quirks.
    Syntax, functionality and library linkages differ.
    You aren't asking for assistance with Solaris. That is why your question is off-topic.
    You will need to find some other site for help.
    Perhaps a more generic forum site, such as linuxquestions.org or unix.com or even opensolarisforum.org would be a better choice.

  • [solved] davtools - errors during compilation

    Most of the logs are here:
    http://www.archlinux.pastebin.com/671575
    Anyone has advices?

    Hm, i have a similar strange problem when I try to compile davtools:
    The first and maybe most important error is:
    make -C src/cdavl
    make[1]: Entering directory `/tmp/qpkg/src/davl-1.2.0/src/cdavl'
    make[1]: `cdavl' is up to date.
    make[1]: Leaving directory `/tmp/qpkg/src/davl-1.2.0/src/cdavl'
    make -C src/gdavl
    make[1]: Entering directory `/tmp/qpkg/src/davl-1.2.0/src/gdavl'
    gcc -DGTK2 -Wall -g -O `pkg-config --cflags --libs gtk+-2.0`  -o gdavl gdavl.c if.c
    /bin/sh: pkg-config: command not found
    The rest is similar to Mac1ek's errors:
    http://pastebin.com/673096
    I have already reinstalled libxrender... but i wasnt able to find a package with pkg-config...

  • Generated servlet error - unable to compile class for JSP - using NB5.5/SS9

    I am using NB5.5 beta2 and Sun server 9.0 with JSF 1.1 - all is OK when I am creating firts JSF application - welcomeJSF.jsp page is rendered normally - but when I am adding one more jsp with JSP view and so on - then - I am getting errors in both JSF pages - both - in original welcomeJSF and the new invoice.jsp page
    here is code for typical error
    org.apache.jasper.JasperException: Unable to compile class for JSP
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:99: cannot find symbol
    [javac] symbol : method setJspId(java.lang.String)
    [javac] location: class com.sun.faces.taglib.jsf_core.ViewTag
    [javac] jspxth_f_view_0.setJspId("id7");
    [javac] ^
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:144: cannot find symbol
    [javac] symbol : method setJspId(java.lang.String)
    [javac] location: class com.sun.faces.taglib.html_basic.OutputTextTag
    [javac] jspxth_h_outputText_0.setJspId("id17");
    [javac] ^
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:145: setValue(java.lang.String) in com.sun.faces.taglib.html_basic.OutputTextTag cannot be applied to (javax.el.ValueExpression)
    [javac] jspxth_h_outputText_0.setValue(org.apache.jasper.runtime.PageContextImpl.getValueExpression("Java Server Faces", (PageContext)_jspx_page_context, java.lang.Object.class, null));
    [javac] ^
    [javac] 3 errors
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    note The full stack trace of the root cause is available in the Sun Java System Application Server Platform Edition 9.0 logs.
    and there is output for another error:
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:144: cannot find symbol
    [javac] symbol : method setJspId(java.lang.String)
    [javac] location: class com.sun.faces.taglib.html_basic.OutputTextTag
    [javac] jspxth_h_outputText_0.setJspId("id17");
    [javac] ^
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:145: setValue(java.lang.String) in com.sun.faces.taglib.html_basic.OutputTextTag cannot be applied to (javax.el.ValueExpression)
    [javac] jspxth_h_outputText_0.setValue(org.apache.jasper.runtime.PageContextImpl.getValueExpression("Java Server Faces", (PageContext)_jspx_page_context, java.lang.Object.class, null));
    [javac] ^
    [javac] 3 errors
    and here is code of my new invoice.jsp page:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
       <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
          <h1><h:outputText value="Java Server Faces" /></h1>
        <h:inputText value="#{managerBean.currentInvoice.id}"/>
        <h:inputText value="#{managerBean.currentInvoice.description}"/>
        <h:inputText value="#{managerBean.currentInvoice.total}"/>
        <h:commandButton value="new_invoice"
                         type="submit"
                         actionListener="#{managerBean.createNewInvoice}"/> 
        </body>
    </f:view>and faces-config.xml file:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config>
        <managed-bean>
            <managed-bean-name>managerBean</managed-bean-name>
            <managed-bean-class>com.brl.ERPSolution.ui.ManagerBean</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
    </faces-config>managerBean was intended to be backing beans which will call the facaed beans of EJB 3.0 entity beans - but at presnet - almost empty methods are declared there:
    package com.brl.ERPSolution.ui;
    import javax.faces.event.ActionEvent;
    import com.brl.solutions.EJB3.*;
    * @author Administrator
    public class ManagerBean {
        protected int currentInvoiceId;
        protected Invoices currentInvoice;
        protected InvoicesFacade invoicesFacade;
        /** Creates a new instance of ManagerBean */
        public ManagerBean() {
        /* business methods */
        public void createNewInvoice(ActionEvent actionEvent)
            invoicesFacade.create(this.currentInvoice);
        public Invoices getCurrentInvoice()
            return this.currentInvoice;
        public void setCurrentInvoice(Invoices currentInvoice)
            this.currentInvoice=currentInvoice;
    }I read in one blog (actually - the only page which was returned by yahoo - so - this should be very rare error!!!) to try to use Sun server's verifier.bat - and - it reported 0 errors and 0 warning. Build was succesfull as well and also - deployment was without errors - but - above mentioned error appeared during the automatic compilation of jsp pages/servlet when newly deployed jsps are first accessed from remote browser.
    So - is it possible, please, to receive some advice - what to do further? I feel that my invoice.jsp page can be with errors, - however - the original welcomeJSF.jsp should be working without errors even the erronwous JFS jsp page is added to web application.
    Thans for any adice or hint in advance!!!

    OK - I have made 'clean and build main project' from NB menu and the deployed the resulting *.war and the error messages have disappeared... So - it seems to be bug...

  • Strange error caused by location of source during compilation

    I have been trying to get KVPM from AUR ( http://aur.archlinux.org/packages.php?ID=32060 ) to build but I kept getting this error during compilation (make) http://pastebin.com/6smA3iKy
    I tried all different kinds of modifications to PKGBUILD but with no success. I later realized that if I unpacked manually and tried to compile it worked, even giving a functional executable. Then I tried forcing a manual extraction of the sources in PKBUILD and I still got the same error. The only way it would compile without the error is if the sources remained outside of makepkg's default 'src' folder. Nothing else worked.
    Why is this? Is this a bug in makepkg? Is there something wrong with my installation?
    Here is the original PKBUILD: http://aur.archlinux.org/packages/kvpm/kvpm/PKGBUILD
    and the PKBUILD that worked for me: http://aur.pastebin.com/VFXr8RJB

    I have been trying to get KVPM from AUR ( http://aur.archlinux.org/packages.php?ID=32060 ) to build but I kept getting this error during compilation (make) http://pastebin.com/6smA3iKy
    I tried all different kinds of modifications to PKGBUILD but with no success. I later realized that if I unpacked manually and tried to compile it worked, even giving a functional executable. Then I tried forcing a manual extraction of the sources in PKBUILD and I still got the same error. The only way it would compile without the error is if the sources remained outside of makepkg's default 'src' folder. Nothing else worked.
    Why is this? Is this a bug in makepkg? Is there something wrong with my installation?
    Here is the original PKBUILD: http://aur.archlinux.org/packages/kvpm/kvpm/PKGBUILD
    and the PKBUILD that worked for me: http://aur.pastebin.com/VFXr8RJB

  • Error During to Deployment of Webcenter Spaces Extension

    I am getting the following error during compilation of Webcenter Spaces Extension (Extending WebCenter Spaces 11.1.1.3.0) application in JDeveloper (11.1.1.3). It is saying some packages are missing. Please help from where I can get these packages and where I need to copy them in my webcenter application folder.
    Compiling 1 source file to D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\classes
    +[javac] D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\src\custom\webcenter\spaces\CustomPhaseListener.java:11: package javax.faces.event does not exist+
    +[javac] import javax.faces.event.PhaseEvent;+
    +[javac] ^+
    +[javac] D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\src\custom\webcenter\spaces\CustomPhaseListener.java:12: package javax.faces.event does not exist+
    +[javac] import javax.faces.event.PhaseId;+
    +[javac] ^+
    +[javac] D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\src\custom\webcenter\spaces\CustomPhaseListener.java:13: package javax.faces.event does not exist+
    +[javac] import javax.faces.event.PhaseListener;+
    +[javac] ^+
    +[javac] D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\src\custom\webcenter\spaces\CustomPhaseListener.java:15: package oracle.adf.share.logging does not exist+
    +[javac] import oracle.adf.share.logging.ADFLogger;+
    +[javac] ^+
    +[javac] D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\src\custom\webcenter\spaces\CustomPhaseListener.java:17: package oracle.webcenter.webcenterapp.context does not exist+
    +[javac] import oracle.webcenter.webcenterapp.context.WCApplicationContext;+
    +[javac] ^+
    +[javac] D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\src\custom\webcenter\spaces\CustomPhaseListener.java:18: package oracle.webcenter.webcenterapp.shell.pages does not exist+
    +[javac] import oracle.webcenter.webcenterapp.shell.pages.WCShellTabModel;+
    +[javac] ^+
    +[javac] D:\WebCenter\ExtendWebCenterSpaces\CustomPersistentSpacesTabs\src\custom\webcenter\spaces\CustomPhaseListener.java:20: package oracle.webcenter.spaces.context does not exist+
    +[javac] import oracle.webcenter.spaces.context.SpacesContext;+
    Also I am able to run default Spaces application, but need to know what should be name of my extended space application as I need to enter it in the config.properties
    +## Enter the name of the WebCenter Spaces application.+
    +## Obtain this information from your systems administrator or from the+
    +## WLS Administration Console as follows:+
    +## 1. Login to WLS Administration Console.+
    +## 2. Navigate to Deployments> webcenter>Overview+
    +## The application's name displays here.+
    webcenter.app.name=
    Any suggestions or workarounds are highly appreciated
    Thanks
    Manav

    This error related to reporting services, you need to verify that reporting services is installed on these instances.
    Secondly, you didn't need to create this instance manually then setup monitoring role. delete this instance from shared storage and try again to setup rule using different instance name and it will create automatic on shared storage.
    You can also refer below link
    http://windowspbx.blogspot.com/2012/07/aaa-donotpost-install-lync-standard.html
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

Maybe you are looking for