Obtaining client certificate in servlet using apache + tomcat

Hi,
I'm porting a webapplication from Javawebserver to Apache/1.3.6 (Win32) mod_jk mod_ssl/2.2.6 OpenSSL/0.9.2b
The application needs to get the client certificate hash code.
Using Javawebserver I used
request.getAttribute ("javax.net.ssl.cipher_suite");
request.getAttribute("javax.net.ssl.peer_certificates");
etc
How do I set up the apache webserver so that I can read the client certificate and what is the attribute called?
I've tried this in the httpd.conf:
SSLOptions +ExportCertData
And the attribute:
"SSL_CLIENT_CERT"
Like it says in the Tomcat documentation.
I'm not sure if I need to set up Tomcat as well..
Any help would be greatly appriciated!
Sincerely,
AM Hjemaas

Yup use ajp13 not ajp12 or mod_webapp
refer to http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml on setting up..
THIS IS IMPORTANT!!!
use Apache mod_jk.dll diretive:
JkEnvVar Apache_Env_Var FORWARD_ALIAS
this will send a apache environment variable (http://myapache/cgi-bin/printenv.pl to see whats available) to Tomcat
JkEnvVar SSL_CLIENT_CERT SSL_CLIENT_CERT
Then in Tomcat servlet use request.getAttribute("SSL_CLIENT_CERT") to get the cert in PEM format
Hope this helps
Jay

Similar Messages

  • Client Certificate Mapping authentication using Active Directory across trusted forests

    Hi,
    We currently have a setup where the on-premises environment and the cloud environment are based on two separate forests linked by a 1-way trust, i.e., the exist in the on-premises AD and the 1-way trust allows them to use their
    credentials to login to a cloud domain joined server. This works fine with the Windows authentication.
    We are now looking at implementing a 2-Factor authentication using Certificate. The PKI infrastructure exists in the On-Premises Forest. The users are able to successfully login to on-premise servers configured with "AD CLient Certificate
    Mapping".
    However, we are unable to achieve the same functionality on the cloud domain joined servers. I would like to know
    1. Is this possible?
    2. If yes, what do we need to do to make this work.
    Just to clarify, we are able to authenticate using certificates by enabling anonymous authentication. However, we are unable to do the same after turning on "Client Certificate Mapping authentication using Active Directory"

    1. Yes!
    2. Before answering this I need to know if your are trying to perform a smart card logon on a desktop/console or if you just want to use certificate based authentication in an application like using a web application with client certificate requirements
    and mapping?
    /Hasain
    We will eventually need it for smartcard logon on to desktop/console. However, at present, I am trying to use this for certificate based authentication on a web application.
    To simulate the scenario, I setup up two separate forests and established a trust between them.
    I then setup a Windows PKI in one of the forests and issued a client certificate to a user.
    I then setup a web server in both the forests and configured them for anonymous authentication with Client SSL requirement configured.
    I setup a test ASP page to capture the Login Info on both the servers.
    With the client and the server in the same forest, I got the following results
    Login Info
    LOGON_USER: CORP\ASmith
    AUTH_USER: CORP\ASmith
    AUTH_TYPE: SSL/PCT
    With the client in the domain with the PKI and the server in the other Forest, I got the following response
    Login Info
    LOGON_USER:
    AUTH_USER:
    AUTH_TYPE: 
    I tried the configuration with the Anonymous Authentication turned off and the AD CLient Certificate mapping turned on.
    With the client and the server in the same forest, I am able to login to the default page. However, with the server in a trusted forest, I get the following error.
    401 - Unauthorized: Access is denied due to invalid credentials.
    You do not have permission to view this directory or page using the credentials that you supplied

  • How to retrieve DN from client certificate in servlet

    Hello,
    My servlet has to use SSL, and authenticate users based on the owner of a client certificate.
    Is there a way for my servlet to obtain the session's client certificate and extract the owner's DN from it?
    Thanks!

    http://forum.java.sun.com/thread.jsp?forum=9&thread=509790

  • Need help on SOAP 2.3.1 using Apache Tomcat 3.3.2

    Hi,
    I was trying to deploy a SOAP service on Tomcat, when this error occurs when i tried to access the rpcrouter servlet:
    Error: 500
    Location: /soap/servlet/rpcrouter
    Internal Servlet Error:
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
         at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
         at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClassInternal1(DependClassLoader12.java:193)
         at org.apache.tomcat.util.depend.DependClassLoader12Impl$1.run(DependClassLoader12.java:78)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClass(DependClassLoader12.java:76)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:307)
         at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:378)
         at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:192)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:423)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:874)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:790)
         at org.apache.coyote.tomcat3.Tomcat3Adapter.service(Tomcat3Adapter.java:64)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
         at java.lang.Thread.run(Thread.java:534)
    I asked my colleagues about the error, and most of them say the problem lies with the classpath or i installed SOAP incorrectly. However, i tried uninstalling and installing both tomcat and SOAP again. But the error occurs again. Hope someone can help me on this. A million thanks.

    Tomcat 3.3.2? That's a pretty darned old version. We're up to 5.0.x now. Time for an upgrade?
    Yes, that's a CLASSPATH problem, because the TOMCAT_HOME/common/lib/servlet.jar should certainly be in the CLASSPATH. How are you running Tomcat? Do you use the startup.bat script, or is it installed to run as a daemon service? If it's the former, make sure the servlet.jar is in the script CLASSPATH. If it's the latter, make sure servlet.jar, bootstrap.jar, and tools.jar are added to the -D parameter java.class.path.

  • Problem connecting oracle database to jsp pages using Apache Tomcat server 8.0

    Well...I tried too many things..googled so many times..but still could not find solution to my problem.
    I use windows 8 Enterprise Edition(if this has to do something with the problem)
    Oracle 11.2.0
    Apache Tomcat server 8.0
    JDK 1.7
    My oracle is installed in the D: drive and tomcat in c:. i copied the ojdbc6.jar file from oracle to lib directory of tomcat server.
    Then i set  CLASSPATH in environment variables as "C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib\ojdbc6.jar" in system variables
    My path variable is set as "C:\Program Files\Java\jdk1.7.0_02\bin".
    My program is as follows in notepad:
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection conn;
    Statement st;
    ResultSet rs;
    try{
    new oracle.jdbc.driver.OracleDriver();
    String dbURL="jdbc:odbc:oracle:thin:@localhost:1521:XE";
    String userId="system";
    String pwd="moon";
    conn=DriverManager.getConnection(dbURL,userId,pwd);
    st=conn.createStatement();
    rs= st.executeQuery("SELECT * FROM login");
    while(rs.next())
    System.out.println(rs.getString(1)+""+rs.getString(2));
    catch(Exception e){}
    %>
    </body>
    </html>
    I get too many errors then
    eroors
    org.apache.jasper.JasperException: An exception occurred processing JSP page /page2.jsp at line 14
    11: String userId="system";
    12: String pwd="moon";
    13:
    14: conn=DriverManager.getConnection(dbURL,userId,pwd);
    15: st=conn.createStatement();
    16:
    17: rs= st.executeQuery("SELECT * FROM login");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
         org.apache.jsp.page2_jsp._jspService(page2_jsp.java:102)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    Nothing solved this problem.

    >> Nothing solved this problem.
    Can't fix a problem 'till an actual problem is identified.
    >> ODBC Driver Manager ... Data source name not found
    That appears to be ODBC drivers looking for a DSN (Data Set Name). If it wants a DSN, the DSN has to be specified in the code, and the DSN has to be configured in the windows host ODBC applet. So that is at least two squirrels to get in the right tree before moving forward. A ...host:...[port:]SID|service name are some of the bits needed in a jdbc connect string, and that is in no way related to DSNs. A Whole Different Animal. If it wants a DSN that might be what needs to go in the URL bit.
    And ODBC setups can be confusing, especially if an x64 OS is in the mix- if that is the case there are two different ODBC configuration applets, one for x64 the other for x86, and if one gets as far as talking to an actual database it might toss an architecture error. Only way to fix that "problem" is *delete* the ODBC DSN and then run the correct (maybe the x86) ODBC config utility, and set up the DSN. Again.

  • How can i use my helloworld servlet in apache-tomcat-mod_jk?

    hi
    i copied
    helloworld.java helloworld.class
    to
    jakarta-tomcat-3.3.1/webapps/examples/WEB-INF/classes
    i can use example servlets in that directory by accessing localhost/examples/servlets
    and click links..(but if i type them in browser address bar, they dont' work either)
    what setting am i missing?
    thank you

    i didn't touch web.xml server.xml at all..
    i got this with logs files
    /usr/local/apache/logs/error_log
    [Thu Jul 25 14:14:00 2002] [notice] Apache/1.3.26 (Unix) PHP/4.1.2 mod_jk/1.1.0 configured -- resuming normal operations
    [Thu Jul 25 14:14:00 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Thu Jul 25 14:19:19 2002] [notice] caught SIGTERM, shutting down
    [root@beautifulmind logs]#
    [root@beautifulmind logs]# cat mod_jk.log
    how does the link to jsp/servelt works and, not direct typing at address bar?
    mod_jk.conf
    <IfModule !mod_jk.c>
    LoadModule jk_module libexec/mod_jk.so
    </IfModule>
    JkWorkersFile "/usr/local/jakarta-tomcat-3.3.1/conf/jk/workers.properties"
    JkLogFile "/usr/local/jakarta-tomcat-3.3.1/logs/mod_jk.log"
    JkLogLevel emerg
    <Directory "/usr/local/jakarta-tomcat-3.3.1/webapps/examples">
    Options Indexes FollowSymLinks
    </Directory>
    JkMount /admin ajp13
    JkMount /admin/* ajp13
    JkMount /examples ajp13
    JkMount /examples/* ajp13
    #added by eugene
    JkMount /examples/servlet/* ajp13
    #added by eugene
    httpd.conf
    Include /usr/local/jakarta-tomcat-3.3.1/conf/auto/mod_jk.con

  • Java Servlet Setup Apache/Tomcat

    How do I setup a CLASSPATH to a file called serverhub.jar in a folder. (ex. c:\javaclient/serverhub.jar)
    Then I need to name the Servlet "hub" and give it a class name of com.peregrine.hub.HubServlet
    Then I need to give it initialization arguments
    servers=servername:6000
    default=servername
    threads=500
    Can someone tell me where to setup these items for a tomcat jserver and an apache http server. I already have the jserver and apache server up and running.

    You set this up under the TOMCAT_HOME/webapps/"servlet context"/WEB_INF directory. This directory should contain a classes directory, which contains your servlet class. It should also contain a lib directory, where you put the jar files. Finally, it should contain a web.xml file. This XML file is where you specify the servlet name, servlet class and initialization parameters.
    You can follow the examples located in TOMCAT_HOME/webapps/examples or see http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/index.html

  • Servlet mapping with Apache + Tomcat

    I'm trying to set up my servlet with apache + Tomcat(3.2.3), and i'm using mod_jk as the Tomcat-Apache plug-in.
    The HelloWorld servlet that comes with the examples app worked fine at: http://localhost/examples/servlet/HelloWorldExample,
    but how do I change the configurations, so that it can be invoked at:
    http://localhost/examples/HelloWorldExample ?
    It appears to me that '/servlet/' is the default prefix for Tomcat's RequestInterceptor, there is no way to get around that.
    Any insights will be greatly appreciated, thanks!
    Elaine

    hi
    Try this:
    add below code in web.xml file in examples/WEB-INF
    F directory
    <servlet-mapping>
    <servlet-name>
    HelloWorldExample
    </servlet-name>
    <url-pattern>
    /HelloWorldExample
    </url-pattern>
    </servlet-mapping>
    Thanks for the reply, the web.xml is already set up this way, in fact, I'm able to invoke the servlet through tomcat(running on port 8080): http://localhost:8080/examples/HelloWorldExample,
    tomcat reads the web.xml without any problems.
    The problem comes from Apache(port 80), http://localhost:80/examples/HelloWorldExample wouldn't work, only http://localhost:80/examples/servlet/HelloWorldExample works.
    It appears to me that when requests are relayed from Apache to tomcat, you need to tell tomcat that you intend to invoke a servlet by prefixing '/servlet/', if you look in the server.xml, it has
    <RequestInterceptor
    className="org.apache.tomcat.request.InvokerInterceptor"
    debug="0" prefix="/servlet/" />
    I've tried to change this to something else, it didn't seem to make any difference.

  • Problem using multiple Client Certificates

    Hi folks, I had (mistakenly) posted an earlier version of this question to the crypto forum.
    My problem is that I have multiple client certs in my keystore, but only one is being used as the selected certificate for client authentication for all connection�s. So, one connection works fine, the rest fail because the server doesn�t like the client cert being presented.
    I have been trying to get the JSSE to select the proper client certificate by making use of the chooseClientAlias method. (init the SSL context with a custom key manager that extends X509ExtendedKeyManager and implements the inherited abstract method X509KeyManager.chooseClientAlias(String[], Principal[], Socket))
    But, still no luck.. the JSSE is not calling in to the my version of chooseClientAlias, and it just keeps presenting the same client certificate.
    No clue why, any thoughts on how to get the JSSE to call my version of chooseClientAlias?
    Thanks!
    SSLContext sslContext = SSLContext.getInstance("TLS");
    sslContext.init(createCustomKeyManagers(Keystore, KeystorePassword),
                createCustomTrustManagers(Keystore, KeystorePassword),null);
    SSLSocketFactory factory = sslContext.getSocketFactory();
    URL url = new URL(urlString);
    URLConnection conn = url.openConnection();
    urlConn = (HttpsURLConnection) conn;
    urlConn.setSSLSocketFactory(factory);
    BufferedReader rd = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
    String line;
    while ((line = rd.readLine()) != null) {
         System.out.println(line);  }
    public class CustomKeyManager extends X509ExtendedKeyManager
        private X509ExtendedKeyManager defaultKeyManager;
        private Properties serverMap;
        public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
            SocketAddress socketAddress = socket.getRemoteSocketAddress();
            String hostName = ((InetSocketAddress)socketAddress).getHostName().toUpperCase();
            String alias = null;
            if(serverMap.containsKey(hostName)){
                alias = serverMap.getProperty(hostName.toUpperCase());
                if(alias != null && alias.length() ==0){
                    alias = null; }
            else {
                alias = defaultKeyManager.chooseClientAlias(keyType, issuers, socket);
            return alias;
    .

    Topic was correctly answered by ejp in the crypto forum..
    namely: javax.net.ssl.X509KeyManager.chooseClientAlias() is called if there was an incoming CertificateRequest, according to the JSSE source code. If there's an SSLEngine it calls javax.net.ssl.X509ExtendedKeyManager.chooseEngineClientAlias() instead.*
    You can create your own SSLContext with your own X509KeyManager, get its socketFactory, and set that as the socket factory for HttpsURLConnection.*
    Edited by: wick123 on Mar 5, 2008 10:26 AM

  • What is the option client certificate for user authentication used for?

    Hi All,
    I have to work on a FTPS - XI -SAP scenario.
    I can see an option for client certificate for user authentication when security is enabled for the FTP adapter. what exactly is this option used for?
    P.S: I went through sap help but couldnt quite understand.

    Thanks a lot Mark.
    So for a FTPS -> XI -> SAP scenario the following settings are required.
    1. I have to create a certificate in Visual Admin for the XI server , send a csr to a CA and get it signed by them, and i have to add this to the ssl_service view.
    2. I have to hand over the public key to the FTPS server & this key will be used for encryption of the file
    the above 2 steps are mandatory.
    If i choose to use the client certificate option , i have to get the client certificate from the FTPS server and add it into the TrustedCAs list. This certificate is just to imply that the client is what it claims to be.
    Will this certificate be used for encryption?
    To make it clear let me put it this way. The certificate created in the XI Server is used for encryption and also for ascertaining that the its what it claims to be.
    The clients certificate option is used only to make sure that the client is what its claiming to be & this is not used for encryption?

  • Multiple Realms in Apache Tomcat

    Sorry, if this is the wrong forum, but its the closest match i could find.
    I am trying to run 2 servlets that use apache tomcat's j_security with a FORM login to authenticate clients. I would like these 2 servlets to be authenticated by having j_security look in two different tables in a MS SQL 2000 Server database.
    I have read up a lot on apache tomcat's site, and the sense that i've made of it is that i need to have multiple realms, and in order to do that i need multiple contexts. I've tried wrapping my realm tag in a context tag but it doesn't work. What am i missing?
    thanks.
    <Context path="/servlet/" docBase="ROOT/WEB-INF/classes" reloadable="true" />
              <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
         driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
         connectionName="sa" connectionPassword="******"
         connectionURL="jdbc:microsoft:sqlserver://localhost:1433;databaseName=ConcernCheck;selectMethod=cursor;"
    userTable="Operator" userNameCol="Username" userCredCol="Password"
         userRoleTable="Operator" roleNameCol="Role" />
    </Context>
    Thanks

    Hi!
    I have the same problem! did you solve this problem? can you give me a hint?
    Tnx,
    Stanislav

  • How to place a servlet file in Tomcat 5.0?

    Hi,
    i'm using Apache Tomcat 5.0 as myweb server.i don't know how to set the class path and where to place my servlet and html files,and how to run my servlet file.if anybody knows plz give me a detailed description abt this topic.

    Look at the directory structure of your Tomcat installation directory. You will see a webapps directory under that. The Tomcat installation comes with samples ready to run. Look at those and create a similar directory structure under webapps for your application. I don't think you need to worry about classpath. Tomcat should be taking care of all that if you create the proper directory structure.
    You run your servlet by specifying a url like:
    localhost:8080/servlets-examples/from a browser. This assumes that your installation is using port 8080 which I think is the norm for Tomcat. Here "servlets-examples" is the name of the directory you created. Actually Tomcat 5.0 comes with a "servlets-examples" application. This would be a good directory to look at. You could also run their examples to get a feel for it.
    If you are new to servlets, you'll probably have to get a book that explains how things need to be set up. You'll need to create a web.xml for your application. If you look at the servlets-examples directory under webapps, you'll see that it has a WEB-INF directory under it and that directory contains a file called web.xml as well as a sub-directory called classes. This structure is standard accross all application servers because it corresponds to the war (wars are specialized types of jars for web apps) file standard.

  • Exception when access JSF application deployed on apache tomcat

    Hi,
    hopefully u all will b fine.
    I am new in Java Web developement and working on JSF... I made my first hello application of JSF... but when i try to access that from browser, following exception is shown in the browser window... (I am using apache tomcat 5.5.17 and JSF 1.1)
    HTTP Status 500 �
    type Exception report
    message description: The server encountered an internal error () that prevented it from fulfilling this request.
    exception :
    org.apache.jasper.JasperException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause :
    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         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:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause:
    java.lang.NullPointerException
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
         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:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note: The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    I placed the jsp files in "apache-tomcat-5.5.17\webapps\MyProject\"
    and web.xml and faces-config file at "apache-tomcat-5.5.17\webapps\MyProject\WEB-INF\"
    library files of JSF ("jsf-api.jar", "jsf-impl.jar" and "jstl.jar") at "apache-tomcat-5.5.17\common\lib" also i tried by placing these at "apache-tomcat-5.5.17\webapps\MyProject\WEB-INF\lib"
    Please help me out here...
    Thanks
    Imran

    Maybe your web.xml is wrong. Doublecheck it.

  • How to install apache tomcat in nebeans

    hello everyone,
    i am not able to configure apache tomcat in my netbeans.
    i am little bit confuse between apache tomcat and glassfish servers. can any one tell where we glassfish and where we use apache tomcat?

    Tomcat is a 'servlet engine'; put as simple as I can make it, it is a Java webserver. You can create web applications based on servlets & JSPs and run them on Tomcat.
    Glassfish is an Java Enterprise (JEE) server and provides an implementation for the full Java Enterprise Edition specification. This also includes servlets & JSPs, but on top of that you get a whole batch of additional services.
    I would start with Tomcat if I were you. You don't need to configure anything, if you download the proper Netbeans bundle it comes with Tomcat 7 already setup. If that is not the case, you either picked the wrong bundle or you made wrong decisions during installation.
    edit:
    Question for you. Do you know anything about Java at all (since you are posting this in new to java)? If not then you are waaaaaaaay out of your league trying to get into web programming, it is complicated and confusing enough if you know Java, it is near impossible to understand if you don't even know the basics of the basics yet.
    Edited by: gimbal2 on Aug 5, 2011 3:57 AM

  • Apache Tomcat vs IBM Websphere

    Hi,
    In our current deployment, I am using Apache Tomcat as the Java Application Server that comes bundled with Hyperion Planning 9.3.1 suite of applications. The documentation also suggests Oracle Application Server, IBM Websphere and BEA WebLogic. Currently the application stack is Hyperion Planning only, with Financial Reporting for the reporting needs.
    For our current situation, we have shortlisted between using the bundled Apache Tomcat or IBM Websphere. For comparison I wanted to know how stable Apache Tomcat is in general compared to websphere? How many concurrent users can it handle? Are there any specific limitations of Apache Tomcat that I should consider? Can someone list the major pros and cons of each?
    Thanks in advance
    Shehzad

    I agree with Jake.. Tomcat can handle much more than a few users. Whether it can handle the load for your environment may depend on your usage pattern, size of forms, etc.
    We typically use Tomcat for our Dodeca product that uses the Java API to talk to Essbase. It doesn't product 'forms' but rather just transfers data via XML between the client and server. With that product, we do have one customer that is serving appx 7,000 users on a single Tomcat server. In that case, however, the usage pattern is that field users log in daily (or sometimes weekly) and run a few reports (that retrieve data via XML).
    Note that Tomcat has a configuration parameter in the server.xml file to set the max number of threads that can be spawned by the process. You may want to tune that parameter if you decide to run Tomcat in production (and absolutely be sure to give it more heapsize in the java options).
    Tim Tow
    Applied OLAP, Inc

Maybe you are looking for

  • Calling remote procedure through database link

    Hi, I have a procedure in a package with a type I delcared as follows: Database1 : create or replace package p1 is TYPE dependents_rec IS RECORD ( name VARCHAR2 (80), dob date); TYPE dependents IS TABLE OF dependents_rec INDEX BY BINARY_INTEGER; proc

  • A3 report setup

    Hi I'm using Report Builder 10.1.2.3.0 I have a requirement to produce a report in A3 format. so far I have set the paper layout, section Width=16.5 and Height = 11 as well as Data Model: System Parameters, Orientation, Initial Value to Landscape Is

  • TS1503 I am now in the tortuous process of trying to resync my hundreds of songs back onto my iPhone; however, my "other" space did not go down even one bit. Any other suggestions?

    I tried suggestions one, which is unsync music then add music back. And it didn't drop the "other space" at all. Any other ideas what this nearly 5 GB of my 16 could be and how I can fix this without doing a whole restore?

  • My computer will not recognize my iphone.

    I am running Windows 7.  iTunes recognizes my device and it also is charging, so it's not a USB or cord issue.  It is saying that the driver is not installed and when I search for driver it says it can't be located.  This is a new phone I restored fr

  • Keychain Access Question

    I purchased iPhoto 11 and when it installed a pop up box asking for Keychain access appeared. I clicked "Allow Every Time." Now that I think about it, should I reverse that and if so, How do I do it. Also a popuup came up saying UBD wanted access. I