JNI + Tomcat

2005-06-16 Thread Kerekes András
Hi, I am new in JNI area. I would like to call a library written in C from my web application. Unfortunately, it does not work well, but when I call it from a standard Java application with same parameters it works well. In addition, I attempted to put some logging information to a file with

Simple JNI call fails

2005-02-24 Thread vaheesan selvarajah
Hi folks, I am a newbie ... I have been trying to do a simple .jsp page that makes use of a JNI call to a simple HelloWorld .so lib. Here is what i did.. 1. Made a class called HelloWorld.java inside a package "cal" with a native method displayHello() 2. compiled it with javac -

RE: JNI loading problem

2005-02-24 Thread Benson Margulies
:03 PM To: tomcat-user@jakarta.apache.org Subject: JNI loading problem Hi folks, I am trying to load a simple JNI based .so lib file with Tomcat 5.5.4.(on linux) I am trying to load the .so file within the JSP page. I am not sure if this is allowed. I have tried all the following methods.. 1

JNI loading problem

2005-02-23 Thread vaheesan selvarajah
Hi folks, I am trying to load a simple JNI based .so lib file with Tomcat 5.5.4.(on linux) I am trying to load the .so file within the JSP page. I am not sure if this is allowed. I have tried all the following methods.. 1. putting the .so file in JAVA_HOME//jre/lib/i386/ 2. setting the

loading JNI .so file with tomcat 5.5.4

2005-02-22 Thread vaheesan selvarajah
Hi folks, Correct me if I sound stupid here :) I am trying to load a simple JNI based .so lib file with Tomcat 5.5.4.(on linux) I am trying to load the .so file within the JSP page. I am not sure if this is allowed. I have tried all the following methods.. 1. putting the .so file in JAVA_HOME

loading JNI .so file with tomcat 5.5.4

2005-02-21 Thread vaheesan selvarajah
Hi folks, Correct me if I sound stupid here :) I am trying to load a simple JNI based .so lib file with Tomcat 5.5.4.(on linux) I am trying to load the .so file within the JSP page. I am not sure if this is allowed. I have tried all the following methods.. 1. putting the .so file in JAVA_HOME

tomcat/jboss 3.2.3 jni

2005-01-25 Thread Farkas Lajos
Hi all, I use tomcat with jboss 3.2.3, and i try to load a jni extension, but it is not working. When i start jboss, i set the java library path, and i put my extension there, but, it can't load the library (i think, because, when i try to access something from that , i get unsatisfied

Problems running JNI code inside Tomcat 5.0.28

2005-01-21 Thread Joe Krause
Hey Folks, We have a C++ SDK that we HAVE to integrate using JNI. We are able to create a console Java app that works perfectly (and beautifully) using JNI and our C++ SDK. When we wrap this up in servlets and attempt to run it within Tomcat 5.0.28, we get an UnsatisfiedLinkError

mod_jk jni worker - can i have more than one server process?

2005-01-14 Thread Fox,Tim
tiple child server processes created. Does that mean there will be multiple jvms and hence multiple tomcat instances instantiated? Or is the jvm somehow "shared" across processes? Is it a requirement of using the jni worker that the number of child server processes is limited to 1 in th

JNI + Tomcat 5.0.28 + Solaris 2.8 -> splat

2005-01-04 Thread Benson Margulies
I have a heap of JNI code, written in C++. It works fine on Windows, inside and outside Tomcat, when compiled with VC++ 7.1. The underlying C++ is clean in Purify, or as clean as any code that uses STL ever gets. On Solaris 2.8, compiled with Forte6u2 (5.3), current patches, + JDK 1.4.2_05, it

Re: JNI, tomcat & thread safety

2004-11-19 Thread David Boyer
Tomcat won't do anything to manage this. I think this is more a generic JNI question. Multiple threads can access your native library concurrently. What it's going to boil down to is whether or not you native library is thread-safe, and whether you want to impose some degree

RE: JNI, tomcat & thread safety

