Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: The requested resource is not available. (Jdk and Tomcat migration)

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy The requested resource is not available. (Jdk and Tomcat migration)

    I am working on jdk and Tomcat migration from 1.4 to 1.6 and from 4.1 to 5.5 respectively.

    I have modified the code such that it follows jdk1.6 specifications and moved the code to UAT.

    I have also changed the Tomcat version from 4.1 to 5.5 and jdk version from 1.4 to 1.6 under Tomcat Configuration through UI.

    While testing, I have found that none of the servlet classes are successfully called, rather it is throwing the following error:
    "The requested resource is not available".

    --------------------------------
    HTTP Status 404 - Servlet TabViewDisplay is not available
    type Status report
    message TabViewDisplay is not available
    description The requested resource (Servlet TabViewDisplay is not available) is not available.
    Apache Tomcat/5.5
    ---------------------------------

    Scenario:
    I am accessing the servlet TabViewDisplay which is available in the context abc as: UATURL/abc/TabViewDisplay

    web.xml is in the following manner:
    <servlet>
    <servlet-name>TabViewDisplay</servlet-name>
    <servlet-class>com.servlet.TabViewDisplay</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TabViewDisplay</servlet-name>
    <url-pattern>/TabViewDisplay</url-pattern>
    </servlet-mapping>

    Before migration, this servlet has been successfully called. Facing this problem only after the migration of Tomcat from 4.4 to 5.5.

    Could anyone please let us know what might be the problem.


  2. #2
    Junior Member
    Join Date
    Jul 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: The requested resource is not available. (Jdk and Tomcat migration)

    Well where is your resource file is it compiled and please check the classpath.

  3. #3
    Junior Member
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: The requested resource is not available. (Jdk and Tomcat migration)

    Resource file is available at the specified path itself i.e it is available at the path com/servlet.

    You suggested to check the classpath, do we need to set anything in the classpath. Please let me know.

Similar Threads

  1. Java Learning Resource for Beginners
    By Freaky Chris in forum The Cafe
    Replies: 1
    Last Post: April 29th, 2009, 04:57 AM
  2. Issues with Tomcat 6.0
    By sanyog24681 in forum Java Servlet
    Replies: 0
    Last Post: October 21st, 2008, 07:55 AM