Servlet not reading whole request?

Hi, I have a servlet which is supposed to read a user request using an URLConnection, this is the servlet's relevant code:
byte[] bytes = new byte[1024];
byte[] allBytes = new byte[ 20480 ]; // max 20 KB
int iReadAmount = 0;
int iOffset = 0;
try {
     BufferedInputStream bin = new BufferedInputStream( request.getInputStream() );
     while( (iReadAmount = bin.read( bytes )) > -1 ) {
          System.arraycopy( bytes, 0, allBytes, iOffset, iReadAmount );
          iOffset += iReadAmount;
} catch( Exception ex ) {
     getServletContext().log( "____failed to read: " + ex.toString() );
     return;
getServletContext().log( "____servlet has read " + iOffset + " bytes:\n" + new String( allBytes, 0, iOffset ) );and the servlet is never reading the whole request, usually for some reason it reads only 694 bytes, instead of about one KB, (potentially it can read up to 20 KB, as specified in allBytes = new byte [20480], but for some very weird reason it doesnt).
Does anyone have a clue why it might happen? I've spent a lot of time on this and couldn't find the reason. This code works just fine on my tomcat local server, it only doesn't work when I put it on the remote server at www.myjavaserver.com.
The client's ( it's an applet, it's signed, so there's no security exception) code which sends the bytes is:
URL url = ListCard.getProjectsURL();
URLConnection con = url.openConnection();
con.setDoOutput( true );
con.setUseCaches( false );
byte[] bytes = proj.toString().getBytes( ChatUser.sEncoding );
con.setRequestProperty( "Content-Length", String.valueOf( bytes.length+2 ) );
System.out.println( "content-length: "+  String.valueOf( bytes.length+2 ) );
BufferedOutputStream bout = new BufferedOutputStream( con.getOutputStream() );
bout.write( ChatUser.btLegal );
bout.write( ChatUser.btSaveProject );//two bytes specify what to do with the request
bout.write( bytes );
bout.flush();Please help

Hi,
try this out, goto transaction RSRT and select ur query from drop down. Click on properties and in the Data Integrity dropdown select the option "1 Transactional Part Providers Up to Current Version".
This will get the data from any open requests irrespective of the variable that's used. We also have the ability to report data from a red request. Look at the other possible options in this dropdown
thanks

Similar Messages

  • When trying to sych my new nano 6gen not reading and request restor.

    Just bought a nano 6gen and it shows and when it tries to sych comes up asking me to restore after doing this it gives me the same message. It currently has software version 1.2 and I just downloaded itunes.

    Whenever you got that error it is normally becuase of corrupt software. And in that case the only option is to restore the ipod.

  • Sender file is not read all the records

    Hi Experts,
    we got file to file scenario in production, sender file adapter did not read whole file, it did pick up some of the records only insted of whole file.
    Can anyone please suggest me why sender file adapter pick some of the records only.
    Kind Regards,
    Praveen.

    Praveen
    Try increasing the value for parameter Msecs to Wait Before Modification Check  .Ideally this parameter starts polling once your standard poll is over and checks if file size has changed. Incase its changed it further polls and keeps doing so until file size remains constant(meaning file modification is over).
    Did you try out the other alternative? Using a script to place the processed files to a separate folder and pointing your fileadapter to the same.
    Or
    As fariha suggested you can check the application responsible for putting the file in the server location. Giving it a seperate name as long as its processed like *.tmp or something and you can use exclusion mask in sender file adapter to avoid processing of the *.tmp file.
    Regards
    Soumen...

  • Could not complete your request becuase read or write access has been denied

    I'm Using Adobe FreeHand MX 11.0, when i need to print out always msg error"Could not complete your request becuase read or write access has been denied".
    can your help me  solve it?
    i'm using Window Vista Home Premium and a try to upgrade the version but still cannot work.

    I get that sometimes when I'm trying to export to PDF (same as printing). The solution I found on another forum some time ago:
    Go into
    C:\Documents and Settings\<user>\Application Data\Macromedia\FreeHand MX\11\English\Settings
    and delete the fhprefs.txt file. The next time you start FH, the file will be regenerated and FH will startup like a new installation. I'm using XP but I find I have to do this fairly often. Don't be discouraged if it doesn't work the first time. Keep trying. Also try deleting fhmxxmgr.txt, logging off and back on the desktop and any combination of the aforementioned.

  • Servlet for reading lotus notes nsf-file via corba-interface

    Hello,
    we have written a servlet for reading lotus notes nsf-file via corba-interface.
    So we can read lotus notes-files in a portal url-iview.
    Are you interested?
    Best regards
    Oliver Prodinger

    If you check out the thread from my question (524480), we found
    that we had to enable the IIOP task on the domino server as we
    were not running it, this cured the problem I think you are
    encountering.
    This has not solved all our problems as I only see Notes data in
    the Inbox Portlet Preview mode, this problem is refered by other
    contributors as the collapsing Portlet problem (496625) and I do
    not know whether there is a solution to this problem yet.
    Hope this helps.

  • Gmail emails with Read Receipt Request are returned as "Not Read"

    When reading and organizing my emails with my work gmail account that have read receipts attached to them, they are reporting "Not Read", "deleted without being read" even though I have read them. This is happening both from my iPhone and from web based gmail. It seems that upon IMAP syncing, the "Not Read" status goes out.
    I believe this is linked to my iPhone because I emailed one of my coworkers on the same gmail domain an email with a read receipt attached. After he read and archived it from web based emailed (he doesn't have an iPhone), it did not return any response, either "read" or "not read". This is what previously happened with emails viewed on my iPhone.
    Is there some setting for Read Receipts? How can I stop these messages from showing as deleted and not read?
    Thanks!!!

    Just found this thread on GMail sync issues:
    /t5/Nseries-and-S60-Smartphones/N8-Email-Client-Sync-issues-and-deleted-emails-still-appearing/td-p/...
    So far it looks good - after following the advise in the last post by Ali_L sync seems to working. Push does at least, better than ever.
    Short version: 
    1. Remove your GMail account from the N8.
    2. Add your GMail account again, but this time make sure you decline the "Terms of Service" when they are presented to you.
    3. Manually configure sync intervals / GMail IMAP folders etc.

  • Could not complete your request because of a program error photoshop cs4

    My first frustration right now is that I can't search the forums... anyone got an answer to that? on the right hand side (if I'm logged in) I type in a search for anything and it always shows no search results found! Why? is the search function not working?
    Anyway, my problem is that when I try to save a multi-layered psd file into psd or jpg I get this error message: "Could not complete your request because of a program error."
    What is causing it?
    I checked for updates and PS is up-to-date. I restarted, and it worked great for about 3 saves (different pictures). (I'm basically running through some shots and just doing a quick levels and curves adjustment and running an action putting in my name watermark.)
    After that quick edit and trying to save - same error message again.
    It started suddenly yesterday - after having used PS for about 1.5 years without a problem. I haven't done any changes to it as far as I'm aware.
    Any one seen this before, or have a solution to this?
    Thanks!
    Computer specs:
    Windows 7 Pro - 64-bit
    12 GB Ram
    750 GB OS hdd where PS is installed
    2 TB Media drive where the files are being pulled up from/saved to.
    Intel i7 x980 3.33 GHz
    GeForce GTX 470 with 1280 MB dedicated memory
    Logged in as administrator.

    Did you update or change or plug-in or remove anything else on your computer just before it happened?  Photoshop relies on other system libraries to do things and maybe one of those changed.
    No, I did not change anything; I was editing pictures - from a quadding trip where they asked me to shoot for them - and suddenly I started getting the message on most pictures.
    Hard drives are not nearly full. (.99 TB free on media drive and 588 GB free on OS {C} Drive)
    scandisk error check? I probably need that.. (I've had some problems with BSOD and had the BIOS corrupted recently that I had to flash the BIOS again. Could that cause something like this?)
    How do you reset preferences? Is it the Ctrl + Shift + Alt key immediately after PS starts? I did that and it didn't fix it.
    Saving in odd location? No, I don't think so; I save to the same place I save other stuff and I have a solid directory base and I always follow the same procedures. I save back into the same folder I open the file from and save back to the same filename + "edit". That way I can compare side by side and have a backup copy of the file.
    The only USB device plugged into the computer is a logitech wireless combo of keyboard and mouse. (And a wired USB keyboard that sits to the side and that I use only when the batteries in my wireless dies.
    I can't think of anything that has changed that would cause PS to act like this.
    If I can't get it working soon, I'll re-install. I have the Production Premium CS4 version - can I just reinstall PS or would I have to do the whole suite?
    Thanks!
    PS. I don't know if I was clear enough on what I'm doing: I open anywhere from 1 - 20 pictures at once, and then do a quick level or curve adjustment and save to a different file name. The confusing thing is - some pictures I have no problem with, but others - even though I do exactly the same thing - this error message comes up. I'd say about half of my 107 pictures from the quadding trip refused to save.
    It almost makes it seem like some pictures are corrupt or something - and yet, I'd be really surprised to have soo many corrupted images suddenly.

  • Polish characters are not retrived from request object

    Hi
    I have a problem in passing POLISH character through request object.
    I am calling a servlet from a jsp with a hyper link. when the link in jsp is clicked the following code will be executed
    response.sendRedirect(response.encodeURL("http://hostname:8080/appName/abc.do?method=getReport&FirstName=Ko�tun&LastName=Pro�ciak"));
    this code is passing two POLISH strings First Name & Last Name to the servlet.
    In the servlet i am trying to retrieve the values of the parameters "FirstName" & "LastName".
    Sring FN=request.getParameter("FirstName");
    String LN=request.getParameter("LastName");
    The variable FN & LN doesn't show the POLISH character in servlet.
    I tried with the below option in JSP
    <meta content="text/html; charset=ISO-8859-2" > (or)
    <meta content="text/html; charset=UTF-8" >
    (or)
    <%@ page contentType="text/html;charset=ISO8859_2" %>
    (or)
    <%@ page contentType="text/html;charset=UTF-8" %>
    In Servlet i tried using
    request.setCharacterEncoding("ISO-8859-2");
    (or)
    request.setCharacterEncoding("UTF-8");
    Pl help me.
    Thanks in advance

    Don't do it then. Those characters are not allowed inside a URL and have to be encoded. You know, that %... stuff.

  • Can't open PSD! "Could not complete your request because the required resources were not found."

    Hi all,
    I am having some serious issues with Photoshop CC and have alread lost a few days of work to a random bug. I have spent the whole day working on Photoshop to try and catch up on the lost work.
    I was saving the PSD, closed the document and then tried to reopen it to make a quick change and I got this error: "Could not complete your request because the required resources were not found.". I am now unable to open the PSD.
    Has anyone ever seen this and does anyone know if there is a way of resolving the problem?
    Any help would be much appreciated.
    Cheers
    Leigh

    I found a hack-y way to work around this problem without losing work!
    So I discovered fairly quickly that this is an unsolved problem that  NO ONE can explain the cause of.  Here are step-by-step instructions on how to save your layers without losing progress.
    Convert ALL of your layers to a Smart Object.
    Right-click on the Smart Object
    Click "Export Contents..."
    This opens up a Save As... Window, with your file name .PSB
    Name & Save.
    I then quit Photoshop CS, re-opened, and had all of my layers, folders, and effects intact.  The only problem was that my Canvas was as large as my biggest layer (extending beyond my original canvas).  Just find the original background layer (or one that originally filled your canvas), Select it (Command + Click on the Layer thumbnail), and Crop it (Image > Crop).
    Hope this helps.

  • Could not read from the source. Please check if it has moved or been deleted

    hi all,
    when i try to render a afx project from media encoder i get the following message
    "Could not read from the source. Please check if it has moved or been deleted"
    i've read on the forum that this is due to an old installation of Premiere.
    I'm using a brand new computer. the only software installed is my cs5 master collection and the updates from adobe website.
    win7 pro
    i7
    16 gig ram
    cheers
    s

    Hello, this is terrible problem, which i found in CS 6 softwares ...
    solution i found only working, is uninstall and reinstall full package.. but it is not all,
    you need to do BRAND NEW admin account in windows, and install it there.
    that means, i could not export after repair from encoder in my original account never more (!!)   .. this is really terrible way how to repair this issue, because :
    1.by reinstalling of software, client WASTE HIS TIME
    2.by necessity to begin work in another windows profile you again WASTE YOUR TIME because of learning and migrating all other profile modifications, which i see really unaccpetable. Adobe means, this solution of repair is ok, and they did not do till today any steps of creating some "clever" solution.
    I ask everybody, who will meet this issue in future, guys, please, complain about this situation, give "BUG Report" to them, and write "feature request" to them , in the way of creating some repair tool, which check actual  "broken" connections between encoder and premiere, which refuses to "take material" from it and encode, and REPAIR it automatically..  
       I am not IT, but ..does it seems so hard to create this ? Adobe IT developers should know their systems, and should create such utility tool really easy.
    Steps to reproduce bug:
    1. i export anything by button "queue" from premiere to Encoder
    2. Encoder will start encoding
    3. Encoder does not show the window of media encoding (down left )
    Results: sound of sheep occur,
    in encoding error file is this reason of canceling the encoding :
    01/02/2014 10:10:48 AM : Encoding Failed
    Could not read from the source. Please check if it has moved or been deleted.
    History of this problem and detailed description, HOW i did "repair" this. With wasting of app 2,5 days of my working time :
    1. after repairing "error 5" problem , i solved it by reinstalling the suite from the new admin user profile (profile B) . 
    I continued my work on my normal working windows profile . (profile A)
    Every cooperation (AE+Pr, export media via "queue" to Encoder) was working fine . . .
    2. suddenly it stop working (without knowing any possible reason - i did not do installations )
    and showed in error export log file :
    "Could not read from the source. Please check if it has moved or been deleted."
    3.repair via procedure(procedure "a"):
    i did this procedure on the profile B (profile from last time installation of repairing problem error 5)
    I did these steps :
    a-uninstall master coll suite
    b-i used Adobe cleaner tool (remove ALL)
    c-removed raw directories in locations
    •C:\Program Files\Adobe
    •C:\Program Files(x86)\Adobe
    •C:\Program Files\Common Files\Adobe
    •C:\Program Files(x86)\Common Files\Adobe
    •C:\ProgramData\Adobe
    d-removed these links from registry file
    •HKEY_LOCAL_MACHINE\SOFTWARE\Adobe
    •HKEY_CURRENT_USER\Software\Adobe
    •HKEY_LOCAL_MACH INE\SOFTWARE\Wow6432Node\Adobe
    •HKEY_CURRENT_USER \Software\Wow6432Node\Adobe
    e-restarted the PC
    f- newly installed the Master Coll CS6
    g-update the software
    result of repair of "3" : problem still exists
    4.Ok i find out after coordination with support, it should have been created  ANOTHER NEW admin account.
    4a:so i did the same procedure (uninstalling) in profile B
    4b: and then i created brand new admin profile (profile C)for INSTALLATION of software
    4c: restarted the pc (and did not updated it yet)
    result :
    ==exporting of any sequence/raw/AE link video material from premiere via "queue" (Encoder) (profile C) : export WORKS
    ==exporting of any sequence/raw/AE link video material from premiere via "queue" (Encoder) (profile B) : export WORKS
    ==exporting of any sequence/raw/AE link video material from premiere via "queue" (Encoder) (profile A) : export DOES NOT WORK ! ! !
    (in profile A, is possible to export some raw video material in encoder which is imported to it via "drag and drop)
    problem i see:, i have my basic profile A, which i am interested to work, because of all my directory modifications are in there..
    this issue should be some "broken" connections between encoder and premiere, which refuses to "take material" from it and encode.
    what i expect :
    to get from Adobe some repair tool, which automatically checks these connections and repair if necessary, without necessity of founding the new profile and reinstallation of whole software.. this is madness !
    what i do NOT expect from Adobe:
    to get from Adobe advice of kind : you have to reinstall full software in new admin profile. sorry , we do not know the solution, because we do not know, how do behave our software.

  • Java.lang.IllegalStateException:  bean  not found in "request" scope

    In jsp,I use javaBean,the statement is following:
    <jsp:useBean id="collectionBean" scope="request" type="view.CollectionBean"/>
    but ,in runtime,there exist following mistakes:
    java.lang.IllegalStateException: bean "collectionBean" not found in "request" scope
         at basicContentSearch.jspService(basicContentSearch.jsp:8)
         [SRC:/basicContentSearch.jsp]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    why?
    Please everyone tell me if you can,thanks a lot.

    I believe, if it is the first time you are referring to the bean, you must use the class attribute rather than type:
    <jsp:useBean id="collectionBean" scope="request" class="view.CollectionBean"/>The type is used to change how the bean is referenced, for instance, in regular Java you might do this:
    // The Type                 The Class
    java.util.List myList = new java.util.ArrayList();In use bean you would do this:
    <jsp:useBean id="myList" class="java.util.ArrayList" type="java.util.List"/>

  • Urgent--custom servlet not working with https/gateway of the portal server

    We have created the custom servlet to add some more authentication to the login screen. I have explained detaildely below.
    We have set if password reset change password screen should come by using identity server.
    First screen comes which asks �user id� and �password�.
    after this next screen comes with �old password�, �New Password� and �Confirm Password� (as we have forcefully asked user to change password after reset by using identity server ).
    On this page we have added two new filed �Date of Birth� and �Date of Joining�.
    And we are forcefully transferring request to our Custom Servlet which will validate the �Date of Birth� and �Date of Joining� from the database and submit the same a form as required by Login Servlet to validate the default parameters �old Password�, �New Password� and �Confirm Password� (which is the default validation without adding custom Servlet).
    This whole process is working with �http� protocol and giving �unable to connect� host with �https� protocol.
    Without custom Servlet process is like this, which is working
    Login (usrid, password) � Login (Old Password, New Password, Confirm Password) � Portal home Page
    With custom Servlet , Which is not working with �https� Protocol. we are getting the message "Authentication Failed" screen.
    Login (usrid, password) --> Login (Old Password, New Password, Confirm Password , Date of Birth, Date of Joinig) --> Custom Servlet validate Date of Birth, Date of Joining --> Login (Old password, new Password, Confirm Password) --> Protal Home Page
    This one works with http, whereas this one gives the "Authentication Failed" screen with the https.
    Please let me know if anybody have implemented this and help me to resolve the issue.
    Best Regards
    Ramkumar

    Hi,
    I am also getting this error message in the sun ONE webserver error log file....
    [20/Nov/2004:13:42:39] failure ( 6162): for host 172.16.5.21 trying to GET /amserver/UI/Login, service-j2ee reports:
    StandardWrapperValve[LoginServlet]: WEB2792: Servlet.service() for servlet LoginServlet threw exception
    com.iplanet.jato.CompleteRequestException
    at com.sun.identity.authentication.UI.AuthenticationServletBase.onUncaughtException(AuthenticationServletBase
    .java:141)
    at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServletBase.java:1023)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:469)
    at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
    at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:294)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    Regards
    Ramkumar R

  • Problem with FX (CS6) "Could not complete your request due to a program error."

    This only happened after I got the master collection. FX effects in Photoshop CS6 do not work, at all. Attempting to use any of them result in the above quoted "Could not complete your request due to a program error."
    I've trashed the prefs, uninstalled/reinstalled, updated drivers, REFORMATTED MY HARD DRIVE, contacted customer support, and about every other troubleshoot short of sacraficing a goat. No cigar.
    Error log gives me the following:
    " ..\..\sources\UPattern.cpp : 1670 : REQUIRE failed"
    Same error, every time.
    Windows 7, 64x
    16gb DDR3
    AMD FX(tm)-4100 Quad-Core Processor [3.61 GHz]
    AMD Radeon HD 7800 Series
    Not running this 'Suitcase' thing. At a complete loss.

    Removing the whole folder worked, which, is good enough for me. I think what happened was a finaggle with the install, as I already had PS installed when I overlayed the master collection on top of it, still doesn't explain it not working after the reformat, might have been linked to my backup/scratch disk in some fashion and broke it. I'm not quite sure how the problem persisted.
    Don't install ps over ps, I guess ^^
    Aha, it was Prefs.
    Thank you! Greatly, been sitting on this problem for months now, no ammount of Googling would help. I can finally go back to work (that I've been sitting on this whole time).

  • I have an existing disk of elements 3 which I loaded onto my Mac desktop.  When loading onto my Mac book, I receive a "could not complete your request because of missing or invalid personalization information". Why?

    I have loaded elements 3, from disk, on my mac desktop, when loading onto my macbook i get a message "could not complete your request because of missing or invalid personalization information".  Why?

    Thank you for your fast reply!
    Sorry, I am not savvy enough to know what a serial is!  Guess that means stealing it.  No, that is not me.
    Hmm...
    I thought sure it was free with the computer, along with a whole package of other stuff.  It was a sale/special.  Everything else still works, except the Photoshop.  I bought the Mac new at the Mac store in Marin County...
    Maybe it came with the printer I bought too...? Who knows now.
    The computer is several years old (copyright 1983)  and I had money then!  LOL!  It's the economy, my dear!
    Do not understand 'software'... I just use the computer. I told you I am a technophobe!
    You must be young:  I am very old, and did not grow up with computers.
    But now from your reply, I think it must have been a free sample, or whatever...  or I am confused!
    I have IPhoto... that must be what came free with the Mac.  But it doesn't work either.  I get a message: need to upgrade, but then it says it is not responding...
    Anyway, thanks again!
    P.S.   As I said, I had everything stolen, and do not have any registration info.
    But I appreciate your reply.

  • Servlet not found error

    Hi everyone,
    i am trying to write a chat application using applet,servlet and RMI.
    so i have my servlet and aaplets accordingly...
    but when i put my servlet and applets in their respective folder of tomcat,i am getting and error..which is as follows....
    Resource not found: http://10.0.2.65:8080/servlet/ChatServlet
    The configuration that i am using is:
    1)win XP
    2)Tomcat5.1
    3)JDK 1.5
    my servlet file is 'ChatServlet.class',which is placed in a package(or folder) called 'servlet'...
    so i have place the whole package(servlet) in WEB-INF...
    and the mapping that i have given in web.xml is as follows:
    <servlet>
    <servlet-name>ChatServlet</servlet-name>
    <servlet-class>ChatServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ChatServlet</servlet-name>
    <url-pattern>/ChatServlet</url-pattern>
    </servlet-mapping>
    NOW is that mapping correct??
    Do you find anything wrong in the way i have put my files in Tomcat??
    and also if possible please tell me for what is these mapping in web.xml used??
    thanx in advance

    thanx a lot for the reply...
    i did put the full class name of the servlet....but had no success....
    now my maaping is as follows:
    <servlet>
    <servlet-name>ChatServlet</servlet-name>
    <servlet-class>servlet/ChatServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ChatServlet</servlet-name>
    <url-pattern>/ChatServlet</url-pattern>
    </servlet-mapping>

