dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Just curious if there is anyone that has been able to get Tomcat 4.1.2 working and stable in a cpanel environment.

Reason I'm asking is that tried several installs (not off layer1) ;) and cannot get jsp's nor servlets functioning. In most of the cases there is an error during startup - Parse error in default web.xml

I cannot get past this. Tried rebuilding web.xml and server.xml, copied in fresh ones to no avail.

If anyone has this version working I would be very interested to know what if anything special had to be done.
 
O

ozzi4648

Guest
In the other thread you mentioned that installing 4.0.x solved your installation problems on your new server. I downloaded your version and recieved the same install errors as before namely this one.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x400BE68F
Function=memcpy+0x27
Library=/lib/libc.so.6

Current Java thread:
at java.lang.StringCoding.decode(StringCoding.java:207)
at java.lang.StringCoding.decode(StringCoding.java:226)
at java.lang.String.&init&(String.java:380)
at java.lang.String.&init&(String.java:399)
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:870)

Dynamic libraries:
Can not get information for pid = 24546

Local Time = Mon Nov 4 22:06:32 2002
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#
./bootstrap.sh: line 118: 24546 Aborted (core dumped) &${JAVAC}& $BOOTJAVAC_OPTS -d ${CLASSDIR} ${TOOLS}/bzip2/*.java ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java ${TOOLS}/ant/util/regexp/RegexpMatcher.java

In the end i just removed all reference to Tomcat from httpd.conf because it just doesnt install properly.
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
ozzi - have you tried to reinstall the jvm? Also before Tomcat install in your case, check the env variables and remove any reference to tomcat or jakarta.

Plus make sure the following have the correct paths

CATALINA_HOME=
JAVA_HOME=
PATH=/usr/java/j2sdk1.4.0/bin

That's probably the best I can do for you without knowing the system.
 

HOSTFORWEB

Well-Known Member
PartnerNOC
Feb 6, 2002
94
0
306
The latest tomcat from cpanel 4.1.12 is killing and overloading apache.

Is anyone have some problems?

In the error log something about jk_worker and so on.

The loaded caused by apache is over 100
 

webline

Member
Nov 6, 2003
20
0
151
Singapore
i'm currently running 4.1.12
working fine.

everything works now.
test.jsp works
IsItWorking.class servlet works too

no problem adding servlet to domains/accouns in WHM
:)