You are not logged in.
I've been struggling for weeks just to have a running OpenLaszlo servlet in Tomcat.
And now, I just like to share my experience in running it successfully.
First I tried Sun's JDK and JRE. But I have no luck at that time.
And now I tried to install OpenJDK (idunknow why I tried to choose this), then Tomcat.
Download the OpenLaszlo servlet. Then rename to openlaszlo.war (just for personal preference) then pasted it in /opt/tomcat/webapps/
Before running tomcat, edit first tomcat-users.xml in /opt/tomcat/conf. Add "admin" and "manager" roles. So it'll look like
<user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/>
Then run tomcat
sudo /etc/rc.d/tomcat start
Now go to Tomcat Manager. Enter username: tomcat pass:tomcat then you'll see there that you have a running openlaszlo servlet.
Now try if OpenLaszlo is really running the way it should be by visiting
http://localhost:8080/openlaszlo/my-apps/copy-of-hello.lzx
Here in my system, it shows a java error (can't remember that error).
This is what I did to fix it.
Of course, stop tomcat first
Then go to /opt/tomcat/bin and edit catalina.sh. Then add
export CATALINA_HOME=/opt/tomcat
export CATALINA_BASE=/opt/tomcat
export CATALINA_TMPDIR=/opt/tomcat/temp
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
Still in /opt/tomcat/bin. I ran tomcat with
sudo ./startup.sh
On my system, running
sudo ./startup.sh #in /opt/tomcat/bin
is different from running
sudo /etc/rc.d/tomcat start
I much prefer using the startup.sh, I get lesser errors like "Permission denied" etc..
That's it!
Hope this helps.
Last edited by ragingmon (2008-11-18 15:40:49)
Offline