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 ?

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.

  • JSF Getting Started Example not Working

    I've installed and configured JSF according to CoreJSF 1st Chapter example "A simple JSF Application" (available at http://horstmann.com/corejsf/). The only different thing i've done is to put the jsp pages in a separate folder within the root web application folder. The JSF seems to be properly configured, since i'm able to see the UI components in the login page. However, once I click login button, the application takes me once more to the login page (same page that put the request). I figure it is a problem with the navigation file, I've changed the faces-config.xml including "jsf/welcome.jsp" as target since "jsf" is the separate directory I created for JSP files. I does not work (not getting exceptions though). Any prompt help will be highly appreciated.
    These are the files:
    webapproot/jsf/index.jsp
    <html>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <head>
    <title>A Simple Java Server Faces Application</title>
    </head>
    <body>
    <h:form>
    <h3>Please enter your name and password.</h3>
    <table>
    <tr>
    <td>Name:</td>
    <td>
    <h:inputText value="#{user.name}"/>
    </td>
    </tr>
    <tr>
    <td>Password:</td>
    <td>
    <h:inputSecret value="#{user.password}"/>
    </td>
    </tr>
    </table>
    <p>
    <h:commandButton value="Login" action="login"/>
    </p>
    </h:form>
    </body>
    </f:view>
    </html>
    webapproot/jsf/welcome.jsp
    <html>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <head>
    <title>A Simple Java Server Faces Application</title>
    </head>
    <body>
    <h:form>
    <h3>
    Welcome to Java Server Faces,
    <h:outputText value="#{user.name}"/>!
    </h3>
    </h:form>
    </body>
    </f:view>
    </html>
    webapproot/WEB-INF/faces-config.xml
    <faces-config>
         <navigation-rule>
         <from-view-id>jsf/index.jsp</from-view-id>
         <navigation-case>
         <from-outcome>login</from-outcome>
         <to-view-id>jsf/welcome.jsp</to-view-id>
         </navigation-case>
         </navigation-rule>
         <managed-bean>
         <managed-bean-name>user</managed-bean-name>
         <managed-bean-class>co.edu.unal.dnic.licapa.capa.UserBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
    </faces-config>
    webapproot/WEB-INF/web.xml
    <web-app>
         <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.faces</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
         <welcome-file>/index.html</welcome-file>
         </welcome-file-list>
         <display-name>DNIC - Capacitaci�n 1.0.1</display-name>
         <description>
         DNIC - Capacitaci�n 1.0.1
    </description>
    </web-app>
    Since I'm not getting any java exceptions I figure the UserBean class is working properly.
    Thank you......
    Julian

    try to put / at the beginning of the from-view-id and to-view-id

  • JSF tr:table pagination Not working

    I developed small application in jsf , i get the 30 records from db for when i click the "next30" button and append the that 30 records to pageflowscope variable and displaying in screen .list per page is 50...
    Acutally i got records from DB and added to list but when i click the Next ## link or choose from dropdown is not working
    Please help me to resolve this problem ,
    i tried many ways

    "is not working" contains exactly zero information. If you want help, offer something other than "it doesn't work". Some code is already a good start.
    Also, I would ask the question in a forum or mailing list that covers Trinidad. You'll have far more chance of getting actual suggestions.

  • Customer JSF Component Value Expression not work

    why my customer tag not work,
    in my jsp
    <q:my formatString="yyyy/mm/dd" current="#{LoginBean.date}"></q:my>the isLiteralText() always return true, and I can't get the correct value, #{LoginBean.date} is returned.
    bellow is my tag source.
    can anyone help me.
    package jsf;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentELTag;
    public class MyCustomerTag extends UIComponentELTag {
        private String formatString;
        @Override
        public String getComponentType() {
            return "COMPONENT_TYPE";
        @Override
        public String getRendererType() {
            return "COMPONENT_TYPE";
        @Override
        public void release() {
            super.release();
            setFormatString(null);
        @Override
        protected void setProperties(UIComponent component)  {
            if (!(component instanceof UIDatePicker))
                throw new IllegalArgumentException("Component "+
                    component.getClass().getName() +" is no UIDatePicker");
            component.setValueExpression("current", current);
            System.out.println(current.getExpressionString());
            System.out.println(current.isLiteralText());
            System.out.println((String) component.getAttributes().get("current"));
         * @return the formatString
        public String getFormatString() {
            return formatString;
         * @param formatString the formatString to set
        public void setFormatString(String formatString) {
            this.formatString = formatString;
        private ValueExpression current;
         * @return the value
        public ValueExpression getCurrent() {
            return current;
         * @param value the value to set
        public void setCurrent(ValueExpression current) {
            this.current = current;
    }

    I do not know what your native is, but there's quite a huge difference between "custom" and "customer". Look it up in your dictionary.

  • CrossContext and WAR unpacking not working in the same context Tomcat 4.0.6

    I need an application to be able to crossContext so I entered a context tag in my server.xml file.
    However when I added the entry tomcat no longer unpacked the .war file. If I changed the path value in the context tomcat unpacked the war but then the crossContext would not work.
    Is there a way make the two work together?
    Here is a copy of the entries and what they achieve:
    <Context path="myApp" docBase="myApp" debug="0" crossContext="true"/> this will unpack the war but the app will not crossContext.
    <Context path="/myApp" docBase="myApp" debug="0" crossContext="true"/> will allow the app to crossContext but if I update the war and remove the myApp dir under webapps it will not extract the war file.
    Incidently the host tag has unpackWARs="true"
    Ideas anyone? It's a hassle to start the server twice each time, one to unpack and 2 to allow the crossContext.

    PS: Does anyone know how to edit your email address in your profile? I can't seem to do it through the settings link.

  • Weblogic 6.0 sp2: War deployment not working !!

    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment is not
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try to run
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie

    That's right - ActionServlet does Class.forName(actionClass) to load action
    class, and this uses ClassLoader which loaded the current class (ActionServlet)
    ClassLoaders always delegate to their parent before attempting to load
    the class themselves, so it wasn't working until you moved struts.jar to your
    WEB-INF/lib.
    BTW, Struts doc mentions this problem:
    lib/struts.jar - This JAR file contains all of the Java classes included
    in Struts. It should be copied into the WEB-INF/lib directory of your web
    application. WARNING - If you are going to be hosting multiple Struts based
    applications on the same servlet container, you will be tempted to place the
    struts.jar file into the shared repository supported by your container. Be
    advised that this will like cause you to encounter ClassNotFoundException
    problems unless all of your application classes are stored in the shared
    repository.
    Jamie Tsao <[email protected]> wrote:
    So I found the solution to this problem, but it doesn't really make sense to
    me.
    I originally had struts.jar outside of the WAR file, but in my CLASSPATH.
    Weblogic was able to load Strut's ActionServlet (controller), but when the
    ActionServlet was looking for the LoginForm (which was inside the WAR), it
    couldn't find it.
    I solved the problem by putting struts.jar inside the WAR (under
    WEB-INF/lib) instead that other directory. Now it works cause apparently
    ActionServlet is now in the same classloader as LoginForm, the classloader
    which loaded the WAR.
    I'm confused because original way should have worked since the classloader
    that loaded struts.jar from outside the war is the parent classloader for
    the classloader that loaded the WAR. did that make any sense ?
    anyone know why ?
    thanks,
    jamie
    "Jamie Tsao" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment isnot
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try torun
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie
    Dimitri

  • Convert Sample Rate on Import- does not work

    Setting: *"Automatically convert sample rate of imported audio"*
    You'll want to set this if you have audio on your computer
    that wasn't sampled at 44k. It prevents your imported audio from
    sounding like Mickey Mouse drinking a gallon of espresso and inhaling helium.
    HOWEVER...It does NOT work when you drag audio into the project from
    Logic's internal File Browser.
    Dragging audio into the project from Logic's Browser,
    or browsing to the file in Logic's Browser and choosing to
    "Add selected Files to Audio Bin",
    will NOT convert to the audio's sample rate.
    Sample rate of your audio is only converted if you do: "Import audio file",
    then browse to the file(again) in a popup browser dialog, and then choose import.
    If the audio is already in your Audio Bin, choosing "Convert File"
    will bring up another Finder Dialog asking you where you want the
    converted audio to be placed.
    Now you'll have to Browse (yet again) to the song's folder, because that's where
    you'll probably want it anyway, and choose to put
    your converted audio into the song's folder.
    Please realize: If a composer or producer wants his/her audio to sound like
    Mickey Mouse on Helium and Espresso, he will do it after the fact, on purpose, using a plugin.
    Is it too much to ask, to have this Setting do what it says it does, with ALL audio brought into the song?
    No matter how I bring audio material into a Project, the sample rate should always conform
    to the Project's sample rate.

    Hi there
    I've been using Captivate since version 1. And to be honest, I'm not sure I've ever seen the option work. If it does work, I'd also like to know under what conditions it works. Perhaps it only works with certain applications. I'm not sure. Largely I've ignored the option exists because I've never recorded anything where I wanted tooltips to be an option. I've never wanted to simulate to that detail.
    You should probably consider filing a bug report.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • 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
    | | | |

  • 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>

  • 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...

  • 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

  • JSF Design Time View Not working correctly for ADF/JSF components

    My project is not using any external tag libraries. It is based purely on ADF core/html and JSF core/html components. The design time view does not show the appropriate presentation, everything is shown as nexted frame containers (I suppose how you would show a component that does not have a visual representation).
    If I create a new project and copy my jsp (jsf) pages over they show perfectly. I did this activity and all was going well in the new project and then I lost the design time view again. I cannot tell you what I did to cause the issue, maybe it was a modification to the web.xml as has been suggested in some other threads. Can anyone tell me what I should be looking for that causes this problem, what corrective actions I might take to eliminate the issues

    Ok I have isolated this issue. In my phase listener I had this line of code:
    private static final Logger _logger =  Logger.getLogger(EigRequest.class.getPackage().getName());
    and I changed it to
    private static final Logger _logger =
    Logger.getLogger(EigRequest.class.getName());
    and design mode started to work. I guess either of the above works for me although I do not understand why the line works when you run the application but not in design mode.
    Moral to the story is if something fails in any one of these types of decorators you will drop into a raw view mode. The question I have is if errors are occuring how do I figure out where they may be. There is no indication that anything is wrong with the exception that you lose most of the design mode functionality.
    This was not a compile issue, this was not a runtime issue. It took me quite a few hours of writing a test program to validate that it was not just writing a phase-listener issue; then launching, editing, relaunching the application to find the problem. I will say that a good portion of the code came from a Eclipse project. If you add the offending lines of code while using JDeveloper you do not loose design mode immediately. You only see the problem the next time you start JDeveloper which complicates finding the problem.

Maybe you are looking for

  • Windows 8 won't install on my dc110

    I'm struggling to install Windiws 8 on my DC110. When I run the installer it tells me I need to locate a missing media driver. I'm installing it off a bootable sd card I made using winusb. Has anybody else suffered thus problem?

  • The document type does not match any of the given schemas. batching

    I am aggregating messages(batching) in Orchestation by calling pipeline. I have send pipeline where I have standard assemble component and custom pipeline in encode to assign some values . When I test it I get following error There was a failure exec

  • Fan issue making noise and heating issue

    Hi,      My laptop fan is making noise like a car engine.Earliar i did nott realize it but since winters are here i can hear it clearly coz ciealing fan is not under use now.Also my laptop is quite heated below.I have read that dust can accumulate in

  • Duplicate Queries and Query Components in BI Production Box

    Hi: We have a situation where we have duplicate queries and query components in our Production BI box. The problem was caused by transports.  We have a development landscape and a support landscape where both are transporting separately up to the BI

  • Exception when opening tools - prefereces

    Hi- I just downloaded JDeveloper 9.0.3.1035 for Win 2000. Pointed it at a JDK 1.3.1, and ran the ojvm installer. When I try to open tools -> preferences, I get an error dialog with the following exception (below). Tried other JVMs without success. Ha