Feeds:
Posts
Comments

Oracle Weblogic Simple Producer (Version 10.3)

Oracle Weblogic Simple producer is a light version of Oracle Weblogic Portal + Oracle Weblogic Federated resources. From here onwards simple producer will be used to indicate Oracle Weblogic Simple Producer. Remote portlets deployed on producer can be consumed by the consumer portal using WSRP protocol.

A simple producer can be created using the following steps:

Step 1: Create the simple producer domain

Step 2: Create the simple producer project

Step 3: Move the existing application to simple producer project or create new application as required.

Step 4: Generate simple producer portlets, books, pages etc.

Step 5: Deploy the simple producer application on simple producer domain

Step 6: Consume the simple producer portlets and you are done.

Following features are supported by Simple Producer:

  • Page flow & struts portlets can be created and published as remote portlets
  • URL Rewriting is supported

Following features are not supported by Simple Producer:

  • Java, JSP, HTML, Clipper or Iframe portlets are not supported
  • Registration of remote portlets are not supported
  • No portal administration is available for simple producer
  • No Backing file support is available for simple producer
  • No event support is available for simple producer and thus inter portlet communication is also not available.
  • Render dependency file is not supported by simple producer
  • Portal APIs are not supported by simple producer

Problem: JSTL complex expressions are not recognized in weblogic portal version 10 and onwards. It complains that cannot resolve the complex expressions and throws jsp compilation errors as follows:

Caused by: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /package/JSPName.jsp
JSPName.jsp:165:13: Static attribute must be a String literal, its illegal to specify an expression.


Resolution: Replace the jstl taglib as http://java.sun.com/jsp/jstl/core for weblogic 10 and newer versions, for older versions it should be http://java.sun.com/jstl/core, jsp word is the key in the url for the taglib.

Open the project properties, build path and

1. Remove the following libraries from your Weblogic System Libraries

  • api.jar
  • wls-api.jar
  • weblogic.jar
  • wlcommons-logging.jar
  • junit.jar
  • wseeclient.jar

2. Add the following to the build path as external jar files

  • api.jar
  • wls-api.jar
  • weblogic.jar
  • wlcommons-logging.jar
  • junit.jar
  • wseeclient.jar

3. Compile the project and run the junit tests.

4. Thats it!

Sometimes the way weblogic server is started, it does not recognize the DemoIdentity.jks and thats why we need to make the following changes to recognize this by weblogic server:

Go to weblogic admin console
Environment -> servers -> AdminServer -> Configuration -> Keystores
- change the value of Keystores to use “Custom Identity and Java Standard Trust”
- Enter the complete path of the DemoIdentity.jks in custom identity store field

Save the changes and redefine the SAMLAuthenticator.

Add the followings in the weblogic startup script to add the proxy configuration:

-Dhttp.proxyHost=[http-proxy-host-url]

-Dhttps.proxyHost=[https-proxy-host-url]

-Dhttp.proxyPort=[proxy-port]

-Dhttps.proxyPort=[ssl-port]

How to make weblogic server to use HttpConnectionURL and not the SoapHttpConnectionURL (by default weblogic uses its own handler and thus creates the SoapHttpConnectionURL and not the HttpConnectionURL)?

Add the following in the startup script:

set JAVA_OPTIONS=%JAVA_OPTIONS% -DUseSunHttpHandler=true

EJB Client generation using workspace IDE

    - Right click the ejb project – > Properties -> Weblogic EJB – > Jar Settings EJB Client Jar: enter the name of the client jar
    - To build the client jar export the project as “EJB Jar File”, both the jars will be created, client as well as ejb jar.
     

EJB Client generation using ANT

    - Add this @JarSettings(ejbClientJar = “xyzManagementClient.jar”) to the bean
    - add desired EJBC flags directly to the build script where “weblogic.ejbc” is executed.  

Follow

Get every new post delivered to your Inbox.