$ apt-get -y install sun-java5-bin sun-java5-jdk sun-java5-jre sun-java5-fonts

$ apt-get -y install ant

$ ln -s /usr/lib/jvm/java-1.5.0-sun /opt/java

$ ln -s /usr/share/ant/ /opt/ant

$ nano /etc/environment

    ...
    ANT_HOME="/usr/share/ant"
    JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun"

$ apt-get -y install tomcat5.5 tomcat5.5-webapps tomcat5.5-admin

$ nano /var/lib/tomcat5.5/conf/tomcat-users.xml

    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
       <role rolename="tomcat"/>
       <role rolename="role1"/>
       <role rolename="manager"/>
       <user username="tomcat" password="mypassword" roles="tomcat,manager"/>
       <user username="role1" password="tomcat" roles="role1"/>
       <user username="both" password="tomcat" roles="tomcat,role1"/>
    </tomcat-users>

$ sed -i 's/#TOMCAT5_SECURITY=yes$/TOMCAT5_SECURITY=no/' /etc/default/tomcat5.5

$ /etc/init.d/tomcat5.5 restart

$ ln -s /var/lib/tomcat5.5/webapps/ /usr/share/tomcat5.5/

$ ln -s /usr/share/tomcat5.5 /opt/tomcat

$ nano /etc/environment

    ...
    CATALINA_HOME="/usr/share/tomcat5.5"
    CATALINA_BASE="/var/lib/tomcat5.5"
    CATALINA_OPTS="-server -Xms512M -Xmx512M"

2007/9/18, Sergio Cuéllar Valdés <[EMAIL PROTECTED]>:
> 2007/9/18, Chan Lee <[EMAIL PROTECTED]>:
> > Hi,
> >
> > Can someone help on getting Tomcat in Debian 4.0 ?
> > The Tomcat-5 I installed from Debian package repository
> > doen't work as it ran into Java OutOfMemoryError when
> > I tried to open the port 8180 - there's apparent JVM issue.
> >
> > Rather than trying to solve this issue, I decided to install
> > Tomcat from the apache/tomcap homesite, with Java stuffs
> > from the Sun directly. But then installing Java SDK/JRE
> > requires RPM, which is not quite stable in Debian yet.
> > Without RPM, I need to figure out how to configure the Java
> > pieces - executables, header files and libraries - which I
> > have no idea.
> >
> > Or, is there any pre-built & tested Debian Server package
> > available ?
> >
> > Chan
>
> Hi,
>
> Java JDK is in the non-free section
>
> http://packages.debian.org/lenny/sun-java5-jdk
>
> Best regards,
> Sergio Cuellar
>
> --
> "Meine Hoffnung soll mich leiten
> Durch die Tage ohne Dich
> Und die Liebe soll mich tragen
> Wenn der Schmerz die Hoffnung bricht"
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>

Reply via email to