Working with the HTTP Servlet

Hello,
I am using Apache Axis to utilize a webservice. I am running this service on the Tomcat localhost:8080. I want to be able to utilize the getServletConfig().getInitParameter() method and I know to do this I must include the HttpServlet library.
My code read as follows:
file_base = new File(getServletConfig().getInitParameter("accounts_db_dir") + "admins\\" + this_user);
This did not work so I then tried to create an instance of HttpServlet and get it that way
HttpServlet s = new HttpServlet();
This did not work either. I am getting "cannot resolve symbol" errors! I am pretty sure that this is a classpath error. Is there a special way to import such a class? I am using:
import javax.servlet.HttpServlet;
And the TOMCAT_COMMON_LIB\servlet.jar IS in my classpath.
Would somebody please help me with this?
Thanks,
James

I've figured out how to get the libraries included, however
String ho = getServletConfig().getInitParameter("accounts_db_dir");
This causes an exception.
I've got the accounts_db_dir declared as an Init-parameter in the tomcat server.xml. . . not in the axis/web-inf/server.xml
when using axis, which server.xml is used?
Thanks
James

Similar Messages

  • Will weblogic 4.5 work with the Sun Java Servlet Development Kit Version 2.1?

              Will weblogic 4.5 work with the Sun Java Servlet Development Kit Version 2.1
              (JSDK 2.1). The reason I want this is we want our application servlets to
              use the new 2.1 redirection mechanism to redirect to JSP files.
              

    WL 4.5 supports JSP 1.0 (and, therefore Servlet 2.1).
              What I want to know is when will it support JSP 1.1 (and, therefore Servlet
              2.2)!
              Regards,
              Murali Krishna Devarakonda
              Cox News <[email protected]> wrote in message
              news:7rk40p$s00$[email protected]..
              >
              > Will weblogic 4.5 work with the Sun Java Servlet Development Kit Version
              2.1
              > (JSDK 2.1). The reason I want this is we want our application servlets to
              > use the new 2.1 redirection mechanism to redirect to JSP files.
              >
              >
              >
              >
              

  • I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I may be way out, but do you know about this product, would it help integrate the Macs for you.
    https://www.thursby.com/sites/default/files/images/ADmitMacv8_SPD.pdf

  • How can I update a Numbers '08 document to work with the current version?

    I've had Numbers '08 for quite awhile (obviously). Have a few spreadsheets in it that I tried as an alternative to Excel. I've now got the most current version of Numbers but it won't open the spreadsheets created in the '08 version. I get an error message telling me to save them with Numbers '09, which I do not have.
    Is there any way to get these updated to work with the current version? If so, that would be great, would like to try it out. If not, I'm just going to copy this stuff into Excel and be done with Numbers entirely.

    This is a work-around - but also send feedback to apple that that is pretty low in the 21st century where people may keep data without opening it for a very long time - then need it desperately.
    http://www.apple.com/feedback/>Apple - Feedback
    Export the spreadsheets to another format - CSV may work - then import into the new version.
    Also you could try export to excel format and import.

  • The apple store is so unhelpful. I have an iMac computer operating on Mac OSX 10.5.8. I want to upgrade to the latest Mountain Lion operating system so I can work with the iCloud on my computer and download my email. I can't seem to purchase this on-line

    The apple store is so unhelpful. I have an iMac computer operating on Mac OSX 10.5.8. I want to upgrade to the latest Mountain Lion operating system so I can work with the iCloud on my computer and download my emails. I can't seem to purchase this on-line as it keeps telling me to go to the app store. I haven't got the app store on my computer as I am told I need iCloud for which I need the new operating system, which I can't download or purchase as I am sent back to an instruction telling mee to go to the app store icon.
    How difficult can it be to simply purchase the software on-line have it shipped to you so you can install it, in the event it cannot be downloaded as it appears it can't be based on my curent operating systems being Mac OSX 10.5.8.

    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    Whilst Apple have withdrawn Snow Leopard from download, you can still get it from Apple by calling 1-800-MY-APPLE (if you are in the USA) and they will supply the SL DVD for $30.  You can also purchase the code to use to download Lion from the same number.
    Requirements for Mountain Lion:
    http://www.apple.com/osx/specs/

  • DOES THE APPLE REMOTE WORK WITH THE IPOD TOUCH..? WITHOUT A DOCK..

    HI
    DOES THE APPLE REMOTE WORK WITH THE IPOD TOUCH 5TH GEN..? WHITHOUT A DOCK..??
    THANKS ANYONE

    This Apple remote requires a dock since this remote uses IR and the iPod does not ha IR capibility,.
    Manufacturer Information
    Apple Remote with iPod and iPhone: Please note a Universal Dock is required in order to use the Apple Remote with your iPhone or iPod.
    http://store.apple.com/us/product/MC377LL/A/apple-remote?

  • Does the ipod video work with the original ihome?

    does the ipod video work with the original ihome?

    Welcome to Apple Discussions!
    If you mean this one...
    http://www.ihomeaudio.com/products.asp?productid=10015&deptid=1003
    Them yes. I am using one myself. You may want to purcahse these if it does not come with them (depending on how old it is)
    http://www.ihomeaudio.com/products.asp?productid=10016&deptid=1000
    btabz

  • I just got an iPhone 4 as an upgrade from the original iPhone 3.  I came home and tried to sync it with my iTunes and it says I need to upgrade my iTunes to work with the 4.  The current version of iTunes isn't compatible with my G5 mac?????

    I just got an iPhone 4 as an upgrade from the original iPhone 3.  I came home and tried to sync it with my iTunes and it says I need to upgrade my iTunes to work with the 4.  The current version of iTunes isn't compatible with my G5 mac?????  Help

    Return it.
    The requirements are on the box and on the website:
    Mac system requirements
    Mac computer with USB 2.0 port
    Mac OS X v10.5.8 or later
    iTunes 10.1 or later (free download fromwww.itunes.com/download)
    iTunes Store account
    Internet access
    http://www.apple.com/iphone/specs.html

  • My iMessage no longer works with the new is07 update how do I fix this

    My iMessage and some of my applications no longer work with the new software update. How do I fix this?

    I called Apple Support after trying many fixes suggested online. They directed me to the procedure on the following page:
    http://support.apple.com/kb/TS4268?viewlocale=en_US
    I did the erase and restore option they suggested since I had tried a pile of ther things suggested on posts and blogs and they did not work. I even waited the obligatory 24 hours, thus the restore from backup option was what they suggested. I have a 64gig iPhone 4S and it took about 1.5 hours to complete the entire operation seeing that I am using about 54 gigs of that capacity.
    Warning: I lost all of my emails and all of the data files from one of my map programs so be sure you have everything that you really need from your phone store elsewhere before wiping your phone. I thought that the backup on my computer would restore everything but obviously NOT.
    Hope this helps.

  • Is there a USB 3.0 Hub that really works with the Mac Mini?

    My Mac Mini's four USB 3.0 ports work fine with my four USB Seagate GoFlex 3.0 hard drives. The drives mount at startup, and perform at expected USB 3.0 speeds. But, when I connect the drives to a USB 3.0 HUB to free up the Mac's USB ports for other devices, typically two of the USB Seagate drives will mount at startup, but two won't. There's a fix for this: after startup, I simply disconnect AC power from the drives that didn't mount, and reconnect the power a few seconds later. Now all my drives are mounted, they perform properly, and other USB devices connected to other Mac Mini USB ports (a mouse, a USB midi interface) work just fine as well. It's annoying, though, to have to perform this extra disconnect-reconnect step every time. I've tried two different USB 3.0 HUBs -- one from Uspeed and one from Satechi -- and I have exactly the same problem with both. Question: Is anybody else experiencing the same thing with a late 2012 Mac Mini and a USB 3.0 Hub? Has anybody found a 3.0 Hub that doesn't have this issue with the Mac Mini?

    The USB 3.0 hub instability problems extend beyond the Mac-Mini, as addressed below.
    At long last we're seeing progress in getting 2012 Macs to work with USB 3.0 hubs. As discussed on this and other discussion groups I've had a horrible time with my MacBook Pro Retina  being unstable with USB 3.0 hubs. I know many of you have also or you wouldn't be reading this posting. 
    In June 2012 I bought one of the first 2012 MacBook Pro's with a Retina display. It's been a battle since with Apple selling what appears to be an incompatible or unstable system to effectively communicate with the USB 3.0 hubs. You'll see vendors now making comments that Apple is the source of the problem.
    I've been through USB 3.0 issues with two MacBook Pro Retina laptops. I've also tested a Uspeed hub, with 3 portable USB 3.0 drives connected, at the Apple Store. This was on a newer model MacBook Pro Retina, and also on a 27" iMac. All had instances where drives failed to mount during the short period allowed for testing. (Because of time constraints, we were unable to test at the Store for spontaneous and unprovoked unmounting of drives connected to the hub. These problems have existed since the beginning on my rMBP.)
    I am now on my 20th hub that has been purchased, or provided for testing. They varied from 4-Port to 10-Port powered hubs and involved 11 brand names. Comments were posted on Amazon, Tiger, and others for most of the ones purchased, and some that were tested. Some, like the HooToo specifically warned against use with Macs in the manufacturer's manual and, as I learned, for good reason. That was reflected in my comments for the drive on Amazon.
    The Plugable 7-Port USB 3.0 powered aluminum-finish hub that I have been testing since October 13 was provided  by Plugable after the first one, purchased through Amazon, was returned as unreliable. This 3rd, and newer generation Plugable hub uses the VIA VL812 chipset with the new version 90.81 firmware. My experience over the last 4+ weeks with this hub has been solid. While there have been problems with Eject errors, none were traced to the hub electronics. (Problems with intermittent connections at the cable connectors  appeared to be the cause of the disconnect errors. Almost all of the failures were traced to intermittent Micro-B connectors, but that's another story.)
    In addition to the greatly improved reliability of this hub, I find several features of this Plugable to be a plus including:
    The plug engages fully to the "hilt" when plugged into the hub giving a solid connection, as occurs on the MacBook Pro Retina USB 3.0 ports. Others hubs typically had a gap between the "hilt" of the connecting end, and the hub allowing for lateral movement. With some hubs this allowed for intermittent connections if the cable was disturbed.
    The on/off switch on the hub allows the hub to be powered down when not in use.
    The full size Type-B connectors on the cable at the hub end engage solidly. Hubs with Micro-B connectors have presented intermittent connections in the cable connector.
    The aluminum case looks attractive with Macs, IMO, but not a reason to buy.
    Overall, Plugable's support is the best I've encountered. I've found their response to questions to be prompt and thorough. This, coupled with their online support articles has put them at the top of my list. They provide news and information that I've not found with other hub vendors.
    The article titled "Plugable USB 3.0 7 Port Hub Firmware History" at the below link gives insight into the history of the problems that we've been having with the USB 3.0 hubs on Macs and the firmware updates, regardless of the brand of hub you have.  Apparently, if you have the VIA VL 812 chipset, firmware version 85.81, you're in safe territory.
    http://plugable.com/2013/10/30/plugable-usb-3-0-hub-firmware-upgrades2
    (One of the Plugable hubs appears identical to the black 7-Port Uspeed hub, and both use the VIA VL 812 chipset. They appear to be from the same manufacturer with the real difference appearing to be in the VL812 version of the firmware in the hub.)
    Some of the firmware can be upgraded, and some can't. Contact Plugable or Anker if you're affected.
    Uspeed has made improvements, but they were still unstable as of the last one I received for testing. In her last reply on 10/13/13 Sunnie with AnkerDirect Customer Support stated:
    Unfortunately, the new Firmware version (908x) does not work with the model "68UNHUB-B7U" you have. The hub bellow has much less complaints about Mac issue. We suggest that you order this one.
    http://www.amazon.com/gp/product/B009Z9M3DY
    AnkerDirect Customer Support
    Note that the above hub recommended by Anker has an 8th port just for charging iOS devices. Some will see this as a plus. However, the lack of such a port is not seen as a big problem. It's easy and relatively inexpensive to purchase extra 5V power adapters for charging, which is my preference. Plugging and unplugging devices on a hub that is powered "On" presents the potential for movement of the cables. This could interrupt a cable connection  and disconnect a drive during data transfer resulting in corrupted files. With 7 and 10 port hubs, and all the cables needed, this gets risky.
    I believe the USB 3.0 hub issues we're having are the result of poor design of the Mac's USB 3.0 implementation at the start. Unstable hubs that I've had a friend with Windows 7 test, said they "performed like a dream" on his PCs. This indicates the problem is with Macs, not the (twenty) hubs I've used.
    A statement from a support person dealing with USB 3.0 hubs tells what's I've long suspected: " -- the evidence is pointing to something specific to the Apple design (perhaps external to the chipset, like the signal re-driver….."
    If you're having USB 3.0 problems, be sure to let Apple know by sending in a Feedback comment to Apple at:
    http://www.apple.com/feedback/ 
    I'm told they read and treat the feedback seriously (although the duration of this USB 3.0  problem makes me wonder if Mavericks and iOS 7 haven't had a higher priority and distracted from this. Microsoft got USB 3.0 right, how about it Apple?)

  • I would like to update to Firefox 5.0.1, but I can't due to, too many things won't work with the version & will be disabled.

    I have wanted to update from 3.6.22, to 5.0.1, but can't do to the following reasons: I can't due to, too many things won't work with the version & will be disabled. They are: Microsoft. NET Framework Assistant 1.2.1, Iconix 3.90.1, HP Detect 1.0.5.1, Yahoo! Toolbar 2.3.5.201101200332202 (I don't care about Yahoo! Toolbar, because I don't use it!). As soon as these issues are fixed, I will be able to update, to the latest versions. These issues should be fixed & ready to work, before a new version is available. Thank you!

    Try using this extension to force compatibility.
    * https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    Check and tell if its working.

  • Will a YubiKey work with the Lightning to USB adapter?

    According to Yubico the YubiKey works with the old Camera Connection Kit but no word on the new Lightning to USB adapter.

    The adapters have no logic, it's the iPad that determines compatibility with devices. It it works, it works with one exception. Sometimes high-power draw devices must be connected to a powered hub to work.
    Single adapter for 1$10 more: http://store.apple.com/us/product/MC531ZM/A/apple-ipad-camera-connection-kit?fno de=3a

  • Does Microsoft Entourage 2008 for mac work with the new Mac OS X v 10.7 Lion

    Does Microsoft Entourage 2008 for mac work with the new Mac OS X v 10.7 Lion?
    I am just about to install Lion just need to check to see if if my work e-mail will work

    Sarah,
    Check this link:
    http://roaringapps.com/app:2533
    It contains some issues that people have encountered with Lion and Office 2008. It appears it can work, but you may have to go through some of the steps a few of the posters there have listed.
    That website also contains a pretty large list of applications and if they will work with Lion.
    Hope this helps! (I am not affiliated in any way with the site linked).

  • What HDMI to Component converter will work with the current generation Apple TV3?

    What HDMI to Component converter will work with the current generation Apple TV3?

    http://www.hdfury.com/products/hdfuryiii-specs/

  • What earlier version of FCP will work with the intel-3processor?

    what earlier version of FCP will work with the intel-3 processor?

    The version of the CR designer that the reports were created in is really not that important. Though more on that below. What you need is Crystal Reports XI R2A (11.5.x). That is the last version of CR to ship the Report Designer Component  (RDC) that you are presumably using at this time. Note that this version is out of support thus no fixes, no phone support, though we welcome your queries on these forums. To obtain CR XI R2A you will have to contact sales; 866-681-3435. Do not get CR 2008 (12.x) as this version does not ship the RDC and only has the SDK for .NET and Java.
    Re. version of the reports. While the version of the designer the reports were created in should not be that important, the older the designer, the more potential problems you may run into. Updating the reports to CR XI R2A is highly advised. You can do this manually by simply opening the reports in the designer and saving them - making sure they still run once that is done. Alternatively, you can do this in code by simply using the .SaveAs method, or exporting to rpt file format. This may not however update the database connectivity correctly (the database engine was completely rewritten in CR 9) and testing will be needed to make sure these reports still work. This is particularly true of your version 8 reports. Version 9 reports and later should be OK.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • IOException: invalid content type for SOAP: TEXT/HTML

    Hi all, After the IS received a SOAP request successfully and sent it to the Adapter Engine I get an IOException in my SOAP Adapter (I configured a SOAP communication channel). From my RWB I can see: 2005-08-12 10:53:17 Success SOAP: request message

  • Reports to see cost in statistical WBS elements

    Hi, Is there any standard SAP report available to see cost in statistical WBS element? Aman

  • Running AppleScript in the background

    Okay, yet another problem I'm having that I'm going to bug the community here with. Is it at all possible to run AppleScript while doing other things? For example, if I wanted my AppleScript to hop online every hour and send me back information from

  • Help with HTML5 elements rendering in IE 8 and earlier

    I'm having a bit of trouble getting HTHL5 elements to show in Internet Explorer 8 and earlier.  I've attached a couple of java scripts that are supposed to do the trick but not getting success.  I've attached both html5shiv.js and modernizr-1.5.js to

  • A bridge? A switch? Another router?

    I had a internet modem connected via ethernet cable to a Linksys router (the wireless ability had been deactivated) and then I ran from the Linksys one ethernet cable to one Apple Express (N) and another ethernet cable to another Apple Express (b/g f