Geronimo
  1. Geronimo
  2. GERONIMO-3836

Deployment fails with FNFE due to missing jline_.dll on Cygwin

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.1, 2.2
    • Fix Version/s: 2.0.3, 2.1.1, 2.2
    • Component/s: deployment
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      Meant to deploy a webapp from a directory outside Geronimo's installation dir. Deployer worked with -u and -p options although it spit FNFE exception, but it failed without them.

      jlaskowski@dev /cygdrive/c/apps/apache-wicket/src/jdk-1.5/wicket-examples/target
      $ c\:/geronimo/bin/deploy.sh -u system -p manager deploy wicket-examples.war
      Using GERONIMO_BASE: c:\geronimo
      Using GERONIMO_HOME: c:\geronimo
      Using GERONIMO_TMPDIR: c:\apps\apache-wicket\src\jdk-1.5\wicket-examples\target\var\temp
      Using JRE_HOME: c:\apps\java5\jre
      java.io.FileNotFoundException: c:\apps\apache-wicket\src\jdk-1.5\wicket-examples\target\var\temp\jline_.dll (The system cannot find the path specified)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
      at jline.WindowsTerminal.loadLibrary(WindowsTerminal.java:274)
      at jline.WindowsTerminal.initializeTerminal(WindowsTerminal.java:227)
      at jline.Terminal.setupTerminal(Terminal.java:77)
      at jline.Terminal.getTerminal(Terminal.java:28)
      at jline.ConsoleReader.<init>(ConsoleReader.java:167)
      at jline.ConsoleReader.<init>(ConsoleReader.java:162)
      at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:164)
      at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
      at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
      at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
      Deployed default/wicket-examples/1202695110250/war @
      /wicket-examples

      jlaskowski@dev /cygdrive/c/apps/apache-wicket/src/jdk-1.5/wicket-examples/target
      $ c\:/geronimo/bin/deploy.sh undeploy default/wicket-examples/1202695110250/war
      Using GERONIMO_BASE: c:\geronimo
      Using GERONIMO_HOME: c:\geronimo
      Using GERONIMO_TMPDIR: c:\apps\apache-wicket\src\jdk-1.5\wicket-examples\target\var\temp
      Using JRE_HOME: c:\apps\java5\jre
      java.io.FileNotFoundException: c:\apps\apache-wicket\src\jdk-1.5\wicket-examples\target\var\temp\jline_.dll (The system cannot find the path specified)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
      at jline.WindowsTerminal.loadLibrary(WindowsTerminal.java:274)
      at jline.WindowsTerminal.initializeTerminal(WindowsTerminal.java:227)
      at jline.Terminal.setupTerminal(Terminal.java:77)
      at jline.Terminal.getTerminal(Terminal.java:28)
      at jline.ConsoleReader.<init>(ConsoleReader.java:167)
      at jline.ConsoleReader.<init>(ConsoleReader.java:162)
      at org.apache.geronimo.deployment.cli.InputPrompt.<init>(InputPrompt.java:42)
      at org.apache.geronimo.deployment.cli.ServerConnection.doAuthPromptAndRetry(ServerConnection.java:230)
      at org.apache.geronimo.deployment.cli.ServerConnection.tryToConnect(ServerConnection.java:190)
      at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:94)
      at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:161)
      at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
      at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
      at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
      Username: system
      Password: Error: Login Failed

        Activity

        Hide
        Kevan Miller added a comment -

        Interesting.

        Does 'gsh' work ok under cygwin? Do you see a FNFE?

        Does 'gsh deploy/deploy wicket-examples.war' work ok?

        Show
        Kevan Miller added a comment - Interesting. Does 'gsh' work ok under cygwin? Do you see a FNFE? Does 'gsh deploy/deploy wicket-examples.war' work ok?
        Hide
        Jacek Laskowski added a comment -

        All's fine when I'm in GERONIMO_HOME directory and although the FNFE's thrown the application's deployed.

        Show
        Jacek Laskowski added a comment - All's fine when I'm in GERONIMO_HOME directory and although the FNFE's thrown the application's deployed.
        Hide
        Jason Dillon added a comment -

        gsh should work fine on cygwin...

        Show
        Jason Dillon added a comment - gsh should work fine on cygwin...
        Hide
        Jacek Laskowski added a comment -

        It does, but only when I'm in GERONIMO_HOME dir. I was outside and that's why the error came up.

        Show
        Jacek Laskowski added a comment - It does, but only when I'm in GERONIMO_HOME dir. I was outside and that's why the error came up.
        Hide
        Jason Dillon added a comment -

        kay, I'll fire up my virtual machine and play. Do you have the same problem in a non-cygwin-win32 environment?

        Show
        Jason Dillon added a comment - kay, I'll fire up my virtual machine and play. Do you have the same problem in a non-cygwin-win32 environment?
        Hide
        Jarek Gawor added a comment -

        I was able to replicate this problem with cygwin but not gsh. And the problem seemed to be related to the GERONIMO_TMPDIR which deploy.sh sets.

        I changed one line in deploy.sh from:

        GERONIMO_TMPDIR=var/temp

        to:

        GERONIMO_TMPDIR=$GERONIMO_HOMEvar/temp

        deploy.sh worked fine in cygwin.

        But I'm not really sure why this is a problem now.

        Show
        Jarek Gawor added a comment - I was able to replicate this problem with cygwin but not gsh. And the problem seemed to be related to the GERONIMO_TMPDIR which deploy.sh sets. I changed one line in deploy.sh from: GERONIMO_TMPDIR=var/temp to: GERONIMO_TMPDIR=$GERONIMO_HOMEvar/temp deploy.sh worked fine in cygwin. But I'm not really sure why this is a problem now.
        Hide
        Jarek Gawor added a comment -

        Committed fixes to trunk (Revision: 631245), branches/2.1 (Revision: 631246), and branches/2.0 (Revision: 631267).

        The GERONIMO_TMPDIR variable was being resolved to an absolute path under cygwin but instead should have been passed as a relative path.

        Show
        Jarek Gawor added a comment - Committed fixes to trunk (Revision: 631245), branches/2.1 (Revision: 631246), and branches/2.0 (Revision: 631267). The GERONIMO_TMPDIR variable was being resolved to an absolute path under cygwin but instead should have been passed as a relative path.

          People

          • Assignee:
            Jarek Gawor
            Reporter:
            Jacek Laskowski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development