HOWTO : Apache/Tomcat (at last !!)

same problem

gcc -I/usr/include/apache -g -O2 -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -O2 -I /include -I /include/ -c jk_connect.c -fPIC -DPIC -o .libs/jk_connect.o


i also have the same problem when compiling >.< .. can anyone help me .. i am using fedora core 2
 
Hello

I've got a problem with installing tomcat on my debian machine. I've used the instructions as mentioned at the beginning of this thread.

I'm using the newest java 1.5 version and tomcat 5.5.9.

But when I try to start the tomcat I get the following error in the log file.

5-mei-2005 20:54:22 org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more

The problem is, that I tried many possible things to solve it, but all failed.

Can someone help me to solve it.

Thanx!

PS: Problem solved.
 
Last edited:
Hi, I tried to install Tomcat following the instructions, did a:

# tomcatd start
Starting Tomcat: Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/java/java
# tomcatd status
Tomcat is stopped

In catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Jun 8, 2005 12:15:41 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jun 8, 2005 12:15:41 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Jun 8, 2005 12:15:42 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Catalina.start: LifecycleException: Context startup failed due to previous errors
LifecycleException: Context startup failed due to previous errors
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException: Coyote connector has not been started
LifecycleException: Coyote connector has not been started
at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
at org.apache.catalina.core.StandardService.stop(StandardService.java:499)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

Thanks
 
Sorry, I figured it out it's syntax error in server.xml.

Thanks. It's now running.
 
Anybody can help Us ??

Making all in apache-1.3
gmake[1]: Entering directory `/usr/local/java/jakarta-tomcat-connectors/jk/native/apache-1.3'
mode=compile gcc -DUSE_APACHE_MD5 -I ../common -I /include -I /include/ -I/usr/include/apache -DHARD_SERVER_LIMIT=32768 -DFD_SETSIZE=32768 -funsigned-char -DMOD_SSL=208122 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -DJK_PREFORK -g -O2 -I../common -c mod_jk.c -o mod_jk.lo
gmake[1]: *** No rule to make target `../common/jk_ajp12_worker.lo', needed by `mod_jk.la'. Stop.
gmake[1]: Leaving directory `/usr/local/java/jakarta-tomcat-connectors/jk/native/apache-1.3'
gmake: *** [all-recursive] Error 1

I'm using freebsd 4.11
 
Last edited:
JDK problem : error while loading shared libraries

When I test Java :
/usr/java/java/bin/java -version

I have the error :
/usr/java/jdk1.3.1_16/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

Laurent
 
LifecycleException: Context startup failed due to previous errors

I am getting the same error when i am trying to restart new instance of tomcat with same binary distrbution.
you mentioned you were able to correct this problem with syntax correction in server.xml ... what was the change

can anyone help please
 
One more thing to add on this line

- Download the script at http://www.linuxjava.net/howto/weba...l_files/tomcatd
- mv tomcatd /usr/sbin
- chmod 700 /usr/sbin/tomcatd
- vi or pico -w /usr/sbin/tomcatd
- Locate any lines that contain the text : su - tomcat -c $TOMCAT_START and replace it by : $TOMCAT_START

make sure you replace su -tomcat -c $TOMCAT_STOP with just $TOMCAT_STOP
 
I've followed given steps installing Tomcat.
But I can't start it.
when I write ./startup.sh
the respond is
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/local/java/java

but tomcat won't start .
when I type http://myhost:8081
it throws me "This page cannot be displayed"
I manually changed port to 8081.

Here is my server.xml


<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5" maxProcessors="75" enableLookup
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"/>
<Host name="wcat.boom.ge">
<Alias>wcat.boom.ge</Alias>
<Context path="" docBase="/home/stats/domains/wcat.boom.ge/public_html" debug="0"/>
<Context path="/manager" docBase="/usr/local/jakarta-tomcat-4.1.30/server/webapps/manager" debug="0" privileged="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="/home/username/logs" prefix="context_log." suffix=".log"
</Host>
</Engine>
</Service>
</Server>
 
zuijberknaf said:
Hello

I've got a problem with installing tomcat on my debian machine. I've used the instructions as mentioned at the beginning of this thread.

I'm using the newest java 1.5 version and tomcat 5.5.9.

But when I try to start the tomcat I get the following error in the log file.

5-mei-2005 20:54:22 org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more

The problem is, that I tried many possible things to solve it, but all failed.

Can someone help me to solve it.

Thanx!

PS: Problem solved.


Hi,
How did you fix this?

Kunal
 
Version 5.5.16+

Since version 5.5.16 of Tomcat they have added the following feature.
Deploy folders which don't have a WEB-INF, and return an error when a context file does not contain a Context element (remm)
Does someone know how to disable this feature, because it is causing problems for one of my customers.

I've already searched google for it and the documentation that is provided with Tomcat, but no luck at all.

I'm currently using 5.5.17

Greetings,

Frank Buijze
FraJa WeB

www.daforum.(nl|be)
www.frajaweb.(nl|be|eu)
 
how come i can't login at step 8, it shows connect to cvs.apache.org... failed: connection refused ???

8- Download the Java Connector from CVS and build / install mod_jk
- cvs -d :pserver:[email protected]:/home/cvspublic login password: anoncvs (When prompted for a password, just hit ENTER)
 
Help: Stuck at STEP 8

Hi i am trying to install tomcat to work with DirectAdmin.

All went well until this step:

Step 8

cvs -d :pserver:[email protected]:/home/cvspublic login password: anoncvs (When prompted for a password, just hit ENTER)

I used the command above and when promoted for password, i hit ENTER.

This is the error message i get:

"cvs [login aborted]: connect to cvs.apache.org(140.211.166.113):2401 failed: Connection refused"

What could be the problem?

I am running Linux Enterprise 3.0
 
Hi,
I'm also stuck at step 8 :


Logging in to :pserver:[email protected]:2401/home/cvspublic
CVS password:
cvs [login aborted]: connect to [cvs.apache.org]:2401 failed: Connection refused

Any ideas welcome.
 
mod_jk installation

For the steps where you need to install mod_jk:

The instructions are obsolete (what do you expect after 3 years), however, you might want to be able to install tomcat anyway ;)

Apache uses modules. mod_jk is a module as well. You can easily install the module by following Apache's instructions for this specific module on the appropriate page.

The rest of the installation instructions will work out fine, I guess...
 
Hi

How can I update Tomcat from 5.5.27 to 6.0.20
When I change in daplugin.build VER to 6.0.20 then script doesn't find apache-tomcat-6.0.20-admin.tar.gz
On apache.org I can't find this package.
Could you help me ?
 
Back
Top