Tomcat Configuration

I can't change the port on tomcat from 8080 to default http port 80.
But i can change the port to another number like 12000 , etc.
what should i do ?
Thanks

What do you mean you cannot change it?
You just change it in server.xml and restart tomcat.
Do you have another application already listening on port 80, Apache for example??
If you do you will have to stop the other application before restarting tomcat.

Similar Messages

  • Uisng XSQL without changing Tomcat configuration

    I would like to use XSQL servlet with a JSF application. In the installation guide, steps are given to specify the servlet responsible for *.xsql requests in the servlet container configuration files such as Tomcat's.
    But I was wondering if it is possible to specify the XSQL servlet in web.xml file for the application? Just as I do for JSF:
    <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>*.jsf</url-pattern>
    </servlet-mapping>
    That way I would'nt have to alter the server configuration. Thanks!

    XSQL Servlet may be added to web.xml
    <servlet>
    <servlet-name>XSQLServlet</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet </servlet-class>
    </servlet>
    Refer
    Can't get XSQL servlet to work on iPlanet Web Server (iws 6.0)

  • Container Managed Security on Tomcat - configuring different auth-methods

    I am trying to configure the container managed security on tomcat4. Or rather I am trying to add a further dimension to the configuration that already exists.
    At the moment the entire application uses LDAP authentication and I would like to separate an area that requires further authentication. That is to say I would like everyone using the web application to authenticate using the existing Form-Based LDAP authentication but I would like only certain users to be able to use the data upload facility (whose code is stored in it's own directory).
    This is the authentication bit of my web.xml:
      <security-constraint>
        <web-resource-collection>
          <web-resource-name>qmrae</web-resource-name>
          <url-pattern>*.do</url-pattern>
          <url-pattern>*.jsp</url-pattern>
        </web-resource-collection>
        <auth-constraint>
          <role-name>*</role-name>
        </auth-constraint>
      </security-constraint>
      <login-config>
        <auth-method>FORM</auth-method>
        <realm-name>Form-Based Authentication Area</realm-name>
        <form-login-config>
          <form-login-page>/login.jsp</form-login-page>
          <form-error-page>/loginError.jsp</form-error-page>
        </form-login-config>
      </login-config>My first hurdle is in understanding exactly how the application knows where to go for its authentication.
    I had guessed that the realm-name would map "areas" of my application to realm configuration defined in my application's context area in Tomcat's web.xml but this doesnt seem to be the case. In fact I have read conflicting explanations as to what the realm-name is for. One source has said that this is only used for BASIC authentication as a way of naming the resulting pop up window - many others say it maps the login-config to the web-resource-name. However the latter doesnt make sense because the authentication works in my application at the moment even though those values are completely different (and indeed are different in most of the examples i've read on the web). Furthermore I can find any other mention of the defined realm-name in any other file (which of course be because i'm looking in the wrong place).
    I was prepared to accept that the realm-name might not actually do anything and so I've been looking for examples of defining a different auth-method for different url-patterns but i've had no luck.
    I know a user can have one or more roles but I dont have access to the LDAP server to set these up and haven't found anything about defining different auth-methods other than one thread in this forum suggesting that is wasnt possible on AIS.
    This thread suggests that you can have more than one security-constraint but again i'm not sure about the auth methods and how you map an auth method to a security-constraint
    http://forum.java.sun.com/thread.jspa?forumID=33&threadID=320918
    To summarise my questions:
    1) What are the functions of the realm-name and web-resource-name? Are they related?
    2) Is it possible to configure different areas of an application to use different authentication methods? and if so, could you point me in the direction of relevant documentation
    3) If (2) is not possible and I have to assign a new role to the privileged LDAP users, is it enough to define a new security-constraint? Could you describe the behaviour I could expect for users that have authenticated once and try to access this super-security area, will they be shown another login form or will it just let them in because the container is already aware of their permissions.
    Many thanks for your attention,
    Rachel

    If you create your own Realm classes - look at JAAS - you can sort out your last login time, just wrap them around the DataSourceRealm.
    As far as 'remind' him is concerned - I'm guessing you mean provider a reminder for the password based on the user name. If you use form based authentication you can put what ever you like on the page.

  • Tomcat configuration (mysql db)

    Here are the specs:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\conf\server.xml file
    <Server port="8005" shutdown="SHUTDOWN">
      <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
      <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
      <GlobalNamingResources>
        <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
           description="User database that can be updated and saved"
               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
      </GlobalNamingResources>
      <Service name="Catalina">
        <Connector port="8080"
                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" redirectPort="8443" acceptCount="100"
                   connectionTimeout="20000" disableUploadTimeout="true" />
        <Connector port="8009"
                   enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
        <Engine name="Catalina" defaultHost="localhost">
          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 resourceName="UserDatabase"/>
          <Host name="localhost" appBase="webapps"
           unpackWARs="true" autoDeploy="true"
           xmlValidation="false" xmlNamespaceAware="false">
              <Context path="/WEB/DBTest" docBase="DBTest"
            debug="5" reloadable="true" crossContext="true">
      <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
                   maxActive="100" maxIdle="30" maxWait="10000"
                   username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver"
                   url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>
    </Context>
          </Host>
        </Engine>
      </Service>
    </Server>C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\webapps\WEB\DBTest\WEB-INF\web.xml file
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
      <description>MySQL Test App</description>
      <resource-ref>
          <description>DB Connection</description>
          <res-ref-name>jdbc/TestDB</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
      </resource-ref>
    </web-app>
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\webapps\WEB\DBTest\index.jsp file
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/TestDB">
    select id, foo, bar from testdata
    </sql:query>
    <html>
      <head>
        <title>DB Test</title>
      </head>
      <body>
      <h2>Results</h2>
    <c:forEach var="row" items="${rs.rows}">
        Foo ${row.foo}<br/>
        Bar ${row.bar}<br/>
    </c:forEach>
      </body>
    </html>
    Files under C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\webapps\WEB\DBTest\WEB-INF\lib folder:
    commons-collections-3.1.jar
    commons-dbcp-1.2.1.jar
    commons-pool-1.2.jar
    jstl.jar
    mysql-connector-java-3.1.10-bin.jar
    mysql-connector-java-3.1.10-bin-g.jar
    standard.jar
    ERROR that I get
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'"
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.DBTest.index_jsp._jspService(index_jsp.java:84)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'"
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
         org.apache.jsp.DBTest.index_jsp._jspx_meth_sql_query_0(index_jsp.java:103)
         org.apache.jsp.DBTest.index_jsp._jspService(index_jsp.java:59)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
    Apache Tomcat/5.5.7What is the problem?

    Good to hear you got it working.
    Just as a comment on this, rather than editing server.xml, I find it easier to work with a specific "context.xml" configuration for each web application.
    Information can be found here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
    Basically it means instead of defining the <context> and all the database connection parameters in server.xml, you put that into a seperate file, and leave server.xml alone.
    Most probable this file would be [TOMCAT]/confCatalina/localhost/myApp.xml
    Cheers,
    evnafets

  • Tomcat configuration to hide jsp names

    Hi, I am newbe to Tomcat and want to know how I can hide or "rename" my *.jsp files.
    What I mean:
    I have a file mail.jsp, which prowide some operations with mail accounts. The link to that file is www.mysite.com/mail.jsp. How can I configure tomcat (v.5.5.20) to show the next url www.mysite.com/mymailaccount without any jsp or other extensions. I guess that I should use <servlet-mapping>[i[/b]] and <url-pattern> in web.xml, but how ? - I receive an error.
    Could You help me.

    You can map your JSP files just like you map your Servlets. There is an example in this post
    http://forum.java.sun.com/thread.jspa?threadID=5122892&messageID=9432045#9432045

  • Apache-tomcat configuration

    How to configure tomcat with apache server?

    you need to download the bridge mod_webapp
    and install it with apache.
    and then, modified the httpd.conf such that
    LoadModule webapp_module libexec/mod_webapp.so
    AddModule mod_webapp.c
    AND
    WebAppConnection conn warp localhost:8008
    WebAppDeploy examples conn /examples/
    restart apache...and then it should be connected.
    further details in fact can be refered to Apache docs.

  • Tomcat configure problem

    hi here comes a jsp newbie. i just install the tomcat follow some instruction on web. but when i run the tomcat, it returns some error, can anyone kindly help me on about it? i am using tomcat 4.1 under windows2000 system.
    here i give out the error warning.
    ==========
    C:\>C:\j2sdk1.4.0_01\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache Group
    \Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" start
    May 20, 2003 9:29:43 AM org.apache.commons.modeler.Registry loadRegistry
    INFO: Loading registry information
    May 20, 2003 9:29:43 AM org.apache.commons.modeler.Registry getRegistry
    INFO: Creating new Registry instance
    May 20, 2003 9:29:45 AM org.apache.commons.modeler.Registry getServer
    INFO: Creating MBeanServer
    May 20, 2003 9:29:47 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
    nt.java:280)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
    at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
    java:1117)
    at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:579)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:2246)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    Catalina.start: LifecycleException: Protocol handler initialization failed: jav
    a.net.BindException: Address already in use: JVM_Bind:8080
    LifecycleException: Protocol handler initialization failed: java.net.BindExcept
    ion: Address already in use: JVM_Bind:8080
    at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
    java:1119)
    at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:579)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:2246)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    Catalina.stop: LifecycleException: This server has not yet been started
    LifecycleException: This server has not yet been started
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2213
    at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    ==============
    appreciate in advance..

    here i wanna to stop the tomcat. it returns error too,
    so what is the problem again. following error warning shows
    C:\>C:\j2sdk1.4.0_01\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache Group
    \Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" stop
    Catalina.stop: java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
    at java.net.Socket.connect(Socket.java:425)
    at java.net.Socket.connect(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:290)
    at java.net.Socket.<init>(Socket.java:118)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

  • Tomcat configuration on BOXI3.1 SP5.

    We are doing a load test on BOXI3.1 SP5 (out of box tomcat 5.5),after 500 Vusers login ,PE team noticed below errors
    1. Action.c(8): Error -27796: Failed to connect to server "bobjwmsso.ms.com:8080": [10061] Connection refused
    2.. Action.c(23): Error -27728: Step download timeout (120 seconds) has expired
    Already applied below changes to tomcat "server.xml"
    connectionTimeout=0
    maxThreads=600
    Environment:
    ===========
    Windows 2008 server
    BOXI3.1 Sp5
    Tomcat5.5(out of box)
    Regards
    Reddy

    Hi Reddy,
    Could you please refer to the following KBA:
    https://support.wdf.sap.corp/sap/support/notes/1395999a
    Regards,
    Asma

  • Sun One tomcat configuration?????

    Hi everyone!
    After installing the Sun One CE4 with Tomcat 4.0 and properly mounting a CD Shopcart tutorial webapp I receive this error:
    Apache Tomcat/4.0.1 - HTTP Status 404 - /CDShopCart/ProductList.jsp
    type Status report
    message /CDShopCart/ProductList.jsp
    description The requested resource (/CDShopCart/ProductList.jsp) is not available.
    Is it the server.xml or web.xml file that needs to be updated????
    My class path appears to be fine...
    One other thing is that when I utilize the execute (force reload) button on sun one the netscape browser url reflects only a 1 in the address bar
    Thanks for any help!!!!!!!!
    eric

    In your TOMCAT_HOME directory, lookfor the directory webapps. Inside webapps copy or paste the .war file.
    START TOMCAT
    Then access the web app by typing:
    http://localhost:portnumber/webappname/<jspfile>
    Hope that helps.

  • Tomcat  Configuration - trace option

    Dear,
    how can I disable the Tomcat trace command.
    Thanks,

    Hi
    Please refer to the Tomcat Installation documentation before putting on your question in the forum....
    Swaraj

  • Tomcat configuration problem...

    i've install J2SE1.4.2 beta, and i also installed tomcat 5.0.
    Enviroment variable have been set as below;
    set JAVA_HOME=c:\j2sdk1.4.2;
    set CATALINA_HOME=c:\tomcat5;
    set classpath=.;c:\j2sdk1.4.2\lib;
    set path=c:\j2sdk1.4.2\bin;c:\windows\command;c:\windows;
    Why whenever i load the tomcat5\bin\startup.bat file it'll show message:
    The CATALINA_HOME enviroment variable is not defined correctly
    This enviroment variable is needed to run thi program
    i do set the CATALINA_HOME variable right?or do i have to install J2EE inorder to run it?

    Hi I am actually new to jsp but I have a post in java.sun.com forum that may help you it about installing Tomact 4.1 in Windows 2000.
    Go to the fourth reply under that post and you will find 11 steps for the installing Tomcat 4.1.
    and to not be confused the second step asks the user to install J2SE 1.4 and save its folders in C:/ j2sdk1.4.0_03. This is because at the beggining of the insallation process, Tomcat 4.1 gives a message that it will go to a folder with this name and path to find the jdk.
    This is the link to the post http://forum.java.sun.com/thread.jsp?forum=45&thread=421958
    I hope this will help you.

  • OS X Server Updates overwrite tomcat configuration files

    I have a tomcat installation running on OS X Server. Whenever I perform a mac software/security update, my /Library/Tomcat/bin/catalina.sh and /Library/Tomcat/conf/server.xml files are both overwritten and restored to the default settings.
    This is a huge problem because I have tomcat tuned to run with 4GB of memory and in 64 bit mode. I also have the server.xml tuned for efficient connector pool usage, max connections, etc.
    All of my setting are wiped out by the OS update crippling my web apps with the default 64M of memory and such.
    Any advice would be much appreciated.
    Thanks In Advance.

    The Question is how to get Apple to fix SSLPassPhraseDialog exec:/etc/httpd/getsslpassphrase
    Any ideas ?
    File a bug report with Apple via its Bug Reporter system. Go to https://connect.apple.com/MemberSite and join the Apple Developer Connection (ADC)—it's free and available for all Mac users and gets you a look at some development software. Then, go to https://bugreport.apple.com/
    click on the Login to the Apple BugReporter link (using your Apple ID username and password), and file your bug report/enhancement request. The nice thing with this procedure is that you get a response and a follow-up number; thus, starting a dialog with engineering.
    BTW, you'd probably get more sympathy posting to the server forums at http://discussions.apple.com/category.jspa?categoryID=96

  • How to configure Oracle Datasource in Tomcat

    Hello,
    My configuration of a Tomcat Datasource (oracle) appears to be wrong. Either that or my oraclejdbc.jar file is in the wrong place. Perhaps my classpath setting is wrong. Any help is appreciated.
    Tomcat console error:
    20070423 20:46:22.514 http-8080-Processor24(0x005878d2)
    JdbcUtil#getDataSourceObject() Throw com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'java:comp/env/jdbc/wrsPool':
    ==> javax.naming.OperationNotSupportedException: Can't generate an absolute name for this namespace
    Trace output from JdbcUtil:
    XPRESS exception:
    Can't call method getDataSourceObject on class com.waveset.util.JdbcUtil ==> com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'java:comp/env/jdbc/wrsPool': ==> javax.naming.OperationNotSupportedException: Can't generate an absolute name for this namespace
    XPRESS exception:
    Can't call method queryRecords on class com.waveset.util.JdbcUtil ==> java.lang.NullPointerException:
    The express code used to call JdbcUtil follows:
    <defvar name='dataSource'>
    <new class='javax.sql.DataSource'/>
    </defvar>
    <set name='dataSource'>
    <invoke name='getDataSourceObject' class='com.waveset.util.JdbcUtil'>
    <null/>
    <s>java:comp/env/jdbc/wrsPool</s>
    <null/>
    </invoke>
    </set>
    The Tomcat configuration *.xml file
    <?xml version='1.0' encoding='utf-8'?>
    <Context docBase="wavex" path="/wavex" useNaming="false" workDir="work\Catalina\localhost\wavex">
    <Resource name="jdbc/waveexPool " type="javax.sql.DataSource"/>
    <Resource name="jdbc/wrsPool" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/waveexPool ">
    <parameter>
    <name>url</name>
    <value>jdbc:sqlserver://localhost:1433;DatabaseName=WaveEx</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>4</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    <ResourceParams name="jdbc/wrsPool">
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:thin:@vega.vf.lmco.com:1521:dev2</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>4</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value></value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    </Context>
    Environment is:
    IDM 7.0 on Windows 2000, sql server houses the repository.
    Tomcat 5.0.28 with JDK 1.6

    thanks for the reply, i have configured the connection pool settings in the tomcat.
    I created a class with static method, which will return the connection object.
    whenever i need the connection object, iam invoking the static method, once its usage is over iam closing thew connection..
    is it the right way of using the connection object in the web application.

  • Help needed configuring Tomcat 4.1

    Hi there,
    I hope that someone can help me out with this problem!!
    I am having problems running my applications on Tomcat 4.1 (on Win XP, j2sdk1.4.1, j2sdkee1.4) each time i try to run a JSP page that uses JavaBeans i get an 'unable to compile class for JSP' error. I am guessing that tomcat is unable to recognise my JavaBean package (which is stored in the normal place, under WEB-INF/classes)
    Now, I know that i have my environment variables set up correctly, as the example jsps packaged with tomcat work fine.
    From reading previous posts i guess that the problem is my Tomcat configuration, probably server.xml. So, my question is: do i have to configure server.xml manually for each application that i set up? If so, how do i do this? If not, does anyone have any ideas as to what the problem, may be?
    Many thanks in advance for your help!!

    It sounds like you may need to add the bean to your classpath so that the compiler can find it. The classpath's function is simply to let the compiler know where your classes are located.

  • Tomcat Virtual Host Configuration on windows 2000

    Dear Reader,
    I am using Tomcat 4.1 with JDK1.4. Currently i have 3 projects.
    The navigation for these is ....
    http://localhost:9090/Shopping/
    http://localhost:9090/Bank/
    http://localhost:9090/Sample/
    Now,
    I need these links as
    http://Shopping:9090 or www.shopping.com is local system....
    http://bank:9090 or www.bank.com is local system....
    http://Sample:9090 or www.sample.com is local system....
    I am using Windows OS. Please Help
    Advance Thanks.
    Rengaraj.R

    Also should have mentioned that to get the mappings for the individual web apps (/Shopping, /bank and /Sample) after the localhost portion you need to add a context file for each web app to the tomcat configuration files (location below).
    The files will live in /tomcat/Conf/Catalina/localhost/"the name of your web app". As an example something like:
    <Context crossContext="true" docBase="/var/webapps/mybankapp" path="/bank" reloadable="true">
    </Context>
    This is placed in a file called: bank.xml
    Edited by: PaulOckleford on Jun 29, 2009 4:14 AM
    Edited by: PaulOckleford on Jun 30, 2009 2:26 AM Wrong xml file name

Maybe you are looking for

  • Need info on communication from server to flex

    Hi Can anyone let me know how asynchronous communication from server to flex UI takes place?? What are all mechanisms I can be able to use?? How can I do that??/ Thanks in Advance Aruna.S.N.

  • Suspending transactions

              Hi. I'm running WL 6.1 sp1, connecting to an oracle db. There are several places           in my application where information, including exception error messages, is being           logged to the db. The problem is that when an exception o

  • HT204088 how to register a problem while purchasing?

    While I was purchasing an item, an error occurred. Then, I restarted that purchase and my credit card was charged 2 times... How could I revert it? Regards

  • IPhone5 IOS 6.0.1 shared google calendar does not show

    Even though the setting in Google Calendar is set to 'show', the shared calendar from another gmail acount does not appear in the iphone native calendar app. Anyone solution for this?

  • Adobe Audition 3.0 "Audio Hardware Settings" for USB Audio Interface HELP!

    Hi guys. I'm after some help in the internal settings of Adobe Audition 3.0 whilst I'm trying to run my condenser mic through my ART USB Dual Pre. I have the USB Dual Pre all set up in my Windows 7 set up (it automatically becomes the default recordi