<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Manveen Kaur&apos;s Blog</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/" />
<modified>2008-05-09T18:08:53Z</modified>
<tagline></tagline>
<id>tag:weblogs.java.net,2008:/blog/manveen/401</id>
<generator url="http://www.movabletype.org/" version="3.01D">Movable Type</generator>
<copyright>Copyright (c) 2008, manveen</copyright>
<entry>
<title>Announcing Project SocialSite</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2008/05/announcing_proj_1.html" />
<modified>2008-05-09T18:08:53Z</modified>
<issued>2008-05-09T18:08:46Z</issued>
<id>tag:weblogs.java.net,2008:/blog/manveen/401.9768</id>
<created>2008-05-09T18:08:46Z</created>
<summary type="text/plain">Project SocialSite is delivering social networking functionality by adding social networking platform support based on the OpenSocial standard to any community site.</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>
<dc:subject>Community: Java Enterprise</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<a href="http://socialsite.dev.java.net" title="Social Site">
<img src="http://blogs.sun.com/theaquarium/resource/SocialSite-160_78x.jpg"/>
</a>
<p>
The <a href="https://socialsite.dev.java.net/">SocialSite</a> project is delivering social networking functionality by adding social networking platform support based on the OpenSocial standard to any community site. Any social application written for the OpenSocial based social network can be seamlessly and easily hosted on a transformed community site that is powered by the SocialSite project.
</p>
<p>
Also check out <a href="http://www.youtube.com/watch?v=0oXKa7dqflw"> this  video. </a> 
</p>
]]>

</content>
</entry>
<entry>
<title>Social Software for Glassfish available!</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2008/01/social_software.html" />
<modified>2008-01-02T21:17:30Z</modified>
<issued>2008-01-02T21:14:29Z</issued>
<id>tag:weblogs.java.net,2008:/blog/manveen/401.8914</id>
<created>2008-01-02T21:14:29Z</created>
<summary type="text/plain">Sun recently released its &quot;Social Software for GlassFish&quot;. It is available through the update center for 9.1 and 9.1 UR1 releases.
</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>
<dc:subject>Community: Java Enterprise</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<p>
Sun recently released its "Social Software for GlassFish". It is now available @ <a href="http://glassfish.dev.java.net">GlassFish</a> <a href="http://updatecenter.dev.java.net">update center</a> for both  AppServer 9.1 & AppServer 9.1 UR1.
</p>

<p>
The download contains an integration of both roller (blogging) and slynkr (content rating) social applications, along with a common administrative interface,  common user management, dynamic discovery along with single sign-on (including support for Sun's Access Manager). 
</p>

<p>
<b>The download is just a few clicks away!</b>
If you already have GlassFish 9.1 or 9.1 UR1 installed, then all you need to do is start the updatetool through <i> $GF_HOME/bin/updatetool </i> and choose the Social software offering! Enjoy!
</p>

<img src="http://images.businessweek.com/ss/06/02/social_networking/image/intro.jpg"/>]]>

</content>
</entry>
<entry>
<title>Write your own update center module</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/09/write_your_own.html" />
<modified>2007-09-22T04:54:45Z</modified>
<issued>2007-09-22T00:05:43Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.8300</id>
<created>2007-09-22T00:05:43Z</created>
<summary type="text/plain">There were several recent additions to Update Center. This blog contains a pointer to the code that shows how to write your own Update Center addon module.
</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[An <a href="https://updatecenter.dev.java.net">Update Center</a> module can be an addon module or an archive module. For an archive type module, the addons.* interfaces need not be implemented. Let's take a closer look at the addon module.
<p>
Take a look at my earlier blogs on <a href="http://weblogs.java.net/blog/manveen/archive/2007/06/creating_a_glas_1.html">creating </a> and 
<a href="http://weblogs.java.net/blog/manveen/archive/2007/06/testing_your_up_1.html">testing </a>UC addon modules for starters...
</p>
<p>
For addon modules, you need to look at the <a  href="https://updatecenter.dev.java.net/addon/javadoc/api/com/sun/appserv/addons/Configurator.html"> Configurator</a> and <a href="https://updatecenter.dev.java.net/addon/javadoc/api/com/sun/appserv/addons/Installer.html">Installer</a> APIs.... Here's the <a href="https://updatecenter.dev.java.net/addon/javadoc/api/com/sun/appserv/addons/package-summary.html"> package tree</a>.
</p>

There were several recent additions to Update Center including Apache Roller. If you ever wanted to know how we did that, <a href="https://roller.dev.java.net/source/browse/roller/roller_installers/glassfish_uc/src/javanet/roller/installer/glassfishuc/"> here </a> is the code for roller.
<p>
Hope this will get you excited enough and started on your own module! Send me your comments.
</p>

<img src="http://www.bugbash.net/strips/bug-bash20060515.gif"/>

]]>

