Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1054

Starting Derby with the NetServlet inside of tomcat does not allow binding to non localhost interface.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 10.3.1.4
    • Network Server
    • None
    • Gentoo & RedHat Linux.
      JDK 1.5.0.
      Tomcat 5.0.28
      Derby 10.1
      derby.war

    Description

      I like the idea of using the NetServlet with the derby.war file inside of tomcat to allow Tomcat to start and stop my derby database. This makes it quite easy for some of our less than technical users. However, the NetServlet.java file appears to have "localhost" hard coded as the startup host. This forced Derby to start listening ONLY on 127.0.0.1. I tried passing the -Dderby.drda.host parameter through the java startup of Tomcat, but it doesn't appear to have any affect. Ideally, the NetServlet.java class should allow for a "host" parameter to be passed in via the web.xml file. That way we can easily control the listening interface.

      Attachments

        1. derby_1054_v1.diff
          1 kB
          Bryan Pendleton
        2. derby_1054_v2.diff
          2 kB
          Bryan Pendleton
        3. derby_docs_v1.diff
          2 kB
          Bryan Pendleton
        4. cadminservlet98430.html
          8 kB
          Bryan Pendleton

        Activity

          People

            bryanpendleton Bryan Pendleton
            shaneapowell Shane Powell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: