Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Tomcat 6 not working in Opensuse 11.0

  1. #1

    Default Tomcat 6 not working in Opensuse 11.0

    Hi,

    I am very new to Opensuse.
    Earlier I used Windows OS. I learnt so many things about the Linux / Opensuse. It might be so many things to me but less to u guys. I want to write whole history here.
    I just installed Opensuse 11.0 2 weeks back. I installed java 6 with update 13. I downloaded from java website and installed.
    Then when i checked the Java_home path, it was /usr/lib/jvm/java .
    Then we linked installed home directory to the above path, then JAVA_HOME showed as /usr/lib/jvm/java .
    When I was installing java 6, i didnt specify any directory, it took by itself automatically.

    Then I installed tomcat from the yast. It got tomcat 6.0.16-6.4 version.
    I selected
    1) struts-webapps-tomcat6 - Sample struts webapps for tomcat6
    2) tomcat6 - Apache Servlet/JSP Engine, RI for Servlet 2.5/JSP 2.1 API
    3) tomcat6-admin-webapps - The host-manager and manager web applications for Apache Tomcat
    4) tomcat6-docs-webapp - The docs web application for Apache Tomcat
    5) tomcat6-javadoc - Javadoc generated documentation for Apache Tomcat
    6) tomcat6-jsp-2_1-api - Apache Tomcat JSP API implementation classes
    7) tomcat6-lib - Libraries needed to run the Tomcat Web container
    8) tomcat6-servlet-2_5-api - Apache Tomcat Servlet API implementation classes
    9) tomcat6-webapps - The ROOT and examples web applications for Apache Tomcat

    After that I added the user in the tomcat-user.xml.
    <user username="admin" password="ADMIN_PASSWORD" roles="manager"/>

    The same thing reflected into /usr/share/tomcat6/conf/tomcat-users.xml

    Now I can start the tomcat by using the command ./etc/init.d/tomcat6 start.
    It started properly.
    I can open that in browser by using url http://localhost:8080/

    Every thing is fine untill now.
    The problem is when I click Tomcat Manager or Status, its giving error message. HTTP status 401.
    Even i used the following link also http://localhost:8080/struts-examples/
    It gave message like this
    org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:350)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)


    Can any body please solve my problem

    Thanks and Regards
    Ratna

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Tomcat 6 not working in Opensuse 11.0

    Probably means exactly what it says, you don't have a Java compiler. You have a Java runtime in the JRE, since the webapp runs, but you need to install a SDK so that it can compile JSPs. Do this:

    Code:
    rpm -qa | grep java
    and post the results.

  3. #3

    Default Re: Tomcat 6 not working in Opensuse 11.0

    Hi,

    I ran the command that you gave me to run.
    Here are the results.

    ratnalt:/ # rpm -qa | grep java
    sun-javadb-demo-10.4.2-1.1
    sun-javadb-common-10.4.2-1.1
    java-1_6_0-sun-plugin-1.6.0.u13-0.1
    sun-javadb-core-10.4.2-1.1
    sun-javadb-javadoc-10.4.2-1.1
    sun-javadb-client-10.4.2-1.1
    java-1_6_0-sun-1.6.0.u13-0.1
    tomcat6-javadoc-6.0.16-6.4
    sun-javadb-docs-10.4.2-1.1


    And I am sure jdk is installed. I am using the same system as my working computer and Now I am coding in java.
    I have already gave the JAVA_HOME path earlier.

    ANother doubt -----------
    In windows we need to set path = JAVA_HOME/bin.
    Dont we need to set like that or else will it take the default.

    Thanks and Regards
    Ratna

  4. #4
    Join Date
    Jun 2008
    Location
    Finland, European Union
    Posts
    1,879

    Default Re: Tomcat 6 not working in Opensuse 11.0

    You only have JRE - install SDK.

    zypper in java-1_6_0-sun-devel

    Java variables are defined in /etc/java/java.conf and are automatically read, you don't need to define HOME etc.

  5. #5

    Default Re: Tomcat 6 not working in Opensuse 11.0

    Hi Chrisantine,

    I have executed the command that you asked me to run.
    Here are the results.

    ratnalt:/ # zypper in java-1_6_0-sun-devel
    Reading installed packages...

    The following NEW package is going to be installed:
    java-1_6_0-sun-devel


    Overall download size: 13.2 M. After the operation, additional 52.4 M will be used.
    Continue? [YES/no]: yes
    Downloading package java-1_6_0-sun-devel-1.6.0.u13-0.1.i586 (1/1), 13.2 M (52.4 M unpacked)
    Downloading: java-1_6_0-sun-devel-1.6.0.u13-0.1.i586.rpm [done (1.1 K/s)]
    Installing: java-1_6_0-sun-devel-1.6.0.u13-0.1 [done]




    Now what i have to do make the Tomcat run.
    I know its silly question for you, but its big for me.

    Thanks and Regards
    Ratna

  6. #6

    Default Re: Tomcat 6 not working in Opensuse 11.0

    I just restarted the tomcat its behaving like sameway how i explained earlier. Please help me to run the tomcat.

  7. #7
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Tomcat 6 not working in Opensuse 11.0

    You also have to make the SDK package the default Java. Do this:

    Code:
    /usr/sbin/update-alternatives --display java
    If it shows that it's pointing to the JRE, you are still using the wrong one. You can set the SDK to be the default Java by running:

    Code:
    /usr/sbin/update-alternatives --config java
    and following the interactive prompts.

    As root of course.

  8. #8

    Default Re: Tomcat 6 not working in Opensuse 11.0

    Hi I am pasting the results that i got

    ratnalt:~ # /usr/sbin/update-alternatives --display java
    java - status is auto.
    link currently points to /usr/lib/jvm/jre-1.6.0-sun/bin/java
    /usr/lib/jvm/jre-1.6.0-sun/bin/java - priority 1614
    slave policytool.1.gz: /usr/share/man/man1/policytool-java-1_6_0-sun.1.gz
    slave keytool.1.gz: /usr/share/man/man1/keytool-java-1_6_0-sun.1.gz
    slave rmid.1.gz: /usr/share/man/man1/rmid-java-1_6_0-sun.1.gz
    slave orbd.1.gz: /usr/share/man/man1/orbd-java-1_6_0-sun.1.gz
    slave rmid: /usr/lib/jvm/jre-1.6.0-sun/bin/rmid
    slave servertool.1.gz: /usr/share/man/man1/servertool-java-1_6_0-sun.1.gz
    slave javaws.1.gz: /usr/share/man/man1/javaws-java-1_6_0-sun.1.gz
    slave jre_exports: /usr/lib/jvm-exports/jre-1.6.0-sun
    slave javaws: /usr/lib/jvm/jre-1.6.0-sun/bin/javaws
    slave policytool: /usr/lib/jvm/jre-1.6.0-sun/bin/policytool
    slave orbd: /usr/lib/jvm/jre-1.6.0-sun/bin/orbd
    slave rmiregistry: /usr/lib/jvm/jre-1.6.0-sun/bin/rmiregistry
    slave tnameserv: /usr/lib/jvm/jre-1.6.0-sun/bin/tnameserv
    slave rmiregistry.1.gz: /usr/share/man/man1/rmiregistry-java-1_6_0-sun.1.gz
    slave ControlPanel: /usr/lib/jvm/jre-1.6.0-sun/bin/ControlPanel
    slave tnameserv.1.gz: /usr/share/man/man1/tnameserv-java-1_6_0-sun.1.gz
    slave keytool: /usr/lib/jvm/jre-1.6.0-sun/bin/keytool
    slave jre: /usr/lib/jvm/jre-1.6.0-sun
    slave servertool: /usr/lib/jvm/jre-1.6.0-sun/bin/servertool
    slave java.1.gz: /usr/share/man/man1/java-java-1_6_0-sun.1.gz
    Current `best' version is /usr/lib/jvm/jre-1.6.0-sun/bin/java.



    ratnalt:~ # /usr/sbin/update-alternatives --config java

    There is only 1 program which provides java
    (/usr/lib/jvm/jre-1.6.0-sun/bin/java). Nothing to configure.


    Can you please what i need to do.

    Thanks and Regards
    Ratna

  9. #9
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Tomcat 6 not working in Opensuse 11.0

    Dunno. You don't seem to have the SDK installed and I don't run 11.0 any more.

  10. #10

    Default Re: Tomcat 6 not working in Opensuse 11.0

    Is that problem with 11.0, do i need to install 11.1.
    Thanks and Regards
    ratna

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •