.wbmp pictures does not show up, why ?

Hello,
Problem:
I have created a Java servlet which produces a WML card with text and an command to load .wbmp picture (see code below). I have tested the WML card without servlet (loaded it straight from hard disk), and it works fine. The problem occurs when I try to use Tomcat 3.2.2 in my PC, run the servlet and load it with Nokia WAP toolkit 2.0. I managed to load the servlet and the text parts of the servlet are showing correctly, but the picture does not appear. Only the alt text.
I have configured Tomcat�s web.xml file as follows:
<mime-mapping>
     <extension>wml</extension>
     <mime-type>text/vnd.wap.wml</mime-type>
     </mime-mapping>
     <mime-mapping>
     <extension>wbmp</extension>
     <mime-type>image/vnd.wap.wbmp</mime-type>
     </mime-mapping>
I have also tried to load pure WML code included in the servlet through Tomcat, text appears picture does not.
Same error occurs when I am using Nokia WAP server 1.1 instead of Tomcat.
This is probably some very simple error, but I can not see it myself. So any ideas,
Thanks in advance,
-TL
The servlet I am using:
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class TestServlet extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
     response.setContentType("text/vnd.wap.wml");
PrintWriter out = response.getWriter();
out.println("<?xml version=\"1.0\"?>");
     out.print("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML ");
     out.println("1.1//EN\"");
     out.println("\"http://www.wapforum.org/DTD/wml_1.1.xml\">");
     out.println("<wml>\n<card id=\"card1\" title=\"Servletti\">");
     out.println("<p>");
     out.println("Testi servlet with picture");
     out.println("<img src=\"http://localhost/sunny.wbmp\" alt=\"fig\" hspace=\"10\" vspace=\"10\" />");
     out.println("</p>");     
     out.println("</card>");
     out.println("</wml>");
     out.close();     

If You mean Nokia Toolkit with "Nokia simulator" then the answer is that Tomcat was up and running. With Nokia WAPserver I did not use Tomcat.
The mime error is probably caused by insufficient definitions in Your Tomcat web.xml file. You can copy the there the part of web.xml file I have used:
     <mime-mapping>
     <extension>wml</extension>
     <mime-type>text/vnd.wap.wml</mime-type>
     </mime-mapping>
     <mime-mapping>
     <extension>wbmp</extension>
     <mime-type>image/vnd.wap.wbmp</mime- type>
     </mime-mapping>
Then You must set Your Toolkit to use HTTP server Connection: Toolkit -> Device settings
Hope this helps,
T