</content>
</entry>
<entry>
<title>Weblog Server for Glassfish</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/09/weblog_server_f_1.html" />
<modified>2008-05-19T20:50:34Z</modified>
<issued>2007-09-20T22:40:37Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.8290</id>
<created>2007-09-20T22:40:37Z</created>
<summary type="text/plain">Weblog server for Glassfish now available!</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<p>
Sun's Weblog server for <a href="http://glassfish.dev.java.net">Glassfish</a> was released earlier this week. 
</p>
<p>
The bits are available through the <a href="https://updatecenter.dev.java.net/">Glassfish update center</a>. To get to them, launch $GLASSFISH_HOME/updatecenter/bin/updatetool.
</p>
<p>
Once the update tool is up and running choose Social Software category components and click install. 
The instance of GlassFish will now be weblog enabled!
</p>
<img src="http://www.firecatpottery.com/mosaic/lg_fish_school.jpg"/>
]]>

</content>
</entry>
<entry>
<title>Testing your Update Center Module</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/06/testing_your_up_1.html" />
<modified>2007-07-16T19:45:45Z</modified>
<issued>2007-06-20T19:02:19Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.7693</id>
<created>2007-06-20T19:02:19Z</created>
<summary type="text/plain">Before you &quot;host&quot; your Update center module on a server for others to download, it would be wise to test it out yourself.
</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>
<dc:subject>Community: Java Enterprise</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<img src="http://www.bugbash.net/strips/bug-bash20050704.gif"/>

<p>
Before you "host" your module on a server for others to download, it would be wise to test it out yourself.
</p>
<p>
This blog describes how you can test your update center module locally on your GlassFish container through the updatetool client. Hopefully you already know how to <a href="http://weblogs.java.net/blog/manveen/archive/2007/06/creating_a_glas_1.html">create and package</a> your update center module.
</p>
<p>
Here's what you do to "host" the module on your local running instance of <a href="http://glassfish.dev.java.net">GlassFish</a>. Updatetool is available from GlassFish v2 onwards.
</p>
<p>
<ol>
<li> Copy your final module jar to be tested into GF_V2_HOME/domains/domain1/docroot. This enables it to be accessible from http://localhost:8080/module.jar </li>
<li> Copy GF_V2_HOME/updatecenter/registry/glassfish/server.xml to GF_V2_HOME/domains/domain1/docroot. Let's call it update_center.xml. Doing this will enable it to be accessible from http://localhost:8080/update_center.xml.
</li>
<li> Edit update_center.xml to have a single entry for the module. Add appropriate values for 
<b> module codenamebase="my.package" distribution="http://localhost:8080/roller_module.jar".</b>Make sure the Module-Type (under manifest element) is ADDON_INSTALLER.

<br> Don't worry about getting the exact numbers for downloadsize etc. for now.
</li>
<li> Edit GF_v2_HOME/updatecenter/config/config.xml.
<br>
For the catalog name='glassfish' change the url to url='http://localhost:8080/update_center.xml'. Start your server.</li>
<li> Run GF_V2_HOME/updatecenter/bin/updatetool and choose your module.
</ol>
</p>
<p>
The module jars are downloaded under GF_v2_HOME/updatecenter/registry/glassfish/package.name/module. The updatetool is expected to extract and install the module for you.
</p>

<p>
<i>Trivia</i>: Did you know that a Netbeans module or .nbm extension is just a fancy name for a .jar?
</p>
<p>
<i>Important contact information: </i>If you are interested in hosting your application on GlassFish Update Center repository, do <a href="https://updatecenter.dev.java.net/servlets/ProjectMailingListList">touch base</a> with the GlassFish Update Center team at: <a href="mailto:dev@updatecenter.dev.java.net">dev@updatecenter.dev.java.net</a> and they'll be happy to work with you.
</p>
]]>

</content>
</entry>
<entry>
<title>Creating a GlassFish Update Center module</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/06/creating_a_glas_1.html" />
<modified>2007-06-15T23:53:10Z</modified>
<issued>2007-06-15T23:53:04Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.7660</id>
<created>2007-06-15T23:53:04Z</created>
<summary type="text/plain">How do you create your own GlassFish update center module. Here&apos;s how you can get started.</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>
<dc:subject>J2EE</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<p>
To try GlassFish <a href="https://updatecenter.dev.java.net/">Update Center</a>, install GlassFish V2 (<a href="http://blogs.sun.com/alexismp/resource/getting-started-gfv2.html">screencast</a>). Then go to install-root/glassfish/updatecenter/bin and invoke updatetool (or updatetool.bat). You'll see a list of addon modules available for installation.
</p>

<p>
<b>But what's an addon and how do you create one?</b>
</p>
<p>
An addon is a companion product or runtime component installed on top of Sun Java System Application Server.
</p>

<p>
<b>Right, but how do you create such a module?</b>
</p>

<p> To start with, you need to implement an <a href="https://updatecenter.dev.java.net/addon/javadoc/api/com/sun/appserv/addons/Installer.html"> com.sun.appserv.addons.Installer interface. </a>
You may also need a <a href="https://updatecenter.dev.java.net/addon/javadoc/api/com/sun/appserv/addons/package-summary.html"> com.sun.appserv.addons.Configurator interface </a> implementation.

</p>

<p><b>What's the difference between and installer and a configurator plugin?</b>
</p>
<p>

If addon requires installation of shared files which are not specific to a particular application server domain, installation and initial configuration of such files must be handled by installer plugin. The <b>installer plugin</b> has read-write access to installation root directory (INSTALL_ROOT) of the appserver.

Installer plugin is invoked either at the end of appserver installation or when the CLI command asadmin install-addon addon_name_installer.jar is executed. 
<br>
The <b>configurator plugin</b> should assume read-only access to INSTALL_ROOT and read-write access to root directory of the domain (DOMAIN_DIR). The configurator will be invoked once, prior to starting application server domain. The configurator will access application server configuration files like DOMAIN_DIR/config/domain.xml, DOMAIN_DIR/config/server.policy etc. and make necessary changes. 

<p><b> Where can I get the installer plugin API?</b>
</p>
From <a href="http://wiki.java.net/bin/view/Projects/MavenRepositoryForAddonAPI"> Maven</a>

<p> <b>How do I package the installer plugin?</b>
</p>

<pre>
addon_name_installer.jar
        |- META-INF/services/com.sun.appserv.addons.Installer
        |- InstallerImpl.class (implements Installer)
        |- InstallerUtil.class
        |- InstallerMore.class
        |- addon_name_configurator_01_01_00.jar
           |- META-INF/services/com.sun.appserv.addons.Configurator
           |- ConfiguratorImpl.class (implements Configurator)
           |- Another.class
           |- More.class
           |- Util.class 
</pre>

<p> <b>How do I invoke and test the installer plugin?</b>
</p>
<p>
Installer plugin is invoked either at the end of appserver installation or when the CLI command 
<pre>
asadmin install-addon addon_name_installer.jar 
</pre>
</p>

<p> <b>Now for the final packaging.</b>
</p>

<p>
File system layout for downloadable module file (equivalent of NetBeans NBM file) will be jar archive file with following structure:

<pre>
         module_xx.jar
                |   
                +- info
                |   |
                |   +- info.xml
                |
                +- module
                      |
                      |
                      +- locale (optional, for localized packages)
                           |
                           |
                           +-installer_xx.jar or installer_xx.zip
</pre>

<p>
installer_xx.jar can be addon component installer or configurator jar file as specified in <a href="https://updatecenter.dev.java.net/addon/javadoc/api/com/sun/appserv/addons/package-summary.html">Addon installer and configurator plug-in</a> imported interfaces. 
</p>

<p>
The DTD for info.xml is <a href="http://wiki.glassfish.java.net/attach/OnePagersOrFunctionalSpecs/autoupdate-info-1_0.dtd"> here</a>.
</p>
]]>

</content>
</entry>
<entry>
<title>Why should I look at GlassFish?</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/05/why_should_i_lo_1.html" />
<modified>2007-05-22T18:10:20Z</modified>
<issued>2007-05-21T20:00:23Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.7466</id>
<created>2007-05-21T20:00:23Z</created>
<summary type="text/plain">Answers to commonly asked questions on GlassFish (at JavaOne).
</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<a href="http://java.sun.com/javaone/sf/index.jsp"><img src="http://blogs.sun.com/theaquarium/resource/JavaOne2007-178_71px.jpg"/></a>

In case you missed going to the <a href="http://glassfish.dev.java.net">GlassFish </a>PoD during this year's <a href="http://java.sun.com/javaone/sf/index.jsp">JavaOne</a>, and have some questions left unanswered, <a href="http://blogs.sun.com/nazrul/">Nazrul</a> has written <a href="http://blogs.sun.com/nazrul/entry/glassfish_javaone">an excellent blog </a> answering the most popular questions asked. 
<br>
<a href="http://blogs.sun.com/nazrul/entry/glassfish_javaone">Take a look.</a>
]]>

</content>
</entry>
<entry>
<title>Installing Roller 3.1.0 on Tomcat</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/05/installing_roll_1.html" />
<modified>2007-05-21T19:05:31Z</modified>
<issued>2007-05-18T20:33:25Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.7457</id>
<created>2007-05-18T20:33:25Z</created>
<summary type="text/plain">Have you tried installing Roller on Tomcat?  Stay tuned for a follow up blog on installation on glassFish!</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<a href="http://roller.apache.org/"><img src="http://roller.apache.org/images/roller-logo.gif"/></a>

<p>
What do I need to install <a href="http://roller.apache.org/">Roller </a> 3.0.1 on <a href="http://tomcat.apache.org/">Tomcat?</a> 
<br>
Here is a link to the <a href="http://www.apache.org/dist/roller/roller-3/v3.1.0/docs/roller-install-guide.pdf">installation guide</a> for your reference. 
</p>

<p>
Stay tuned for my follow up blog on installation on my favorite application server <a href="http://glassfish.dev.java.net">glassFish</a>.
</p>

<ol>
<li> <b> BEFORE INSTALLATION. THE SETUP. </b>
First things first. I need the following installed on my system: 
<ul> 
<li><a href="http://java.sun.com/javase/downloads/index_jdk5.jsp">Java 2 SE 1.4 SDK (or later)</a> </li> 

<li><a href="http://tomcat.apache.org/">Tomcat 5.X (or later)</a></li>

Make sure the following environment variables are also set-
CATALINA_HOME should point to Tomcat directory installation.

<li><a href="http://dev.mysql.com/downloads/">MySQL database 4.x (or later). </a> I got <a href="http://dev.mysql.com/downloads/mysql/4.1.html"> v 4.1 </a></li>

For MySQL, UTF-8 support should have been enabled. If not sure look here.
Also TCP/IP should be enabled in MySQL, for the JDBC calls to work.
</ul>
</li>

<p>
<a href="http://java.sun.com/javase/downloads/index_jdk5.jsp"><img src="http://java.sun.com/javase/images/l2_dukepencil.gif"/></a>

<a href="http://tomcat.apache.org/"><img src="http://tomcat.apache.org/images/tomcat.gif"/></a>

<a href="http://dev.mysql.com/downloads/"><img src="http://dev.mysql.com/common/logos/mysql_100x52-64.gif"/></a>
</p>

<p>
<li> <b> UNPACK THE ROLLER DISTRIBUTION. </b>

<a href="http://cwiki.apache.org/confluence/display/ROLLER/Roller+Downloads"> Download </a> the appropriate roller distribution and unpack the ZIP or TAR file.
<p>
Set the ROLLER environment variable to the location of the roller webapps directory.
For example, for Windows (if you installed Roller in c:), you would set
<br>
<b>set %ROLLER% = c:\apache-roller-3.1/webapp/roller</b>
</p>

