Problems getting tomcat to run on localhost or anywhere...

I have a huge problem, I have a servlet that i'm developing for the company of my internship, and this is the first servlet i've ever had to develop. It has taken me the entire semester to get as far as i have, and i have a lot of time invested in getting this servlet-centric application to work.
My problem is that i cannot even get tomcat web container to work right on just the local computer- much less the server it will need to run on to support this web app. I have looked through tons of documentation on the web and on the apache website for help on configuring tomcat, and have worked through tutorials on how to get it working, but have not yet had a success story. Time is really running to the line now!
I have read that in order for tomcat to run on IIS you need to configure 'isapi_redirect.dll' and get IIS to filter requests to tomcat. I have even worked through tutorials in doing this, but cannot get it working still. I have tomcat installed, and even shutting off IIS will not allow me to run tomcat and get even an example file included with tomcat to load up when pointing to http://localhost:8080/ or any port listed in the server.xml config file. I can though, get IIS's default page to come up when it is running by pointing to http://localhost/.
I have exhausted all ideas i have to try and make it work, and am not consulting the forum for help. I know there must be a simpler way to get tomcat working at least on the localhost. ANY advice that leads to me being able to get tomcat running right so i can even just test my servlet how it would run on my local computer would be very very great help. Also, if help can be given on how to get it installed with least amount of hassles on a web-hosting server it would be very appreciative.
I am in desperate need of help on this,
please please help me!
-mike

Found the problem- setup turned out a lot easier when i downloaded the right Tomcat file- i had the .zip- which doesn't have an installer on it- so i just talked to a friend, he recommended the one with the installer- less to go wrong in configuration- and it works perfect for the local machine at least- the server might be an issue with support mostly though- don't know yet til i test it there- thanx for trying to help- but got the problem fixed before you guys got the chance to really help much.

