J2EE deploytool compile error in generated code.

I write and compile all the code for EJB.
Created .EAR and .WAR files needed for deploy. But when the deploy application tries to generated and compile stub code there is a compilation problem.
Anyone knows how can I solve this? or this is a problem of the deploy app, Is there another one?
I'm using J2EE SDK 1.3 beta version.
THANKS...

It's not an Exception. Are compile errors of the generated code.
When you make "Deploy..." from "Tools" menu item of the "Application Deployment Tool", it make some task including source generation and its compilation, so, this compilation have errors.

Similar Messages

  • Error while generating code in brf+ function

    Hi all,
    i am getting error while generating code in function in bRF+
    am using weight fields ..if i dont use quantity fields am able to generate code .
    please help.
    Thanks.

    Can you provide more details? What exactly is the error?
    I think we have provided a note for the issue. With the details it should be possible to identify the note number.

  • Error in generated code :Component Interface

    Hi All,
    I have my webdynpro component active works fine in Dev Server.
    When we move it to qualtiy we got a strange error " Error in Generated Code, Type Z*IWCI is unknown.
    Its related to the Component interface which gets generated automatically while any WDA is created but in our system it isnt getting generated?
    Looking for your valuable comments on ths
    Regards
    Bhanu

    Hi Bhanu,
    Goto se09 check for that request ICF service is generated or not? I think you first created in $TMP and assigned package.
    If ICF service is not available, just copy it to new comp, it will create new ICF service. I dont know this is the solution,
    just a guess.
    Cheers,
    Kris.

  • Syntax Error in Generated Code

    Hi All,
                I am facing the syntax error in WD4A.
    Web Dynpro Comp. / Intf. Z_PO_REQUEST,Web Dynpro Component Controller COMPONENTCONTROLLER
    Error in Generated Code
    The type "ZIWCI_PO_Request" is unknown, but there is a type with the
    similar name "IG_Z_PO_REQUEST". "IG_Z_PO_REQUEST". "IG_Z_PO_REQUEST".
    Any Suggestions to fix this?.
    Thanks in Advance,
    Rajen.

    Hi All,
                I am facing the syntax error in WD4A.
    Web Dynpro Comp. / Intf. Z_PO_REQUEST,Web Dynpro Component Controller COMPONENTCONTROLLER
    Error in Generated Code
    The type "ZIWCI_PO_Request" is unknown, but there is a type with the
    similar name "IG_Z_PO_REQUEST". "IG_Z_PO_REQUEST". "IG_Z_PO_REQUEST".
    Any Suggestions to fix this?.
    Thanks in Advance,
    Rajen.

  • [svn:osmf:] 13314: Fix compile error in logging code.

    Revision: 13314
    Revision: 13314
    Author:   [email protected]
    Date:     2010-01-06 13:46:17 -0800 (Wed, 06 Jan 2010)
    Log Message:
    Fix compile error in logging code.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/net/NetNegotiator.as

    Hi,
    Can you please make sure you have Flex 3.2 or higher SDK and then target to Flash Player 10. I have this working on my system and yes, i got the same error when my SDK was below 3.2 and not targeted to Flash Player 10.
    Hope this helps.

  • Why no compiler error is generated ?

    When I try to store value 0xff in a byte variale with the statement :
    byte b=0xff;
    a compiler error is generated
    but when I try to store the value 0xffffffff in b no complier error occurs.
    The quetion is if the compiler can truncate bits in case of value 0xffffffff then why not in case of 0xff.

    sharmaneha wrote:
    but the question is why does not the compiler truncate the value for 0xff?That's 255, which is more than 127, which is the max value for a byte (they can be between -128 and 127)

  • OWB Error while generating Code for a mapping

    I have a simple mapping loading from a source to a flat file. When I try to generate code it gives me the following Error
    VLD-2357: Target Data File name not specified for file <target Flat file name>.
    I am new to OWB so any help on the same will be greatly appreciated. How can I specify target Data File name in the mapping configuration under Flat file operators
    Thanks
    Anish

    If you configure the mapping in the UI from the main design tree and select the name of your file operator under the tree node 'Flat File Operators' on the right hand side panel the properties should be displayed - one of these properties is 'Target Data File Name', enter the name of your target data file name.
    Cheers
    David

  • Compilation error while generating the form in linux

    Hello everyone,
    I am using Oracle Designer ver10.1.2.4 in windows to generate the forms with standard object library ofgwebol.olb and template form ofgwebt.fmb. form (with both .fmb and .fmx files) are generated without errors. Also when I open the forms in separately they compiles without errors. But when I copy the same .fmb file into linux enviroment and compile it using frmcmp.sh userid=user/password@database module_type=form compile_all=yes module=form_name it gives following errors.
    $> frmcmp.sh userid=odin/odin@ontw10g module_ty
    pe=form compile_all=yes module=LOGIN_SCHERM
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.4.0 Production
    FRM-18108: Failed to load the following objects.
    Source Module:ofgwebol.olb
    Source Object: CGSO$CHAR_DO
    Source Module:ofgwebol.olb
    Source Object: CGSO$CHAR_DO
    Source Module:ofgwebol.olb
    Source Object: CGSO$BLOCK
    Source Module:ofgwebol.olb
    Source Object: CGSO$CANVAS
    Source Module:ofgwebol.olb
    Source Object: CGSO$WINDOW
    Compiling function CGTE$CHECK_CONSTRAINT_VIO...
    No compilation errors.
    Compiling procedure CGTE$INLOGGEN_ERRORS...
    No compilation errors.
    L/SQL ERROR 0 at line 17, column 3
    Statement ignored
    PL/SQL ERROR 201 at line 36, column 3
    identifier 'CGNV$.NAV_CLOSE_FORMS' must be declared
    PL/SQL ERROR 0 at line 36, column 3
    Statement ignored
    PL/SQL ERROR 201 at line 37, column 3
    identifier 'CGNV$.NAV_OPENING_WND' must be declared
    PL/SQL ERROR 0 at line 37, column 3
    Statement ignored
    Compiling KEY-HELP trigger on form...
    No compilation errors.
    Compiling WHEN-WINDOW-ACTIVATED trigger on form...
    Compilation error on WHEN-WINDOW-ACTIVATED trigger on form:
    PL/SQL ERROR 201 at line 6, column 8
    identifier 'CGNV$GET_ITEM_WINDOW' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compiling POST-TEXT-ITEM trigger on form...
    Compilation error on POST-TEXT-ITEM trigger on form:
    PL/SQL ERROR 201 at line 4, column 3
    identifier 'CGNV$.STORE_WND_ITEM' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compiling WHEN-WINDOW-CLOSED trigger on form...
    Compilation error on WHEN-WINDOW-CLOSED trigger on form:
    PL/SQL ERROR 201 at line 5, column 3
    identifier 'CGNV$.TERMINATE_WINDOW' must be declared
    PL/SQL ERROR 0 at line 5, column 3
    Statement ignored
    Compiling WHEN-FORM-NAVIGATE trigger on form...
    Compilation error on WHEN-FORM-NAVIGATE trigger on form:
    PL/SQL ERROR 201 at line 3, column 3
    identifier 'CGNV$.REMOVE_CHILD_FORM' must be declared
    PL/SQL ERROR 0 at line 3, column 3
    Statement ignored
    Compiling KEY-EXIT trigger on form...
    Compilation error on KEY-EXIT trigger on form:
    PL/SQL ERROR 201 at line 5, column 3
    identifier 'CGNV$.NAV_ENTER_QUERY' must be declared
    PL/SQL ERROR 0 at line 5, column 3
    Statement ignored
    PL/SQL ERROR 201 at line 9, column 5
    identifier 'CGNV$.CLOSE_ALL_WINDOWS' must be declared
    PL/SQL ERROR 0 at line 9, column 5
    Statement ignored
    Compiling KEY-CLRFRM trigger on form...
    No compilation errors.
    Compiling ON-ERROR trigger on INLOGGEN data block...
    No compilation errors.
    Compiling KEY-PREV-ITEM trigger on AGB_ID item in INLOGGEN data block...
    Compilation error on KEY-PREV-ITEM trigger on AGB_ID item in INLOGGEN data block
    PL/SQL ERROR 201 at line 4, column 3
    identifier 'CGNV$GO_PREV_ITEM' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compiling KEY-NEXT-ITEM trigger on AGB_NAAM item in INLOGGEN data block...
    Compilation error on KEY-NEXT-ITEM trigger on AGB_NAAM item in INLOGGEN data blo
    ck:
    PL/SQL ERROR 201 at line 4, column 3
    identifier 'CGNV$GO_NEXT_ITEM' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    Statement ignored
    Compilation errors have occurred.
    Form not created
    I think some standard library are missing in Linux environment. But I do not know the name of them and neither I can find. Please suggest the what need to be done to resolve the problem. The reason I am compiling the form in Linux is that I can run the form in windows because of corrupted installation of OC4j.
    Thanking you all much in advance.
    Edited by: Deepank on Dec 2, 2008 1:49 AM

    Deepank-
    When generating forms from Designer, Designer attaches libraries - like ofgmes.pll, ofgnavl.pll, etc. You will need to copy these libraries to the same directory where your forms reside on your Linux box. To find out what libraries ate attached to your form, open it on your windows PC after generating it from Designer and you will see the attached libraries. Also, watch out for the case-sensitivity of Linux. If you have the Designer libraries on your linux box and you still get errors, try changing the case of the names of the libraries.
    Hope this helps,
    Dan

  • Error while generating code for deployment

    I am getting the following error:
    Error generating findTest1ByMarks(java.lang.Integer) query for Bean Test1(Abstract scheme name=Test1) Error=query cannot be pushed down
    Query="select ..."
    Could someone help me?
    I am trying to generate code of Container Managed Entity Bean in WSAD 5.0.
    Thanks

    If you configure the mapping in the UI from the main design tree and select the name of your file operator under the tree node 'Flat File Operators' on the right hand side panel the properties should be displayed - one of these properties is 'Target Data File Name', enter the name of your target data file name.
    Cheers
    David

  • Compilation error, When moving code from 32-bit to 64-bit

    Hello,
    This Code compile on 32 bit system, but Getting Compilation error fro 64 bit,
    :/export/home/pshirode/rel_v95/cc_lib > make
    Making dependencies...
    cc -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -I. -m64 -xarch=sparcvis -library=iostream,no%Cstd -H -w -E 2>&1 >/dev/null Bitmap.cc BitmapData.cc BitmapInputTxnStream.cc BitmapOutputStream.cc UnexpectedException.cc FieldData.cc FieldDataCollection.cc FieldDefinition.cc FieldDefinitionCollection.cc OutputFixedStream.cc ParsingEngine.cc Schema.cc Statistics.cc String.cc TraceStream.cc TxnStream.cc c_api.cc SocketImpl.cc Socket.cc ServerSocket.cc UnixSocket.cc Thread.cc test.cc | grep -v License | grep -v command | ../dvl.bin/mkdep >.depends
    Dependencies updated...
    CC -g -D__EXTENSIONS__ -D_SVID_GETTOD -I../h -I/app/oracle/product/9.2_32/precomp/public -I. `getconf LFS_CFLAGS | head -1` -D UT_TRACE_FUNCTION -I. -m64 -xarch=sparcvis -library=iostream,no%Cstd -c Bitmap.cc
    "RuntimeException.h", line 131: Error: Function RuntimeException::~RuntimeException() can throw only the exceptions thrown by the function std::exception::~exception() it overrides.
    "RuntimeException.h", line 97: Error: Could not find std::exception::exception(const char*) to initialize base class.
    "RuntimeException.h", line 121: Error: xmsg is not a member of std::exception.
    "Bitmap.cc", line 62: Error: Cannot return int(Bitmap::*)()const from a function that should return int.
    4 Error(s) detected.
    make: *** [Bitmap.o] Error 4
    CFLAGS in Makefile
    # The system include directory must be specifically included first because some of the
    # ghost includes use system include file names (e.g., generic.h)
    # Modified these section to compile on TVLAPP1HAG
    CFLAGS += -D $(STDOUT_TRACE)
    #CFLAGS += -g -D$(MAINLINE) $(OUR_COLLECTION)
    #CFLAGS += -compat -Qoption ccfe -abirel=4.1
    #CFLAGS += -Qoption ccfe -abirel=4.1
    CFLAGS += -I. -m64 -xarch=sparcvis -library=iostream,no%Cstd
    #CFLAGS += -I. -mt
    # Add the flag for multi-threaded apps
    LDFLAGS += -lsocket -lnsl -lthread
    # declare an empty macro for compiler directive flags, to be command-line
    # driven (ie, for -D directives)
    CCFLAGS=
    CCFLAGS += -DRW_NO_CPP_RECURSION
    # The following manipulation of CC and overriding the .cc.o suffix
    # dependency is removed here to use what is supplied by default int
    # the h/common.mak file.
    #XX = CC
    #CC = CC
    #COMPILE = $(CC) -o $*.o $(CFLAGS) $(CCFLAGS) -c $*.cc
    #.cc.o:
    # $(COMPILE)
    #.DEFAULT:
    # $(COMPILE)
    #all: $(TEST_OBJS) $(PGM_EXEC)
    all: $(TEST_OBJS)
    #install:
    # $(INSTALL) $(PGM_EXEC)
    $(TEMPLATE_CONTAINER).o: $(TEMPLATE_CONTAINER).cc
    $(CC) -o $*.o $(CFLAGS) -pta -c $*.cc
    # Uncomment the following lines, and uncomment the appropriate MAINLINE
    # setting to create your desired test program for a cc_lib routine. Normally
    # we simply want to create the cc_lib .o files so this is commented out.
    #test exec
    $(PGM_EXEC): $(INCLUDES) $(TEST_OBJS)
    @echo Linking test...
    $(CC) -g -o $(PGM_EXEC) $(TEST_OBJS) $(LDFLAGS) $(ROOT)/util/libutil.a
    checksum:
    /export/home/pshirode/rel_v95/cc_lib > CC -V
    CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    Please help ASAP

    This looks like exactly the same question you asked in the thread
    [http://forums.sun.com/thread.jspa?threadID=5335510]
    Please do not ask the same question in more than one thread.

  • Why no compile  error in this code ?

    strings are immutable... we can not alter it... so why the below does not create compile error ? it is an attempt to alter the string.
    class test
    public static void main(String args[])
        String s1 = new String("amit");
        s1.concat("Poddar");    // why no error ?
        System.out.println(s1);
    }

    strings are immutable... we can not alter it... so
    why the below does not create compile error ? First of all, Strings are immuatable because the String class is coded that way - there willnever be a compiler error to stop you from altering a String's value (which is actually possible via reflection). This is similar to you writing your own class that has a private field and not providing any methods that can alter the field's value. Your new class would be considered immutable in the same way that Strings are considered immutable, and nobody can even attempt (except reflectively), to "alter" an instance of it, so there will never be a compiler error that is due to such an attempt.
    it is an attempt to alter the string.No it isn't. The following is a quote from the Javadoc for String.concat:
    "If the length of the argument string is 0, then this String object is returned. Otherwise, a new String object is created, representing a character sequence that is the concatenation of the character sequence represented by this String object and the character sequence represented by the argument string."

  • Fpga compile error Process "Generate Programmin​g File" failed

    When I tried to compile any fpga vi. It always end up with this kind of error: 
    WARNING:Bitgen:26 - Bitgen only supports DRC but not bitstream generation on
    this device. This condition can occur if there are problems obtaining a
    license to run bitgen or if the design targets a device which is Early
    Access.
    Process "Generate Programming File" failed
    Even when i tried the example vi given by NI.
    However when i select the FPGA target pxi-7831R, it succeed. Other fpga targets like pxi7853R pxie7965R or Pxie7953R don't work well.
    PS: i use labview 2011 NI-RIO 4.0 and xilinx tools 13.4

    Hello,
    The key will of course be to isolate differences between your machines.
    I wonder if the following more specific language setting could be the lingering problem.  LabVIEW is a non-unicode program, and there is a language setting in Windows (at least XP) specifically for non-unicode programs.  Try the following (or it's Win2K equivalent) if you haven't already:
    0. Open "Control Panel"
    1. Open the "Regional and Language Options"
    2. On the Advanced tab, choose English (United States) from the drop-down menu under the top section "Language for non-Unicode Programs"
    - This language setting is different from the setting on the "Regional Options" tab. 
    Any other differences you can isolate would be potentially insightful - if you have the same software versions installed in the same order on both machines, we may be looking for something a bit subtle, such as the suspected language setting.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Compile Errors when Generating Conditional Tag Help File

    Ok, here is a recap of everything I have done. I started over from scratch. Unzipped the Help File into C:\Users\edwinwood\Documents\My RoboHelp Projects\Adobe RoboHelp 9 folder. Went to the properties SSOL Help Development folder and unchecked read only. Opened RoboHelp 9 as an administrator, went to File->Open and opened the help file. The first thing that pops up is a message stating this is a help file made with an older version of RoboHelp(v8) and must be upgraded(v9). I hit ok. The next pop-up is this “Unable to connect to the project $/SSOL HelpDevelopment@:ROBOSOURCE in version control. Would you like to browse for it?” I hit yes and the next pop-up just asks do you want to discontinue connection attempts in the future. I hit no. After that is usually where the files that are write protected pop-up but they didn’t this time. After about 5 minutes It will say upgrade complete. I shut down RoboHelp go into the language folder copy the robohhre.lng and paste it into the root folder. Like I said this file has nothing in it.  I reopen RoboHelp as an administrator and open the project again. I then go to View->Pods->Single Source Layouts. Double click the Tag1 Remove Hickory Tech and then click save and generate. At the very end of the compile process I still get Template Errors...
    Applying WebHelp 5.50 Template...
    Template Error: can not resolve macro: WH_LNG_LoadingData
    ...Template Error: can not resolve macro: WH_LNG_MergeError1
    Template Error: can not resolve macro: WH_LNG_MergeError2
    Template Error: can not resolve macro: WH_LNG_JS_alert_ProjectLoadingFail
    ...Template Error: can not resolve macro: WH_LNG_PreTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_NextTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Show_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Show_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_SyncTocTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    .....Template Error: can not resolve macro: WH_LNG_IndexSelectTopicTitle
    Template Error: can not resolve macro: WH_LNG_IndexSelectTopicLabel
    .....Template Error: can not resolve macro: WH_LNG_LoadingContentsData
    Template Error: can not resolve macro: WH_LNG_Book
    Template Error: can not resolve macro: WH_LNG_Page
    Template Error: can not resolve macro: WH_LNG_Remote_Page
    ....Template Error: can not resolve macro: WH_LNG_IndexBtnText
    ....Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whfform.htm
    Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whfform.htm
    Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whfform.htm
    Template Error: can not resolve macro: WH_LNG_FtsMaxResult
    Template Error: can not resolve macro: WH_LNG_FtsBtnText
    .....Template Error: can not resolve macro: WH_LNG_JS_alert_ErrorInLoading
    ....Template Error: can not resolve macro: WH_LNG_About in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_Author in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_PoweredBy in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_GeneratedBy in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_ToolBarSearchBtnText in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_Show_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_SyncTocTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_ContentCategoryList in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_NextTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_PreTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Finished applying Template in 40 sec(s)

    Ok, replaced the 0k .lng file with one that actually has something in it and I am down to one error.
    Template Error: can not resolve macro: WH_LNG_ContentCategoryList
    If anyone could help me with this one I would be much obliged

  • J2EE-asant compile error

    could anyone help me with this.
    I jsut started with J2EE. I have problem with java compilation and need your advise. I was following the SUN downloaded tutorial "j2eetutorial14" and run "asant" for "hello1" sample application. I got following error message :
    BUILD FAILED
    file:C:/Sun/j2eetutorial14/examples/web/hello1/build.xml:52: C:\Sunj2eesdk1.4_beta2\lib not found.
    It seems like "asant" cannot properly locate the J2EE App server install location. In the last message, there should be a "\" right after "C:\Sun" and before "j2eesdk1.4_beta2". It seems asant has missed out a "\" in constructing the pathname.
    For your reference:
    1. I am running J2EE 1.4 beta2
    2. I have isntalled both J2EE App server and toturial under the same directory "C:\Sun".
    3. I have correctly setup j2ee_home in build.properties as attached. I also successfully compiled the two java scripts, GreetingServlet and ResponseServlet, individually into class files. So the CLASSPATH and PATH have been defined properly.
    4. In build.property, I have define "j2ee.home=C:\Sun\j2eesdk1.4_beta2" as instructed in the toturial.
    anyone encountered similar problem ?
    I would appreciate if anyone could shed some light here.
    cheers,
    Jimmy

    HI ibidris2003, thx for the quick response.
    I have already set the env var as instructed by the tutorial:
    J2EE_HOME=C:\Sun\j2eesdk1.4_beta2
    JAVA_HOME=C:\Program Files\j2sdk1.4.1_01
    CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
    PATH included %J2EE_HOME%\bin;
    %J2EE_HOME%\share\bin;
    %JAVA_HOME%\bin;
    %CATALINA_HOME%;
    CLASSPATH = %CATALINA_HOME%\common\lib\servlet.jar;
    %CATALINA_HOME%\webapps\myApp\WEB-INF\classes;
    %CATALINA_HOME%\webapps\myJSPApp\WEB-INF\classes;
    %CATALINA_HOME%\webapps\myJ2eeApp\WEB-INF\classes;
    %CATALINA_HOME%\webapps\myEjbApp\WEB-INF\classes;
    %JAVA_HOME%\lib\tools.jar;
    %J2EE_HOME%\lib\j2ee.jar;
    Appreciate if you could further advise.
    cheers,
    Jimmy

  • Compilation Error for Login code

    hi!
    Can someone help me debug this?
    C:\JRun4\servers\default\default-ear\default-war\WEB-INF\classes>javac -deprecat
    ion Login.java
    Login.java:46: warning: putValue(java.lang.String,java.lang.Object) in javax.ser
    vlet.http.HttpSession has been deprecated
    userSession.putValue("userName", uName);
    ^
    Login.java:26: unreported exception java.sql.SQLException; must be caught or dec
    lared to be thrown
    String uName = validateUser(userId, password);
    ^
    Login.java:66: unreported exception java.lang.ClassNotFoundException; must be ca
    ught or declared to be thrown
    Class.forName("org.gjt.mm.mysql.Driver");
    ^
    2 errors
    1 warning
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import java.lang.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Login extends HttpServlet{
    public void doPost(HttpServletRequest req, HttpServletResponse res)
                   throws ServletException,IOException{
    String userId = req.getParameter("userId");
    String password = req.getParameter("password");
    ** call a method to validate the password which will return the
    ** User Name for authorized users and null string for un-authorised.
    String uName = validateUser(userId, password);
    // if uName is null .. user is not authorized.
    if (uName == null)
         PrintWriter ot = res.getWriter();
    System.out.println(" Please verify the Userid and password");
    System.out.close();
    else
    // So the user is valid let's create a seesion // for this user.
    HttpSession userSession = req.getSession(true);
    // put the user name session variable.
    userSession.putValue("userName", uName);
    // now we need to transfer the control to welcome.jsp
    RequestDispatcher rd =
         getServletContext().getRequestDispatcher("/welcome.jsp");
    if (rd != null)
         rd.forward(req,res);
    }// end of doPost
    public String validateUser(String inputUserid, String inputPwd)
    throws SQLException{
         String returnString = null;
         Class.forName("org.gjt.mm.mysql.Driver");
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "test","test");
         Statement stmt = con.createStatement();
         String sql= "select USERID from USERTABLE where USERID = '" +
              inputUserid + "' and PASSWORD = '" + inputPwd +"' ;" ;
         ResultSet rs = stmt.executeQuery(sql);
         if (rs.next())
         returnString = rs.getString("USERID");
         stmt.close();
         con.close();
         return returnString ;
    }// end of servlet class
    Thank you!
    I'm using Win98 , JDK1.3 and Jrun4
    I also have j2sdkee1.2.1
    (if that matters)
    Dewi

    Hi,
    Put try catch block in your code and it will work fine.Please look at the code changes in your code.You find try-catch blocks.
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import java.lang.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Login extends HttpServlet{
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException,IOException{
    String userId = req.getParameter("userId");
    String password = req.getParameter("password");
    ** call a method to validate the password which will return the
    ** User Name for authorized users and null string for un-authorised.
    String uName = validateUser(userId, password);
    // if uName is null .. user is not authorized.
    if (uName == null)
    PrintWriter ot = res.getWriter();
    System.out.println(" Please verify the Userid and password");
    System.out.close();
    else
    // So the user is valid let's create a seesion // for this user.
    HttpSession userSession = req.getSession(true);
    // put the user name session variable.
    userSession.putValue("userName", uName);
    // now we need to transfer the control to welcome.jsp
    RequestDispatcher rd =
    getServletContext().getRequestDispatcher("/welcome.jsp");
    if (rd != null)
    rd.forward(req,res);
    }// end of doPost
    public String validateUser(String inputUserid, String inputPwd)
    String returnString = null;
    try{
    Class.forName("org.gjt.mm.mysql.Driver");
    }catch(ClassNotFoundException){
    System.out.println("An exception occurred ");
    Connection con = DriverManager.getConnection ("jdbc:mysql://localhost:3306/test", "test","test");
    Statement stmt = con.createStatement();
    try
    String sql= "select USERID from USERTABLE where USERID = '" +
    inputUserid + "' and PASSWORD = '" + inputPwd +"' ;" ;
    ResultSet rs = stmt.executeQuery(sql);
    if (rs.next())
    returnString = rs.getString("USERID");
    stmt.close();
    con.close();
    return returnString ;
    }catch(SQLException sqe){
    System.out.println("SQL Exception "+sqe.getMessage());
    }// end of servlet class
    Cheers,
    Rkanth

Maybe you are looking for

  • Service Tax

    Hi , Pls Guru's help Service Tax Receivable & Payable – The Client wants to have a Service Tax Control Account that would be automatically populated for the particular bill / Invoice on the day of Vendor Payment and Customer Receipt. a.     Example –

  • F.05 foreign currency revaluation (Balance sheet preparation valuation)

    Hi, I have run the revaluation (F.05) for a balance sheet account by mistake ticking the "balance sheet preparation valuation" box. Hence i could see some value populated in the coulmn old differences in the revaluation report. Please advice will thi

  • My aperture library will not open after restoring my whole computer after a kernal panic.  I can not get the Aperture troubleshooting menu to open...any help?

    My aperture library will not open after restoring my whole computer after a kernal panic.  I can not get the Aperture troubleshooting menu to open...any help?

  • VF03 and VA03

    Hi to all,     When we r displaying the billing line items in VF03 its showing some TAX code and GL account number in screen. But same line items disaplying in VA03 its doesnt have TAX code and GL account in the screen. WHat is the probelm in that.Ca

  • RMAN NB_ORA parameters

    Hello, I'm about to restore a database, but I'm not sure what channel parameters should I be using such as NB_ORA_CLIENT, NB_ORA_CLASS etc., Any idea which view containts these details? I'm using controlfile as backup catalog not RMAN catalog. Thanks