</li>
</p> 

<p> 
<li> <b> INSTALL REQUIRED THIRD PARTY JARS </b>
</p>
<p>
If you're curious why, these are not shipped in Roller due to licensing restrictions. You need-
<ul>

<li> 
Download <a href="http://sourceforge.net/project/showfiles.php?group_id=40712&package_id=127784">Hibernate 3.1.2 </a> from SourceForge
<a href="http://www.hibernate.org"></a>
<p>
<img src="http://www.hibernate.org/tpl/jboss/img/01_oben_logo.gif"/>
</p>
<p>
You'll need to copy the following files from Hibernate into the Roller WEB-INF/lib directory: </p>
<p>
<i> hibernate3.jar, asm-attrs.jar, asm.jar, cglib-2.1.3.jar, dom4j.1.6.1.jar , ehcache-1.1.jar, jdbc2_0-stdext.jar, jta.jar </i>
</p>
<br>
You'll also need to change the Hibernate configuration file to use the MySQL5 dialect.
</li>

<li>
Install JDBC Driver Jars.
<p>
Download the <a href="http://dev.mysql.com/downloads/connector/j/3.1.html"> J/Connector JDBC driver from mysql.com</a> and place it in the Tomcat common/lib directory.
</p>
</li>

<li> Install JavaMail and activation Jars 
<p>
Copy <a href="http://java.sun.com/products/javamail/"> activation.jar and mail.jar</a> to Tomcat common/lib.
</p>
</li>

</ul>
</li>
</p>

<p>
<li> <b>CREATE ROLLER TABLES IN YOUR DATABASE.</b>
<p>
In this step you use an SQL script to create a new database within your MySQL installation, create a user with all privileges within that database and the tables required to run Roller.
</p>
<p>Execute the script in %ROLLER%/WEB-INF/dbscripts/mysql</p>
<pre>
C> cd %ROLLER%\WEB-INF\dbscripts\mysql
C> mysql -u root -p
password: *****
mysql> create database roller;
mysql> grant all on roller.* to scott@'%' identified by 'tiger';
mysql> grant all on roller.* to scott@'localhost' identified by 'tiger';
mysql> use roller;
mysql> source createdb.sql
mysql> quit
</pre>
</p>
</li>

<li>
<b>DEPLOY ROLLER TO YOUR APPLICATION SERVER</b>
<p>
To deploy Roller you will need to inform Tomcat where to find the Roller installation directory, how to configure the Roller database data-source under the JNDI name jdbc/rollerdb, and how to configure the Roller email session under the JNDI name mail/Session.
</p>
For Tomcat you can do this by creating a context configuration file named roller.xml and placing that file in the %CATALINA_HOME%/conf/Catalina/localhost directory.
<p>
This is what roller.xml looks like. Edit the values for <b>docBase </b> and <b> Resource </b> attributes  to point to the ones you're using.
</p>

<pre>

&lt;Context path="/roller"
docBase="c:/apache-roller-3.1/webapp/roller" debug="0"&gt;
&lt;Resource name="jdbc/rollerdb" auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/roller?autoReconnect=true&amp;
useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8"
username="scott"
password="tiger"
maxActive="20"
maxIdle="3"
removeAbandoned="true"
maxWait="3000" /&gt;
&lt;!-- If you want e-mail features, un-comment the section below --&gt;
&lt;Resource name="mail/Session" auth="Container"
type="javax.mail.Session" mail.smtp.host="mailhost.example.com" /&gt; 
&lt;/Context&gt;

</pre>
</li>

<li> <b>Check your internationalization settings</b>
<p>
Configure your application server and your web server to use UTF-8 encoding because Roller's does I18N by using UTF-8 encoding for everything.

<i>Also Check your application server's URI encoding setting!</i>

</p>
<p>
Make sure that your web application server uses UTF-8 to encode URI's.
In Tomcat the URI encoding is specified in the connectors that are configured in the Tomcat configuration file conf/server.xml. Here's a connector with the URI encoding attribute set properly:

<pre>
&lt;Connector port="8080" maxThreads="150" minSpareThreads="25" .....
URIEncoding="UTF-8" /&gt;
</pre>

</p>
</li>