Similar Messages

  • Eclipse problem with Tomcat when running jsp

    when I start tomcat from CMD, it starts normally and display http://localhost:8080/ properly
    but when I start tomcat from Eclipse, it starts the server normally,
    but it can't display http://localhost:8080/ properly,
    I guess that the problem with the java classpath isn't defined correctly in Eclipse
    but but I've tried it before, and it doesn't work
    here the error msg from Eclipse console:
    [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on http-8080
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.31
    [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    [INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on http-8080
    [INFO] ChannelSocket - -JK2: ajp13 listening on /0.0.0.0:8009
    [INFO] JkMain - -Jk running ID=0 time=0/120 config=C:\jakarta-tomcat-4.1.31\conf\jk2.properties
    Error compiling file: C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\/index_jsp.java [javac] Compiling 1 source file
    [javac] Modern compiler not found - looking for classic compiler
    Info: Compile: javaFileName=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\/index_jsp.java
    classpath=C:/jakarta-tomcat-4.1.31/shared/classes/;C:/jakarta-tomcat-4.1.31/common/classes/;C:/jakarta-tomcat-4.1.31/common/endorsed/xercesImpl.jar;C:/jakarta-tomcat-4.1.31/common/endorsed/xmlParserAPIs.jar;C:/jakarta-tomcat-4.1.31/common/lib/activation.jar;C:/jakarta-tomcat-4.1.31/common/lib/ant-launcher.jar;C:/jakarta-tomcat-4.1.31/common/lib/ant.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-collections.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-dbcp-1.1.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-logging-api.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-pool-1.1.jar;C:/jakarta-tomcat-4.1.31/common/lib/jasper-compiler.jar;C:/jakarta-tomcat-4.1.31/common/lib/jasper-runtime.jar;C:/jakarta-tomcat-4.1.31/common/lib/jdbc2_0-stdext.jar;C:/jakarta-tomcat-4.1.31/common/lib/jndi.jar;C:/jakarta-tomcat-4.1.31/common/lib/jta.jar;C:/jakarta-tomcat-4.1.31/common/lib/mail.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-common.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-factory.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-resources.jar;C:/jakarta-tomcat-4.1.31/common/lib/servlet.jar
    cp=C:\jakarta-tomcat-4.1.31\shared\classes
    cp=C:\jakarta-tomcat-4.1.31\common\classes
    cp=C:\jakarta-tomcat-4.1.31\common\endorsed\xercesImpl.jar
    cp=C:\jakarta-tomcat-4.1.31\common\endorsed\xmlParserAPIs.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\activation.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\ant-launcher.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\ant.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-collections.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-dbcp-1.1.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-logging-api.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-pool-1.1.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jasper-compiler.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jasper-runtime.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jdbc2_0-stdext.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jndi.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jta.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\mail.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-common.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-factory.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-resources.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\servlet.jar
    work dir=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_
    srcDir=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_
    include=index_jsp.java
    Exception compiling Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
    Exception:
    Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
         at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:72)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:479)
    Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
         at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:72)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:479)
    Here are my system settings :
    Eclipse 2.1.3
    plugin : tomcatPluginV21, lomboz.213
    Jakarta-tomcat-4.1.31
    JAVA_HOME      : C:\jdk1.3.1_15
    CATALINA_HOME : C:\jakarta-tomcat-4.1.31
    Here are my Eclipse settings :
    http://server2.uploadit.org/files/marvelousgame-01.JPG
    http://server3.uploadit.org/files/marvelousgame-02.JPG
    http://server2.uploadit.org/files/marvelousgame-03.JPG
    http://server3.uploadit.org/files/marvelousgame-04.JPG
    http://server2.uploadit.org/files/marvelousgame-05.JPG
    http://server3.uploadit.org/files/marvelousgame-06.JPG
    thx!!!

    I would suggest updating your software to the latest versions - java 1.4.2 or higher, tomcat 5 or higher, Eclipse 3. That should fix any incompatibilities you are experiencing.
    As to your problem, it seems the tomcat you are trying to run from Eclipse wants a newer Java version (1.4.2 most likely).

  • Problem getting program to run correctly

    I have an assignment where I need to write a program inputting test scores and outputting the minimum, maximum, and average scores. The program runs, but I cant get the min and max scores right. Also, pressing 999 doesn't force the program to quit.
    Here is what I have...
    import java.util.Scanner; //For scanner class
    import java.text.DecimalFormat;
    public class Testscores
    { public static void main (String [] args)
         {//instructions
         System.out.println("Enter test scores, and get the lowest score, the highest score, "
              + "and the average. ");
         System.out.println("Enter 999 to quit. ");
         //scanner
         Scanner kbd = new Scanner (System.in);
         //variables
         int score = 0;
         int total = 0;
         int count = 0;
         final int maxposs = 100;
         final int minposs = 0;
         int min = maxposs;
         int max = minposs;
         final int sentinel = 999;
         //input
         while (score >= 0)
         if (score <= 100 && score >=0)
         {System.out.print("Enter a score [0..100] (999 to quit): ");
         score = kbd.nextInt();
         total += score;
         count ++;
         else
         System.out.print(" Enter only 0..100 (999 to quit): ");
         score = kbd.nextInt();
         if (score < min && score > 0)
         {min = score;
         //output
         DecimalFormat formatter = new DecimalFormat ("#0.00");
         if (count >0) //genuine scores entered
         {System.out.println("The minimum score is " + min + "." );
         System.out.println("The maximum score is " + max + "." );
         float average = (float) total / (float) count;
         System.out.println("The average score is " + average + ".");

    import java.util.Scanner;             //For scanner class
    import java.text.DecimalFormat;
    public class TRx
        public static void main (String [] args)
            //instructions
            System.out.println("Enter test scores, and get the lowest score, " +
                               "the highest score, and the average. ");
            System.out.println("Enter 999 to quit. ");
            //scanner
            Scanner kbd = new Scanner (System.in);
            //variables
            int score = 0;
            int total = 0;
            int count = 0;
            final int maxposs = 100;
            final int minposs = 0;
            int min = maxposs;
            int max = minposs;
            final int sentinel = 999;
            //input
            boolean morePlease = true;
            while (morePlease)
                System.out.print("Enter a score [0..100] (999 to quit): ");
                score = kbd.nextInt();
                if(score == sentinel)
                    break;
                if(score < minposs || score > maxposs)
                    System.out.print(" Enter only 0..100 (999 to quit): ");
                    continue;
                if (score < min)
                    min = score;
                if(score > max)
                    max = score;
                total += score;
                count ++;
            //output
            DecimalFormat formatter = new DecimalFormat ("#0.00");
            if (count >0)                   //genuine scores entered
                System.out.println("The minimum score is " + min + "." );
                System.out.println("The maximum score is " + max + "." );
                float average = (float) total / (float) count;
                System.out.println("The average score is " + average + ".");
    }

  • Problems getting FSB to run Stable at 400mhz

    I own the delta model of the k7n2 and it's supposed to run at 400mhz as is my CPU: AMD 3000+ XP w/ Barton core but every time I try to run it at the 400mhz FSB the system crashes whenever I begin to run a program.  I can run the FSB at 333mhz and I have absultely no stability issues but truth be told I payed the money for the 400mhz MB and 400mhz CPU so I'd like to be able to use what I payed for.  I really can't see what the problem is as the system has a fresh install of windows, newest drivers for all hardware, and all of the hardware is listed on the compatability lists of the respective hardware manufactureres.
    My system specs are as follows:
    AMD Athlon 3000+(400mhz)
    1.0G DDR Dual Ram(2 512mb sticks - both the same, bought as a set)
    Gainward FX PowerPack Pro/680 Geforce FX 5200 256MB
    MSI K7N2 Delta ILSR MB
    Maxtor Daimond 80.0G HD ATA 133 IDE
    I honestly am at a loss at the moment as to why the system only crashes at the 400mhz FSB when both the MB and CPU support it. Any help would be greatly appreciated.

    Need more specific info on your rig...manufacturer names and part numbers would help...IRQ listing as well...PSU specs...
    Read this:
     Moan Guide
    Bonz

  • Problem getting video to run in SWF

    I have a student who is using Flash CS4 Pro.  She has imported an flv, chosen a skin and placed the video on the stage.  If you test by Ctrl+Enter the swf is created and plays quite happily.  However, if you go to the folder where the swf is pubished and load the swf it either opens a blank window where neither video or skin appear or a window opens with the flash player logo flashing on/off.  We've tried what we can think of like reassigning the paths in the component inspector be doesn't work.  The fla, swf and skin are all in the same root directory.
    My first thought was that there may have been some change on our network that was interfering but the same student has another swf she made several weeks ago using the same method which has 4 videos in the same swf and it still works fine.  This suggests the methodology and the network are valid. 
    Not sure what to do.  This is the last part of the student's A level coursework due in next Friday so any suggestions really welcome.

    If you test by Ctrl+Enter the swf is created and plays quite happily.  However, if you go to the folder where the swf is pubished and load the swf it either opens a blank window where neither video or skin appear
    Sounds to me like a pathing problem.
    Depending on how the folder structure is set up, going directly to the .swf and clicking on it in it's folder... and the video not playing... does not necessarily mean that the pathing is wrong or the .swf is broke. In fact, if the .swf video player is to be used on a Web page outside of the folder that the .swf is stored in, the .swf should NOT work when directly clicked on. That's because the pathing from the .swf to Flash assets such as the video file... pathing needs to be relative to the Web page the .swf will be used on and NOT the physical location of the .swf.
    For your review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    If you need further help, see if you can post the page online somewhere... we will diagnose.
    Best wishes,
    Adninjastrator

  • MOVED: Problems getting 4GB DDR3 running + how do you switch of auto voltages ? X48C

    This topic has been moved to Overclocking & Modding Corner.
    https://forum-en.msi.com/index.php?topic=128634.0

      Please, read your manual, & the instructions on how to change the settings & values is all covered in the manual '&' on the bios lower part of the screen. Just for a quick answer, use your keyboard page up/page down or arrow keys, & the +/- keys on the numbers pad.
    If your board didn't come with a manual, download one from the MSI Website.

  • Still have a few problems with Tomcat 4.1.12

    I�m using Tomcat 4.1.12
    I�m having problems getting this to run in my envrironment.
    Here�s my stuff:
    Classpath= .;C:\Servlet_dev;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.Jar
    This is where I put my class file called HelloServlet.class.
    C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\classes
    Here�s the URL that I use in the browser
    http://localhost/servlet/HelloServlet
    Here�s the error:
    message /servlet/HelloServlet
    description The requested resource (/servlet/HelloServlet) is not available.

    Hi,
    Here's another tip.
    Try running http://localhost
    Are you getting the tomcat frontpage to show?
    If not.
    1. Start up tomcat
    2. Try http://localhost:8080
    If yes.
    1. Create a directory in webapps called test
    2. Create ..tomcat\webapps\test\WEB-INF
    3. Create ..tomcat\webapps\test\WEB-INF\web.xml
    as a similar web.xml page that you can find.
    4 edit ..tomcat\webapps\test\WEB-INF\web.xml
    to look like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <welcome-file-list>
    <welcome-file>
    hello.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    5. create hello.jsp
    Add some simple code, even it is only html stuff
    6. Restart tomcat
    7. Run http://localhost/test/hello.jap
    Its simple, but it proves you have got this far.
    best
    kev

  • Tomcat + myFaces: Cant get it to run

    Hello!
    I try to get MyFaces and Tomcat 5.0.30 to run but only get the error message below when I point the browser to the webapp.
    We are using J2SE 1.4.2 and Windows NT. I also tried different Tomcat version.
    As a web application I tried my own one, the MyFaces sample app and a smale from the German magazin ct.
    The same apps run n JBoss (which includes a Tomcat)... strange....
    An ybody seen the same error? Any help?
    Thanks in advance...
    =============== Browser output =========
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
    A typical config looks like this;
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
         javax.faces.FactoryFinder.getFactory(FactoryFinder.java:101)
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.

    I had the same problem with Tomcat 5.5.17 and MyFaces 1.1.5.
    java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
    If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
    A typical config looks like this;
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
         javax.faces.FactoryFinder.getFactory(FactoryFinder.java:93)
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:91)
    It is strange but it's true:
    The solution to this problem was removing all blanks from the home directory of tomcat. After using underlines instead of blanks the application started without problems.

  • 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

  • I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    wen6275,
    It looks like you're actually using a camera or phone to take a photo of your monitor.
    That's not what is commonly known as a "screen shot". 
    It looks like you're on a Mac.  Hitting Command+Shift+3 places a capture of the contents of your entire monitor on your Desktop; hitting Command+Shift+4 will give you a cross-hairs cursor for you to select just the portion you want to capture.
    I'm mentioning this because I fear I'm not construing your original post correctly when you type "I am working with a large files [sic], currently it has 149 layers, all of which are high resolution photographs", so I'm wondering if there's some similar use of your own idiosyncratic nomenclature in your description of your troublesome file.
    Perhaps I'm just having a major senior moment myself, but I'm utterly unable to imagine such a file.  Would you mind elaborating?

  • Problem getting Dataservices running on OC4J 10.1.3.1

    I'm having problems getting the Data services working
    correctly on an Oracle OC4J 10.1.3.1
    I followed the guidelines as described here:
    http://www.adobe.com/support/documentation/en/flex/2/install.html#oc4j
    and some of the samples seem to work, the Collaborative
    Dashboard runs without any problems
    But when I try to run the notes sample I get this error in
    the console, each time I try to send something:
    07/03/20 10:40:43 [Flex] [ERROR] Exception when invoking
    service: data-service
    with message: Flex Message (flex.data.messages.DataMessage)
    operation = transacted
    id = null
    clientId = 8F4FEAF9-DF0B-9471-5406-D540F7A77B56
    correlationId =
    destination = notes
    messageId = 2BC190CA-5B47-7BEA-7D27-6EB8494ACE96
    timestamp = 1174383642959
    timeToLive = 0
    body =
    Flex Message (flex.data.messages.DataMessage)
    operation = update
    id = ASObject(2709047){noteId=1}
    clientId = 162E9C1C-6BBC-A27C-F756-6EB78592B81D
    correlationId = 2BC190CA-5B47-7BEA-7D27-6EB8494ACE96
    destination = notes
    messageId = ADA188B3-8FB8-0B5A-9A44-6EB844693D12
    timestamp = 0
    timeToLive = 0
    body =
    noteText
    {noteId=1, noteText=Type your notes here and share them with
    other clients!},
    {noteId=1, noteText=df}
    hdr(DSEndpoint) = my-rtmp
    exception: flex.data.DataServiceException: Unable to access
    UserTransaction in DataService.
    Can anyone help me with this? I tried contacting Oracle, but
    they bounced the ball back to Adobe...

    OCMS stands for Oracle Communication and Mobility Server and is basically a SIP Container embedded as a hook into OC4J 10.1.3.1. I'm using JDK 1.5.0_12-b04. Wondering if there's any other way to check configuration of the JSP compiler.
    Thanks for your help,
    Adam

  • I'm running iTunes 10.5 on my Macbook Pro and software 4.1 on my 2g iPod touch and having problems getting photo's to sync. Same error iPod can't be synced req'd file can't be found. Tried deleting the photo cache, restoring the iPod etc but to no avail.

    I'm running iTunes 10.5 on my Macbook Pro and software 4.1 on my 2g iPod touch and having problems getting photo's to sync. Same error, "iPod can't be synced req'd file can't be found". Tried deleting the photo cache, restoring the iPod etc but to no avail.

    Try here:
    iTunes: Unable to sync photos
    Usually deleting the iPod Photo Cache Folder works. Note that if you sync via the folder method, make sure you dlete all the ifolders since :
    The iPod Photo Cache stores the photos that are optimized for display on your iPod, iPad, or iPhone. The location of this folder depends on the syncing options you select. In iTunes, if you change the selection in the “Sync Photos From” pop-up menu, a new iPod Photo Cache folder will be created (and the previous folder will remain).

  • Having a real problem getting my vi to work - great difficulty running sequence as desired

    Hi
    I am have a real problem getting my vi to work as required.
    I would like the my vi (EXAMPLE.vi in the vi library attached) to run continuously.  It should update the graphs on the front pannel and also save data to file when requested using the  save data to file button. (I have written a sub vi. to deal with this data handling and file saving which run in two while loops with the vi as can be seen on inspection of the block diagram)
    Now, what I would like is for the updating to pause whenever I change any of the settings on the front panel (which are controls in the first half of the sequence of the vi) so the hardware is reset.  As it is at the moment I have to stop the vi to change the front panel settings and then restart it in order for the first part of the sequence to run and re-set the values on the hardware.
    I guess I need to use some kind of event driven programming an event stucture or something like that. This is quite advanced and I don't know how to implement it. 
    Can anybody offer any Ideas. 
    Many many thanks
    Ashley
    Attachments:
    test library.llb ‏470 KB

    Hi,
    If you are new to event structures then you may find the following tutorial useful:
    Event-Driven Programming in LabVIEW
    http://zone.ni.com/devzone/conceptd.nsf/webmain/E5F8474BDA20C97786256B5A0066968B?opendocument
    A powerful New Tool for UI Programming--User Interface Event Programming
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2a8ab43b28bbde1086256b830059875c
    Advanced Event Handling with LabVIEW 7 Express
    http://zone.ni.com/devzone/conceptd.nsf/webmain/aa79ff38336eb38886256d2b004aca49#1
    I hope this helps
    All the best
    Kurt

  • Anyone have problems getting Office 2004 to run after Lion upgrade?

    Anyone have problems getting Office 2004 to run after Lion upgrade?

    For the rare few, such as myself, who have some Office 2004 or older documents that fail to translate well in Office 2011, another option is to run Office 2004 in Snow Leopard (with Rosetta) installed in Parallels:
                             [click on image to enlarge]
    Full Snow Leopard installation instructions are here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • I'm having problems downloding Itunes - I have tried 6 times on different dates and I can get it to run - please help

    I'm having problems downloding Itunes - I have tried 6 times on different dates and I can get it to run - please help

    The master password protects saved passwords in Thunderbird and has nothing to do with connecting to your providers server. You need to work with your email provider if you have forgotten your email password. Go to their email help site and look for a link to reset your password.
    If you are truly working with a forgotten master password this article tells you how to remove it.
    https://support.mozilla.org/en-US/kb/master-password

Maybe you are looking for