tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chippada , Sreeni" <schipp...@netegrity.com>
Subject RE: JKJni dll Error
Date Fri, 02 Apr 2004 23:10:48 GMT
Hi Malai,

Here are my configuration details. I made changes to my configuration files
to incorporate the differences with respect to your configuration files. 

I don't get the stdout.log and stderr.log files.
My configuration is failing while trying to start the jni connector.

Thanks,
Sreeni

Followed the steps below:
	

STEP 1: Installing mod_jk2
--------------------------
1. Copy the mod_jk2.dll into <APACHE_HOME>/modules directory.
2. Add the following line to httpd.conf
	LoadModule jk2_module modules/mod_jk2.dll

#I also tried installing and configuring jkjni.dll in <APACHE_HOME>/modules.
That did not help either.



STEP 2: Configure <TOMCAT_HOME>/conf/server.xml
-----------------------------------------------
Disable the default connector on port 8080

Enable the AJP connector on port 8009.


STEP 3: <TOMCAT_HOME>/conf/jk2.properties
-----------------------------------------
handler.list=apr,request,channelJni
shm.file=c:/software/Apache Group/Apache2/logs/jk2.shm channelJni.disabled=0
apr.jniModeSo=inprocess

STEP 4: <APACHE_HOME>/conf/workers2.properties
----------------------------------------------
# Set level to ERROR or EMERG for production - check path [logger.file:0]
level=DEBUG file=${serverRoot}/logs/mod_jk2.log

[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=100
debugEnv=100

[uriMap:]
info=Maps the requests. Options: debug
debug=100

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers file=${serverRoot}/logs/jk2.shm size=1000000 debug=100 disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=100
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 debug=100
disabled=0

# Define the parameters for the Java Virtual Machine [vm:] info=Parameters
used to load a JVM in the server process
JVM=C:\j2sdk1.4.2_02\jre\bin\server\jvm.dll
OPT=-Djava.class.path=C:/Software/apache/jakarta-tomcat5.0.16/bin/bootstrap.
jar;
C:/Software/apache/jakarta-tomcat-5.0.16/server/lib/tomcat-jni.jar;C:/Softwa
re/apache/jakarta-tomcat-5.0.16/server/lib/tomcat-jk2.jar;C:/Software/apache
/jakarta-tomcat-5.0.16/common/lib/jmx.jar;C:/Software/apache/jakarta-tomcat-
5.0.16/server/lib/commons-modeler.jar
OPT=-Dcatalina.home=C:/Software/apache/jakarta-tomcat-5.0.16
OPT=-Dtomcat.home=C:/Software/apache/jakarta-tomcat-5.0.16
OPT=-Xmx512M
disabled=0
debug=100

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=C:/Software/Apache Group/Apache2/logs/stdout.log
stderr=C:/Software/Apache Group/Apache2/logs/stderr.log debug=100

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0
debug=100


# define the worker
[status:]
info the status worker

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/jsp-examples]
info=Example webapp in the default context. 
context=/jsp-examples
debug=100



STEP 5: Start up
----------------

Start tomcat first
Wait until the instance is started.
Start apache.



-----Original Message-----
From: Chippada , Sreeni [mailto:schippada@netegrity.com] 
Sent: Friday, April 02, 2004 5:57 PM
To: Tomcat Users List
Subject: RE: JKJni dll Error

I think you are ahead of me now. 
What did you do with the jnjni.dll? I don't see it in your configuration
files. Did you drop it in <APACHE_HOME>/moduels?

I posted a message today with the subject "Unable to connect Apache 2.0.48
to tomcat using JK2 Connector an d JNI."

Can you please tell me what is the difference with respect to how you
configured? 

Thanks,
Sreeni
	

-----Original Message-----
From: armalai [mailto:armalai@savantit.com] 
Sent: Friday, April 02, 2004 5:33 PM
To: Tomcat Users List
Subject: Re: JKJni dll Error

Hi.,
   I just passed the class not fount error for AprImpl.
Right now i got new error in Apache - log
[Fri Apr 02 17:30:31 2004] [error] mod_jk child init 1 0

then Apache stderr.log log says..
TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try  org.apache.catalina.startup.BootstrapService
Try  org.apache.catalina.startup.Bootstrap
No class found

Please help me out...

Thanks.,
MALAI

----- Original Message ----- 
From: "Chippada , Sreeni" <schippada@netegrity.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, April 02, 2004 5:19 PM
Subject: RE: JKJni dll Error