<li> <b>Setup Roller data directories </b>
<p>
Roller stores file uploads, search index files, cache files and log files on disk. Make sure the following directories that Roller expects exist and are writable by the Tomcat process.

<ul>
<li> <i>Uploads directory: </i> <b>${user.home}/roller_data/uploads</b>
Where ${user.home}is the Java system property that normally evaluates to the home directory of the user identity executing the server's JVM process.
</li>

<li> <i> Search-index directory:</i> <b>${user.home}/roller_data/search-index</b>
</li>

<li><i> Logs directory: </i> <b> ${catalina.base}/logs/roller.log </b>
</li>
</ul>
</p>
</li>

<br>

<li> <b>Review Roller configuration</b>
<p>
<ul>
<li>
<p>
Review the WEB-INF/classes/roller.properties file
To override the properties, define a roller-custom.properties file and place it in <b>$CATALINA_HOME/common/classes/roller-custom.properties</b>

<pre>
uploads.dir=/app/roller/roller_data/uploads
search.index.dir=/app/roller/roller_data/search-index
passwds.encryption.enabled=true
# other values you may want to override
</pre>
</p></li>

<li><p> Edit %ROLLER%/WEB-INF/security.xml file
For the beans with ids "anonymousAuthenticationProvider" and "anonymousProcessingFilter" change the value field of the property with name="key" to any string value of your choosing. Use the same key
value in these two beans; they must match.
<br>
For the beans with ids "rememberMeServices" and "rememberMeAuthenticationProvider" change the
value field of the property with name="key" to be different from the default value of "rollerlovesacegi". You can use any string value of your choosing. It should be a secret specific to your
site. Use the same key value in these two beans. Again, they must match.
</p></li>
</ul>
</p>
</li>


<li> <b>Start your Servlet Container and your database</b>
<p>
Start your Servlet Container, open your web browser, browse to the Roller start page and start using Roller.
<pre>
    C> cd %CATALINA_HOME/%bin
    C> startup
</pre>
</li>


</p>
<p>
Point your browser to the URL: <a href="http://localhost:8080/roller">http://localhost:8080/roller</a>. You're all set!
</p>
]]>

</content>
</entry>
<entry>
<title>Sun&apos;s training offering on developing secure Java Web services</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/05/suns_training_o.html" />
<modified>2007-05-18T00:09:17Z</modified>
<issued>2007-05-18T00:09:07Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.7447</id>
<created>2007-05-18T00:09:07Z</created>
<summary type="text/plain">To add to the list of courses being offered in the Sun training and certification, is an offering on XML and Web Services security (DWS-4120-EE5) in the Java EE track.
</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>
<dc:subject>Community: Java Web Services and XML</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<img src="http://java.sun.com/images/featureart/rounded/javaone/JBanner_10.jpg"/>

<p>
You're back from <a href="http://java.sun.com/javaone/sf/index.jsp">JavaOne</a>, with buzz words of cool new technologies you heard about still ringing in your ears. Here you are sitting at your desk, thinking about all the cool stuff you wish you could learn.
</p>

<p>
Well, there is HOPE.
</p>

<p>
Did you know that <a href="http://www.sun.com">Sun Microsystems Inc.</a> offers comprehensive <a href="http://www.sun.com/training/index.xml">training and certification</a> for several Java technology components and the Java Platform, Enterprise Edition (Java EE)?
</p>

<p>
<b> What?</b>
</p>
<p>
To add to the list of courses being offered in the <a href="http://www.sun.com/training/catalog/java/web_services.xml">Web Services learning path </a>, is an offering on XML and Web Services security (DWS-4120-EE5) being offered in the Java EE track.
</p>

<p>
<b>When?</b>
</p>
<p>
Estimated to be on the training schedule mid June. Stay tuned!
</p>

<p>
<b>Where?</b>
</p>
<p>
Watch <a href="http://www.sun.com/training/catalog/java/web_services.xml 
">this space.</a>
</p>

<p>
<b>What will I learn? </b>
</p><p>
As part of the course, you will learn to :

