Problems with the tutorial Introduction to Java Servlet technology

Has anyone done this tutorial?
https://www6.software.ibm.com/developerworks/education/j-intserv/
I created an application. Created the XML file. Imported the project from the website and tried viewing it in the broswer:
http://localhost:8080/contacts/
I get this:
HTTP Status 404 - /contacts/
type Status report
message /contacts/
description The requested resource (/contacts/) is not available.
Apache Tomcat/5.0.28

that means you didn't deploy the app properly.
go read the tomcat docs for "your first web app"
%

Similar Messages

  • Sqljdbc4 driver problem with the latest version of java (java6 update9)

    Hi all, sorry for my ingles.Need help with a problem, I have to connect to sql server 2008 from Java, I had install the Java SE Development Kit 6u22, and when the upgrade to the 6u29, the driver stopped working, they let the following example:
    public static Connection getConnection(String db_connect_string,String jdbcDriver)
    Connection conn = null;
    try {
    Class.forName(jdbcDriver);
    conn = DriverManager.getConnection(db_connect_string); //when you run this line, does nothing mores, nor throws errors
    } catch (Exception e) {
    System.out.println("Error de conexion." + e.getMessage());
    return conn;
    uninstall update29, and install that before and had returned to work. Still do not know how to solve this problem with the latest version of java. Any ideas?.
    Thanks.

    You are not the only one.
    MS SQL JDBC does not work with 1.6.0_29?

  • Problems with the Tutorial...

    Hi,
    I've installed kodo 2.5.2 in Websphere ver.5.
    I've followed all the instructions to run the tutorial:
    I put all the *.java, .jdo and .properties files in a new Project named
    JDO_TEST.
    After using the menu "Add enhancer to build" with the file "Animal.java",
    I've rebuilded all the files and then in the kodo's window appear a
    message error.
    I've opened the log and this is what i've found:
    "!SUBENTRY 1 com.solarmetric.kodo 4 0 Jul 24, 2003 12:19:30.229
    !MESSAGE The Enhancer failed. The message included was:
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
    !STACK 0
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
         at
    com.solarmetric.modules.tools.compiler.ClassArgParser.parseClasses(ClassArgParser.java:71)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:208)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:189)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder$BuildVisitor.visit(EnhancerBuilder.java:55)
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:40)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:30)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:392)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:120)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:176)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:186)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:146)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:160)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:211)
         at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:142)
         at
    org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:156)
         at
    org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)"
    Please, someone help me....
    Pluso

    Pluso,
    It sounds like your project files are not in the classpath that Kodo
    is seeing. Is this at all possible? Can you ensure that your project
    classpaths are correctly set up?
    -Patrick
    On Thu, 24 Jul 2003 11:49:54 +0000, Pluso wrote:
    >
    Hi,
    I've installed kodo 2.5.2 in Websphere ver.5.
    I've followed all the instructions to run the tutorial:
    I put all the *.java, .jdo and .properties files in a new Project named
    JDO_TEST.
    After using the menu "Add enhancer to build" with the file "Animal.java",
    I've rebuilded all the files and then in the kodo's window appear a
    message error.
    I've opened the log and this is what i've found:
    "!SUBENTRY 1 com.solarmetric.kodo 4 0 Jul 24, 2003 12:19:30.229
    !MESSAGE The Enhancer failed. The message included was:
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
    !STACK 0
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
         at
    com.solarmetric.modules.tools.compiler.ClassArgParser.parseClasses(ClassArgParser.java:71)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:208)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:189)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder$BuildVisitor.visit(EnhancerBuilder.java:55)
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:40)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:30)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:392)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:120)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:176)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:186)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:146)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:160)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:211)
         at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:142)
         at
    org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:156)
         at
    org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)"
    Please, someone help me....
    Pluso--
    Patrick Linskey
    SolarMetric Inc.

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • Compilation Problems with the Tutorial in JDeveloper

    Hello!
    I'm a new user of JDeveloper. So this is typical newbie problem! I am planning to develop a Web Application using JDeveloper 3.0(JRE 1.1.8) and Oracle 8i (8.1.1). As a start I installed JDeveloper and on an Oracle Client machine and tried to run through the tutorial. The tutorial on "Builing Business Components" (displays master-detail relnship between dept and emp tables in the scott/tiger schema) worked fine. Then I tried to convert this to a WebApp - the jsps were generated alright. However when I tried to run main.jsp ..I got a host of errors of the type :
    Error (0) : /Program Files/Oracle/JDeveloper 3.0/myprojects/ not contained in /Program Files/Oracle/JDeveloper 3.0/myprojects/WebApp2/contents.jsp.
    This problem repeated for all the jsp files.
    Clearly some environment variable needs setting. HELP!
    Regards
    Mona

    When you generate the web.xml file, one section is commented as follows:
    <!--
      <servlet>
        <servlet-name>index</servlet-name>
        <jsp-file>/index.jsp</jsp-file>
      </servlet>
    --> 
    You have to uncomment this section.
    Regards,
    Todor

  • Problems with the Tutorial in the MDK Documentation

    Hey,
    I have made the tutorial-exercise of the MDK-documentation, in which You try to create a SyncBO and let generate the client application.
    When I do all the steps and import the generated XML-file into my Eclipseproject, it should be possible to test the application on the client, after uploading to the middleware.
    But when I download it to the client by synchronizing and when I´m clicking on the shown link then, it doesn´t start!
    I get the message "The page cannot be found..".
    But when I´m installing other application, like f.e. MAM, I can start it....
    Any ideas?
    Many thanks!

    When you generate the web.xml file, one section is commented as follows:
    <!--
      <servlet>
        <servlet-name>index</servlet-name>
        <jsp-file>/index.jsp</jsp-file>
      </servlet>
    --> 
    You have to uncomment this section.
    Regards,
    Todor

  • Problems with the last version of Java

    Hi
    I have MacBook Pro Mac OSX version 10.7.5, and I have udapte the last version of Java 7 version 25 and then since yesterday three of my genetics programs don't run.
    How can I get back the previous version of java?
    Thanks

    Try the steps given in the link below....Remember....,install the old version,if this problem persists
    http://forums.adobe.com/message/4041846#4041846

  • SSL and J2EE - Problems with the tutorial

    I'm trying to make a small amendment to the bank application ('Duke's Bank') which is the main example in the J2EE tutorial. Nothing complicated: just add a simple 'enrollment' page which will be secured through SSL.
    The aim is to demonstrate that J2EE makes it very easy to put a session over a secure SSL channel.
    As I read the documentation, this should be a fairly simple thing to configure. Add a 'CONFIDENTIAL' network security requirement to the WAR component through the deploytool and import a server certificate using keytool. I've done all that and the thing won't work.
    After adding the 'CONFIDENTIAL' requirement I find that using the 'http' protocol serves up a server certificate which I can choose to trust through by IE6.0 browser. But then the application freezes. If I use the 'https' protocol the application freezes without even bothering about the certificate.
    I wonder if the J2EE tutorial setup is so tightly packaged that configuring it for SSL involves a number of undocumented steps related to ports, keystores and security providers. Explaining it all within the context of the tutorial would throw it out of scope so we're not really meant to do things like adding SSL.
    This is a big deal for us -- we're trying to decide if J2EE will be our application platform over the next five years or so. Any assistance here will be gratefully received.
    WR

    The Duke's Bank tutorial can be found at:
    http://java.sun.com/j2ee/tutorial/1_3-fcs/
    It is the last chapter of the tutorial, under the "Putting it All Together" section.
    Andy

  • Problems with the resources boundles in java studio creator 2

    I try to migrate a proyect from sun java studio creator 2 early access to sun java studio creator 2 but I have a problem, the resource bundle work in creator 2 early access but doesn� work in creator 2, somebody have the same problem?
    and, the most important somebody could fix the problem?
    Note. sorry I�m learning english

    If I choose for SJSC2 to create JSF applications then
    one, or better THE, reason is the (drag and drop)
    Design editor functionality.
    Using resource bundles is a MUST. So if this means I
    cannot use the Design Editor in combination with
    resource bundles, then I will use something else...
    I think there should be a statement issued by the
    SJSC2 team about this bug and what the timescale for
    a decent solution wll be.
    Regards,
    Marcel
    BTW: overall SJSC2 seems to be a good alternative to
    develop an open source JSF application in a competing
    timeframe.I agree. This bug is even more exacerbated by the fact that the error message is entered in the design form and generally clutters more room than was originally intented for the text. Not having i18n is a show stopper right now. Creator2 will have to fully support i18n before we can start using it.

  • HT1338 A Problem with the Oct 18, 2012 Java Update

    Yesterday's (Oct 18, 2012) Java update does not start with my applications. What can I do?

    JavaQuestion wrote:
    Yesterday's (Oct 18, 2012) Java update does not start with my applications.
    In this thread https://discussions.apple.com/message/20074533 three different solutions were used, all of which would seem to be rather complicated. Hopefully a simple solution will show up soon.

  • Problem with the virtual  machine

    Hello.
    i've encountered problem with the virtual  machine. Java instance is reseting sometimes. I found message in dev_server0 there is:
    <b>
    [Thr  6] JLaunchIExitJava: exit hook is called (rc = 666)
    [Thr  6] **********************************************************************
    ERROR => The Java VM terminated with a non-zero exit code.
    </b>
    in dev_jcontorol:
    <b>
    [Thr  1] Thu Mar 13 15:58:39 2008
    [Thr  1] JStartupICreateProcess: fork process (pid 16077)
    [Thr  1] JControlICheckProcessList: process server0 started (PID:16077)
    </b>
    where i can looking the reason of this?
    regards,
    Denis

    Hi Denis,
    This looks like a memory issue, similar problems have been posted on this forum before.
    Change the following params.
    -XX:PermSize=2048m
    -XX:MaxPermSize=2048m
    Also,
    See SAP note 709140 and the referenced notes.
    Regards,
    Siddhesh

  • Has anyone else had problems with the latest system updates to Mac OS X v10.6.8 with the java virus patch?

    After installing the latest updates to Snow Leopard the system hangs up and will not open properly.  This is the update to Java, etc after the virus was discovered.  I have done the updates on four different systems with the same result. 

    No problems with the Java update here, although I have Java disabled. Might try reapplying the Java standalone while in Safe Boot (Shift at startup chime), if you did it from Software Update.
    http://support.apple.com/kb/DL1516

  • Error thread java : problem with the function "resume 0x***"  (forum sun)

    One problem with the function of jdb occured when I tried to use it to
    pilot the processor with differents threads. In fact, I use a simple example with 2 threads.
    I stop the two threads with two breakpoint, and I want to resume one or the other (with the function "resume 0x****"), the one wich I resumed stop again on the breackpoint and I decide again to resume one or the other. All of that to obtain a tree of execution.
    I give you the code of the class and the code of jdb.
    CLASS: (it's just a object Room with a variable degre that I increment and decrement with two threads increase and decrease)
    public class Test{
         public static void main(String[] args){
              Room r = new Room();
              decrease de = new decrease(r);
              increase in = new increase(r);
              de.start();
              in.start();
    class Room {
         private volatile int degre=20;
         public void more(){
         degre += 4;
         public void less(){      
         degre -= 3;
    class decrease extends Thread{
    private Room room;
    public decrease(Room r){
              room =r;
    public void run(){
    try{ 
         while (!interrupted()){ 
              room.less();
    catch(InterruptedException e) {}
    class increase extends Thread{
    private Room room;
    public increase(Room r){
         room =r;
    public void run(){ 
         try{ 
              while (!interrupted()){
                   room.more();
    catch(InterruptedException e) {}
    JDB:
    Initializing jdb ...
    stop at Test:7Deferring breakpoint Test:7.
    It will be set after the class is loaded.
    runrun Test
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started: Set deferred breakpoint Test:7
    Breakpoint hit: "thread=main", Test.main(), line=7 bci=30
    7 in.start();
    main[1] stop at room:16
    Set breakpoint room:16
    main[1] stop at room:20
    Set breakpoint room:20
    main[1] resume
    All threads resumed.
    >
    Breakpoint hit: "thread=Thread-0", room.less(), line=20 bci=0
    20 degre -= 3;
    Thread-0[1] threads
    Group system:
    (java.lang.ref.Reference$ReferenceHandler)0x10d Reference Handler cond. waiting
    (java.lang.ref.Finalizer$FinalizerThread)0x10c Finalizer cond. waiting
    (java.lang.Thread)0x10b Signal Dispatcher running
    Group main:
    (decrease)0x146 Thread-0 running (at breakpoint)
    (increase)0x147 Thread-1 running (at breakpoint)
    (java.lang.Thread)0x148 DestroyJavaVM running
    Thread-0[1] resume 0x147
    Thread-0[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] resume 0x147
    Thread-1[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] print degre
    degre = 24
    Thread-1[1] resume 0x146 //It's here the problem, thread 0x146 have to stop on the //next breakpoint of decrease but nothing happen
    Thread-1[1] resume 0x147
    Thread-1[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] clear
    Breakpoints set:
    breakpoint Test:7
    breakpoint room:16
    breakpoint room:20
    PS: I tried many other examples with other class and other kind of breakpoints, but, in any cases, on thread doesn't manage to resume. When I try with general resume (no specification of the thread), It works but it isn't interresting for me because I want to decide wich thread continue his execution.

    Hi,
    I have read the FAQ of the JMF.
    The problem was the jar files of the JMF were not in the JRE\BIN\EXT
    folder of the Java runtime!
    now it works!
    thanks
    Reg

  • Solution Manager systems RAM requirements - problems with the Java Engine

    Hello,
    I am about to install SAP Solution Manager 7 on a WIndows 2003 Server x64 but I need to know what the RAM requirements are? I have been having problems with the Java Engine starting and it seems to time out, I have heard that this is a very RAM hungry process and it might be why?
    Many thanks for your help in advance,
    Omar

    Hello Omar,
    To size SAP Solution Manager 7.0 EHP1 we recommend to use the SAP Solution Manager Quicksizer Tool at:
    http://service.sap.com/sizing-solman
    Here you find information on how to use the tool, how to collect input data for E2E Scenario Sizing, on SAP E2E RCA Sizing, Introscope Tuning, Wily Enterprise Manager Cluster Setup for E2E RCA Scenario and BI Aggregation Strategy in E2E Scenario.
    Please find more information about installing Solution Manager in:
    http://service.sap.com/instguides -> SAP Solution Manager
    I hope this information helps.
    Thanks,
    Mark

  • Problems with the jax-rpc testcase from the JWSDP tutorial

    Hello.
    I have e few problems with the hello case from the JWSDP tutorial.
    Everything works fine during the build/compile/installation phase but when I'm accessing the url http://localhost:8080/jaxrpc-hello/jaxrpc, the server wont find the service and I get:
    404 The requested resource (/jaxrpc-hello/jaxrpc) is not available.
    I've trippel checked the environment settings and other properties and I don't know where to go to error check.
    I've tried to install the client as well but it wont detect the service so I guess there is a problem on the server side.
    I'm quite new to the whole "Web Service thing" So I would be happy to get som help.
    Chris

    if you run the tomcat manager application at http://localhost:8080/manager/list, what do you see? I suppose if you have successfully run the ant "install" task after "compile-server" and "xrpcc-server", you will see that your service is registered with its context path, but is not "running". This will be probably because of a runtime error. For further diagnosis of errors like these, I recommend to take a look at the log file at "<%JWSDP_HOME%>/logs/catalina.out".
    If you are satisfied with this answer, please be so kind and assign some of your duke dollars to me ;-)

Maybe you are looking for