Running HelloWorld Servlet--Tomcat 4.1

Dear Sir,
With most humble submission I would like to inform you that I have recently downloaded Tomcat 4.1 from http://jakarta.apache.org/ and installed it on Windows 98. I am using jdk1.3
I am an amateur for Java Servlets. I am following the instructions given in the book "Java Servlet Programming" by O'reilly and according to this book I have to store my class files(I tried with HelloWorld.class) in the dir server_root/webapps/root/web-inf/classes dir. but when i called it from microsoft internet explorer 5.0(the browser i am using currently) using the URL http://localhost:8080/servlet/HelloWorld
I get the 404 error.
I also tried to call a static file (.html) by storing it in the dir server_root/webapps/root(according to the book) and i get the proper output but not in case of .class file. Even the example codes provided with the server do not run.
Please help me to fix out my problem.
Thanking you in anticipation,
Yours sincerely
roopesh

Hi:
1)You need set classpath
2) do you open your Tomcat?
Thank

Similar Messages

  • Just can't run HELLOWORLD servlet on Tomcat!

    Hi there, I worked with servlets all summer long and now I'm getting back to build one, and I'm totally confused... My problem's there :
    I try to run a simple HelloWorld servlet on Tomcat 4.1, and I get a 404 Error - Not found
    Well, here's the structure of my web application, contained in simpleservlet.war :
    WEB-APP
    -web.xml
    -CLASSES
    -servlet.class
    -LIB
    -servlet.jar
    Here's now the content of the web.xml file :
    <web-app>
         <servlet>
              <servlet-name>serv</servlet-name>
              <servlet-class>servlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>serv</servlet-name>
              <url-pattern>/test</url-pattern>
         </servlet-mapping>
    </web-app>
    AND FINALLY here's how I invoke my servlet, I TRIED :
    http://localhost:1977/servlet/test
    AND ALSO
    http://localhost:1977/test
    AND BANG, I GET "ERROR 404 - NOT FOUND"
    A little help would be appreciated A LOT, well it's not supposed to be a hard problem... and by the way, I'm using port :1977, the problem's not there though.
    regards, Pierre

    Hi,
    First try http://localhost:1977 and see if you are getting Tomcat. As you said, this is not a problem. So, you should get the index.html of the Tomcat. Now, click on the one of the example. From the Address Bar, you will know the path of this example. Try putting your page at that location and then run.
    This should work.
    -- Ashish.

  • How to run a servlet in tomcat 5.0.

    Hi all,
    how to run a servlet in tomcat 5.0
    please tell me the entire procedure....(directory structure)
    step by step....

    hi :-)
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    or
    http://www.google.com.ph/search?hl=en&q=java+servlet+tutorial&btnG=Google+Search&meta=
    regards,

  • Cannot run a servlet using Tomcat. Urgent

    I have a webapplication which uses some jsp's and servlets. The jsp pages work fine when I use
    http://hostname:8080/MyWebapp/Filename.jsp
    However, when I developed a java servlet and put the class file in WEB-INF/classes directory of my web application and tried to access it.
    I got a resource not found error.
    The strange thing is that when I put the file in the web-inf/classes folder of examples webapplication (which comes with Tomcat) I am able to run the servlet using
    http://hostname:8080/examples/servlet/Class file
    I am not sure what is wrong.
    Can someone help me.
    Thanks in advance
    Vamsi.

    It's predictable. The Servlet and JSP specifications mandate that you cannot directly access resources under WEB-INF directory. You have to set up servlet mapping configuration in your web.xml to specify how to access the resources, both Servlet and JSP, there.
    When you copied your files in a demo webapp of Tomcat, the web.xml of the demo app already set up the mapping like following for you. So you could use http://hostname:8080/examples/servlet/Class to visit the servlet.
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    The default setting since Tomcat 4.1 turned off servlet invoker in web.xml under conf directory. You can uncomment the above lines in this file to turn it on. Then you are able to visit your servlet without <servlet-mapping> configured using the following syntax,
    http://hostname:8080/<your_app_name>/servlet/<your_servlet_name>

  • How to run a servlet in tomcat

    how i can run a servlet in tomcat?

    how i can run a servlet in tomcat?Don't try to do that yet; in your other thread you have shown that your are
    not capable yet of setting up a proper development environment.
    Take my advice, you can't walk or run yet so start with the basics.
    kind regards,
    Jos

  • How to run a servlet in tomcat 5.5

    Hi,iam new to servlets,please help me regarding running a servlet in tomcat 5.5,
    I just want an example servlet to run first,
    the below is the code for the same :-
    //ExampleServlet.java
    package sig;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ExampleServlet extends HttpServlet {
         public void init(ServletConfig config) throws ServletException{
              super.init(config);
         public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{
              PrintWriter out = res.getWriter();
              out.println("<HTML>");
              out.println("<BODY>");
              out.println("<p>Hello World</p>");
              out.println("</BODY>");
              out.println("</HTML>");
    I have created a new folder named "SignatureServlet" under the "webapps" folder of tomcat and have created a "WEB-1NF" folder under it,
    again i have kept my "ExampleServlet.class" inside the "WEB-1NF->classes" folder and the entries for my servlet in the "web.xml" file are:-
    <servlet>
    <servlet-name>ExampleServlet</servlet-name>
    <servlet-class>ExampleServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ExampleServlet</servlet-name>
    <url-pattern>/ExampleServlet</url-pattern>
    </servlet-mapping>
    still when iam trying to access the servlet using "http://localhost:8080/ExampleServlet/"
    iam getting a HTTP:404 error
    The requested resource () is not available.,
    please help

    You better ask this on a Tomcat forum...
    Timo

  • How to run a servlet in Tomcat 5.0 server

    HI Everybody,
    I want to know how to run the servlet file on my tomcat 5.0 server. that is where to place a class file and deployment details.
    Thanks In ADVANCE

    Sourav_cs wrote:
    I am a biginner to start servlet i get confusion to configure servlet in tomcat 5 where it should be saved in tomcat directory and how to execute that as first timeHi,
    goto
    tomcat 5.0\webappsnow create a folder here. this is your webapplication project name. Let's suppose it as "TestApp"
    inside this create directories as follows :
    TestApp
            |
            |-----JSP/htmls( if you have any )
            |
            |-----WEB-INF(File Folder)
                       |
                       |-----web.xml
                       |-----lib ( Directory. place all the .jar files which are required for this project(if any) )
                       |-----classes ( .class files. )[all of your java code should be placed here.](servlets / beans/ pojo )this is the general Directory structure of a web application. now you've to place the compiled .class file of your servlet in the "TestApp\WEB-INF\classes" directory. make sure that you've configured the servlet in Deploment Desctiptor, i.e, web.xml.
    now start the server and type the url like : "http://localhost:8080/TestApp/TestServlet"
    the port no. 8080 is the default port no. of tomcat. you have to give your port no. if u've modified it. and TestServlet is the <url-pattern> of your servlet.
    go through some tutorials .. then you can easily know that
    Diablo

  • Tomcat error while trying to run the servlet

    I am etting the below error while trying to run a servlet from tomcat server.
    HTTP Status 404 - /servlet/DailyStatusServlet
    type Status report
    message /servlet/DailyStatusServlet
    description The requested resource (/servlet/DailyStatusServlet) is not available.
    Can anyone help me in solving this error.

    rnaaz wrote:
    Can anyone help me in solving this error.Start by making sure you've properly mapped that URL in your deployment descriptor (web.xml file).
    ~

  • Where to put .class file of a servlet to run it on Tomcat 4.0

    where do i put my .class file of my servlet or maybe the .java one too in order to run it using Tomcat 4.0
    thanks in advance

    i got it by accident a while ago.. hehe
    thank you for trying to help thou :)
    ivo

  • Problem in running the servlet

    I have compiled the servlet and put the class file HelloWorld.class inside
    $CATALINA_HOME$/webapps/ROOT/WEB-INF/classes/
    directory, under tomcat6.0.18
    and also mapped servlet in
    $CATALINA_HOME$/webapps/ROOT/WEB-INF/web.xml, as below
    web.xml:
        <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License.  You may obtain a copy of the License at
          http://www.apache.org/licenses/LICENSE-2.0
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
       version="2.5">
      <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description>
      <servlet>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>HelloWorld</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        <url-pattern>/HelloWorld</url-pattern>
      </servlet-mapping>
    </web-app>and run the servlet using this url......*.http://localhost/HelloWorld*
    but I got following error code under tomcat 6.0.18
      type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error allocating a servlet instance
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         java.lang.Thread.run(Thread.java:619)
    root cause
    java.lang.NoClassDefFoundError: HelloWorld (wrong name: hall/HelloWorld)
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         java.lang.Thread.run(Thread.java:619)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.is there something I did wrong?
    Edited by: san_4u on Mar 16, 2009 1:20 AM

    root cause
    java.lang.NoClassDefFoundError: HelloWorld (wrong name: hall/HelloWorld)Is your servlet contains first line as package hall;If it is there,remove it from the servlet code. And run your program.
    If you want to keep it, then make a folder named hall in classes folder and put your HelloWorld.class there. Also change <servlet-class> as
    <servlet>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>hall.HelloWorld</servlet-class>
      </servlet>

  • Beginner's Stuff - HelloWorld Servlet

              Here's my net to nothing DD.
              <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE web-app
              PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
              "http://java.sun.com/dtd/web-app_2_3.dtd">
              <web-app>
                   <servlet>
                        <servlet-name>HelloWorld</servlet-name>
                        <servlet-class>HelloWorldServlet</servlet-class>
                   </servlet>
              </web-app>
              The WebApp Name is Hello
              Whatever I do (hostname:port/Hello/HelloWorld or hostname:port/Hello/servlet/HelloWorld
              - This one run fine on Tomcat), I keep getting 404.
              What Wrong ??? Somebody help before I go crazy.
              Thanx.
              

              You need to have a
              <servlet-mapping>
              <servlet-name>servlet</servlet-name>
              <url-pattern>/*</url-pattern>
              </servlet-mapping>
              see http://e-docs.bea.com/ for details :)
              "Lindsay Chap" <[email protected]> wrote:
              >
              >Here's my net to nothing DD.
              >
              ><?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE web-app
              > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
              > "http://java.sun.com/dtd/web-app_2_3.dtd">
              >
              ><web-app>
              >     <servlet>
              >          <servlet-name>HelloWorld</servlet-name>
              >           <servlet-class>HelloWorldServlet</servlet-class>
              >     </servlet>
              ></web-app>
              >
              >The WebApp Name is Hello
              >Whatever I do (hostname:port/Hello/HelloWorld or hostname:port/Hello/servlet/HelloWorld
              >- This one run fine on Tomcat), I keep getting 404.
              >
              >What Wrong ??? Somebody help before I go crazy.
              >
              >Thanx.
              

  • Error while running application with Tomcat 5.0

    Hi,
    I am trying to run my application on Tomcat 5.0. I have java environment version 1.4
    I am getting the following error during the server start up :
    Mar 30, 2007 3:51:03 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 30, 2007 3:51:03 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1047 ms
    Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
    Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardHost
    getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Processing Context configuration file URL file:C:\Program
    Files\Apache Sof
    tware Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
    Mar 30, 2007 3:51:04 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings',
    returnNull=tru
    e
    Mar 30, 2007 3:51:04 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources',
    returnNul
    l=true
    Mar 30, 2007 3:51:05 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing,
    config='org.apache.webapp.admin.ApplicationResources', retur
    nNull=true
    Mar 30, 2007 3:51:06 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Processing Context configuration file URL file:C:\Program
    Files\Apache Sof
    tware Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
    Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Processing Context configuration file URL file:C:\Program
    Files\Apache Sof
    tware Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
    Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Installing web application at context path /jsp-examples from URL
    file:C:\
    Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples
    Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Installing web application at context path from URL
    file:C:\Program Files
    \Apache Software Foundation\Tomcat 5.0\webapps\ROOT
    Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Installing web application at context path /servlets-examples from
    URL fil
    e:C:\Program Files\Apache Software Foundation\Tomcat
    5.0\webapps\servlets-exampl
    es
    Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Installing web application at context path /tomcat-docs from URL
    file:C:\P
    rogram Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
    Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Installing web application at context path /webdav from URL
    file:C:\Progra
    m Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
    Mar 30, 2007 3:51:07 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Mar 30, 2007 3:51:07 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Mar 30, 2007 3:51:07 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=C:\Program Files\Apache Software
    Foundat
    ion\Tomcat 5.0\conf\jk2.properties
    Mar 30, 2007 3:51:08 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 4266 ms
    Mar 30, 2007 3:53:07 PM org.apache.catalina.core.StandardHostDeployer
    install
    INFO: Installing web application at context path /Hyperceller from URL
    file:C:\P
    rogram Files\Apache Software Foundation\Tomcat 5.0\webapps\Hyperceller
    Mar 30, 2007 3:53:08 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings',
    returnNull=tru
    e
    Mar 30, 2007 3:53:08 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources',
    returnNul
    l=true
    Mar 30, 2007 3:53:09 PM org.apache.commons.digester.Digester
    startElement
    SEVERE: Begin event threw exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
    Utils.java:1656)
    at
    org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
    Utils.java:1551)
    at
    org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
    java:1580)
    at
    org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919
    at
    org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
    at
    org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
    .java:251)
    at org.apache.commons.digester.Rule.begin(Rule.java:152)
    at
    org.apache.commons.digester.Digester.startElement(Digester.java:1361)
    at
    org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
    ce)
    at
    org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
    own Source)
    at
    org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Sourc
    e)
    at
    org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
    own Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
    Dispatcher.dispatch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
    known Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
    at
    org.apache.commons.digester.Digester.parse(Digester.java:1647)
    at
    org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at
    org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at
    org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    at
    org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:1029)
    at
    org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86
    2)
    at
    org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
    t.java:4013)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    357)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:823)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
    7)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
    at
    org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
    loyer.java:277)
    at
    org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
    ava:701)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
    at
    org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :327)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
    at
    org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.
    java:800)
    at
    org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
    rocessChildren(ContainerBase.java:1619)
    at
    org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
    rocessChildren(ContainerBase.java:1628)
    at
    org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r
    un(ContainerBase.java:1608)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.UnsupportedClassVersionError:
    com/hyperceller/form/LoginFor
    m (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
    ClassLoader.java:1634)
    at
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
    der.java:860)
    at
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
    der.java:1307)
    at
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
    der.java:1189)
    at
    org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
    java:320)
    at
    org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
    91)
    ... 46 more
    Mar 30, 2007 3:53:09 PM org.apache.struts.action.ActionServlet
    handleConfigExcep
    tion
    SEVERE: Parsing error processing resource path
    java.lang.reflect.InvocationTargetException
    at
    org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2919)
    at
    org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2945)
    at
    org.apache.commons.digester.Digester.startElement(Digester.java:1364)
    at
    org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
    ce)
    at
    org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
    own Source)
    at
    org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Sourc
    e)
    at
    org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
    own Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
    Dispatcher.dispatch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
    known Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
    at
    org.apache.commons.digester.Digester.parse(Digester.java:1647)
    at
    org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at
    org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at
    org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    at
    org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:1029)
    at
    org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86
    2)
    at
    org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
    t.java:4013)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    357)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:823)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
    7)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
    at
    org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
    loyer.java:277)
    at
    org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
    ava:701)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
    at
    org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :327)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
    at
    org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.
    java:800)
    at
    org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
    rocessChildren(ContainerBase.java:1619)
    at
    org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
    rocessChildren(ContainerBase.java:1628)
    at
    org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r
    un(ContainerBase.java:1608)
    at java.lang.Thread.run(Thread.java:534)
    Mar 30, 2007 3:53:44 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
    returnN
    ull=true
    Mar 30, 2007 3:53:44 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings',
    returnNull=tru
    e
    Mar 30, 2007 3:53:44 PM org.apache.struts.util.PropertyMessageResources
    <init>
    INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
    returnN
    ull=true
    could anyone tell me what the problem may be???
    Note: When I configure my application on the Tomcat 5.5 and java 1.5 then it runs fine. But the problem arises when I compile my code on the java 1.4 and run on the Tomcat 5.0
    Thanks in advance!!

    I am sorry that I forgot to tell you that I am running a struts application. Struts 1.1

  • Error While trying to run a servlet

    I am getting the below error while trying to run a servlet using tomcat.In this admin is a directory where I have a html file called admin.html which calls the servlet AdminServlet & replaces the url by /servlet/AdminServlet.
    HTTP Status 404 - /SPOT/admin/servlet/AdminServlet
    type Status report
    message /SPOT/admin/servlet/AdminServlet
    description The requested resource (/SPOT/admin/servlet/AdminServlet) is not available.
    For more details I am also copying the code from the admin.html file below.
    <script language=JavaScript>
    document.location.replace('../servlet/AdminServlet');
    </script>

    JavaScript != javareplace or redirect ??

  • Error while running HelloWorld page in OAF

    Hi,
    While running Helloworld tutorial its throwing following Exception:
    oracle.apps.fnd.framework.OAException: Application: ICX, Message Name: Could not create the transaction Id for this session. at oracle.apps.fnd.framework.CreateIcxSession.createTransaction(CreateIcxSession.java:520) at runregion.jspService(runregion.jsp:103) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)
    Few days back it was running successfully after that no setup change has been made.
    Please suggest the reason.
    Thanks in advance for your help.

    Hi ,
    1) Try deleting all the class files and try to run.
    2) If you get another instance dbc file try running the file against the database.
    3) Create a connection to the database from Jdev and Test it, it is working or not,
    Once it get success message, then try to run the page.
    4) Or instead of running the HelloWorld, create your own PG.xml and add a AM and CO and try to run the file.
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Having problem running a servlet program in Tomcat5.5

    Hi,
    I wrote a sample servlet, HelloWorld.java and I compiled it and put the .class file in the WEB-INF\Classes directory in the Tomcat directory. Now when I do this,
    http://localhost:8080/ it's working fine but when I do this, http://localhost:8080/servlet/HelloWorld I am getting an error message "*HTTP Status 404"*.
    I have done no changes to web.xml and server.xml. Should I be doing anything?
    My HelloWorld.Java file is as below.
    package Users.Ravi.Desktop.CurrentProject.Servlets;
    import java.io.*; 
    import javax.servlet.*;  
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
          throws ServletException, IOException { 
        PrintWriter out = response.getWriter();
        out.println("Hello World");
    }Thanks.

    Ah, I see the problem now. You need to put servlet class as
    <code class="jive-code jive-java">Users.Ravi.Desktop.CurrentProject.Servlets.HelloWorld</code>
    <code class="jive-code jive-java">So, your web.xml will have</code>
    <servlet>
         <servlet-name>HelloWorld</servlet-name>
         <servlet-class></code><code class="jive-code jive-java">Users.Ravi.Desktop.CurrentProject.Servlets.HelloWorld</code><code class="jive-code jive-java"></servlet-class>
    </servlet>{code}

Maybe you are looking for

  • Types of Infocube & DSO in BI 7.0 version

    Hi, What are the Types of Infocube in BI 7.0 version, Please provide details and document also. what are the usage these types of infocube. What are the Types of DSO in BI 7.0 version, Please provide details and document also. what are the usage thes

  • How can I "unhide" everything on my canvas?

    I accidentally hit a keyboard button and all of the elements in my project became invisible, so that now all I'm looking at is a white background. I've tried hitting every key, but nothing is bringing them back. What is this command, and how do I und

  • Apple TV, Bose Sound System, Blu-Ray, FIOS

    Got the Apple TV for Xmas this year.  COnnected it to my Samsung TV (there are 3 spare HDMI ports), and get a great picture but no sound at all.  I have been reading the various options, but unclear as to what is correct.  Should I: Connect ATV to my

  • 16:9 settings

    I'm still in a pickle over this, and am wanting to sort it for once and for all. I am shooting in 16:9 (although when importing it to FC Studio, it does not look widescreen). When I drop it in the timeline it says my sequence settings don't match, do

  • Cross platform upgrade question between Photoshop CS5/CS6 and multiple Windows/Mac computers

    Hello, I'm currently using a Windows laptop and PC running Photoshop CS5 from a Student license I got in college. I am considering moving to an Apple laptop so I was looking at the cross platform update question on the forum that led me here: Order p