> Try adding <TOMCAT_HOME>\common\lib\jmx.jar to the claspath in  [vm:]
>
> -Sreeni
>
> -----Original Message-----
> From: armalai [mailto:armalai@savantit.com]
> Sent: Friday, April 02, 2004 5:14 PM
> To: Tomcat Users List
> Subject: Re: JKJni dll Error
>
> Hi.,
>     Please check my properties file.
> this is the new error that i notied right now in apache log.
> Error:
> [Fri Apr 02 16:59:28 2004] [error] Can't find class
> org/apache/jk/apr/AprImpl
> java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
> -------------JK2.properties----------------------
> ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
> ## WHEN YOU EDIT THE FILE.
> ## COMMENTS WILL BE _LOST_
> ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
> # 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
>
> #MALAI
> #Shared memory directive
> shm.file=C:/$Java/3_AS/Apache2/logs/jk2.shm
>
> # In order to enable jni use any channelJni directive
> channelJni.disabled = 0
>
> # And one of the following directives:
> # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
> # If set to inprocess the mod_jk2 will Register natives itself
> # This will enable the starting of the Tomcat from mod_jk2
> apr.jniModeSo=inprocess
> ------------------------------------------------------
> -----------workers2.properties-------------
> [logger]
> level=DEBUG
>
> [config:]
> #file=${serverRoot}/conf/workers2.properties
> file=C:/$Java/3_AS/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
>
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
>
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
>
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
> servers
> file=${serverRoot}/logs/jk2.shm
> size=1000000
> debug=0
> disabled=0
>
> [workerEnv:]
> info=Global server options
> timing=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
>
> [lb:lb]
>
> info=Default load balancer.
> debug=0
>
> #[lb:lb_1]
> #info=A second load balancer.
> #debug=0
>
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
> lb_factor=2
> group=lb
>
> [channel.socket:localhost:8019]
> info=A second tomcat instance.
> debug=0
> tomcatId=localhost:8019
> lb_factor=2
> group=lb
> #group=lb_1
>
> [channel.socket:localhost:8029]
> info=A Third tomcat instance.
> debug=0
> tomcatId=localhost:8029
> lb_factor=2
> group=lb
> #group=lb_1
>
> #disabled=0
>
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
> [status:]
> info=Status worker, displays runtime informations
>
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> OPT=-Djava.class.path=%classpath%;C:/$Java/3_AS/Tomcat
> 5.0/server/lib/tomcat-jni.jar;C:/$Java/3_AS/Tomcat
> 5.0/bin/commons-logging-api.jar
> OPT=-Dtomcat.home=${TOMCAT_HOME}
> #--OPT=-Dcatalina.home=${TOMCAT_HOME}
> #--OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> disabled=0
>
> [worker.jni:onStartup]
> info=Command to be executed by the VM on startup. This one will start
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> class=org/apache/jk/apr/AprImpl
> ARG=start
> disabled=0
>
> stdout=C:/$Java/3_AS/Apache2/logs/stdout.log
> stderr=C:/$Java/3_AS/Apache2/logs/stderr.log
>
> [worker.jni:onShutdown]
> info=Command to be executed by the VM on shutdown. This one will stop
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> class=org/apache/jk/apr/AprImpl
> ARG=stop
> disabled=0
>
> # Map the Tomcat webapp to the Web server uri space
> [uri:/*]
> info=Map the entire "examples" webapp
> debug=0
> --------------------------------------------------------------------------
--
> ------
>
>
> ----- Original Message ----- 
> From: "Chippada , Sreeni" <schippada@netegrity.com>
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Sent: Friday, April 02, 2004 5:08 PM
> Subject: RE: JKJni dll Error
>
>
> > I downloaded JK2 and built it.
> > I am trying the same configuration. I am not successful yet. I like to
> know
> > your jk2.properties and workers2.properties configuration files.
> >
> > Thanks,
> > Sreeni
> >
> > -----Original Message-----
> > From: armalai [mailto:armalai@savantit.com]
> > Sent: Friday, April 02, 2004 4:46 PM
> > To: Tomcat Users List
> > Subject: JKJni dll Error
> >
> > Environement:
> >    Windows 2000
> >    Tomcat 5.x + Apache 2.X + Mod_JK2
> >
> > Error:
> > java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
> >
> > Question:
> >     1.Where I can get the jkjni.dll ?
> >
> > Thanks.,
> > MALAI
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message