Problem in running servlets over the net & in non-root user mode(FC-4)

I have installed Tomcat 5.0.28 and it is running
successfully in Fedora core 4,I wrote a servlet,to access a mysql database and it is running correctly,but when i logged
onto non-root user, when i call the servlet through the
html page i get "page not found error" .This is happening even when i do it from other system.
I thank in advance if any could help me in this case

Did you try using %20 instead of a space?  I know it works for URLs...worth a shot.

Similar Messages

  • Problem saving gif file over the net

    I am using a simple loop to save files using a URL Connection. It grabs html files fine and they look right but when I used to to download an animated gif it had an error. It saved the file but when I tried to open the image I got a "drawing failed" message.
    I compared it to the working image and the sizes were identical. I also compared the characters in notepad and the beginning and end characters were identical. I looked at the preview in "My Computer" when you select it and it drew only the first line or so. This makes me believe it is a problem with how it switches lines when saving. I checked the ends of the lines though and they also seem identicall. Any ideas? Here is the code. Thankyou.
    FileWriter fileName = new FileWriter(saveFileName);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    newConnection.getInputStream()
    BufferedWriter out = new BufferedWriter(fileName);
    for (;;) {
    int data = in.read();
    // Check for EOF
    if (data == -1) break;
    else {
    System.out.print ( (char) data);
    out.write(data);
    }

    GIF files are binary files and can be corrupted if you use the Reader and Writer classes. Use the *Stream classes, like FileInputStream and FileOutputStream.                                                                                                                                                                                                                                                                                                                               

  • Problem with file transfer over the net

    Hi!I'm trying to make a program that allows to send/receive files and I'm almost done,except for a little problem:the file received has some bytes missing at the end!
    For example if I send a text the last 2-3 lines are missing,same thing for an image,an html document,etc.,although the file opens without any problem.As transport-level protocol I'm using TCP so it's not a networking problem,I think the problem is in the application layer so I post here the code,hoping someone helps me out(in this example I'm trying to send an image .jpg):
    Sender:
    Socket connectionSocket=new Socket("ipadress",port);
    FileInputStream source=new FileInputStream(System.getProperty("user.home")+"\\Documents\\image.jpg");
    BufferedOutputStream send=new BufferedOutputStream(connectionSocket.getOutputStream());
    int c;
    while ((c = source.read()) !=-1)
                    send.write(c1);
    Receiver
    ServerSocket receiverSocket=new ServerSocket(port);
    Socket  connection=receiverSocket.accept();
    BufferedInputStream rec=new BufferedInputStream(connection.getInputStream());
    FileOutputStream receivedFile=new FileOutputStream(System.getProperty("user.dir")+"\\received.jpg");
    int c;
    while ((c = rec.read()) != -1)
                    receivedFile.write(c);I think the problem is in this code:somehow the sender stops sending bytes before the end of the file is actually reached...what do u think?

    Thank you so much!At the end it was a very stupid mistake!:D
    Btw now that the main problem is solved I continue posting asking for your opinion:is this program for you efficient enough?Or there's a better way to do file transfer?

  • Running VMware Server 2 services as a non-root user

    Hello,
    I have switched from VirtualBox to VMware Server 2 on my Arch64 server and the transition has been relatively painless. I am at the point now where I want to run VMware's services as a non-root user account (I have a service account called "svc-vmadmin" that I'd like to use). I'm generally not comfortable running services as root, but at the same time I'm conscious of the time and effort required vs. overall benefits.
    I've done the usual Google searches and even checked the VMware Server 2 user guide and the VMware community, but I can't find specific details on how to achieve this.
    Is this even plausible in a Linux environment? I used to run VMware Server 1 under the SYSTEM account on Windows Server, so I'm hopinga similar thing can be done on Arch.
    I would greatly appreciate any information or personal experience that fellow Archers can share.
    Thanks,
    Thom

    System services are handled by launchd.
    If you look in /System/Library/LaunchDaemons/ you'll see a plist file for each service including org.isc.named.plist, the plist for named.
    If you edit this file you'll see it's an XML document that describes the service and how the OS should handle it, including the part:
    <key>ProgramArguments</key>
    <array>
    <string>/usr/sbin/named</string>
    <string>-f</string>
    </array>
    Just append another entry in the array that says <string>-u nobody</string> (or whatever username you want to run as.

  • Screen sharing over the net. Is it possible.

    I was wondering if someone with screen sharing abilities could help out. I was wondering. Is it possible to share screens over the net. For example, my mom is like a 100 miles away. Running Leopard. How could I access her screen so that I could show here what to do. Heres the states, her computer has a router. My computer has a router. How can we sharing screens. Where would be long into and how. I know of the program in System/corservices/screensharing When I click it it asks for host. I dunno if that was the right way to go but any help here would be amazing. Thank oyu.

    It is possible apparently, but if there is a router in the equation, that may well cause problems. If your Mom is using a Mac, this screen sharing facility is also available via iChat.

  • I try to generate a chm file over the net and I get a compiling error message

    Hi all,
    I am trying to generate chm files over the net, and the same project when I am generating the same chm locally works fine, however when I am attempting to generate the same chm on a network location, it gives me a compiling error and aborts the generation. It is also keeping the chm file open afterwards, so I have to reboot the machine.
    It is RH7 working on a Windows XP Pro 32 bit.
    Thank you

    It is not a project issue. RoboHelp is just not designed to work that way but like a lot of things, some people can use them outside what they were designed for. However, just because some people can work that way, it does not follow everyone can.
    I've seen people with projects on a network and they say have been doing it for years so it must be OK. A while later they come back and say the problem is fixed since moving it locally.
    Sorry but it looks like you are stuck with working the way you do or getting your colleague to do it. It might be as simple as he is on a different bit of your network.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do i transfer files between two macs over the net (FTP)

    Hi,
    Couldn't find a thread like this, apologies if its been discussed already recently, I'm trying to enable two iMacs both Intel, both running 10.4.10 to be able to swap files (quite large 350MB) over the net just using Tiger.
    We both have .Mac accounts but the files only upload properly to our iDisk 1 out of 3 times and its getting annoying, I basically want my mate to be able to drag a file off my HD onto his via the net using no other programs just Tiger, is this possible?
    If not, what's the best free program to use.
    Thanks

    You'll have to get an FTP client as the Finder only reads, not writes to an FTP server. I can't suggest a free one. You will also need to open your computers up to the world. If you don't know how to do that, search for Port Forwarding and your particular router. You'll have to open up port 21 for FTP.
    Plain old FTP is not very secure, so you shouldn't leave it open all the time. SFTP is Secure FTP, and you can use Fugu to use it. You'll still need to set up Port forwarding, but you can pick whatever port number you want. Fugu lets you pick the port number. You should set up standard users on each machine and make a sftpTransfer folder in the /Users/Shared/ folder. This will allow each of you to access the files. sftp allows anyone to see the directory structure, but still maintains the permissions from OS X. So, as standard users, you can look into each other's Home folder, but you won't be able to get into the subfolders or transfer files to or from any unshared locations.
    By the way, I wrote an entire post describing how to use sftp from the command line before I decided to look for a client app for you. Then I found Fugu and changed it all.
    Edit:
    I forgot to mention you must turn on Remote Login in the sharing pane, and you'll have to use port 22 as this is the only one Mac OS allows remote connections on.
    Message was edited by: Barney-15E

  • Back To My Mac: Anyone get it to work over the net?

    I can't. It works fine on my home network, an apple extreme and several expresses. But over the net it doesn't work at all. I've tried both from work, and also by logging on to my neighbor's airport network. in both cases, the icon for my home iMac disappears.
    I downloaded the guide from the Apple site for BTMM and followed the instructions, but nothing seems to work.
    Anybody have any luck with this? than

    Do both routers have to be configured correctly? Both the router you're sending from, and the router your mac that's being controlled is talking to? I thought it was just the later...
    <<Even if these routers do support one of these protocols and have this support enabled, odds are good your office's firewall is simply going to block any traffic it doesn't recognize. Similarly, unless your neighbor has agreed to let you configure his or her router as you please, I would not expect this to work, either. >>

  • Nokia - Firmware over the net and over the air gen...

    Don't know if anyone else noticed this, it came out quietly as far as I can see, but now nokia are offering firmware upgrades to N series devices over the net (and over the air if you've an N80). See here http://www.nokia.co.uk/nokia/0,1522,,00.html?orig=/softwareupdate . A stroke of genius as far as I'm concerned.
    As an aside, this also puts the latest firmware for Orange on the N70, and gives you an option to disable the dreaded "Homescreen of Death". Doesn't get active standby back though unfortunately.

    No N80 support at this time though.
    I'm keeping my eyes peeled though....
    Orange Handsets : Nokia 51 > NK702 (6130) > 6210 > 6310i (silver)> 7210i > 6230 > 6230i (silver) > N80 (silver) > N95-1
    T-Mobile: N96

  • Can anyone advise on how to share large files over the net?

    Hi all.
    So I need to share large video files over the net.
    The files will be between 5 and 10 GB
    Does anyone have a solution for this?
    I have been using my ftp program and just giving the recipient the download link.
    But its affecting my upload quota and the recipients download quaota with our ISP's.
    Is there an easier way at all?
    Thanks.

    Contact the ISP for a temporary exception on the quota, or to get an explanation of how long before you can send a second segment for the download.  You can split large downloads by UUEncoding them, or making separate disk image segments with Disk Utility.  You could also find out if any local WiFi hotspots don't have a quota issue.  Lastly, you could send a thumbdrive by mail.

  • What is the ipad2 activation code to use in viewing NETFLIX instant view DVDs over the net?

    Where do I find the activation code to be able to watch NETFLIX streaming DVDs over the net??

    danielfromlaurel wrote:
    I get the statement "streaming on this device is not supported on your plan".  My plan includes 'unlimited streaming' using the IPAD2 app.
    Dan
    Just to confirm: are you sure you entered the correct account info on the iPad?  (Some of my client's have more than one Netflix account.)  Then try resetting the iPad.  That often "fixes" many issues.  After that, you'll probably need to contact Netflix support to confirm that you do have streaming.  Otherwise possibly restoring your iPad so that it'll wipe the existing Netflix config, so you can re-enter it again.

  • Run Servlet in the background (Daemon)

    Hi all ,
    I am using Apache Tomcat/5.0.25 container.
    Need some advice regarding running servlet at the background or as daemon . Below is the scope of the program :
    The servlet will do a updating in the database in the background every 5 minute.
    Any ideas how to implement such behaviour using servlet ?
    Thanks.
    Wee Tat

    hi..
    Make a thread and initialize in the init method of ur servlet.
    And make another thread so that it wakes up every five minutes and does the database processing..
    so ur servlet always has a thread which invokes the other thread(database accesing thread)..
    here is the code sample ..
    Thread t = new Thread( new Runnable() {
    public void run() {
    Thread dbHandler = new DBHAndler(..);
    dbHandler .start();
    try {
    t.start();
    catch(IllegalThreadStateException e) { }
    hopefully it works..
    regards
    Kovi

  • When I try to set up Icloud control panel in Windows Vista, I get "your setup couldn't be started because the Icloud server stopped responding. I've tried loads of fixes suggested on the net but none worked. Can anyone help me please?

    When I try to set up Icloud control panel in Windows Vista, I get "your setup couldn't be started because the Icloud server stopped responding. I've tried loads of fixes suggested on the net but none worked. Can anyone help me please?

    Hello, ksb2. 
    Thank you for visiting Apple Support Communities.
    We are investigating this issue. This article will be updated as more information becomes available.
    iCloud: iCloud Control Panel setup cannot be started
    http://support.apple.com/kb/TS5178
    Cheers,
    Jason H.

  • How Can One Run Only In The System Administrator ( ie root ) ?

    Upon creating a System Administrator ( ie root ) in Command + R , of course after Clean Installing OS X ML with my own specific Apple Verified Account ,
    i have the Log In screen from a startup , either Safe Boot or a Boot , and i have my own specifc Apple Verified Account , plus the Other... ,
    which the Other... of course is the System Administrator ( ie root ) .
    How Can One Run Only In The System Administrator ( ie root ) ?
    Is there a way in Terminal with sudo su to make it work ?
    Shall i just always log in with Other... System Administrator ( ie root ) , and just forget the my own specific Apple Verified Account ?

    As of EHP3, you could still install some EHP components. On an ERP 6.00, you could just push SAP_APP to 6.03 and move on. Now if you want another component in your system with an EHP4 version, you can't have some components at EHP3 and some at EHP4. You would install EHP4 for the new component you desire updated and part of the work will be to also update SAP_APP to 6.04.
    EHP4 is an UPGRADE process, with shadow instance & all the joy of an upgrade process. You can either run ressource minimized or downtime minimized. In resource minimized, the shadow instance runs on the same server as the main instance. Downtime minimized allow to run the shadow instance on a separate / new server. Anyway you go, you will always have a "Downtime Phase" when you bring back the updated components from the shadow instance toward the real production one.
    As with any UPGRADE project, the benefits of installing EHP4 for your business has to weighted against the downtime cost.
    Our tests so far on small systems (few data, few users, 120GB database) show ~3 days process from EHP3 to EHP4 (all components) with a downtime phase of about 22 hours using the "resource minimized" path, i.e. shadow & main instance on the same server (4 CPUs, 16GB RAM). Until you give a try at your Sandbox or DEV systems, you won't have realistic figures for your environment.
    Good luck!

  • When forwarding emails recipients are getting no pictures and text all over the place or none at all

    After receiving emails that contain pictures or just text
    I press the forward button, however the recipients say they are receiving no pictures and the text is either all over the place or none at all

    After receiving emails that contain pictures or just text
    I press the forward button, however the recipients say they are receiving no pictures and the text is either all over the place or none at all

Maybe you are looking for