cancel
Showing results for 
Search instead for 
Did you mean: 

server.xml

Former Member
0 Kudos

Hi all,

my project use Tomcat and I manage the authentication using the idam.5.1.jar (amis.svc.user.IAmisUser).

My JSP catch the user using response.encodeURL("j_security_check"). Tomcat use the server.xml to map the Oracle DB table where the user info are stored.

Now, I have imported and deployed the application on SAP WAS. I have NO errors, but I'm not able to authenticate the user because I haven't the file server.xml under SAP. This xml is needed to map the Oracle DB.

Where or how can I solve the problem?? Where put the mapping information under SAP?

My server.xml was the following:


<Server port="8005" shutdown="SHUTDOWN">

  <!-- Comment these entries out to disable JMX MBeans support used for the 
       administration web application -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>

  <!-- Global JNDI resources -->
  <GlobalNamingResources>

    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <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>

  <!-- Define the Tomcat Stand-Alone Service -->
  <Service name="Catalina">


    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
port="8085"               maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
  
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" 
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
         
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">

     
<Realm className="org.apache.catalina.realm.JDBCRealm"
     driverName="oracle.jdbc.driver.OracleDriver"
     connectionURL="jdbc:oracle:thin:@MILDS2001:1521:dev"
     connectionName="ID_OWN_IDAM" connectionPassword="ID_OWN_IDAM"
     userTable="IBC_AUTH_USER" userNameCol="COD_USER" userCredCol="LOGIN_PWD"
     userRoleTable="IBC_AUTH_USER_PROFILE" roleNameCol="COD_PROFILE" />
      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
      </Host>
    </Engine>
  </Service>
</Server>

Any help will be appreciate.

Thanks,

Vito

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI

You can implement this by creating a login module

please see the example link below as to how you can develop and configure this.

http://help.sap.com/saphelp_nw04/helpdata/en/46/3ce9402f3f8031e10000000a1550b0/frameset.htm

Hope this helps , please do not forget to reward points for helpful answers

regards

rajeshkr

Message was edited by: Rajesh K. R.

Former Member
0 Kudos

Vito,

1. SAP WebAS does not have a corresponding file to server.xml of Tomcat.

2. For making use of form-based authentication with SAP WebAS , you will need to go thro' this documentation on

<b>User Authentication and Single Sign-On</b> & check section <b>Authentication Schemes</b>

http://help.sap.com/saphelp_nw04/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/content.htm

Rgds,

Amol