Tomcat 5.5 admin WTF?

So I donwload and install Tomcat 5.5, run it, and hit http://localhost:8080/admin/
I get "Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it."
So I download the 5.5.9 admin.zip. Unzip it, and stick the contents of the conf and server directories in their proper locations under my tomcat installation.
Stop tomcat, clear cache and cookies restart tomcat, same thing.
What am I missing?

This seems to be a problem occuring in Tomcat 5.5. I am not sure of the solution since I never installed more than 5.0.
Here's a thread you might want to look at:
http://www.jguru.com/faq/view.jsp?EID=1087957
The last few replies suggest some methods as a workaround. All the replies seem to hint at playing aroun with the admin.xml under conf/Catalina/localhost. :)

Similar Messages

  • Tomcat Admin

    Hi-
    I am using tomcat 4.1.18. The following http://localhost:8080/admin gives a login page.
    As this is the first attempt to use admin. I do not know how to enter as admin.
    Can someone help me with the process of logining in for the first time.
    Also where is the userid and password stored?
    Thanks.
    Amitabh.
    [email protected]

    Go to %CATALINA_HOME\conf and edit the tomcat-users.xml file.
    Add something like:
    <user username="admin" password="admin" roles="tomcat,role1,manager,admin"/>
    Then you can log into the admin page as admin/admin. Recommend you change this before putting into production.

  • Deploy problem of JSF WebApp on Tomcat 5.5.17 SEVERE: Error listenerStart

    Hi there,
    My installation configuration is as followed:
    Tomcat5.5.17 using the following connector:
        <Connector
          port="8083"
          maxHttpHeaderSize="8192"
          maxThreads="150"
          minSpareThreads="25"
          maxSpareThreads="75"
          enableLookups="true"
          redirectPort="8080"
          acceptCount="100"
          debug="1"
          connectionTimeout="20000"
          disableUploadTimeout="true" />tomcat-user.xml defines:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="tomcat" password="tomcat" roles="manager,admin"/>
    </tomcat-users>Tomcat starts up correctly with the following url and is runs while deploying:
    http://localhost:8083/manager/html
    My WebApp is a simple Test App and is the following:
    index.html:
    <html>
       <head>
          <meta http-equiv="Refresh" content= "0; URL=index.faces"/>
          <title>Start Web Application</title>
       </head>
       <body>
          <p>Please wait for the web application to start.</p>
       </body>
    </html>
    index.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>                 
             <title>A Simple JavaServer 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>welcome.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>              
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>
                   Welcome to JavaServer Faces,
                   <h:outputText value="#{user.name}"/>!
                </h3>
             </h:form>
          </body>     
       </f:view>
    </html>
    UserBean.java:
    package com.jsfcore;
    public class UserBean {
         private String name;
         private String password;
         public UserBean() {
              super();
         private String getName() {
              return this.name;
         private void setName(String name) {
              this.name = name;
         private String getPassword() {
              return this.password;
         private void setPassword(String password) {
              this.password = password;
    web.xml:
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC
       "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
       "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
       <display-name>Simple Login Applications</display-name>
       <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>
    </web-app>
    faces-config.xml:
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
       <navigation-rule>
          <from-view-id>/index.jsp</from-view-id>
          <navigation-case>
             <from-outcome>login</from-outcome>
             <to-view-id>/welcome.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <managed-bean>
          <managed-bean-name>user</managed-bean-name>
          <managed-bean-class>com.corejsf.UserBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    </faces-config>I have downloaded jsf-1_1_01.zip and installed it.
    I have downloaded java_ee_sdk-5-windows.exe and installed it too.
    Path login/WEB-INF/lib contains the following jars:
    jsf/lib/jsf-api.jar
    jsf/lib/jsf-impl.jar
    tomcat/servler/lib/commons-digester.jar (fr. tomcat 4.1.3)
    tomcat/server/lib/commons-beanutils.jar (fr. tomcat 4.1.3)
    tomcat/webapps/jsp-examples/lib/jstl.jar (fr. tomcat 5.5.17)
    tomcat/webapps/jsp-examples/lib/standard.jar (fr. tomcat 5.5.17)
    The compilation and deployment was successful.
    With my build.xml, I have deployed the login.war file into path
    tomcat/webapps
    The login.war file was unpacked into the normal web application directory structure.
    That is where the problem appeared with the output display on the consol:
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:39 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 750 ms
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jul 27, 2006 11:10:41 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive login.war
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [login] startup failed due to previous errors
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:42 AM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Jul 27, 2006 11:10:43 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3047 ms
    I am unable to start the login application on the Tomcat Web Application Manager.
    The following Message appears on top:
    FAIL - Application at context path /login could not be started
    Let me say, that I have already continued developing more code for this application up to this point and wanted to test in the meantime. Since I had this failure I mentioned above, I have stripped down the application to the code above and I still have no success. I cannot go further until I am getting this very small application up and running on the server.
    Is anybody out there who could give me a hint to solve this problem?
    I really appreciate any hints, since I am circeling around the problem for guit a while.
    Thanks very much
    Markus

    Hi there,
    My installation configuration is as followed:
    Tomcat5.5.17 using the following connector:
        <Connector
          port="8083"
          maxHttpHeaderSize="8192"
          maxThreads="150"
          minSpareThreads="25"
          maxSpareThreads="75"
          enableLookups="true"
          redirectPort="8080"
          acceptCount="100"
          debug="1"
          connectionTimeout="20000"
          disableUploadTimeout="true" />tomcat-user.xml defines:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="tomcat" password="tomcat" roles="manager,admin"/>
    </tomcat-users>Tomcat starts up correctly with the following url and is runs while deploying:
    http://localhost:8083/manager/html
    My WebApp is a simple Test App and is the following:
    index.html:
    <html>
       <head>
          <meta http-equiv="Refresh" content= "0; URL=index.faces"/>
          <title>Start Web Application</title>
       </head>
       <body>
          <p>Please wait for the web application to start.</p>
       </body>
    </html>
    index.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>                 
             <title>A Simple JavaServer 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>welcome.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>              
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>
                   Welcome to JavaServer Faces,
                   <h:outputText value="#{user.name}"/>!
                </h3>
             </h:form>
          </body>     
       </f:view>
    </html>
    UserBean.java:
    package com.jsfcore;
    public class UserBean {
         private String name;
         private String password;
         public UserBean() {
              super();
         private String getName() {
              return this.name;
         private void setName(String name) {
              this.name = name;
         private String getPassword() {
              return this.password;
         private void setPassword(String password) {
              this.password = password;
    web.xml:
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC
       "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
       "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
       <display-name>Simple Login Applications</display-name>
       <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>
    </web-app>
    faces-config.xml:
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
       <navigation-rule>
          <from-view-id>/index.jsp</from-view-id>
          <navigation-case>
             <from-outcome>login</from-outcome>
             <to-view-id>/welcome.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <managed-bean>
          <managed-bean-name>user</managed-bean-name>
          <managed-bean-class>com.corejsf.UserBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    </faces-config>I have downloaded jsf-1_1_01.zip and installed it.
    I have downloaded java_ee_sdk-5-windows.exe and installed it too.
    Path login/WEB-INF/lib contains the following jars:
    jsf/lib/jsf-api.jar
    jsf/lib/jsf-impl.jar
    tomcat/servler/lib/commons-digester.jar (fr. tomcat 4.1.3)
    tomcat/server/lib/commons-beanutils.jar (fr. tomcat 4.1.3)
    tomcat/webapps/jsp-examples/lib/jstl.jar (fr. tomcat 5.5.17)
    tomcat/webapps/jsp-examples/lib/standard.jar (fr. tomcat 5.5.17)
    The compilation and deployment was successful.
    With my build.xml, I have deployed the login.war file into path
    tomcat/webapps
    The login.war file was unpacked into the normal web application directory structure.
    That is where the problem appeared with the output display on the consol:
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:39 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 750 ms
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jul 27, 2006 11:10:41 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive login.war
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [login] startup failed due to previous errors
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8083
    Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8082
    Jul 27, 2006 11:10:42 AM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Jul 27, 2006 11:10:43 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3047 ms
    I am unable to start the login application on the Tomcat Web Application Manager.
    The following Message appears on top:
    FAIL - Application at context path /login could not be started
    Let me say, that I have already continued developing more code for this application up to this point and wanted to test in the meantime. Since I had this failure I mentioned above, I have stripped down the application to the code above and I still have no success. I cannot go further until I am getting this very small application up and running on the server.
    Is anybody out there who could give me a hint to solve this problem?
    I really appreciate any hints, since I am circeling around the problem for guit a while.
    Thanks very much
    Markus

  • What made this thing to show in tomcat

    iam using tomcat web server.
    i created a folder named as "admin" and dumped some files in that folder in the root directory of webapps.when i clicked on "admin" link in the directory list in internet explorer, i get a page called as
    TOMCAT WEB SERVER
    SERVER ADMINISTRATION TOOL
    and asking for username and password.
    now how did this come.
    what is the username and password so that i can login and see what is there in it.
    thank you

    hi, srimca
    I have aleady answer this question before 2 days back, but again answer is here. modify ur tomcat-users.xml file as follows and provide username & password as given in .xml file.
    have fun.
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
    <role rolename="admin"/>
    <role rolename="manager"/>
    <role rolename="role1"/>
    <role rolename="tomcat"/>
    <user username="admin" password="rizvir" fullName="Administrator" roles="admin"/>
    <user username="manager" password="rizvir" roles="manager"/>
    <user username="both" password="tomcat" roles="tomcat,role1"/>
    <user username="role1" password="tomcat" roles="role1"/>
    <user username="tomcat" password="tomcat" roles="tomcat"/>
    </tomcat-users>

  • Tomcat log after updating leopard server to 10.5.3

    I noticed tomcat log like the following message on console message.
    Tomcat is working well.
    Anyone know what kind of message it is, and how to fix it?
    08/06/03 8:29:44 com.apple.launchd[1] (org.apache.tomcat[24021]) Suspicious setup: User "appserver" maps to user: _appserver
    08/06/03 8:29:58 com.apple.launchd[1] (org.apache.tomcat[24068]) Suspicious setup: User "appserver" maps to user: _appserver
    08/06/03 8:30:09 com.apple.launchd[1] (org.apache.tomcat[24090]) Suspicious setup: User "appserver" maps to user: _appserver
    08/06/03 8:30:25 com.apple.launchd[1] (org.apache.tomcat[24126]) Suspicious setup: User "appserver" maps to user: _appserver
    08/06/03 8:30:39 com.apple.launchd[1] (org.apache.tomcat[24159]) Suspicious setup: User "appserver" maps to user: _appserver
    08/06/03 8:30:52 com.apple.launchd[1] (org.apache.tomcat[24183]) Suspicious setup: User "appserver" maps to user: _appserver

    Self reply:
    I noticed that 10.5.3 server has a start/stop button of Tomcat in Server Admin GUI.
    So I removed my StartUp script for Tomcat from /Lib*/StartupItems/.
    This message stopped.

  • DataSource Tomcat JBuilder

    Tomcat server.xml & admin tool & datasource errors
    I am trying to track down a problem that I am having with Tomcat. I am trying to set up a datasource that I can use with JNDI. I created the datasource with the admin tool. The problem is when I am in the admin tool and I go into a specific <Context/>, and choose DataSources, I get an Exception that basically states:
    org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName'
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:248)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    etc...
    I have checked the server.xml file and the parameter for driverClassName is there. Does anyone know why this would happen?
    I am basically trying to set up JNDI for a JDBC connection to a database. Has anyone done this successfully that is willing to share how you got it to work? I feel I have tried everything from the Tomcat website...
    Thanks in Advance...

    ap3000,
    1. Do I need separate Web server to run Jboss/Tomcat.You do not need a seperate web server to run Jboss/Tomcat. At home I use Jboss and Resin to play around. At work we have Jboss, Tomcat, and Apache. Apache does a better job at static content.
    2. Do I need setup jsdk1.4.1_02 before I install
    Jboss+Tomcat? Yes you need a JDK on the machine.
    3. Is anyone knows how to intergrate Jbuilder with
    Jboss and Tomcat?
    Sorry I know nothing about Jbuilder.

  • Error While trying to run a servlet

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

    JavaScript != javareplace or redirect ??

  • Redirection problem

    Hi,
    We have powerful Solaris server which hosts 2 sets of Apache 2.0.48 -> JBoss
    3.07 with Tomcat 4.1.18
    using mod_jk2 2.0.2, running a bunch of web applications.
    They are configured to run independently (2 server names, 2 virtual servers,
    different ports, etc.)
    Used to run without a single glitch for about 1/2 year.
    Yesterday we had a power failure, so the server crashed.
    After that we rebooted it, it automatically started Apache, we manually
    started JBoss.
    One set was totally restored (no problems whatsoever), but another one has a
    problem:
    - if you try to run any of the applications, getting error 404
    ("File doesn't exist: /apache/htdocs/myapp" in the log);
    - if you try to go to the main page: http://myserver1.com , you are getting
    index.jsp (Tomcat's main page
    with the cat);
    - but if you try to use port 8080 (http://myserver1.com:8080 ), getting main
    page and all the apps just fine.
    Even tried to kill the second instance of java process for JBoss/Tomcat -
    same exact picture on server1
    (ghost tomcat? - no catalina or tomcat proccesses running)
    Actually, is Tomcat a java process ?(seem to have tomcat.exe in bin
    directoty)
    I interpreted it as a failure of something in the Apache-Tomcat-JBoss
    bridge.
    So I tried to do the following:
    - reboot server - same problem;
    - reinstalled Apache, copied all config files and modules (imcl. ) from old
    instance of Apache to a new one - same;
    - after that restarted JBoss - same.
    - reinstalled JBoss, restarted it and Apache - the same.
    Nobody touched any config files.
    I forgot to mention that if I shutdown the second instance of JBoss/Tomcat,
    on the second instance of Apache http://myserver2.com I am getting error "Internal Server Error" (that is a normal behavior, right ?),
    but on the first instance of Apache http://myserver1.com I still get the
    same Tomcat admin page with the cat (index.jsp)
    although no java processes are running.
    If I go to any application on either server, getting error 404 "Resource not
    available"
    Can you explain how can I get that Tomcat's webapps/admin/index.jsp page when JBoss/Tomcat is down,
    is that mod_jk2 doing somehow ?
    Maybe something with inability to resolve localhost
    (somewhere in config - we had that problem before) ?
    Could you please suggest what might be wrong and how to fix it ?
    1) I am not sure why (don't think anything was modified),
    but something has changed: when you do: http://myserver1.com,
    it no longer shows the admin page of Tomcat,
    but shows page with something "Seeing this instead of the website you expected?..." (Apache Test page).
    2) We replaced all "localhost" with the IP address of that virtual server
    (it has 2 network cards, 2 IP addresses, etc.) - same result
    3) We copied the working version of JBoss and modified its configuration
    (mostly port numbers) to be as it was on that instance originally - same result.
    5) I have tried to change a line in workers2.properties
    from localhost to server1:
    [uri:server1/*]
    and it gave an interesting effect - now if I do http://server1/,
    getting Tomcat admin page (index.jsp with the cat),
    but for http://server1/myapp I am getting error 404 "requested resource not available". In any case, there is nothing showing in error_log,
    but in access_log:
    GET /myapp HTTP/1.1" 404 698
    We had problem on that server resolving localhost (maybe because we have 2 instances of apache & jboss there, 2 servernames, etc.),
    so I changed localhost->server1 in all 3 config files:
    workers2.properties, and on JBoss - in server.xml and
    tomcat41-service.xml , but that didn't chance anything.
    It might be worth mentioning that when I restart apache,
    see in error_log:
    error mod_jk child init 1 -2
    error jk2_init() can't find child 5194 in scoreboard
    What does that mean ?
    Please help!
    Thank you in advance,
    Oleg.

    Can somebody please explain what do these messages in error_log mean
    (at Apache startup):
    [error] mod_jk child init 1 0
    [error] jk2_init() Can't find child 895 in scoreboard
    [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.2 configure
    (that is the only errors I get)
    What is a scoreboard ?
    Thank you in advance,
    Oleg.

  • How can i improve database connectivity with connection pool

    Hi,
    I used to create a connection to DB per session since the application is pretty small. Now i want to improve the db connectrion with connection pool. However, i am still confused since the book i read says that i have to change something in server.xml in the tomcat server while other people in this forum actually implement a connection pool class. Isnt it has been built into the servlet container? if yes, how can i use it? I suppose i only have to open the connection and the connection pool will reclaim the resource when the session is terminated in the same way the gabage collector reclaim resource when no reference is associated to object, am i correct?
    Thai

    the documentation for Tomcat 5 DB pooling can be found at:
    http://jakarta.apache.org/tomcat/tom...les-howto.html
    Here are the Tomcat 4 docs:
    http://jakarta.apache.org/tomcat/tom...les-howto.html
    The administration console can be found at (under default install):
    http:localhost:8080/admin
    But, you have to set up a user and password in your
    <tomcat-install>/conf/tomcat-users.xml file.
    You need to add an "admin" role and a user that will be assigned this
    role like this (obviously you won't be using "tomcat" as your password):
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
    <role rolename="admin"/>
    <user username="tomcat" password="tomcat" roles="admin"/>
    </tomcat-users>
    So, I can log in as Tomcat and have admin privs.
    Tomcat 5
    http://jakarta.apache.org/tomcat/tom...ger-howto.html
    Tomcat 4
    http://jakarta.apache.org/tomcat/tom...ion%20A ccess
    i'm sure this helps u

  • How to check whether a file exists or not

    i am in an image uploading utility. i hav succesfully uploaded the image to the server directory (say /uploads). but when displaying the uploaded image, i wanna show the picture only if the image exits (bcoz for some records there is no image). so i hav used this code
    if(new File("uploads/1.jpg").exists())
         out.print("image exists");
    but its not working for me. i got it working fine when i give the full path "D:/Tomcat/webapps/diary/admin/uploads/1.jpg". but i think giving this absolute path is not an efficient method bcoz its a web application, bcoz i may not be able get the absolute path always. so how can i do this by specifieing the relative path
    help me ASAP if u can
    aleens

    Haii ameen
    This is one way to rectify your problem..
    if(new File("uploads/1.jpg").exists())
    out.print("image exists");
    instead of this u can write like
    <%
    ServletConfig cf=getServletConfig();
    ServletContext c=cf.getServletContext();
    if(new File(c.getRealPath("uploads")+"/test.txt").exists())
    out.print("image exists");
    %>If u are not clear of what it is done let me know..i will xplain to you furthur...
    Happy New Year
    Shanu

  • Cannot login to CC&B

    Hi everybody,
    I am new to CC&B, the installed passed without any problem, when installing the framework V2.2.0 i specified :
    ==>Application admin user = usertest1
    ==>application admin user password=usertest100
    My problem is that i cannot connect to cc&b using usertest1/usertest100 cc&b shows unable to login.
    when i add <user username="SYSUSER" password="sysuser003" roles="cisusers,admin,manager"/> to my C:\SPL\envtest1\product\tomcatBase\conf\tomcat-users.xml
    It works, i am able to login only using SYSUSER/sysuser003 but not using the user i created while i was installing the framework and cc&b.
    this is my environ.ini:
    THIS IS A SYSTEM MODIFIED FILE!!!
    # DO NOT EDIT MANUALLY
    MPLSTART=N
    NLS_LANG=AMERICAN_AMERICA.UTF8
    SPLENCPASS=215452445153445253100F0F21
    JVMchild_OPTIONS=-Xmx512m -server -Dfile.encoding=ISO8859_1 -cp C:\SPL\envtest1\splapp\standalone\config;C:\SPL\envtest1\splapp\standalone\lib\activation_api-1.1.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-beanutils-core-1.7.0.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-cli-1.1.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-codec-1.3.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-collections-2.1.1.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-fileupload-1.2.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-httpclient-2.0.2.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-io-1.3.2.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-lang-2.2.jar;C:\SPL\envtest1\splapp\standalone\lib\commons-logging-1.0.4.jar;C:\SPL\envtest1\splapp\standalone\lib\concurrent-1.3.4.jar;C:\SPL\envtest1\splapp\standalone\lib\dom4j-1.6.1.jar;C:\SPL\envtest1\splapp\standalone\lib\hibernate-3.2.5.ga.jar;C:\SPL\envtest1\splapp\standalone\lib\icu4j-3.6.1.jar;C:\SPL\envtest1\splapp\standalone\lib\jaxen-1.1.1.jar;C:\SPL\envtest1\splapp\standalone\lib\jcip-annotations.jar;C:\SPL\envtest1\splapp\standalone\lib\jta.jar;C:\SPL\envtest1\splapp\standalone\lib\jtds-1.2.jar;C:\SPL\envtest1\splapp\standalone\lib\log4j-1.2.15.jar;C:\SPL\envtest1\splapp\standalone\lib\mail_api-1.4.jar;C:\SPL\envtest1\splapp\standalone\lib\mfcobol.jar;C:\SPL\envtest1\splapp\standalone\lib\ojdbc5-11.1.0.7.0.jar;C:\SPL\envtest1\splapp\standalone\lib\orai18n-collation.jar;C:\SPL\envtest1\splapp\standalone\lib\orai18n-mapping.jar;C:\SPL\envtest1\splapp\standalone\lib\orai18n-utility.jar;C:\SPL\envtest1\splapp\standalone\lib\orai18n.jar;C:\SPL\envtest1\splapp\standalone\lib\serializer-2.7.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-base-2.2.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-ccb-2.3.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-servicebeaninterface-2.2.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-serviceclient-2.2.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-shared-2.2.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-spml-2.2.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-web-2.2.0.jar;C:\SPL\envtest1\splapp\standalone\lib\spl-xai-2.2.0.jar;C:\SPL\envtest1\splapp\standalone\lib\stax-api-1.0.1.jar;C:\SPL\envtest1\splapp\standalone\lib\stax2.jar;C:\SPL\envtest1\splapp\standalone\lib\staxmate-0.9.1.jar;C:\SPL\envtest1\splapp\standalone\lib\wstx-asl-3.2.1.jar;C:\SPL\envtest1\splapp\standalone\lib\xalan-2.7.0.jar;C:\SPL\envtest1\splapp\standalone\lib\xmlparserv2.jar;C:\SPL\envtest1\splapp\standalone\lib\xquery.jar;C:\SPL\envtest1\splapp\standalone\lib\xstream-1.2.1.jar;C:\SPL\envtest1\splapp\standalone\lib\yjp-controller-api-redist.jar
    WEB_SPLUSER=usertest1
    SPLEBASE=C:\SPL\envtest1
    XAIApp=XAIApp
    SPLDB=oracle
    SPLENVIRON=envtest1
    WEB_maxAge=28800
    WEB_WLPORT=6500
    WEBENCPASS=21524F4B40434C484D21
    WEB_SPLPASS=usertest100
    ENCODING=true
    DBPASS=ENC(gcG8M+UVKxwedHZ6ftn2YD0OPkT6l+z0r11c+jsQh7M=)
    DIRSEP=\
    SPLADMIN=Administrateur
    WEB_isDevelopment=true
    DIALECT=org.hibernate.dialect.Oracle10gDialect
    REL_CBL_THREAD_MEM=false
    CMPDB=oracle
    ORACLE_SID=ccbdemo
    appViewer=appViewer
    DESC=environnement test 1
    WEB_TCATSHUTPORT=6501
    WLSSPL=Y
    SPLWEBAPP=SPLWeb
    MPLADMINPORT=6502
    highValue=\uF8FF
    SPLWAS=TCAT
    WEB_isExpanded=true
    SPLApp=root
    SPLADMINGROUP=cisgrp
    SPLOUTPUT=C:\SPL\sploutput\envtest1
    RJVM=true
    BSN_WLHOST=ITNVAFRICA
    JavaEncoding=UTF8
    WEB_maxAgeI=28800
    XAISTARTWAITTIME=90
    DOC1SCRIPT=_ccbPrintDoc.cmd
    SPLSERVICEAPP=SPLService
    BSNENCPASS=21524F4B40434C484D21
    BSN_JVMCOUNT=2
    DB2MPLuse=
    DBENCPASS=214C445148444C21
    modules=base,ccb,cm
    WEB_WLHOST=ITNVAFRICA
    BATCHTHREADS=5
    SPLVERSION_NUM=2.2.0
    WEB_preloadall=false
    DBNAME=ccbdemo
    DOC1BILLSCRIPT=_ccbPrint.cmd
    WEB_WLAUTHMETHOD=FORM
    BATCHENABLED=true
    help=help
    DBUSER=cisadm
    SPLVERSION=V2.2.0
    BSN_RMIPORT=6503
    BATCHDAEMON=true
    DBDRIVER=oracle.jdbc.driver.OracleDriver
    DBPORT=1521
    JVMMEMORYARG=512
    DBCONNECTION=jdbc:oracle:thin:@ITNVAFRICA:1521:ccbdemo
    DBSERVER=ITNVAFRICA
    WEB_isAppViewer=true
    jvmcommand=C:/SPL/Java/bin/java.exe
    this is my C:\SPL\envtest1\product\tomcatBase\conf\tomcat-users.xml
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
    <role rolename="manager"/>
    <role rolename="tomcat"/>
    <role rolename="admin"/>
    <role rolename="wamusers"/>
    <role rolename="mwmusers"/>
    <role rolename="role1"/>
    <role rolename="cisusers"/>
    <role rolename="bausers"/>
    <role rolename="nmsusers"/>
    <user username="both" password="tomcat" roles="tomcat,role1"/>
    <user username="tomcat" password="tomcat" roles="tomcat"/>
    <user username="SYSUSER" password="sysuser003" roles="cisusers,admin,manager"/>
    <user username="role1" password="tomcat" roles="role1"/>
    <user username="SYSUSER12" password="sysuser12" roles="cisusers,admin,manager"/>
    <user username="usertest1" password="usertest100" roles="cisusers,admin,manager"/>
    <user username="SPLSLK" password="SPLSLK12" roles="cisusers,admin,manager"/>
    </tomcat-users>
    My question is : can we login to CC&B using a username different than SYSUSER ? if yes please what i am missing and what i have to do ?
    Any help could be appreciated,
    Thank you

    The answer is YES, it is possible to login to CC&B using a user other than SYSUSER. The tomcat-users.xml file contains the Web Server user configuration for tomcat, but you need to create the Application user as well. The reason why your are being able to login to CC&B using the SYSUSER user right after install it's because the user is already registered in the application itself, in other words, it's living in the CC&B Database.
    What you need to do, is login using SYSUSER and go to Admin Menu > U > User, search for the SYSUSER and duplitace it. You can specify your new username here and special security configuration (application services) but the user password must be set in the tomcat-users.xml file. Just make sure the Username matcher the username you put in the tomcat-users.xml file.
    I hope it helps.

  • Navigation-Rule

    I'm a newbie in JSF. I got some books and online tutorials. All the examples run fine, so I'm sure my basic configuration is fine.
    Now I have the problem, thatI'm not able to do some navigation. I have the following files:
    /usr/local/tomcat/webapps/fcms is my context, defined in Tomcat 5.5.7
    Where I have this file in /usr/local/tomcat/webapps/fcms /admin
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title>Neue Seite</title>
      </head>
      <body>
        <h1>Neue Seite</h1>
    <table border="0">
    <h:form id="newpageform">
    <h:inputHidden id="website" value="#{initParam['website']}" />
    <h:inputHidden id="dataSource" value="jdbc/fcms" />
    <h:inputHidden id="id"  value="0" />
    <tr><td>Button</td>         <td><h:inputText id="buttonid"  value="#{newChapter.buttonid}"  /> </td></tr>
    <tr><td>Name</td>           <td><h:inputText id="name"      value="#{newChapter.name}"      /> </td></tr>
    <tr><td>Sortiername</td>    <td><h:inputText id="sortname"  value="#{newChapter.sortname}"  /> </td></tr>
    <tr><td>G&uuml;ltig von</td><td><h:inputText id="validfrom" value="#{newChapter.validfrom}" /> </td></tr>
    <tr><td>G&uuml;ltig bis</td><td><h:inputText id="validto"   value="#{newChapter.validto}"   /> </td></tr>
    <tr><td valign="top" >Beschreibung</td><td><h:inputTextarea id="description"
                                                                 value="#{newChapter.description}" 
                                                                 rows="5" cols="50"/></td></tr>
    <tr><td valign="top">Text</td><td><h:inputTextarea  id="text"       
                                                         value="#{newChapter.text}"
                                                         rows="24" cols="80"/>       </td></tr> 
    <tr><td colspan="2" align="center" valign="middle">
         <h:commandButton value="Speichern" action="#{newChapter.saveChapter}"/></td></tr>
    </h:form>
    </table>
    </body>
    </html>
    </f:view>Here is my faces.xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
    <managed-bean>
       <managed-bean-name>newChapter</managed-bean-name>
       <managed-bean-class>applications.fcms.handlers.NewChapter</managed-bean-class>
       <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
             <from-view-id>/admin/newpage.jsp</from-view-id>
             <navigation-case>
                    <from-action>#{newChapter.saveChapter}</from-action>
                    <from-outcome>success</from-outcome>
                    <to-view-id>/admin/savenewpage.jsp</to-view-id>
             </navigation-case> 
    </navigation-rule>
    </faces-config>It always stays onto newpage.jsp and does not execute my action #[newChapter.saveChapter}!
    Does anyone of you see, what I'm not able to see? What is wrong?
    Many thanks
    Fredy
    It instantiates fine the bean, because it displays the init-values. Here is the bean:
    package applications.fcms.handlers;
    import applications.fcms.ChapterRow;
    import applications.fcms.ChapterBean;
    public class NewChapter extends ChapterBean {
        int localid=0;
        public void setId(int v) {
         System.out.println("Setze ID: " + v);
            localid = v;
         if ( ( localid > 0 ) && (getDataSource() != null) ) {
             ChapterRow chapter = new ChapterRow(getDataSource());
                try {
             chapter.searchById(localid,true);
             chapter = chapter.next();
             if ( chapter != null ) {
              setId(chapter.getId());
              setButtonid(chapter.getButtonid());
              setName(chapter.getName());
              setValidfrom(chapter.getValidfrom());
              setValidto(chapter.getValidto());
              setCreationdate(chapter.getCreationdate());
              setDescription(chapter.getDescription());
              setSortname(chapter.getSortname());
              setWebsite(chapter.getWebsite());
              setText(chapter.getText());
             } catch (java.sql.SQLException sqle) {
              localid= 0;
             chapter.close();        
        public int getId() {
         return this.localid;
        public NewChapter() {
            System.out.println("init bean");
         setButtonid(0);
         setName("");
         setValidfrom(new java.sql.Date((new java.util.Date()).getTime()));
         setValidto(getSomeYears());
         setCreationdate(getValidfrom());
         setDescription("");
         setSortname("");
         setWebsite("");
         setText("");
         setId(0);
        private java.sql.Date getSomeYears() {
         java.util.Calendar today =  java.util.Calendar.getInstance();
         today.add(today.YEAR,+10);
         return (new java.sql.Date(today.getTimeInMillis()));
        String dataSource = null ;
        public void setDataSource(String v) {
         this.dataSource = v;
         System.out.println("Setze Dtasource: " + v);
        public String getDataSource() {
         return this.dataSource;
        public String saveChapter() {
            String msg="failure";
         System.out.println("SAVE CHAPTER");
            if ( (getDataSource() != null) && ( getWebsite() != null ) )  {
             ChapterRow chapter = new ChapterRow(getDataSource());
             chapter.setId(getId());
             chapter.setName(getName());
             chapter.setValidfrom(getValidfrom());
             chapter.setValidto(getValidto());
             chapter.setCreationdate(getCreationdate());
             chapter.setDescription(getDescription());
             chapter.setSortname(getSortname());
             chapter.setWebsite(getWebsite());
             chapter.setText(getText());
             if ( chapter.getId() == 0) {
              msg = chapter.insert();
             } else {
              msg= chapter.update();
             if (msg.toLowerCase().startsWith( "ok" ) ) msg = "success";
             chapter.close();
         return msg;
    }and here the initial bean:
    package applications.fcms;
    /** this has been generated by Fredy's Admin-Tool for SQL-Databases
    *  Date: 2005-5-9
    *  RDBMS:    MySQL Version: 4.1.9-standard
    *  Database: fcms
    *  Table:    chapter
    *  Description:
    *           Primarykeys:    id
    *           Columnname: id
    *           Type name : int
    *           Size      : 11
    *           Nullable  : 0
    *           Remarks   : auto_increment
    *           Column def: null
    *           Columnname: buttonid
    *           Type name : int
    *           Size      : 11
    *           Nullable  : 0
    *           Remarks   :
    *           Column def: 0
    *           Columnname: name
    *           Type name : varchar
    *           Size      : 20
    *           Nullable  : 0
    *           Remarks   :
    *           Column def:
    *           Columnname: validfrom
    *           Type name : date
    *           Size      : 10
    *           Nullable  : 0
    *           Remarks   :
    *           Column def: 0000-00-00
    *           Columnname: validto
    *           Type name : date
    *           Size      : 10
    *           Nullable  : 0
    *           Remarks   :
    *           Column def: 0000-00-00
    *           Columnname: creationdate
    *           Type name : date
    *           Size      : 10
    *           Nullable  : 0
    *           Remarks   :
    *           Column def: 0000-00-00
    *           Columnname: description
    *           Type name : varchar
    *           Size      : 250
    *           Nullable  : 1
    *           Remarks   :
    *           Column def: null
    *           Columnname: text
    *           Type name : text
    *           Size      : 65535
    *           Nullable  : 1
    *           Remarks   :
    *           Column def: null
    *           Columnname: sortname
    *           Type name : varchar
    *           Size      : 20
    *           Nullable  : 0
    *           Remarks   :
    *           Column def:
    *           Columnname: website
    *           Type name : varchar
    *           Size      : 100
    *           Nullable  : 0
    *           Remarks   :
    *           Column def:
    *  Admin is under GPL
    *  Fredy Fischer
    *  Hulmenweg 36
    *  8405 Winterthur
    *  Switzerland
    * [email protected]
    import java.io.Serializable;
    public class ChapterBean implements Serializable {
        int id;
           * get the value of the column id;
           * @return value of id;
        public synchronized int getId() { return id; }
           * set the value of the column id;
           * @param v value to assign to id;
        public synchronized void setId(int v) { this.id = v; }
        int buttonid;
           * get the value of the column buttonid;
           * @return value of buttonid;
        public synchronized int getButtonid() { return buttonid; }
           * set the value of the column buttonid;
           * @param v value to assign to buttonid;
        public synchronized void setButtonid(int v) { this.buttonid = v; }
        String name;
           * get the value of the column name;
           * @return value of name;
        public synchronized String getName() { return name; }
           * set the value of the column name;
           * @param v value to assign to name;
        public synchronized void setName(String v) { this.name = v; }
        java.sql.Date validfrom;
           * get the value of the column validfrom;
           * @return value of validfrom;
        public synchronized java.sql.Date getValidfrom() { return validfrom; }
           * set the value of the column validfrom;
           * @param v value to assign to validfrom;
        public synchronized void setValidfrom(java.sql.Date v) { this.validfrom = v; }
        java.sql.Date validto;
           * get the value of the column validto;
           * @return value of validto;
        public synchronized java.sql.Date getValidto() { return validto; }
           * set the value of the column validto;
           * @param v value to assign to validto;
        public synchronized void setValidto(java.sql.Date v) { this.validto = v; }
        java.sql.Date creationdate;
           * get the value of the column creationdate;
           * @return value of creationdate;
        public synchronized java.sql.Date getCreationdate() { return creationdate; }
           * set the value of the column creationdate;
           * @param v value to assign to creationdate;
        public synchronized void setCreationdate(java.sql.Date v) { this.creationdate = v; }
        String description;
           * get the value of the column description;
           * @return value of description;
        public synchronized String getDescription() { return description; }
           * set the value of the column description;
           * @param v value to assign to description;
        public synchronized void setDescription(String v) { this.description = v; }
        String text;
           * get the value of the column text;
           * @return value of text;
        public synchronized String getText() { return text; }
           * set the value of the column text;
           * @param v value to assign to text;
        public synchronized void setText(String v) { this.text = v; }
        String sortname;
           * get the value of the column sortname;
           * @return value of sortname;
        public synchronized String getSortname() { return sortname; }
           * set the value of the column sortname;
           * @param v value to assign to sortname;
        public synchronized void setSortname(String v) { this.sortname = v; }
        String website;
           * get the value of the column website;
           * @return value of website;
        public synchronized String getWebsite() { return website; }
           * set the value of the column website;
           * @param v value to assign to website;
        public synchronized void setWebsite(String v) { this.website = v; }
           * get the value of the bean derived out of the table chapter
           * @return value of chapterBean
        public synchronized ChapterBean getBean() {
           ChapterBean chapterBean = new ChapterBean();
           chapterBean.setId(getId());
           chapterBean.setButtonid(getButtonid());
           chapterBean.setName(getName());
           chapterBean.setValidfrom(getValidfrom());
           chapterBean.setValidto(getValidto());
           chapterBean.setCreationdate(getCreationdate());
           chapterBean.setDescription(getDescription());
           chapterBean.setText(getText());
           chapterBean.setSortname(getSortname());
           chapterBean.setWebsite(getWebsite());
           return chapterBean;
        * this is just the default constructor
        * that is here just be be here
       public ChapterBean () {
          // default constructor
          public ChapterBean (
                           int id,
                           int buttonid,
                           String name,
                           java.sql.Date validfrom,
                           java.sql.Date validto,
                           java.sql.Date creationdate,
                           String description,
                           String text,
                           String sortname,
                           String website) {
             this.setId(id);
             this.setButtonid(buttonid);
             this.setName(name);
             this.setValidfrom(validfrom);
             this.setValidto(validto);
             this.setCreationdate(creationdate);
             this.setDescription(description);
             this.setText(text);
             this.setSortname(sortname);
             this.setWebsite(website);
    }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

    Look the checklist at:
    http://www.jsf-faq.com/faqs/faces-navigation.html#111
    Sergey : jsfTutorials.net

  • Problems generating right CSR for Callmanager 10 - cisco messes up values, Bug?

    Hi,
    we wanted to install our official SSL certificates for the Callmanager, presence and Unity Connection.
    I had to regenerate the web-security from the console following the instructions.
    All values are in the correct order:
    orgunit orgname locality state
    "IT OfficeNet" "Filmakademie Baden-Wuerttemberg GmbH" Ludwigsburg Baden-Weuerttemberg
    But in the certificate for tomcat cisco changes values! What the heck?!
    OU=set,O=web-security,L=IT OfficeNet
    but it should be from my understanding:
    OU=IT OfficeNet,O=Filmakademie Baden-Wuerttemberg GmbH,L=Ludwigsburg
    Any idea, what's going wrong? Why is call manager etc messing things like this up? 
    The point is, we do need the name in the format O=Filmakademie Baden-Wuerttemberg GmbH,C=DE for our DFN PKI PCA. And no we don't do it the microsoft way!
    Thnaks for any hint and regards . Götz Reinicke

    Hello Götz,
    I cannot recreate that issue. Did you use the below command to change the Tomcat certificate?
    admin:set web-security "IT OfficeNet" "Filmakademie Baden-Wuerttemberg GmbH" Ludwigsburg Baden-Weuerttemberg
    WARNING: This operation creates self-signed certificate for web access (tomcat) with the updated organizational information.  However, certificates for other components (ipsec, CallManager, CAPF, etc.) still contain the original information. You may need to re-generate these self-signed certificates to update them.
    Regenerating web security certificates please wait ...
    WARNING: This operation will overwrite any CA signed certificate previously imported for  tomcat
    Proceed with regeneration (yes|no)? yes
    Successfully Regenerated Certificate for tomcat.
    You must restart services related to tomcat for the regenerated certificates to become active.
    admin:show web-security
      Version: V3
      Serial Number: 133081466728708197270872537923747420964
      SignatureAlgorithm: SHA1withRSA (1.2.840.113549.1.1.5)
      Issuer Name: L=Ludwigsburg, ST=Baden-Weuerttemberg, CN=cucm-c.mpagacz.local, OU=IT OfficeNet, O=Filmakademie Baden-Wuerttemberg GmbH, C=PL
      Validity From: Mon Oct 27 20:05:41 CET 2014
               To:   Sat Oct 26 21:05:40 CEST 2019
      Subject Name: L=Ludwigsburg, ST=Baden-Weuerttemberg, CN=cucm-c.mpagacz.local, OU=IT OfficeNet, O=Filmakademie Baden-Wuerttemberg GmbH, C=PL
    -Mateusz

  • Java Spring Problem

    I'm new to the Spring Framework, and was trying out a tutorial to get started. The details of that tutorial is here:
    http://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step-Part-1.html
    I've gotten through the first part up till the point where he says to use the 'list' task ("Let's just quickly start Tomcat and make sure that we can access the application. Use the 'list' task from our build file to see if Tomcat has picked up the new application.") At this point, i get the output is the following:
    C:\Springapp>ant list
    Buildfile: build.xml
    list:
    BUILD FAILED
    C:\Springapp\build.xml:138: java.net.ConnectException: Connection refused: conne
    ct
    Total time: 2 seconds
    C:\Springapp>
    When i put the build on debug mode, I get this output:
    C:\Springapp>ant list -d
    Apache Ant version 1.6.5 compiled on June 2 2005
    Buildfile: build.xml
    Adding reference: ant.PropertyHelper
    Detected Java version: 1.4 in: C:\j2sdk1.4.2_01\jre
    Detected OS: Windows XP
    Adding reference: ant.ComponentHelper
    Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on
    June 2 2005
    Setting ro project property: ant.file -> C:\Springapp\build.xml
    Adding reference: ant.projectHelper
    Adding reference: ant.parsing.context
    Adding reference: ant.targets
    parsing buildfile C:\Springapp\build.xml with URI = file:///C:/Springapp/build.x
    ml
    Setting ro project property: ant.project.name -> springapp
    Adding reference: springapp
    Setting ro project property: ant.file.springapp -> C:\Springapp\build.xml
    Project base dir set to: C:\Springapp
    +Target:
    Adding reference: master-classpath
    +Target: usage
    +Target: build
    +Target: deploy
    +Target: deploywar
    +Target: install
    +Target: reload
    +Target: start
    +Target: stop
    +Target: list
    [property] Loading C:\Springapp\build.properties
    Setting project property: tomcat.manager.url -> http://localhost:8080/manager
    Setting project property: tomcat.manager.username -> admin
    Setting project property: appserver.home -> C:/jakarta-tomcat-4.1.30
    Setting project property: tomcat.manager.password -> tomcat
    Setting project property: deploy.path -> C:/jakarta-tomcat-4.1.30/webapps
    Setting project property: src.dir -> src
    Setting project property: web.dir -> war
    Setting project property: build.dir -> war/WEB-INF/classes
    Setting project property: name -> springapp
    Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) fo
    r type image
    Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
    Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
    Adding reference: master-classpath
    Finding class org.apache.catalina.ant.InstallTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/InstallTask.class
    Finding class org.apache.catalina.ant.AbstractCatalinaTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/AbstractCatalinaTask.class
    Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
    Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
    tFirst)
    Class org.apache.catalina.ant.InstallTask loaded from ant loader (parentFirst)
    Class java.lang.Object loaded from parent loader (parentFirst)
    Class java.lang.Throwable loaded from parent loader (parentFirst)
    Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
    +Datatype install org.apache.catalina.ant.InstallTask
    Finding class org.apache.catalina.ant.ReloadTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/ReloadTask.class
    Finding class org.apache.catalina.ant.AbstractCatalinaTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/AbstractCatalinaTask.class
    Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
    Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
    tFirst)
    Class org.apache.catalina.ant.ReloadTask loaded from ant loader (parentFirst)
    Class java.lang.Object loaded from parent loader (parentFirst)
    Class java.lang.Throwable loaded from parent loader (parentFirst)
    Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
    +Datatype reload org.apache.catalina.ant.ReloadTask
    Finding class org.apache.catalina.ant.ListTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/ListTask.class
    Finding class org.apache.catalina.ant.AbstractCatalinaTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/AbstractCatalinaTask.class
    Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
    Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
    tFirst)
    Class org.apache.catalina.ant.ListTask loaded from ant loader (parentFirst)
    Class java.lang.Object loaded from parent loader (parentFirst)
    Class java.lang.Throwable loaded from parent loader (parentFirst)
    Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
    +Datatype list org.apache.catalina.ant.ListTask
    Finding class org.apache.catalina.ant.StartTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/StartTask.class
    Finding class org.apache.catalina.ant.AbstractCatalinaTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/AbstractCatalinaTask.class
    Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
    Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
    tFirst)
    Class org.apache.catalina.ant.StartTask loaded from ant loader (parentFirst)
    Class java.lang.Object loaded from parent loader (parentFirst)
    Class java.lang.Throwable loaded from parent loader (parentFirst)
    Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
    +Datatype start org.apache.catalina.ant.StartTask
    Finding class org.apache.catalina.ant.StopTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/StopTask.class
    Finding class org.apache.catalina.ant.AbstractCatalinaTask
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/ant/AbstractCatalinaTask.class
    Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
    Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
    tFirst)
    Class org.apache.catalina.ant.StopTask loaded from ant loader (parentFirst)
    Class java.lang.Object loaded from parent loader (parentFirst)
    Class java.lang.Throwable loaded from parent loader (parentFirst)
    Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
    +Datatype stop org.apache.catalina.ant.StopTask
    Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
    Adding reference: ant.executor
    Build sequence for target(s) `list' is [list]
    Complete build sequence is [list, reload, start, install, build, deploy, usage,
    stop, deploywar, ]
    list:
    Class java.lang.String loaded from parent loader (parentFirst)
    Class java.io.InputStream loaded from parent loader (parentFirst)
    Class java.net.URL loaded from parent loader (parentFirst)
    Class java.lang.StringBuffer loaded from parent loader (parentFirst)
    Class java.net.HttpURLConnection loaded from parent loader (parentFirst)
    Finding class org.apache.catalina.util.Base64
    Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
    lina/util/Base64.class
    Class org.apache.catalina.util.Base64 loaded from ant loader (parentFirst)
    BUILD FAILED
    C:\Springapp\build.xml:138: java.net.ConnectException: Connection refused: conne
    ct
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
    Task.java:278)
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
    Task.java:171)
    at org.apache.catalina.ant.ListTask.execute(ListTask.java:95)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
    ction.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:487)
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
    Task.java:228)
    ... 14 more
    --- Nested Exception ---
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
    ction.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:487)
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
    Task.java:228)
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
    Task.java:171)
    at org.apache.catalina.ant.ListTask.execute(ListTask.java:95)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Total time: 2 seconds
    C:\Springapp>
    Anybody know what the problem is?

    Hi,
    Start the server before the build is done,Since the server is not started it gives the error.
    Thanks

  • An XML design question.

    I have read the tomcat-users.xml file.
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="tomcat"/>
      <role rolename="role1"/>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="tomcat" password="tomcat" roles="tomcat"/>
      <user username="both" password="tomcat" roles="tomcat,role1"/>
      <user username="role1" password="tomcat" roles="role1"/>
      <user username="admin" password="admin" roles="admin,manager"/>
    </tomcat-users>There are some question about the disign of the xml.
    1.Why the xml file don't have a DTD, I think that the username,rolename should be an "ID" so as to be identical?So i think it should have a DTD to constrain them.
    2.Why the "rolename","username","password" are designed as attributes,not as element children? Which is better if i design them as element children?

    1. DTDs are not necessay for XML files. If a small and easy-to-understand XML file like this one is created, it doesn't really need a DTD to go with it. You could write a DTD to go with this file. It will look like this:
    <!---- A DTD for the tomcat-users XML File --->
    <!ELEMENT tomcat-users (role+, user+)>
    <!ELEMENT role EMPTY>
    <!ATTLIST role
    rolename (tomcat | role1 | manager | admin) #REQUIRED>
    <!ELEMENT user EMPTY>
    <!ATTLIST user
    username (tomacat | both | role1 | admin) #REQUIRED
    password (tomcat | admin) #REQUIRED
    roles CDATA #REQUIRED>
    You would have to add a tag in the XML file to reference such a DTD.
    I disagree that rolename and username should be merged. How would you explain the function of the username "Both"? You need to have the username belong to a separate element than the role to reference it in some attribute ( in this case, the "roles" attribute of the "user" element ).
    2. I have began answering part 2 in the first part. It would be useless to have "rolename", "username" and "password" as children element. First, that would mean that the elements "role" and "user" wouldn't have any meaning anymore, they would only be top elements sitting and doing nothing. Second, the way the document is written suggests that although the role and the user are closely related, they should be separated to define roles independently of what users are assigned.
    Hope that was helpful, please let me know if you have further questions.

Maybe you are looking for