Koozali.org: home of the SME Server

installing tomcat on sme 5.5

darren

installing tomcat on sme 5.5
« on: December 03, 2002, 11:34:20 AM »
I got to this step and i am stuck
i am not quite sure what he wants me to do.
i have tested it without this step and i dosn't work
i can start and stop tomcat and httpd without a problem i just can't goto
http://sme-server/ROOT
i just get a cannot be found.
i have gone over the install scripts but to no avail.
is there some silly step i have missed not noted in the howto's.
i.e do i need to open port 8008 or somthing


STEP 11: Fix the links in index.jsp
pico /var/tomcat4/webapps/ROOT/index.jsp
Note:  Changing the links to fix them from generating w/ "ROOT" in everything.


Cheers darren

darren

Re: installing tomcat on sme 5.5
« Reply #1 on: December 03, 2002, 12:04:02 PM »
i don't know if this will help in finding out what the problem is but i tried
"tomcat4 run"


and this is what happened
 tomcat4 run
Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:       /usr/java/jdk
Dec 3, 2002 6:54:54 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Dec 3, 2002 6:54:54 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Dec 3, 2002 6:54:55 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Dec 3, 2002 6:54:55 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
        at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:268)
        at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
        at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1002)
        at org.apache.catalina.core.StandardService.initialize(Unknown Source)
        at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
        at org.apache.catalina.startup.Catalina.start(Unknown Source)
        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
        at org.apache.catalina.startup.Catalina.process(Unknown Source)
        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(Unknown Source)
Catalina.start: LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use:8080
LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use:8080
        at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1004)
        at org.apache.catalina.core.StandardService.initialize(Unknown Source)
        at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
        at org.apache.catalina.startup.Catalina.start(Unknown Source)
        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
        at org.apache.catalina.startup.Catalina.process(Unknown Source)
        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(Unknown Source)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
        at org.apache.catalina.core.StandardServer.stop(Unknown Source)
        at org.apache.catalina.startup.Catalina.start(Unknown Source)
        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
        at org.apache.catalina.startup.Catalina.process(Unknown Source)
        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(Unknown Source)

David Helmuth

Re: installing tomcat on sme 5.5
« Reply #2 on: December 03, 2002, 03:37:45 PM »
Darren,

Check the how-to again.  I appreciate your questions!  I think I have clarified what points you had questions about!

You don't need to open ports!

-Dave

darren

Re: installing tomcat on sme 5.5
« Reply #3 on: December 04, 2002, 06:17:45 AM »
OK it works on http://server:8080/
http://server:8080/ is ROOT

How do i make it so i can run .jsp pages on the standard port 80

David Helmuth


darren

Re: installing tomcat on sme 5.5
« Reply #5 on: December 05, 2002, 05:15:31 AM »
Sorry didn't read the bottom properly.

Would Just like to show my appreciation for the work you have done here.

And to help Improve your how to:
at the bottom of the http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0_Apache-howto.htm

i would put an edit to  /etc/tomcat4/tomcat-users.xml
somting like
pico /etc/tomcat4/tomcat-users.xml

change to



 
 
 


Just to give access to administration and management
Recomend to change password Asap.


and i did notice a few mistakes
i.e

 
WebAppDeploy examples warpConnection /ROOT

should be
 
WebAppDeploy ROOT warpConnection /ROOT


 etc ..

WebAppDeploy tomcat-docs warpConnection /tomcat-docs
 
WebAppDeploy webdav  warpConnection /webdav


Ps.   Thanks

David Helmuth

Re: installing tomcat on sme 5.5
« Reply #6 on: December 05, 2002, 07:31:38 AM »
Very great!  Thanks very much for the feeback! I appreciate it.  I will work those in very soon!

Keep in touch.  I would like to know what else you end up doing!

mike mattos

Re: installing tomcat on sme 5.5
« Reply #7 on: December 30, 2002, 07:00:47 AM »
I have ALMOST got it all ogether, the rpms for the current version don't seem to be available, there is a combined ( IIS / Apache ) archive that contains both .bat and .sh files & binaries with no suitable pathing for SME!  

After much hair pulling I have the http://sme-server/ROOT example working, also tomcat-docs and webdav, but /examples/ says the index.html is missing

One small edit, step 11 in the Tomcat howto refers to /var/tomcat4/webapps/ROOT/index.jsp, on my system the file was and .html file

I appreciate the efforts, without the howto, I'd never have gotten this far

thx

mike

Olivier

