Problem while building jsp/servlet  in j2me

Hi friends,
I'm building Servlet in j2me.When i run this Servlet on web browser the Servlet running fine.But while in application when i used
conn = (HttpConnection)Connector.open( url );
where url = "http://localhost:8080/servlets-examples/hits"
It hangs ,the debugger stuck at this method .It didn't throw any Exception also.
Whats the problem?how could i resolve this issue?
Note:
I've used the follwing tutorial
http://developers.sun.com/techtopics/mobility/midp/articles/tutorial2/
to build servlet in MIDlet.
Regards,
Sachin Warang.

hi friends,
I debug the code while doing so i realised that it throwing SecurityException .So edit the preferences>
where in security i've change it to untrusted and restore the settings.
After clicking on OK .
The application works fine.
Regards,
Sachin Warang.

Similar Messages

  • Problem while creatin jsp portlet

    hello all,
    i get an error "500 internal server error" while creating jsp portlet. i do not write any thing in view.jsp page.
    can any body tell me what is wrong with it? i am using oracle jdeveloper 10g (version 10.1.2.0.0).
    thanks in advance

    Hi Arshita,
    This issue is corrected. You should make a search in SAP Marketplace. There is a note to correct that issue.
    I cannot search from my place (mobile handy device) but you should be able to find it easily in LO-MD-BP-CM or FI-AP* or FI-AR* + TMOD* or the error number.
    The note is quite recent. Probably less than 6 months.
    reward points if helpful.
    BR

  • Some problems while building tuxedo executables (OS/390 - Open MVS)

    Hi,
    I have a both strange and serious (at least it seems serious to me) problem
    with building tuxedo executables.
    I'd like to link the object files with a library I created (say libmylib.a),
    and the only place I know about to pass some info to the tux builders is the
    env var CFLAGS. In my case the CFLAGS looks as follows: "-L
    /u/myhome/myproject/lib -lmylib", but the linker protests, saying that the
    symbols from object files placed in my library can't be resolved ;(.
    On the other hand if I just take the object files out from the library and
    try to link the executable placing all of them explicitly in the command
    line everything goes smoothly.
    HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP...
    Regards
    Chris
    PS. I use Tuxedo release 6.5

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is about ASP.NET web application development, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem in calling jsp/servlets ...Last Day

    when ever I call jsp page from browser, It always search the jsp page in the parent directory of the documentroot directory.
    Also I am not able to set the configuration for calling the servlet from my customize laocation. is any other entry needed except specifying the repositry path in zone.properties file.
    Please help...........I have not very time left for evaluation of 9ias 1.0.2.0.0
    If any one encountered this type of problem. pls respond immediately
    I have installed 9ias v10200 enterprise edition with oracle 8.1.6(enterprise edition) as origin database on winnt server 4.0 with service pack 5. At the time of installation I have selected oracle web cache , forms & reports to be configured at the time of installation.
    I am using port say 10000 other than default port 80, but on same IP.
    I have entered the folling entries at the end of httpd.conf file.
    <VirtualHost 192.168.1.120:10000>
    ServerName rnd1
    DocumentRoot e:/test
    DirectoryIndex hi.html
    </VirtualHost>
    Listen 80
    Listen 10000
    now when I request "http://rnd1:10000/ClamHome.jsp" from browser, It gives the messege that source file "ClamHome.jsp" not found on path "e:\" which is the parent of my documentroot path. Why it try to search at parent directory of document root????????
    another thing is that, when I run the demos of jsp given with 9ias v10200, they works(jsps) fine.
    but after running the demo which is on port 80 with documentroot e:\9\Apache\Apache\htdocs,
    I again call my ClamHome.jsp at rnd1:10000 then it gives error that file not found at "e:\9\Apache\Apache\htdocs". Strange behaviour, this time it searches on path which I called earlier.
    pls help
    null

    I would try to change "./Welcome.jsp" to "/Welcome.jsp". I'm not sure what that period will do.
    Are you able to access that JSP directly from your browser (even if it's not designed to be accessed that way)? If not, then you have some other problem.
    When you say you get a 404 when you access the servlet, is that when you access the servlet, or when it tries to forward to the JSP? If you get the 404 when you access the servlet, perhaps your servlet-mapping to the servlet is invalid.

  • Database DNS problem while uploading jsp's

    We create DNS while working with localhost on winodws machine but when we upload the jsp's and database then how do we manage the DNS problem do we have to create the DNS there too or there is some other way out

    Sorry for spelling mistake actually it was DSN data source that had been asked

  • Facing the problem while executing the Servlet on Jserv Unix box

    Requirement : To Upload the CSV file from client machine to the database
    server's UTL file directory path and load the
    contents of the file in to table by using PLSQL procedure.
    Followed Process : 1> JSP page is used to take the CSV file as Input for
    transferring to the Database server's UTL file directory
    path.
    2> SERVLET is called by above mentioned JSP which
    transfers the input CSV file to the database server UTL
    path.
    It also called the PLSQL procedure which load the contents
    of the file in the table.
    File Transfer Method: Multi-part/Form-data
    Web-server : Apache-Jserv
    Operating System : Unix
    Problem     : After trying to upload the file from JSP, I am getting the INTERNAL SERVER ERROR.
    Note          : The above process has been tested successfully on TOMCAT5 server on Windows XP.
    After checking the error log file ..I am getting the follwing error
    02/06/2005 09:56:08:350] (ERROR) balance: continuing session to bbebapp.balfourbeatty.com : 16600
    [02/06/2005 09:56:19:391] (ERROR) balance: continuing session to bbebapp.balfourbeatty.com : 16600
    [02/06/2005 09:56:19:397] (ERROR) ajp12: Servlet Error: java.lang.NoSuchMethodError: null
    [02/06/2005 09:56:19:397] (ERROR) an error returned handling request via protocol "ajpv12"
    [02/06/2005 09:56:19:397] (ERROR) balance: 10204 internal servlet error in server bbebapp.balfourbeatty.com:16600
    [02/06/2005 09:56:19:397] (ERROR) an error returned handling request via protocol "balance"

    Hi Pavan,
    In the below WLST command please provide a "Space" between every comma ( , )...like following
    wls:/base_domain/serverConfig> reassociateSecurityStore(domain="base_domain", admin="cn=orcladmin", password="welcome1", ldapurl="ldap://<hoistname>:389", servertype="OID", jpsroot="cn=jpsroot_idm_idm1")
    like there is a Space before servertype="OID" same password="welcome1" there is a Space before password...
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • XQilla problem while building dbxml for Visual Studio 6

    I am simply trying to build dbxml 2.4.16 in Visual Studio 6 on XP Pro. I am following the instructions. It fails to to link when it gets to xqilla. It seems to compiile ok then fails while linking saying it cannot open file xqilla21d.lib.
    The only departure from the instructions was after it says the XercesLib.dsp makefile could not be generated by developer Studio and wraps the makefile for XercesLib.dsp and I save that as XercesLib1.dsp. The instructions say to build the XercesLib now, but the next thing that happens after I save XercesLib1.dsp is that it says it couldn't generate the makefile for xqillla and it asks about wrapping the xqulla makefile. The instructions didn't say anything about that. I said yes and it saved xqilla1.dsp then brings up all the classes in the classview. I can build the XercesLib1.exe fine. But then as I go to build all it eventually chokes giving the link error.
    Can anyone offer any help?
    Thanks,
    Curt

    George,
    Thanks for taking the time to reply, though it was pretty discouraging. We have a legacy application that would cost too much to move out of Visual Studio 6. The compile and link process was almost at the end and it seemed only xqilla remained. We only need use dbxml under Visual Studio 6 in order to put xml documents into a database, but we have a stiff requirement for speed so we cant' afford the speed penalty that would come from including a layer like .NET or something. If you think that it won't build under VS 6 anymore I'll try to deal with that. If you think that there is a way to get it to build and then do the minimal function of putting documents into a database, from Visual C++ I'd appreciate to hear any thing else you may have to say.
    Otherwise I'll just see if I can install VS 2003 .NET but not use the .NET and try that, or try Visual Studio 2005, again not using .NET.
    Thanks,
    Curt

  • Strange problem while building a secondary index.

    Hi,
    I have a strange problem in creating a secondary index which is a part of primary data.
    I tested my program and a working sample program
    My data scheme looks like:
       Key = unique string
       Data = structure {
                        time_t timestamp;
        Secondary Key = timestamp in data (NOT unique)
    My BDB environment flags is "DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL | DB_THREAD"
    The primary DB is created as BTREE with a custom key compare function provided by calling DB->set_bt_compare.
    int my_key_compare(DB *db, const DBT *key1, const DBT *key2)
         const char *k1_v = (const char *)key1->data;
         const char *k2_v = (const char *)key2->data;
         return strcmp(k1_v, k2_v);
    The secondary Index DB is created as BTREE while permitting duplication. (DB_DUPSORT)
    It has two custom callback functions; one for data compare, the other for extracting a data from the primary data.
    int my_extract_timestamp(DB *db, const DBT *primary_key, const DBT *primary_data, DBT *secdondary_key)
         secondary_key->data = ( (MY_DATA *)(primary_data->data))->timestamp;
         secondary_key->size = sizeof(time_t);
         return 0;
    int my_secondary_dup_compare(DB *db, const DBT *key1, const DBT *key2)
         time_t      k1_v = *(time_t *)key1->data;
         time_t      k2_v = *(time_t *)key2->data;
         return k1_v - k2_v;
    The function 'my_extract_timestamp' is set by calling DB->associate().
    My problem is 'my_secondary_dup_compare' function called with a strange DBT values.
    I think the values should point to the value provided from my_extract_timestamp(), but they pointed to
    the key which provided when calling DB->put on the primary DB.
    Could somebody help me ?
    Any help highly appreciated.

    Hi,
    In the secondary database, the key is what you extract and the data is the key of the primary database. As your primary key is a unique string, your data in secondary database is also a unique string. The DB->set_dup_compare sets the comparison function for the duplicate data, so you are comparing time stamps on unique strings, not on what you extract.
    As you are comparing the time stamps which are the keys of secondary database, I guess here you want to set the bt_compare function instead of the dup_compare for the secondary database.
    Also, about this sentence:
    secondary_key->data = ( (MY_DATA *)(primary_data->data))->timestamp;
    The DBT.data should be an address, but this is a value here instead of an address.
    Regards,
    Winter, Oracle Berkeley DB

  • Problem while redirecting from servlet to wml page

    Hello everybody
    I am developing a WAP site but I am a begnner in wml and servlet. So I need some help from you ppl.
    I have made a wml page whch redirects to a Login servlet now from that LoginServlet I want to gain redirect to a wml page. I have written the following code so that when the user clicks on Login he is redirected to emailreaderwap/Login.wml page
    PrintWriter out = response.getWriter();
    String url="/emailreaderswap/login.wml";
    response.addHeader("Content-Location:", Double.toStringMath.random()));
    response.setContentType("text/vnd.wap.wml");     
    out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?> ");
    out.println("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.3//EN\" ");
    out.println("\"http://www.wapforum.org/DTD/wml13.dtd\"> ");
    out.println("<wml>");
    out.println("<card>");
    out.println("<p>"+ "Email Address or Password are wrong Please Try Again!\r\nClick On The Link Below to go back to Login Page"+
                                "<a href=\""+url+"\">Login</a>");               
    out.println("</p>"+"</card>"+"</wml>");But when I run this in my Nokia Mobile Browser4.0 I get "malformed output" as output whereas I want to see the /emailreaderwap/Login.wml page as the output.
    Please tell me whether this is the right way to go abt it or is there any other way i can accomplish my task.
    I hope you ppl reply as soon as possible as I have a deadlne to meet.
    Eagerly waiting for your reply.
    Thankyou
    Heti Shah

    hi ,
    u forgot to give the slash ("/") before jsp file when u r creating the RequestDispatcher object. I tried the following example. Its working fine.
    check this code:
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.GenericServlet;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    * @author sivakumar
    public class TestServlet extends GenericServlet  {
          public void service(ServletRequest request,ServletResponse response)throws ServletException,IOException{
                   PrintWriter out=response.getWriter();
                   response.setContentType("text/html");
                   out.println("Hi this is first servlet");
                   RequestDispatcher requestDispatcher=getServletContext().getRequestDispatcher("/test.jsp");
                   requestDispatcher.forward(request,response);
    }test.jsp shows images also.
    try it...
    good luck...

  • Problem while compiling JSP in FORTE

    Hello Friends,
    I am using Fore for Java 4 Community Edition, I have created a web module. I am using internal tomcat 4.0 server. When I request for a JSP which has a bean or a class file stored in the WEB-INF\classes folder either using useBean tag or if try to create an object of that class, I get compilation error as forte is not including those classes in its classpath. But when I deploy the same application on external tomcat, it works fine. Even after I mount the classes folder in the project, it doesn't solve the purpose. Please help me to get rid of this problem. My directory structure is as follows.
    root - jsp and html files
    root\WEB-INF\web.xml
    root\WEB-INF\classes - all class files
    root\WEB-INF\lib - lib jars

    I am also working on Forte. Forte has an inbuilt Tomcat. You dont need to copy any files to any where in the file mount system. You need to specify the External / Internal Browser settings, So that when you try to execute it, the .jsp file can be displayed in the browser. I havent faced any problem as you said.
    Uma
    http://www.javagalaxy.com

  • Facing Problem while building DC  Locally

    Hi all,
    When i build DC from using NWDS, i got the error "unable to find a javac compiler."
    Detailed Error as below :
    Feb 3, 2011 11:20:15 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: createpwdsaf: Build failed for com.bat.saf/createpwdsaf(MyComponents) in variant "default": Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Build log -
    DC Model check:
              [dcmake] All used DCs are available locally
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/webDynpro
              [dcmake] starting build plugin from : D:\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\
    Build Plugin 'WebDynproPlugin', Version 6.40 SP 16 (630_VAL_REL, built on 2006-02-13 00:17:07 CET)
       development component:  createpwdsaf (com.bat.saf)
          software component:  MyComponents (demo.sap.com)
                    location:  local
                        type:  Web Dynpro
               build variant:  default
             source location:  ankita@D-166231
           plugin start time:  2011-02-03 11:20:05 GMT+05:30 (IST)
                     Java VM:  Java HotSpot(TM) Client VM, 1.6.0_02-b06 (Sun Microsystems Inc.)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Plugin initialized in 0.109 seconds
    Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Warning: Did not find any tools.jar in C:\Program Files\Java\jre1.6.0_02
    Data context prepared in 0.031 seconds
    Executing macro file..
      Using macro file:     D:\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\macros\build.vm
      Using build target:   build
      Generation folder:    C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196
      Using Ant version:    1.5.4
    prepare:
         [mkdir] Created dir: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\DCs\com.bat.saf\createpwdsaf\_comp\gen\default\deploy
    compile:
         [ddgen]
         [ddgen] [Info]    Property deployment is true: Deployment information is provided!
         [ddgen] [Info]    Property sourcepath: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\DCs\com.bat.saf\createpwdsaf\_comp\src\packages
         [ddgen] [Info]    Property targetpath: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196\gdd
         [ddgen] [Info]    Property archivename: com.bat.saf~createpwdsaf
         [ddgen] [Info]    Property vendor: com.bat.saf
         [ddgen] [Info]    Property dcname: createpwdsaf
         [ddgen] [Info]    Property language: Available languages are automatically determined!
         [ddgen] [Info]    Property addpaths ...
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapDictionaryTypeServices.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapDictionaryTypesRuntime.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       jrfc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.mw.jco/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_util_misc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sap.aii.util.misc/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       cmiapi.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       exception.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.exception/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       com.bat.saflibrarylibrary_DCs.jar - C:/Documents and Settings/ankita/.dtc/LocalDevelopment/DCs/com.bat.saf/library/_comp/gen/default/public/library_DCs/lib/java
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_proxy_rt.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sap.aii.proxy.framework/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.perf.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       com.sap.security.api.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.security.api.sda/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       com.sap.security.api.perm.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.security.api.sda/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproadmin.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynprobasesrvc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproclientserver.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodelimpl.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodel_dynamicrfc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpropdfobject.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproprogmodel.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling_api.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository_pmr.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproservices.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]    Initialize generation templates from configuration jar:file:/D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
         [wdgen] [Info]    Generating configuration/Applications/com.bat.saf.application.CreatePWDSAFApp/CreatePWDSAFApp.xml
         [wdgen] [Info]    Generating portalapp.xml
         [wdgen] [Info]    Generating wd.xml
         [wdgen] [Info]    Generating application.xml
         [wdgen] [Info]    Generating application-j2ee-engine.xml
         [wdgen] [Info]    Generating PublicPartFileList.properties
         [wdgen] [Info]    Generating PublicPartFileList.xml
         [wdgen] [Info]    Generation finished (6 seconds)
         [wdgen]
         [timer] WebDynpro generator  finished in 6.734 seconds
          [echo] Starting Java compiler
         [javac] Compiling 47 source files to C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196\classes
    Ant runtime 9.828 seconds
    Ant build finished with ERRORS
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Error: Build stopped due to an error: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    Build plugin finished at 2011-02-03 11:20:15 GMT+05:30 (IST)
    Total build plugin runtime: 10.343 seconds
    Build finished with ERROR
    I check the JAVA_HOME, it is C:\Program Files\Java\j2re1.4.2_13\bin
    In NWDS ->WINDOW->PREFERENCES->JAVA->Installed JRE's, it is C:\Program Files\Java\j2re1.4.2_13
    Do i need to chck any other setup?
    Regards,
    Manchari

    Hi Manchari,
    In your directory C:\Program Files\Java\j2re1.4.2_13 there is a bin folder. Check there for the executable javac.exe. If that executable is not available, you just have a Java runtime environment installed.
    Download from the net a Java SDK (System Development Kit) of the right version i.e. j2sdk1.4.2_13. Point it to your NWDS under NWDS ->WINDOW->PREFERENCES->JAVA->Installed JRE's.
    Hope this helps.
    Regards,
    Alain.

  • Error while building xml document

    Hi Everyone,
    I have a problem while building xml document.
    I have developed my java files using IBM Eclipse 3.0 and i had no problem while executing the files.
    But while i am trying to execute the same code in jdk/bin, xml document is not working..
    No error encountered while compiling but while executing when i try to print the xml string it just gives the root element name like [root : null]
    Can anyone suggest some solution?

    To the values element add xmlns:xsi and xsi:noNamespaceSchemaLocation.
    <values xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:noNamespaceSchemaLocation="file:///c:/schema.xsd">schema.xsd is schema file.

  • Error while building  the eclipse using exadel tool

    hi all
    i m facing a problem while building project using eclipse tool called(exadel ).it gives error like "integarted external building tool error - : variable references non existent resource :${workspace_loc:/my project not found}".
    so if anybody have idea about above pls let me know

    This problem come directly from your Exadel or Eclipse IDE itself.
    It means that a directory (which is your project directory) is not available in your worspace dir.
    usually workspace dir is inside your user home dir.
    check to see whether this folder exisits or not.

  • How to solve "Error: Invalid Embed directive in stylesheet - can't resolve source" while building using mxmlc.exe on command prompt

    Hi,
    Currently, I am developing a powershell script for Flex build automation.
    I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.
    I am using compc.exe for compiling the libraries and it works fine.
    I compiled css files into swf files using mxmlc.exe and it works fine.
    However, I have a problem while building my main application (mxml file).
    It complains about embedded resources.
    I run this command, it works fine:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"
    However, when I tried to run these command on cmd for testing:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"
    I got a lot of this error message:
    this is my folder structure:
      FlashClient
      |
      |---assets
      |---src
          |
          |---FlashClient.mxml
          |---FlashClient.as
          |---FlashClientStyleLoopup.css
          |---styleLang
    Already tried to add / at the beginning of the relative paths but It did not work.
    Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tag
    Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?
    I've been trying to work on it for days but haven't had any luck.
    Will be really appreciate it if someone could help me with this.
    Many Thanks.

    Hi,
    make sure you are using 32 bit Java JDK. Check that your systems variables CLASSPATH, JAVA_HOME are pointing to correct 32 bit Java JDK folder (e.g. CLASSPATH=C:\Program Files (x86)\Java\jdk1.8.0_25 and JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25). Also make sure you have 32 bit Java JDK's "bin" folder in your system's variable PATH.

  • PROBLEM while using URL in order to open a file from a servlet

    Hi,
    I am having a problem while trying to open a file from my servlet by using URL connection. Following is my code sample. what happens is when I first run my project it opens the file but after that when I rerun it again and again it sometimes opens it and sometimes not. if it can't open it it gives an error saying "the file is damaged and couldn't be repaired". I don't get any exceptions. if you guys can help me I will appreciate it so much... thanks.
    here is my code :
    URL url = new URL("http://demobcs.ibm.com:81/test.pdf");
    resp.setContentType(getContentType("http://demobcs.ibm.com:81/test.pdf"));
              ServletOutputStream sos = null;
              BufferedInputStream bis = null;
              try {
                   sos = resp.getOutputStream();
              } catch (Exception e) {
                   System.out.println("exception !!!!");
                   e.printStackTrace();
              System.out.println("burada2");
              try {
                   byte[] bytes = new byte[4096];
                   //bis = new BufferedInputStream(conn.getInputStream());
                   DataInputStream in = new DataInputStream(url.openStream());
                   //DataInputStream in = new DataInputStream(conn.getInputStream());
                   bis = new BufferedInputStream(in);
                   int j;
                   while ((j = bis.read(bytes, 0, 4096)) != -1) {
                        try {
                             sos.write(bytes, 0, 4096);
                             System.out.println("file is being read ...:");
                        } catch (Exception e) {
                             e.printStackTrace();
                   in.close();
                   bis.close();          
                   //sos.close();
              } catch (Exception e) {
                   System.out.println("exception :"+e.toString());
                   e.printStackTrace();
              }

    You are writing (<filesize> mod 4096) bytes of crap at the end of the file. Use your variable j instead for the number of bytes to write in your loop.

Maybe you are looking for

  • Unit testing and Issue on ODS

    Hi every one, I was asked to do Unit testing on all the objects I created which includes data loading, checking the structure.....etc...If any one has any template for Unit testing pls forward it to me [email protected]..... My ods is designed with o

  • CALL_FUNCTION_REMOTE_ERROR when trying to call Sender RFC

    I am trying to use the sender RFC adapter without much luck.  I have written a small ABAP program to call the function - it contains the lines: call function 'mi_rfc_check_picking' destination 'ZXI-DEV' When I run this, I get an error "CALL_FUNCTION_

  • Hum Through DV Cam When CRT Connected

    Would anybody have any idea why attaching an external CRT to my PowerBook via the DVI-VGA adapter would cause a rather loud hum from the analog output of a DV cam when it's attached to the PowerBook via firewire? Even if the external monitor is turne

  • Need Help ASAP. Backdating Draft text messages?

    Accidently went into a message I wasn't supposed to be on, happend to be a draft message so it bumped it up to the most recent message. Any way to back date this or what is the best solution for correcting my mistake? Thanks

  • Keychain and password

    Hi, I changed the password because a family member passed away, now the key chains are all messed up and so now I would like to change the administrator to. What do I do next? Garrett