Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: tdbsoft on May 27, 2006, 03:36:46 AM
-
I have installed the SME version of Java Tomcat V5 using the following rpm's
sme-j2sdk-1.4.2-2.i386.rpm
apache-mod_jk-2.0-2.noarch.rpm
sme7-tomcat-5.0.28-15.noarch.rpm
and followed the howto to setup the httpd.conf and basic configuration http://www.howtoforge.com/apache2_tomcat5_mod_jk and all seems to be working of a fashion.
If I enter http://servername
and press enter I can see and run html pages in the primary ibay but if I try to run .jsp file I get error 500 IE http://servername/my.jsp
If I enter http://servername:8085 I get the default tomcat page and can run jsp files but they are run from under the tomcat home directory not the primary ibay.
What I need to be able to setup is so that both work from the default webpage http://servername
Can anyone help, I have already checked most howto's available but most are for other systems or dont help.
-
Maybe you could specify the following:
Modifications to httpd.conf, and where you placed those
mod_jk.conf, or the relevant httpd.conf include, and its location
any other files included in the above, like workers.properties.
You specified a howto, which is on a different system. You cant really have followed it. (You wouldnt get a 500, you would get plaintext code).
Usually a 500 error with jsp is mod_jk connecting to tomcat, when tomcat isnt up...
Because tomcat is running, on some port, mod_jk is most likely looking at the wrong place.
-
Maybe you could specify the following:
Modifications to httpd.conf, and where you placed those
mod_jk.conf, or the relevant httpd.conf include, and its location
any other files included in the above, like workers.properties.
#module jakarta tomcat
LoadModule jk_module modules/mod_jk.so
#jakarta tomcat
<IfModule mod_jk.c>
JkWorkersFile "/usr/local/tomcat/conf/tomcat.properties"
</IfModule>
<VirtualHost 0.0.0.0:80>
...
...
JkMount /*/servlet/* worker1
JkMount /*.jsp worker1
</VirtualHost>
Include /usr/local/tomcat/conf/auto/mod_jk.conf
JkWorkersFile /usr/local/tomcat/conf/tomcat.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
<LocationMatch '.*WEB-INF.*'>
AllowOverride None
deny from all
</LocationMatch>
You specified a howto, which is on a different system. You cant really have followed it. (You wouldnt get a 500, you would get plaintext code).
You are correct if I run http://webserver/date.jsp I get
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@tdb.biz and inform them of the time the error occurred, and anything you might have done that may have caused the error.
If I run http://webserver:8085/date.jsp
HTTP Status 404 - /date.jsp
--------------------------------------------------------------------------------
type Status report
message /date.jsp
description The requested resource (/date.jsp) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.12
More information about this error may be available in the server error log.
The both the httpd and tomcat logs do not seem have any errors .
Usually a 500 error with jsp is mod_jk connecting to tomcat, when tomcat isnt up...
Because tomcat is running, on some port, mod_jk is most likely looking at the wrong place.
Independently both httpd and tomcat seem to be working but from different directories and ports.
Thanks for you help, I had hoped this would be fairly easy to setup as only need to get tomcat to work on default directory to process jsp files.
-
I can't see any obvious problems...
I'm trying to set up a test environment, but I need the rpm's you specified.
(No luck at smeserver.free.fr)
Could you give me a url?
It looks like you didn't template any modifications in your httpd.conf. If you have directly modified /etc/httpd/conf/httpd.conf, changes will be lost with any relevant system event.
-
I can't see any obvious problems...
I'm trying to set up a test environment, but I need the rpm's you specified.
(No luck at smeserver.free.fr)
Could you give me a url?
It looks like you didn't template any modifications in your httpd.conf. If you have directly modified /etc/httpd/conf/httpd.conf, changes will be lost with any relevant system event.
Thanks for your help.
In reviewing the httpd.conf I found one of the problems in that the tomcat.properties files was defining the host as localhost but httpd was trying to use worker1. Any way I have fixed that and now httpd passes the .jsp file to tomcat but I am still get the file not found error.
EG http://servername/date.jsp gives a tomcat error but no need to specify the port any more.
Nearly there just need to have httpd and tomcat look for all files in the same place. At the moment I think that httpd is looking in the primary sme server but tomcat is look at ./tomcat/webserver/context (or similiar). Any ideas on how to set both to the save directory?
-
Could you give me a url?
It looks like you didn't template any modifications in your httpd.conf. If you have directly modified /etc/httpd/conf/httpd.conf, changes will be lost with any relevant system event.
The only url I have is http://smeserver.free.fr/ox/ox7 and it no longer seems to function my be down or maybe they have removed them for some reason.
Templates, yes I will do that as soon as I have every thing working at the moment it is only a test server to iron out all the bugs and do some testing on the java webpages etc.
-
I was able to locate the rpms (at /files/open-xchange/ox7 instead of /ox/ox7).
Want you want to do is change the webroot of tomcat to your own. There is probably a 'right' way of doing this, but I'm not sure how to change the webroot, and place it outside of CATALINA_HOME.
Here's the easy way out:
#cd /usr/local/tomcat/webapps
#mv ROOT ROOT_orig
# ln -s /home/e-smith/files/ibays/Primary/html ROOT
which will link your Primary ibay to the tomcat webroot.
-
Hello, sorry for my english.
I have installed fresh SME 7 final, and i need working tomcat for new www.
I have use following rpms:
rpm -iUvh *...
sme-j2sdk-1.5.0-07.i386.rpm
sme7-tomcat-5.5.12-10.noarch.rpm
apache-mod_jk-2.0-2.noarch.rpm
Then i restart sme.
next...
1.
#cd /usr/local/tomcat/webapps
#mv ROOT ROOT_orig
#ln -s /home/e-smith/files/ibays/Primary/html ROOT
2. next i start tomcat, and it start with no errors
When i try to connect http://smeserver:8080 or 8005 or 8035 i have error 404 :(
Java installed ok
[root@serwer ~]# which java
/usr/local/java/bin/java
Tomcat start ok
/etc/init.d/tomcat start
Starting : tomcat [ OK ]
What the problem ??
Pleas help me little by little becaus im a complete amateur.
Greetings