Tomcat  can ....?

hi all,
Can anybody give a summary of " how to handle Clustering ,load balancing and JAAS using tomcat"?
I am using tomcat 5.0.28
Thanks in adv.
Ganesh

Hello Robert,
You cannot get the reason of this without looking at logs. However, You can restart the service from CLI.
Here’s the list of UCCX utils commands which you can use it from CLI.
utils service [list start stop restart auto-restart]
This is the CLI command for service control.
The CLI command allows starting, stopping, and restarting of all the services as listed:
System SSH
Service Manager
A Cisco DB
Cisco Tomcat
Cisco Database Layer Monitor
Cisco Unified Serviceability
Cisco CAR DB
Service Manager
Cisco Unified CCX Cluster View Daemon
Cisco Unified CCX Database
Cisco Unified CCX Application Administration
Cisco Unified CCX Serviceability Administration
Cisco Unified CCX Engine
Cisco Desktop Agent E-Mail Service
Cisco Desktop Call/Chat Service
Cisco Desktop Enterprise Service
Cisco Desktop LDAP Monitor Service
Cisco Desktop License and Resource Manager Service
Cisco Desktop Recording and Playback Service
Cisco Desktop Recording and Statistics Service
Cisco Desktop Sync Service
Cisco Desktop VoIP Monitor Service
Cisco Desktop Browser and IP Phone Agent Service
Cisco Unified CCX Notification Service
Example:
admin: utils service start "Unified CCX Application Administration"
Command successful.
Unified CCX Application Administration started successfully.
=============================Command Syntax: ===================================
utils service [option] [service-name]
—The option to start/stop/restart etc.
—The service which is to be started/stopped or restarted.
Requirements
Level privilege: 1
Command privilege level: 1
Thanks,
Surendra Tripathi

