Obtaining Tomcat Version (also posted on the JSP forum)

Hi,
Sorry to be double posting - I don't usually but this is kind of important and I thought perhaps some of you java gurus could help out.
I am creating an installation program that searches the disk for tomcat server. Once I have found the tomcat.exe program I am assuming tomcat is properly installed.
What I need to do next is get the program version. Are there any features offered by Java that do just this ?
Thanks for reading, I would be glad for any help...
BadLands

Thanks SaturnBlues,
I had also thought about looking at the server.xml file which contains the version - but say my app should be compatible with later versions of tomcat - I shall be in a rut if they change the naming conventions...and so on.
I was thinking more in the lines of getting hold of the version through the properties or something (you know - when you right click under windows and you get the version tab...).
But I don't have a clue what java offers down these lines.
BadLands

Similar Messages

  • Communication between sibling webapps? ( also posted to the jsp forum )

    Hi Folks,
    I'm working with a web application ( with multiple webapps ) in which some requests to some of the webapps ( call them A, because they are all similar ( one for each of our clients ), but may have their own ( possible multiple )specific implementations of an interface that is available across the application ) are handled ( via a RequestDispatcher include( request, response ) ) by a servlet in another webapp ( I'll call it B ), that provides some specialized services ( and receives the Request it is working on ). The include is part of an custom jsp tag, which is used on some of an A's pages, and which always includes from B.
    B's service may need an instance of one of those A-specific implementations, but the service doesn't know whether that is the case, or which specific implementation class to use until it receives the request. The problem is that if the .class file is in A's WEB-INF ( classes or lib ), if B's code uses Class.forName ( or similar ) it can't see the class, because its ClassLoader is a sibling of A's, and not a parent.
    This has been dealt with so far dealt by putting ALL of the implementation classes in B's WEB-INF, but that is ugly, crowded, and confusing ( and possibly risky - a typo in a configuration file could have A1 using an A2 implementation ). So, it would be better to move the implementations to the appropriate A's WEB-INF.
    The question is, what is the best/recommended/cleanest/least-risky ( multiple answers accepted ) way of letting B's service get the specific implementation it needs.
    So far the possibilities that I've heard are ( in no particular order ):
    ---- 1 ----
    a. Have the tag instance get the ClassLoader of the page the tag was on, and add it as an attribute to the request.
    b. The service looks up ( from configuration ) the classname it has determined it needs, as it does currently.
    c. Have the service get the ClassLoader from the attribute, and use it with something like Class.forName( String, boolean, ClassLoader ) to instantiate the implementation it needs, and use it.
    ---- 2 ----
    a. Like 1, except that the tag passes an instance of some factory that was loaded by A's classloader, that will be able to load the implementation whose .class file is in A.
    ---- 3 ----
    a. Have the tag try to determine the implementation that will be needed, instantiate it, and pass it along as in 1 or 2. ( and WHEN it will be needed - the service isn't used on all paths through the tag, though that is also the case for 1 & 2, but there the attribute value can be the same instance each time, while in this case, we probably need a new instance of the implementation )
    ---- 4 ----
    a. Do something else ( please fill in the blank )
    Any suggestions will be greatly appreciated - as well as comments on the issues that might be involved with each possibility.
    ( I apologize for the over use of parentheses, but that's the way I think - early LISP influence )
    Thanks,
    George McKinney

    Most web application servers have a means of sharing common libraries between web applications. In Tomcat you can put the common libraries in the common or shared directory. In Weblogic you can bundle the war files in an ear file and put the APP_INF directory of the ear file. Consult the documentation for your web application server for how it's classloading works.

  • Why aren't I allowed to post in the iPad Forum?

    I was allowed to post in the iPhone forum but now I'm told that I'm not allowed to post in the iPad forum! What is going on here?
    EDIT.
    Disregard; I went back and tried for the 5th or 6th time and it seems to have posted. Jive software must being acting up again!

    The forum likes to log me out for no reason just before replying to posts...I'm logged in, I click on the reply button, then BAM! I'm logged out. Happens many times in a row as well within the same session. It's quite maddening.
    This could be what's happening with the OP.

  • How do you answer a post on the old forums?

    I see there are many new posts on the old forum.
    When clicking reply, it takes me to the new forum.
    I expect this means that the old posts are now read-only and will not be
    migrated to the new forum?
    A great deal of time went into posting in the old forum by everyone.
    Has this work been lost now?

    DavidBedford wrote:
    Has this work been lost now?
    It is read only until the 26 February.
    Any threads that were e-mailed to the mods before 6 January 'might' make onto here.
    I asked about any threads created after 6 January (on the old forum) and didn't get a reply in time
    -+-No longer a forum member-+-

  • How do you find what you posted to the support forum?

    Last night I posted a question about Firefox being unable to load certain https URLs, but now I can't find it. I would like to be able to find it to see if anyone has made any helpful replies. In the forum settings, I have the following checkboxes:
    Watch forum threads I start:
    Watch forum threads I comment in:
    Watch KB discussion threads I start:
    Watch KB discussion threads I comment in:
    Send emails for private messages:
    All of the above settings are checked, but I can't find where in the interface for these forums I should go to view the threads and comments that I am "watching."
    I will bookmark this present support topic so that I can return to it later.
    thank you for any help you can provide!

    ha ha ha oh my god...
    okay, thank you for the help... I see what the problem is... this web site's UI has a shortcoming...
    this URL:
    https://support.mozilla.org/en-US/home
    appears to be the home page of the forums... but it is not....
    the home page of the forums is buried in a link off to the side in a list labeled "For Contributors"... I mean... by seeking help in the forums, I'm now a "contributor"? ehhh... English... It'd be nice if the UI designers would use it...
    the home page to the forums is found via this URL:
    https://support.mozilla.org/en-US/questions
    See... whoever named that URL had the right idea... instead of
    https://support.mozilla.org/en-US/contributors , the person used:
    https://support.mozilla.org/en-US/questions
    hmmm.... now if the heading on the right said:
    "For people with questions"
    then I would have scanned it more closely, and I would have noticed "Support Forum Home" in the list.
    I think the fact that so many people use Firefox is really a testament to how bad the other software out there really is, not to how good the Firefox stuff is or how responsive the firefox people are... E.g. is anyone going to actually learn from my above experience, and make the support forums easier to find?
    Is anyone going to actually put a link to the forums in the dashboard for the account that is used to log into the forums?
    No, not a chance...
    I mean, yes, I get that the link to the forums home page is always in the footer at the right, but come on, for crying out loud... so are stupid advertisements... it's a footer or side bar or whatever you want to call it... people are trained on a subconscious level, by now, to ignore that crap. If you were going to design a forum, would you take the most important links, and put them off to the side, where they are less likely to be noticed?
    This is what I see when I bring up my dashboard:
    https://support.mozilla.org/en-US/user/630258
    I mean, if you are a small time developer, with a few thousand users, you probably don't have the time or the resources to make something that's optimal... but when you have millions upon millions of users... optimizing your interface might be worth looking into.... you know... auditing the performance and effectiveness of your UI now and again might be a good idea... You take the few minutes that you waste a user with a confusing counter-intuitive non-standards-based interface, and you multiply that by millions of users, and what can I say... that's a *lot* of waste.
    You don't even have an index of forum content... everything is found by searching... Imagine if you walked into a library, and they had NO catalog.. Instead, all books just tossed into a database, and the only way to find anything is by searching. That would be... just incredibly stupid.... That is what this forum interface is.

  • Some of my posts on the Portege forum don't appear

    I've posted regarding the use of face recognition on the new R600, which we have just received. However, my posts on that topic have not appeared in the forum.
    Why?

    Hello
    If you cannot find your posting in category you wrote maybe moderator removed it into other category. Best example is your posting about face recognition tool. This tools is not on Portege notebooks only and it is good to have it in the right category.
    Are you agreeing with me?

  • Can someone answer this post in the Mac forum?

    b noir or Pac or anyone?
    http://discussions.apple.com/thread.jspa?threadID=696413&tstart=0
    M

    Good catch, I replied too it. Usually when I see post and it says they have a mac I just reply...
    "This is itunes for windows, if your doing this on a mac you need to post in the itunes for mac forum for better help"
    I do that because sometimes even tho it says mac there doing it on there PC or a friends PC.

  • Swing related question wrongly posted in the JDBC forum

    The OP needs some sort of dynamic table model. He does not seem to understand the difference between JDBC and Swing so I am not hopeful for an easy resolution.
    The table model used appears to be static so it is not wonder that the new rows are not visible.
    I asked the OP to post their questiopn in here several times so far but it seems rather hopeless. Perhaps someone here can help.
    http://forum.java.sun.com/thread.jspa?threadID=699957&tstart=0

    If you have CC you get Edge and you are free to use it any DPS work you do, including Single Edition.
    Bob

  • Am I posting on the wrong forum?

    Posted my question 24 hrs ago and bumped it every 4 hrs or so
    but no response. If my question belongs somewhere else that's fine,
    but does anyone have any suggestions for where I should post?
    -- Ody

    On 09 Apr 2007 in macromedia.dreamweaver, OdysseusReborn
    wrote:
    > Posted my question 24 hrs ago and bumped it every 4 hrs
    or so but no
    > response. If my question belongs somewhere else that's
    fine, but
    > does anyone have any suggestions for where I should
    post?
    In addition to the advice about Easter and all:
    - This is a volunteer forum. None of us get anything for
    posting here.
    - Most of the answers come from the NNTP side of the forum.
    Bump posting
    is, at best, annoying to those of us on that side of the
    forum, and will
    get you ignored fairly quickly. If you feel a need to repost,
    at least
    wait a day or two.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • SQL Loader - Also posted in Database-General forum

    Hi All,
    I am using Oracle 9i and am new to it. I created a new user and I am not very sure if I assigned all the priveleges and roles correctly.
    Problem is that I cannot log into SQL Plus and neither can I use SQL Loader. Am working in Windows XP environment. I can connect to SQLPLUS and SQL LOADER with the usual scott/tiger userid/passwd. Why cant I connect with the username/password that I created?
    I can use the Enterprise Manager Console provided by Oracle with scott/tiger as well as with the new username/password that I created. But why cant I connect to SQL Loader and SQL Plus?
    Regards,
    Mahesh.

    The error says:
    ORA-01017: invalid username/password; logon denied
    Which seems to indicate that you are not using correct
    password that you assigned when CREATE USER command was
    executed.
    Possibly, when you connect using enterprise manager, you
    might be connecting as SYSDBA which allows you to login
    since your NT userid might be part of the DBA group.
    try conncting to the database using the AS SYSDBA syntax
    when using SQL*Plus:
    click on START -> RUN
    and type "SQLPLUS.EXE /nolog" (without double-quotes) and click ok.
    At the SQL prompt, type connect <username> AS SYSDBA
    and see if you can connect.
    If you can, this means that when you created this new
    user you gave it SYSDBA privs. and at that point,
    password (or the username for that matter) is ignored.
    See the following session. here I do NOT have any user created by the name "XYZ" still when I connect AS SYSDBA,
    it allows me to connect:
    =======================================================
    SQL> connect xyz as sysdba
    Enter password:
    Connected.
    SQL>
    =======================================================

  • Can I have elements freely outside the JSP form?

    I have a form in a JSP page. This form has empty spaces in both left and right side. I'm adding floating elements which are draggable outside form area and droppable right inside the form. The problem is - whenever I add an element outside form in the body, it gets added from top down. I want these elements to get added on both sides of the form. How can I make it possible so that the elements get added on both sides of the form?
    Regards,
    AR

    You may also want to post this question to the JSP forum under the Technologies section for more general JSP expertise.

  • Posting here as noone on the javadoc forum...

    I would like to generate the javadoc for some packages only, I tried to put a list of packages in the packagenames parameter, but I have got the following message:
    .... build.xml:85: No source files and no packages have been specified.
    Here is my build script sample:
    <target name="javadoc" depends="setup-classpath">
    <javadoc
    packagenames="com.etil.sudetp.eap com.etil.sudetp.eap.message"
    source="${basedir}/src"
    sourcepath="${basedir}/src"
    destdir="${basedir}/doc"
    use="true"
    author="false"
    version="true"
    </target>
    Thanks for your help.

    nasch_ is right plus your usage of the source attribute is not correct.
    Please see the answers to your post in the Javadoc forum.
    You really should be a little bit more patient. Just because the Javadoc forum is rather low traffic, it does not mean that the chances for (good) answers increase when posting in a less appropriate, high-traffic forum ... and this is actually an ANT question and not a Javadoc question, so the best place to ask this would have been the ANT mailing list.

  • Do Apple engineers actually post to the ADC developer forums?

    Apple claim that their engineers post on the ADC developer forums. Is this actually true?
    I'm wondering if its worth paying membership fees for the ADC, one of the things that would attract me is if its possible to get answers to questions
    in its forum that can't be found in other forums.(questions which are perhaps off-the-beaten-track and you won't find answers to in how-to Cocoa type books. i.e. questions about .kexts, nkes, accessing the modem etc. (mac modem not iphone modem) and so on).
    Is there a good degree of accurate knowledgeable feedback, from Apple Engineers, or knowledgable experienced developers in that forum?
    Thanks

    hotcheese wrote:
    I got a message saying I had to be logged in as a paid ADC member, not as the free ADC member to access it.
    You do need to be a paid ADC member. I just joined the iPhone program. I can see the iPhone forums but not the MacOS X forums.
    You can also post on the Apple mailing lists. Apple engineers regularly post there as well.
    Keep in mind that there is not necessarily anything special about an Apple engineer. They aren't going to impart any confidential information. Even if they did, such information would probably change without notice at some pointer - that was why it was confidential. A non-Apple engineer may actually have more experience than someone from Apple and could give you unfettered opinions about various technologies.

  • Change the Post Moved to another Forum procedure

    When a post gets moved to another forum, and you click on the green-arrow Moved: it shows you a new screen with the new link, and info where it is moved to.
    See here and here
    Could that be changed in such a way, that when you click on the Moved: it takes you direct to that post in the new forum, without the in-between message?
    Message Edited by RealBlackStuff on 12-22-2007 10:01 AM

    I wonder if it would do what you're asking if we didn't put anything in the comment box?  I'll try that.
    I had been leaving a placeholder and filling in that comment in for now just to reinforce the idea that people should watch where they're posting in the first place.  I wasn't planning to keep doing that once things are firmly established here, and we don't leave a trail of breadcrumbs at TPF any more when we move something.  It's just clutter.
    OK, I tried not putting a comment in, and it didn't change anything.  I did find out that I can delete the placeholder, though, without deleting the moved thread.  In phpBB, deleting the placeholder dumps the whole thread.  I think that's an improvement from Lithium over phpBB.
    Message Edited by nonny on 12-22-2007 11:01 AM
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Jane
    2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
    I am not a Lenovo Employee.
    I AM one of those crazy ThinkPad zealots!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • Please Guys this is the OO Forum not General Abap QUESTIONS.

    Hi everyone
    This is the OO Forum. There's often stuff here which really has nothing to do with OO.
    <b>For example the question on Table Controls and BDC -- sorry poster of that topic I'm not trying to have a go at you but defintely the wrong forum for that post.
    There's another post at hiding source code.
    This also has NOTHING WHATSOEVER to do with OO  / ABAP objects.</b>
    I think for people who want answers to their questions whether OO related or not will probably get  a much better response if they post to the correct Forum.
    Posting totally non OO related stuff to this Forum not only reduces the usefulness of this Forum to people who genuinely are looking for OO information / answers but also makes it difficult for people to answer your "non OO" question as they are unlikely to be reading this forum.
    I'm not trying to be too difficult here but keeping most posts On Topic makes the Forum far more useful to everyone genuinely interested in OO .
    Cheers
    Jimbo

    $299 for the 16GB White which is what I have and as for contracts it is true must buy a contract. now i have heard of people buying the contract and phone then paying the $200 surcharg to end contract then user void phone by cracking it and go through some other companies this is HIGHLEY not advise considering APPLE will not touch your phone once you do so. your running a HIGH risk of errors and I dont even think iTunes will recognize it will it?. and tamara up there $1680 for contract fees *** is that i walked out of store with 16GB White and service for only $389 and first bill with activation charges was only $175, although i do think it is somewhat chincy that you wasnt text need seperate plan phone calls? also need seperate plan. bringing your average mo. price to around $100. **** my WORK phone is only 60 bux a month and has WAY more talk time and texting emails and datat than iPhone Service. I love iPhones safari though. very solid.

Maybe you are looking for

  • Activate Creative Cloud 6 on new computer

    Hi, I had to buy a new MacBook. I deactivated Creative Cloud 6 three hours ago on the old Mac, but it's still impossible to install it on the new one. Can you help me?

  • How do I get all the e-mail addresses alphabeticall when I want to send rather than all of them in no order

    Before this new version of Thunderbird, when I typed in the first letter of an e-mail address, it would display all the e-mail address starting with that letter and I could pick the address which I wanted. Now, when I type in the first letter of an e

  • Adapter Keeps Dying

    Why do my adapters keep dying? I've had 2 croak in the last four months. At $80 a pop, this is getting pretty costly. Any way to fix these stupid little things? About to turn a loyal Mac owner (20+ years) into a bitter ex-Mac owner. FEH!

  • Many duplicates in iPhoto

    Hi, I have soooo many duplicates in iPhoto, as well as contacts again, maybe it is iCloud, but there must be someway to "find and delete duplicate photos" automatically!  Help!!  Overwhelmed. Thanks much, C

  • Can't finish syncing phone

    I can't finish sycing phone. Get this message "ITunes was unable to load data class information from synd services" Any ideas?