Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI + Tomcat?

 
Scott Lynch
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently running Tomcat 4.0 and have a servlet that uses JNI that's giving me some issues. If I use the /manager/reload command on my application, this particular servlet doesn't come up because it's unable to link to the JNI library that I have compiled. Is there something I need to tell Tomcat in order for it to find the library? I'm able to restart the server from the command line and it will pick up the library from my LD_LIBRARY_PATH. I've got a feeling that Tomcat is using the default library path when a reload is issued.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the manager app (in my limited experience with it) was a bit hinky.

I eventually stopped using it, as it didn't always seem to work as advertised. This was on a Solaris staging box at work, I haven't tried it too much with Win2000.
 
Scott Lynch
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Curwen:
the manager app (in my limited experience with it) was a bit hinky.

I eventually stopped using it, as it didn't always seem to work as advertised. This was on a Solaris staging box at work, I haven't tried it too much with Win2000.

I knew there was something I forgot to mention.. but yeah, this is on Solaris as well. It's not really such a big deal since any time I have to add a new servlet I have to bring it down and back up again (web.xml is not parsed when manager/reload is called), but it would be nice if there were a way to bring down a single application without taking down Tomcat.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is what /manager is *supposed* to do, and in fact, it brought things down for me alright. It was getting back up that was a problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic