Results 1 to 3 of 3
  1. #1
    sspbond007 is offline Member
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0

    Default problem in installing app on Tomcat 6 at linux

    Hi
    I developed a web application, I deployed it on Tomcat 6 at windows, it worked fine. It also run successfully on eclipse also.
    But when I installed it on Tomcat 6 at linux server, I got following error

    Java Code:
    org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 14
    
    11: <%@ page import="java.util.List"%>
    12: <%@ page import="domain.model.Connections"%>
    13: <%@ page contentType = "text/html; charset=UTF-8" pageEncoding="UTF-8"  %>
    14: <html:html>
    15: 
    16: 
    17: <head>
    
    
    Stacktrace:
    	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	java.lang.reflect.Method.invoke(Method.java:616)
    	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    	java.security.AccessController.doPrivileged(Native Method)
    	javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
    	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    
    root cause
    
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.HtmlTag
    	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
    	org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.java:71)
    	org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:768)
    	java.security.AccessController.doPrivileged(Native Method)
    	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:766)
    	org.apache.jsp.index_jsp._jspService(index_jsp.java:96)
    	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	java.lang.reflect.Method.invoke(Method.java:616)
    	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    	java.security.AccessController.doPrivileged(Native Method)
    	javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
    	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    
    root cause
    
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.HtmlTag
    	sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    	java.lang.Class.newInstance0(Class.java:372)
    	java.lang.Class.newInstance(Class.java:325)
    	org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
    	org.apache.jsp.index_jsp._jspx_meth_html_005fhtml_005f0(index_jsp.java:108)
    	org.apache.jsp.index_jsp._jspService(index_jsp.java:87)
    	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	java.lang.reflect.Method.invoke(Method.java:616)
    	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    	java.security.AccessController.doPrivileged(Native Method)
    	javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
    	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    Please help me...

  2. #2
    sspbond007 is offline Member
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0

    Default

    And this is my jsp page

    Java Code:
    <%@ page language="java" %>
    <%@ taglib uri="/tags/struts-html"	prefix="html" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <%@ taglib uri="/tags/struts-bean" prefix="bean"%>
    <%@ taglib uri="/tags/struts-html-el" prefix="htmlel" %>
    <%@ taglib uri="/tags/jstl-core" prefix="c" %>
    <%@ taglib uri="/tags/corelib-html"	prefix="corelibhtml" %>
    <%@ taglib uri="/tags/display" prefix="display"%>
    <%@ taglib uri="/tags/displayel" prefix="display-el"%>
    <%@ page import="java.util.List"%>
    <%@ page import="domain.model.Connections"%>
    <%@ page contentType = "text/html; charset=UTF-8" pageEncoding="UTF-8"  %>
    <html:html>
    
    
    <head>
    <script language="javascript">
    	function doUpload(){
    		document.connectionsActionForm.action="connectionsAction.do?eventName=imageUpload&entityName=connections&image=testingPurpose&imageName=test.png";	
    		document.connectionsActionForm.submit();
    				}
    				
    	function doInsert(){
    		document.connectionsActionForm.action="connectionsAction.do?eventName=create&entityName=connections&xmlData=";	
    		document.connectionsActionForm.submit();
    	
    	}
    	function doGenerateMap(){
    		document.connectionsActionForm.action="connectionsAction.do?eventName=map&entityName=connections&lat=28.6&longt=72.6&zoom=8";	
    		document.connectionsActionForm.submit();
    	
    	}
    				
    </script>				
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="expires" content="0">
    
    <title>Test</title>
    <link rel="StyleSheet" href="img/newswadmin.css" type="text/css">
    </head>
    <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
    		<html:form action="/connectionsAction.do">
    		<!-- <input type="button" value="imageUpload" onclick="doUpload();"/>
    		<input type="button" value="adds" onclick="doInsert();"/> -->
    		<input type="button" value="map" onclick="doGenerateMap();"/>
    </html:form>
    
    </body>
    </html:html>

  3. #3
    racerxadam is offline Member
    Join Date
    Jul 2008
    Posts
    68
    Rep Power
    0

    Default

    Your tomcat installation can't find the class org.apache.struts.taglib.html.HtmlTag. I'm not sure where that class is supposed to be but most likely it's it is in a jar that is not on the classpath of your server.

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2009, 05:05 AM
  2. [SOLVED] Problem with setVisible(); on LINUX
    By lepetitprince in forum AWT / Swing
    Replies: 9
    Last Post: 11-22-2008, 05:14 PM
  3. Problem locating resources on Linux.
    By jimm1 in forum New To Java
    Replies: 1
    Last Post: 01-18-2008, 07:34 PM
  4. problem with ServerSocket on Linux
    By gabriel in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:46 PM
  5. Running Tomcat in Linux from Eclipse.
    By Felissa in forum Eclipse
    Replies: 1
    Last Post: 06-05-2007, 06:47 AM

Posting Permissions

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