Similar Messages

  • Tomcat can't locate my class files

    Tomcat can't locat my class file for my javabeans in a jsp page.
    (Tomcat 4.1.24/windows XP)
    I have created inside of webapps a directory thesis and also the WEB-INF\classes and WEB-INF\lib. I don't know what should I put in web.xml so it is basically almost empty.
    this is the error I get where Searcher is my javabean:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:89: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] Searcher seek = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:91: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) pageContext.getAttribute("seek", PageContext.PAGE_SCOPE);
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:94: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Searcher");
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:111: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] out.print(JspRuntimeLibrary.toString((((Searcher)pageContext.findAttribute("seek")).getAnalyze())));
    [javac] ^
    [javac] 4 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         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)

    did you create the Searcher class? if so stick it in a package and put it under your web-inf directory. then use an <%@ page import="" %> statement to import the code.
    if you didn't create the class is it in some jar library you downloaded? if so stick the jar file in your web-inf/lib folder.
    -S-

  • Tomcat Can't Find Bean

    Hello-
    I am trying to use JSP to call a bean and it keeps telling me that it could not compile because...
    "Class org.apache.jsp.DataBaseSelect not found."
    All my files are located in the webapps/ROOT under my own directory called "project".
    DataBaseSelect is the name of my class file. This class file is located in the following directory...
    jakarta-tomcat-4.0.1/webapps/ROOT/project/WEB-INF/classes/DataBaseSelect.class
    My JSP page is located here...
    jakarta-tomcat-4.0.1/webapps/ROOT/project/test.jsp and it calls the bean by using this statement...
    <jsp:useBean id="select" class="DataBaseSelect" scope="request">
    </jsp:useBean>
    Do I need to do something to the WEB-INF/web.xml file to tell it about my bean? Do I need to make my bean part of a package somehow? Why does the compiler think my bean is part of "org.apache.jsp"?
    Note: I have gotten a straight JSP (no bean) page to work in this same directory.
    Please help and thanks for the effort...
    Zac

    I took the advice of both posts above and have made some progress... Now it seems Tomcat can find my bean but I am getting this error...
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Cannot create bean of class DataBaseSelect
         at org.apache.jsp.test$jsp._jspService(test$jsp.java:78)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:484)
    root cause
    java.lang.ClassCastException: DataBaseSelect
         at org.apache.jsp.test$jsp._jspService(test$jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:484)

  • TOMCAT CAN�T FIND BEAN CLASSE

    Hello, i am from Argentina. i need URGENT help with tomcat, because i am developing my final thesis.
    I have all my sources in
    C:\jakarta-tomcat-5.0.16\webapps\tesis
    C:\jakarta-tomcat-5.0.16\webapps\tesis\ (archivos jsp)
    C:\jakarta-tomcat-5.0.16\webapps\tesis\lib
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\edu\tesis\beans
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\edu\tesis\queries
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\fede\servlets
    my problem is that when i execute the login.jsp through the browser in this way
    http://localhost:8080/tesis/login.jsp
    tomcat can�t find the edu.tesis.beans package
    In compiled jsp class i can see this
    package org.apache.jsp;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import edu.tesis.beans.*;
    so, the problem is that tomcat set package org.apache.jsp; to my jsp, so it can�t find edu.tesis.beans package.
    This is my context path that is in $CATALINA_HOME/conf/server.xml file
    <Context path="/tesis" docBase="C:\tomcat\webapps\tesis"
    debug="9"
    reloadable="true"
    crossContext="true"/>
    This is an extraction of my jsp file
    <html>
    <head>
    <%@page import="edu.tesis.beans.*"%>
    </head>
    <body>
    <jsp:useBean id="universidad" class="edu.tesis.beans.Universidad" scope="request" />
    <form action="servlets/fede.servlets.ServletMaxwell" method="post"><BR><BR><BR><BR>
    PLEASE, I NEED AN URGENT HELP!!!!
    THANKS,
    FEDERICO

    Tampoco te preocupes porque Tomcat cambie el paquete de las p�ginas jsp. Eso es un comportamiento normal. Adem�s nota que el paquete de tu tesis es importado en la clase generada a partir del jsp, o sea que deberia encontrarla si est� en el lugar correcto.
    Otra cosa que veo extra�a en tu estructura de directorios es que existe un directorio "lib" por fuera de WEB-INF. Si este contiene beans en forma de paquetes jar, deberia estar dentro de WEB-INF

  • Apache FileUpload - what version of Tomcat can run it?

    Hi. I'm trying to use the Apache Commons FileUpload component (http://commons.apache.org/fileupload). It works fine on my local PC (Java 1.5.0_15) but fails on the Unix server running Tomcat 4.1.29 and Java 1.4.2_12-b03. I've got the latest version of the upload component in the WEB-INF/lib folder. It throws this error (included only the top section; there are more, similar errors having to do with each fileupload component call). Do I need an older version of the upload component to work with this version of Tomcat and Java? If so, which version do I need to download? The oldest I could find dated to 2003. Thanks.
    The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 15 in the jsp file: /fpauto/viewPremiums.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:12: package org.apache.commons.fileupload does not exist
    import org.apache.commons.fileupload.FileItem;
    ^/usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:14: package org.apache.commons.fileupload.servlet does not exist^
    ^import org.apache.commons.fileupload.servlet.ServletFileUpload;^
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:15: package org.apache.commons.fileupload.disk does not exist
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    ^/usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:16: package org.apache.commons.fileupload does not exist^
    ^import org.apache.commons.fileupload.FileUpload;^
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:74: cannot resolve symbol
    symbol : class DiskFileItemFactory
    location: class org.apache.jsp.viewPremiums_jsp
    DiskFileItemFactory factory = new DiskFileItemFactory();
    An error occurred at line: 15 in the jsp file: /fpauto/viewPremiums.jsp
    Generated servlet error:
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:74: cannot resolve symbol
    symbol : class DiskFileItemFactory
    location: class org.apache.jsp.viewPremiums_jsp
    DiskFileItemFactory factory = new DiskFileItemFactory();

    Apache FileUpload - what version of Tomcat can run it?First of all, why don't you ask Apache specific questions at the Apache mailinglist?
    Regarding to your actual problem: those are just ordinary compilation errors which are complaining that the mentioned packages and classes aren't available in the classpath. The solution is obvious: add the mentioned packages and classes (or in this case, the JAR file(s) with it) to the classpath during compile time and you're fine.

  • Tomcat - Can't change from port 9006 - 80 in standalone

    Hope someone can help with this one. I am running OS X 10.4 and have Tomcat 4.1.29 running in standalone mode. The default web page (and any applications I have) will run on port 9006 without issue. I can change to many other ports (e.g. 9019, 5300...) by modifying the server.xml as most documentation suggests.
    However; when I put in port 80, or 8080 It won't work. (Seems to be a conflict but yet I can't find any thing running on port 80).
    I am hoping something quick here but I am stumped right now.
    Thanks for any assistance.
    Jim
      Mac OS X (10.4)  

    Thanks so much for the reply. Unfortunately, I am still not there.
    I am in Tomcat Standalone only. I don't have Apache, JBOSS or any Web services running. So when I go to look for sites and the Performance cache these are not turned on.
    The only service I have running is the Application server in standalone tomcat. I have no issue running Tomcat on port 9006 (and some other ports which I am not interested) but as soon as I try to change the server.xml to port 80 tomcat will no longer come up. (And no logs that I can find telling me what is wrong.)
    I have seen some posts about using Tomcat and Apache together via AJP (I think) but I really would prefer to just run Tomcat by itself and use the server.xml to control the ports and such.
    Any other ideas?
    Much appreciated.
    Jim

  • Tomcat can't run servlet /servlet tag help me please!

    do I config the web.xml file?

    Take a look at:
    http://java.sun.com/dtd/web-app_2_3.dtd
    It is the definition of what can be (and in what order) in a web.xml file for servlet specification 2.3 (ie: Tomcat 4.1).

  • Tomcat can't find oracle classes12.jar what to do?

    hi,
    i have managed to come this far with my "simple" webapplication under tomcat that i can see the application startpage but when i click browse the following
    exception is thrown:
    java.lang.NoClassDefFoundError: oracle/sql/NUMBER
    since i have tried to put the classes12.jar in every reasonable directory without effect, i have to bother this forum. does anyone know "where the dog is burried"(german saying)?
    greetz
    Selim Keser

    I'm sorry I wasn't clear.
    I have a feeling you might not have to do this because you wouldn't have gotten so far without knowing how.
    "chown" is a command in UNIX like systems to change the owner of a file or directory.
    When I was having problems similar to yours, I noticed that all of the files that I copied onto my server listed the owner as root and the group as root.
    The version of Tomcat I am running on Linux requires that the files be owned by "apache". So by changing to the directory where the files in question are located, you can run the UNIX command "chown apache:apache *" and it will change the owner/group to apache.
    If you're running in some other OS (Windows) I can't really help since I've never successfully installed and invoked Tomcat on Windows.
    HTH.
    Thanks, George

  • Tomcat can't find my servlets

    Whenever i try to access one of my servlets via http://localhost:8080/photodb/servlet/dtic.photodb.webapp.PhotoList, I get a 404 error. I am using Tomcat 4.1.12, but i had no troubles in 4.1.10. Does Tomcat 4.1.12 require special configuration, or could something else be the cause of this problem?
    Thanks in advance
    Ryan

    Hi,
    Tomcat 4.1.12 has a bug fix done on the InvokerServlet. The InvokerServlet is responsible for serving the servlet requests. In all the previous versions the InvokerServlet will be enabled by default. In the latest version, it is commented out. You will have to uncomment this for your servlets to be serverd. The changes needs to be done in the <tomcat_home>/conf/web.xml file.
    Uncomment the following lines
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    More details regarding the bug and the fix can be found at the following url
    http://online.securityfocus.com/archive/1/292936/2002-09-21/2002-09-27/0
    Thanks
    Shanmugam.PL
    Whenever i try to access one of my servlets via
    http://localhost:8080/photodb/servlet/dtic.photodb.weba
    p.PhotoList, I get a 404 error. I am using Tomcat
    4.1.12, but i had no troubles in 4.1.10. Does Tomcat
    4.1.12 require special configuration, or could
    something else be the cause of this problem?
    Thanks in advance
    Ryan

  • Tomcat can't find JDK

    Hi
    I have my JAVA_HOME set to C:\j2sdk1.4.1_01
    I have just upgraded my jdk. Tomcat now won't load anymore since I upgraded. It says that it can't load the JVM. Any suggestions?
    Thanks

    You need to Upgrade u r Tomcat!!

  • Tomcat can't find the servlets!

    Hi!
    I've just installed tomcat tomcat-5.5.16 with apache. Tomcat runs ok. It shows some samples (delivered with tomcat) under www.mywebsite.com/servlets-example and also www.mywebsite.com/jsp-examples. JSP files work perfectly, but when I try the servlets it can't find them:
    www.mywebsite.com/servlets-examples/servlet/RequestHeaderExample Object not found!my classpath lokks like this:
    /opt/SUNWappserver/jdk/lib:/opt/apache-tomcat/common/lib/servlet-api.jar:/opt/apache-tomcat/bin:/opt/apache-tomcat/webapps/servlets-examples/WEB-INF/classes:/opt/apache-tomcat/webapps/ROOT/WEB-INF/classesand web.xml looks like this:
        <servlet>
            <servlet-name>invoker</servlet-name>
            <servlet-class>
              org.apache.catalina.servlets.InvokerServlet
            </servlet-class>
            <init-param>
                <param-name>debug</param-name>
                <param-value>0</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
        </servlet>and
        <!-- The mapping for the default servlet -->
        <servlet-mapping>
            <servlet-name>default</servlet-name>
            <url-pattern>/</url-pattern>
        </servlet-mapping>
        <!-- The mapping for the invoker servlet -->
        <servlet-mapping>
            <servlet-name>invoker</servlet-name>
            <url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>I changed the web.xml und conf and under WEB-INF.
    I also changed server.xml to make tomcat work with apache on port 80.
    What did I do wrong? What did I forget?
    What is the difference between web.xml under conf and the ones under WEB-INF?
    Thanks for any help.

    opt/SUNWappserver/jdk/lib:/opt/apache-tomcat/common/lib/servlet-api.jar:/opt/apache-tomcat/bin:/opt/apache-tomcat/webapps/servlets-examples/WEB-INF/classes:/opt/apache-tomcat/webapps/ROOT/WEB-INF/classes
    May be ur classpath will be wrong try the classpath like this
    ;C:\Tomcat5\common\lib\servlet-api.jar;C:\Tomcat5\common\lib\jsp-api.jar;C:\Tomcat5\common\lib\log4j-1.2.9.jar;C:\Tomcat5\common\lib\mysql-connector-java-3.1.8-bin.jar;hello
    Check out all the enteries in the web-xml file and the path in the environment variable i your system.

  • Tomcat can't find existing file

    Hello,
    unfortunately i keep getting the following error:
    Servlet /tomcat-docs threw load() exception
    javax.servlet.ServletException: Service not available (propertyFile not loadable:Can't find properties file /usr/share/tomcat4/webapps/tomcat-docs/../webapps/ROOT/conex/WEB-INF/properties/cp.xmlWhat annoys me about it is that the file cp.xml exists in the very directory. Any ideas how something like this can happen?

    The best way to do it is to use the methods of ServletContext.
    ServletContext.getRealPath("WEB-INF/properties/cp.xml")
    This method turns a website relative url into a real file location on the disk. It makes your web app independant of where it is deployed.
    The other useful method is ServletContext.getResourceAsStream("/pathtoresource") which returns an input stream to the resource. This call will succeed even if the application is in a WAR file, where the path returned by getRealPath() may not be as easily accessible.
    ServletContext application = getServletConfig().getServletContext();
    String filename = application.getRealPath("WEB-INF/properties/cp.xml")
    File inFile = new File (filename);Cheers,
    evnafets

  • Help! My tomcat can't startup?

    hi, guys:
    when I execute the tomcat.bat. The prompt shows
    Including all jars in C:\jdk13\tomcat\lib in your CLASSPATH.
    Out of environment space
    Using CLASSPATH: C:\jdk13\tomcat\classes;.;C:\jdk13\lib\*.jar;c:\jdk13\lib\class
    es111.zip;c:\jdk13\lib\tools.jar
    Bad command or file name
    Out of environment space
    Out of environment space
    Including all jars in C:\jdk13\tomcat\lib in your CLASSPATH.
    Out of environment space
    Out of environment space
    Using CLASSPATH: C:\jdk13\tomcat\classes;C:\jdk13\tomcat\classes;.;C:\jdk13\lib\
    *.jar;c:\jdk13\lib\classes111.zip;c:\jdk13\lib\tools.jar
    Out of environment space
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/jasper/Jsp
    C
    How can I correct this problem? My working environment is Windows ME. Thanks a lot. bye
    Regards

    To correct the environment space error you must do the following:
    1.Locate the tomcat.bat and startup.bat files
    2.Right click on tomcat.bat
    3.Select properties
    4.Choose the memory tab
    5.In the conventional memory section use the initial environment dropdown and set it to 2816 (or higher)
    6. Apply changes
    7.Repeat for startup.bat
    Also make sure that the tomcat_home and java_home variables are set correctly
    Hope this helps
    Chelman

  • A problem with Tomcat (Can't run tomcat as a service.).

    Hi
    May be you can help me (please).
    I do the following steps, as described in many documents I've found.
    1. Downloaded the jk_nt_service.exe and put it into jdk1.3.1jre\bin\classic
    2. configured wrapper.properties:
    wrapper.tomcat_home=C:\tomcat324 wrapper.java_home=C:\work\jdk1.3.1
    3. Run:
    C:\>jk_nt_service.exe -i tomcat C:\tomcat324conf\wrapper.properties
    C:\>jk_nt_service.exe -s tomcat
    C:\>net start tomcat
    In this step I get the following error:
    A system error has occurred.
    System error 1067 has occurred.
    The process terminated unexpectedly.
    I've got the same error on other computers and using Alexandria's program.. As I understood it's not only my problem, others have it too.
    Thanks in advance.

    Hi,
    First U should check if IIS and Tomcat are running together then Tomcat won't start coz both use the 80 port. u have shut down IIS and use Tomcat and enable Tomcat to start with the services, If shutting down IIS is not a problem.
    If u need both IIS and Tomcat to run together then u have change the server http port u can do it in the following manner
    drive:\Apache Tomcat 4.0\conf directory.
    Edit the sever.xml file
    In the server.xml file u will have to change the port in the following piece
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="60000"/>
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    Change the port 8080 to 808x where x is any number between 0 to 9
    Restart the machine and this should work
    Good Luck
    Bye,
    MAX

  • Embedded Tomcat Can't Compile JSP from JAR

    I've got a problem that I can't seem to figure out. I hope someone might shed some light on this.
    I have a desktop java application that has Tomcat embedded in it. I'm creating a jar file of just myapp's *.class files and I specify the main-class and classpath in the manifest file. If I execute the jar the following way, it works fine:
    set CLASS_PATH=.;.\myapp.jar;.........all of the required Tomcat classes....;.\lib\anotherLib.jar
    javaw -ea -classpath  %CLASS_PATH%  com.myapp.Application
    But if I try to execute it this way, it runs and starts Tomcat. However, when Tomcat tries to compile a JSP, it can't find packages such as javax.servlet, javax.servlet.jsp, org.apache.jasper.runtime, and so forth.
    I believe It has something to do with the classpath. Does anybody have any ideas?

    i guess it is not the too lengthy classpath...
    just chek that when u run the application from eclipse.. r u seting the classpath.. and that classpath should not have any spaces in it..
    for ex: a directory like c:\program files \ should be as c:\progra~1\..
    ot any jar file in the classpath has spaces...
    this may be one of the reason that the classpath gets truncated...

Maybe you are looking for

  • Internet connection via Airport Extreme/router thats not working, why?

    I have been having problems with the internet connection via Airport Extreme which I find it a bit unusual and its still driving me nuts! This is what happened: I have lost my internet connection last Sunday evening upon my return from a weekend away

  • How to get rid of blank space showing above my pages

    Hi: I built my site dyingforthetruth.com using Muse (thanks, it's pretty nifty!), following a video tutorial you provided. I've ended up with a blank space showing above all pages, and much trying with the blue lines and rebuilding my header strip ha

  • Intra company STO- MRP element reservations

    Dear All' I request your help to resolve following issue. I have created Intra company STOs based on different plant's requirements. say PO# 1, 2, 3...100. The system is reserving available qty based on POs in sequence. When I process PO# 56 for exam

  • General Computer Question

    Hello,  I am about to buy a "bare-bones" new computer, and would like recommendations on what hardware to fit it with.  I will be using it 90% of the time to burn DVDs from Prem. Pro.CS 3 and Encore CS 3.  What I would like to know is 1.) Processor,

  • Reader 9 - Application background color

    Just installed A R 9 - the background to the application is black. I know I can change that when the display is in Full Screen mode, but can it be changed for Normal view? Why black??