Web app Connection.close()...how to prevent

Hello
I am somewhat new to this, but I am developing an web application that will be a help desk of sorts for clients to log on and create trouble tickets, plus many other features. I have completed the project and it works fine when I first start tomcat but an unexpected state keeps occurring and I can't seem to figure it out.
After a while (I say a while cause I'm not sure exactly how long, but I'd say +5 hours) my application no longer will work and in the tomcat log I get the following message.
Could not execute a query statement!Connection.close() has already been called. Invalid operation in this state.
java.sql.SQLException: Connection:close() has already been called.
at com.mysql.jdbc.Connection.getMutex(Connection.java:1906)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1115)
at brokers.RelationalBroker.query(RelationalBroker.java:171)
the RelationalBroker.java is
package brokers;
* Created on May 12, 2004
* Class: RelationalBroker
* Package: brokers
* On-Track, Ticket Tracking System
* @author
* @version
* This Class is used as the super class for all of the child brokers
* for the database. The main purpose if this class is to allow all the
* child classes to share the open connection to the database and execute
* queries and updates on the database. This class is part of the brokers
* package.
//imports
import java.sql.*;
public class RelationalBroker {
    //Instance Attributes
     * The attribute con represented by a Connection object is used to hold
     * the active connection to the database. This connection is shared with
     * all of the child brokers.
    private Connection con = null;
     * The attribute statement represented by a Statement object is used to
     * execute the query and update statements on the database by the child
     * brokers.
    private Statement statement = null;
     * The attribute results represented by a ResultSet is used to hold
     * the results of a query executed on the database.
    private ResultSet results = null;
    //Constructors
     * Default constructor used to create a RelationalBroker object.
    public RelationalBroker(){
    //     Getters
     * The Getter getCon is used to get the Connection object.
     * @return Connection con.
    public Connection getCon() {
        return con;
     * The Getter getResults is used to get the ResultSet results.
     * @return ResultSet results.
    public ResultSet getResults() {
        return results;
     * The Getter getStatement is used to get the Statement object.
     * @return Statement statement.
    public Statement getStatement() {
        return statement;
    //Methods
     * The method connect is used to connect to the database given a username
     * password, location of driver, and URL of the database. This method also
     * creates the Statement object to be used for queries ans updates on the database.
     * @param driver A String containing the location of the database driver.
     * @param URL A String containing the location of the database on a netowrk.
     * @param user A String containing the username of the database account.
     * @param pass A String containing the password of the database account.
    public void connect(String driver, String URL, String user, String pass){
        try{
            Class.forName(driver);
            con = DriverManager.getConnection(URL, user, pass);
            statement = con.createStatement();
        catch (ClassNotFoundException cExp){
            System.out.println("Cannot find class for driver");
        catch (SQLException sqle){
            System.out.println("Error opening table or creating statement!: " + sqle.getMessage());
            sqle.printStackTrace();
            System.exit(0);
     * The method closeConnection is used to close the active connection
     * to the database.
     * @return A boolean containing the status of the connection, True if closed
     * false if open.
    public boolean closeConnection(){
        boolean isClosed = false;
        try{
            con.close();
            isClosed = con.isClosed();
        catch(SQLException sqle){
            System.out.println("Error closing connection!" + sqle.getMessage());
        //finally{
        return isClosed;
     * The method rollBack is used to execute a rollback statement on
     * the database, to undo any changes since the last commit.
     * @return void
    public void rollBack(){
        try{
            con.rollback();
        catch(SQLException sqle){
            System.out.println("Could not execute a  Rollback statement!" + sqle.getMessage());
            sqle.printStackTrace();
     * The method commit is used to execute a commit statement on the
     * database, to make any changes final.
     * @return void
    public void commit(){
        try{
            statement.executeUpdate("commit");
        catch (SQLException sqle){
            System.out.println("Could not execute a commit statement!" + sqle.getMessage());
            sqle.printStackTrace();
     * The method query is used to exceute a query statement on the
     * database to get back some results.
     * @param query A String containing the query to be executed on the database
     * @return a ResultSet containing the results.
    public ResultSet query(String query){
        results = null;
        try{
            //System.out.println("query: "+query);
            results = statement.executeQuery(query);
        catch(SQLException sqle){
            System.out.println("Could not execute a query statement!" + sqle.getMessage());
            sqle.printStackTrace();
        //finally{
        return results;
     * The method update is used to persist or remove information
     * from the database.
     * @param update String containing the update string to be exceuted;
    public void update(String update){
        try{
            statement.executeUpdate(update);
        catch(SQLException sqle){
            System.out.println("Could not execute an update statement!" + sqle.getMessage());
            sqle.printStackTrace();
}//end classmy web.xml file to initialize with the database is as follows
<servlet>
          <servlet-name>Connection</servlet-name>
          <servlet-class>servlets.ConnectionServlet</servlet-class>
          <init-param>
               <param-name>url</param-name>
               <param-value>jdbc:mysql://localhost/TICKETTRACK</param-value>
          </init-param>
          <init-param>
               <param-name>driver</param-name>
               <param-value>com.mysql.jdbc.Driver</param-value>
          </init-param>
          <init-param>
               <param-name>user</param-name>
               <param-value>---</param-value>
          </init-param>
          <init-param>
               <param-name>password</param-name>
               <param-value>---</param-value>
          </init-param>
          <load-on-startup>1</load-on-startup>
     </servlet>
the ConnectionServlet.java is
package servlets;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
import java.sql.*;
import java.util.*;
import problemDomain.*;
import brokers.*;
* Title:
* Description:      This servlet is used to create a connection with .
* @author
* @version 1.0
public class ConnectionServlet  extends HttpServlet{
    private UserBroker uBroker;
    private TicketBroker tBroker;
    private CompanyBroker cBroker;
    public void init() throws ServletException{
        ServletConfig config = getServletConfig();
        String user = config.getInitParameter("user");
        String pass  = config.getInitParameter("password");
        String url  = config.getInitParameter("url");
        String driver = config.getInitParameter("driver");
        uBroker = UserBroker.getUserBroker();
        tBroker = TicketBroker.getTicketBroker();
        cBroker = CompanyBroker.getCompanyBroker();
        uBroker.connect(driver,url,user,pass);
        tBroker.connect(driver,url,user,pass);
        cBroker.connect(driver,url,user,pass);
/*  This method is used to close the connection.
*  @param none
*  @return none.
    public void destroy() {
        try{
        }catch(Exception ec){
            System.err.println(ec);
}I hope this is enough information for someone to help out. I'm out of ideas and my searches on the web didn't turn up much.
I was thinking it was something to do with ConnectionPooling but I have never done that, or maybe its something to do with how I set up Connections or maybe its my Tomcat config or something to do with Mysql. I'm not even calling a Connection.close(), maybe that is my problem.
Any help would be greatly appreciated, I'm not just looking for an answer I really would like to know why this occurs and how it can be prevented.
Thanks,

I really appreciate your reply and I can understand what you mean in theory(I think) but to actually implement it I'm having a little trouble.
So for this database pool, in my ConnectionServlet which gets initialized on startup, should I create a Collection of connections for each instance(make them local), and than create another method to retrieve one of these connection when needed and when finished release it back to the collection(close)? Or is there some built in mechanism that can easily do this?
I'm also reading up on that keep-alive you mentioned...it applies to the HTTP Connector element right? Is there a way to tell if this is an issue? I'm using Tomcat 5 and mySQL 3. I was talking with another guy here about using a connector to apache so it will work with the static pages and Tomcat do the servlet stuff, but I'm still trying to grasp all that.
I don't know if this matters but many instances/windows of the web app can be opened at one time with seemingly no problems.
Hope this made sense, like I said I'm pretty new to this so all I'm used to is simple configurations of web apps but hopefully I can advance further.
Thanks again,

Similar Messages

  • Module web app list tags - how to start a list to not include the first one?

    Hi
    I have two panels displaying a web app list and want them to follow on from each other, so panel one displays the first one {module_webapps,24027,l,,,,false,1,false,1} and then the second panel displays the 2nd and 3rd.
    How would I go about it?
    Thanks
    J-P

    Hello
    Hope the below helps
    http://prasantabarik.wordpress.com/2013/09/26/pass-querystring-value-from-sharepoint-page-to-app-partclient-web-part/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Web app Number field: How to format a number as currency in Business catalyst

    Not a coder. I have a Number field I have created in my web app, please how can I format this field to display the figures like this 999,999,999,999 (#120,000,000) random figure. Help will be appreciated.

    You can't. Number type field is there for storing integers. 999,999,999,999
    is not an integer. You need to use text string. Unless you're using the
    field inside the search form, in which case you need to use JavaScript to
    format the content of the field on the frontend.
    Cheers,
    Mario

  • Nuron: Contacts app auto-starts -- how to prevent...

    The T-Mobile version of my Nuron auto-starts the Contact app to do a sync with its cloud backup service.  I'm trying to find how to turn this off, with no success.
    Any ideas?
    Thanks,
    jerome

    Is this looking like to be a hardware problem?
    Can I take it to any apple store & get fixed?

  • Help.jsp web app war file (how to exclude resources)

    Hi, I am making a jsp/JSF application and now wanted to deploy it on a glassfish server. this is the first time i am deploying so am still learning it as i go.
    I wanted to clear out something before i go ahead.
    My application has tons of resuorce files (mainly huge Picture and videos) which are roughly the size of 1-2 GB. I do not want to add them to my WAR file. is it possible to exclude the resources from the war file?
    How difficult would it be for me to to then link the resources folder to the deployed application?
    I am running against time. i need to clear the above out to make a decision.

    thyscorpion wrote:
    My application has tons of resuorce files (mainly huge Picture and videos) which are roughly the size of 1-2 GB. I do not want to add them to my WAR file. is it possible to exclude the resources from the war file?Yes.
    How difficult would it be for me to to then link the resources folder to the deployed application?Create a servlet which access them by aforeknown file system path, reads the stream from the file and writes it to the response.
    You may find this servlet example useful: [http://balusc.blogspot.com/2007/04/imageservlet.html] (specific for images).

  • How to refer to JNDI PROVIDER_URL from within Tomcat Web app

    Can anyone provide a clear description on how to refer to a "Provider_URL" relative to the web application root for which a Java Class resides within? My issue is as follows. I've looked through the JNDI tutorial and the Tomcat JNDI How-To's and I'm still unable to find a solution.
    I'll elaborate:
    I have a "PROVIDER_URL" class variable defined as:
    private String PROVIDER_URL = "file:/C:/development/MyProject/MyWebApplication/WEB-INF/properties";I initialize my JNDI context within the class:
    Properties properties = new Properties();
    properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
    properties.setProperty(Context.PROVIDER_URL, PROVIDER_URL);
    context = new InitialContext(properties);
    cpds = (ConnectionPoolDataSource) context.lookup(baseName);
    ...The above example works fine. My question is given my web app's directory, how do I refer to "MyWebApplication/WEB-INF/properties" in a relative manner so that if I move my web application to a different server, the directory path does not affect my deployment and I dont have to hardcode the current path? Does this need to occur in the "server.xml" file? Can you provide a URL to an example?
    Your suggestions are appreciated...thanks.

    try to give
    http://localhost:8080
    or the app server based port address.

  • The test couldn't sign in to Outlook Web App due to an authentication failure. Extest_ account.

    Hi.
    I'm using SCOM 2012 R2 and have imported the Exchange server 2010 MP.
    I have runned the TestCasConnectivityUser.ps1 script and almost everything is okay except for the OWA test login.
    The OWA rule is working for some time until (I think) SCOM is doing a automatic password reset of the extest_ account. Then I get the OWA error below. The other test connectivity are working. Any suggestions.
    One or more of the Outlook Web App connectivity tests had warnings. Detailed information:
    Target: xxx|xxx
    Error: The test couldn't sign in to Outlook Web App due to an authentication failure.
    URL: https://xxx.com/OWA/
    Mailbox: xxxx
    User: extest_xxx
    Details:
    [22:50:08.936] : The TrustAnySSLCertificate flag was specified, so any certificate will be trusted.
    [22:50:08.936] : Sending the HTTP GET logon request without credentials for authentication type verification.
    [22:50:09.154] : The HTTP request succeeded with result code 200 (OK).
    [22:50:09.154] : The sign-in page is from ISA Server, not Outlook Web App.
    [22:50:09.154] : The server reported that it supports authentication method FBA.
    [22:50:09.154] : This virtual directory URL type is External or Unknown, so the authentication type won't be checked.
    [22:50:09.154] : Trying to sign in with method 'Fba'.
    [22:50:09.154] : Sending HTTP request for logon page 'https://xxx.com/CookieAuth.dll?Logon'.
    [22:50:09.154] : The HTTP request succeeded with result code 200 (OK).
    [22:50:09.373] : The test couldn't sign in to Outlook Web App due to an authentication failure.
    URL: https://xxx.com/OWA/
    Mailbox: xxx
    User: extest_xxx
    [22:50:09.373] : Test failed for URL 'https://xxx/OWA/'.
    Authentication Method: FBA
    Mailbox Server: xxx
    Client Access Server Name: xxx
    Scenario: Logon
    Scenario Description: Sign in to Outlook Web App and verify the response page.
    User Name: extest_xxx
    Performance Counter Name: Logon Latency
    Result: Skipped
    Site: xxx
    Latency: -00:00:00.0010000
    Secure Access: True
    ConnectionType: Plaintext
    Port: 0
    Latency (ms): -1
    Virtual Directory Name: owa (Default Web Site)
    URL: https://xxx.com/OWA/
    URL Type: External
    Error:
    The test couldn't sign in to Outlook Web App due to an authentication failure.
    URL: https://xxx.com/OWA/
    Mailbox: xxx
    User: extest_xxx
    Diagnostic command: "Test-OwaConnectivity -TestType:External -MonitoringContext:$true -TrustAnySSLCertificate:$true -LightMode:$true"
    EventSourceName: MSExchange Monitoring OWAConnectivity External
    Knowledge:
    http://go.microsoft.com/fwlink/?LinkID=67336&id=CB86B85A-AF81-43FC-9B07-3C6FC00D3D42
    Computer: xxx
    Impacted Entities (3):
    OWA Service - xxx, xxx - xxx, Exchange
    Knowledge:     View additional knowledge...
    External Knowledge Sources
    For more information, see the respective topic at the Microsoft Exchange Server TechCenter
    Thanks
    MHem

    Hi,
    Based on the error, it looks like an OWA authentication failure.
    Have you tried post this to LYNC forums?
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Web app with ms ajax occur error in win2003+iis6 Access manager

    my web app in win2003 + iis6 +Microsoft dot Net Framework 3.5
    all web pages using ajax scriptmanager object
    When the iis6 have Policy Agent (amiis6.dll include in IIS)
    Problems :
    Every page have error message
    <script type="text/javascript">
    //<![CDATA[
    Sys.Application.initialize(); <===== Error occur here
    //]]>
    </script>
    and all ajax component like timer_ticket can't work
    but when i remove amiis6.dll from IIS6
    There will be not any error , and web app work normally
    how can i recovery these problems
    [email protected]
    [email protected]

    in C:\Sun\Access_Manager\Agents\2.2\iis6\config\Identifier_1\AMAgent.properties
    Some attributes define below :
    com.sun.am.cookie.name = iPlanetDirectoryPro
    com.sun.am.policy.agents.config.notenforced_list = *.js *.gif *.jpg *.axd *.css *.asmx
    com.sun.am.policy.agents.config.notenforced_list.invert = false
    Did i lost define some others attributes ?
    It's ok for loggin on the web app server, but ajax component can't work normally...
    I am appreciate your help ........
    vincent

  • Change "Share" button email link default behavior of opening in Office Web App

    When staff use the "share" button to share documents. The URL link that get's emailed out defaults to opening in the browser Office Web App view. How can we change this so it defaults to opening in the client side application?
    The URL that is sent via the link is as such -  https:\\server\somelibrary\document.docx?web=1
    It's the "web=1" that is forcing the document to launch within the browser. If the URL us adjusted with the web=1 removed, it opens in the client side application as desired. How can we make this the default for any email links sent out via the
    "Share" button?
    Thanks,
    Blair

    you can customize the OOTB callout and add your custom check the below post
    http://www.learningsharepoint.com/2013/07/08/hideremovecustomize-callout-actions-in-sharepoint-2013/
    you can create your own share which sends url with no web=1 parameter
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • How to prevent race conditions in a web application?

    Consider an e-commerce site, where Alice and Bob are both editing the product listings. Alice is improving descriptions, while Bob is updating prices. They start editing the Acme Wonder Widget at the same time. Bob finishes first and saves the product with
    the new price. Alice takes a bit longer to update the description, and when she finishes, she saves the product with her new description. Unfortunately, she also overwrites the price with the old price, which was not intended.
    In my experience, these issues are extremely common in web apps. Some software (e.g. wiki software) does have protection against this - usually the second save fails with "the page was updated while you were editing". But most web sites do not
    have this protection.
    It's worth noting that the controller methods are thread-safe in themselves. Usually they use database transactions, which make them safe in the sense that if Alice and Bob try to save at the precise same moment, it won't cause corruption. The race condition
    arises from Alice or Bob having stale data in their browser.
    How can we prevent such race conditions? In particular, I'd like to know:
    What techniques can be used? e.g. tracking the time of last change. What are the pros and cons of each.
    What is a helpful user experience?
    What frameworks have this protection built in?

    Hi,
    >> Consider an e-commerce site, where Alice and Bob are both editing the product listings. Alice is improving descriptions, while Bob is updating
    prices. They start editing the Acme Wonder Widget at the same time. Bob finishes first and saves the product with the new price. Alice takes a bit longer to update the description, and when she finishes, she saves the product with her new description. Unfortunately,
    she also overwrites the price with the old price, which was not intended.
    This is a classic question that you can find in any developing exam :-)
    there are several options according the behavior that fit your needs, and several points that need to be taken into consideration.
    1.  Using locking in the application side, you can make sure that two people do not open the same product for editing. this is in most cases the best option.
    * I am not talking about
    thread-safe but the implementation is almost the same. The locking can be done using singleton class and have a static boolean element. Every time a user want to edit we check this value as first action. If the value is false then we lock the and
    change it to true -> do what ever we need -> change the value to false -> unlock.
    Behavior: First person that try to edit lock the product and the second get a message that this product is unders editing. In this case you do not open connection to database and your application prevent any problem.
    2. Using "read your writes", as mentioned
    Behavior: this mean that several people can open the same product for editing, and only when they try to send it to server they get a message telling them that they have waist their
    time and someone else already change the product information. At this point they have two option: (1) overwrite what the other person did, (2) start from the beginning.
    This is the way most WIKI websites work.
    3. Using real-time web functionality like SignalR, WebSocket, or any streaming for example. In this case you can send the person that work on the edit a message like "this product have already been edit" and stop give him the extra time to
    think what you want to do. You will need to use one of the above option maybe, but since the user get the information in real time he have time to chose.
    4. Using "Change before Write" or "read before edit": The idea is to have a column that point if the row is in use. the type of this column should be same as the user unique column type. Before the user start you check the value
    of this column. If it is 0 then you change it to the user unique value (for example user_id), If the value was not 0 then you know that someone else is editing the product. In this case the locking is managed in the database. make sure that you work with transactions
    while reading the value and changing it! you can change the default from share lock to X lock as well during this action, if you really want.
    There are several other option, if those do not fits your needs
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • How to remove repeated mails in exchange online outlook web app

    Hi,
    Any help me , how to remove repeated mails in exchange online outlook web app . As we are in process of migrating mailboxes to office 365 . We have migrated 5 mailboxes . But when i checked outlook web app after migration completed , i could see repeated
    mails . When i compared with on premise outlook and office 365 outlook web app  , there was lot of differences in read and unread mails . 
    Customer is expecting , same read and unread count should be replicated to office 365 owa.
    Please suggest me to prevent this problem . As this is very urgent to give solution to customer . 
    Big thanks in advance.
    Vinoth .

    If you've setup Outlook 2013 so it's connected to Office 365, and you've import the .pst file into Outlook, it will be showing as another "mailbox" within Outlook, but default called "Personal Folders" (unless you renamed it when it was created).
    You should find that you can simply copy the mail items / folders from Personal Folders into their new home in the Office 365 mailbox. Once that's done Outlook will synchronise the items with o365 which may obviously take a while to complete, but once it's
    finished those messages will be available online.

  • How do I show/refresh data from an Access Web App in an Excel spreadsheet saved in a Document Library on Sharepoint 2013 online

    I have an Access 2013 Web App in my Sharepoint 2013 online website. It contains a query to report on its data (several, actually, but let's keep it simple). I want to connect an Excel spreadsheet to the query, visualise the data in pivot tables/graphs/whatever,
    save the spreadsheet in a Document Library, and let other team site Sharepoint users open the spreadsheet (preferably in Excel online, but with Excel client if it has to be) and see/copy the data, refreshed with the latest information from the Access Web App.
    Simple, surely!
    The way I'm doing it at the moment is to create an ODC file to connect to the cloud-based Access 2013 database, save that ODC in a Data Connection Library in the SP site, and use the saved ODC file as data source in the Excel spreadsheet. This works and
    successfully keeps everything 'in the cloud' but I can't get it to refresh in Excel Online, and if I open the spreadsheet in Excel Client I have to enter the database password every time to refresh it. I don't really want to issue this password to everyone
    who might want to view the data. There must be a better way than this ODC method, I suspect.
    Googlings on this have led down various blind alleys - Excel Services, PowerPivots, Web Parts - but I'm stuck on which to follow through. Please, someone, point me to an article/book/website that explains how to do this step-by-step in simple language..
    thanks
    Jonathan

    I don't see any quick way of achieving it - at least there's no such functionality exists in SharePoint. All you can do, develop an event receiver that will update the fields in the list item once the excel file is added/updated. You can use OpenXml API
    to manipulate the excel file.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How to display all data on one page in web app

    Hello.
    So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
    <bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
    in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
    So how to display this data on one page if its impossible how to torn on pagination.

    So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
    In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
    Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice.

  • How to hide "View in Browser" and "Edit in Browser" from ECB injected by Office Web Apps Feature

    Hi,
    i am currently using custom_AddDocLibMenuItems to implement a custom ECB menu for my document library. I need to activate Office Web Apps. My custom_AddDocLibMenuItems has two items
    -> custom dialog
    -> open in office web apps
    After activating the Office Web Apps Feature at the SiteCollection Level, this Feature "injects" in my custom menu the following
    additional menu items:
    -> View in Browser
    -> Edit in Browser
    Its curious to see that, cause implementing the js function custom_AddDocLibMenuItems with
    return true should be the way to impolement a custom ECB menu without having other features/solutions injecting things in this menu!? Or did i misunderstood something here?
    My question is: How can i prevent this ...
    a) without deactivating the Office Web Apps Feature
    b) without modifying the core.js
    I hope someone can help!
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    May be this can help
    http://extreme-sharepoint.com/2011/10/29/hide-menu-ecb/http://pholpar.wordpress.com/2011/07/24/hiding-ecb-custom-actions-based-on-specific-list-properties-using-the-client-object-model/Or tryhttp://stackoverflow.com/questions/13795858/how-to-hide-view-in-browser-in-document-library-in-sharepoint-2010-using-javascr $(document).ready(function(){
    $('.ms-MenuUIPopupBody').live('blur', function() {
    var elm = $("div.ms-MenuUIULItem a:contains('View in Browser')");
    elm.remove();
    $("div.ms-MenuUIULItem a:contains('Edit in Browser')").remove();
    It is hiding menu only on focus or blur or mouseover
    I wants it to be hide on load AS soon as i Click on "V" option on right side of document it should hide View in Browser and Edit in browser
    When I click on V option ![I wants As soon as i Click on v option right side of test it should hide view in Browser and edit in browser][1]
    If this helped you resolve your issue, please mark it Answered

  • Office Web Apps Farm Connection Issue SharePoint 2013

    I have servers owa1 and owa2. Owa1 is acting as host and owa2 I joined to office web apps farm that’s is to owa1. 
    Both these are in office web apps farm and load balanced. Now my question is: From SharePoint Server when I connect , how should i connect while execute PowerShell command in SP server, in the syntax
     –servername parameter what should I specify do I need to specify the FQDN of the server name or host name (officewebapps.jdax.corp.local, this is host record created in DNS by mapping to VIP Of the load balancer (owa1 and owa2).
    Please help me.
    Thanks, Ram Ch

    You need to use URL officewebapps for parameter InternalURL
    ew-OfficeWebAppsFarm [-AllowCEIP <SwitchParameter>] [-AllowHttp <SwitchParameter>] [-AllowHttpSecureStoreConnections <SwitchParameter>] [-CacheLocation <String>] [-CacheSizeInGB <Nullable>] [-CertificateName <String>] [-ClipartEnabled <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-DocumentInfoCacheSize <Nullable>] [-EditingEnabled <SwitchParameter>] [-ExcelAllowExternalData <SwitchParameter>] [-ExcelConnectionLifetime <Nullable>] [-ExcelExternalDataCacheLifetime <Nullable>] [-ExcelPrivateBytesMax <Nullable>] [-ExcelRequestDurationMax <Nullable>] [-ExcelSessionTimeout <Nullable>] [-ExcelWarnOnDataRefresh <SwitchParameter>] [-ExcelWorkbookSizeMax <Nullable>] [-ExternalURL <String>] [-FarmOU <String>] [-Force <SwitchParameter>] [-InternalURL <String>] [-LogLocation <String>] [-LogRetentionInDays <Nullable>] [-LogVerbosity <String>] [-MaxMemoryCacheSizeInMB <Nullable>] [-MaxTranslationCharacterCount <Nullable>] [-OpenFromUncEnabled <SwitchParameter>] [-OpenFromUrlEnabled <SwitchParameter>] [-OpenFromUrlThrottlingEnabled <SwitchParameter>] [-PicturePasteDisabled <SwitchParameter>] [-Proxy <String>] [-RecycleActiveProcessCount <Nullable>] [-RemovePersonalInformationFromLogs <SwitchParameter>] [-RenderingLocalCacheLocation <String>] [-SSLOffloaded <SwitchParameter>] [-TranslationEnabled <SwitchParameter>] [-TranslationServiceAddress <String>] [-TranslationServiceAppId <String>] [-WhatIf [<SwitchParameter>]]
    Hope below article should help you in detail:
    http://blogs.technet.com/b/jenstr/archive/2013/03/18/creating-an-office-web-apps-server-2013-farm-with-2-machines.aspx

Maybe you are looking for

  • How Can I See How Many Total eMails are in My Inbox?

    Hi, My mail boxes on the left side of the window show how many emails have been unread, but I I want to see how many total are in each inbox. Is there a setting that I am missing to be able to see not only the unread, but also total emails?

  • SPI Converter Selection

    Hi All, We are developing an application in LabVIEW to test the DUT through the SPI interface. The DUT has the two SPI interface. One SPI interface is used for sending the request command from LabVIEW application (PC COM port or USB) to DUT (SPI BUS)

  • Migration Monitor - How Are You Using It?

    Hello! In this short discussion, you can help us to better understand how you are using the Migration Monitor – this better understanding would help the team responsible for this tool to adapt their automated tests accordingly and would also influenc

  • ALert Inbox & Alert Configuration Page in RWB

    Hi, When I click on the alert Inbox tab or run the transaction ALRTINBOX. I get an "error page cannot be displayed". I have applied all the SAP notes checked all the services in SICF for alert configuration on PI, checked the exchnage profile paramet

  • Macbook Pro Firmware update 1.5.1

    So every single time I have done a software update I have gotten this Macbook Pro Firmware update. I always have the firmware update checked and it never goes away. My current firmware boot version is: MBP31.0070.B02 the software update says this: Th