1

I use Tomcat 6.0.32 as standalone - APR load without problems. But when install the same in Eclipse and run - apr not found. What can be the reason? Thanks.

user710818
  • 23,228
  • 58
  • 149
  • 207
  • You may need to configure APR in eclipse as well. it depends on how you've setup tomcat server in eclipse. Why do you need it in eclipse? – home Aug 07 '11 at 17:37

4 Answers4

2

Yes, I agree with Tal. The shared library must be found by the tomcat process. On Linux, you can use the LD_LIBRARY_PATH environment variable for this.

Servers -> Click on you tomcat -> Overview -> Click on 'Open launch configuration' -> Tab 'Enviroment -> New...

BTW, if you want to use the tomcat NIO connector, you have to edit 'conf/server.xml' in the 'server path'. If you use 'Use workspace metadata' (Overview), your changes will get overridden from time to time.

aanno
  • 638
  • 8
  • 17
1

Add a VM argument in Run configuration for Tomcat server in eclipse.

-Djava.library.path="D:\java\apache-tomcat-7.0.50\bin"

Marat Buharov
  • 331
  • 5
  • 18
0

Because Eclipse change configuration of Tomcat

user710818
  • 23,228
  • 58
  • 149
  • 207
0

you must put the foldre in which the tcnative dll resides in the path and restart eclipse. usually it's in tomcat's bin folder.

see link : http://snipplr.com/view/50950/

Tal
  • 154
  • 1
  • 4