<ul>
<li> Identify the need to secure web services </li>
<li> List and explain the primary elements and concepts of
application security </li>
<li> Outline the factors that must be considered when designing a web service security solution </li>
<li>Determine the issues and concerns related to securing
web service interactions </li>
<li>Evaluate the tools and technologies available for securing a Java web service</li>
<li>  Analyze the security requirements of web services </li>
<li> Identify the <a href="http://www.ws-i.org/Profiles/BasicSecurity/SecurityChallenges-1.0.pdf">security challenges and threats </a> in a web service application </li>
<li> Secure web services using application-layer, transport-layer
security, and message-layer security</li>
<li>Secure web services using the message security
providers available in the <a href="http://www.sun.com/software/products/appsrvr/index.xml">Sun Java System Application Server </a></li>
<li>Describe the concept of identity and the drivers behind
<a href="http://www.sun.com/software/products/identity/offerings.jsp">identity management solutions </a> </li>
<li>Explain the role of the <a href="http://www.sun.com/software/products/access_mgr/">Access Manager </a> in securing web services</li>
<li>Illustrate <a href="http://www.netbeans.org/kb/55/amsecurity-liberty.html">identity management capabilities</a> in the
<a href="http://www.netbeans.org">NetBeans</a> environment</li>
<li>Secure web services using the <a href="http://www.oasis-open.org/committees/download.php/16782/wss-v1.1-spec-os-UsernameTokenProfile.pdf">Username token profile</a> </li>
<li>Secure web services using <a href="http://en.wikipedia.org/wiki/SAML">SAML</a> assertions and
Liberty tokens </li>
</p>

And if this isn't enough- there is another incentive as well. The course will also help in preparation towards the <a href="http://www.sun.com/training/catalog/courses/CX-310-220.xml">SCJDWS (Sun Certified Developer for Java Web Services) </a> exam.
<p>
<img src="http://www.netbeans.org/images/v5/nb-logo2.gif"/>
<img src="http://www.sun.com/images/l2/l2_javaone07-reg.gif"/>

</p>
<p>
The students perform the course lab exercises using the <a href="http://www.netbeans.info/downloads/index.php">NetBeans 5.5 Enterprise Pack</a> Integrated Development Environment (IDE) and using AppServer 9.0 U1.  
</p>

<p> Cool stuff! Is there anything else you would want to learn? 
</p>]]>

</content>
</entry>
<entry>
<title>Getting started with jMaki</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/05/getting_started.html" />
<modified>2007-05-16T18:51:48Z</modified>
<issued>2007-05-16T18:51:37Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.7423</id>
<created>2007-05-16T18:51:37Z</created>
<summary type="text/plain">My notes on getting started with using jMaki and writing a menu based application.</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>
<dc:subject>Web Applications</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[<p>
There has been quite some buzz about jMaki and Web 2.0 this <a href="http://java.sun.com/javaone/sf/index.jsp">JavaOne</a>. There were atleast 7 or 8 talks/sessions or BoFs! That sure is a lot!
</p>

<p>Well I've been trying to get started with using jMaki in my own space too. I thought I'd write some of my experiences in blogs as I go along.
</p>

<p>
First we need to setup the environment. We need an IDE, a jMaki plugin, and an application server.
</p>
<p> 
Here are my preferences-

<ul>
<li>
IDE: <a href="http://www.netbeans.info/downloads/index.php">Netbeans</a> (ofcourse!)
I got NetBeans 5.5.1 Release Candidate, though its soon to be replaced with the much better version 6. But 5.5.1 will do for now for me.
</li>
<li>
IDE Plugin: <a href="https://ajax.dev.java.net/jmaki-plugin.html">NetBeans jMaki Plugin</a>
I downloaded the NetBeans Ajax Update center module and installed it in NetBeans. Once installed, I'll have access to the latest jMaki builds from the NetBeans IDE. 
</li>
<li>
Server: <a href="http://glassfish.dev.java.net">GlassFish</a> (ofcourse :))
</li>
</ul>

<p>
Now using the update center, I installed jMaki plugin in my NetBeans IDE. There is also a <a href="https://ajax.dev.java.net/screencast/jMakiDemo/jMakiDemo.html"> screencast </a> that you can watch.
</p>
<p>
Now we're all set to start writing applications using jMaki.
</p>

