Servlet works in windows but does not work in solaris?

hi all,
can someone tell me why the servlet work in windows platform but doesnt work in solaris?The servlet tries to ping 127.0.0.1 and the output is correct in windows, but when i try it in solaris, it produces the following exception :
Internal error: Unexpected Java exception thrown ( unknown exception, no description ) , stack:java.lang.NoClassDefFoundError: StreamGobbler
at java.lang.Class.getDeclaredConstructors()(Native Method) ....
The code is as follow:
import java.util.*;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
class StreamGobbler extends Thread
     InputStream is=null;
     String type=null;
     PrintWriter out=null;
     StreamGobbler(InputStream is,String type,PrintWriter out)
     this.is=is;
     this.type=type;
     this.out=out;
     public void run()
          try
          InputStreamReader isr=new InputStreamReader(is);
          BufferedReader br=new BufferedReader(isr);
          System.out.println("finishing inputstreamReader and BufferedReader");
          String line=null;
          while (     (line=br.readLine())!=null )
               {     out.println(type+"> "+line);
                    out.println("<br>");          
          catch (IOException ioe)
          {     ioe.printStackTrace();
public class ping extends HttpServlet
     public void init(ServletConfig config) throws ServletException
     {     super.init();
     public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
          res.setContentType("text/html");
          PrintWriter out=res.getWriter();
     try     {
          Runtime rt=Runtime.getRuntime();
          System.out.println("pinging 127.0.0.1");
          String[] cmd={"ping","127.0.0.1"};
          Process proc=rt.exec(cmd);
          System.out.println("finishing process proc=rt.exec(cmd)");
          StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(),"ERROR",out);
          StreamGobbler outputGobbler= new StreamGobbler(proc.getInputStream(),"OUTPUT",out);
          errorGobbler.start();
          outputGobbler.start();
          int exitVal=proc.waitFor();
          out.println("Process exitValue: "+exitVal);
          out.close();
     catch (Throwable t)
               t.printStackTrace();
Thanks for help.

java.lang.NoClassDefFoundError: StreamGobblerBecause you didn't put that class into the classpath of the servlet you are trying to run on Solaris.

Similar Messages

  • TS1538 I am using windows 7 and my 3rd gen nano is not recognized in itunes. I have followed all online troubleshooting to no avail. My ipod is recognized by windows but does not appear in itunes.

    I am using windows 7 and my 3rd gen nano is not recognized in itunes. I have followed all online troubleshooting to no avail. My ipod is recognized by windows but does not appear in itunes.

    not recognized by anything: http://support.apple.com/kb/TS1369
    recognized by windows, but not itunes: http://support.apple.com/kb/TS1363
    solving the problem if the above does not work:http://www.instructables.com/id/What-to-do-when-iTunes-does-not-recognize-your-i Po/step1
    (make sure you go to the next slides.

  • When I double-click the tab bar, FF4 just resizes the window but does not open a new tab

    When I double-click the Tab Bar, FF 4.0 just resizes the window but does not open a new tab. It happens when Menu Bar is disabled (not ticked).

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.0 r32
    * Java Plug-in 1.6.0_03 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • IPOD appears in Windows but does not Appear in ITunes

    O.K. Forum Gang here's goes nothing.....brand spankin' new 5thG IPOD and I can not get it to interface with ITunes. IPOD remains in "do not disconnect" mode when connected to computer via usb - itunes does not launch.
    When I open ITunes this message appears "The software required for communicating with the IPod is not installed correctly. Please Reinstall ITunes." I have now reinstalled ITunes upwards of ten times and the problem still persists. I have done everything Apple asks in accordance with Apple Support document 93716 (same title as my subject line). Deleted ITunes, QuickTime, emptied Temp Files, Restated computer ad nausema...etc.
    My guess, albeit an uneducated one when it comes to these problems, is that something is amiss within Windows??
    If someone can step up to the plate and provide me the solution to my problem I will be overjoyed!!!
    Dimension 4600   Windows XP  

    Problem solved Hallelujah!!
    Send your checks to MarkinMadison!! Here's his post:
    "Solution to "Software required for communicating with the iPod is not installed"!
    I battled this same problem for about 5 hours. Going through re-installations, the "5 R's", all these discussion boards. Nothing worked.
    The problem is that iPodService was repeatedly crashing after minute or so. You can verify this by hitting Ctrl-Alt-Delete and noting that iPodService is missing from the process list (sort by image name), or by right-clicking on My Computer and selecting "Manage", then going to Services and checking out the IPodService service - if it gives you the option to "Start", then it's not running.
    Here is what worked.
    1. De-install iTunes and iPod (if you have the updater installed) completely by going to Start --> Control Panel --> Add/Remove Programs. Also delete the C:\Program Files\iTunes and c:\Progam Files\iPod\bin directories. (Don't worry, this doesn't affect your saved music files.)
    2. Log in as an Administrator
    3. Go into the registry (note this is dangerous - you should be careful) and remove the iPod entries that the uninstaller misses.
    3.1 Go to Start menu --> Run.
    3.2 Type in "regedit".
    3.3 Go to HKEYCLASSESROOT --> IPodService.iPodManager.
    There are two keys here, iPodManager and iPodManager.1. In my case, I did not have permission to view either of these. I think this is the root cause of the problem. I think the installer can't properly update these because it doesn't have permission. So you need to change the permissions:
    3.4 Right-click on IPodService.IPodManager
    3.4.1 Select "Permissions..." A warning will appear saying you don't have permission, but that you can change permissions.
    3.4.2 On the window that launches, click on "Advanced..."
    3.4.3 Click on the "Owner" tab.
    3.4.4 Select a valid account (the one you're logged in under) under "Change Owner To".
    3.4.5 Click the checkbox that says: "Replace owner on subcontainers and objects."
    3.4.5 Hit "OK".
    3.4.6 Back on the main Permissions window, hit Add and add the same account as a valid user.
    3.4.6.1 Where it says "Enter the object names to select", type in the account name, e.g. "Smith".
    3.4.7 Click on the "Allow" checkboxes for "Full Control" and "Read".
    3.4.8 Hit "OK".
    3.5 Repeat procedure for the "iPodManager.1" key.
    3.6 Now right-click and delete both of these keys.
    3.7 If you can't delete, you might need to open up the keys and repeat the procedure on the sub-keys.
    4. Exit out of the registry editor.
    5. Re-install iTunes. I re-installed iTunes and reconnected the iPod, and everything worked.
    I want to repeat that editing the registry can completely mess up your computer if you modify the wrong things, so only do this if you're comfortable, and be extremely careful.
    Hopefully this helps!
    Apple support people: assuming this works, please add it to your solutions page, and feel free to reimburse me for spending half of Christmas figuring this out.
    Mark"

  • Using Win 7 64 bit. Problems w/ Firefox 3.6.6: (1) When I close it, it sometimes closes the window but does not stop operating. Yet, I cannot restart it. Only solution is to use Task Manager to shut it down, then restart it. (2) Will not open certain

    Using Win 7, 64 bit. (1) Firefox fails to stop when I close window; only solution is closing it thru Task Manager. (2) Firefox does not allow me to access certain corollary items such as opening emails I receive in online Groupwise and certain videos at websites, such as demonstrations.
    == I purchased new computer w/ Win 7 64 bit

    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s'''.<BR>
    This is not a cure but will make it easier if Firefox locks up.

  • Ipod recognized by Windows, but does not synch

    I recently had a hard drive crash, and I used one of those Ipod-to-Itunes programs to transfer my music back onto my computer and itunes. When I plug my ipod in, Itunes recognizes that my ipod is connected, but that's it, it just sits there. I can't manually tell itunes to synch my ipod. Is there something I'm missing here? Then when I try to eject it, it tells me that I can't because there are files in use.

    problem solved

  • When i connect my ipod nano 2nd gen, it charges but does not appear in windows or itunes.  I tried the reset but it didn't work.  how can i fix this?

    I bough a 4g Ipod nano 2nd gen for my cousins birthday.  When i plug it into my computer it charges but does not show up in windows or itunes.  I tried reseting it, reinstalling itunes, everything the site said but it didn't help. I am trying to sync songs to it for my cousin, but it won't work with it not connecting.  Could the wire have something to do with it or is there a bigger problem here?

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with             
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • My new Dell PC running Windows 8 does not recognize my iPad or iPhone. Worked OK for iPhone for months but would not work for new iPad.  I removed /relaoded iTunes and now it won't recognize either iPad or iPhone.

    My new Dell PC running Windows 8 does not recognize my iPad or iPhone. Worked OK for iPhone for months but would not work for new iPad.  I removed /relaoded iTunes and now it won't recognize either iPad or iPhone. Got any suggestions?

    Hi there Lizabethfromaz,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    -Griff W. 

  • Windows update does not work after using System recovery disk

    I have a Toshiba Satellite c655 with WIndows 7 64 bit Home premium. The hard drive died on it, so I purchased a new hard drive and purchased the appropriate Recovery media from Toshiba. I followed the directions and installed the 3 disks on to the new hard drive. But Windows update does not work I get the following error: Windows update can not currently check for updates, because the service is not running. You may need to restart your PC    No matter what I try, I can not get it to work. And it will not let me install Windows Defender either. Any ideas or help would be appreciated. Thank you in advance for your time on this matter.
    Solved!
    Go to Solution.

    I get errors saying A problem is preventing the troubleshooter from starting.
    That makes two similarities to the following thread. Both Windows Update and Troubleshooters fail to work correctly.
       Trouble with reinstall of Win7 64 on a L505-ES5018
    The fix was to install a new hard disk driver.
       Intel Rapid Storage Technology
    -Jerry

  • My ipod works in itunes but does not appear in "my computer" after I changed the properties

    My ipod works in itunes but does not appear in "my computer" after I changed the properties.
    First off, I'm using Windows XP (and Mac SnowLeopard) Here's how it started. For some reason my ipod started showing up as a camera when I plugged it in. It works fine in itunes, though. But when I tried to access it from "my computer" it only
    showed me the one and only picture I had on my ipod. I deleted that picture hoping it would no longer show up as a camera. When it still did I right-clicked on it in "my computer" and selected "properties". Under "autoplay" I
    chose for it to 'not show up' or 'take no action' or some such deal when I plugged it in. I thought that would stop it from popping up the window that asks whether i want to 'open camera wizard' or 'open camera scanning' or 'open folder to view files' or 'take
    no action' , etc. But now it won't show up in "my computer" at all. I also have a Mac with SnowLeopard. When I plugged my ipod into it my ipod doesn't show up in "finder" either! So basically my problem is not a mechanical one with hardware
    or software; yht ipod still works fine in itunes. I just need to undo the change I made. I've searched all around my preferences, utilities, options, etc. It shows up on my "Device Manager" but not on "Disk Management".
    Any help would be very much appreciated. Thanks.

    Hi,
    To show up in Windows Explorer, you can try placing the iPod into
    disk mode.
    Moreover, i recommend you to
    restore ipod to factory settings.
    If this issue still persists, locate to device manager, uninstall and reinstall USB Mass Storage Device driver.
    Here is an article you can refer to below:
    http://support.apple.com/kb/TS1369
    To get more help, you can also redirect to apple support forum:
    http://www.apple.com/support/ipod/
    Thanks!
    Andy Altmann
    TechNet Community Support

  • HT1338 My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    Hi ...
    Checked to see how much free space there is on the startup disk lately?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides
    If disk space is not the issue, booting in Safe Mode deletes system caches that may help.
    A Safe Mode boot takes longer then a normal boot so be patient.
    Once you see the Desktop, click the Apple menu icon top left corner of the screen.
    From the drop down menu click Restart.
    See if that makes a difference ...

  • I can no longer get to Facebook Via firefox It comes up loading in the tab but does not get any further one minute it was working the next it was,nt should I try uninstalling firefox then reinstall or does anyone know what could of happened thanks

    # Question
    I can no longer get to Facebook Via firefox It comes up loading in the tab but does not get any further one minute it was working the next it was,nt should I try uninstalling firefox then reinstall or does anyone know what could of happened thanks

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • I recently purchased a Canon 7D. I own Adobe Photoshop/Bridge CS5. I cannot open my raw images in Bridge. I have tried to download the plug in but does not seem to work. Please Help, I need to be able to open my raw images in Bridge ASAP. I do not want to

    I recently purchased a Canon 7D. I own Adobe Photoshop/Bridge CS5. I cannot open my raw images in Bridge. I have tried to download the plug in but does not seem to work. Please Help, I need to be able to open my raw images in Bridge ASAP. I do not want to upgrade to CS6 at this time.

    If you had given us sensible information, I could look it up for you if your efforts fail.
    Right now, I don't even know if you are on a Mac or on a Windows box.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • My computer suddenly decides not to work and turns on but does not go past the grey apple screen with the loading wheel.. it will not go to my desktop. What should i do?

    can somebody please help me fix this issue, i have been sitting at my computer all last night and this morning trying to figure it out. It could be the hardrive or anything really i just need to get it working. Alot of important things that need to be done using this computer and i am freaking out.
    My computer suddenly decides not to work and turns on but does not go past the grey apple screen with the loading wheel.. it will not go to my desktop. What should i do?

    Put your install DVD into the optical drive (CD/DVD drive) and reboot. Be sure to either use the disc that came with your Mac, or, if you installed a later Mac OS X version from disc, use the newer disc. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option Key until the Install Disk shows up) until the apple shows up. That will force your MacBook to boot from the install DVD in the optical drive.
    Or if you are running 10.7 Lion, boot from the recovery partition (Command +R on boot) and use Disk Utility to repair your OS 10.7 partition.
    When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. When it comes up is your Hard Drive in the list on the left?
    If it is, then click on the Mac OS partition of your hard drive in the left hand list. Then select the First Aid Tab and run Repair Disk. The Repair Disk button won't be available until you've clicked on the Mac OS partition on your hard drive. If that repairs any problems run it again until the green OK appears and then run Repair Permissions. After repairing use Startup Disk from the same menu to choose your hard drive for restarting from your hard drive.
    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • My new iPhone 4 will not play on the iHome iP1 Speaker System. I have removed the case and seated it properly and it charges, but does not play music. How can I get it to work?

    My new iPhone 4 will not play on the iHome iP1 Speaker System. I have removed the case and seated it properly and it charges, but does not play music. How can I get it to work?

    Hi there Graham!
    I have a couple of articles that can help you troubleshoot this issue. First, if you are downloading HD content, you will need to know the system requirements for HD playback, which can be found here:
    iTunes: Purchasing and viewing HD videos
    http://support.apple.com/kb/ht3209
    Next, you will want to check your video playback settings on your Windows machine. The steps for that can be found right here:
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/TS1718
    Hope that helps. Thanks for using the Apple Support Communities!
    Cheers,
    Braden

Maybe you are looking for

  • Create Hyperlinks that open in new tab or window?!

    Hello, Ok, so, this has been asked other times for many versions of InDesign and most common response is to do it in Acrobat Pro. WHY?!!!! I couldn't even easily figure out how to do it there and frankly, don't want to. That seems so backwards and te

  • How do I move video from iPhone 5 to MacBook?

    How do I import video from the photos on my iPhone 5 to my MacBook Pro?

  • Import Performance Analysis report

    Hi, I ran the import analysis report in FDM and it tells me the time taken by each step of import process. My question is why does it take time for "Memo Reassign Time". I am not doing anything with Memo. Is there a way to avoid the time it takes to

  • How do I access other areas of a single page website via in browser editing

    I have created a single page website in adobe muse. The menu is made up of hyperlinks to jump to other areas of the website. I would like to update a slideshow that is NOT on the home screen only I cannot access any other area of the website via Busi

  • 6303i Classic modem doesn't work - why?

    In the 6303i user manual:  "You can use your device as a modem by connecting it to a compatible PC. For details, see the Nokia Ovi Suite documentation" Based on this I just bought a 6303i and wasted a morning trying to get the modem to work.  I can c