Re: installing tomcat on sme 5.5/ SME 5.6
« Reply #8 on: February 21, 2003, 01:24:39 PM »
Hi Dave

Thank you for writing the Apache-Tomcat HowTo's.

Hello togheter

I have used the following howto's:

http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0-howto.htm
http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0_Apache-howto.htm
http://www.helmuth.net/mitel-sme/SunJDK/sunjdk-howto.htm

I want to install tomcat on a SME V 5.6 but I have any problems. Do you know what could be the problem?

First I followed the instructions in
http://www.helmuth.net/mitel-sme/SunJDK/sunjdk-howto.htm - > no probs

Second the instructions in
http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0-howto.htm
- Step 1 allready done

- Step 2, I could not find the files as described in the howto. So I searched over the internet, no success. Well then I found similiar packages. So I downloaded thus:
- tomcat4-4.1.19-full.1jpp.noarch.rpm
- tomcat4-admin-webapps-4.1.19-full.1jpp.noarch.rpm
- tomcat4-webapps-4.1.19-full.1jpp.noarch.rpm
I have downloaded this files at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.1.19/rpms/
I installed this packages without any problems.
The others instructions in the howto I could apply as discribed.

Third the instructions in
http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0_Apache-howto.htm

Step 10, when I do "service tomcat4 restart" I get
[root@srvwirfoe01 httpd.conf]# service tomcat4 restart
Stopping tomcat4: which: no java in (/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin)
Found JAVA_HOME: /..
Please complete your /etc/tomcat4/tomcat4.conf so we won't have to look for it next time
Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:       /..
dirname: too few arguments
Try dirname --help' for more information.
/usr/bin/dtomcat4: /../bin/java: No such file or directory
/usr/bin/dtomcat4: exec: /../bin/java: cannot execute: No such file or directory
                                                           [ FAILED ]
Starting tomcat4:                                          [   OK   ]
[root@srvwirfoe01 httpd.conf]#

Step 11, I could not find the section on about line 153
so I could not do any changes

Step 12, when I look around at the pages (links) in the howto I get an HTTP 404: from the webserver.

For assistance thanks in advance

Olivier

darren

Re: installing tomcat on sme 5.5/ SME 5.6
« Reply #9 on: February 24, 2003, 03:25:46 AM »
The only time i had this problem was when i installed the JRE version not the  SDK version.

so apart from suggesting that you make sure you installed the sdk version can't help

Steen Ole Andersen

Re: installing tomcat on sme 5.5/ SME 5.6
« Reply #10 on: February 28, 2003, 08:23:34 PM »
I have had the exact same problems as Olivier, and has not found any solutions yet.

Any help would be appreciated.

/Steen Ole Andersen

Olivier

Re: installing tomcat on sme 5.5
« Reply #11 on: March 12, 2003, 02:18:05 PM »
Hi David

Thank you for your hints.
Well I downloaded from the mentioned url. There the actual version is 4.1.22 - so when I try to install these packages during setup the system with your how-to I get a lot of file dependencies. Then I tried to search the missed packages, unfortunately I could not find all needed packages. So I start again to install an old version of tomcat (4.1.19). I did a new server setup. After step 5 in http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0-howto.htm I could start the tomcat4 service. Then I tried to do a service tomcat4 stop I get a the following failled message.

[root@srvlinux01 etc]# service tomcat4 stop
Stopping tomcat4: which: no java in (/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin)
Found JAVA_HOME: /..
Please complete your /etc/tomcat4/tomcat4.conf so we won't have to look for it next time
Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:       /..
dirname: too few arguments
Try dirname --help' for more information.
/usr/bin/dtomcat4: /../bin/java: No such file or directory
/usr/bin/dtomcat4: exec: /../bin/java: cannot execute: No such file or directory
                                                           [ FAILED ] [root@srvlinux01 etc]#

What could be the problem?
Thanks for your assistance.
Olivier

Olivier

Re: installing tomcat on sme 5.5/5.6
« Reply #12 on: March 12, 2003, 02:58:33 PM »
Hello togheter

after get the failure mentioned above I followed the instructions in David Helmuth's HowTo. The rest of the howto I did without any problems.

Arrived at the end (step 12) I would like to test the installation

http://sme-server/ROOT/
http://sme-server/examples/
http://sme-server/tomcat-docs/
http://sme-server/webdav/

from each one of these addresses I get an HTTP 404: Not found Error.

Has anyone the whole installation working?
Thanks for any hints
Olivier