You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Boris Folgmann <mi...@folgmann.com> on 2003/05/06 18:27:05 UTC

Re: mod_jk2 from source - brief HOW TO

Mark Eggers schrieb:

> This was done on a Redhat Linux (release 9.0) box, but
> it should be pretty generic and useful for most
> UNIX-type OS's.

I didn't manage to compile it on Redhat 8.0 for some weeks now.

> I did not use rpm's for either the apache web server
> (2.0.45 - compiled from source) or tomcat (4.1.24 -
> installed from binary tarball).

I use the original RPMs from RedHat:
httpd-2.0.40-11.3
httpd-devel-2.0.40-11.3

> 5. Run configure with:
> 
>    ./configure \
>     --with-apxs2=<apache-root-directory>/bin/apxs \
>     --with-tomcat41=<tomcat-root-directory> \
>     --with-java-home=<java-root-directory> \
>     --with-jni \
>     --with-pcre

That doesn't work for me!
I used:
./configure --with-apxs2=/usr/sbin/apxs --with-tomcat41=/var/tomcat4/
--with-java-home=/usr/java/j2sdk1.4.1_02/ --with-jni --with-pcre

And I get:
[...]
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
no apxs given
XMLDoc parsing falseXMLDoc unable to open file false

XMLDoc dump:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
XMLDoc writing "dump.xml".
XMLDoc creating file in memory: 0 bytes.
XMLDoc parsing memory file. no element found at line 1

XMLDoc dump memory file:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
freeing memfile.
creating empty XMLDoc object
adding new data to XMLDoc object

XMLDoc dump created XMLDoc:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<elem1><name>Element1</name>
<class>NoSense</class>
</elem1>
<elem2 long="yes" sense="non" >
this is a longer text
 to show that it works aswell.
</elem2>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
deleting XMLDoc objects.
finished.
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
XMLDoc parsing falseXMLDoc unable to open file false

XMLDoc dump:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
XMLDoc writing "dump.xml".
XMLDoc creating file in memory: 0 bytes.
XMLDoc parsing memory file. no element found at line 1

XMLDoc dump memory file:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
freeing memfile.
creating empty XMLDoc object
adding new data to XMLDoc object

XMLDoc dump created XMLDoc:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<elem1><name>Element1</name>
<class>NoSense</class>
</elem1>
<elem2 long="yes" sense="non" >
this is a longer text
 to show that it works aswell.
</elem2>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
deleting XMLDoc objects.
finished.
Error: no input file given.
Error: no input file given.
configure: error: Invalid location for apxs: '/usr/sbin/apxs'

Does anybody know what that means?

cu,
	boris

-- 
Dipl.-Inf. Boris Folgmann   mailto:boris@folgmann.de
TeamForge GmbH i.G.         http://www.folgmann.de


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


Re: mod_jk2 from source - brief HOW TO

Posted by John Turner <to...@johnturner.com>.
You're going to have problems using RH's Apache...it is a non-standard 
distribution.  Most HOWTO documents assume that you are building your 
Apache from source, and that everything Apache-related is in one spot.  
RH's RPMS shove Apache files into several different locations.  You'll have 
to determine which file it wants, where it is (where the RPM put it), and 
how to tell configure where that file is.

John

On Tue, 06 May 2003 18:27:05 +0200, Boris Folgmann <mi...@folgmann.com> 
wrote:

