https://bz.apache.org/bugzilla/show_bug.cgi?id=61632

            Bug ID: 61632
           Summary: Improve search for tcnative-1.dll on Windows when
                    current directory is not bin/ (e.g. in Eclipse IDE,
                    separate catalina_base)
           Product: Tomcat 8
           Version: 8.5.23
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: knst.koli...@gmail.com
  Target Milestone: ----

In short:

- When running Tomcat on Windows, if current directory (when starting Tomcat)
is not $CATALINA_HOME\bin then the tcnative-1.dll is not found.

The default "java.library.path" on Windows includes "." current directory, but
does not include "$CATALINA_HOME\bin".


My main concern is running Tomcat as a Server in Eclipse IDE.

Steps to reproduce:
1. Download and unzip apache-tomcat-8.5.23-windows-<arch>.zip

2. Download, install and run Eclipse IDE for Java EE developers (I am using
Neon.3 aka 4.6.3)

3. Create a Tomcat 8.5 server in the IDE

https://wiki.apache.org/tomcat/FAQ/Developing#Q6

(Window > Show view > Other... > Server/Servers, add a new server)

4. Start it

Result:
[[[
Oct 18, 2017 4:17:59 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the java.library.path:
[...;;D:\eclipse_4_6;;.]
]]]

In Eclipse the default working directory when running a new server is the same
as default working directory of Eclipse IDE. In my case: "D:\eclipse_4_6"


Possible ways to resolve this:
a. Improve documentation. Add a note and a recipe to

https://tomcat.apache.org/tomcat-8.5-doc/apr.html#Windows

and

https://wiki.apache.org/tomcat/FAQ/Developing#Q6

b. Implement some way to search for tcnative-1.dll in ${catalina.home}/bin ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to