Similar Messages

  • IPhoto pictures does not show up when trying to change desktop pictures

    When I got my new MBP I used a Time Machine back up to restore my system. This has worked great, though so far there is one little issue:
    When I right click my desktop and choose "Change background picture" my iPhoto images doesn't show up in the menu like they used to.
    Has anyone got any idea about how to get them back in there? Do I somehow have to "let Leopard know" that I have an iPhoto library that I would like to be able to choose from?
    Thanks!

    HI Rune,
    That is most likely a shared library issue. The Finder is trying to access your iPhoto library without iPhoto being open. Sometimes when libraries are shared, they can become corrupt.
    Go here and read about shared library issues.
    http://www.thexlab.com/faqs/sharedlibraryerrors.html#Anchor-Resolving-35326
    The easiest way to fix this is to back up your important data and do an Archive and Install which restores your system software. It does NOT erase the drive, you do not have to reinstall any Apple pre-installed software, ie., iLife applications.
    Go here and read the instructions for archive and install.
    http://support.apple.com/kb/HT1544
    Carolyn

  • Problem with opening website (pictures does not show)

    Can someone tell me why does my apple mac pro not open ALL the pictures ( it open half of all pictures) when i open myspace page? Do i need to install some software or plugin?

    If you gave people some idea of a page that is exhibiting the problem, we might be able to help.
    As it stands there isn't enough information in your post to be able to answer.

  • My Iphone5 does not show the picture location after upgrading to ios 7.0.4 - why?

    my Iphone5 does not show the picture location after upgrading to ios 7.0.4 - why?

    I change Settings>Privacy>Location Services>Camera to OFF and then ON and the locations start to appear !!!!.
    It seems to be Apple bug.
    Thanks for you efforts

  • When I try to include a white and black photo in a iMovie the result is a black totaly black picture which does not show in the movie. Why? Can it be fixed?

    When I try to include a white and black photo in a iMovie the result is a black totaly black picture which does not show in the movie. Why? Can it be fixed?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Other than that, what version of iPhoto do you have? Assuming 09 or later try
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD
    P.S. Please don't type in block capitals. They are harder to read and on the forum it looks like you're having a tantrum

  • Why some times jdeveloper does not show a coreect design view ?

    Hi
    thank you for reading my post
    why jdeveloper does not show a correct design view of jsf pages sometimes?
    It does not shows labels and ... , just show tag names like : form , ... ?
    here is a picture for this :
    1-incorrect page:
    http://www.flickr.com/photos/59086726@N00/217556594/
    2-correct page :
    http://www.flickr.com/photos/59086726@N00/217556595/
    I just closed and open the IDE and page designer shows incorrect pages
    thanks

    Also try this...go to the project properties for the View project. Look at the JSF Libraries and remove the two JSF libraries and then re-add them....this sometimes helps.
    Regards
    Grant Ronald

  • I am looking for a specific photo in my event folder, it does not show up, yet when I use the search feature, the photo is there.  Why doesn't it show up in the folder?

    I am looking for a specific photo in my event folder, it does not show up, yet when I use the search feature the picture is there.  Why doesn't it show up in the folder?

    What system and iPhoto version are you running?
    If your're using iPhoto 9 or later  Command (right) - click on the photo in the search window and select Show Event in the Contextual menu. 
    That will take you to the event where the photo is.
    OT

  • I have a macbookpro. when I connect any camera to the mac it does not show as a device. How do I load my pictures to either iPhoto or Aperture? It worked before but just stopped working. Any suggestions?

    I have a macbookpro. I use Aperture and Iphoto. When I connect any camera to the Mac it does not open it as a device in Iphoto, Aperture or in Finder. It use to work but just stopped. Any sugestions?

    Here is the full story. It may be long so please bear with me. I take a lot of pictures and movies. Since I have over 30,000 pictures I decided to place the Iphoto library on an external drive to save space on my internal drive since ot was getting very full. After I did that it worked fine for a while. Then one day I could not open the Iphoto library. Since I was overseas at the time I brought it to the IStudio ( not an Istore) overseas. They said to rebuild the library and they would do that for me. It took all day since I had so many pictures. When they called me and told me it was ready, I went to pick it up. They started to show me the new library. It crashed again. Not knowing how to fix this at the ISudio, they installed Aperture and imported the Iphoto library. This worked fine for a short time.When back in the states, it crashed again just like Iphoto. I took it to the IStore. They did not know why the overseas Istudio did what they did what they did  and rebuilt my aperture library. Again it worked fine. Now that I am overseas again. It crashed again. However, I concluded that the reason for these crashes is becuase I have the file on an external drive that derives its power from the Mac and not by itself. When I use it and stop for a while the MAC will go to sleep and this cuases the external drive to shut down. This then causes the library to have inconsistancies. Therefore, when it happened this time I tried to repair the library and after 36 hours it would close down Aperture. Therefore I decided to rebuild the library. That did not work either. So I tried opening the Aperture library with Iphoto. That seemed like it was going to work but after importing half of the 30,000 plus pictures. I photo shut down. I then made a new aperture libary and erged the old library with it. This worked. I now have an aperture library that works. However, when I plug my camera into the MAC nothing happens. The camera does not show up in devices in either Aperture, I photo nor in Finder. The USB port and cord I use works fine becuase I can read my external hard drives fine. I checked as SIG suggested in this thread and everything is set to open aperture when the camera is connected.
    I have the newest OS version 10. 7. 2 and the computer frequently updates all my programs. I have not installed any ne software lately. The problem happens both if I am on battery or plugged in. Just before I came overseas the IStore replaced the Battery.   I can go back to the IStudio  here overseas but the last time I was there and told them about the problem ( I did not have my computer with me) they did not impress me with their wisdom. I will be back in that city in a month and can go there if need be.  Thanks for all the help so far. God bless.

  • Why when using Adobe Bridge,  I apply a star rating,  the rating does not show up in Photoshop Elements? [tags]

    Why when using Adobe Bridge,  I apply a star rating,   the rating does not show up in Photoshop Elements.  I use Elements as my organizer and Bridge to view as it is much more user friendly.  Anyone any solutions??

    Most likely you have set the wrong file as the external editor. You don't want the obvious one; that's just a link to the welcome screen. Go back and choose this one, which is hidden away inside the folder Support Files:

  • Why this query does not show the result?

    Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
    SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
    select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
    no rows selected
    SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
    DATA_OBJECT_ID     OWNER                          OBJECT_TYPE
    69662              HR                                 TABLE
                       OE                                 SYNONYM
    SQL> SELECT USER FROM DUAL;
    USER
    SYS

    Hi,
    the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
    Herald ten Dam
    Superconsult.nl

  • HT1349 I am trying to figure out why on my "exchange" calendar - info I have in the body of the appointment  does not show on the iPad.

    I am trying to figure out why info in the body of a calendar appointment does not show up on the iPad. The appointment shows up, but not the notes I had added. Does that info get pushed and if so what setting am I missing?

    If Honda says you need the original CDs, you need the original CDs.

  • After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    Ok, the issue seem to be solved. The problem was this:
    The many hundred files (raw and xmp per image) have been downloaded by ftp in no specific order. Means - a couple of files in the download queue - both raw and xmps. Most of the time, the small xmp files have been finished loading first and hence the "last change date" of these xmp files was OLDER than the "last change date" of the raw file - Lightroom then seem to ignore the existence of the xmp file and does not read it during import.(a minute is enough to run into the problem)
    By simply using the ftp client in a way that all large raw files get downloaded first followed by the xmp files, we achieved that all "last changed dates" of the xmp files are NEWER than the related raw files. (at least not older)
    And then LR is reading them and all metadata information has been set / read correctly.
    So this is solved.

  • When I open an image in Photoshop from Lightroom it does not show any adjustments, without restarting photoshop between each picture.

    I am using Macbook Pro, Photoshop CC, and Lightroom 5.
    The problem is: When I start edit in photoshop from Lightroom, the adjustment in Lightroom does not showing up in Photoshop. This has never been happen before while using Photoshop 6.
    I have tried to reinstall the products several times, including OS Yosemite. But it does not help.

    The problem with write permissions for the OneDrive folder only shows up in Lightroom 6's export dialogue, that's why it's to irritating. Lightroom 5.7.1 is not having that problem nor does the file explorer. The problem also exists on both of my machines. I will try to check for other problems with the OneDrive troubleshooter though: Running the OneDrive troubleshooter - Windows Help   

  • Extract panel does not show in Dreamweaver CC 2014 - using Mac - Why?

    It is odd - as I used the Extract workspace, the Extract panel does not show - not even if I try opening it via Window -> Extract.
    I have updated my Dreamweaver 2014 to the most recent version.
    Can anyone help me?

    Good to know that your issue has been resolved.
    To further investigate why that issue happened we would need some more information from you.
    Please tell us more about the settings of DW before applying patch
    > Which workspace you were working before applying the patch ?
    > What all panels were ON before applying the patch ?
    > Did you perform any specific steps before applying the patch ?
    > What is the version of your Mac ?
    > Any extensions of DW installed?
    Thanks,
    Lalita

  • Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black, when I try to synchronise my ipod to my library it comes up with a message saying "iTunes could not back up the ipod because a session could not be

    Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black constantly. When I try to synchronise my ipod with my iTunes library it comes up with a message saying " iTunes could not back up the ipod because a session could not be started with the ipod. Please help and reply if you know an answer!!!

    Try this previous discusssion:
    https://discussions.apple.com/message/12518406#12518406

