You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alvaro Seixas <lu...@yahoo.com.br> on 2004/02/06 17:55:45 UTC

Re: ALL-NEW running tomcat5 in-process

Hei Phill,

Any news on that??

Don't know, but maybe someone may help me out on this.
I get this error when I start Tomcat:
06/02/2004 14:27:07 org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

Is that the reason why I'm not being able to run jni???
How can I solve this??

My workers2.properties is like this:
...
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/Tomcat/bin/BootStrap.jar;c:/Tomcat/bin/commons-daem
on.jar;
c:/Tomcat/bin/commons-launcher.jar;c:/Tomcat/bin/commons-logging-api.jar;
c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/lib/commons-el
.jar;
c:/Tomcat/common/lib/commons-pool-1.1.jar;c:/Tomcat/common/lib/jasper-compil
er.jar;
c:/Tomcat/common/lib/jasper-runtime.jar;c:/Tomcat/common/lib/jsp-api.jar;
c:/Tomcat/common/lib/naming-common.jar;c:/Tomcat/common/lib/naming-factory.j
ar;
c:/Tomcat/common/lib/naming-java.jar;c:/Tomcat/naming-resources.jar;
c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/tools.jar;
c:/Tomcat/server/lib/catalina.jar;c:/Tomcat/server/lib/commons-beanutils.jar
;
c:/Tomcat/server/lib/commons-digester.jar;c:/Tomcat/server/lib/commons-model
er.jar;
c:/Tomcat/server/lib/jkconfig.jar;c:/Tomcat/server/lib/jkshm.jar;
c:/Tomcat/server/lib/servlets-common.jar;c:/Tomcat/server/lib/servlets-defau
lt.jar;
c:/Tomcat/server/lib/servlets-invoker.jar;c:/Tomcat/server/lib/servlets-webd
av.jar;
c:/Tomcat/server/lib/tomcat-coyote.jar;c:/Tomcat/server/lib/tomcat-http11.ja
r;
c:/Tomcat/server/lib/tomcat-jk.jar;c:/Tomcat/server/lib/tomcat-jk2.jar;
c:/Tomcat/server/lib/tomcat-jni.jar;c:/Tomcat/server/lib/tomcat-util.jar;
c:/j2sdk1.4.2_03/lib/tools.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Dcatalina.base=c:/Tomcat
OPT=-Djava.home=c:/j2sdk1.4.2_03
OPT=-Dserverroot=C:/Apache2
OPT=-Djava.endorsed.dirs=c:/Tomcat/common/endorsed
OPT=-Djava.io.tmpdir=c:/Tomcat/temp
OPT=-Dstdout=C:/Apache2/logs/stdout.log
OPT=-Dstderr=C:/Apache2/logs/stderr.log
OPT=-Xmx128M
...

Any comments is appreciate!!

Thx,
Alvaro

----- Original Message -----
From: "Phil Adams" <pa...@fastdetailsinc.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, January 29, 2004 9:55 PM
Subject: Re: ALL-NEW running tomcat5 in-process


> I get the same error everytime
> and  <host> is set to "localhost".
>
> I remember reading something about using the actual IP 127.0.0.1
> instead of localhost.  I am changing all references to the IP now
> and will try that.
>
>
> ----- Original Message -----
> From: "Filip Hanik" <de...@hanik.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Thursday, January 29, 2004 5:42 PM
> Subject: Re: ALL-NEW running tomcat5 in-process
>
>
> > >QUESTION:
> > >the only thing I have left to resolve is that I get:
> > >    "No Host matches server name localhost"
> >
> > do you get this all the time, or only in the beginning,
> > if the latter, then it could be because tomcat hasn't started up yet.
> >
> > if the first, check your <Host> config in server.xml, make sure it is
> named
> > localhost
> >
> > Filip
> >
> > ----- Original Message -----
> > From: "Phil Adams" <pa...@fastdetailsinc.com>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Thursday, January 29, 2004 3:37 PM
> > Subject: ALL-NEW running tomcat5 in-process
> >
> >
> > OKAY!
> > I have figured it out!
> > I have managed to get Apache2 to start Tomcat5 with mod_jk2.
> > AND... it sends requests to Tomcat thru 'JNI'
> > apparently the whole thing is actually AJP1.3 over Coyote which
> > uses the CoyoteHandler which in turn calls the JKHandler.
> >
> > the following is the only connector entry in my server.xml.
> > notice the port is set to zero.
> > <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
> >                   port="0" minProcessors="5" maxProcessors="100"
> >                   enableLookups="false" redirectPort="8443"
> >                   acceptCount="10"
> >                   debug="9" connectionTimeout="20000"
> >                   useURIValidationHack="false"
> >
> > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" />
> >
> > I will post the entire saga tomorrow... (including all configs)
> > I am very tired right now and I need a BEER!
> >
> > QUESTION:
> > the only thing I have left to resolve is that I get:
> >     "No Host matches server name localhost"
> >
> > I remember seeing a write-up about this before. can someone point me to
> the
> > thread
> > or pass along the answer to this last and final hurdle.
> >
> >
> > ---------------------------------------------------------------------
> > 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