Tomcat problem

Hi,
my problem is that after installing apache-tomcat-5.5.17.exe in xp, When i write http://localhost:8080/ in internet explorer after starting tomcat then it shows following error:
error
requested url could not retrieved
While trying to retrieve the URL: http://localhost:8080/
The following error was encountered:
Connection Failed
The system returned:
    (111) Connection refusedThe remote host or network may be down. Please try the request again.
Your cache administrator is root. But when i type my ip insted of locahost then its working good.
Suppose
http://192.168.1.6:8080 then it is working.
what's the problem of my tomcat.
Is there anybody can help me.
With regards
Bina

First try using http://127.0.0.1:8080. (127.0.0.1 is the ip address of localhost).
If that works then you need to update your host file to include an entry for localhost. You'll need to consult the help files, documentation or internet to determine the location of the host file for your operating system.

Similar Messages

  • TOMCAT problem on REDHAT 9,PLEASE HELP

    Hello, i am new to redhat and i installed tomcat 4.0.1 and it worked properly, i used tomcat for studying issues so i used to start it and stop it many times
    now when i use mozilla and try to request the server using http://localhost:8080/ ,mozilla status bar shows "Transfering data from localhost" and loops for ever
    so please help me

    I think this is not problem of redhat just check reinstalling tomcat.

  • Viewing Excel Files using Tomcat - Problem with caching

    Hi all,
    A small part of an application I'm writing has links to Excel files for users to view/download. I'm currently using Tomcat v5 as the web/app server and have some very simple code (an example is shown below) which calls the excel file.
    <%@ page contentType = "application/vnd.ms-excel" %>
    <%
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
    response.sendRedirect("file1.xls");
    %>
    This all works except but I'm having one big problem.
    The xls file (file1.xls) is updated via a share on the server so each month, the xls file is overwritten with the same name but with different contents. I'm finding that when an update is made to the xls file and the user then attempts to view the new file in the browser they recieve only the old xls file. It's caching the xls file and I don't want it to. How can I fix this so that it automatically gives the user the new updated file.
    The only way I've managed to get Tomcat to do this is to delete the work directory and delete the file from my IE temp folder and then restart Tomcat - this is a bit much!
    Any help would be greatly appreciated.
    Thanks.

    I'd a problem with caching a few years back, for a servlet request which returned an SVG file.
    As a workaround, I ended up putting appending "#" and a timestamp / random number after it. The browser assuming each request was new, and didn't use the cache.
    Eg.
    http://myserver/returnSVG.do#1234567
    where 1234567 is a timestamp / random.
    Not sure whether you can do this on a file based URL... but maybe worth a shot...
    regards,
    Owen

  • Image will not change on the Browser...Saving on the Tomcat Problem...HELP

    Hi,
    I worte a Servlet project using JBuilder 7 and TOmcat 4. THis is basically what i am doing...
    I am getting an image from database and saving it to a folder in tomcat and then displaying it on a browser.
    This application is used by multiple users...
    I am saving the Image in Tom-cat...C:\JBuilder7\jakarta-tomcat-4.0.3\webapps\examples\Image1.jpeg
    I am also displaying the image from that folder. The problem is when i run the application,
    I am seeing the same Image on the screen..Its creating the different Image file, but the image is the same.
    If i do a refresh on the page then it displays the new saved Image...
    Also, If i save the image on my local and then display it from my local it changes the images as I
    click on a Image list...
    Following is how it works when i save it and display it from my local, but if i run my application from
    another computer i am not able to see any of the images....Because its on my local.
         fos = new FileOutputStream("C:/Image1.jpeg");
         <img src="file:///C|/Image1.jpeg" height="855" name="myimage" align="middle" style="position:absolute;">;
    And this is how i am doing when i am saving to the tomcat....I am able to display it on another computer
    but would not change the image...
    fos = new FileOutputStream("../webapps/examples/Image1.jpeg");
    <img src="../Image1.jpeg" height="855" name="myimage" align="middle" style="position:absolute;">;
    Can some one please tell me what could be the Problem....
    Any help will be greatly appreciated....Thanks...

    The browser caches images so that it doesn't have to always download the same image for different pages.
    You could:
    1: Save the new image with a different name and dynamically change the name in the html.
    2: Try setting the response headers to prevent the browser from caching the images.
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);

  • Log4j and Tomcat-problem

    Hi all,
    First I tried to add some logging to my simple Java code with a xml configuration file and it worked fine.
    Now I am trying to add logging to the whole java application in the same way which runs in tomcat and face with the foll problem.Tomcat is not able to find the configuration file.I tried to place the xml file in all feasible locations in tomcat and also tried to add in classpath but in vain.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
    Java Code(Which gets called in startup by another code)
    Java Code
    public class PublisherPoll implements Runnable {
    public static Logger logger = Logger.getLoggerPublisherPoll.class);//***********log4j
    public static Logger getLoggerInstance(){   //***********log4j
         return logger;
    static{
    DOMConfigurator.configure("sudarson.xml");//**********its telling it cant find/open this xml file
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Error(during starting tomcat)
    log4j:ERROR Could not open [sudarson.xml].
    java.io.FileNotFoundException: sudarson.xml (The system cannot find the file sp
    cified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.jav
    :583)
    at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:
    87)
    at SerenaStartupServlet.init(SerenaStartupServlet.java:44)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper
    java:1091)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:9
    5)

    DOMConfigurator.configure("sudarson.xml");//**********its telling it cant find/open this xml fileWhat does "sudarson.xml" mean to you? To me, it means a file name relative to the current directory. What do you think the current directory is when you're running this in Tomcat?
    You need to research the APIs more fully, to figure out how to give it a resource name relative to the application's classpath, and put that file in said classpath.
    If I were you, I would try to avoid explicitly calling DOMConfigurator.configure altogether, and just pass the appropriate Log4J system property to the commandline that starts up Tomcat. Let Log4J worry about loading the file, given the property. If I recall correctly, the system property name is "log4j.configuration", which defaults to "log4j.properties" if unspecified. Also, rather than have each application running in Tomcat have their own log4j configuration file name, I'd name them something more universal, like "log4j.xml" - then if you deploy multiple apps in Tomcat, they can all load their own log4j.xml file, as long as (again) you corrected the "log4j.configuration" system property.

  • Deployment / running on Tomcat problems

    I have tried to make the 'SimpleValidation' example described in the tutorial.
    And finally building it, making a .war-fil for distribution.
    This .war-file have I copied to the webapps archive on a Tomcat 5.0 server on an other pc.
    The server have apparently distributed the files correctly.
    BUT, I can't load the app. in a browser.
    I have tried flg. command http://localhost:8080/SimpleValidation/Sofus.jsp
    Can anyone help me??

    First I have reworked the simpleValidation app. (used the default jsp -page name 'Page1'.
    I stille have same problem.
    The browser says:
    Type status report
    message /SimpleValdation/Page1.jsp
    description The requested resource (/SimpleValidation/Page1.jsp) is not available
    The stdout.log looks like this:
    19-Apr-2004 09:12:32 org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 8080
    19-Apr-2004 09:12:32 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 3024 ms
    19-Apr-2004 09:12:33 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    19-Apr-2004 09:12:33 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
    19-Apr-2004 09:12:33 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    19-Apr-2004 09:12:33 org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    19-Apr-2004 09:12:33 org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:D:\Tomcat 5.0\conf\Catalina\localhost\admin.xml
    19-Apr-2004 09:12:36 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    19-Apr-2004 09:12:36 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    19-Apr-2004 09:12:36 org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    19-Apr-2004 09:12:53 org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:D:\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
    19-Apr-2004 09:12:53 org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:D:\Tomcat 5.0\conf\Catalina\localhost\manager.xml
    19-Apr-2004 09:12:53 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /jsp-examples from URL file:D:\Tomcat 5.0\webapps\jsp-examples
    19-Apr-2004 09:12:53 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path from URL file:D:\Tomcat 5.0\webapps\ROOT
    19-Apr-2004 09:12:53 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /servlets-examples from URL file:D:\Tomcat 5.0\webapps\servlets-examples
    19-Apr-2004 09:12:54 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /tomcat-docs from URL file:D:\Tomcat 5.0\webapps\tomcat-docs
    19-Apr-2004 09:12:54 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /webdav from URL file:D:\Tomcat 5.0\webapps\webdav
    19-Apr-2004 09:12:54 org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on port 8080
    19-Apr-2004 09:12:55 org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    19-Apr-2004 09:12:55 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/100 config=D:\Tomcat 5.0\conf\jk2.properties
    19-Apr-2004 09:12:55 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 22222 ms
    19-Apr-2004 09:13:34 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /SimpleValidation from URL file:D:/Tomcat 5.0/webapps/SimpleValidation
    19-Apr-2004 09:13:35 org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)
    19-Apr-2004 09:13:35 org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    19-Apr-2004 09:13:35 org.apache.catalina.core.StandardContext start
    SEVERE: Context startup failed due to previous errors
    And the localhost_log looks like this
    2004-04-19 09:12:53 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-04-19 09:12:53 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-04-19 09:12:53 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-04-19 09:12:54 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-04-19 09:12:54 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-04-19 09:13:35 StandardContext[SimpleValidation]Error configuring application listener of class com.sun.faces.config.ConfigureListener
    java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3722)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1073)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:372)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:843)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1671)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1651)
         at java.lang.Thread.run(Unknown Source)

  • MySQL connection pooling (tomcat) problem

    Hi all i just started learning servlets and i want to make a program in order to understand database connection pooling in tomcat.My problem is that when i run the servlet i created i get this error :
    java.lang.NullPointerException org.DB.TestDB2.doGet(TestDB2.java:105) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    And that from tomcat log from netbeans :
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' 
    .I configured tomcat server.xml file like this :
    <Context path="/DBTest" docBase="DBTest"         debug="5" reloadable="true" crossContext="true">   <Resource name="jdbc/phonebook_db" auth="Container" type="javax.sql.DataSource"               maxActive="100" maxIdle="30" maxWait="10000"               username="*******" password="********" removeAbandoned="true"               removeAbandonedTimeout="120" driverClassName="com.mysql.jdbc.Driver"               url="jdbc:mysql://localhost:3306/test_phonebook_db?autoReconnect=true"/> </Context>   
    This is the resource reference i have in my web app web.xml file :
    <resource-ref>       <description>DB Connection</description>       <res-ref-name>jdbc/phonebook_db</res-ref-name>       <res-type>javax.sql.DataSource</res-type>       <res-auth>Container</res-auth>   </resource-ref> 
    And this is my servlet class :
    package org.DB;  import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; import javax.naming.*; import javax.sql.*; public class TestDB2 extends HttpServlet { private Connection conn ; private Statement stat ; private ResultSet rs ; private int counter; private Object rsValue; public void init() {     try {             InitialContext ctx = new InitialContext();             DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/phonebook_db");             conn = ds.getConnection();             }         catch(Exception e) {               e.printStackTrace();         }     }     public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {         try {           stat = conn.createStatement();           rs = stat.executeQuery("SELECT * FROM phones_table");            } catch (SQLException sqle) {         sqle.printStackTrace();         }      response.setContentType("text/html; charset=utf-8");     PrintWriter out = response.getWriter();         String docType = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " + "Transitional//EN\">\n";     out.println(docType +"<HTML>\n" + "<HEAD><TITLE>PhoneBook entries</TITLE></HEAD>\n");         counter = 0;     try {         while (rs.next()) {             out.println("<h4>Entry no. " + (++counter) + "</h4>");             out.println("<table width=\"75%\" border=\"1\">");             out.println("<tr>\n"+ "<td width=\21%\"><b>LastName:</b></td>\n"+ "<td width=\"79%\">");             out.println((((rsValue = rs.getObject("LASTNAME"))==null || rs.wasNull())?                 "":(rsValue.toString())));             out.println("</td>\n</tr>\n" +  "<tr>\n"+                     "<td width=\21%\"><b>FirstName:</b></td>\n"+ "<td width=\"79%\">");             out.println((((rsValue = rs.getObject("FIRSTNAME"))==null || rs.wasNull())?                 "":(rsValue.toString())));             out.println("</td>\n"+ "</tr>\n"+                     "<td width=\21%\"><b>Phone:</b></td>\n"+ "<td width=\"79%\">");             out.println((((rsValue = rs.getObject("PHONE"))==null || rs.wasNull())?                 "":(rsValue.toString())));             out.println("</td>\n" + "</tr>\n" +                     "</table>\n"+ "<br>\n<br>");         }     } catch (SQLException sqle) {         sqle.printStackTrace();     }     out.println("</body>\n"+             "</html>"); } public void destroy() {     try {         rs.close();         stat.close();         conn.close();     } catch (SQLException sqle) {         sqle.printStackTrace();         }     } }{code} Any suggestions?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thank you for your answer.Yes my servlet class is something more worse than horrible(i don't use the database connection correct i don't use the MVC pattern i use out.println() ) but i just tried to take a ready example and try to understand .So i write this servlet myself as a starting point :
    package org.DB;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.*;
    import java.sql.*;
    public class DBServlet extends HttpServlet {
        private Connection conn ;
        private Statement stat ;
        private ResultSet rs ;
        private int counter;
        String driver = "com.mysql.jdbc.Driver";
        String dbURL = "jdbc:mysql://localhost:3306/phonebookdb?user=**********&password=************";
        @Override
    public void init() {
         try {
                Class.forName(driver).newInstance();
                conn = DriverManager.getConnection(dbURL);
         }catch(Exception e) {
                  e.printStackTrace();
                  System.err.print("Unable to make connection ");
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try {
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Servlet DBServlet</title>"); 
                out.println("</head>");
                out.println("<body>");
                out.println("<h1>Servlet DBServlet at " + request.getContextPath () + "</h1>");
                out.println("<br /><br /><br />");
                if(conn!=null) 
                    out.println("conn object : "+conn);
                out.println("</body>");
                out.println("</html>");
            } catch(Exception sq) {
                System.out.println("Exception" + sq.getMessage());
                out.close();
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
         public void destroy() {
         try {
             conn.close();
         } catch (SQLException sqle) {
             sqle.printStackTrace();
        @Override
        public String getServletInfo() {
            return "A Simple Servlet";
    }And it work for now.
    Edited by: pavlos555 on Oct 21, 2008 10:21 AM

  • JSP and Tomcat Problem

    Folks,
    My apologies if this is off-topic for this forum, but I've been having this problem using Tomcat and JSP. I'm fairly new to Java.
    Basically, I'm writing a webapp that uses servlets and JSP together. The servlet and backend classes all compile fine. Now, basic frontend page is called Console.jsp, and one of the commands that it runs is <%@ page import="DJUser">
    Here's the problem: Console.jsp is in $CATALINA_HOME/webapp/
    DJUser (and the rest of the classes I'm using) are in $CATALINA_HOME/webapp/WEB-INF/classes
    When I attempt to run Console.jsp I get this error:
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    The import DJUser cannot be resolved
    An error occurred at line: 9 in the jsp file: /Console.jsp
    Generated servlet error:
    DJUser cannot be resolved to a type
    An error occurred at line: 11 in the jsp file: /Console.jsp
    Generated servlet error:
    user cannot be resolved
    An error occurred at line: 11 in the jsp file: /Console.jsp
    Generated servlet error:
    DJUser cannot be resolved to a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    The ROOT CAUSE is listed as:
    java.lang.ClassNotFoundException: org.apache.jsp.Console_jsp
         java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         java.security.AccessController.doPrivileged(Native Method)
         java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
         org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    I'm running Tomcat 5.5.12 on Mac OS X 10.4. Could this be a permissions issue somehow? For right now (testing purposes only) I have tomcat running under my (non root) account.
    I've been scouring the web for a while, and I can't really find anything on this. I'd appreciate any help you could give me.
    Thanks!
    Dylan

    Put the DJUser java file in a package (say com.myClasses) and recompile. Then put the DJUser class file under the WEB-INF/classes directory in the proper package structure (WEB-INF/classes/com/myClasses/DJUser). Stop and restart the server to pick up the new classes. Make sure to change the jsp import statement ( <%@ page import="com.myClasses.DJUser">)

  • Jdbc on tomcat problem

    Hi all,
    I'm experiencing a unusual problem in
    Apache Tomcat/4.1
    sdk:1.4.1_03-b02
    Linux 2.4.20-8 i386
    I've got an application running on commons-DBCP
    everything seems ok:
    - libs in the commons/lib folder
    - datasource in the context:
    <Resource name="jdbc/devel4_minePooledDS" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/devel4_minePooledDS">
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:thin:@10.10.45.4:1521:orlx</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>30000</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>500</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>30</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mine</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>mine</value>
    </parameter>
    </ResourceParams>
    - enabled in web.xml:
    <resource-ref>
    <description>Resource for DB connections</description>
    <res-ref-name>jdbc/devel4_minePooledDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    - used in this way:
    InitialContext initCtx = new InitialContext();
    DataSource ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/devel4_minePooledDS");
    Connection conn = ds.getConnection();
    - the application simply doesnt start with the following errors, not so helpful, to be honest:
    2004-05-04 09:46:06 StandardWrapperValve[action]: Allocate exception for servlet action
    javax.servlet.ServletException: Servlet.init() for servlet action threw exception
         at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source)
         at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    java.lang.StackOverflowError
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
    I didn't find anything similar
    any helop will be appreciated
    thanks in advance
    jc

    Very worrisome.
    Everything you posted looks right to me.
    I'd forward those errors to the Tomcat mailing lists. They look like serious problems with Tomcat on Linux.

  • Policy Agent Install - Tomcat problems

    Hello,
    After trying to install policy agent on many different OS with no success, I had to finally ask here:
    I followed the instructions and did the following on Debian, Fedora, and Win server 2003:
    1.downloaded the policy agent for tomcat
    2.stopped tomcat
    3.decompressed the j2ee agents folder to the root of the system,
    4 run the agentadmin -install
    5. put the agentapp folder in the webapps directory
    6. started tomcat...
    get the same error on three OS about it not finding AMRealm,
    I found someone pointing out that setagentclasspath could fix this,
    but I see all the classpaths there, so I went I start moving some classes to the tomcat/lib dir
    then the AMRealm error went away but many others came in.
    What I'm doing wrong !!

    I'm having the same problem with windows 2003 server Enterprise Edition. (installer complains about web server instance directory, is not 6.0 or 6.1...)
    You said that "Policy Agent 2.1 does *NOT* work with MS Windows 2003 Server Enterprise edition". But does Policy Agent 2.2 work with Windows 2003 Server Enterprise edition?
    Thanks for your help!!!

  • From resin to Tomcat Problems

    Hi everybody,
    I really need your expertise and help!!!
    We had a server using resin, then they decided to move the application to Tomcat.
    The server admin moved every thing by basically coping the JSP and JAVA files over.
    Then he stopped working on it and they gave it to me :-(
    and of course I have no expereince with this (No clue)
    I managed to get the connection to the database with help from the web.
    My problem is that I have two packages (mdx and sto) Both on the same level under classes folder.
    (They CANNOT see each other) convertFunctions.java Class is in mdx package
    ******************Part of the error ********************
    # javac convertFunctions.java
    convertFunctions.java:3: package sto does not exist
    import sto.*;
    ^
    convertFunctions.java:12: package javax.mail does not exist
    import javax.mail.*;
    ^
    convertFunctions.java:13: package javax.mail.internet does not exist
    import javax.mail.internet.*;
    ^
    When I run the page on the we I get this error
    "Error: HTTP Status 500 -" (It cannot see the methods inside the class)
    convertMenus is inside convertFunctions
    ******************Part of the error ********************
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 26 in the jsp file: /includes/admin_left_nav.jsp
    Generated servlet error:
    The method convertMenus(String, String) is undefined for the type convertFunctions
    I can post any code you want.
    Note that the same application/code is working great on resin.
    Please help; I cannot explain how much I need your help
    Any help would be greatly appreciated
    Thank you in advance

    I did what asked me to do then stop/start tomcat. It did not work.
    I noticed that most of the errors are from changes I made to the classes: convertFunctions.java and UploadFile.java
    I made the changes using (JDeveloper) on my windows machine and SSH (FTP) files to the SUN server.
    Here is how I set the CLASSPATH on the sun box:
    set CLASSPATH .:/usr/jakarta-tomcat-5.5.9/common/lib/servlet-api.jar:
    /usr/jakarta-tomcat-5.5.9/common/lib/jsp-api.jar:
    /usr/jakarta-tomcat-5.5.9/common/lib/servlet.jar $CLASSPATH
    Here is my classpath after I tried to change it (No difference)
    CLASSPATH=.://export/home/oracle/oracle/product/10.2.0/db_1/jdbc/lib:/usr/jakarta-tomcat-5.5.9/common/lib:/usr/jakarta-tomcat-5.5.9/server/lib:/lib:/usr/jakarta-tomcat-5.5.9/shared/lib:/usr/jakarta-tomcat-5.5.9/server/lib/servlet.jar:../../.:/usr/jakarta-tomcat-5.5.9/server/lib/classes12.jar
    I really appreciate your help
    Thank you in advance

  • Using ServletContextListener for background process in tomcat, problems?

    Hi, I am building a web app using mojarra 1.2, hibernate 3.2, mysql 5 and tomcat 6. Currently, there's a need to run a background process every hour to:
    1) query the database
    2) process information
    3) send emails to (big) list of individuals when matched
    4) update database
    5) must happen during business hour
    For now, my approach to this problem is to hook a Timer object inside a class implements ServletContextListener. So that every hour during business hour will process the steps above when Tomcat started until someone shut down shut down Tomcat or when it crash (hopefully that won't happen).
    I read a few articles, they claimed this is not a good approach because in a managed environment, background thread like this won't be in the scope of the container.
    Due to certain reasons, we can't deploy this part as a separate daemon (e.g: jsvc) yet. We'll need to wait for few other things to occur before can we deploy a full daemon services.
    The question for this post is: What are some of the potential problems we will be dealing with when running background thread like this in tomcat? What are some of the things we'll need to watch out for before real problems arise (e.g size of db connection, # of concurrent process, etc) what are some other pitfalls other experienced when deploying background thread in tomcat?
    We hope this solution will be able to handle what needs to be done until our daemon service is ready.
    Thank you for your opinions

    You can try this.. Which gives more grip... in making threads etc..
    Here is a class with a method that sets up a ScheduledExecutorService to beep every ten seconds for an hour:
    import static java.util.concurrent.TimeUnit.*;
    class BeeperControl {
    private final ScheduledExecutorService scheduler =
    Executors.newScheduledThreadPool(1);
    public void beepForAnHour() {
    final Runnable beeper = new Runnable() {
    public void run() { System.out.println("beep"); }
    final ScheduledFuture<?> beeperHandle =
    scheduler.scheduleAtFixedRate(beeper, 10, 10, SECONDS);
    scheduler.schedule(new Runnable() {
    public void run() { beeperHandle.cancel(true); }
    }, 60 * 60, SECONDS);
    }

  • JMS tomcat problem

    Hi,
    I have Tomcat 4.0.3 and a J2EE 1.3.1 reference implementation server.
    From the tomcat server, I am trying to publish into a topic that is on a remote machine. However I get the exception
    javax.naming.NameNotFoundException : Name TopicConnectionFactory is not bound in this context.
    Since this is running from the tomcat server, I cannot give the java -D option for starting the client.
    Also, I have the orb.properties modified to the required machine name.

    javax.naming.NameNotFoundException : NameTopicConnectionFactory is not bound in this context.As the exception says, this is not a JMS problem but rather a JNDI issue. Are you sure that you have bound the name "TopicConnectionFactory" to an object in the context that you are doing the lookup in.
    Steve Trythall

  • Tomcat problem urgent please

    Hi! All
    I just installed jdk1.1.8 and jakarta-tomcat 3.3.2 on windows 2000.
    I also set the path, java_home and tomcat_home as required. But when I try to run Tomcat, it says "Starting Tomcat in a new Window", then a new window opens up and closes immediately.
    Please advice.
    Thank in advance.

    Edit the ... I think it's tomcat.bat file, and where it says something like:
    call "%TOMCAT_HOME%\bin\tomcat-startup" start %1 %2 %3 %4 %5 %6 %7 %8 %9
    Change start to run. This will make it start tomcat in the same window and let you see what the error message is. Most likely it's either a classpath problem, or another application using the port tomcat is trying to use.

  • Tomcat problem please help

    hello,
    i'm using tomcat 3.1 and i have a problem to run my servlet.
    I have a jsp called MyPage.jsp
    in this jsp page i have the following line of code:
    <FORM METHOD="post" ACTION="servlet/package1.MyServlet1">
    in tomcat this is my Structure:
    jakarta-tomcat
    webapps
    MyWebApp (in this folder i have put MyPage.jsp)
    web-inf
    classes
    package1 (in this folder i have put MyServlet1.class)
    there is no problem to display my jsp page but i submit my page
    Myservlet1 is not found
    can someone help me? please
    thank you.

    Hello,
    try this:
    <FORM METHOD="post" ACTION="package1.MyServlet1">
    ciao
    Ric

Maybe you are looking for

  • System Copy on NW 7.3

    Hi Guys, I am stuck with an issue from past few days. We are performing a system copy of a PI system from hardware server to a virtual box. The export was completed successfully. However, during import it is stuck on the 30th step "Perform Initial ja

  • Where can I get service in Israel for my iphone4 (purchased at UK) under warranty ?

    My iPhone4 16G, has been purchased at UK, at Applestore, Brent Cross; Address: Upper West Mall London, NW4 3FP 020 8359 1050 My iPhone is still under warranty till 15-Jan-2012. About 4 weeksago I've noticed that I have problems with my microphone. Wh

  • Re: (forte-users) No response from Router partition

    Sounds like what we have been experiencing here, on Unix. According to Forté, upgrading to 3M should resolve it. Unfortunately, we can't confirm it yet, as we are in the process of upgrading and testing. I believe this is documented as an "internal"

  • Can I view a live Numbers doc using an iFrame on my squarespace site?

    can I view a live Numbers doc using an IFrame on my squarespace site? This is the link: <iframe src="https://www.icloud.com/iw/#numbers/BALkvd4A5ZeoZ6EgvGeBpvA9G_uY0kx0k0-F/Aaron_Gh irardelli_copy" width="100%" height="1000px" frameborder="no" scroll

  • Apple TV resets crashes when you press menu while watching show.

    This is a post for anyone else having the same problem. Situation Turned on 'Unwatched' filter for my TV Shows. Watched a TV Show. Pressed Menu to exit the TV show during the last 5% of the show. Expected Behaviour I expected that I would return to t