Maybe you are looking for

  • He underlying connection was closed: An unexpected error occurred on a rece

    hi all , very good morning i am getting the error for run the sample program for DI server sales Quotation. Database sqlserver 2008 thanks & Regards B.Lakshmi Narayanan

  • Deployment error in WLS9.2.2

    Hi, I have an application with several EJBs calling each other. I have created an EAR of the application and wish to deploy this on WLS9.2.2 However i get the following error: ####<Mar 24, 2008 4:56:06 PM IST> <Notice> <Security> <vvb> <AdminServer>

  • I need to control resultsPerPage without hardcoding the value

    I need to be able to setup the resultsPerPage parameter in the webapps module line as a variable rather than a constant. e.g. {module_webapps,ID   ,filter,itemID,notUsed,targetFrame,useBackup,resultsPerPage,hideEmptyMessage,rowLength,So rt} I have tw

  • Can i use MESSAGE in BADI ?

    Dear Guru , I am using a badi for the material master data controlling , but i don't know whether it can use "MESSAGE" to popup a information dialog to end user or not . Is it possibile ? Thanks . Best Regards, Carlos

  • Mute Volume Display Glitch

    When I flick the side switch on my iPad Mini It shows the Volume was muted on the screen then it starts flickering between muted and not muted on my screen, and I can't stop the flickering unless I un-mute it, but it goes away eventually. Please help