> Mark Eggers schrieb:
>
>> This was done on a Redhat Linux (release 9.0) box, but
>> it should be pretty generic and useful for most
>> UNIX-type OS's.
>
> I didn't manage to compile it on Redhat 8.0 for some weeks now.
>
>> I did not use rpm's for either the apache web server
>> (2.0.45 - compiled from source) or tomcat (4.1.24 -
>> installed from binary tarball).
>
> I use the original RPMs from RedHat:
> httpd-2.0.40-11.3
> httpd-devel-2.0.40-11.3
>
>> 5. Run configure with:
>>
>> ./configure \
>> --with-apxs2=<apache-root-directory>/bin/apxs \
>> --with-tomcat41=<tomcat-root-directory> \
>> --with-java-home=<java-root-directory> \
>> --with-jni \
>> --with-pcre
>
> That doesn't work for me!
> I used:
> ./configure --with-apxs2=/usr/sbin/apxs --with-tomcat41=/var/tomcat4/
> --with-java-home=/usr/java/j2sdk1.4.1_02/ --with-jni --with-pcre
>
> And I get:
> [...]
> checking for sed... /bin/sed
> checking for cp... /bin/cp
> checking for mkdir... /bin/mkdir
> no apxs given
> XMLDoc parsing falseXMLDoc unable to open file false
>
> XMLDoc dump:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> XMLDoc writing "dump.xml".
> XMLDoc creating file in memory: 0 bytes.
> XMLDoc parsing memory file. no element found at line 1
>
> XMLDoc dump memory file:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> freeing memfile.
> creating empty XMLDoc object
> adding new data to XMLDoc object
>
> XMLDoc dump created XMLDoc:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> <elem1><name>Element1</name>
> <class>NoSense</class>
> </elem1>
> <elem2 long="yes" sense="non" >
> this is a longer text
> to show that it works aswell.
> </elem2>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> deleting XMLDoc objects.
> finished.
> need to check for Perl first, apxs depends on it...
> checking for perl... /usr/bin/perl
> XMLDoc parsing falseXMLDoc unable to open file false
>
> XMLDoc dump:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> XMLDoc writing "dump.xml".
> XMLDoc creating file in memory: 0 bytes.
> XMLDoc parsing memory file. no element found at line 1
>
> XMLDoc dump memory file:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> freeing memfile.
> creating empty XMLDoc object
> adding new data to XMLDoc object
>
> XMLDoc dump created XMLDoc:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> <elem1><name>Element1</name>
> <class>NoSense</class>
> </elem1>
> <elem2 long="yes" sense="non" >
> this is a longer text
> to show that it works aswell.
> </elem2>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> deleting XMLDoc objects.
> finished.
> Error: no input file given.
> Error: no input file given.
> configure: error: Invalid location for apxs: '/usr/sbin/apxs'
>
> Does anybody know what that means?
>
> cu,
> 	boris
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


Re: Problem with webapp

Posted by Tim Funk <fu...@joedog.org>.
Google!

http://www.google.com/search?num=30&hl=en&lr=&ie=UTF-8&oe=UTF-8&q=windows+%22Too+many+open+files%22&btnG=Google+Search


-Tim

Cemil Oeruem - Skillworks AG wrote:
> Hello there,
> 
> I have a problem with a JSP-Application running under Tomcat 4 and I
> have no idea how to solve the following problem:
> 
> The application runs fine for a while. When logging in, the users name
> and the current time is logged in a log file. 
> The user is redirected to a main page where a menu is generated by a
> DOM-Tree, which is transformed with XSL:
> 
> public void render(Writer out) {
>     TransformerFactory transFac = TransformerFactory.newInstance();
>     Transformer transformer= transFac.newTransformer(new
> StreamSource(stylesheet));
>     transformer.transform(new DOMSource(doc),
>     new StreamResult(out));
> }
> 
> This all works for a while, until the stdout of tomcat prints the
> following error:
> 
> java.io.FileNotFoundException:
> c:\Programme\ApacheTomcat_4_1\webapps\intranet\log\info.05-05-2003.txt
> (Too many open files)
> 
>>>From this time on this txt-file cannot be accessed by the application.
> Neither other log-files can.
> At the main page, where the menu should be generated, a
> NullPointerException is thrown by the render-method above and nobody can
> login any more. 
> 
> Another problem is, that restarting the tomcat does not solve the
> problem. 
> Only by installing the webapp by the .war-file lets the application run
> again. Until it crashes again...
> 
> Does anybody have an idea where the problem might be ?
> 
> Thanks a lot,
> 
> Cemil
> 
> 
> ---------------------------------------------------------------------
> 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


Problem with webapp

Posted by Cemil Oeruem - Skillworks AG <ma...@cemil.de>.
Hello there,

I have a problem with a JSP-Application running under Tomcat 4 and I
have no idea how to solve the following problem:

The application runs fine for a while. When logging in, the users name
and the current time is logged in a log file. 
The user is redirected to a main page where a menu is generated by a
DOM-Tree, which is transformed with XSL:

public void render(Writer out) {
    TransformerFactory transFac = TransformerFactory.newInstance();
    Transformer transformer= transFac.newTransformer(new
StreamSource(stylesheet));
    transformer.transform(new DOMSource(doc),
    new StreamResult(out));
}

This all works for a while, until the stdout of tomcat prints the
following error:

java.io.FileNotFoundException:
c:\Programme\ApacheTomcat_4_1\webapps\intranet\log\info.05-05-2003.txt
(Too many open files)

>From this time on this txt-file cannot be accessed by the application.
Neither other log-files can.
At the main page, where the menu should be generated, a
NullPointerException is thrown by the render-method above and nobody can
login any more. 

Another problem is, that restarting the tomcat does not solve the
problem. 
Only by installing the webapp by the .war-file lets the application run
again. Until it crashes again...

Does anybody have an idea where the problem might be ?

Thanks a lot,

Cemil


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


Re: mod_jk2 from source - brief HOW TO

Posted by Mark Eggers <it...@yahoo.com>.
Boris,

I don't think that finding apxs was the real problem. 
I think that apxs couldn't find the apache-dev rpm.

I think that if you run the same command as an
ordinary user, but add where the Apache libraries,
include directories, and apr libraries are located,
then you will get the same results.

I think the primary issue in this instance is the fact
that the implementation (apache rpm) is separate from
the development (apache-dev rpm).

For me, the easiest way to solve the problem has been
to uninstall the two rpms, and then install apache
2.0.45 from source.

It's good that you found another work-around . . .

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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


Re: mod_jk2 from source - brief HOW TO

Posted by Boris Folgmann <mi...@folgmann.com>.
Mark Eggers schrieb:

> Another guess . . . . is apxs a link in /usr/sbin?  If

No, it's the file itself.

> so, you might try pointing the apxs2= option to the
> actual location.
> 
> I realize that this is not much information, but since
> I'm not a fan of Redhat's packaging of the Apache web
> server, I can't be of much more help.

I tried the explanation at
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatFAQ/ModJK2OnRedHat
but same problem.

As a last resort I tried running CFLAGS="-Os -mcpu=pentium3 -pipe"
./configure  --with-apxs2=/usr/sbin/apxs --with-apache2-lib=/usr/lib
--with-tomcat41=/var/tomcat4/ --with-apr-lib=/usr/lib  --with-jni
as root and it works!

[...]
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
building connector for "apache-2.0"
apache2_LIB
checking for tomcat33 location... not provided
checking for tomcat40 location... not provided
checking for tomcat41 location... /var/tomcat4/
checking for JDK location (please wait)... /usr/java/j2sdk1.4.1_02 from
environment
checking Java platform... checking Java platform...
checking os_type directory...  linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating server/apache13/Makefile
config.status: creating server/apache13/Makefile.apxs
config.status: creating server/apache2/Makefile
config.status: creating server/apache2/Makefile.apxs
config.status: creating ../build.properties
config.status: creating scripts/build/unix/dummy
config.status: executing depfiles commands

So what's the problem? /usr/sbin/apxs is not in the PATH of ordinary users,
but in root's path. But since I used --with-apxs2=/usr/sbin/apxs it should
be no problem. The file is executable by all users.

Is it a bug in configure.in? It shouldn't be necessary to run it as root.

cu,
	boris

-- 
Dipl.-Inf. Boris Folgmann   mailto:boris@folgmann.de
TeamForge GmbH i.G.         http://www.folgmann.de


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


Re: mod_jk2 from source - brief HOW TO

Posted by Mark Eggers <it...@yahoo.com>.
Boris,

I'm not sure, but one of the issues that I have is
that Redhat RPMs scatter the Apache installation all
over the file system.  As a result, apxs may not know
where everything is.

Another guess . . . . is apxs a link in /usr/sbin?  If
so, you might try pointing the apxs2= option to the
actual location.

I realize that this is not much information, but since
I'm not a fan of Redhat's packaging of the Apache web
server, I can't be of much more help.

HTH

/mde/


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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