<p>
Let's do something more fruitful. Let's say we want to have a menu bar which will bring up different pages based on the option you select. 
</p>
<p>
We create a new Web application. Enable jMaki support from the wizard.
</p>
<p>
Choose a standard single view and drag and drop the jMaki.Menu under the first div or the main area.
</p>

<p>
Drag and drop a jMaki.dcontainer on the second div. The reason we are having the dContainer is because all the actions with the Menu will result in changes in the dContainer. The glue code for the two to work together already exists, so we won't have to do anything else, which makes things simpler. Finally we create new jsp's for the associated actions in the same project. They should be at the same level as the main index.jsp. It's easy to do with <a href="http://www.netbeans.org">NetBeans</a>. Just click on the project in the project tree and create New->jsp.
</p>
<p>
This is what the final code will look like:
</p>
<pre>
    &lt;div class=&quot;outerBorder&quot;&gt;
        
        &lt;div class=&quot;header&quot;&gt;
            &lt;div class=&quot;banner&quot;&gt;Doing something fruitful&lt;/div&gt;
            &lt;br&gt;            
            &lt;div class=&quot;subheader&quot;&gt;
                &lt;div&gt;
                    &lt;a:ajax name=&quot;jmaki.menu&quot;
                            value=&quot;{columns: [
                            {label: 'Strawberry',
                            menuItems: [
                            {label:'ripe', url:'ripe.jsp'},
                            {label:'unripe', url:'unripe.jsp'}
                            ]},
                            {label: 'Apples',
                            menuItems: [
                            {label:'Red', url:'red.jsp'},
                            {label:'Green', url:'green.jsp'}
                            ]}
                            ]}&quot; /&gt;
                &lt;/div&gt;
            &lt;/div&gt; &lt;!-- subheader  --&gt;

        &lt;/div&gt; &lt;!-- header --&gt;

        &lt;div class=&quot;main&quot;&gt;

            &lt;a:ajax name=&quot;jmaki.dcontainer&quot;/&gt;
                
        &lt;/div&gt; &lt;!-- content --&gt;
    &lt;/div&gt; &lt;!-- main --&gt;

    &lt;/div&gt; &lt;!-- outerborder --&gt;
</pre>

Feel free to try and point to some other useful tips as well!
]]>

</content>
</entry>
<entry>
<title>Federated security in webservices across trusted domains</title>
<link rel="alternate" type="text/html" href="http://weblogs.java.net/blog/manveen/archive/2007/04/federated_secur.html" />
<modified>2007-04-29T19:39:08Z</modified>
<issued>2007-04-29T19:39:05Z</issued>
<id>tag:weblogs.java.net,2007:/blog/manveen/401.7187</id>
<created>2007-04-29T19:39:05Z</created>
<summary type="text/plain">Want to know how to build federated security in Web Services across trusted domains with WSIT? Learn more through a screencast.</summary>
<author>
<name>manveen</name>

<email>Manveen.Kaur@Sun.COM</email>
</author>
<dc:subject>Community: Java Web Services and XML</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://weblogs.java.net/blog/manveen/">
<![CDATA[Want to know how to build federated security in Web Services across trusted domains with WSIT?
<p>
See <a href="http://download.java.net/javaee5/screencasts/ws-trust/">this screencast</a> to learn how.
</p>

<p>
<i>A little Background:</i>
</p>
<a href"http://wsit.dev.java.net">WSIT</a>, is a short name for Web Services Interoperability Technology, an integrated part of <a href="http://blogs.sun.com/theaquarium/entry/glassfish_v2_m4_now_available">GlassFish v2 M4</a>. 

<p>
It's an open source implementation of key WS-* technologies and provide first class interoperability between 
Sun's Web services stack and Microsoft Windows Communication Foundation, an integrated part of .NET 3.0 framework.
</p>

<p>
WS-Trust specifies a framework for broker trust across different security domains. 
</p>

<p>
For introduction about using <a href="http://netbeans.org">Netbeans</a>, and introductory samples on creating and testing webservices using Netbeans and the WSIT, I encourage you to see <a href="http://blogs.sun.com/arungupta/tags/screencast">these screencasts</a>.
</p>

<p> Your comments are welcome.
</p>
]]>

</content>
</entry>

</feed>