You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sangeeta Verma <ve...@gmail.com> on 2007/12/07 20:39:44 UTC

need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

 Hi,
I have installed Apache 2.0.61 and Tomcat 5.5.25 on windows 2003
machine.Ifound mod_jk-
apache-2.0.29.so and mod_jk_1.2.6_2.0.50.dll both on web and downloaded.
Copied the dll file to <apache_home>/module directory. When i edit the
server.xml file for adding entry under the
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.jk.config.ApacheConfig"
modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll" />
Tomcat just refuses to startup with following error:

Dec 7, 2007 11:09:27 AM org.apache.tomcat.util.digester.Digester fatalError

SEVERE: Parse Fatal Error at line 37 column 63: Open quote is expected for
attribute "modJk" associated with an element type "Listener".

org.xml.sax.SAXParseException: Open quote is expected for attribute "modJk"
associated with an element type "Listener".

at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
What wrong am I doing?
Unless i can get Tomcat started, the automatic generation of mod-conf file
will not take place and apache cant also start with a include directive in
it looking for the mod conf file.

Is there a place where I can get complete steps to configure connector with
the above versions. I checked so many websites and they have similar steps
but some variations depending on OS. I didnt find a windows config guide for
Tomcat 5.5.25 to work with mod_jk.

Please help.Thanks a lot.

Sangeeta

Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

Posted by Sangeeta Verma <ve...@gmail.com>.
Thanks all so much.such a simple thing i couldnt see myself.
I guess I was going blind, all confused, after following steps of
configuring JK on windows.



On 12/7/07, Martin Gainty <mg...@hotmail.com> wrote:
>
> change modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll"
> to
> modJk="E:\apache\2.0.61\Apache2\modules\mod_jk.dll"
>
> follow rainier's advice and read up on mod_jk
>
> Martin-
> ----- Original Message -----
> From: "Rainer Jung" <ra...@kippdata.de>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Friday, December 07, 2007 5:51 PM
> Subject: Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK
> configuration
>
>
> > Sangeeta Verma wrote:
> > >  Hi,
> > > I have installed Apache 2.0.61 and Tomcat 5.5.25 on windows 2003
> > > machine.Ifound mod_jk-
> > > apache-2.0.29.so and mod_jk_1.2.6_2.0.50.dll both on web and
> downloaded.
> >
> > The 1.2.6 version is *very* old, we are at version 1.2.25 of mod_jk.
> > Use the 2.0.29 file, because that was obviously simply named wrong when
> > putting on the download server and is in fact for httpd 2.0.*5*9 :)
> > (and is fine for your 2.0.61).
> >
> > > Copied the dll file to <apache_home>/module directory. When i edit the
> > > server.xml file for adding entry under the
> > > <Server port="8005" shutdown="SHUTDOWN">
> > > <Listener className="org.apache.jk.config.ApacheConfig"
> > > modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll" />
> > > Tomcat just refuses to startup with following error:
> > >
> > > Dec 7, 2007 11:09:27 AM org.apache.tomcat.util.digester.Digester
> fatalError
> > >
> > > SEVERE: Parse Fatal Error at line 37 column 63: Open quote is expected
> for
> > > attribute "modJk" associated with an element type "Listener".
> > >
> > > org.xml.sax.SAXParseException: Open quote is expected for attribute
> "modJk"
> > > associated with an element type "Listener".
> >
> > OK, so why not adding an open quote to the mod_Jk attribute you put into
> > the server.xml? Look at the config line above, the open quote is
> missing.
> >
> > > at
> > >
>
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
> ception(Unknown
> > > Source)
> > > What wrong am I doing?
> > > Unless i can get Tomcat started, the automatic generation of mod-conf
> file
> > > will not take place and apache cant also start with a include
> directive
> in
> > > it looking for the mod conf file.
> > >
> > > Is there a place where I can get complete steps to configure connector
> with
> > > the above versions. I checked so many websites and they have similar
> steps
> > > but some variations depending on OS. I didnt find a windows config
> guide
> for
> > > Tomcat 5.5.25 to work with mod_jk.
> >
> > mod_jk configuration on windows works the same as for other platforms.
> >
> > Look at the docs for Apache mod_jk config under
> >
> > http://tomcat.apache.org/connectors-doc/
> >
> > and then also at the workers.properties doc.
> >
> > The above addition to server.xml is only necessary, if you want Tomcat
> > to produce a basic mod_jk configuration for you. You can also write one
> > from scratch, without any changes to server.xml.
> >
> > > Please help.Thanks a lot.
> > >
> > > Sangeeta
> >
> > Regards,
> >
> > Rainer
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

Posted by Martin Gainty <mg...@hotmail.com>.
change modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll"
to
modJk="E:\apache\2.0.61\Apache2\modules\mod_jk.dll"

 follow rainier's advice and read up on mod_jk

Martin-
----- Original Message -----
From: "Rainer Jung" <ra...@kippdata.de>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, December 07, 2007 5:51 PM
Subject: Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK
configuration


> Sangeeta Verma wrote:
> >  Hi,
> > I have installed Apache 2.0.61 and Tomcat 5.5.25 on windows 2003
> > machine.Ifound mod_jk-
> > apache-2.0.29.so and mod_jk_1.2.6_2.0.50.dll both on web and downloaded.
>
> The 1.2.6 version is *very* old, we are at version 1.2.25 of mod_jk.
> Use the 2.0.29 file, because that was obviously simply named wrong when
> putting on the download server and is in fact for httpd 2.0.*5*9 :)
> (and is fine for your 2.0.61).
>
> > Copied the dll file to <apache_home>/module directory. When i edit the
> > server.xml file for adding entry under the
> > <Server port="8005" shutdown="SHUTDOWN">
> > <Listener className="org.apache.jk.config.ApacheConfig"
> > modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll" />
> > Tomcat just refuses to startup with following error:
> >
> > Dec 7, 2007 11:09:27 AM org.apache.tomcat.util.digester.Digester
fatalError
> >
> > SEVERE: Parse Fatal Error at line 37 column 63: Open quote is expected
for
> > attribute "modJk" associated with an element type "Listener".
> >
> > org.xml.sax.SAXParseException: Open quote is expected for attribute
"modJk"
> > associated with an element type "Listener".
>
> OK, so why not adding an open quote to the mod_Jk attribute you put into
> the server.xml? Look at the config line above, the open quote is missing.
>
> > at
> >
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(Unknown
> > Source)
> > What wrong am I doing?
> > Unless i can get Tomcat started, the automatic generation of mod-conf
file
> > will not take place and apache cant also start with a include directive
in
> > it looking for the mod conf file.
> >
> > Is there a place where I can get complete steps to configure connector
with
> > the above versions. I checked so many websites and they have similar
steps
> > but some variations depending on OS. I didnt find a windows config guide
for
> > Tomcat 5.5.25 to work with mod_jk.
>
> mod_jk configuration on windows works the same as for other platforms.
>
> Look at the docs for Apache mod_jk config under
>
> http://tomcat.apache.org/connectors-doc/
>
> and then also at the workers.properties doc.
>
> The above addition to server.xml is only necessary, if you want Tomcat
> to produce a basic mod_jk configuration for you. You can also write one
> from scratch, without any changes to server.xml.
>
> > Please help.Thanks a lot.
> >
> > Sangeeta
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

Posted by Rainer Jung <ra...@kippdata.de>.
Sangeeta Verma wrote:
>  Hi,
> I have installed Apache 2.0.61 and Tomcat 5.5.25 on windows 2003
> machine.Ifound mod_jk-
> apache-2.0.29.so and mod_jk_1.2.6_2.0.50.dll both on web and downloaded.

The 1.2.6 version is *very* old, we are at version 1.2.25 of mod_jk.
Use the 2.0.29 file, because that was obviously simply named wrong when 
putting on the download server and is in fact for httpd 2.0.*5*9 :)
(and is fine for your 2.0.61).

> Copied the dll file to <apache_home>/module directory. When i edit the
> server.xml file for adding entry under the
> <Server port="8005" shutdown="SHUTDOWN">
> <Listener className="org.apache.jk.config.ApacheConfig"
> modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll" />
> Tomcat just refuses to startup with following error:
> 
> Dec 7, 2007 11:09:27 AM org.apache.tomcat.util.digester.Digester fatalError
> 
> SEVERE: Parse Fatal Error at line 37 column 63: Open quote is expected for
> attribute "modJk" associated with an element type "Listener".
> 
> org.xml.sax.SAXParseException: Open quote is expected for attribute "modJk"
> associated with an element type "Listener".

OK, so why not adding an open quote to the mod_Jk attribute you put into 
the server.xml? Look at the config line above, the open quote is missing.

> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> What wrong am I doing?
> Unless i can get Tomcat started, the automatic generation of mod-conf file
> will not take place and apache cant also start with a include directive in
> it looking for the mod conf file.
> 
> Is there a place where I can get complete steps to configure connector with
> the above versions. I checked so many websites and they have similar steps
> but some variations depending on OS. I didnt find a windows config guide for
> Tomcat 5.5.25 to work with mod_jk.

mod_jk configuration on windows works the same as for other platforms.

Look at the docs for Apache mod_jk config under

http://tomcat.apache.org/connectors-doc/

and then also at the workers.properties doc.

The above addition to server.xml is only necessary, if you want Tomcat 
to produce a basic mod_jk configuration for you. You can also write one 
from scratch, without any changes to server.xml.

> Please help.Thanks a lot.
> 
> Sangeeta

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org