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
struts-webapps-tomcat6 - Sample struts webapps for tomcat6
tomcat6 - Apache Servlet/JSP Engine, RI for Servlet 2.5/JSP 2.1 API
tomcat6-admin-webapps - The host-manager and manager web applications for Apache Tomcat
tomcat6-docs-webapp - The docs web application for Apache Tomcat
tomcat6-javadoc - Javadoc generated documentation for Apache Tomcat
tomcat6-jsp-2_1-api - Apache Tomcat JSP API implementation classes
tomcat6-lib - Libraries needed to run the Tomcat Web container
tomcat6-servlet-2_5-api - Apache Tomcat Servlet API implementation classes
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)
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:
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.
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.
When i start the tomcat server, here are the logs.
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/…/lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Jun 25, 2009 9:32:12 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 25, 2009 9:32:12 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1723 ms
Jun 25, 2009 9:32:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 25, 2009 9:32:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Jun 25, 2009 9:32:12 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /srv/tomcat6/webapps/struts-examples inside the host appBase has been specified, and will be ignored
Jun 25, 2009 9:32:14 AM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from ‘/WEB-INF/validator-rules.xml’
Jun 25, 2009 9:32:14 AM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from ‘/WEB-INF/validator/validation.xml’
Jun 25, 2009 9:32:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /srv/tomcat6/webapps/struts-tiles-documentation inside the host appBase has been specified, and will be ignored
Jun 25, 2009 9:32:30 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
INFO: Tiles definition factory loaded for module ‘’.
Jun 25, 2009 9:32:30 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
INFO: Tiles definition factory loaded for module ‘/examples’.
Jun 25, 2009 9:32:30 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
INFO: Tiles definition factory loaded for module ‘/test’.
Jun 25, 2009 9:32:30 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
INFO: Tiles definition factory loaded for module ‘/tutorial’.
Jun 25, 2009 9:32:30 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /srv/tomcat6/webapps/struts-blank inside the host appBase has been specified, and will be ignored
Jun 25, 2009 9:32:30 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
INFO: Tiles definition factory loaded for module ‘’.
Jun 25, 2009 9:32:30 AM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from ‘/WEB-INF/validator-rules.xml’
Jun 25, 2009 9:32:30 AM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from ‘/WEB-INF/validation.xml’
Jun 25, 2009 9:33:03 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /srv/tomcat6/webapps/struts-documentation inside the host appBase has been specified, and will be ignored
Jun 25, 2009 9:33:03 AM org.apache.catalina.startup.HostConfig deployDescriptor
WARNING: A docBase /srv/tomcat6/webapps/struts-example inside the host appBase has been specified, and will be ignored
Jun 25, 2009 9:33:03 AM org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn init
INFO: Initializing memory database plug in from ‘/WEB-INF/database.xml’
Jun 25, 2009 9:33:04 AM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from ‘/WEB-INF/validator-rules.xml’
Jun 25, 2009 9:33:04 AM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from ‘/WEB-INF/validation.xml’
Jun 25, 2009 9:33:08 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “listeners.ContextListener” is already configured for this context. The duplicate definition has been ignored.
Jun 25, 2009 9:33:08 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “listeners.SessionListener” is already configured for this context. The duplicate definition has been ignored.
Jun 25, 2009 9:33:08 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 25, 2009 9:33:08 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 25, 2009 9:33:08 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/39 config=null
Jun 25, 2009 9:33:08 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 56384 ms
I think the main problem is JDK is not set properly.
Tomcat is taking JRE as a jdk.
I’ve had the same problem: For no visible reason tomcat refused to compile jsp pages and gave that “no compiler”-error.
As my last try i uninstalled sun-jdk and tomcat with yast, then reinstalled and everything went fine.
This occured in suse 11.1, susestudio.com build as vmware image.