Maybe you are looking for

  • Something weird when Manually put the file path in JFileChooser

    Here are the steps I got the result 1. copy one file to another directory (copy d:\log\aaa.txt d:\aaa.txt) 2. open the JFileChooser dialog box 3. change to one of the directory in 1. (here I say d:\) 4. click on aaa.txt, and click on it again after 2

  • Opening 5.5 sessions in LP 7....one question...

    Hi Guys For the ones using LP7, if you were using and old version of emagic 5.5, did you have any problems opening the session files? I have lp8, but the exs24 instruments are always crossed out when i open the old sessions in LP8. I am hoping in LP7

  • Can't install DVR surveilance cams in Time Capsule

    I bought a Swann DVR8 -4000 Surveilance Cams adn I can't install the program. First of all, the software for Mac (MyDVR_Mac_v1.0.1.pkg) doesn't work. In a Windows computer, the software can't find the device, wich is plugged in by a LAN cable in the

  • Transaction Xk01 output screen

    Hi All, I am working on a task, where whenever we run the transaction Xk01  on the output screen we have field called company code and it's by defaulted as '001'. Now the requirement is that we need to greyed out the company code field... so that the

  • CS3 Licensing Stopped Working - Help

    I purchased CS3 Premium Design Suite in 2009 with original disk and serial # and it worked fine until recently when I get an error "Licensing for this product has stopped working". Can anyone help? I still have the disk and #.