Setting up an Eclipse Development Environment for WebCenter Sites

Most Java developers are familiar with Eclipse. While the Content Server Developer Tools (CSDT) does not work the same as other application-specific Eclipse plug-ins, it does provide the ability to perform custom development more easily with WebCenter Sites (a.k.a. Fatwire prior to the Oracle acquisition) than other options if you are comfortable in Eclipse.

Install the Jump Start Kit (JSK)

The first trick is finding the JSK. You must have an Oracle Support account to access it through normal channels. On the Oracle Support site, search for “webcenter sites JUMPSTARTKIT” in the Patch category.
Continue reading

Facebooktwitterredditlinkedinmail
© Scott S. Nelson

Linux, Firefox and WebCenter Sites, Oh No!

If you use WebCenter Sites on Linux with Firefox, you may have hit the nasty issue where the latest Firefox update disabled your tools. These are the steps I followed to get it working again:

  1. Locate your Mozilla installation plugins directory. In the example below, it is at /usr/lib64/mozilla/plugins
  2. Locate your Java home. In the example below it has been set as the system variable JAVA_HOME
  3. Go to the plugins directory and sudo as root
  4. Create a symlink to the Java plug in
  5. Important! Exit root before performing the next step or the plug-in will only be enabled for root.
  6. Run jcontrol and sites you need to run the plugin to the security exception list

Example commands:

[myusername@ol6vm]$ cd /usr/lib64/mozilla/plugins
[myusername@ol6vm plugins]$ sudo su
[sudo] password for myusername: 
[root@ol6vm plugins]# ln -fs $JAVA_HOME/jre/lib/amd64/libnpjp2.so libnpjp2.so
exit
[myusername@ol6vm plugins]$ $JAVA_HOME /jre/bin/jcontrol
Facebooktwitterredditlinkedinmail
© Scott S. Nelson

Creating the WebCenter Sites User Account on Oracle XE

The documentation uses OEM to do this, something that Oracle XE does not have. Has a non-DBA, I find installing Oracle EE tedious. Thanks to waslleysouza.com.br, I was able to find the right script to execute with XE. For the DB-disabled like myself, here are the full steps to do this on a Linux host:

  1. login to linux as a member of the dba group or sudo as same
  2. # echo $ORACLE_SID
  3. # echo $ORACLE_HOME

if either is blank:

# set ORACLE_SID=XE (or your service id)
# set ORACLE_HOME= (Eg: C:oraclexeapporacleproduct10.2.0server)
  1. #locate sqlplus
  2. run [RESULT FOUND PATH]sqlplus / as sysdba

i.e.,
# /u01/app/oracle/product/11.2.0/xe/bin/sqlplus / as sysdba

  1. execute the following (replace values inside [brackets]):
CREATE USER [csuser] IDENTIFIED BY [password] DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
GRANT CREATE session, CREATE table, CREATE view TO [csuser];
GRANT UNLIMITED TABLESPACE TO [csuser]; 
COMMIT;
Facebooktwitterredditlinkedinmail
© Scott S. Nelson