Servlets not working in tomcat-4.1.24

Servlets are not working in a new context which I have created in tomcat-4.1.24. if i put the same servlet in examples context it is working. jsps are working in the new context also. any idea????
binny

Suppose your servlets class is called "app", you need to add this in your web.xml file
<servlet>
<servlet-name>app</servlet-name>
<servlet-class>app</servlet-class>
<servlet-mapping>
<servlet-name>app</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
</servlet>

Similar Messages

  • RequestDispatcher is not working with Tomcat 4.1

    This is JSP's path
    http://localhost:8080/myApp/Date.jsp
    from this jsp i am calling below Servlet
    this is my servlets path
    http://localhost:8080/examples/servlet/SampleServlet
    from the servlet i am trying to forward request to other JSP
    but it sees like RequestDispatcher is not working with Tomcat
    but i can able to call JSP using
    response.sendRedirect("http://localhost:8080/myApp/Date.jsp");
    OR
    response.sendRedirect("/myApp/Date.jsp");
    both works fine , but no combination is working with RiquestDispatcher.forword();
    Any Guess ???.

    yes i have tried with ("/Date.jsp") also .
    it gives me 404 error
    Error description is
    " The requested resource (/Date.jps) is not available"
    i am getting same error for all possible combinations of URL iam giving
    some of other URL's i have tried..
    /examples/Date.jsp
    /myApp/Date.jsp (myApp is my war file name deployed in webapps directory)
    and many more
    thanks for help.

  • System.out.println not working in Tomcat-4.1.x

    System.out.println not working in Tomcat-4.1.24. Any settings has to be enabled??? I am using tomcat for Solaris

    I think u can use ServletContext.log() to output info instased.

  • Trying to make oracle-xsql-servlet to work under tomcat

    I am trying setup Setup "oracle-xsql-servlet" to work under tomcat.
    #1. I have installed the xdk from orcale at "C:\xdk_nt_10_1_0_2_0_production"
    #2. I have installed "Apache Tomcat Version 6.0.14"
    #3.
    I have made the following changes to "catalina.bat"
    REM Added for Oracle XSQL Servlet
    REM -----------------------------
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\xsu12.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\oraclexsql.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\xmlparserv2.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\classes111.zip
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\xdk\admin
    echo %CLASSPATH%
    #4 created a new folder under "C:\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps" xdk
    and created a web.xml in it. Following are the entries is the web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <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">
         <description>
    XDK Examples.
    </description>
         <display-name>XDK Examples</display-name>
         <servlet>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <url-pattern> *.xsql </url-pattern>
         </servlet-mapping>
    </web-app>
    PROBLEM. When I start up tomcat, I keep getting the following errors.
    SEVERE: Error deploying web application directory xdk
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)     
    OTHER APPLICATIONS such as Examples (provided by apache) work fine.
    Any ideas ?

    XSQL may be used with Tomcat 3.1 and 3.2.
    Refer to section Jakarta Tomcat 3.1 or 3.2
    http://www.oracle.com/technology/tech/xml/xdk/doc/production10g/doc/java/xsql/xsql_userguide.html#ID3386

  • JDBC not working with Tomcat

    Please help,
    I have tried all the database example and they work great locally, until I deploy to my Tomcat server. Tomcat is display Java Studio Creator 2 pages without issue not binding to data.
    all I am trying to do is a basic sql connection to see how Java Studio Creator 2 connects.
    Dev enviroment:
    1. sql server: localhost
    2. user: tester
    3. password: Stealth1
    4. SQL table: doc
    I would really apreaciate if someone could walk me thru a simple table databind ~ now remember the local databind and run works without issues - export to a war and implement to Tomcat 5.5.15
    Here is what I have
    <tomcat_install>\common\lib ~ dropped in: msbase.jar,mssqlserver.jar, msutil.jar, jstl.jar, standard.jar
    Exported war name:simple
    <tomcat_install>\webapps\simple ~ Page1.jsp
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{Page1.page1}" id="page1">
                <ui:html binding="#{Page1.html1}" id="html1">
                    <ui:head binding="#{Page1.head1}" id="head1">
                        <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{Page1.form1}" id="form1">
                            <ui:staticText binding="#{Page1.staticText1}" id="staticText1" style="position: absolute; left: 72px; top: 72px" text="Testing label"/>
                            <ui:table augmentTitle="false" binding="#{Page1.table1}" id="table1" style="left: 72px; top: 96px; position: absolute; width: 360px"
                                title="Table" width="240">
                                <script><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table1");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table1");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table1");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table1");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table1");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table1");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="5" sourceData="#{Page1.docsDataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="LeafName" id="tableColumn1" sort="LeafName">
                                        <ui:staticText binding="#{Page1.staticText2}" id="staticText2" text="#{currentRow.value['LeafName']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="DirName" id="tableColumn2" sort="DirName">
                                        <ui:staticText binding="#{Page1.staticText3}" id="staticText3" text="#{currentRow.value['DirName']}"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>Folders <tomcat_install>\webapps\simple\
    Tree listing
    | Page1.jsp
    |
    +---META-INF
    | MANIFEST.MF
    |
    +---resources
    | stylesheet.css
    |
    \---WEB-INF
    | faces-config.xml
    | managed-beans.xml
    | navigation.xml
    | web.xml
    |
    +---classes
    | \---simple
    | ApplicationBean1.class
    | Bundle.properties
    | Page1.class
    | RequestBean1.class
    | SessionBean1.class
    |
    \---lib
    appbase.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload-1.0.jar
    commons-logging-1.0.4.jar
    dataprovider.jar
    defaulttheme.jar
    errorhandler.jar
    jsf-api.jar
    jsf-impl.jar
    jsfcl.jar
    jstl.jar
    msbase.jar
    mssqlserver.jar
    msutil.jar
    portlet.jar
    rowset.jar
    sqlx.jar
    standard.jar
    webui.jar

    Help ~
    I will summarize what I have done
    SQL query written from scratch works in Tomcat.
    When using Java studio creator 2 it works in its native server environment ~ until exported, restart Tomcat, access page getting face value errors.
    Please note any work that is done at the company I work for, has to work in Tomcat as the finally product. Please don�t explain how to make this work in the Java Studio Creator 2 ~ I have already can do that.
    Two other developers are using this product for testing and are having similar issues.
    The way Java Studio Creator 2 registers the drives is the hang up
    Here is my paths so that no one inserts put files here or there ~ they can see if a file is missing.
    Folder PATH listing
    C:.
    | LICENSE
    | list.txt
    | NOTICE
    | ratrobot.war
    | RELEASE-NOTES
    | RUNNING.txt
    | SESSIONS.ser
    | tomcat.ico
    | Uninstall.exe
    |
    +---bin
    | bootstrap.jar
    | catalina.bat
    | catalina.sh
    | commons-daemon.jar
    | commons-logging-api.jar
    | cpappend.bat
    | digest.bat
    | digest.sh
    | jmx.jar
    | jsvc.tar.gz
    | service.bat
    | SESSIONS.ser
    | setclasspath.bat
    | setclasspath.sh
    | shutdown.bat
    | shutdown.sh
    | startup.bat
    | startup.sh
    | tcnative-1.dll
    | tomcat-juli.jar
    | tomcat5.exe
    | tomcat5w.exe
    | tool-wrapper.bat
    | tool-wrapper.sh
    | version.bat
    | version.sh
    |
    +---common
    | +---classes
    | | logging.properties
    | |
    | +---endorsed
    | | xercesImpl.jar
    | | xml-apis.jar
    | |
    | +---i18n
    | | tomcat-i18n-en.jar
    | | tomcat-i18n-es.jar
    | | tomcat-i18n-fr.jar
    | | tomcat-i18n-ja.jar
    | |
    | \---lib
    | commons-el.jar
    | jasper-compiler-jdt.jar
    | jasper-compiler.jar
    | jasper-runtime.jar
    | jsp-api.jar
    | jstl.jar
    | msbase.jar
    | mssqlserver.jar
    | msutil.jar
    | naming-factory-dbcp.jar
    | naming-factory.jar
    | naming-resources.jar
    | servlet-api.jar
    | standard.jar
    |
    +---conf
    | | catalina.policy
    | | catalina.properties
    | | context.xml
    | | context.xml.orig
    | | jk2.manifest
    | | jk2.properties
    | | jkconf.ant.xml
    | | jkconfig.manifest
    | | logging.properties
    | | server-minimal.xml
    | | server.xml
    | | server.xml.orig
    | | shm.manifest
    | | tomcat-jk2.manifest
    | | tomcat-users.xml
    | | uriworkermap.properties
    | | web.xml
    | | web.xml.orig
    | | workers.properties
    | | workers.properties.minimal
    | | workers2.properties
    | | workers2.properties.minimal
    | |
    | \---Catalina
    | \---localhost
    | host-manager.xml
    | manager.xml
    +---logs
    | admin.2005-05-30.log
    | admin.2006-03-11.log
    | admin.2006-03-17.log
    | catalina.2005-05-30.log
    | catalina.2006-03-11.log
    | catalina.2006-03-17.log
    | host-manager.2005-05-30.log
    | host-manager.2006-03-11.log
    | host-manager.2006-03-17.log
    | jakarta_service_20060311.log
    | jakarta_service_20060317.log
    | localhost.2005-05-30.log
    | localhost.2006-03-11.log
    | localhost.2006-03-17.log
    | manager.2005-05-30.log
    | manager.2006-03-11.log
    | manager.2006-03-17.log
    | stderr_20060311.log
    | stderr_20060317.log
    | stdout_20060311.log
    | stdout_20060317.log
    |
    +---server
    | +---classes
    | +---lib
    | | catalina-ant-jmx.jar
    | | catalina-ant.jar
    | | catalina-cluster.jar
    | | catalina-optional.jar
    | | catalina-storeconfig.jar
    | | catalina.jar
    | | commons-modeler.jar
    | | ratrobot.jar
    | | servlets-cgi.renametojar
    | | servlets-default.jar
    | | servlets-invoker.jar
    | | servlets-ssi.renametojar
    | | servlets-webdav.jar
    | | tomcat-ajp.jar
    | | tomcat-apr.jar
    | | tomcat-coyote.jar
    | | tomcat-http.jar
    | | tomcat-jkstatus-ant.jar
    | \-- tomcat-util.jar
    |
    +---shared
    | +---classes
    | \---lib
    | appbase.jar
    | commons-beanutils.jar
    | commons-collections.jar
    | commons-digester.jar
    | commons-fileupload-1.0.jar
    | commons-logging-1.0.4.jar
    | dataprovider.jar
    | defaulttheme.jar
    | errorhandler.jar
    | jsf-api.jar
    | jsf-impl.jar
    | jsfcl.jar
    | portlet.jar
    | ratrobot.jar
    | rowset.jar
    | sqlx.jar
    | webui.jar
    |
    +---sites
    | | Webapp Setup.htm
    | |
    | \---Webapp Setup_files
    | homecow.gif
    | java.css
    | javaphonebook.gif
    | pollhandler.css
    | site.js
    | website.css
    |
    +---temp
    | bugzilla37035-safeToDelete.tmp
    |
    +---webapps
    | | blankTest.war
    | | ratrobot.war
    | | simple.war
    | |
    | +---balancer
    | | +---images
    | | +---META-INF
    | | | context.xml
    | | |
    | | \---WEB-INF
    | | | web.xml
    | | |
    | | +---config
    | | | rules.xml
    | | |
    | | \---lib
    | | catalina-balancer.jar
    | |
    | +---blankTest
    | | | myApp.jsp
    | | | Page1.jsp
    | | |
    | | \---WEB-INF
    | | | faces-config.xml
    | | | managed-beans.xml
    | | | myApp.xml
    | | | navigation.xml
    | | | sun-web.xml
    | | | web.old
    | | | web.xml
    | | |
    | | \---lib
    | | appbase.jar
    | | bootstrap.jar
    | | commons-beanutils.jar
    | | commons-collections.jar
    | | commons-digester.jar
    | | commons-fileupload-1.0.jar
    | | commons-logging-1.0.4.jar
    | | commons-logging-api.jar
    | | dataprovider.jar
    | | defaulttheme.jar
    | | errorhandler.jar
    | | jsf-api.jar
    | | jsf-impl.jar
    | | msbase.jar
    | | mssqlserver.jar
    | \-- msutil.jar
    |
    | +---jsp-examples
    | | | index.html
    | | | source.jsp
    | | |
    | | +---cal
    | | | cal1.jsp
    | | | cal1.jsp.html
    | | | cal2.jsp
    | | | cal2.jsp.html
    | | | calendar.html
    | | | Entries.java.html
    | | | Entry.java.html
    | | | JspCalendar.java.html
    | | | login.html
    | | | TableBean.java.html
    | | |
    | | +---checkbox
    | | | check.html
    | | | checkresult.jsp
    | | | checkresult.jsp.html
    | | | CheckTest.html
    | | | cresult.html
    | | |
    | | +---colors
    | | | clr.html
    | | | ColorGameBean.html
    | | | colors.html
    | | | colrs.jsp
    | | | colrs.jsp.html
    | | |
    | | +---dates
    | | | date.html
    | | | date.jsp
    | | | date.jsp.html
    | | |
    | | +---error
    | | | er.html
    | | | err.jsp
    | | | err.jsp.html
    | | | error.html
    | | | errorpge.jsp
    | | |
    | | +---forward
    | | | forward.jsp
    | | | forward.jsp.html
    | | | fwd.html
    | | | one.jsp
    | | | two.html
    | | |
    | | +---images
    | | | code.gif
    | | | execute.gif
    | | | read.gif
    | | | return.gif
    | | |
    | | +---include
    | | | foo.html
    | | | foo.jsp
    | | | inc.html
    | | | include.jsp
    | | | include.jsp.html
    | | |
    | | +---jsp2
    | | | +---el
    | | | | basic-arithmetic.html
    | | | | basic-arithmetic.jsp
    | | | | basic-arithmetic.jsp.html
    | | | | basic-comparisons.html
    | | | | basic-comparisons.jsp
    | | | | basic-comparisons.jsp.html
    | | | | functions.html
    | | | | Functions.java.html
    | | | | functions.jsp
    | | | | functions.jsp.html
    | | | | implicit-objects.html
    | | | | implicit-objects.jsp
    | | | | implicit-objects.jsp.html
    | | | |
    | | | +---jspattribute
    | | | | FooBean.java.html
    | | | | HelloWorldSimpleTag.java.html
    | | | | jspattribute.html
    | | | | jspattribute.jsp
    | | | | jspattribute.jsp.html
    | | | | shuffle.html
    | | | | shuffle.jsp
    | | | | shuffle.jsp.html
    | | | | ShuffleSimpleTag.java.html
    | | | | TileSimpleTag.java.html
    | | | |
    | | | +---jspx
    | | | | basic.html
    | | | | basic.jspx
    | | | | basic.jspx.html
    | | | | svgexample.html
    | | | | textRotate.html
    | | | | textRotate.jpg
    | | | | textRotate.jspx
    | | | | textRotate.jspx.html
    | | | |
    | | | +---misc
    | | | | coda.jspf
    | | | | coda.jspf.html
    | | | | config.html
    | | | | config.jsp
    | | | | config.jsp.html
    | | | | dynamicattrs.html
    | | | | dynamicattrs.jsp
    | | | | dynamicattrs.jsp.html
    | | | | EchoAttributesTag.java.html
    | | | | prelude.jspf
    | | | | prelude.jspf.html
    | | | |
    | | | +---simpletag
    | | | | book.html
    | | | | book.jsp
    | | | | book.jsp.html
    | | | | BookBean.java.html
    | | | | FindBookSimpleTag.java.html
    | | | | Functions.java.html
    | | | | hello.html
    | | | | hello.jsp
    | | | | hello.jsp.html
    | | | | HelloWorldSimpleTag.java.html
    | | | | repeat.html
    | | | | repeat.jsp
    | | | | repeat.jsp.html
    | | | | RepeatSimpleTag.java.html
    | | | |
    | | | \---tagfiles
    | | | displayProducts.tag.html
    | | | hello.html
    | | | hello.jsp
    | | | hello.jsp.html
    | | | helloWorld.tag.html
    | | | panel.html
    | | | panel.jsp
    | | | panel.jsp.html
    | | | panel.tag.html
    | | | products.html
    | | | products.jsp
    | | | products.jsp.html
    | | | xhtmlbasic.tag.html
    | | |
    | | +---jsptoserv
    | | | hello.jsp
    | | | jsptoservlet.jsp
    | | | jsptoservlet.jsp.html
    | | | jts.html
    | | | servletToJsp.java.html
    | | |
    | | +---num
    | | | numguess.html
    | | | numguess.jsp
    | | | numguess.jsp.html
    | | |
    | | +---plugin
    | | | | plugin.html
    | | | | plugin.jsp
    | | | | plugin.jsp.html
    | | | |
    | | | \---applet
    | | | Clock2.class
    | | | Clock2.java
    | | |
    | | +---security
    | | | \---protected
    | | | error.jsp
    | | | index.jsp
    | | | login.jsp
    | | |
    | | +---sessions
    | | | carts.html
    | | | carts.jsp
    | | | carts.jsp.html
    | | | crt.html
    | | | DummyCart.html
    | | |
    | | +---simpletag
    | | | foo.html
    | | | foo.jsp
    | | | foo.jsp.html
    | | |
    | | +---snp
    | | | snoop.html
    | | | snoop.jsp
    | | | snoop.jsp.html
    | | |
    | | +---tagplugin
    | | | choose.html
    | | | choose.jsp
    | | | choose.jsp.html
    | | | foreach.html
    | | | foreach.jsp
    | | | foreach.jsp.html
    | | | howto.html
    | | | if.html
    | | | if.jsp
    | | | if.jsp.html
    | | | notes.html
    | | |
    | | +---WEB-INF
    | | | | tagPlugins.xml
    | | | | web.xml
    | | | |
    | | | +---classes
    | | | | | servletToJsp.class
    | | | | | servletToJsp.java
    | | | | |
    | | | | +---cal
    | | | | | Entries.class
    | | | | | Entries.java
    | | | | | Entry.class
    | | | | | Entry.java
    | | | | | JspCalendar.class
    | | | | | JspCalendar.java
    | | | | | TableBean.class
    | | | | | TableBean.java
    | | | | |
    | | | | +---checkbox
    | | | | | CheckTest.class
    | | | | | CheckTest.java
    | | | | |
    | | | | +---colors
    | | | | | ColorGameBean.class
    | | | | | ColorGameBean.java
    | | | | |
    | | | | +---compressionFilters
    | | | | | CompressionFilter.class
    | | | | | CompressionFilter.java
    | | | | | CompressionFilterTestServlet.class
    | | | | | CompressionFilterTestServlet.java
    | | | | | CompressionResponseStream.class
    | | | | | CompressionResponseStream.java
    | | | | | CompressionServletResponseWrapper.class
    | | | | | CompressionServletResponseWrapper.java
    | | | | |
    | | | | +---dates
    | | | | | JspCalendar.class
    | | | | | JspCalendar.java
    | | | | |
    | | | | +---error
    | | | | | Smart.class
    | | | | | Smart.java
    | | | | |
    | | | | +---examples
    | | | | | ExampleTagBase.class
    | | | | | ExampleTagBase.java
    | | | | | FooTag.class
    | | | | | FooTag.java
    | | | | | FooTagExtraInfo.class
    | | | | | FooTagExtraInfo.java
    | | | | | LogTag.class
    | | | | | LogTag.java
    | | | | | ShowSource.class
    | | | | | ShowSource.java
    | | | | |
    | | | | +---filters
    | | | | | ExampleFilter.class
    | | | | | ExampleFilter.java
    | | | | | RequestDumperFilter.class
    | | | | | RequestDumperFilter.java
    | | | | | SetCharacterEncodingFilter.class
    | | | | | SetCharacterEncodingFilter.java
    | | | | |
    | | | | +---jsp2
    | | | | | \---examples
    | | | | | | BookBean.class
    | | | | | | BookBean.java
    | | | | | | FooBean.class
    | | | | | | FooBean.java
    | | | | | |
    | | | | | +---el
    | | | | | | Functions.class
    | | | | | | Functions.java
    | | | | | |
    | | | | | \---simpletag
    | | | | | EchoAttributesTag.class
    | | | | | EchoAttributesTag.java
    | | | | | FindBookSimpleTag.class
    | | | | | FindBookSimpleTag.java
    | | | | | HelloWorldSimpleTag.class
    | | | | | HelloWorldSimpleTag.java
    | | | | | RepeatSimpleTag.class
    | | | | | RepeatSimpleTag.java
    | | | | | ShuffleSimpleTag.class
    | | | | | ShuffleSimpleTag.java
    | | | | | TileSimpleTag.class
    | | | | | TileSimpleTag.java
    | | | | |
    | | | | +---listeners
    | | | | | ContextListener.class
    | | | | | ContextListener.java
    | | | | | SessionListener.class
    | | | | | SessionListener.java
    | | | | |
    | | | | +---num
    | | | | | NumberGuessBean.class
    | | | | | NumberGuessBean.java
    | | | | |
    | | | | +---org
    | | | | | \---apache
    | | | | | \---jsp
    | | | | | | source_jsp.class
    | | | | | |
    | | | | | +---cal
    | | | | | | cal1_jsp.class
    | | | | | | cal2_jsp.class
    | | | | | |
    | | | | | +---checkbox
    | | | | | | checkresult_jsp.class
    | | | | | |
    | | | | | +---colors
    | | | | | | colrs_jsp.class
    | | | | | |
    | | | | | +---dates
    | | | | | | date_jsp.class
    | | | | | |
    | | | | | +---error
    | | | | | | errorpge_jsp.class
    | | | | | | err_jsp.class
    | | | | | |
    | | | | | +---forward
    | | | | | | forward_jsp.class
    | | | | | | one_jsp.class
    | | | | | |
    | | | | | +---include
    | | | | | | foo_jsp.class
    | | | | | | include_jsp.class
    | | | | | |
    | | | | | +---jsp2
    | | | | | | +---el
    | | | | | | | basic_002darithmetic_jsp.class
    | | | | | | | basic_002dcomparisons_jsp.class
    | | | | | | | functions_jsp.class
    | | | | | | | implicit_002dobjects_jsp.class
    | | | | | | |
    | | | | | | +---jspattribute
    | | | | | | | jspattribute_jsp.class
    | | | | | | | shuffle_jsp$shuffle_jspHelper.class
    | | | | | | | shuffle_jsp.class
    | | | | | | |
    | | | | | | +---jspx
    | | | | | | | basic_jspx$basic_jspxHelper.class
    | | | | | | | basic_jspx.class
    | | | | | | | textRotate_jspx.class
    | | | | | | |
    | | | | | | +---misc
    | | | | | | | config_jsp.class
    | | | | | | | dynamicattrs_jsp.class
    | | | | | | |
    | | | | | | +---simpletag
    | | | | | | | book_jsp.class
    | | | | | | | hello_jsp.class
    | | | | | | | repeat_jsp$repeat_jspHelper.class
    | | | | | | | repeat_jsp.class
    | | | | | | |
    | | | | | | \---tagfiles
    | | | | | | hello_jsp.class
    | | | | | | panel_jsp$panel_jspHelper.class
    | | | | | | panel_jsp.class
    | | | | | | products_jsp$products_jspHelper.class
    | | | | | | products_jsp.class
    | | | | | |
    | | | | | +---jsptoserv
    | | | | | | hello_jsp.class
    | | | | | | jsptoservlet_jsp.class
    | | | | | |
    | | | | | +---num
    | | | | | | numguess_jsp.class
    | | | | | |
    | | | | | +---plugin
    | | | | | | plugin_jsp.class
    | | | | | |
    | | | | | +---security
    | | | | | | \---protected_
    | | | | | | error_jsp.class
    | | | | | | index_jsp.class
    | | | | | | login_jsp.class
    | | | | | |
    | | | | | +---sessions
    | | | | | | carts_jsp.class
    | | | | | |
    | | | | | +---simpletag
    | | | | | | foo_jsp.class
    | | | | | |
    | | | | | +---snp
    | | | | | | snoop_jsp.class
    | | | | | |
    | | | | | +---tag
    | | | | | | \---web
    | | | | | | displayProducts_tag.class
    | | | | | | helloWorld_tag.class
    | | | | | | panel_tag.class
    | | | | | | xhtmlbasic_tag.class
    | | | | | |
    | | | | | +---tagplugin
    | | | | | | choose_jsp.class
    | | | | | | foreach_jsp$1.class
    | | | | | | foreach_jsp$10.class
    | | | | | | foreach_jsp$2.class
    | | | | | | foreach_jsp$3.class
    | | | | | | foreach_jsp$4.class
    | | | | | | foreach_jsp$5.class
    | | | | | | foreach_jsp$6.class
    | | | | | | foreach_jsp$7.class
    | | | | | | foreach_jsp$8.class
    | | | | | | foreach_jsp$9.class
    | | | | | | foreach_jsp.class
    | | | | | | if_jsp.class
    | | | | | |
    | | | | | \---xml
    | | | | | xml_jsp.class
    | | | | |
    | | | | +---sessions
    | | | | | DummyCart.class
    | | | | | DummyCart.java
    | | | | |
    | | | | +---util
    | | | | | HTMLFilter.class
    | | | | | HTMLFilter.java
    | | | | |
    | | | | \---validators
    | | | | DebugValidator.class
    | | | | DebugValidator.java
    | | | |
    | | | +---jsp
    | | | | | debug-taglib.tld
    | | | | | example-taglib.tld
    | | | | |
    | | | | \---applet
    | | | | Clock2.java
    | | | |
    | | | +---jsp2
    | | | | jsp2-example-taglib.tld
    | | | |
    | | | +---lib
    | | | | jstl.jar
    | | | | standard.jar
    | | | |
    | | | \---tags
    | | | displayProducts.tag
    | | | helloWorld.tag
    | | | panel.tag
    | | | xhtmlbasic.tag
    | | |
    | | \---xml
    | | xml.html
    | | xml.jsp
    | | xml.jsp.html
    | |
    | +---mydev
    | | | blankTest.war
    | | | ratrobot.war
    | | |
    | | +---balancer
    | | | +---images
    | | | +---META-INF
    | | | | context.xml
    | | | |
    | | | \---WEB-INF
    | | | | web.xml
    | | | |
    | | | +---config
    | | | | rules.xml
    | | | |
    | | | \---lib
    | | | catalina-balancer.jar
    | | |
    | | +---blankTest
    | | | | Page1.jsp
    | | | |
    | | | \---WEB-INF
    | | | | faces-config.xml
    | | | | managed-beans.xml
    | | | | navigation.xml
    | | | | sun-web.xml
    | | | | web.xml
    | | | |
    | | | \---lib
    | | | appbase.jar
    | | | bootstrap.jar
    | | | commons-beanutils.jar
    | | | commons-collections.jar
    | | | commons-digester.jar
    | | | commons-fileupload-1.0.jar
    | | | commons-logging-1.0.4.jar
    | | | commons-logging-api.jar
    | | | dataprovider.jar
    | | | defaulttheme.jar
    | | | errorhandler.jar
    | | | jsf-api.jar
    | | | jsf-impl.jar
    | | |
    | | +---jsp-examples
    | | | | index.html
    | | | | source.jsp
    | | | |
    | | | +---cal
    | | | | cal1.jsp
    | | | | cal1.jsp.html
    | | | | cal2.jsp
    | | | | cal2.jsp.html
    | | | | calendar.html
    | | | | Entries.java.html
    | | | | Entry.java.html
    | | | | JspCalendar.java.html
    | | | | login.html
    | | | | TableBean.java.html
    | | | |
    | | | +---checkbox
    | | | | check.html
    | | | | checkresult.jsp
    | | | | checkresult.jsp.html
    | | | | CheckTest.html
    | | | | cresult.html
    | | | |
    | | | +---colors
    | | | | clr.html
    | | | | ColorGameBean.html
    | | | | colors.html
    | | | | colrs.jsp
    | | | | colrs.jsp.html
    | | | |
    | | | +---dates
    | | | | date.html
    | | | | date.jsp
    | | | | date.jsp.html
    | | | |
    | | | +---error
    | | | | er.html
    | | | | err.jsp
    | | | | err.jsp.html
    | | | | error.html
    | | | | errorpge.jsp
    | | | |
    | | | +---forward
    | | | | forward.jsp
    | | | | forward.jsp.html
    | | | | fwd.html
    | | | | one.jsp
    | | | | two.html
    | | | |
    | | | +---images
    | | | | code.gif
    | | | | execute.gif
    | | | | read.gif
    | | | | return.gif
    | | | |
    | | | +---include
    | | | | foo.html
    | | | | foo.jsp
    | | | | inc.html
    | | | | include.jsp
    | | | | include.jsp.html
    | | | |
    | | | +---jsp2
    | | | | +---el
    | | | | | basic-arithmetic.html
    | | | | | basic-arithmetic.jsp
    | | | | | basic-arithmetic.jsp.html
    | | | | | basic-comparisons.html
    | | | | | basic-comparisons.jsp
    | | | | | basic-comparisons.jsp.html
    | | | | | functions.html
    | | | | | Functions.java.html
    | | | | | functions.jsp
    | | | | | functions.jsp.html
    | | | | | implicit-objects.html
    | | | | | implicit-objects.jsp
    | | | | | implicit-objects.jsp.html
    | | | | |
    | | | | +---jspattribute
    | | | | | FooBean.java.html
    | | | | | HelloWorldSimpleTag.java.html
    | | | | | jspattribute.html
    | | | | | jspattribute.jsp
    | | | | | jspattribute.jsp.html
    | | | | | shuffle.html
    | | | | | shuffle.jsp
    | | | | | shuffle.jsp.html
    | | | | | ShuffleSimpleTag.java.html
    | | | | | TileSimpleTag.java.html
    | | | | |
    | | | | +---jspx
    | | | | | basic.html
    | | | | | basic.jspx
    | | | | | basic.jspx.html
    | | | | | svgexample.html
    | | | | | textRotate.html
    | | | | | textRotate.jpg
    | | | | | textRotate.jspx
    | | | | | textRotate.jspx.html
    | | | | |
    | | | | +---misc
    | | | | | coda.jspf
    | | | | | coda.jspf.html
    | | | | | config.html
    | | | | | config.jsp
    | | | | | config.jsp.html
    | | | | | dynamicattrs.html
    | | | | | dynamicattrs.jsp
    | | | | | dynamicattrs.jsp.html
    | | | | | EchoAttributesTag.java.html
    | | | | | prelude.jspf
    | | | | | prelude.jspf.html
    | | | | |
    | | | | +---simpletag
    | | | | | book.html
    | | | | | book.jsp
    | | | | | book.jsp.html
    | | | | | BookBean.java.html
    | | | | | FindBookSimpleTag.java.html
    | | | | | Functions.java.html
    | | | | | hello.html
    | | | | | hello.jsp
    | | | | | hello.jsp.html
    | | | | | HelloWorldSimpleTag.java.html
    | | | | | repeat.html
    | | | | | repeat.jsp
    | | | | | repeat.jsp.html
    | | | | | RepeatSimpleTag.java.html
    | | | | |
    | | | | \---tagfiles
    | | | | displayProducts.tag.html
    | | | | hello.html
    | | | | hello.jsp
    | | | | hello.jsp.html
    | | | | helloWorld.tag.html
    | | | | panel.html
    | | | | panel.jsp
    | | | | panel.jsp.html
    | | | | panel.tag.html
    | | | | products.html
    | | | | products.jsp
    | | | | products.jsp.html
    | | | | xhtmlbasic.tag.html
    | | | |
    | | | +---jsptoserv
    | | | | hello.jsp
    | | | | jsptoservlet.jsp
    | | | | jsptoservlet.jsp.html
    | | | | jts.html
    | | | | servletToJsp.java.html
    | | | |
    | | | +---num
    | | | | numguess.html
    | | | | numguess.jsp
    | | | | numguess.jsp.html
    | | | |
    | | | +---plugin
    | | | | | plugin.html
    | | | | | plugin.jsp
    | | | | | plugin.jsp.html
    | | | | |
    | | | | \---applet
    | | | | Clock2.class
    | | | | Clock2.java
    | | | |
    | | | +---security
    | | | | \---protected
    | | | | error.jsp
    | | | | index.jsp
    | | | |

  • JSP: work with TomCat 5.5.9 and NOT work with TomCat 6.0.16

    Hi all,
    I'm Antony and I have a problem with a .JSP page of my server.
    In my server there are 2 users: "u1" and "u2"; there are 2 TomCat, version 5.5.9 and version 6.0.16. There is Apache WebServer version 2. The 2 TomCat servers have the same configuration files: server.xml and web.xml (in the dir /conf of the main server's root). They not work simultaneously.
    When the user "root" launch the TomCat 5.5.9 all work fine: the server will show correctly the JSP pages of "u1" and the pages of "u2".
    When the user "root" launch the TomCat 6.0.16 the JSP pages of "u1" work fine but the JSP pages of "u2" not work: it seems that there are problems with the path where the server want to search the pages of u2.
    In the server.xml there is this code (for the handle of u2's site):
    <Host name="u2site.com" appBase="/home/u2/public_html/">
      <Alias>www.u2site.com</Alias>
      <Context path="" reloadable="false" docBase="/home/u2/public_html/" debug="0"/>
              <Context path="/manager" debug="0" privileged="true"
                  docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
              </Context>
    </Host>and this code (for the u1's site)
    <Host name="u1site.com" appBase="/home/u1/public_html/">
      <Context path="" reloadable="false" docBase="/home/u1/public_html" debug="1"/>
              <Context path="/manager" debug="0" privileged="true"
                  docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
              </Context>
    </Host>The problems with the JSP pages of u2 are one of the following:
    org.apache.jasper.JasperException: /login2.jsp(4,0) The value for the useBean class attribute com.u2.beans.access.Autenticator is invalid.and this one that appear with the pages that have the inclusion of another JSP page
    /u2page.jsp(3,0) File "/../support/_formatting.jsp" not foundI think that the TomCat know how to find the page that the browser request to Apache WebServer (and that the webserver request to Tomcat by the connector) 'cause for pages that haven't inclusion or call to method in packages all work fine...but the TomCat have problems to locate the pages included or the method located in a JAR (the jars are located in WEB-INF/lib/ of the u2's site).
    How I can resolve this problem with TomCat 6.0.16? I repeat that with TomCat 5.5.9 all work fine...same configuration!
    Any ideas?
    Thank you very much,
    Antony.

    Hi stevejluke, 'cause in the page "/supporto/_formatting.jsp" there are only the definition of some variables it's normal that the output at the browser it's a blank page.
    The problem it's that Tomcat 6.0.16 cannot know how "navigate" the pages beginning from one...it know where is the "x.jsp" page requested directly by Apache WebServer, where is "y.jsp" request directly by Apache, where is "z.jsp" requested directly by Apache but if "x.jsp" request, includes, "y.jsp" Tomcat cannot know where "y.jsp" is located. There is some file where I can "say" this to Tomcat?
    The page "/mostre/elenco_mostre.jsp" includes directly the "/supporto/_formatting.jsp".
    Another thing: in /mostre/elenco_mostre.jsp there is an inclusion directive for /supporto/_formatting.jsp that is so:
    <%@ include file="../supporto/_formatting.jsp"%>you can see that the included file is "../supporto/_formatting.jsp" and NOT "/../supporto/_formatting.jsp"...the "/" at the begin of the path is included by Tomcat!
    In the catalina.out there are this lines, when the page is called:
    Jul 6, 2008 3:15:00 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /elenco_mostre.jsp(3,0) File "/../supporto/_formatting.jsp" not found
      In catalina.out before server start there are this lines:
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
    Jul 6, 2008 1:43:49 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 358 ms
    Jul 6, 2008 1:43:49 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jul 6, 2008 1:43:49 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
    Jul 6, 2008 1:43:52 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/23  config=null
    Jul 6, 2008 1:43:52 AM org.apache.catalina.connector.MapperListener registerEngine
    WARNING: Unknown default host: localhost
    Jul 6, 2008 1:43:52 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2512 msThe file "web.xml" is located in "$Tomcat_home/conf" and it's:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
        http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
      <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
          <param-name>fork</param-name>
          <param-value>false</param-value>
        </init-param>
        <init-param>
          <param-name>xpoweredBy</param-name>
          <param-value>false</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>jsp</servlet-name>
        <url-pattern>*.jsp</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>jsp</servlet-name>
        <url-pattern>*.jspx</url-pattern>
      </servlet-mapping>
      <session-config>
        <session-timeout>30</session-timeout>
      </session-config>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>there are not web.xml file in /WEB-INF/ of the web application.
    Maybe the problem it's that Tomcat want the conf file in "Server/Service/Engine/Host/Context" ? I must move the block HOST of the server.xml file in this path?
    Good Sunday and thank you!
    Antony.

  • Help pls ! JSP not working in tomcat

    Hi techies,
    I have a problem in executing jsp files thru tomcat on windows
    The problem is i have my jsp files in a directory, i use virtual directory concept by setting up context in server.xml file to access my jsp, servlets and html files and some jsp files are working properly, but certain jsp files are not working...
    It gives an error saying " jsp file not found.." even though the file is in the directory
    Can anyone help to come-out of this problem.
    Rgds
    sathish

    Hi,
    if you are trying to map a short name to a jsp page, you should do that in the web.xml file not in the server.xml i think...
    Hope this help...

  • Frame access from servlet not working

    Dear all,
    I am running my servlets on Tomcat 5.5 and using JDK 1.6. I have a small program that uses codecs to access frames from a video file. PreAccessCodec implements Codec interface and PostAccessCodec extends PreAccessCodec. I set the two codecs into the processor's codec chain. The program is implemented as a thread and once started grabs frames and stores the images in a certain interval. The problem is this: whenever I start the thread from a main program, everything runs without a glitch. However, when I put the code in init() method of the servlet, I get the following error message:
    The input format is not compatible with the given codec plugin: com.mapper.utils.PostAccessCodec@69d02b
    Failed to realize: com.sun.media.ProcessEngine@1478a43
      Cannot build a flow graph with the customized options:
        Unable to add customed codecs:
          com.mapper.utils.PreAccessCodec@15356d5
          com.mapper.utils.PostAccessCodec@69d02b
    Error: Unable to realize com.sun.media.ProcessEngine@1478a43 I am using netbeans 5.5.1 to deploy my servlets. I doubt that the problem is with classpaths because the servlet doesn't complain when I am using JMF's classes like Processor.
    I would really appreciate any help.
    Thank you.
    Message was edited by:
    calculemus

    The GE.iH() method should return false for
    a ..head-full ..en-headed, not headless
    environment, and I expect (from what you
    reported above) that will return false for both
    your servlet and application, and is apparently
    not the problem.It returned false when I tried GE, and it was not the problem as you suggested. However, I now noticed in the logs:
    java.awt.HeadlessException
    I use Netbeans for the development, and I tried using -Dheadless=true and -Dheadless=false, it did not change anything...
    I think it is time to check that assumption
    more carefully.
    My impression is that PreAccessCodec and
    it's 'Post' equivalent are mentioned a lot in JMF
    example code, but are custom classes,
    built to suit the use at the time. Did you write the
    Pre/PostAccessCodecs for this app.?Yes I customized them from the JMF sample codes. They are in the classpaths and are correctly read by the servlet. I did some logging and I actually saw that the code inside Pre/PostAccess was logging when my servlet was run.
    >
    So, what I am thinking, is that while the JMF
    based Processor class may well be on the
    server's
    classpath, perhaps Pre/PostAccessCodec classes
    are not.
    oes a jar appear in the WEB-INF/lib directory,
    that contains the Pre/PostAccessCodec.class?
    Failing that, are the classes themselves in
    WEB-INF/classes/(sub-dir according to package name)/ ?Nevertheless, just to double check I checked WEB-INF directory and the classes appear correctly in their appropriate 'package-folders'.
    I figured out where exactly the thread was not running. In my PostAccessCodec class, I had overloaded getSupportedInputFormats() function to return RGB format.
    public Format [] getSupportedInputFormats() {
    Format [] fomats = {new RGBFormat()};
    return fomrats;
    When I changed it to return {VideoFormat()}, the codec initializes, but I get nothing when I want to access the frame.
    I guess I will have to start another thread.
    @moderators, please move the post if it is inappropriate to put it in this thread, my apologies.
    The problem is still there and I am not able to get the frame access not working from the servlet. :(
    Message was edited by:
    calculemus
    Message was edited by:
    calculemus

  • Response.sendError(200)does not work in Tomcat

    Hi,everyone,
    I'm using a servlet named as "Router" to receive messages from client. Because the processing time of "Router"is quite long, I want it to send back the "200 OK" response to the client at the beginning of the service() method. My Router.java is like this:
    public class Router extends HttpServlet
    public void service(HttpServletRequest request, HttpServletResponse response)
    throws ServletException
    // send a response code "200 OK" to the client
    response.sendError(200);
    //processing the received message
    My program works well in ServletExec server, but in Tomcat, it does not work. In tomcat, the 200 OK can only be sent back after the whole service() process is finished. The "response.sendError(200);" seems does not work at all. Can anyone help me to resolve it?
    Thanks a lot!
    grass

    hi, greatmazinger,
    Thank you very much! I changed my code
    "reponse.sendError(200);" to:
    "reponse.setStatus(200);
    response.flushBuffer();"
    Then the response was sent back immediately.
    Thanks a lot!
    Ying

  • JSP/Servlets not working after upload

    I have a JSP file and some servlets that work fine on my PC running Tomcat.
    I just uploaded them to my web server (which supports servlets/jsp and has apache web server running), but they do not work. The jsp file does not run, it just displays the source code.
    Strangely, the support people at my server say the jsp files run ok when they view them. But when I view them from my browser it just shows source code.
    Do I need to configure something in my program? Or is it a server problem?

    Very hard to help without seeing the page - the answer is in the code  :-)
    Can you please point a link to your page?
    Are you sure you uploaded all the image files, and that the paths to the images are all correct?
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.perrelink.com.au
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • Servlet not working...

    i'm running tomcat 4.0.1 on IIS and i haven't been able to get my servlet to work.
    i'm thinking that it has something to do with where i am placing my servlet, or my directory structure.
    my applet is run out of the directory "\\server\\wwwroot$\\testDir\\"
    and my servlet is in the directory "\\server\\tomcat$\\webapps\\ROOT\\WEB-INF\\classes\\"
    here is my applet code for calling the servlet....
    try
    URL url = new URL("http://www2.homepage.com/serlvet/servletOne");
    URLConnection conn = url.openConnection();
    InputStream inputStreamFromServlet = conn.getInputStream();
    catch(IOException io) { io.printStackTrace(); }
    here is my servlet code....
    public class servletOne extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    try
    FileWriter f = new FileWriter("\\server\\wwwroot$\\testDir\\test2.htm");
    f.write("testing");
    f.flush();
    f.close();
    catch(IOException io) { io.printStackTrace(); }
    the error i get when i try to run it is a FileNotFoundException.
    i believe that this is the proper location for my servlet, but does the tomcat directory have to be within the wwwroot$ directory, in order for it to work?
    any help would be greatly appreciated
    thanks
    Andy

    Seems that FileWriter cannot find test2.htm file. The path for FileWriter constructor can be any absolute system dependent path. So you can use "c:\\server\\wwwroot\\testDir\\test2.htm".
    Regards,
    Ignat

  • Urgent--custom servlet not working with https/gateway of the portal server

    We have created the custom servlet to add some more authentication to the login screen. I have explained detaildely below.
    We have set if password reset change password screen should come by using identity server.
    First screen comes which asks �user id� and �password�.
    after this next screen comes with �old password�, �New Password� and �Confirm Password� (as we have forcefully asked user to change password after reset by using identity server ).
    On this page we have added two new filed �Date of Birth� and �Date of Joining�.
    And we are forcefully transferring request to our Custom Servlet which will validate the �Date of Birth� and �Date of Joining� from the database and submit the same a form as required by Login Servlet to validate the default parameters �old Password�, �New Password� and �Confirm Password� (which is the default validation without adding custom Servlet).
    This whole process is working with �http� protocol and giving �unable to connect� host with �https� protocol.
    Without custom Servlet process is like this, which is working
    Login (usrid, password) � Login (Old Password, New Password, Confirm Password) � Portal home Page
    With custom Servlet , Which is not working with �https� Protocol. we are getting the message "Authentication Failed" screen.
    Login (usrid, password) --> Login (Old Password, New Password, Confirm Password , Date of Birth, Date of Joinig) --> Custom Servlet validate Date of Birth, Date of Joining --> Login (Old password, new Password, Confirm Password) --> Protal Home Page
    This one works with http, whereas this one gives the "Authentication Failed" screen with the https.
    Please let me know if anybody have implemented this and help me to resolve the issue.
    Best Regards
    Ramkumar

    Hi,
    I am also getting this error message in the sun ONE webserver error log file....
    [20/Nov/2004:13:42:39] failure ( 6162): for host 172.16.5.21 trying to GET /amserver/UI/Login, service-j2ee reports:
    StandardWrapperValve[LoginServlet]: WEB2792: Servlet.service() for servlet LoginServlet threw exception
    com.iplanet.jato.CompleteRequestException
    at com.sun.identity.authentication.UI.AuthenticationServletBase.onUncaughtException(AuthenticationServletBase
    .java:141)
    at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServletBase.java:1023)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:469)
    at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
    at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:294)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    Regards
    Ramkumar R

  • Move jsp code into servlet, not work!!

    Hi:
    I am new in servlet and java, I can use jdom to read xml file
    into a jsp file, but whan I move jsp code into servlet, they are not work
    have any ideals?
    Thank!

    Hi:
    my.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.io.File,
    java.util.*,
    org.jdom.*,
    org.jdom.input.SAXBuilder,
    org.jdom.output.*" %>
    <%
    String Records = "c:/XMl/Quotes.xml";
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    Document l_doc = builder.build(new File(Records));
    my servlet
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.input.SAXBuilder;
    import org.jdom.output.*;
    public class XmlJdom extends HttpServlet
    String Records = "c:/xml/Quotes.xml";
    SAXBuilder builder = null;
    Element Author = null;
    Element Text = null;
    Element Date = null;
    * Initializes the servlet.
    public void init(ServletConfig config) throws ServletException
    super.init(config); //pass ServletConfig to parent
    try
    // JDOM can build JDOM trees from a variety of input sources. One
    // of those input sources is a SAX parser.
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    catch ( org.jdom.JDOMEXception e)
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
         throws IOException, ServletException
         PrintWriter out = null;
         out = response.getWriter();
         try{                
         Document l_doc = builder.build(new File(Records));
    Element root = l_doc.getRootElement();
    //get a list of all recode in my XML document
    String l_pages = root.getChild("quote");
    String Iterator e = l_pages.iterator();
    while ( e.hasNext())
    Element l_quote= (Element) e.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    out.println(ls_result);
    catch( org.jdom.JDOMException e )
         finally
              if( out != null)
                   out.close();
    Please tell me, what is wrong!!!
    Element root = l_doc.getRootElement();
    /* get a list of all the links in our XML document */
    List l_pages = root.getChildren("quote");
    Iterator Myloop = l_pages.iterator();
    while ( Myloop.hasNext())
    Element l_quote= (Element) Myloop.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    ls_result = l_format.outputString(l_doc);
    %>
    <html><head><title></title></head>
         <body>
              <pre>
              <%=ls_result%>
              </pre>
         </body>
    </html>

  • JSF Samples (jsf-guessNumber.war)is NOT Working in Tomcat

    Hello
    I have worked in struts a bit, but, I'm new to JSF world. I was trying to run small program in JSF, but, I am getting the error by all the way.
    I have downloaded the JSF from Sun web site, the version says, jsf1.1 Final. I have found, "jsf-guessNumber.war" file in the sample folder in the downloaded zip file. I have already working Tomcat 5.5 in my laptop, I have deployed jsf-guessNumber.war application in my Tomcat and deployed successfully. But, when try to access the application through http://localhost:8080/jsf-guessNumber/ , the below exception appears. I have changed nothing in the war file. I have tried to deploy all other war sample files in my tomcat, but, nothing is working :-(.
    Can anyone please help me to find out what's wrong with this ?. Many Thanks in advance!.
    The exception details are below
    Dec 13, 2007 12:18:54 AM org.apache.catalina.core.ApplicationContext log
    SEVERE: StandardWrapper.Throwable
    java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:595)
    Dec 13, 2007 12:18:54 AM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Allocate exception for servlet Faces Servlet
    java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:595)
    Dec 13, 2007 12:18:54 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:595)
    Thanks
    Sarav.

    Hi BalusC
    I have downloaded this now - https://javaserverfaces.dev.java.net/files/documents/1866/78307/jsf-1_2_07.zip and deployed samples in my Tomcat and added the libs. Restarted ny tomcat too thrice.
    I am getting the below exception while accessing this http://localhost:8080/jsf-guessNumber/
    Dec 13, 2007 12:53:12 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:267)
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    Can you please help to find out what is missing ?

  • Hello World Servlet Not Working

    Hi,
    I am using apache and eclipse for the first time. I am running into an issue. When I create the HelloServlet.java class, a yellow icon with a question mark appears on top on my web-inf, package, and class. I also notice a yellow line appears under the class name HelloWorld. I place the curso on top of it, and I saw the message below:
    �The serializable class HelloServlet does not declare a static final serialVersionUID field of type long�. I am not sure what I did wrong. When I paste the url in the browser, it does not show the message. It shows me an error 404.
    I am using eclipse 3 with tomcat 6 and java 5.
    P.S. I started tomcat, and all the jsp and html samples are working fine.

    I am getting the error message below when I compile my hello World Servlet.
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_14\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_03\bin\client;C:\Program Files\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0_14\bin;C:\JDBC\sqljdbc_1.2\enu\sqljdbc.jar;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    Dec 13, 2007 11:45:54 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 827 ms
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Dec 13, 2007 11:45:54 AM org.apache.tomcat.util.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 1 column 6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:689)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:750)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:664)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:845)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
         at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/HelloWorld/WEB-INF/web.xml
    org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1269)
         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
         at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:369)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Occurred at line 1 column 6
    Dec 13, 2007 11:45:54 AM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Dec 13, 2007 11:45:54 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [HelloWorld] startup failed due to previous errors
    Dec 13, 2007 11:45:55 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
         at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
         at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)
         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:55 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Dec 13, 2007 11:45:55 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1244 ms
    Dec 13, 2007 11:45:55 AM org.apache.catalina.core.StandardServer await
    SEVERE: StandardServer.await: create[8005]:
    java.net.BindException: Address already in use: JVM_Bind
         at java.net.PlainSocketImpl.socketBind(Native Method)
         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
         at java.net.ServerSocket.bind(ServerSocket.java:319)
         at java.net.ServerSocket.<init>(ServerSocket.java:185)
         at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
         at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Maybe you are looking for

  • I am having a silly problem with Keynote and Pages. When ever i open a file, it opens the same file twice ?

    When ever i open a file using key note or pages. The files opens up two times. I the ave to close one version of the file and only then can begin work. Could you please help me how to get rid of this ?

  • Schedule Line Query

    Hi All, I have come across a unique situation at this moment of time. The issue is with Schedule Line Determination -> In one of the many faulty sales orders { due to which period closing has stopped - mismatch of data} the schedule line category is

  • Validation of XML with Schema, which contains more than one Schema

    Hi All, I am having a parent.xsd file, which inculdes or imports child.xsd file. I need to validate an xml with the parent xsd. Could u give any sample code for doing the same. Java Version : 1.4.2 Using Xerces for parsing the xml.... Thanks, Senthil

  • Album by Artist column

    When I change to list view I still get an empty 'Album by Artist' column on the left side that I cannot turn off or move. I have already deselected all column selections but it will not go away. This must be a bug, right? Or am I doing something wron

  • Siebel Business Entity - EIM Table mapping via Integration Objs, Tools etc

    Hi, I was wanting to know if it is possible to access the mapping a Business Entity has to an EIM table (table name + column name ) when information (metadata + data) about a business entity such as Account is retrieved via an Integration Object ? Ap