2004-11-19 Thread Shapira, Yoav
Hi, No. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Dan Barron [mailto:[EMAIL PROTECTED] >Sent: Friday, November 19, 2004 11:59 AM >To: [EMAIL PROTECTED] >Subject: JNI, tomcat & thread safety > >Hello, > >I'm loading a native

JNI, tomcat & thread safety

2004-11-19 Thread Dan Barron
Hello, I'm loading a native library within tomcat - the library is loaded with the System.loadLibrary() via a static object so that it is only loaded once - will tomcat manage any threading issues for calls to the library from the JNI wrapper class? Thanks

How to tell if JNI Library Loaded at Tomcat Startup?

2004-11-10 Thread Dan Barron
Hello, How can you determine in Tomcat if a JNI library has been loaded as a shared resource for web applications? I have a Wrapper class and the library both living /shared/lib. Thanks. Dan - To unsubscribe, e-mail: [EMAIL

JNI Error with Tomcat

2004-11-09 Thread Dan Barron
Hello, I am having trouble loading a native library for use within Tomcat web applications. I read the wiki entry and found the latest JNI posts - but I still don't quite get it and still have an error. I'm hoping someone out there has been through this and has some sugges

Starting Tomcat as an Apache inprocess with Jni

2004-11-07 Thread O . Strobel
Hi, I have problems starting the Tomcat as an inprocess of Apache via Jni. I tried that with the examples of the Jakarta Hompage. Running Apache and Tomcat seperatly and connect both with a Socket-Connection is no problem and works fine. That tells me that the mod_jk2 is well working. My

RE: tomcat 5.0.29 service start problem (JNI)

2004-10-14 Thread shyam
Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) > From: shyam [mailto:[EMAIL PROTECTED] > Subject: RE: tomcat 5.0.29 service start problem (JNI) > > I have enough memory . I have set it up to use 1500mb where as I have > enough ram of 2000. This has nothing to do

RE: tomcat 5.0.29 service start problem (JNI)

2004-10-14 Thread Caldarale, Charles R
> From: shyam [mailto:[EMAIL PROTECTED] > Subject: RE: tomcat 5.0.29 service start problem (JNI) > > I have enough memory . I have set it up to use 1500mb where as I have > enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent

RE: tomcat 5.0.29 service start problem (JNI)

2004-10-14 Thread shyam
problem Thanks shyam -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:00 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) Hi, I bet your -Xmx parameter is too big for your physical hardware. Yoav Shapira http

RE: tomcat 5.0.29 service start problem (JNI)

2004-10-14 Thread Shapira, Yoav
Hi, I bet your -Xmx parameter is too big for your physical hardware. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: shyam [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 14, 2004 9:41 AM >To: 'Tomcat Users List' >Subject: tomcat 5.0.29 s

tomcat 5.0.29 service start problem (JNI)

2004-10-14 Thread shyam
Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29

Jni Error on Startup [error] workerEnv.initChannel() init failed for channel.jni:jni

2004-09-24 Thread Curles, Michael L
] channel=channel.socket:192.62.22.154:8009 # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a

tomcat 5 and JNI problem

2004-09-06 Thread Alexio Cassani
Hi all, I've some trouble running a web application that use JNI to access a dll. The os is windows 2000/XP and I'm running Tomcat 5.0.26 (tried also with 27 and 28). I've done the following step: - put my dll in the %ApacheInstallDir%/common/lib - started Tomcat service - open th

JK2 possible JNI problem? nativeDispatch exceptions

2004-07-20 Thread Joshua Szmajda
diminish the number of exceptions by changing the shm file from anon to a real file on the system. I'm thinking this is slowing down the JNI somehow? (leading me back to the collisions theory). Any help is greatly appreciated! Otherwise I'm left with trying to read the code an

JNI & Tomcat

2004-07-16 Thread Mike Read
Hi I'm trying to call a JNI package from a Tomcat servlet. I thought I had this working but I got in a mess the last couple of days and reinstalled my webapp and it's not behaving as before but I can't find what's different (I must have forgotten something but). The packa

Re: UnsatisfiedLinkError - JNI

2004-07-07 Thread Josef Henryson
the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a native library libBar.dylib. I'm running Tomcat 5.0.25 on Mac OS X 10.3.4 Here's the exception: UnsatisfiedLinkError: /Users/henryson/Library/Java/Extensions/libFoo.jnilib: java.lang.Unsatisfi

RE: UnsatisfiedLinkError - JNI

2004-07-07 Thread CAGALLOM
no email please -Mensaje original- De: Tim Penhey [mailto:[EMAIL PROTECTED] Enviado el: Miércoles 7 de Julio de 2004 14:33 Para: Tomcat Users List Asunto: Re: UnsatisfiedLinkError - JNI Josef Henryson wrote: > Hi! > > I get an UnsatisfiedLinkError when trying to System.loadLib

Re: UnsatisfiedLinkError - JNI

2004-07-07 Thread Tim Penhey
Josef Henryson wrote: Hi! I get an UnsatisfiedLinkError when trying to System.loadLibrary("foo") from a class instantiated within a Servlet. The library libFoo.jnilib is in a folder within java.library.path and the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. Besi

UnsatisfiedLinkError - JNI

2004-07-07 Thread Josef Henryson
Hi! I get an UnsatisfiedLinkError when trying to System.loadLibrary("foo") from a class instantiated within a Servlet. The library libFoo.jnilib is in a folder within java.library.path and the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is

JK2 / Apache / JNI Inprocess

2004-05-24 Thread Dale, Matt
Title: JK2 / Apache / JNI Inprocess Apologies for the resend but I cant find this in the archive and i never received it back Hi, After being assured by someone on this list that JNI worked on the latest tomcat and JK2 versions I thought I'd give it another shot. As far as I can

JK2 / Apache / JNI Inprocess

2004-05-24 Thread Dale, Matt
Title: JK2 / Apache / JNI Inprocess Hi, After being assured by someone on this list that JNI worked on the latest tomcat and JK2 versions I thought I'd give it another shot. As far as I can tell there is no way its going to apart from possibly on windows. Can anyone te

RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-23 Thread tomcatuser
I was wondering if you have figured all of this out. I am running into the same problem. I am trying to figure out how to get around the gdbm library problem. ---Original Message--- > From: Yang Xiao <[EMAIL PROTECTED]> > Subject: RE: JK2 JNI link bug [Was: Re:

Re: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Nikola Milutinovic
Yang Xiao wrote: Hem, unfortunately, I tried that, which worked, but then tomcat complains about another XML library not being linked. I'm building Apache from scratch now... please help. Well, you can always try to get it all. Re-building Apache from scratch might be a scarry task. You'll need a

RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Yang Xiao
PM To: Tomcat Users List Subject: Re: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5] Yang Xiao wrote: >Hi, >Thanks for the help >I went back and modified the Makefile with all 3 libraries as you have said, >recompiled and now I'm getting a different error: >INFO: APR

Re: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Nikola Milutinovic
Yang Xiao wrote: Hi, Thanks for the help I went back and modified the Makefile with all 3 libraries as you have said, recompiled and now I'm getting a different error: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/apache/mo

RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Yang Xiao
-Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 1:49 AM To: Tomcat Users List Subject: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5] Yang Xiao wrote: > Hi list, > I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to w

JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-12 Thread Nikola Milutinovic
Yang Xiao wrote: Hi list, I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so in /usr/local/apache/modules But when I start the Tomcat server, I'm getting this error INFO: APR not loaded, disabling jni

Unable to connect Apache 2.0.48 to tomcat using JK2 Connector an d JNI.

2004-04-02 Thread Chippada , Sreeni
Hi, I am trying to connect tomcat 5.0 and Apache 2.0.48 through JK2 connector using JNI on Windows 2000. The channel.jni:jni init is failing. I greatly appreciate any help with this. Thanks, Sreeni Following are the errors from the log file mod_jk2.log

Tomcat 4.1.x/isapi-redirect 1.2.5/jni

2004-04-01 Thread Ingo Rockel
Hi! Does someone have a working Configuration with Windows/IIS and where the Tomcat 4.1.x is started via jni_connect.dll? I have this config running with Tomcat 3.2.1 and got it running with jk2 and tomcat 4.1.27, but with jk2 I have strange problems concerning put requests (stream gets mixed

RE: Error while trying to integrate apache and tomcat with jni

2004-03-23 Thread David Short
integrate apache and tomcat with jni Thank you for telling me this.But can i ask why? Yes,I have already have apache2.0.40 and tomcat5.19 running together using ajp13. >From: "David Short" <[EMAIL PROTECTED]> >Reply-To: <[EMAIL PROTECTED]> >To: "'Tomcat U

RE: Error while trying to integrate apache and tomcat with jni

2004-03-23 Thread Zheng Neil
gt; Subject: RE: Error while trying to integrate apache and tomcat with jni Date: Tue, 23 Mar 2004 20:06:51 -0800 I don't believe you can run Tomcat inprocess with Apache on Unix. You need to use sockets. -Original Message- From: Zheng Neil [mailto:[EMAIL PROTECTED] Sent: Tuesday, March

RE: Error while trying to integrate apache and tomcat with jni

2004-03-23 Thread David Short
I don't believe you can run Tomcat inprocess with Apache on Unix. You need to use sockets. -Original Message- From: Zheng Neil [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 7:58 PM To: [EMAIL PROTECTED] Subject: Error while trying to integrate apache and tomcat with jni

Error while trying to integrate apache and tomcat with jni

2004-03-23 Thread Zheng Neil
Hi, I tried hard these days to make tomcat and apache work together with jni but only to find this in the [apache_home_dir]/logs/error_log * error_log * [Tue Mar 23 08:37:46 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.2 configure d -- resuming normal operations [Tue Mar 23 08

Help,error while trying to integrate apache and tomcat with jni

2004-03-23 Thread Zheng Neil
I tried hard these days to make tomcat and apache work together with jni but only to find these in the [apache_home_dir]/logs/error_log * error_log * [Tue Mar 23 08:37:46 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.2 configure d -- resuming normal operations [Tue Mar 23 08:37

RE: J2K in process JNI with Tomcat 5.0.19 and apache 2

2004-03-20 Thread David Short
Did you ever get this working? -Original Message- From: Tim Stewart [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 11:42 PM To: Tomcat Users List Subject: Re: J2K in process JNI with Tomcat 5.0.19 and apache 2 Ok it doesn't like my properties files jk2.properties ## THIS

FW: Regarding Tomcat and JNI based webapps...

2004-03-19 Thread Marepalli, Somesh
Hi: I am deploying Axis based web services in Tomcat (4.0.6). My web app .jar files need to be dynamically updated... However, since some of the helper .jar files use Native (JNI) dlls, I am unable to do this...I get the following error when Axis tries to re-load the web app

Re: J2K in process JNI with Tomcat 5.0.19 and apache 2

2004-03-18 Thread Tim Stewart
elJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working shm.file=c:/Apache2/logs/jk2.shm #size=10485760 # In order to enable jni use any channelJni dire

Re: J2K in process JNI with Tomcat 5.0.19 and apache 2

2004-03-18 Thread Tim Stewart
Here are my props.     - Original Message - From: Tim Stewart To: Tomcat Users List Sent: Friday, March 19, 2004 12:37 AM Subject: J2K in process JNI with Tomcat 5.0.19 and apache 2 I got the ajp13 to work great with standalone tomcat.   I tried to

JNI?

2004-03-08 Thread Marc Hughes
? Or even better, anyone know of any documentation/articles about using JNI with tomcat? (I read in digest mode, please reply-to-all, thanks) Thanks, -Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: jk2 jni connector with iis - has anyone got this working?

2004-02-23 Thread Tariq Chalabi
# Default Native Logger (apache2 or win32 ) > # can be overriden to a file logger, useful > # when tracing win32 related issues > #logger=logger.file:0 > [channel.socket:localhost:8009] > info=Ajp13 forwarding over socket > debug=0 > tomcatId=localhost:8009 > > [channel.jni

Re: jk2 jni connector with iis - has anyone got this working?

2004-02-22 Thread George Hester
ming=1 > debug=0 > # Default Native Logger (apache2 or win32 ) > # can be overriden to a file logger, useful > # when tracing win32 related issues > #logger=logger.file:0 > [channel.socket:localhost:8009] > info=Ajp13 forwarding over socket > debug=0 > tomcatId=localho

jk2 jni connector with iis - has anyone got this working?

2004-02-22 Thread Tariq Chalabi
useful # when tracing win32 related issues #logger=logger.file:0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informat

jk jni isapi connector problems

2004-02-20 Thread Tariq Chalabi
ctor seems better documented than the jk2). My workers.properties looks like: workers.apache_log=D:\Program Files\Apache Group\Tomcat 4.1\logs\isapi.log workers.tomcat_home=D:\Program Files\Apache Group\Tomcat 4.1 workers.java_home=C:\j2sdk1.4.1_02 worker.list=defWorker worker.defWorker.type=

Tomcat running as NT service can't locate JNI DLLs

2004-02-14 Thread Mark
I have a web app that utilizes various 3rd party/in-house JNI DLLs, but System.loadLibrary() fails to locate them only when Tomcat 4.1 is run as a service under Win2k. Two odd surrounding issues: (a) Tomcat is run from Drive D:, the DLLs are located drive D:\myDLLs and the system PATH has D

Problem using JNI(loadLibrary), Servlet and Tomcat

2004-02-11 Thread Flávio Castro
I'm having a problem using servlets and maybe some of you can help me to figure out what's going on. Here's the deal: I have a servlet that loads a C library and uses some of these C native methods. In addition, I have some JSPs that invoke the routines contained in this servlet. My C applicati

RE: TOMCAT and JNI problem...

2004-01-26 Thread "Götz, Bernd"
Hi Pablo we also use JNI in our web apps. it works (except the reloading issue, but that's another story). we use the ./bin/setenv.sh script for our settings, therefore: ... # must contain the ACE Agent JNI library "libaceagent.so": LD_LIBRARY_PATH=/home/bgo/deploy/sr-hl

Re: TOMCAT and JNI problem...

2004-01-26 Thread J.Pablo M
Did you try to startup Tomcat with the same script, without using your library, in order to check if the script works right? YES I start up the tomcat with the same script to test other applications that doesn't work with JNI and everything goes fine. Pablo Vidal From: Giu

Re: TOMCAT and JNI problem...

2004-01-26 Thread Giuseppe Briotti
> Then I made a script to start the tomcat with the LD_LIBRARY_PATH > environment variable set up: > - > #!/bin/sh > export JAVA_HOME=/opt/java > export CATALINA_HOME=/usr/local/jakarta-tomcat > export PATH=${JAVA_HOME}/bin:${PATH} > expor

TOMCAT and JNI problem...

2004-01-26 Thread J.Pablo M
Hello. I'm running a JSP based Web aplicacion using Tomcat wich uses a Java Class that loads a native library (JNI). The files are created as follows: > javac extractor/HTDInterface.java > javah extractor.HTDInterface then I compile my c++ source code with the

JNI

2004-01-14 Thread April (E-mail)
Do someone know if it is possible to use JNI with IIS? April - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: JNI & loadLibrary

2004-01-13 Thread Subir Sengupta
Put the class in common/lib -Original Message- From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 9:38 AM To: Tomcat Users List Subject: JNI & loadLibrary Hi Tomcat 5.0.16 release-note says : "... the application must also ensure that th

Using JNI with Tomcat 4.1.27 and IIS 5

2004-01-13 Thread Yuval Zantkeren
Hi all, Can someone explain me how do I configure the tomcat to work with JNI and IIS 5? Regards, Yuval “This email message and any attachments hereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If you are not

JNI & loadLibrary

2004-01-12 Thread Maxime Colas des Francs
Hi Tomcat 5.0.16 release-note says : "... the application must also ensure that the library is not loaded more than once. If the above code were placed in a class inside the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the application were reloaded, the loadLibrary() call w

Using JNI with Tomcat 4.1.27 and IIS 5

2004-01-11 Thread Yuval Zantkeren
Hi all, Can someone explain me how do I configure the tomcat to work with JNI and IIS 5? Regards, Yuval Zantkeren Domain The Net Technologies Ltd. 81 Sokolov St. Ramat-Hasharon Israel 47238 Tel: 972-3-7600500 Fax: 972-3-7600505 www.DomainTheNet.com “This email message and any attachments

JNI call & Tomcat 5.0.16

2004-01-09 Thread Maxime Colas des Francs
Hi I use Tomcat 5.0.16 and attempt to call natives methods from one of my DLL by JNI (works fine outside tomcat). I follow these steps : 1) I put -Djava.library.path=/path/to/dll in CATALINA_OPTS environement variable. I use System.loadLibrary("mylib") in a static context of a

RE: Problems with Tomcat and JNI

2004-01-09 Thread Porter Patrick E (Eden) NPRI
e two different web-applications that use JNI to access a C device driver and a VB DLL for some server software on one of our cabinets. In general, we would get something along the lines of an unsatisfied link error on the line where you first make a call to the native function (not w

Re: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Nikola Milutinovic
Yiannis Mavroukakis wrote: Yep I see what you mean know (fog of stupidity lifts). Ok so to iterate, the problem is that since linux has multiple workers, these workers will want to attach themselves to their own tomcat instance. How about this then..instead of launching several tomcat instances (

RE: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Mladen Turk
> -Original Message- > From: Yiannis Mavroukakis > > Yep I see what you mean know (fog of stupidity lifts). > Ok so to iterate, the problem is that since linux has > multiple workers, these workers will want to attach > themselves to their own tomcat instance. > How about this then..

Re: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Nikola Milutinovic
Mladen Turk wrote: Look at the thread. Unfortunately the JNI isn't of much use on Linux, or to be more specific, on any multi child mpm. If you manage to maintain the single worker process (like winnt-mpm does), then you can use the JNI. The reason for that is quite simple; You cannot hav

RE: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Yiannis Mavroukakis
or the documentation. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 08 January 2004 17:54 To: 'Tomcat Users List' Subject: RE: mod_jk2 JNI question for the brave :) > From: Yiannis Mavroukakis > > I thought I had a rough understanding but it turns out

Re: JNI and TOMCAT problem

2004-01-09 Thread Dirk Griesbach
08, 2004 10:57 PM Subject: JNI and TOMCAT problem > Hi. > > I'm runnin a JSP based Web aplicacion wich uses a Java Class that loads a > native library (JNI). This Class is placed in a jar file at /common/lib/ > The .so file is placed inside the jdk at /JAVA_HOME/jre/lib/

RE: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Mladen Turk
> From: Nikola Milutinovic > Sent: 9. siječanj 2004 10:18 > To: Tomcat Users List > Subject: Re: mod_jk2 JNI question for the brave :) > > >> > >>What is the real benefit of running TC from within Apache via JNI? > > > > It should be a faster, caus

Re: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Nikola Milutinovic
Mladen Turk wrote: That was the thing that I considered, but again if you have multiple workers, what would be the benefit of having that much Tomcat instances running. What is the real benefit of running TC from within Apache via JNI? It should be a faster, cause there is no socket channel

RE: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Mladen Turk
> From: Nikola Milutinovic > Sent: 9. siječanj 2004 7:31 > To: Tomcat Users List > Subject: Re: mod_jk2 JNI question for the brave :) > > Mladen Turk wrote: > > >>From: Yiannis Mavroukakis > >>Sent: 8. siječanj 2004 16:34 > >> > >>Would

Re: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Nikola Milutinovic
Mladen Turk wrote: From: Yiannis Mavroukakis Sent: 8. siječanj 2004 16:34 Would it not be possible to bind JNI under a single worker and then isolate that worker from the rest of the pool (possibly provide the ability for workers to carry some sort of identification bit with regards to who can

JNI and TOMCAT problem

2004-01-08 Thread J.Pablo M
Hi. I'm runnin a JSP based Web aplicacion wich uses a Java Class that loads a native library (JNI). This Class is placed in a jar file at /common/lib/ The .so file is placed inside the jdk at /JAVA_HOME/jre/lib/i386/ I sucesfully build and test a standalone application for the use o

Problems with Tomcat and JNI

2004-01-08 Thread J.Pablo M
Hi. I'm runnin a Web aplicacion wich uses a Java Class that loads a native library (JNI). This Class is placed in a jar file at /common/lib/ The .so file is placed inside the jdk at /JAVA_HOME/jre/lib/i386/ I sucesfully build and test an standalone application to the use of the JNI.

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Mladen Turk
> From: Yiannis Mavroukakis > > I thought I had a rough understanding but it turns out that I > dont %-) Do you mean that JNI will work only under one worker > containing a single child process? > Are you using the Tomcat as in or out of the process? In process to

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis
standing but it turns out that I dont %-) Do you mean that JNI will work only under one worker containing a single child process? >The JK2 code (from CVS) will in that case refuse to load the inprocess jvm, >and the code snippet in you exhibit is meant to be used for that. >At least the cod

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Mark Eggers
OK . . . when I take a break from job searching I'll look at that and the missing -laprutil-0 in server/apache2/Makefile It's probably missing in the appropriate mod_jk Makefile as well. /mde/ just my two cents . . . . > Yes. > Few months ago we decided to use the APR as > mandatory for JK2. >

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Mladen Turk
> From: Mark Eggers > Sent: 8. siječanj 2004 18:09 > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: RE: mod_jk2 JNI question for the brave :) > > I've tried compiling the jk2 code in > jakarta-tomcat-connectors from CVS and get the following > err

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Mark Eggers
I've tried compiling the jk2 code in jakarta-tomcat-connectors from CVS and get the following error for this file: common/jk_channel_socket.c common/jk_channel_socket.c:74:2: #error "jk_channel_socket is deprecated" Any thoughts? I've gotten both IP and UNIX sockets to work on Fedora Core 1 usi

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Mladen Turk
> From: Yiannis Mavroukakis > Sent: 8. siječanj 2004 16:34 > > Would it not be possible to bind JNI under a single worker > and then isolate that worker from the rest of the pool > (possibly provide the ability for workers to carry some sort > of identification bit wi

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis
Hi Mladen, thank you for the reply that helps me gain some understanding in the issue. Would it not be possible to bind JNI under a single worker and then isolate that worker from the rest of the pool (possibly provide the ability for workers to carry some sort of identification bit with regards

RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Mladen Turk
> From: Yiannis Mavroukakis > Subject: mod_jk2 JNI question for the brave :) > > Hi everyone, > > Bringing the woes of jk2+JNI again here with the dreaded > "Can't find child xx in scoreboard", since I haven't found a > satisfactory answer by

mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis
Hi everyone, Bringing the woes of jk2+JNI again here with the dreaded "Can't find child xx in scoreboard", since I haven't found a satisfactory answer by anyone. Using TC5 with Apache 2.0.x under Linux, I can get jk2 to work using sockets. However the fun begins when I try to

Re: tomcat jni configuration...

2003-12-04 Thread Tony
No. When it starts, I see the following error: . org.apache.jk.server.JkMain newHandler SEVERE: No class name for channelJni channelJni org.apache.jk.server.JkMain start INFO: APR not loaded, disabling jni componentes: java.io.IOException: java.lang.UnsatisfiedLinkError: no jnjni in

RE: tomcat jni configuration...

2003-12-03 Thread Wade Chandler
Does your tomcat installation run fine? i.e. in a standalone mode? Wade -Original Message- From: Tony [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 12:20 AM To: [EMAIL PROTECTED] Subject: tomcat jni configuration... hi, all i have a problem trying to configurate my

tomcat jni configuration...

2003-12-01 Thread Tony
hi, all i have a problem trying to configurate my apache 2.x with Tomcat 4 (jni using jk2)... everything looks fine when i initiate apache, but when i try to access the examples apps (localhost/examples) i got the following error on error.log (apache directory): Tue Dec 02 03:08:56 2003

Re: Where to I put .so for JNI access?

2003-11-10 Thread Jim Lynch
Ah, in the java tree! I'm too hung up on Tomcat and overlooked the obvious. Thanks, Jim. Phillip Qin wrote: $JAVA_HOME/jre/lib/i386 -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:27 AM To: Tomcat Users List Subject: Where to I put .so fo

Re: Where to I put .so for JNI access?

2003-11-10 Thread Dirk Griesbach
TED]> To: Tomcat Users List <[EMAIL PROTECTED]> Sent: Monday, November 10, 2003 4:26 PM Subject: Where to I put .so for JNI access? > I've searched google for jni and tomcat, but I can't figure out where to > put a shared lib so a Tomcat application will find it. All the peo

RE: Where to I put .so for JNI access?

2003-11-10 Thread Phillip Qin
$JAVA_HOME/jre/lib/i386 -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:27 AM To: Tomcat Users List Subject: Where to I put .so for JNI access? I've searched google for jni and tomcat, but I can't figure out where to put a shared lib s

Where to I put .so for JNI access?

2003-11-10 Thread Jim Lynch
I've searched google for jni and tomcat, but I can't figure out where to put a shared lib so a Tomcat application will find it. All the people looking for help have already figured this out, apparently. Anyway, running Linux on Intel, Tomcat 4.1.24. Where does my .so file

JNI and Tomcat reload issue

2003-10-06 Thread Marcel Stor
Hi all, After this has gotten on my nerves I can't hold up any longer... My web app depends on a third party component that uses JNI. My development env is Tomcat 4.1.18 with JRE 1.4.0_02 on XP. The app runs without a flaw as long as I don't publish new servlets or JSP and reload Tom

help in chanel jni

2003-09-19 Thread ABDUL BASIT
hi, can any one help me in connecting tomcat5.0.9 with apache2.0.47 with jk2-2.0.43. I have connected Tomcat5.0.9 and Apache2.0.47 with jk2-2.0.43 on channel socket. I want to connect them with channel jni. please any one tell me the step by step procedure. Thanking you. My e-mail address

TOMCAT 4.1.x AND JNI

2003-09-16 Thread David LAFAY
Hi, Hi, I have a stand alone Java Application that access native library (C++ DLL) via JNI. The application works properly in stand alone mode. However, when I need to run it from a Servlet into Tomcat * System.loadLibrary("MYdll") works properly. Library is found in the java.librar

Re: JNI and Tomcat

2003-09-16 Thread Dirk Griesbach
CTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 1:05 PM Subject: Re: JNI and Tomcat > Hi, > > I have exactly the same problem ! > do you found a solution ? > > Thanks, > > David LAFAY > >

Re: JNI and Tomcat

2003-09-16 Thread David LAFAY
Hi, I have exactly the same problem ! do you found a solution ? Thanks, David LAFAY -- "Harald Wehr" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > I use tomcat 4.0.1 on a Su

TC and JNI...

2003-09-11 Thread Dirk Griesbach
Hi there and good afternoon world, I have a question regarding JNI and Tomcat (4.1.27): A servlet loads a DLL via static { System.loadLibrary("SharedLib"); } This statement placed directly in my servlet works fine. But when another servlet is about to use some

JNI-sharedLibs

2003-09-09 Thread grisi
Hello everyboy, is there an Tomcat-JNI expert out there ? The setting: I have serveral servlets in one Tomcat (4.1.24) instance using different functions being bundeled in one DLL (.so respectively). Since native libraries cannot be laoded more than once I wrote a simple loader like this

  1   2   3   4   >