DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30155>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30155

Problem with viewing mail session





------- Additional Comments From [EMAIL PROTECTED]  2004-07-20 20:51 -------
I actually removed the configuration regarding the mail session both in web.xml
and context.xml. here goes the web.xml, context.xml and server.xml:

web.xml:

<web-app>
<!--  Omit other config  -->
     <resource-ref>
        <description>DB Connection</description>
        <res-ref-name>jdbc/dsapp1</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>
<!--    <resource-ref>-->
<!--        <description>mail</description>-->
<!--        <res-ref-name>mail/Session_send</res-ref-name>-->
<!--        <res-type>javax.mail.Session</res-type>-->
<!--        <res-auth>Container</res-auth>-->
<!--    </resource-ref>-->

        <!-- The tomcat role -->
    <security-role>
        <description>Default Role for All Users</description>
        <role-name>tomcat</role-name>
    </security-role>
</web-app>

context.xml:

<Context path="/dsapp1" docBase="dsapp1" debug="99" reloadable="true">
    <Logger className="org.apache.catalina.logger.FileLogger" 
        prefix="dsapp1_log." suffix=".txt" timestamp="true"/>


    <!-- NOTE: If you want to use a DataSourceRealm, the Resource must be a
               global resource -->
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
          driverName="com.mysql.jdbc.Driver"
      
connectionURL="jdbc:mysql://localhost/dsapp1?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF-8"
      connectionName="test" connectionPassword="test"
           userTable="app_user" userNameCol="username" userCredCol="password"
       userRoleTable="user_role" roleNameCol="role_name" />
    <Resource name="jdbc/dsapp1" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/dsapp1">
        <parameter>
            <name>factory</name>
            <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
        </parameter>
        <!-- Maximum number of dB connections in pool. Make sure you
             configure your mysqld max_connections large enough to handle
             all of your db connections. Set to 0 for no limit.
             -->
        <parameter>
            <name>maxActive</name>
            <value>100</value>
        </parameter>
<!-- Omit other config -->
    </ResourceParams>
    <!-- This is not working -->
<!--    <Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>-->
<!--    <ResourceParams name="mail/Session">-->
<!--        <parameter>-->
<!--            <name>mail.smtp.host</name>-->
<!--            <value>localhost</value>-->
<!--        </parameter>-->
<!--    </ResourceParams>-->
</Context>

server.xml:

?xml version='1.0' encoding='utf-8'?>
<Server>
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  <GlobalNamingResources>
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <Resource auth="Container" description="User database that can be updated
and saved" name="UserDatabase" type="org.apache.catalina.UserDatabase"/>
    <Resource name="mail/Session_send" type="javax.mail.Session"/>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>
    <ResourceParams name="mail/Session_send">
      <parameter>
        <name>mail.smtp.host</name>
        <value>smtp.host.net</value>
      </parameter>
    </ResourceParams>
  </GlobalNamingResources>
 <Service name="Catalina">
    <Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" port="8080" redirectPort="8443">
    </Connector>
    <Connector port="8009" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="8443">
    </Connector>
    <Engine defaultHost="localhost" name="Catalina">
      <Host appBase="webapps" name="localhost">
        <Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_log." suffix=".txt" timestamp="true"/>
      </Host>
      <Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt" timestamp="true"/>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
    </Engine>
  </Service>
</Server>

thanks for your time

bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to