Posts

Showing posts from February, 2012

ATG On Social Network FaceBook/Twitter Integration

Image
How about using social networking sites as a channel to sell our products ? Yes,we can share the Product /Sku Infromation   to any social networking sites . So anybody interes t ed can a c cess the URL and see the Products/Skus , Browse Catalogs and place orders through this channel I have successfully integrated our code with the  below social networking sites. 1.Facebook 2.Twitter This can be done basically by posting a link to Twitter or FaceBook and upon clicking the URL,this will redirect you back to the Product Catalog page of your Site. ATG FaceBook Integration I registered the URL with tinyUrl(www.tinyurl.com),as this option helps to cut short  big URL to  rather simpler one. Below is the code snippet. You just need to place this in your JSP files,dont forget to create the image file for this. <a target="_blank" href=http://www.facebook.com/sharer.php?   url=${tinyUrl}" onclick="window.op...

atg.servlet.DynamoHttpServletRequest cannot be cast to atg.servlet.DynamoHttpServletRequest

I am always getting the below Exception when i deploy any modifications in my Project using runAssembler.bat, this issue occurs only when the  Jboss Server is running while deploying the changes. java.lang.ClassCastException: atg.servlet.DynamoHttpServletRequest cannot be cast to atg.servlet.DynamoHttpServletRequest     at atg.servlet.DynamoServlet.service(DynamoServlet.java:126)     at atg.taglib.dspjsp.DropletTag.invokeServlet(DropletTag.java:377)     at atg.taglib.dspjsp.DropletTag.doAfterBody(DropletTag.java:666)     at org.apache.jsp.en.catalog.share_jsp._jspService(share_jsp.java:291)     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)     a...

startSQLRepository Console output

C:\ATG\ATG10.0.3\home\bin> startSQLRepository -m EmployeeRegistration -repository /empRegistration/repositories/EmployeeRegistrationRepository -outputSQL Application Server: jboss The following installed ATG components are being used to launch:   ATGPlatform version 10.0.3 installed at C:\ATG\ATG10.0.3 Created ".\.\startDynamo.jar" in 84,640ms. ------------------- JAVA_ARGS:  -Djava.security.policy=lib/java.policy -Datg.dynamo.home="." -Datg.dynamo.root=".\.." -Datg.dynamo.display= -Djava.protocol.handler.pkgs=atg.net.www. ------------------- DYNAMO_MODULES: @@atg/env/Startup.modules@@ ------------------- CONFIGPATH: @@atg/env/Startup.configPath@@;.\.\PublishingAgent\deploymentconfig\live\config;..\DAS\config\dtmconfig.jar;localconfig;..\DAF\config\dafconfig.jar ------------------- CLASSPATH:  .\locallib;C:\ATG\ATG10.0.3\EmployeeRegistration\classes;C:\ATG\ATG10.0.3\home\startDynamo.jar ------------------- PATH:       C:\Or...

Generate DDL/SQL using startSQLRepository

One of the beauty of ATG is,it can generate DDL  from a Repository Definition file. eg: Below is a sample repository EmployeeRegistration with 4 columns in the module EmployeeRegistration. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE gsa-template SYSTEM "dynamosystemresource:/atg/dtds/gsa/gsa_1.0.dtd"> <gsa-template> <item-descriptor name="EmployeeInfo">   <table name="emp_info" type="primary" id-column-names="id">     <property name="id" column-name="id" data-type="string"/>     <property name="empId" column-name="emp_id" data-type="int"/>     <property name="empName" column-name="emp_name" data-     type="string"/>     <property name="empDept" column-name="emp_dept" data-     type="string"/>   </table>  </item-de...

Configure runAssembler for Eclipse

Image
Option 1: From the Eclipse Run -> External Tools - >External Tools configurations You can see an option 'Program' on the left pane. Right click 'Program' and create New, Give a name, eg: Fullfillment. Enter the location of the runAssembler.bat file (C:\ATG\ATG10.0.3\home\bin\runAssembler.bat). Refer screenshot below. Enter the working directory, ideally this will be the place where you need to install your .ear,.war files in the exploded format  (C:\jboss-eap-5.0\jboss-as\server\Fullfillment\deploy). Give  arguments,this will be  the ear file name and the modules(your ATG module) and required modules to start the Deployment. Fullfillment.ear -m  Fullfillment DSS  DafEar DafEar.Admin     Option 2: Alternatively,open the cmd prompt ,go to the path C:\ATG\ATG10.0.3\home\bin type the command ->  runAssembler Fullefillment.ear -m  Fullfillment DSS  DafEar DafEar.Admin Option 3: T...

Running your ATG Server on Jboss

Image
1.Double click on the New Jboss Server created by you    from the previous steps and open launch configuration. 2.Click the tab arguments,add the below line -c MyATGServer  -b 127.0.0.1. -b 127.0.0.1 - > To resolve all the Services to localhost VM Arguments -Dprogram.name=run.bat -Xms128m -Xmx512m  -XX: MaxPermSize=256m depends upon your Hardware settings this can vary Working Directory - C:/jboss-eap-5.0/jboss-as/bin Now right click your New Jboss Server and Start Done !!! Alternatively,open the cmd prompt ,go to the path C:\jboss-eap-5.0\jboss-as\bin type the command -> run -c MyATGServer -b -b 127.0.0.1 You may also see how to create your own ATG Server on Jboss ATG Server on Jboss

Setting up your Own ATG Server on Jboss

Image
  I assume you have downloaded latest Version of Jboss   Find below easy steps to create your ATG Server on Jboss and    get ready to deploy and run your Applications. 1. Copy the "default" Server Directory  present with the Jboss     Installation t o your Newly created ATGServer  folder.    (C:\jboss-eap-5.0\jboss-as\server\MyATGServer\)       Folder structure for your "default" Jboss Server.    2. After copying You may now able to see a folder  "deploy"      inside your MyATGServer directory.       C:\jboss-eap-5.0\jboss-as\server\MyATGServer\deploy copied     from the "default" Server. 3. Place/Create your Datasource related files under this folder       C:\jboss-eap-5.0\jboss-as\server\MyATGServer\deploy,     There will be ideally 2 Datasource files. 4. Now go to your IDE,Fr...