JSF under tomcat 5 ??/

in the JSFin actions it says : "JSF can work on every standad container like tomcat etc"...
in my tomcat ver 5.5.29 when i put jsf in some dir and try to open some jsp ...
it says :opening... and nothink happens .. ideas ?
the war file is a simple war file created with Sun Studio Creator

under 5.5.9 there is exceptoin :
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: javax.servlet.jsp.JspException
Cannot find FacesContext
Possible Source of Error:
Class Name: javax.faces.webapp.UIComponentTag
File Name: UIComponentTag.java
Method Name: doStartTag
Line Number: 399
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack trace:
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:399)
com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
org.apache.jsp.Page1_jsp._jspx_meth_f_view_0(org.apache.jsp.Page1_jsp:83)
org.apache.jsp.Page1_jsp._jspService(org.apache.jsp.Page1_jsp:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

Similar Messages

  • Running under Tomcat

    I have a simple prototype app which runs quite nicely under the bundled apps server.
    I want to run it under my Tomcat 5.
    I have loaded the two jars as described in http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/deploy/howtodeploy/deploy_tomcat.html
    So, my Library list shows JSTL 1.1 - standard.jar and JSTL 1.1 - jstl.jar
    I also included the 'commons' jars which Tomcat requires - beanutils.jar, digester.jar, logging.jar and validator.jar
    All of these 'additions' seems to have no detrimental effect on the built in app server of jsCreator.
    The app works fine up till the time it attempts to establish connectivity to MySQL.
    I have previously hand coded a similar working app under tomcat before I started using jsCreator.
    Creating a context under tomcat involves creating a context.xml in the META-INF directory (which I have created as project/web/META-INF/context.xml
    (which contradicts the Sun instructions of putting the context inside the Tomcat system config - Tomcat instructions say thee context should be as above)
    Tomcat complains
    2006-22-04 16:22:05,209 DEBUG Login - Loading auth data
    2006-22-04 16:22:05,211 DEBUG Login - Context established - datasource is java:comp/env/jdbc/YourRosterDB
    2006-22-04 16:22:05,226 DEBUG Login - Datasource established
    2006-22-04 16:22:05,234 ERROR Login - LoginBean
    org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
         at com.YourRoster.Login.retrieveUserInfoAndLogin(Login.java:229)
         at com.YourRoster.Login.loginLoginButton_action(Login.java:376)
    Would someone be able to assist me with this please?
    Thanks in advance.
    .

    Make sure that in your server.xml file found in conf folder for Tomcat you have the following context completely filled out. Something like this:
    <Context path="/gladiatorsgameserver">
    <Resource auth="Container" description="Rave generated DataSource Reference" name="jdbc/Gladiators" type="javax.sql.DataSource" password="adminadmin" driverClassName="org.gjt.mm.mysql.Driver" maxIdle="2" maxWait="5000" username="root" url="jdbc:mysql://127.0.0.1:3306/gladiators" maxActive="100"/>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>

  • Problems with sun's jdbc:odbc bridge under Tomcat 4.0

    I keep getting this error when I try to access through jdbc:odbc sun's drive:
    java.sql.Exception: [Microsoft][Administrador de controladores ODBC] No se encuentra el nomb
    re del origen de datos y no se especific� ning�n controlador predeterminado
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2488)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
    17)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:160)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    Translating the local spanish message, should be something like: "Can't find data source and no default driver defined."
    I don't get this error if i access through the same driver but not on web server Tomcat 4.0.1. And I don't get this error even under Tomcat with other jdbc drivers (mysql for example).
    Someone knows what is happening here?
    I would apreciate some help.
    Thank you.

    If you're running on Windows, you need to create an ODBC datasource to connect to.
    To accomplish this, you need to go to Start >>> Control Panel >> Administrative Tools >> Data Sources (ODBC),
    2. On the User DSN tab, click add
    3. give it a name, this is the name you will use in the connection string. jdbc:odbc:<name>
    4.Click Select, then find your mdb file, or other database file.
    5. click Ok.

  • JBO error deploying under Tomcat 3.2.2

    I've created the JSP BC4J application and deployed under Tomcat. I've followed Chris Schalk's tips on adding the jar file in the CLASSPATH( for Tomcat.bat). But, I still get folowing errors:
    Error: 500
    Location: /BugEnter_html/ReportView_Insert.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta-tomcat-3.2.2\work\localhost_8080%2FBugEnter_html\_0002fReportView_0005fInsert_0002ejspReportView_0005fInsert_jsp_0.java:14: Package oracle.jbo not found in import.
    import oracle.jbo.*;
    ^
    C:\jakarta-tomcat-3.2.2\work\localhost_8080%2FBugEnter_html\_0002fReportView_0005fInsert_0002ejspReportView_0005fInsert_jsp_0.java:16: Package oracle.jdeveloper.html not found in import.
    import oracle.jdeveloper.html.*;
    ^
    C:\jakarta-tomcat-3.2.2\work\localhost_8080%2FBugEnter_html\_0002fReportView_0005fInsert_0002ejspReportView_0005fInsert_jsp_0.java:17: Package oracle.jbo.html.databeans not found in import.
    import oracle.jbo.html.databeans.*;
    ^
    3 errors
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    Can someone please tell me how can I solve this problem?
    Please help!!!
    AR

    For TomCat 3.2.2 you will need to modify tomcat.bat so that also *.zip is added to the classpath. (look for the line that adds *.jar, duplicate it and change .jar in .zip)
    In TomCat 3.2.3 this is changed. (For 3.2.3 they changed Tomcat.bat so it now adds *.* from tomcat/lib to the classpath)

  • Custom tag fails to under Tomcat 5.0.16

    I have just upgraded to Tomcat 5.0.16 from 4.1.x.
    Any JSP page that contains a custom tag fails to build; error message:
    org.apache.jasper.JasperException: /jsp/CustomReport.jsp(62,20) Unknown attribute type (String) for attribute name.
    The tags work under �Tomcat 4.x�. All other pages build and function correctly.
    Specs:
    Java 2 version: 1.4.2_03
    Tomcat 5.0.16 or Tomcat 4.1.x

    Try updating your web.xml to use the Servlet 2.4 schema. You will have to change your tld declarations to sit inside the new <jsp-config> tags but see if it works for Servlet 2.4. Could be a backwards compatible bug?
    Anthony

  • How to create a new virtual host under tomcat 4.1.x?

    hi all
    i need some help creating a new virtual host under tomcat 4.1.18!
    that's what i do:
    i'm using the web configuration, reacheable by typing "http://localhost:8080" and then clickign administration
    i create a new host
    name: www.class-site.it
    application base: webapps\class-site
    then i create the context:
    document base: webapps\class-site
    path: /
    and nothing works!!!
    anyone could help me?
    if needed i can also post the server.xml file
    thanx in advance for your help
    sandro

    It should look like this
    <Host name="myvhost.com" debug="0" appbase="/my/path/to/webapps" unpackWars="true">
    <Context path ="" docBase="ROOT" debug="0"/>
    </Host>
    This should be inside the <Engine> tags. You should be able to access a page by going to
    http://myvhost.com:8080/index.jsp
    Obviously you need index.jsp in /my/path/to/webapps/ROOT/index.jsp
    Hope that helps

  • 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

  • BC4J under TOMCAT 403 Insert/Update probs

    Hi,
    My JSP application works fine in JDeveloper 9i (9.0.2). Deployed under Tomcat 4.0.3 everything is ok too except when I try to update/insert records.
    I get
    Class oracle/jbo/AttributeDef violates loader constraints
    The problem seems to be in the SetAttribute datatags in the Row component when updating/inserting.
    Anyone had teh same prob? What lib/jar whatever am I missing?
    All help will be very much appreciated
    Thnx
    Eric

    Problem solved. I copied all the jar's which should be (according the JDev help) in the lib directory under Tomcat home to the application specific WEB-INF/lib directory.
    Regards
    Eric

  • How to run servlets under Tomcat 6 in java1.5

    hi all
    i am unable to run servlets under tomcat 6,i checked environment variables ....all are correct..im getting http 503 error....

    A 503 response says
    503 Service Unavailable
    The server is currently unable to handle the request due to a
    temporary overloading or maintenance of the server
    You apparently have the server mis-configured. Recheck the configuration (or reinstall Tomcat per its instructions.)

  • Can't run under Tomcat

    Hi;
    I'm having a similiar problem with Tomcat. I followed the instructions for the tutorial, using the existing tutorial. I have set Tomcat as my application server and when I Run the server starts - but it can't bring up the page.
    When I go to the Tomcat webapps dir - nothing has been added for the tutorial.
    What do I need to do to get it to deploy under Tomcat?
    thanks - dave

    What type of server configuration did you create (Window > Preferences > NitroX > Server Configuration > Edit - Configuration Tab)?
    FYI, NitroX takes care of deployment if default option "Auto-deployment" is selected otherwise you need to manually deploy the application. If you are not doing any custom configuration then go with the default selection "Auto-deployment"
    If you select "Manual deployment with existing configuration file" option, then you need to take care of deployment.
    Ex: The server.xml you are pointing to should contain a <Context..> element similar to the one below
    <Context debug="0" docBase="/<YourProjectDocBase>" path="" reloadable="true" />
    Or the best way would be to run your app selecting default "Auto-deployment" configuration and then copy the <Context..> element from m7.auto.server.xml file. (Check the first line in Console View for the path)
    NOTE: Please make sure to remove "workDir" entry from <Context..> element.
    For "Auto Deployment", check the first line in Console View for the location of JSP generated java files.
    FYI, the project location in workspace acts as docBase for running/debugging the application. The project as such does not get deployed to Tomcat/webapps.
    For more information please refer to Help > Help Contents > NitroX User Guide > Getting Started > NitroX Tour > Running and debugging the application

  • How to deploy my war file to be ROOT under tomcat

    Hello all
    i successfully deployed my web application to be as ROOT under tomcat
    but in my web application the jsp files are inside inner directory called jsps
    so if i like to brows to test.jsp i have to type
    http://localhost:8080/jsps/test.jsp
    how can i avoid this and configure tomcat to take the jsps dir as part of the ROOT url
    so i could type
    http://localhost:8080/test.jsp
    and tomcat will autumnally will know this file is inside jsps dir
    thanks

    Hello all
    i successfully deployed my web application to be as
    ROOT under tomcat He says he has successfully deployed the application as ROOT
    but in my web application the jsp files are inside
    inner directory called jsps
    so if i like to brows to test.jsp i have to type
    http://localhost:8080/jsps/test.jsp
    he says that he can access the jsps/test.jsp as part of the root web app.
    how can i avoid this and configure tomcat to take the
    jsps dir as part of the ROOT url
    so i could type
    http://localhost:8080/test.jsp
    He then says that he wants to access jsps/test.jsp as /test.jsp which is a mapping issue.
    The problem is the subject line does not match the problem in the message body.

  • War file under tomcat/webapps (newbie)

    Quick question:
    I have a file myPrj.war and I place it under tomcat/webapps. I realize that tomcat creates a folder myPrj and I can run my application on the browser (so far so good). my question is this: say I made a revision to my application (therefore I have a new myPrj.war file) and I place the newly myPrj.jar on under the tomcat/webapps. Does tomcat 'know' that he should disregard the 'old' folder myPrj and create a new one (since there's a new myPrj.war)???
    thanks

    Generally speaking, If you replaced your java code or tag lib in jsp, you need to restart tomcat, otherwise, if you just made some changes to the basic html, you don't have to do so.

  • Org.gjt.mm.mysql.Driver under tomcat?

    hi all
    anybody knows where to put this driver under tomcat in order to let my servlet connect to a MySql db?
    thanx all
    sandro

    sandro
    Put the driver on "lib/common/" directory of Tomcat, and since lib is directly located by tomcat when you restart it. You must have to restart the tomcat after copying the file. The folder path may be "/var/tomcat/lib/commomn/" and may vary during installation.
    Cheers
    Rahul//

  • Do i need to start my startup.bat under tomcat every time?

    do i need to start my startup.bat under tomcat every time
    can i do something to make it start automatically when boot my system?

    From Tomcat 5.x, at least, you can run it as a Window service and have it start automatically.
    For Tomcat 5.0, see here:
    http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html
    From 5.5, I believe the Win service install is the default.

  • Can't print under Tomcat but no problem under sun application server 8!

    Hi,
    I am rather puzzle by the fact that a programme written by me using all the print api and printable implementation when being called by the JSF page is capable of being successfullly print out when being deployed under sun application server 8 but got hang or met with no response when the same war file generated by the JSC 2 is being deployed onto Tomcat 5.17 .
    Was it due to some missing jar file or api , I really have no idea at all
    Any suggestion please ?
    Thank

    Hi,
    I got rather stupid question to ask regarding the font size.
    if I got a font size of 10, I know it is only refering to the height in pixel , my problem start when I need to know , how many characters can I print across in a A4 size paper. The pixel point is 1/72 of an inch, it is vertical .
    Is there any formula that I can use to determine how many characters per inch that particular font is supposed to print?
    Suggestion that I received is to use trial and error method.
    Thank

Maybe you are looking for

  • Message in a popup

    Hi, Is it possible to have all message from BPS (error and confirmation message) that appears by default in the bottom right of the screen, in a pop up (or something more visible) for users. of course my question is if there is something simple. if t

  • Different DVD to iPod Video Converter Software for Mac?

    Does anybody know about different DVD to iPod Video Converter Software for Mac besides QuikTime Pro? Thanks, AG

  • Profit Centre substitution  on the line  items

    Hi Guys I am replicating a  contract  from  CRM  to R/3 ,  the  CRM contract will replicate  as debit  memo request / contract in r/3  with   u201Cnu201D line items  and these  line items are   populated with  profit centers  based on  plant and prod

  • Firefox is not ready for android

    Why are there no menus? How do I save a bookmark and manage bookmarks? Firefox is great on desktops but no smartphones.

  • Isolated problem

    Hi, We are having a problem with a machine that is being prepared as a web server using IIS 5.0 on Windows 2000 Advanced Server. In this, our web application must access an Oracle database thas is on a Sun Solaris machine. We have installed the Oracl