2 Replies Latest reply: Mar 7, 2013 3:28 AM by Nilum RSS

    Error deploying sample application

    user13114668
      Hi experts,
      I am getting following error while deploying OAAM sample application:

      Error: Unresolved Webapp Library references for "ServletContext@285871212[app:OAAMTester module:OAAMTester.war path:/OAAMTester spec-version:2.5]", defined in weblogic.xml [Extension-Name: oracle.oaam.libs, exact-match: false]
      Even though i have deployed required libraries
      My weblogic.xml :
      <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
      xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd
      http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

      <library-ref>
      <library-name>oracle.oaam.libs</library-name>
      </library-ref>
      </weblogic-web-app>

      web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>OAAMTester</display-name>
      <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <servlet>
      <description></description>
      <display-name>OAAMTestServlet</display-name>
      <servlet-name>OAAMTestServlet</servlet-name>
      <servlet-class>com.au.oaam.test.OAAMTestServlet</servlet-class>
      </servlet>
      <servlet-mapping>
      <servlet-name>OAAMTestServlet</servlet-name>
      <url-pattern>/OAAMTestServlet</url-pattern>
      </servlet-mapping>
      <listener>
      <listener-class>com.au.oaam.test.listener.SessionListener</listener-class>
      </listener>
      </web-app>
      ~
      ~

      Thanks
      H
        • 1. Re: Error deploying sample application
          Nilum
          Hi!

          Seems application missing this library. You need to add this library to either application or to the Weblogic server.

          Note:
          Also don't duplicate the same library in application and the server. You can use following entry to force the app to use only web-inf/lib libraries.
          (weblogic.xml)

          <container-descriptor>
          <prefer-web-inf-classes>true</prefer-web-inf-classes>
          </container-descriptor>

          Nilum.
          • 2. Re: Error deploying sample application
            Nilum
            Hi!

            Seems application missing this library. You need to add this library to either application or to the Weblogic server.

            Note:
            Also don't duplicate the same library in application and the server. You can use following entry to force the app to use only web-inf/lib libraries.
            (weblogic.xml)

            <container-descriptor>
            <prefer-web-inf-classes>true</prefer-web-inf-classes>
            </container-descriptor>

            Nilum.